@globalpayments/vega 2.73.0 → 2.75.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/dist/cjs/{app-globals-cc162173.js → app-globals-35614ce8.js} +8 -8
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-536d29fc.js → child-nodes-event-prevent-slimmer-aca87dac.js} +1 -1
  3. package/dist/cjs/click-outside-only-to-dismiss-strategy-407f6d1e.js +32 -0
  4. package/dist/cjs/{code-block-823cd481.js → code-block-c1d2e6a8.js} +3 -3
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-e2e0c6f3.js → component-value-history-controller-slimmer.abstract-787c67dc.js} +4 -4
  6. package/dist/cjs/{date-required-rule-99cca681.js → date-required-rule-30ee62d0.js} +1 -1
  7. package/dist/cjs/{design-token-11656685.js → design-token-bb39e07e.js} +2 -2
  8. package/dist/cjs/{dom-node-subject-observer-factory-1c8f7880.js → dom-node-subject-observer-factory-b5e71bf6.js} +4 -0
  9. package/dist/cjs/{dto-renderer-manager-bd2bd447.js → dto-renderer-manager-03e1a038.js} +218 -27
  10. package/dist/cjs/{element-appender-slimmer-12f40b8b.js → element-appender-slimmer-daa8b9f5.js} +160 -36
  11. package/dist/cjs/{event-emit-slimmer-6a591353.js → event-emit-slimmer-2dacabbd.js} +2 -2
  12. package/dist/cjs/{form-field-controller-slimmer-6e3e14fd.js → form-field-controller-slimmer-aef2fb1e.js} +2 -2
  13. package/dist/cjs/{function-extension-78ec27e0.js → function-extension-cfbbc57e.js} +5 -5
  14. package/dist/cjs/{image-annotation-action-7408a4b3.js → image-annotation-action-3fa501b7.js} +3 -3
  15. package/dist/cjs/{index-638a0f0d.js → index-95fca64f.js} +1 -1
  16. package/dist/cjs/index.cjs.js +15 -15
  17. package/dist/cjs/{inject-keyboard-manager-a6101379.js → inject-keyboard-manager-d21b4387.js} +1 -1
  18. package/dist/cjs/{internal-vega-event-manager-d587a33c.js → internal-vega-event-manager-6befeb34.js} +13 -2
  19. package/dist/cjs/{keyboard-manager-d8adb0ed.js → keyboard-manager-3dea6b28.js} +1 -1
  20. package/dist/cjs/{keyboard-manager-slimmer-15e65357.js → keyboard-manager-slimmer-0d45f944.js} +1 -1
  21. package/dist/cjs/{language-extension-716015a5.js → language-extension-8c4a56ff.js} +2 -2
  22. package/dist/cjs/loader.cjs.js +11 -11
  23. package/dist/cjs/{month-view-generator-706c5477.js → month-view-generator-49cc5fc2.js} +1 -1
  24. package/dist/cjs/{public-rules-2950f1fc.js → public-rules-dc2a8d62.js} +7 -7
  25. package/dist/cjs/{range-c3c48132.js → range-79b668e7.js} +1 -1
  26. package/dist/cjs/{responsive-format-facade-96c5f598.js → responsive-format-facade-d5dba942.js} +4 -4
  27. package/dist/cjs/{rich-text-editor-required-rule-4aab05a3.js → rich-text-editor-required-rule-ba312af9.js} +1 -1
  28. package/dist/cjs/sanitize-fb222510.js +131 -0
  29. package/dist/cjs/{string-format-strategy.abstract-a8264fca.js → string-format-strategy.abstract-63514c60.js} +1 -1
  30. package/dist/cjs/{string-input-formatter-slimmer-338bbd73.js → string-input-formatter-slimmer-f3e0bbc7.js} +3 -3
  31. package/dist/cjs/{string-mask-strategy-4e7d3780.js → string-mask-strategy-d23ac21a.js} +2 -2
  32. package/dist/cjs/{style-formatter-9c42d41b.js → style-formatter-49693da7.js} +2 -2
  33. package/dist/cjs/{sub-state-notify-slimmer-1efa69c4.js → sub-state-notify-slimmer-468e19aa.js} +1 -1
  34. package/dist/cjs/{sub-state-observer-slimmer-6afa62f5.js → sub-state-observer-slimmer-5d0b8ac3.js} +1 -1
  35. package/dist/cjs/{time-required-rule-9d39a620.js → time-required-rule-c96ecdc9.js} +1 -1
  36. package/dist/cjs/{type-guard-69d2cf01.js → type-guard-a0f026d8.js} +12 -0
  37. package/dist/cjs/{valid-credit-card-number-rule-9f40d1d9.js → valid-credit-card-number-rule-c854bed9.js} +1 -1
  38. package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
  39. package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -10
  40. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-box.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  43. package/dist/cjs/vega-button-circle.cjs.entry.js +10 -10
  44. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  45. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-button.cjs.entry.js +9 -9
  47. package/dist/cjs/vega-calendar_4.cjs.entry.js +8 -8
  48. package/dist/cjs/vega-card.cjs.entry.js +8 -8
  49. package/dist/cjs/vega-carousel.cjs.entry.js +8 -8
  50. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  51. package/dist/cjs/vega-chip.cjs.entry.js +10 -10
  52. package/dist/cjs/vega-code-block.cjs.entry.js +10 -10
  53. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  54. package/dist/cjs/vega-combo-box.cjs.entry.js +11 -10
  55. package/dist/cjs/vega-date-picker_2.cjs.entry.js +389 -342
  56. package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -10
  57. package/dist/cjs/vega-divider.cjs.entry.js +8 -8
  58. package/dist/cjs/vega-dropdown_5.cjs.entry.js +49 -21
  59. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  60. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-flag-icon.cjs.entry.js +8 -8
  63. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  64. package/dist/cjs/vega-font.cjs.entry.js +8 -8
  65. package/dist/cjs/vega-form.cjs.entry.js +8 -8
  66. package/dist/cjs/vega-grid.cjs.entry.js +8 -8
  67. package/dist/cjs/vega-icon.cjs.entry.js +8 -8
  68. package/dist/cjs/vega-image-uploader.cjs.entry.js +11 -11
  69. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-input-numeric.cjs.entry.js +10 -10
  71. package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
  72. package/dist/cjs/vega-input-phone-number.cjs.entry.js +11 -11
  73. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  74. package/dist/cjs/vega-input-select.cjs.entry.js +187 -54
  75. package/dist/cjs/vega-input.cjs.entry.js +339 -98
  76. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
  78. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  79. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  80. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  81. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  82. package/dist/cjs/vega-pagination.cjs.entry.js +9 -9
  83. package/dist/cjs/vega-popover_2.cjs.entry.js +12 -12
  84. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +10 -10
  85. package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
  86. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  87. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +87 -27
  88. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  89. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +12 -12
  90. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  91. package/dist/cjs/vega-sidenav_3.cjs.entry.js +10 -10
  92. package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -11
  93. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  94. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  95. package/dist/cjs/vega-table_11.cjs.entry.js +11 -11
  96. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  97. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -17
  98. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  99. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -10
  100. package/dist/cjs/vega.cjs.js +11 -11
  101. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
  102. package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +1 -1
  103. package/dist/collection/components/vega-calendar/vega-calendar.js +1 -1
  104. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -1
  105. package/dist/collection/components/vega-date-picker/assets/icons.js +4 -1
  106. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +2 -1
  107. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +2 -2
  108. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +109 -0
  109. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +4 -0
  110. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +42 -70
  111. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +12 -56
  112. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +435 -108
  113. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +5 -0
  114. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +5 -1
  115. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +7 -0
  116. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +6 -3
  117. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +3 -2
  118. package/dist/collection/components/vega-dropdown/vega-dropdown.js +50 -4
  119. package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
  120. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.js +51 -0
  121. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +6 -0
  122. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +142 -0
  123. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +12 -1
  124. package/dist/collection/components/vega-input/vega-input.js +200 -3
  125. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-item-controller.js +89 -0
  126. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +4 -0
  127. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +4 -0
  128. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +38 -13
  129. package/dist/collection/components/vega-input-select/vega-input-select.js +27 -7
  130. package/dist/collection/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.js +1 -1
  131. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +16 -0
  132. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +21 -24
  133. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +1 -1
  134. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.js +1 -0
  135. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.js +59 -0
  136. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.js +4 -0
  137. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.js +21 -0
  138. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.js +21 -0
  139. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.js +77 -0
  140. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +6 -2
  141. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +6 -0
  142. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +39 -0
  143. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +171 -1
  144. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +186 -0
  145. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +22 -0
  146. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +22 -0
  147. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +26 -0
  148. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
  149. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +2 -1
  150. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +2 -1
  151. package/dist/collection/constants/ui.js +2 -0
  152. package/dist/collection/helpers/code-format/code-formatter.js +57 -7
  153. package/dist/collection/helpers/code-format/test/code-formatter.test.js +48 -0
  154. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +13 -2
  155. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +2 -0
  156. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +3 -1
  157. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +3 -1
  158. package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +60 -32
  159. package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +3 -2
  160. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.js +28 -0
  161. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.js +33 -0
  162. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.js +42 -0
  163. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.js +22 -0
  164. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.js +1 -0
  165. package/dist/collection/types/test/type-guard.test.js +8 -1
  166. package/dist/collection/types/type-guard.js +11 -0
  167. package/dist/collection/utils/sanitize.js +126 -0
  168. package/dist/collection/utils/test/sanitize.test.js +65 -0
  169. package/dist/esm/{app-globals-949d2e18.js → app-globals-2ac60ff5.js} +8 -8
  170. package/dist/esm/{child-nodes-event-prevent-slimmer-e6f98de5.js → child-nodes-event-prevent-slimmer-e662bee2.js} +1 -1
  171. package/dist/esm/click-outside-only-to-dismiss-strategy-3d286c1b.js +30 -0
  172. package/dist/esm/{code-block-666674d7.js → code-block-8ee34ab6.js} +3 -3
  173. package/dist/esm/{component-value-history-controller-slimmer.abstract-171dda08.js → component-value-history-controller-slimmer.abstract-a61bf821.js} +4 -4
  174. package/dist/esm/{date-required-rule-a9980386.js → date-required-rule-47ecc28f.js} +1 -1
  175. package/dist/esm/{design-token-9b510e59.js → design-token-007efbaa.js} +2 -2
  176. package/dist/esm/{dom-node-subject-observer-factory-1aaa1159.js → dom-node-subject-observer-factory-064ee2b2.js} +3 -1
  177. package/dist/esm/{dto-renderer-manager-49ae5d56.js → dto-renderer-manager-ee1a5864.js} +218 -27
  178. package/dist/esm/{element-appender-slimmer-b9890dcb.js → element-appender-slimmer-35e26b5a.js} +160 -36
  179. package/dist/esm/{event-emit-slimmer-2d791d0e.js → event-emit-slimmer-09827cec.js} +2 -2
  180. package/dist/esm/{form-field-controller-slimmer-257928c1.js → form-field-controller-slimmer-5d9dc384.js} +2 -2
  181. package/dist/esm/{function-extension-8b06c6f8.js → function-extension-e8c0e43e.js} +5 -5
  182. package/dist/esm/{image-annotation-action-b3eea6a2.js → image-annotation-action-285d432e.js} +3 -3
  183. package/dist/esm/{index-0d487fae.js → index-51a7da7f.js} +1 -1
  184. package/dist/esm/index.js +15 -15
  185. package/dist/esm/{inject-keyboard-manager-9241968c.js → inject-keyboard-manager-83d76ff5.js} +1 -1
  186. package/dist/esm/{internal-vega-event-manager-fdee2a0a.js → internal-vega-event-manager-efb6786e.js} +13 -2
  187. package/dist/esm/{keyboard-manager-89acac79.js → keyboard-manager-c92808d8.js} +1 -1
  188. package/dist/esm/{keyboard-manager-slimmer-e303cb7d.js → keyboard-manager-slimmer-79c78ce8.js} +1 -1
  189. package/dist/esm/{language-extension-b3f836d4.js → language-extension-29bf8acd.js} +2 -2
  190. package/dist/esm/loader.js +11 -11
  191. package/dist/esm/{month-view-generator-4bec99fd.js → month-view-generator-16192182.js} +1 -1
  192. package/dist/esm/{public-rules-b164e40e.js → public-rules-724873f5.js} +7 -7
  193. package/dist/esm/{range-9cc1422b.js → range-5257c062.js} +1 -1
  194. package/dist/esm/{responsive-format-facade-94897ae8.js → responsive-format-facade-28ee2dbd.js} +4 -4
  195. package/dist/esm/{rich-text-editor-required-rule-2131f21c.js → rich-text-editor-required-rule-873e2e67.js} +1 -1
  196. package/dist/esm/sanitize-fd0cb40d.js +129 -0
  197. package/dist/esm/{string-format-strategy.abstract-75540c16.js → string-format-strategy.abstract-fc60db79.js} +1 -1
  198. package/dist/esm/{string-input-formatter-slimmer-3a42d9b8.js → string-input-formatter-slimmer-ee32b1fd.js} +3 -3
  199. package/dist/esm/{string-mask-strategy-4a18ed1a.js → string-mask-strategy-0b0accaa.js} +2 -2
  200. package/dist/esm/{style-formatter-bb5aec96.js → style-formatter-314b37f3.js} +2 -2
  201. package/dist/esm/{sub-state-notify-slimmer-71b9bbd5.js → sub-state-notify-slimmer-4453047a.js} +1 -1
  202. package/dist/esm/{sub-state-observer-slimmer-41a1b380.js → sub-state-observer-slimmer-202ec7dc.js} +1 -1
  203. package/dist/esm/{time-required-rule-8ec1faf5.js → time-required-rule-5fa43804.js} +1 -1
  204. package/dist/esm/{type-guard-b48aec98.js → type-guard-c65a227d.js} +12 -1
  205. package/dist/esm/{valid-credit-card-number-rule-96eaf9b1.js → valid-credit-card-number-rule-666c415d.js} +1 -1
  206. package/dist/esm/vega-accordion.entry.js +9 -9
  207. package/dist/esm/vega-app-header-button.entry.js +10 -10
  208. package/dist/esm/vega-banner.entry.js +3 -3
  209. package/dist/esm/vega-box.entry.js +9 -9
  210. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  211. package/dist/esm/vega-button-circle.entry.js +10 -10
  212. package/dist/esm/vega-button-group_2.entry.js +6 -6
  213. package/dist/esm/vega-button-link.entry.js +4 -4
  214. package/dist/esm/vega-button.entry.js +9 -9
  215. package/dist/esm/vega-calendar_4.entry.js +8 -8
  216. package/dist/esm/vega-card.entry.js +8 -8
  217. package/dist/esm/vega-carousel.entry.js +8 -8
  218. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  219. package/dist/esm/vega-chip.entry.js +10 -10
  220. package/dist/esm/vega-code-block.entry.js +10 -10
  221. package/dist/esm/vega-color-picker.entry.js +5 -5
  222. package/dist/esm/vega-combo-box.entry.js +11 -10
  223. package/dist/esm/vega-date-picker_2.entry.js +389 -342
  224. package/dist/esm/vega-dialog_2.entry.js +10 -10
  225. package/dist/esm/vega-divider.entry.js +8 -8
  226. package/dist/esm/vega-dropdown_5.entry.js +49 -21
  227. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  228. package/dist/esm/vega-field-label.entry.js +3 -3
  229. package/dist/esm/vega-file-uploader.entry.js +5 -5
  230. package/dist/esm/vega-flag-icon.entry.js +8 -8
  231. package/dist/esm/vega-flex.entry.js +9 -9
  232. package/dist/esm/vega-font.entry.js +8 -8
  233. package/dist/esm/vega-form.entry.js +8 -8
  234. package/dist/esm/vega-grid.entry.js +8 -8
  235. package/dist/esm/vega-icon.entry.js +8 -8
  236. package/dist/esm/vega-image-uploader.entry.js +11 -11
  237. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  238. package/dist/esm/vega-input-numeric.entry.js +10 -10
  239. package/dist/esm/vega-input-passcode.entry.js +9 -9
  240. package/dist/esm/vega-input-phone-number.entry.js +11 -11
  241. package/dist/esm/vega-input-range.entry.js +6 -6
  242. package/dist/esm/vega-input-select.entry.js +187 -54
  243. package/dist/esm/vega-input.entry.js +340 -99
  244. package/dist/esm/vega-item-toggle.entry.js +3 -3
  245. package/dist/esm/vega-left-nav_5.entry.js +11 -11
  246. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  247. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  248. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  249. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  250. package/dist/esm/vega-pagination.entry.js +9 -9
  251. package/dist/esm/vega-popover_2.entry.js +12 -12
  252. package/dist/esm/vega-progress-tracker_2.entry.js +10 -10
  253. package/dist/esm/vega-radio_2.entry.js +9 -9
  254. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  255. package/dist/esm/vega-rich-text-editor_4.entry.js +87 -27
  256. package/dist/esm/vega-segment-control.entry.js +3 -3
  257. package/dist/esm/vega-selection-chip_2.entry.js +12 -12
  258. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  259. package/dist/esm/vega-sidenav_3.entry.js +10 -10
  260. package/dist/esm/vega-signature-capture.entry.js +11 -11
  261. package/dist/esm/vega-stepper.entry.js +6 -6
  262. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  263. package/dist/esm/vega-table_11.entry.js +11 -11
  264. package/dist/esm/vega-textarea.entry.js +6 -6
  265. package/dist/esm/vega-time-picker_2.entry.js +18 -17
  266. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  267. package/dist/esm/vega-tooltip_2.entry.js +10 -10
  268. package/dist/esm/vega.js +11 -11
  269. package/dist/sri/vega-sri-manifest.json +326 -318
  270. package/dist/types/components/vega-date-picker/assets/icons.d.ts +1 -1
  271. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +20 -0
  272. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -0
  273. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +4 -11
  274. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +4 -9
  275. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +2 -0
  276. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +2 -0
  277. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +1 -0
  278. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +14 -2
  279. package/dist/types/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.d.ts +27 -0
  280. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
  281. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.d.ts +40 -0
  282. package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +3 -0
  283. package/dist/types/components/vega-input/types.d.ts +4 -0
  284. package/dist/types/components/vega-input/vega-input.d.ts +55 -1
  285. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-item-controller.d.ts +29 -0
  286. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +1 -0
  287. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +1 -0
  288. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +1 -1
  289. package/dist/types/components/vega-input-select/types.d.ts +5 -0
  290. package/dist/types/components/vega-input-select/vega-input-select.d.ts +12 -4
  291. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +10 -0
  292. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +8 -1
  293. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.d.ts +13 -0
  294. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.d.ts +35 -0
  295. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.d.ts +4 -0
  296. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.d.ts +19 -0
  297. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.d.ts +19 -0
  298. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.d.ts +59 -0
  299. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +1 -0
  300. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +1 -0
  301. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.d.ts +1 -0
  302. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts +1 -0
  303. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts +1 -0
  304. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.d.ts +1 -0
  305. package/dist/types/components.d.ts +65 -11
  306. package/dist/types/constants/ui.d.ts +1 -1
  307. package/dist/types/helpers/code-format/code-formatter.d.ts +14 -0
  308. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
  309. package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +4 -9
  310. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.d.ts +21 -0
  311. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.d.ts +21 -0
  312. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.d.ts +22 -0
  313. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.d.ts +18 -0
  314. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.d.ts +37 -0
  315. package/dist/types/types/components.type.d.ts +3 -0
  316. package/dist/types/types/type-guard.d.ts +8 -0
  317. package/dist/types/types/ui.type.d.ts +9 -0
  318. package/dist/types/utils/sanitize.d.ts +71 -0
  319. package/dist/types/utils/test/sanitize.test.d.ts +1 -0
  320. package/dist/vega/index.esm.js +1 -1
  321. package/dist/vega/{p-44bc9ea9.entry.js → p-011b94b1.entry.js} +1 -1
  322. package/dist/vega/{p-6e701542.entry.js → p-012753b5.entry.js} +1 -1
  323. package/dist/vega/{p-db62b038.entry.js → p-024331ce.entry.js} +1 -1
  324. package/dist/vega/{p-74a77cad.js → p-0575d22e.js} +1 -1
  325. package/dist/vega/{p-42a283b5.entry.js → p-08a90cc6.entry.js} +1 -1
  326. package/dist/vega/{p-d01fe83d.entry.js → p-0ede1fea.entry.js} +1 -1
  327. package/dist/vega/{p-8fba7f9a.js → p-1298b126.js} +1 -1
  328. package/dist/vega/{p-9b673fd4.entry.js → p-17c55205.entry.js} +1 -1
  329. package/dist/vega/{p-161b9c5b.js → p-1f83cebf.js} +1 -1
  330. package/dist/vega/p-3353b3d7.js +1 -0
  331. package/dist/vega/p-365b1b35.entry.js +1 -0
  332. package/dist/vega/{p-f3831dc9.entry.js → p-3ae9ee3d.entry.js} +1 -1
  333. package/dist/vega/p-3af92370.entry.js +1 -0
  334. package/dist/vega/{p-59fa3f68.js → p-3bf66be2.js} +1 -1
  335. package/dist/vega/{p-6e84e451.entry.js → p-3c5a28e4.entry.js} +1 -1
  336. package/dist/vega/p-3e5f362f.js +1 -0
  337. package/dist/vega/{p-c0036e71.js → p-430be941.js} +1 -1
  338. package/dist/vega/p-43f585f7.entry.js +1 -0
  339. package/dist/vega/{p-75d91ee9.entry.js → p-45296fd4.entry.js} +1 -1
  340. package/dist/vega/p-476a173a.js +1 -0
  341. package/dist/vega/p-491618a6.entry.js +1 -0
  342. package/dist/vega/p-4a537391.entry.js +1 -0
  343. package/dist/vega/p-4aa893ef.entry.js +1 -0
  344. package/dist/vega/{p-2b20a215.entry.js → p-4c47e8bb.entry.js} +1 -1
  345. package/dist/vega/{p-7f86b3c8.js → p-4da75f2b.js} +1 -1
  346. package/dist/vega/{p-82dbff54.entry.js → p-509eb52e.entry.js} +1 -1
  347. package/dist/vega/{p-adc615a4.entry.js → p-5110ba73.entry.js} +1 -1
  348. package/dist/vega/{p-38ed3d59.entry.js → p-556f9a21.entry.js} +1 -1
  349. package/dist/vega/{p-70b2906a.entry.js → p-55b54ba0.entry.js} +1 -1
  350. package/dist/vega/{p-94cf46ca.entry.js → p-5ea2e43c.entry.js} +1 -1
  351. package/dist/vega/{p-5f09868d.entry.js → p-5efc6fe1.entry.js} +1 -1
  352. package/dist/vega/p-5f377954.js +1 -1
  353. package/dist/vega/{p-de70aac1.js → p-60851f9d.js} +1 -1
  354. package/dist/vega/{p-03e16a05.entry.js → p-64cd1931.entry.js} +1 -1
  355. package/dist/vega/{p-f2c8c363.js → p-66fa700b.js} +1 -1
  356. package/dist/vega/{p-623c3911.entry.js → p-67fcf6f2.entry.js} +1 -1
  357. package/dist/vega/{p-e88f2dc3.js → p-68df4288.js} +1 -1
  358. package/dist/vega/{p-2971b17a.js → p-691ba1ae.js} +1 -1
  359. package/dist/vega/{p-676eaf3f.entry.js → p-6a2205a1.entry.js} +1 -1
  360. package/dist/vega/{p-b007d0d5.entry.js → p-6a4277df.entry.js} +1 -1
  361. package/dist/vega/{p-30e7544c.js → p-6e136980.js} +1 -1
  362. package/dist/vega/{p-bf61d136.js → p-6f8be8ea.js} +1 -1
  363. package/dist/vega/{p-f427d88c.entry.js → p-6fa8e231.entry.js} +1 -1
  364. package/dist/vega/p-7045e84c.entry.js +1 -0
  365. package/dist/vega/{p-3566ad76.js → p-7288f8c4.js} +1 -1
  366. package/dist/vega/{p-9dfe2bbc.js → p-749f96a4.js} +1 -1
  367. package/dist/vega/{p-5be29f14.js → p-77edf50c.js} +1 -1
  368. package/dist/vega/{p-114c6df8.entry.js → p-7aaece55.entry.js} +1 -1
  369. package/dist/vega/{p-40561fa0.entry.js → p-7ec6a104.entry.js} +1 -1
  370. package/dist/vega/{p-9fb71d8c.entry.js → p-81134e9e.entry.js} +1 -1
  371. package/dist/vega/p-8187878e.js +1 -0
  372. package/dist/vega/p-89d685a8.js +1 -0
  373. package/dist/vega/{p-2ae5ad30.entry.js → p-8c0eb12f.entry.js} +1 -1
  374. package/dist/vega/p-8d0ca805.js +1 -0
  375. package/dist/vega/{p-0ba0f83d.entry.js → p-8d701832.entry.js} +1 -1
  376. package/dist/vega/{p-f6cd7a08.entry.js → p-8e42a14c.entry.js} +1 -1
  377. package/dist/vega/{p-a3c4fa30.entry.js → p-8ed0faa2.entry.js} +1 -1
  378. package/dist/vega/{p-a8dad05d.js → p-920719ad.js} +1 -1
  379. package/dist/vega/{p-a58bdbad.entry.js → p-94394df7.entry.js} +1 -1
  380. package/dist/vega/p-99aa554b.entry.js +1 -0
  381. package/dist/vega/{p-7be3aefc.entry.js → p-9a2446f1.entry.js} +1 -1
  382. package/dist/vega/{p-a4ec6575.js → p-a2aeb646.js} +1 -1
  383. package/dist/vega/{p-a125cfec.entry.js → p-a475d525.entry.js} +1 -1
  384. package/dist/vega/{p-2409a475.entry.js → p-a530797f.entry.js} +1 -1
  385. package/dist/vega/{p-be0b67b8.entry.js → p-a85ad369.entry.js} +1 -1
  386. package/dist/vega/p-ac5e9955.entry.js +1 -0
  387. package/dist/vega/{p-ce2ffff7.js → p-aedf7146.js} +1 -1
  388. package/dist/vega/p-b1f869fb.js +1 -0
  389. package/dist/vega/p-b4ea3fad.js +1 -0
  390. package/dist/vega/{p-d991fb11.js → p-badad9ed.js} +1 -1
  391. package/dist/vega/{p-c7194674.entry.js → p-bb4a558d.entry.js} +1 -1
  392. package/dist/vega/{p-4957f07a.entry.js → p-bb8339ed.entry.js} +1 -1
  393. package/dist/vega/{p-6b9d2996.entry.js → p-be930e85.entry.js} +1 -1
  394. package/dist/vega/{p-398220f5.entry.js → p-bf2bd6d0.entry.js} +1 -1
  395. package/dist/vega/{p-dd72ad9e.js → p-c2488ed6.js} +1 -1
  396. package/dist/vega/{p-ead1da57.entry.js → p-c379a5a5.entry.js} +1 -1
  397. package/dist/vega/{p-184d8443.js → p-c9b6b5a9.js} +1 -1
  398. package/dist/vega/{p-9d8e2939.entry.js → p-ca3472c1.entry.js} +1 -1
  399. package/dist/vega/{p-2e0deef6.js → p-cc43bffb.js} +1 -1
  400. package/dist/vega/{p-721b2981.entry.js → p-cf5b80f9.entry.js} +1 -1
  401. package/dist/vega/{p-d1d0f08a.js → p-d0e31633.js} +1 -1
  402. package/dist/vega/{p-21e7808a.entry.js → p-db60a38e.entry.js} +1 -1
  403. package/dist/vega/{p-6c1ef2ed.js → p-dd11f735.js} +1 -1
  404. package/dist/vega/{p-3d85411d.js → p-e16b3adf.js} +1 -1
  405. package/dist/vega/{p-1e019406.js → p-e93545fd.js} +1 -1
  406. package/dist/vega/{p-a5d4d168.entry.js → p-e9c4fd24.entry.js} +1 -1
  407. package/dist/vega/{p-7a8c4cf8.entry.js → p-eb60cfe1.entry.js} +1 -1
  408. package/dist/vega/{p-7b337fd4.entry.js → p-ec192283.entry.js} +1 -1
  409. package/dist/vega/{p-3938880f.entry.js → p-f2a3a1ec.entry.js} +1 -1
  410. package/dist/vega/{p-c2ac6b47.entry.js → p-f2cdd212.entry.js} +1 -1
  411. package/dist/vega/{p-c7f292dd.entry.js → p-f3c3ff26.entry.js} +1 -1
  412. package/dist/vega/{p-2bc4f7d9.entry.js → p-f4c05b4a.entry.js} +1 -1
  413. package/dist/vega/{p-7f9acdf7.entry.js → p-f52a0155.entry.js} +1 -1
  414. package/dist/vega/{p-e39aa2ea.entry.js → p-f8641214.entry.js} +1 -1
  415. package/dist/vega/{p-0ad59141.entry.js → p-f89443aa.entry.js} +1 -1
  416. package/dist/vega/{p-96797fee.entry.js → p-f8f7cf48.entry.js} +1 -1
  417. package/dist/vega/p-fe12eff6.js +1 -0
  418. package/dist/vega/vega.esm.js +1 -1
  419. package/package.json +1 -1
  420. package/dist/vega/p-1faef917.entry.js +0 -1
  421. package/dist/vega/p-207cfa6a.js +0 -1
  422. package/dist/vega/p-21cba83b.entry.js +0 -1
  423. package/dist/vega/p-2f592078.entry.js +0 -1
  424. package/dist/vega/p-3162a7fd.entry.js +0 -1
  425. package/dist/vega/p-524ffc12.entry.js +0 -1
  426. package/dist/vega/p-697eb0e1.js +0 -1
  427. package/dist/vega/p-76e6c13a.js +0 -1
  428. package/dist/vega/p-79a544d6.js +0 -1
  429. package/dist/vega/p-8bd496b4.js +0 -1
  430. package/dist/vega/p-9a83a6b0.js +0 -1
  431. package/dist/vega/p-aab0deab.js +0 -1
  432. package/dist/vega/p-b406a846.entry.js +0 -1
  433. package/dist/vega/p-bd60c72e.entry.js +0 -1
  434. package/dist/vega/p-c4700277.entry.js +0 -1
  435. package/dist/vega/p-f38a4be2.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{h as e,f as t,F as i,H as o,r,c as a,g as l}from"./p-6b2342e0.js";import{c as s,V as n,L as d,M as c,I as h}from"./p-6e1ab235.js";import{m as p,s as b}from"./p-6bd5c49b.js";import{V as v,I as u}from"./p-d849e0f5.js";import{g as f}from"./p-bf19682d.js";import{C as w}from"./p-2d0d575f.js";import{l as g,m,n as y,o as x,S as R}from"./p-a528714c.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,l as j}from"./p-d9671d27.js";import{d as E,D as O,a as T,g as D,S as A,b as L,Y as M,Z as N,_ as P,$ as W,a0 as I,a1 as _}from"./p-8bd496b4.js";import{r as z}from"./p-77e64f26.js";import{O as K,P as B,Q as V,R as $,S as G,T as F,U as X}from"./p-5b71c85e.js";import{R as H}from"./p-c0036e71.js";import{i as U,u as Y,ag as q}from"./p-161b9c5b.js";import{s as Q}from"./p-519a7d55.js";import{g as Z}from"./p-a4670e23.js";import{P as J,g as ee}from"./p-10ac8b57.js";import{M as te}from"./p-78a57a17.js";import{T as ie}from"./p-52b8f2d2.js";import{c as oe}from"./p-5be29f14.js";import{C as re}from"./p-184d8443.js";import{c as ae}from"./p-f2c8c363.js";import{I as le}from"./p-b28d4f7d.js";import{T as se}from"./p-75f981ce.js";import{S as ne}from"./p-59fa3f68.js";import{F as de}from"./p-e77a83e4.js";import{B as ce}from"./p-ed45b3b6.js";import{n as he}from"./p-dd72ad9e.js";import"./p-5f377954.js";import{a as pe}from"./p-8c9ea6f4.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-79a544d6.js";import"./p-4866e390.js";import"./p-bf61d136.js";import{c as be}from"./p-86194314.js";import{c as ve}from"./p-1ec763ab.js";import{c as ue}from"./p-613ddaab.js";import"./p-262ec334.js";import"./p-40f39194.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-d884c644.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-697eb0e1.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-ef9cbad1.js";import"./p-a7b5f497.js";import"./p-02841589.js";class fe{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((e=>t.add(e)))}))}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 i=new fe(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const we=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];var ge=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class me extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o)=>{var r,a;const l=f(i,t.prop),s=this.vegaTableDataSourceController.getRecordKey(i),n=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===s)),c=this.vegaTableEditableController.isEditing(s),h=this.vegaTableEditableController.getRowFormRefMap().get(s);if(c&&h&&t.renderFormItem)return t.renderFormItem(e,t.prop?l:s,i,o,{rowForm:h,isNewRow:n});if(c&&h&&t.editable){const e=null===(r=t.formItemProps)||void 0===r?void 0:r.call(t,h,{record:i,index:o}),s=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:l},null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,h,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,s)}return t.render?t.render(e,t.prop?l:s,i,o):"string"==typeof l||"number"==typeof l?String(l):null==l?"":void d.error(`Column ${t.prop}'s value has a wrong type(${typeof i[t.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(t="input",i)=>{const o=`vega-${t}`,{dataVegaForm:r}=i,a=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(i[o[r]]=e[o[r]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},a),{"data-vega-form":r}));d.error(`Type must be one of the form field types. [${we.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(we.join("|"),"i").test(e)}render(t,i,o){const r=this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key));if(r){const a=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${a}_${r.key||r.prop}`,textAlign:r.align,breakpoint:r.breakpoint,overflow:r.overflow,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}},this.renderTableCellContent(r,i,o))}return e("vega-table-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}})}}ge([s()],me.prototype,"rowKey",void 0),ge([s()],me.prototype,"columns",void 0),ge([s()],me.prototype,"vegaTableDataSourceController",void 0),ge([s()],me.prototype,"vegaTableEditableController",void 0),ge([s()],me.prototype,"vegaTableRenderInputController",void 0);var ye=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xe extends n{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.rowExpandable&&this.handleCloseAllExpandRow()},this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((e=>{w.notify(g,{host:this.host,rowKey:e,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),w.notify(g,{host:this.host,rowKey:e,expanded:t})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async e=>{this.expandRowSlotGuard(e)&&t(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=e=>{const t=this.vegaTableDataSourceController.getCurrentData().map((e=>`${xe.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`)),i=[];for(let o=0;o<e.length;o++)Array.from(e[o].addedNodes).filter((e=>e instanceof HTMLElement&&e.getAttribute("slot"))).forEach((e=>{e.removeAttribute("hidden");const o=e.getAttribute("slot");t.includes(o)?i.push(e):d.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),w.unregister(g,this.expandObserver),z.unRegister(E.getSubject(this.host,K))}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.handleCloseAllExpandRow()}initRowExpandObserver(){this.expandObserver=new S(this.isAcceptableTableRowObserver.bind({host:this.host}),(e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)})),w.register(g,this.expandObserver),z.register(E.getSubject(this.host,K),(({rowKey:e,expanded:t})=>this.rowExpandEventEmitter.emit({record:this.vegaTableDataSourceController.getRecordByKey(e),expanded:t})))}isAcceptableTableRowObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}xe.expandRowSlotNamePrefix="vega-table-expand-row-",ye([s()],xe.prototype,"host",void 0),ye([s()],xe.prototype,"expandedRowKeySet",void 0),ye([s()],xe.prototype,"rowExpandable",void 0),ye([s()],xe.prototype,"rowExpandEventEmitter",void 0),ye([s()],xe.prototype,"vegaTableDataSourceController",void 0),ye([c("connectedCallback")],xe.prototype,"connectedCallback",null),ye([c("disconnectedCallback")],xe.prototype,"disconnectedCallback",null),ye([c("componentDidLoad")],xe.prototype,"componentDidLoad",null),ye([c("toggleExpandRow")],xe.prototype,"toggleExpandRow",void 0),ye([c("openExpandRow")],xe.prototype,"openExpandRow",void 0),ye([c("closeExpandRow")],xe.prototype,"closeExpandRow",void 0),ye([c("closeAllExpandRow")],xe.prototype,"closeAllExpandRow",void 0),ye([c("watchRowExpandable")],xe.prototype,"watchRowExpandable",null);var Re=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Se extends n{constructor(){super(...arguments),this.handleRowSelect=(e,t)=>{const i=this.vegaTableDataSourceController.getRecordKey(t);let o=!1;e?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&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 e=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...e.filter((e=>!this.selectedRowKeySet.has(e))))}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((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.selectedRowKeySet.has(i)&&t.add(i)}))}))}}connectedCallback(){this.initRowSelection(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver),w.unregister(y,this.rowSelectionAllObserver),w.unregister(x,this.rowClickObserver),z.unRegister(E.getSubject(this.host,B)),z.unRegister(E.getSubject(this.host,V))}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(e,t){(null==t?void 0:t.type)!==(null==e?void 0:e.type)&&this.clearSelection()}setSelection(e){"single"===this.getRowSelectionType()&&e.splice(1),this.selectedRowKeySet.toArray().forEach((e=>{w.notify(m,{host:this.host,rowKey:e,checked:!1})})),this.selectedRowKeySet.clear(),e.forEach((e=>{this.vegaTableDataSourceController.getRecordByKey(e)&&(this.selectedRowKeySet.add(e),w.notify(m,{host:this.host,rowKey:e,checked:!0}))}))}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),w.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){w.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-HEAD-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}initRowSelection(){this.rowSelectionObserver=new S(this.isAcceptableRowSelectionObserver.bind(this),(e=>{const{rowKey:t,checked:i}=e,o=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(i,o)})),w.register(m,this.rowSelectionObserver),z.register(E.getSubject(this.host,B),(({rowKey:e,checked:t})=>this.rowSelectEventEmitter.emit({selected:t,record:this.vegaTableDataSourceController.getRecordByKey(e),selectedRows:this.getSelectedRecords()}))),z.register(E.getSubject(this.host,V),(({checked:e})=>this.rowSelectAllEventEmitter.emit({selected:e,selectedRows:this.getSelectedRecords(),changedRows:e?this.vegaTableDataSourceController.getCurrentData().filter((e=>!this.selectedRowKeySet.has(e.key))):this.getSelectedRecords()})))}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(this.isAcceptableRowSelectionAllObserver.bind(this),(e=>{this.handleSelectAll(e.checked)})),w.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new S(this.isAcceptableRowClickObserver.bind(this),(e=>{if("single"===this.getRowSelectionType()){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}})),w.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}Re([s()],Se.prototype,"host",void 0),Re([s({writable:!0})],Se.prototype,"isSelectedAll",void 0),Re([s()],Se.prototype,"selectedRowKeySet",void 0),Re([s({writable:!0})],Se.prototype,"rowSelection",void 0),Re([s()],Se.prototype,"rowKey",void 0),Re([s()],Se.prototype,"selectChangeEventEmitter",void 0),Re([s()],Se.prototype,"selectAllChangeEventEmitter",void 0),Re([s()],Se.prototype,"vegaTableDataSourceController",void 0),Re([s()],Se.prototype,"rowSelectEventEmitter",void 0),Re([s()],Se.prototype,"rowSelectAllEventEmitter",void 0),Re([c("connectedCallback")],Se.prototype,"connectedCallback",null),Re([c("disconnectedCallback")],Se.prototype,"disconnectedCallback",null),Re([c("componentWillLoad")],Se.prototype,"componentWillLoad",null),Re([c("watchRowSelection")],Se.prototype,"watchRowSelection",null),Re([c("setSelection")],Se.prototype,"setSelection",null),Re([c("watchCurrentData")],Se.prototype,"watchCurrentData",null),Re([c("clearSelection")],Se.prototype,"clearSelection",null),Re([c("getSelection")],Se.prototype,"getSelection",null),Re([c("watchSelectedRowKeySet")],Se.prototype,"watchSelectedRowKeySet",null),Re([c("watchSelectedAll")],Se.prototype,"watchSelectedAll",null);var Ce=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ke extends n{constructor(){super(...arguments),this.getRecordKey=e=>null!=e[this.rowKey]?String(e[this.rowKey]):"",this.getRecordByKey=e=>this.currentData.find((t=>this.getRecordKey(t)===e)),this.setCurrentData=e=>{this.currentData=this.tableDataValidation(e)?e:[]}}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 0===this.currentData.length}tableDataValidation(e){return!e.some((e=>!this.getRecordKey(e)))||(d.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)}syncCurrentData(){if(this.isTemplateRenderMode)return;const e=this.sortersMap.size>0?this.columns.filter((e=>e.sorter&&"event"!==e.sorter&&this.sortersMap.has(e.prop))):[];this.setCurrentData(e.length>0?this.vegaTableSortController.sortData(this.dataSource,Array.from(this.sortersMap.values())):this.dataSource)}}Ce([s()],ke.prototype,"rowKey",void 0),Ce([s({writable:!0})],ke.prototype,"currentData",void 0),Ce([s({writable:!0})],ke.prototype,"dataSource",void 0),Ce([s()],ke.prototype,"columns",void 0),Ce([s()],ke.prototype,"sortersMap",void 0),Ce([s()],ke.prototype,"vegaTableSortController",void 0),Ce([s()],ke.prototype,"vegaTableRenderer",void 0),Ce([s()],ke.prototype,"isTemplateRenderMode",void 0),Ce([c("componentWillLoad")],ke.prototype,"componentWillLoad",null),Ce([c("watchSortersMap")],ke.prototype,"watchSortersMap",null),Ce([c("watchDataSource")],ke.prototype,"watchDataSource",null);var je=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ee extends n{constructor(){super(...arguments),this.renderTableBody=t=>{const o=this.vegaTableDataSourceController.getCurrentData();return e("vega-table-body",null,o.map(((r,a)=>{const l=this.vegaTableDataSourceController.getRecordKey(r),s=this.vegaTablePaginationController.isRowVisible(a);return e(i,null,this.vegaTableRowRenderer.render({rowKey:l,index:a,record:r,isVisibleInCurrentPage:s,isLastRow:a===o.length-1},t),this.rowExpandable&&e("vega-table-expand-row",{class:{"v-hidden":!s},key:`vega-table-expanded-row-${l}`,rowKey:l,striped:this.striped&&a%2==1},e("slot",{name:`${xe.expandRowSlotNamePrefix}${l}`})))})))}}getTableFormRef(){return this.tableFormRef}render(){const t=this.columnStructureModel.generateColumnConfigByLeaves(this.columns).some((e=>null==e?void 0:e.editable));return t?e("vega-form",{ref:e=>this.tableFormRef=e},this.renderTableBody(t)):this.renderTableBody(!1)}}je([s()],Ee.prototype,"striped",void 0),je([s()],Ee.prototype,"rowDivider",void 0),je([s()],Ee.prototype,"columns",void 0),je([s()],Ee.prototype,"currentBreakpoint",void 0),je([s()],Ee.prototype,"rowExpandable",void 0),je([s()],Ee.prototype,"rowClickable",void 0),je([s()],Ee.prototype,"vegaTableDataSourceController",void 0),je([s()],Ee.prototype,"vegaTablePaginationController",void 0),je([s()],Ee.prototype,"vegaTableRowSelectionController",void 0),je([s()],Ee.prototype,"vegaTableRowRenderer",void 0),je([s()],Ee.prototype,"columnStructureModel",void 0);var Oe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Te extends n{constructor(){super(...arguments),this.renderHeaderRows=()=>{const t=[];let i=this.vegaTableRenderInputController.getHeadRenderInputs();for(;i.length>0;)t.push(i),i=i.flatMap((e=>e.children));return t.map((t=>{var i;return e("vega-table-head-row",{hideSelectAll:null===(i=this.rowSelection)||void 0===i?void 0:i.hideSelectAll,ref:e=>{this.vegaTableRenderInputController.addHeadRowRenderInputMap(e,t)}},t.map((e=>{if(e.label)return this.renderGroupCell(e);{const t=this.columns.find((t=>t.key===e.key||t.prop===e.key||t.label===e.key));return this.renderCell(e,t)}})))}))},this.renderGroupCell=t=>e("vega-table-head-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t)}},t.label),this.renderCell=(t,i)=>{var o;return i?e("vega-table-head-cell",{key:i.key||i.prop,textAlign:i.align,sorter:i.sorter,sortOrder:null===(o=this.sortersMap.get(i.prop))||void 0===o?void 0:o.getSortOrder(),sortConfig:this.sortConfig,breakpoint:i.breakpoint,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t),O.addUniqueObserverToNode(e,T,(e=>{this.vegaTableSortController.handleHeadSortClick(i,e.detail.sortOrder)}))}},i.label):e("vega-table-head-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addHeadCellRenderInputMap(e,t)}})}}render(){return this.showHeader&&e("vega-table-head",null,this.renderHeaderRows())}}Oe([s()],Te.prototype,"showHeader",void 0),Oe([s()],Te.prototype,"sortersMap",void 0),Oe([s()],Te.prototype,"sortConfig",void 0),Oe([s()],Te.prototype,"columns",void 0),Oe([s()],Te.prototype,"rowSelection",void 0),Oe([s()],Te.prototype,"vegaTableSortController",void 0),Oe([s()],Te.prototype,"vegaTableDataSourceController",void 0),Oe([s()],Te.prototype,"vegaTableRenderInputController",void 0);var De=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ae extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{O.addUniqueObserverToNode(e,D,this.handlePaginationChange),O.addUniqueObserverToNode(e,A,this.handlePaginationPageSizeChange)},this.handlePaginationChange=e=>{var t,i;this.vegaTablePaginationController.setCurrentPage(e.detail);const o=new CustomEvent("vegaChange",{detail:e.detail});null===(i=(t=this.pagination).vegaChange)||void 0===i||i.call(t,o)},this.handlePaginationPageSizeChange=e=>{var t,i;this.vegaTablePaginationController.setPageSize(e.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:e.detail});null===(i=(t=this.pagination).vegaPageSizeChange)||void 0===i||i.call(t,o)},this.getPaginationConfig=()=>{const e=this.pagination,{position:t}=e,i=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(i[o[r]]=e[o[r]])}return i}(e,["position"]),o=H.formatCustom(this.pagination.extensions);return Object.assign(Object.assign({},i),{position:(null==o?void 0:o.length)>1?void 0:t||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:t,position:i,extensions:o,pageSizeSelectorOptions:r}=this.getPaginationConfig(),a=["vega-table-pagination-container",i],l=this.vegaTableDataSourceController.getCurrentData().length;return l>0&&e("div",{class:k(a)},e("vega-pagination",{total:l,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:r,ref:this.paginationRefCallback}))}}De([s()],Ae.prototype,"pagination",void 0),De([s()],Ae.prototype,"pageSize",void 0),De([s()],Ae.prototype,"currentPage",void 0),De([s()],Ae.prototype,"vegaTablePaginationController",void 0),De([s()],Ae.prototype,"vegaTableDataSourceController",void 0);const Le=({scrollConfig:t={},ref:i,onScroll:o},r)=>{const{maxHeight:a}=t,l=U(a);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof a?`${a}px`:a},ref:i,onScroll:e=>{if(!l)return;const t=e.target;0!==t.scrollTop?(t.scrollTop>0&&!t.classList.contains("scrolled")&&t.classList.add("scrolled"),o(e)):t.classList.remove("scrolled")}},r)};var Me=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ne extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&w.notify(R,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(t){return e(Le,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e),onScroll:()=>this.notifyContentScrolling()},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}Me([s()],Ne.prototype,"scrollConfig",void 0),Me([s()],Ne.prototype,"host",void 0),Me([s()],Ne.prototype,"isTemplateRenderMode",void 0),Me([c("watchCurrentPage")],Ne.prototype,"watchCurrentPage",null);var Pe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class We extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const t=this.columns.some((e=>e.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((e=>e.overflow));return e("table",{class:{"v-table-fixed":t}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&e("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&e("div",{class:"vega-table-empty-description"},this.translationSlimmer.t(this.emptyDescription))}render(){const t=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${H.formatCustom(this.density)}`,this.striped&&"striped",this.columnStructureModel.hasGroupColumn()&&"is-group-table",(this.columnStructureModel.hasLeftPinnedColumn()||this.columnStructureModel.hasRightPinnedColumn())&&"is-pinned-table"]);return Q(e(o,{class:t},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}Pe([s()],We.prototype,"host",void 0),Pe([s()],We.prototype,"columns",void 0),Pe([s()],We.prototype,"emptyDescription",void 0),Pe([s()],We.prototype,"rowDivider",void 0),Pe([s()],We.prototype,"columnDivider",void 0),Pe([s()],We.prototype,"density",void 0),Pe([s()],We.prototype,"dataSource",void 0),Pe([s()],We.prototype,"striped",void 0),Pe([s()],We.prototype,"columnStructureModel",void 0),Pe([s()],We.prototype,"vegaTableHeaderRenderer",void 0),Pe([s()],We.prototype,"vegaTableBodyRenderer",void 0),Pe([s()],We.prototype,"vegaTableColGroupRenderer",void 0),Pe([s()],We.prototype,"vegaTableScrollContainerRenderer",void 0),Pe([s()],We.prototype,"vegaTablePaginationRenderer",void 0),Pe([s()],We.prototype,"vegaTableDataSourceController",void 0),Pe([s()],We.prototype,"translationSlimmer",void 0),Pe([s({writable:!0})],We.prototype,"vegaTableChildrenController",void 0),Pe([s()],We.prototype,"isTemplateRenderMode",void 0),Pe([s()],We.prototype,"editingRows",void 0);var Ie=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class _e extends n{componentWillLoad(){var e,t;this.currentPage=(null===(e=this.pagination)||void 0===e?void 0:e.current)||1,this.pageSize=(null===(t=this.pagination)||void 0===t?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,i=this.currentPage;return e>=(i-1)*t&&e<i*t}}Ie([s()],_e.prototype,"pagination",void 0),Ie([s({writable:!0})],_e.prototype,"pageSize",void 0),Ie([s({writable:!0})],_e.prototype,"currentPage",void 0),Ie([c("componentWillLoad")],_e.prototype,"componentWillLoad",null),Ie([c("watchPagination")],_e.prototype,"watchPagination",null);var ze=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ke extends n{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 i=await this.getRowData(t),o=e.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&e.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...e]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.canMethodBeInvokedInCurrentState("stopAllRowEditMode")&&this.editingRows.clear()}watchDataSource(e){this.isEditableTable()&&this.getEditingRowsKey().forEach((t=>{e.find((e=>e.key===t))||this.stopRowEditMode(t)}))}async saveEditRow(e){if(!this.canMethodBeInvokedInCurrentState("saveEditRow"))return;const t=await this.getRowData(e),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&(i.splice(o,1,t),this.vegaTableDataSourceController.setDataSource([...i])),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 i=(null===(t=e[this.rowKey])||void 0===t?void 0:t.toString())||Z(),o=Object.assign({},e);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){if(!this.canMethodBeInvokedInCurrentState("getRowsData"))return;const e=this.vegaTableBodyRenderer.getTableFormRef(),t=e?await e.getValue():[];return[...this.vegaTableDataSourceController.getCurrentData().map((e=>{const i=t[`${Ke.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`];return Object.assign(Object.assign({},e),i)}))]}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()||(d.warn(`Method ${e} only works with editable tables`),!1)}}Ke.rowFormKeyPrefix="vega-table-row-form-",ze([s()],Ke.prototype,"editingRows",void 0),ze([s()],Ke.prototype,"rowKey",void 0),ze([s()],Ke.prototype,"columns",void 0),ze([s()],Ke.prototype,"vegaTableDataSourceController",void 0),ze([s()],Ke.prototype,"vegaTableBodyRenderer",void 0),ze([c("saveAllEditRows")],Ke.prototype,"saveAllEditRows",null),ze([c("stopAllRowEditMode")],Ke.prototype,"stopAllRowEditMode",null),ze([c("watchDataSource")],Ke.prototype,"watchDataSource",null),ze([c("saveEditRow")],Ke.prototype,"saveEditRow",null),ze([c("stopRowEditMode")],Ke.prototype,"stopRowEditMode",null),ze([c("removeRow")],Ke.prototype,"removeRow",null),ze([c("startRowEditMode")],Ke.prototype,"startRowEditMode",null),ze([c("addNewRow")],Ke.prototype,"addNewRow",null),ze([c("getRowsData")],Ke.prototype,"getRowsData",null),ze([c("getEditingRowsKey")],Ke.prototype,"getEditingRowsKey",null),ze([c("getFormRef")],Ke.prototype,"getFormRef",null),ze([c("getRowData")],Ke.prototype,"getRowData",null);class Be{constructor(e,t,i){this.prop=e,this.order=t,this.sorter=i}sort(e,t){const i=this.sorter(e,t);if(0!==i)return"asc"===this.order?i:-i}toExternalFormat(){return{prop:this.prop,order:this.order}}getSortOrder(){return this.order}}var Ve=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class $e extends n{watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){"single"===this.sortConfig.type&&this.sortersMap.clear(),t?this.sortersMap.set(e.prop,new Be(e.prop,t,e.sorter)):this.sortersMap.has(e.prop)&&this.sortersMap.delete(e.prop),"event"!==e.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),Array.from(this.sortersMap.values()))),this.changeEventEmitter.emit({sorters:Array.from(this.sortersMap.values()).map((e=>e.toExternalFormat()))})}syncSortOrder(){this.columns.filter((e=>U(e.sorter)&&U(e.sortOrder))).forEach((e=>{this.sortersMap.set(e.prop,new Be(e.prop,e.sortOrder,e.sorter))}))}sortData(e,t){return[...e].sort(((e,i)=>{for(const o of t){const t=o.sort(e,i);if(U(t))return t}return 0}))}}Ve([s({writable:!0})],$e.prototype,"sortersMap",void 0),Ve([s()],$e.prototype,"columns",void 0),Ve([s()],$e.prototype,"changeEventEmitter",void 0),Ve([s()],$e.prototype,"vegaTableDataSourceController",void 0),Ve([s()],$e.prototype,"sortConfig",void 0),Ve([c("watchColumns")],$e.prototype,"watchColumns",null);var Ge=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Fe extends n{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&Y(e.breakpoint)?`v-hidden ${e.breakpoint}:v-table-column`:""}render(){return e("colgroup",null,e("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&e("col",{style:{minWidth:"40px",width:"40px"}}),this.columnStructureModel.generateColumnConfigByLeaves(this.columns).map((t=>{if(t){const i=this.getColResponsiveClass(t);return e("col",{class:i,style:{width:t.width?t.width:null}})}return e("col",null)})),this.rowExpandable&&e("col",{style:{minWidth:"40px",width:"40px"}}),e("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}Ge([s()],Fe.prototype,"paddingX",void 0),Ge([s()],Fe.prototype,"columnStructureModel",void 0),Ge([s()],Fe.prototype,"columns",void 0),Ge([s()],Fe.prototype,"rowExpandable",void 0),Ge([s()],Fe.prototype,"vegaTableRowSelectionController",void 0);var Xe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class He extends n{constructor(){super(...arguments),this.currentDataObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("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((e=>({key:e.rowKey})));this.vegaTableDataSourceController.setCurrentData(e)},this.syncRowStates=()=>{const e=this.host.querySelectorAll("vega-table-row");e.forEach(((t,i)=>{this.updateRowStriped(t,i),this.updateRowDivider(t,i===e.length-1)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((e,t)=>{this.updateRowStriped(e,t)}))},this.syncUpTableHeadRowProps=()=>{var e;if(!this.isTemplateRenderMode)return;const t=this.host.querySelector("vega-table-head-row");t&&(t.hideSelectAll=t.hideSelectAll||(null===(e=this.rowSelection)||void 0===e?void 0:e.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStates(),this.syncUpTableFootVisibility()}componentDidLoad(){}clearSelection(){w.notify(y,{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"))}}Xe([s()],He.prototype,"host",void 0),Xe([s()],He.prototype,"columns",void 0),Xe([s()],He.prototype,"dataSource",void 0),Xe([s()],He.prototype,"currentData",void 0),Xe([s()],He.prototype,"rowSelection",void 0),Xe([s()],He.prototype,"striped",void 0),Xe([s()],He.prototype,"rowDivider",void 0),Xe([s()],He.prototype,"vegaTableDataSourceController",void 0),Xe([s()],He.prototype,"vegaTableRenderer",void 0),Xe([s()],He.prototype,"isTemplateRenderMode",void 0),Xe([h()],He.prototype,"currentDataObserver",void 0),Xe([h()],He.prototype,"rowStripedObserver",void 0),Xe([c("connectedCallback")],He.prototype,"connectedCallback",null),Xe([c("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Xe([c("componentWillLoad")],He.prototype,"componentWillLoad",null),Xe([c("componentDidLoad")],He.prototype,"componentDidLoad",null),Xe([c("clearSelection")],He.prototype,"clearSelection",null),Xe([c("watchCurrentData")],He.prototype,"watchCurrentData",null),Xe([c("watchStriped")],He.prototype,"watchStriped",null),Xe([c("watchRowDivider")],He.prototype,"watchRowDivider",null);var Ue=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ye extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:r,isVisibleInCurrentPage:a}=t,l=this.vegaTableRenderInputController.getLeafRenderInputs();return e("vega-table-row",{class:{"v-hidden":!a},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{O.addUniqueObserverToNode(e,T,(()=>{this.rowClickEventEmitter.emit({record:r,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!t.isLastRow},l.map((e=>this.vegaTableCellRenderer.render(e,r,o))))}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Ke.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}Ue([s()],Ye.prototype,"rowClickEventEmitter",void 0),Ue([s()],Ye.prototype,"vegaTableEditableController",void 0),Ue([s()],Ye.prototype,"vegaTableCellRenderer",void 0),Ue([s()],Ye.prototype,"striped",void 0),Ue([s()],Ye.prototype,"rowDivider",void 0),Ue([s()],Ye.prototype,"vegaTableRenderInputController",void 0);var qe=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Qe extends n{constructor(){super(...arguments),this.currentDataObserver=new te({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:ie("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=e=>Array.from(e.children).some((e=>e.tagName.startsWith("VEGA-TABLE-")))}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}qe([s()],Qe.prototype,"host",void 0),qe([s({writable:!0})],Qe.prototype,"isTemplateRenderMode",void 0),qe([h()],Qe.prototype,"currentDataObserver",void 0),qe([c("connectedCallback")],Qe.prototype,"connectedCallback",null),qe([c("disconnectedCallback")],Qe.prototype,"disconnectedCallback",null),qe([c("componentWillLoad")],Qe.prototype,"componentWillLoad",null),qe([c("componentDidLoad")],Qe.prototype,"componentDidLoad",null);const Ze=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>0===e.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>e.dataSource.length>0}];class Je{constructor(e,t,i,o,r){this.key=e,this.level=t,this.parent=i,this.label=o,this.pinned=r,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(e,t){const i=new Je(this.ROOT_KEY,Je.ROOT_LEVEL);return t?(i.children=this.fromGroupColumns(i,t),i):e?(i.children=e.map((e=>new Je(e.key||e.prop||e.label,0,i,null,e.pinned))),i):(i.children=[],i)}static fromGroupColumns(e,t,i=0){return t&&t.length>0?t.map((t=>{if(q(t)){const o=new Je(t.key,i,e,t.label,t.pinned);return o.children=this.fromGroupColumns(o,t.children,i+1),o}return new Je(t.key,i,e)})):[]}generateColumnConfigByLeaves(e){return this.getLeaves().map((t=>e.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key))))}getMaxDepth(){const e=this.dfsIterator();return 0===e.length?0:Math.max(...e.map((e=>e.level)))+1}hasGroupColumn(){return!!this.children.find((e=>!e.isLeaf()))}hasLeftPinnedColumn(){return!!this.children.find((e=>"left"===e.pinned))}hasRightPinnedColumn(){return!!this.children.find((e=>"right"===e.pinned))}isLeaf(){return!this.children||0===this.children.length}iterator(e="dfs"){return"dfs"===e?this.dfsIterator():[]}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.dfsIterator().filter((e=>e.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=[],i=[];this.children.forEach((o=>{"left"===o.pinned?e.push(o):"right"===o.pinned?i.push(o):t.push(o)}));const o=[...e,...t,...i];return this.orderedChildren=o,o}isRoot(){return this.level===Je.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((t=>{e.push(...t.dfsIterator())})),this.iteratorCacheMap.set("dfs",e),e}}Je.ROOT_LEVEL=-1,Je.ROOT_KEY="#root-model#";var et=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class tt extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=Je.from(this.columns,this.groupColumns)}}et([s()],tt.prototype,"host",void 0),et([s()],tt.prototype,"columns",void 0),et([s()],tt.prototype,"groupColumns",void 0),et([s({writable:!0})],tt.prototype,"columnStructureModel",void 0),et([c("componentWillLoad")],tt.prototype,"componentWillLoad",null),et([c("watchColumns")],tt.prototype,"watchColumns",null),et([c("watchGroupColumns")],tt.prototype,"watchGroupColumns",null);class it{constructor(e,t,i,o,r,a,l,s,n,d,c,h,p,b,v,u,f=[]){this.key=e,this.label=t,this.pinned=i,this.colSpan=o,this.rowSpan=r,this.isViewStart=a,this.isViewEnd=l,this.isLeftEndPinned=s,this.isRightStartPinned=n,this.isNoPinnedEnd=d,this.headHasGroupColumn=c,this.headHasPinnedColumn=h,this.headMaxDepth=p,this.level=b,this.columnIndex=v,this.parent=u,this.children=f,this.iteratorCacheMap=new Map,this.leaves=[]}static from(e){const t=[],i=[],o=e.getMaxDepth(),r=e.hasGroupColumn(),a=e.hasLeftPinnedColumn()||e.hasRightPinnedColumn();let l=0;return e.iterator().forEach((e=>{const s=e.level>0?i[e.level-1]:null,n=r&&this.isParentStart(e),d=r&&this.isParentEnd(e),c=new it(e.key,e.label,s?s.pinned:e.pinned,r?this.getColSpan(e):null,r?e.isLeaf()?o-e.level:1:null,s?s.isViewStart&&n:n,s?s.isViewEnd&&d:d,s?s.isLeftEndPinned&&d:a&&this.isLeftEndPinned(e),s?s.isRightStartPinned&&n:a&&this.isRightStartPinned(e),s?s.isNoPinnedEnd&&d:a&&this.isNoPinnedEnd(e),r,a,o,e.level,l,s);s?s.children.push(c):t.push(c),i[e.level]=c,i.length=e.level+1,e.isLeaf()&&l++})),t}static isLeftEndPinned(e){const t=e.parent.getOrderedChildren().filter((e=>"left"===e.pinned));return t[t.length-1]===e}static isRightStartPinned(e){return e.parent.getOrderedChildren().filter((e=>"right"===e.pinned))[0]===e}static isNoPinnedEnd(e){const t=e.parent.getOrderedChildren().filter((e=>!e.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(),i={};return t.forEach((e=>{i[e.level]=(i[e.level]||0)+1})),Math.max(...Object.values(i))}getLeaves(){if(this.leaves.length>0)return this.leaves;const e=this.iterator().filter((e=>e.isLeaf()));return this.leaves=e,e}iterator(e="dfs"){return"dfs"===e?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||0===this.children.length}}var ot=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class rt extends n{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}watchColumnStructureModel(){this.setRenderInputModel()}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(){z.register(E.getSubject(this.host,$),(e=>this.headRowRenderInputMap.get(e))),z.register(E.getSubject(this.host,G),(e=>this.headCellRenderInputMap.get(e))),z.register(E.getSubject(this.host,F),(e=>this.pinnedColumnBodyCellRenderInputMap.get(e)))}unRegisterRenderInputRICObserver(){z.unRegister(E.getSubject(this.host,$)),z.unRegister(E.getSubject(this.host,G)),z.unRegister(E.getSubject(this.host,F))}setRenderInputModel(){this.columnRenderInputModels=it.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((e=>e.getLeaves()))}}ot([s()],rt.prototype,"host",void 0),ot([s()],rt.prototype,"columnStructureModel",void 0),ot([s()],rt.prototype,"vegaTableColGroupRenderer",void 0),ot([c("connectedCallback")],rt.prototype,"connectedCallback",null),ot([c("disconnectedCallback")],rt.prototype,"disconnectedCallback",null),ot([c("componentWillLoad")],rt.prototype,"componentWillLoad",null),ot([c("watchColumnStructureModel")],rt.prototype,"watchColumnStructureModel",null);var at=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class lt extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new J({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}})}componentDidLoad(){}componentDidRender(){this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return;if(!this.host.shadowRoot.querySelector("vega-table-head-row"))return;const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),t=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[i,o]=this.getRowShadowThWidths(),r=this.getLeafWidths();e.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,r,o)})),t.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,r,o)}))}getRowShadowThWidths(){const e=this.host.shadowRoot.querySelector("vega-table-head-row").shadowRoot,t=e.querySelector("th:first-of-type"),i=e.querySelector(".vega-table-selection-column"),o=e.querySelector(".vega-table-expand-action-column"),r=e.querySelector("th:last-of-type");return t?[t.getBoundingClientRect().width+((null==i?void 0:i.getBoundingClientRect().width)||0),((null==o?void 0:o.getBoundingClientRect().width)||0)+r.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((t=>{var i;for(const[o,r]of e.entries())if(t===r)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}updateCellPinnedPosition(e,t,i,o,r){if(["left","right"].includes(e.pinned)){const a=t.shadowRoot.querySelector("th, td");if("left"===e.pinned){const t=i+o.slice(0,e.columnIndex).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"left",t)}if("right"===e.pinned){const t=U(e.colSpan)?e.colSpan:1,i=r+o.slice(e.columnIndex+(t-1)+1).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"right",i)}}}updateTableRowPinnedPosition(){const e=this.columnStructureModel.hasLeftPinnedColumn(),t=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),r=j(this.paddingX[1]),a=i-o-r-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach((i=>{const l=i.shadowRoot;if(e){const e=l.querySelector("th:first-of-type, td:first-of-type"),t=l.querySelector(".vega-table-selection-column");this.updatePinnedPosition(e,"left",0),this.updatePinnedPosition(t,"left",o)}if(t){const e=l.querySelector(".vega-table-expand-action-column"),t=l.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(e,"right",r),this.updatePinnedPosition(t,"right",0)}if(t||e){const e=l.querySelector(".vega-table-expanded-row-slot-container");if(e){const t=e.querySelector(".expanded-row-slot-inner");this.updatePinnedPosition(t,"left",o),t.style.width=`${a}px`}}}))}updatePinnedPosition(e,t,i){e&&(e.style.position="sticky",e.style.zIndex="1",e.style[t]=`${i}px`)}}at([s()],lt.prototype,"host",void 0),at([s()],lt.prototype,"columnStructureModel",void 0),at([s()],lt.prototype,"paddingX",void 0),at([s()],lt.prototype,"vegaTableRenderInputController",void 0),at([h()],lt.prototype,"pageResizeObserverSlimmer",void 0),at([c("componentDidLoad")],lt.prototype,"componentDidLoad",null),at([c("componentDidRender")],lt.prototype,"componentDidRender",null);var st=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const nt=class{constructor(e){r(this,e),this.vegaChange=a(this,"vegaChange",7),this.change=a(this,"change",7),this.vegaRowClick=a(this,"vegaRowClick",7),this.rowClick=a(this,"rowClick",7),this.vegaRowExpand=a(this,"vegaRowExpand",7),this.rowExpand=a(this,"rowExpand",7),this.vegaSelectChange=a(this,"vegaSelectChange",7),this.selectChange=a(this,"selectChange",7),this.vegaSelectAllChange=a(this,"vegaSelectAllChange",7),this.selectAllChange=a(this,"selectAllChange",7),this.vegaRowSelect=a(this,"vegaRowSelect",7),this.rowSelect=a(this,"rowSelect",7),this.vegaRowSelectAll=a(this,"vegaRowSelectAll",7),this.rowSelectAll=a(this,"rowSelectAll",7),this.globalSlimmers={},this.translationSlimmer=new se,this.vegaTableRenderModeController=new Qe,this.vegaTableColumnStructureModelController=new tt,this.vegaTableRenderInputController=new rt,this.vegaTablePinnedRenderer=new lt,this.vegaTableRenderer=new We,this.vegaTableHeaderRenderer=new Te,this.vegaTableBodyRenderer=new Ee,this.vegaTableRowRenderer=new Ye,this.vegaTableCellRenderer=new me,this.vegaTablePaginationRenderer=new Ae,this.vegaTableScrollContainerRenderer=new Ne,this.vegaTableExpandRowController=new xe,this.vegaTableRowSelectionController=new Se,this.vegaTableDataSourceController=new ke,this.vegaTablePaginationController=new _e,this.vegaTableEditableController=new Ke,this.vegaTableSortController=new $e,this.vegaTableColGroupRenderer=new Fe,this.vegaTableChildrenController=new He,this.pageResizeObserverSlimmer=new J,this.rowSelectionNotifySlimmer=oe(nt,"rowSelection","watchRowSelection"),this.rowExpandableNotifySlimmer=oe(nt,"rowExpandable","watchRowExpandable"),this.paddingXNotifySlimmer=oe(nt,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=oe(nt,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=oe(nt,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new re([D,A,L],(()=>this.host)),this.changeEventEmitter=ae(nt,D),this.selectChangeEventEmitter=ae(nt,M),this.selectAllChangeEventEmitter=ae(nt,N),this.rowClickEventEmitter=ae(nt,P),this.rowExpandEventEmitter=ae(nt,W),this.rowDividerNotifySlimmer=oe(nt,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=oe(nt,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=oe(nt,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=oe(nt,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=oe(nt,"currentData","watchCurrentData"),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(Ze),this.rowSelectEventEmitter=ae(nt,I),this.rowSelectAllEventEmitter=ae(nt,_),this.selectedRowKeySet=new fe(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new fe(new Set,(e=>{this.expandedRowKeySet=e})),this.currentBreakpoint=ee(),this.sortersMap=new le(new Map,(e=>{this.sortersMap=e})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new fe(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!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"}}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(e,t){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(e){}async closeExpandRow(e){}async closeAllExpandRow(){}async toggleExpandRow(e){}async clearSelection(){}async getSelection(){return p()}async setSelection(e){}async startRowEditMode(e){}async stopRowEditMode(e){}async stopAllRowEditMode(){}async getRowData(e){return p(e)}async getRowsData(){return p()}async getFormRef(e){return p(e)}async addNewRow(e={}){return p(e)}async saveEditRow(e){return p(e)}async saveAllEditRows(){}async getEditingRowsKey(){return p()}async removeRow(e){}render(){return b(e("slot",null)),this.vegaTableRenderer.render()}get host(){return l(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};st([u()],nt.prototype,"globalSlimmers",void 0),st([h()],nt.prototype,"translationSlimmer",void 0),st([h()],nt.prototype,"vegaTableRenderModeController",void 0),st([h()],nt.prototype,"vegaTableColumnStructureModelController",void 0),st([h()],nt.prototype,"vegaTableRenderInputController",void 0),st([h()],nt.prototype,"vegaTablePinnedRenderer",void 0),st([h()],nt.prototype,"vegaTableRenderer",void 0),st([h()],nt.prototype,"vegaTableHeaderRenderer",void 0),st([h()],nt.prototype,"vegaTableBodyRenderer",void 0),st([h()],nt.prototype,"vegaTableRowRenderer",void 0),st([h()],nt.prototype,"vegaTableCellRenderer",void 0),st([h()],nt.prototype,"vegaTablePaginationRenderer",void 0),st([h()],nt.prototype,"vegaTableScrollContainerRenderer",void 0),st([h()],nt.prototype,"vegaTableExpandRowController",void 0),st([h()],nt.prototype,"vegaTableRowSelectionController",void 0),st([h()],nt.prototype,"vegaTableDataSourceController",void 0),st([h()],nt.prototype,"vegaTablePaginationController",void 0),st([h()],nt.prototype,"vegaTableEditableController",void 0),st([h()],nt.prototype,"vegaTableSortController",void 0),st([h()],nt.prototype,"vegaTableColGroupRenderer",void 0),st([h()],nt.prototype,"vegaTableChildrenController",void 0),st([h()],nt.prototype,"pageResizeObserverSlimmer",void 0),st([h()],nt.prototype,"rowSelectionNotifySlimmer",void 0),st([h()],nt.prototype,"rowExpandableNotifySlimmer",void 0),st([h()],nt.prototype,"paddingXNotifySlimmer",void 0),st([h()],nt.prototype,"rowClickableNotifySlimmer",void 0),st([h()],nt.prototype,"scrollConfigNotifySlimmer",void 0),st([h()],nt.prototype,"eventsPrevent",void 0),st([h()],nt.prototype,"changeEventEmitter",void 0),st([h()],nt.prototype,"selectChangeEventEmitter",void 0),st([h()],nt.prototype,"selectAllChangeEventEmitter",void 0),st([h()],nt.prototype,"rowClickEventEmitter",void 0),st([h()],nt.prototype,"rowExpandEventEmitter",void 0),st([h()],nt.prototype,"rowDividerNotifySlimmer",void 0),st([h()],nt.prototype,"columnDividerNotifySlimmer",void 0),st([h()],nt.prototype,"densityNotifySlimmer",void 0),st([h()],nt.prototype,"isTemplateRenderModeNotifySlimmer",void 0),st([h()],nt.prototype,"currentDataNotifySlimmer",void 0),st([h()],nt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),st([h()],nt.prototype,"rowSelectEventEmitter",void 0),st([h()],nt.prototype,"rowSelectAllEventEmitter",void 0),nt.style=':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}*::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}@media (min-width: 320px){col.S\\:v-table-column{display:table-column}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column}}: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}';var dt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ct=class{constructor(e){r(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new re([D],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return Q(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return l(this)}};dt([u()],ct.prototype,"globalSlimmers",void 0),dt([h()],ct.prototype,"childChangeEventPrevent",void 0),dt([h()],ct.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ct.style=":host{display:contents}";const ht=(e,t)=>e&&Y(e)?`v-hidden ${e}:${t}`:"";var pt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class bt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-cell:last-of-type");this.columnDivider=e&&i!==this.host}}},{subStateName:"clickable",parentStateName:"rowClickable"}]})}}pt([s()],bt.prototype,"host",void 0),pt([s({writable:!0})],bt.prototype,"density",void 0),pt([s({writable:!0})],bt.prototype,"columnDivider",void 0),pt([s({writable:!0})],bt.prototype,"clickable",void 0);var vt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ut extends ne{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}vt([s({writable:!0})],ut.prototype,"checked",void 0),vt([s({writable:!0})],ut.prototype,"expanded",void 0),vt([s({writable:!0})],ut.prototype,"striped",void 0),vt([s({writable:!0})],ut.prototype,"rowDivider",void 0);var ft=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const wt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new bt,this.vegaTableRowStateSubscriber=new ut,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){const t=ht(this.breakpoint,"v-table-cell"),i=(()=>{let e;switch(this.textAlign){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})(),r=this.getCellOverflowClass(),a=[t,i,"vega-table-cell"];de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||a.push("break-word");const l=C(this.host,"vega-table"),s=l&&z.call(E.getSubject(l,F),this.host);return(null==s?void 0:s.isRightStartPinned)&&a.push("left-divider"),(null==s?void 0:s.isLeftEndPinned)&&a.push("right-divider"),(null==s?void 0:s.isNoPinnedEnd)&&a.push("hide-right-border"),Q(e(o,{class:k([`density-${H.formatCustom(this.density)}`,this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",this.clickable&&"clickable",this.checked&&"checked",this.striped&&"striped",this.expanded&&"expanded"])},e("td",{class:k(a),part:"cell",onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},e("div",{class:r},e("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 l(this)}};ft([u()],wt.prototype,"globalSlimmers",void 0),ft([h()],wt.prototype,"vegaTableCellStateController",void 0),ft([h()],wt.prototype,"vegaTableRowStateSubscriber",void 0),ft([h()],wt.prototype,"pageResizeObserverSlimmer",void 0),ft([h()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),wt.style=':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 gt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class mt extends n{render(){return e("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},e("td",null),e("td",{colSpan:this.colSpan,key:`${xe.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("div",{class:"expanded-row-slot-inner"},e("slot",null))),e("td",null))}}gt([s()],mt.prototype,"host",void 0),gt([s()],mt.prototype,"rowKey",void 0),gt([s()],mt.prototype,"expanded",void 0),gt([s()],mt.prototype,"checked",void 0),gt([s()],mt.prototype,"colSpan",void 0),gt([s()],mt.prototype,"striped",void 0);var yt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xt extends n{connectedCallback(){this.expandObserver=new S(this.isAcceptableTableExpandRowObserver.bind(this),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.expandObserver)}disconnectedCallback(){w.unregister(g,this.expandObserver)}isAcceptableTableExpandRowObserver(e){return"VEGA-TABLE"===e.host.tagName?"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===e.host.tagName?C(this.host,"vega-table")===C(e.host,"vega-table"):void 0}}function Rt(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function St(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}yt([s()],xt.prototype,"host",void 0),yt([s()],xt.prototype,"rowKey",void 0),yt([s({writable:!0})],xt.prototype,"expanded",void 0),yt([c("connectedCallback")],xt.prototype,"connectedCallback",null),yt([c("disconnectedCallback")],xt.prototype,"disconnectedCallback",null);var Ct=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class kt extends n{connectedCallback(){this.rowSelectionObserver=new S(Rt.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver)}}Ct([s({writable:!0})],kt.prototype,"checked",void 0),Ct([s()],kt.prototype,"host",void 0),Ct([s()],kt.prototype,"rowKey",void 0),Ct([c("connectedCallback")],kt.prototype,"connectedCallback",null),Ct([c("disconnectedCallback")],kt.prototype,"disconnectedCallback",null);var jt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Et extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.withMultipleSelection="multiple"===t}else this.withMultipleSelection=!1}}]})}}jt([s()],Et.prototype,"host",void 0),jt([s({writable:!0})],Et.prototype,"withMultipleSelection",void 0),jt([s()],Et.prototype,"vegaTableExpandRowColSpanController",void 0);var Ot=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Tt extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}getVisibleColumnsNumber(){const e=C(this.host,"vega-table"),t=ee(),i=e.children&&Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.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(i).filter((e=>!e.breakpoint||"default"!==t&&ce[t]>=ce[e.breakpoint])).length}}Ot([s()],Tt.prototype,"host",void 0),Ot([s({writable:!0})],Tt.prototype,"colSpan",void 0),Ot([s()],Tt.prototype,"withMultipleSelection",void 0),Ot([c("componentWillLoad")],Tt.prototype,"componentWillLoad",null),Ot([c("watchCurrentBreakpoint")],Tt.prototype,"watchCurrentBreakpoint",null),Ot([c("watchWithMultipleSelection")],Tt.prototype,"watchWithMultipleSelection",null);var Dt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const At=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new mt,this.vegaTableExpandRowExpandController=new xt,this.vegaTableExpandRowSelectionController=new kt,this.vegaTableExpandRowStateController=new Et,this.vegaTableExpandRowColSpanController=new Tt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}render(){return b(e("slot",null)),Q(e(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return l(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"]}}};Dt([u()],At.prototype,"globalSlimmers",void 0),Dt([h()],At.prototype,"vegaTableExpandRowRenderer",void 0),Dt([h()],At.prototype,"vegaTableExpandRowExpandController",void 0),Dt([h()],At.prototype,"vegaTableExpandRowSelectionController",void 0),Dt([h()],At.prototype,"vegaTableExpandRowStateController",void 0),Dt([h()],At.prototype,"vegaTableExpandRowColSpanController",void 0),Dt([h()],At.prototype,"pageResizeObserverSlimmer",void 0),Dt([h()],At.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),At.style=":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 Lt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Mt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedFooter}},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}handleDisconnectedCallback(){he.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(e){this.tableFootRef&&he.removeZIndex(this.tableFootRef,"base"),this.fixed&&he.setZIndex(e,"base"),this.tableFootRef=e}}Lt([s()],Mt.prototype,"host",void 0),Lt([s({writable:!0})],Mt.prototype,"fixed",void 0),Lt([s({writable:!0})],Mt.prototype,"rowDivider",void 0),Lt([c("disconnectedCallback")],Mt.prototype,"handleDisconnectedCallback",null);var Nt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Pt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootStateController=new Mt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.childChangeEventPrevent=new re([D],(()=>this.host)),this.fixed=!1,this.rowDivider=!1}render(){return Q(e(o,{class:{"fixed-footer":this.fixed,"row-divider":this.rowDivider},ref:e=>this.vegaTableFootStateController.handleTableFootRefChange(e)},e("tfoot",null,e("slot",null))),this.host)}get host(){return l(this)}};Nt([u()],Pt.prototype,"globalSlimmers",void 0),Nt([h()],Pt.prototype,"vegaTableFootStateController",void 0),Nt([h()],Pt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Nt([h()],Pt.prototype,"childChangeEventPrevent",void 0),Pt.style=':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 Wt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class It extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-foot-cell:last-of-type");this.columnDivider=e&&i!==this.host}}}]})}}Wt([s({writable:!0})],It.prototype,"density",void 0),Wt([s({writable:!0})],It.prototype,"columnDivider",void 0);var _t=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class zt extends n{render(){return e("td",{class:{"vega-table-cell":!0,"break-word":!de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[ht(this.breakpoint,"v-table-cell")]:!0}},e("div",{class:k(["vega-table-column",this.textAlign])},e("span",{class:"vega-table-column-label"},e("slot",null))))}}_t([s()],zt.prototype,"host",void 0),_t([s()],zt.prototype,"breakpoint",void 0),_t([s()],zt.prototype,"textAlign",void 0);var Kt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Bt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootCellStateController=new It,this.vegaTableFootCellRenderer=new zt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee()}render(){return Q(e(o,{class:{[`density-${H.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width}},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return l(this)}};Kt([u()],Bt.prototype,"globalSlimmers",void 0),Kt([h()],Bt.prototype,"vegaTableFootCellStateController",void 0),Kt([h()],Bt.prototype,"vegaTableFootCellRenderer",void 0),Kt([h()],Bt.prototype,"pageResizeObserverSlimmer",void 0),Kt([h()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Bt.style=':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 Vt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class $t extends n{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"})}render(){return e("tr",null,e("td",{style:{width:this.paddingX[0]}}),this.renderFooterSelectionCell(),e("slot",null),this.renderFooterExpandableCell(),e("td",{style:{width:this.paddingX[1]}}))}}Vt([s()],$t.prototype,"host",void 0),Vt([s()],$t.prototype,"paddingX",void 0),Vt([s()],$t.prototype,"selectionType",void 0),Vt([s()],$t.prototype,"expandable",void 0);var Gt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Ft extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"}]}),this.updateSelectionType=e=>{if(e){const{type:t}=e;this.selectionType=t}else this.selectionType=null}}}Gt([s()],Ft.prototype,"host",void 0),Gt([s({writable:!0})],Ft.prototype,"selectionType",void 0),Gt([s({writable:!0})],Ft.prototype,"paddingX",void 0),Gt([s({writable:!0})],Ft.prototype,"columnDivider",void 0),Gt([s({writable:!0})],Ft.prototype,"density",void 0),Gt([s({writable:!0})],Ft.prototype,"expandable",void 0);var Xt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Ht=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableFootRowStateController=new Ft,this.vegaTableFootRowRenderer=new $t,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.pageResizeObserverSlimmer=new J,this.currentBreakpoint=ee(),this.expandable=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return l(this)}};Xt([u()],Ht.prototype,"globalSlimmers",void 0),Xt([h()],Ht.prototype,"vegaTableFootRowStateController",void 0),Xt([h()],Ht.prototype,"vegaTableFootRowRenderer",void 0),Xt([h()],Ht.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Xt([h()],Ht.prototype,"pageResizeObserverSlimmer",void 0),Ht.style=":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 Ut=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Yt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}Ut([s()],Yt.prototype,"host",void 0),Ut([s({writable:!0})],Yt.prototype,"fixed",void 0);var qt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const Qt=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new Yt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.headCellEventPrevent=new re([D],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&he.removeZIndex(this.tableHeadRef,"base"),this.fixed&&he.setZIndex(e,"base"),this.tableHeadRef=e}}disconnectedCallback(){he.removeZIndex(this.tableHeadRef,"base")}render(){return Q(e(o,{class:{"fixed-header":this.fixed},ref:e=>this.handleTableHeadRefChange(e)},e("thead",null,e("slot",null))),this.host)}get host(){return l(this)}};qt([u()],Qt.prototype,"globalSlimmers",void 0),qt([h()],Qt.prototype,"vegaTableHeadStateController",void 0),qt([h()],Qt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),qt([h()],Qt.prototype,"headCellEventPrevent",void 0),Qt.style=":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 Zt=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Jt extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"},{subStateName:"columnDivider",parentStateName:"columnDivider",callback:e=>{const t=this.host.parentElement;if(t){const i=t.querySelector("vega-table-head-cell:last-of-type");this.columnDivider=e&&i!==this.host}}}]})}}Zt([s({writable:!0})],Jt.prototype,"density",void 0),Zt([s({writable:!0})],Jt.prototype,"columnDivider",void 0);var ei=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ti extends n{render(){if(!this.sorter)return;const{icon:t,color:i}=ti.SORT_ICON_MAP[this.sortOrder||"default"];return e("span",{class:"vega-table-column-sorter"},e("vega-icon",{color:i,icon:pe.getIconKey(t),size:"size-12"}))}}ti.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"}},ei([s()],ti.prototype,"sorter",void 0),ei([s()],ti.prototype,"sortOrder",void 0);var ii=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class oi extends n{disconnectedCallback(){const e=C(this.host,"vega-table-head");e&&w.unregister(E.getSubject(e,X),this.observer)}componentWillLoad(){const e=C(this.host,"vega-table-head");e&&(this.hostTable=C(e,"vega-table"),this.isTemplateRenderMode=this.checkIsTemplateRenderMode(),this.observer=new S(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),w.register(E.getSubject(e,X),this.observer))}notifyOtherHeadCellOnClickSort(){const e=C(this.host,"vega-table-head");e&&w.notify(E.getSubject(e,X),{host:this.host})}isAcceptableObserver(e){return e.host!==this.host}observerListener(){var e;this.isTemplateRenderMode&&"single"===(null===(e=this.hostTable.sortConfig)||void 0===e?void 0:e.type)&&(this.sortOrder=void 0)}checkIsTemplateRenderMode(){return Array.from(this.hostTable.children).some((e=>e.tagName.startsWith("VEGA-TABLE-")))}}ii([s()],oi.prototype,"host",void 0),ii([s({writable:!0})],oi.prototype,"sortOrder",void 0),ii([s()],oi.prototype,"sortConfig",void 0),ii([c("disconnectedCallback")],oi.prototype,"disconnectedCallback",null),ii([c("componentWillLoad")],oi.prototype,"componentWillLoad",null);var ri=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ai=class{constructor(e){r(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=ae(ai,T),this.vegaTableHeadCellStateController=new Jt,this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.sortIconRenderer=new ti,this.vegaTableHeadCellSortConfigController=new oi,this.currentBreakpoint=ee(),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 i=de.isEnabled("VEGA_TABLE.REVERSE_SORT_ORDER")?["asc","desc"]:["desc","asc"],o=(null===(t=this.sortConfig)||void 0===t?void 0:t.disableUnsorted)?i:[...i,null];return o[(o.indexOf(e)+1)%o.length]}}render(){const t=this.sorter?{role:"button",onKeyDown:be(),tabIndex:0,onClick:e=>this.handleSort(e)}:null,i=C(this.host,"vega-table"),r=i&&z.call(E.getSubject(i,G),this.host);return Q(e(o,{class:{[`density-${H.formatCustom(this.density)}`]:!0,sortable:!!this.sorter,"column-divider":this.columnDivider},style:{width:this.width}},e("th",Object.assign({class:{"vega-table-cell":!0,"break-word":!de.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":null==r?void 0:r.headHasGroupColumn,"hide-right-border":(null==r?void 0:r.isViewEnd)||(null==r?void 0:r.isNoPinnedEnd),"right-divider":null==r?void 0:r.isLeftEndPinned,"left-divider":null==r?void 0:r.isRightStartPinned,[ht(this.breakpoint,"v-table-cell")]:!0}},t,{colSpan:null==r?void 0:r.colSpan,rowSpan:null==r?void 0:r.rowSpan}),e("div",{class:k(["vega-table-column",this.textAlign])},e("span",{class:"vega-table-column-label"},e("slot",null)),this.sortIconRenderer.render()))),this.host)}get host(){return l(this)}};pe.register({"chevron-up":ve,"chevron-down":ue,"arrow-up-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<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>'},"circle-arrow-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<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>'},"circle-arrow-up":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<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>'}}),ri([u()],ai.prototype,"globalSlimmers",void 0),ri([h()],ai.prototype,"clickEventEmitter",void 0),ri([h()],ai.prototype,"vegaTableHeadCellStateController",void 0),ri([h()],ai.prototype,"pageResizeObserverSlimmer",void 0),ri([h()],ai.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ri([h()],ai.prototype,"sortIconRenderer",void 0),ri([h()],ai.prototype,"vegaTableHeadCellSortConfigController",void 0),ai.style=':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 li=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class si extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=t=>{if("multiple"===this.selectionType)return e("th",{rowSpan:t.startRowSpan,class:{"vega-table-selection-column":!0,hidden:t.isStartHidden}},!this.hideSelectAll&&e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,onClick:this.handleClick,ref:e=>{O.addUniqueObserverToNode(e,D,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;U(t)&&t!==this.checkedAll&&w.notify(y,{host:this.host,checked:t})}},this.renderHeaderExpandableCell=t=>this.expandable&&e("th",{rowSpan:t.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:t.isEndHidden}}),this.handleClick=e=>{e.stopPropagation(),z.call(E.getSubject(C(this.host,"vega-table"),V),{host:this.host,checked:!this.checkedAll}).defaultPrevented&&e.preventDefault()}}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var t,i;const o=this.getRowRenderInput();return e("tr",{class:{"is-group-row":o.headHasGroupColumn,"is-pinned-row":o.headHasPinnedColumn}},e("th",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]},rowSpan:o.startRowSpan,class:{hidden:o.isStartHidden}}),this.renderHeaderSelectionCell(o),e("slot",null),this.renderHeaderExpandableCell(o),e("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]},rowSpan:o.endRowSpan,class:{hidden:o.isEndHidden}}))}getRowRenderInput(){const e={},t=C(this.host,"vega-table"),i=t&&z.call(E.getSubject(t,$),this.host),o=null==i?void 0:i[0],r=null==i?void 0:i[i.length-1];return o&&(e.headHasGroupColumn=o.headHasGroupColumn,e.headHasPinnedColumn=o.headHasPinnedColumn,e.headHasGroupColumn&&(e.startRowSpan="multiple"===this.selectionType&&0===o.level?o.headMaxDepth:o.rowSpan,e.isStartHidden=o.headHasGroupColumn&&("multiple"===this.selectionType&&o.level>0||!o.isViewStart))),r&&r.headHasGroupColumn&&(e.endRowSpan=r.rowSpan,e.isEndHidden=o.headHasGroupColumn&&!r.isViewEnd),e}}li([s()],si.prototype,"host",void 0),li([s()],si.prototype,"paddingX",void 0),li([s()],si.prototype,"selectionType",void 0),li([s()],si.prototype,"hideSelectAll",void 0),li([s()],si.prototype,"selectAllDisabled",void 0),li([s()],si.prototype,"checkedAll",void 0),li([s()],si.prototype,"expandable",void 0),li([s()],si.prototype,"isEmptyTable",void 0),li([s()],si.prototype,"isTemplateRenderMode",void 0),li([c("connectedCallback")],si.prototype,"connectedCallback",null),li([c("disconnectedCallback")],si.prototype,"disconnectedCallback",null),li([c("componentDidLoad")],si.prototype,"componentDidLoad",null);var ni=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class di extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(St.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),w.register(y,this.rowSelectionAllObserver)}}ni([s()],di.prototype,"host",void 0),ni([s({writable:!0})],di.prototype,"checkedAll",void 0),ni([c("connectedCallback")],di.prototype,"connectedCallback",null),ni([c("disconnectedCallback")],di.prototype,"disconnectedCallback",null);var ci=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class hi extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(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=0===e.length}}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}ci([s()],hi.prototype,"host",void 0),ci([s({writable:!0})],hi.prototype,"expandable",void 0),ci([s({writable:!0})],hi.prototype,"selectionType",void 0),ci([s({writable:!0})],hi.prototype,"paddingX",void 0),ci([s({writable:!0})],hi.prototype,"columnDivider",void 0),ci([s({writable:!0})],hi.prototype,"density",void 0),ci([s({writable:!0})],hi.prototype,"isTemplateRenderMode",void 0),ci([s({writable:!0})],hi.prototype,"isEmptyTable",void 0);var pi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const bi=class{constructor(e){r(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new hi,this.vegaTableHeadRowRenderer=new si,this.vegaTableHeadRowController=new di,this.headCellEventPrevent=new re([T],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=ee(),this.expandable=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return l(this)}};pi([u()],bi.prototype,"globalSlimmers",void 0),pi([h()],bi.prototype,"vegaTableHeadRowStateController",void 0),pi([h()],bi.prototype,"vegaTableHeadRowRenderer",void 0),pi([h()],bi.prototype,"vegaTableHeadRowController",void 0),pi([h()],bi.prototype,"headCellEventPrevent",void 0),pi([h()],bi.prototype,"pageResizeObserverSlimmer",void 0),pi([h()],bi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),bi.style=":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 vi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class ui extends n{constructor(){super(...arguments),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"},e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",checked:this.checked,onClick:this.handleClick,ref:e=>{O.addUniqueObserverToNode(e,D,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"},e("div",{class:"vega-table-expand-icon-wrapper"},e("vega-icon",{icon:pe.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=e=>{"vegaChange"===e.eventName&&this.vegaTableRowSelectionController.handleRowSelect(e.detail)},this.handleClick=e=>{e.stopPropagation(),z.call(E.getSubject(this.parentTableRef,B),{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 t,o;return e(i,null,this.renderExpandRowSpace(this.rowKey),e("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},e("td",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderRowSelection(),e("slot",null),this.renderExpandIcon(),e("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(t){return this.expandable&&e("tr",{key:`vega-table-expand-row-space-${t}`,class:"expand-row-space"})}setParentTableRef(){this.parentTableRef=C(this.host,"vega-table")}}pe.register({"chevron-down":ue}),vi([s()],ui.prototype,"host",void 0),vi([s()],ui.prototype,"rowKey",void 0),vi([s()],ui.prototype,"checked",void 0),vi([s()],ui.prototype,"clickable",void 0),vi([s()],ui.prototype,"clicked",void 0),vi([s()],ui.prototype,"expanded",void 0),vi([s()],ui.prototype,"paddingX",void 0),vi([s()],ui.prototype,"expandable",void 0),vi([s()],ui.prototype,"vegaClick",void 0),vi([s()],ui.prototype,"selectionType",void 0),vi([s()],ui.prototype,"vegaTableRowSelectionController",void 0),vi([s()],ui.prototype,"vegaTableRowExpandController",void 0),vi([s()],ui.prototype,"vegaTableRowClickController",void 0),vi([s()],ui.prototype,"expandEventEmitter",void 0),vi([c("connectedCallback")],ui.prototype,"connectedCallback",null);var fi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class wi extends n{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,w.notify(m,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver),w.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(St.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),w.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(St.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}}fi([s()],wi.prototype,"host",void 0),fi([s()],wi.prototype,"selectionType",void 0),fi([s()],wi.prototype,"rowKey",void 0),fi([s({writable:!0})],wi.prototype,"checked",void 0),fi([c("connectedCallback")],wi.prototype,"connectedCallback",null),fi([c("disconnectedCallback")],wi.prototype,"disconnectedCallback",null);var gi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class mi extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){w.unregister(g,this.rowExpandObserver)}handleExpandIconClick(){z.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),K),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,w.notify(g,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new S(St.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.rowExpandObserver)}}gi([s()],mi.prototype,"host",void 0),gi([s()],mi.prototype,"rowKey",void 0),gi([s()],mi.prototype,"expandable",void 0),gi([s({writable:!0})],mi.prototype,"expanded",void 0),gi([s()],mi.prototype,"vegaTableRowRenderer",void 0),gi([c("connectedCallback")],mi.prototype,"connectedCallback",null),gi([c("disconnectedCallback")],mi.prototype,"disconnectedCallback",null);var yi=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class xi extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){w.unregister(x,this.rowClickObserver)}handleRowClick(){z.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),B),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(w.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(Rt.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),w.register(x,this.rowClickObserver)}}yi([s()],xi.prototype,"host",void 0),yi([s()],xi.prototype,"rowKey",void 0),yi([s({writable:!0})],xi.prototype,"clicked",void 0),yi([s()],xi.prototype,"checked",void 0),yi([s()],xi.prototype,"selectionType",void 0),yi([s()],xi.prototype,"vegaClick",void 0),yi([s()],xi.prototype,"vegaTableRowSelectionController",void 0),yi([s()],xi.prototype,"clickEventEmitter",void 0),yi([s()],xi.prototype,"vegaTableRowRenderer",void 0),yi([c("connectedCallback")],xi.prototype,"connectedCallback",null),yi([c("disconnectedCallback")],xi.prototype,"disconnectedCallback",null);var Ri=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};class Si extends ne{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(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"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Ri([s()],Si.prototype,"host",void 0),Ri([s({writable:!0})],Si.prototype,"expandable",void 0),Ri([s({writable:!0})],Si.prototype,"clickable",void 0),Ri([s({writable:!0})],Si.prototype,"paddingX",void 0),Ri([s({writable:!0})],Si.prototype,"selectionType",void 0),Ri([s({writable:!0})],Si.prototype,"columnDivider",void 0),Ri([s({writable:!0})],Si.prototype,"density",void 0),Ri([c("watchSelectionType")],Si.prototype,"watchSelectionType",null),Ri([c("componentWillLoad")],Si.prototype,"handleComponentWillLoad",null);var Ci=function(e,t,i,o){var r,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(l=(a<3?r(l):a>3?r(t,i,l):r(t,i))||l);return a>3&&l&&Object.defineProperty(t,i,l),l};const ki=class{constructor(e){r(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.vegaExpand=a(this,"vegaExpand",7),this.expand=a(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new ui,this.vegaTableRowSelectionController=new wi,this.vegaTableRowExpandController=new mi,this.vegaTableRowClickController=new xi,this.vegaTableRowStateController=new Si,this.clickEventEmitter=ae(ki,T),this.expandEventEmitter=ae(ki,L),this.checkboxValueChangeEventPrevent=new re([T],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new J,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.checkedNotifySlimmer=oe(ki,"checked","watchChecked"),this.expandedNotifySlimmer=oe(ki,"expanded","watchExpanded"),this.stripedNotifySlimmer=oe(ki,"striped","watchStriped"),this.rowDividerNotifySlimmer=oe(ki,"rowDivider","watchRowDivider"),this.currentBreakpoint=ee()}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return b(e("slot",null)),Q(e(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,striped:this.striped,[`density-${H.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return l(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};Ci([u()],ki.prototype,"globalSlimmers",void 0),Ci([h()],ki.prototype,"vegaTableRowRenderer",void 0),Ci([h()],ki.prototype,"vegaTableRowSelectionController",void 0),Ci([h()],ki.prototype,"vegaTableRowExpandController",void 0),Ci([h()],ki.prototype,"vegaTableRowClickController",void 0),Ci([h()],ki.prototype,"vegaTableRowStateController",void 0),Ci([h()],ki.prototype,"clickEventEmitter",void 0),Ci([h()],ki.prototype,"expandEventEmitter",void 0),Ci([h()],ki.prototype,"checkboxValueChangeEventPrevent",void 0),Ci([h()],ki.prototype,"pageResizeObserverSlimmer",void 0),Ci([h()],ki.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ci([h()],ki.prototype,"checkedNotifySlimmer",void 0),Ci([h()],ki.prototype,"expandedNotifySlimmer",void 0),Ci([h()],ki.prototype,"stripedNotifySlimmer",void 0),Ci([h()],ki.prototype,"rowDividerNotifySlimmer",void 0),ki.style=":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}";export{nt as vega_table,ct as vega_table_body,wt as vega_table_cell,At as vega_table_expand_row,Pt as vega_table_foot,Bt as vega_table_foot_cell,Ht as vega_table_foot_row,Qt as vega_table_head,ai as vega_table_head_cell,bi as vega_table_head_row,ki as vega_table_row}
@@ -1 +0,0 @@
1
- import{b as e,a as t,V as a,c as s,e as n,f as r,g as c,h as o,i,j as g,k as v,l as u,m as l,n as h,o as p,p as d,q as b,r as m,s as w,t as x,u as k,v as f,w as E,x as y,y as S,z as T,A as j,B as A,C as M,E as I,F as O,G as B,H as C,I as N,J as R,K as $,L as D,M as F,N as G,O as H,P as L,Q as q,R as z,S as J,T as K,U as P,W as Q,X as U,Y as V,Z as W,_ as X,$ as Y,a0 as Z,a1 as _}from"./p-8bd496b4.js";import{L as ee}from"./p-6e1ab235.js";const te=new Map([["vega-accordion",[e]],["vega-app-header-button",[t,a,s]],["vega-banner",[n,r]],["vega-breadcrumb",[t]],["vega-button",[t]],["vega-button-circle",[t]],["vega-button-group",[t]],["vega-button-link",[t]],["vega-calendar",[c,o,i,g,v]],["vega-carousel",[u]],["vega-checkbox",[c]],["vega-checkbox-group",[c]],["vega-chip",[n,t]],["vega-code-block",[c,l]],["vega-color-picker",[c]],["vega-combo-box",[c,h,p]],["vega-date-picker",[c,d]],["vega-date-picker-calendar",[b,d,m]],["vega-dropdown",[w,x,a,s,h,k,f]],["vega-dropdown-item",[t]],["vega-field-label",[t,E]],["vega-file-uploader",[c,y,l,S,T]],["vega-form",[j,A,M]],["vega-image-uploader",[c,l,I]],["vega-input",[c,O,B,E,C]],["vega-input-credit-card",[c,B,O]],["vega-input-numeric",[c]],["vega-input-passcode",[c,N]],["vega-input-phone-number",[c,R]],["vega-input-range",[c]],["vega-input-select",[c,p,f,$,D,E]],["vega-item-toggle",[F]],["vega-modal",[G,n]],["vega-left-nav",[H]],["vega-left-nav-group",[L]],["vega-left-nav-link",[q]],["vega-left-nav-section",[z]],["vega-pagination",[c,J]],["vega-popover",[K,P]],["vega-progress-tracker",[Q]],["vega-radio",[c,O,B]],["vega-radio-group",[c]],["vega-rich-text-editor",[c,U]],["vega-rich-text-editor-toolbar-button",[t]],["vega-rich-text-image-editor",[c]],["vega-rich-text-link-editor",[c]],["vega-segment-control",[c]],["vega-selection-chip",[c]],["vega-selection-chip-group",[c]],["vega-selection-tile",[c]],["vega-selection-tile-group",[c]],["vega-sidenav",[H]],["vega-sidenav-link",[t]],["vega-signature-capture",[c]],["vega-stepper",[c]],["vega-tab-group",[t]],["vega-table",[c,V,W,X,Y,Z,_]],["vega-table-head-cell",[t]],["vega-table-row",[t,e]],["vega-textarea",[c,B,E]],["vega-time-picker",[c]],["vega-toggle-switch",[c]]]);class ae{getHostName(){return this.vegaComponentName}getEventName(){return this.eventName}handle(e,t){const a=this.createEventTarget(e);a.style.display="none",e.appendChild(a);const s=this.createEvent(this.eventName);return t&&Object.defineProperty(s,"detail",{configurable:!0,value:t}),a.dispatchEvent(s),a.remove(),s}copyAttributesToTarget(e,t){e&&t&&Array.from(e.attributes).filter((e=>!e.name.startsWith("on"))).forEach((a=>{try{t.setAttribute(a.name,a.value)}catch(t){ee.error(`Delegated strategy copy ${e.tagName} attribute '${a.name}' error.`)}}))}createEvent(e){let t=new Event(e,{bubbles:!0,cancelable:!0});return"click"===e&&(t=new MouseEvent(e,{bubbles:!0,cancelable:!0})),t}}class se extends ae{constructor(){super(...arguments),this.eventName="click",this.vegaComponentName="vega-button"}createEventTarget(e){const t=document.createElement("button");return this.copyAttributesToTarget(e,t),t.type=e.type,t}}class ne extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-checkbox"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="checkbox",t.checked=e.checked,t}}class re extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-input-select"}createEventTarget(e){const t=document.createElement("select");return this.copyAttributesToTarget(e,t),e.value&&(t.value=e.value.toString()),t}}class ce extends ae{constructor(e){super(),this.vegaComponentName="vega-input",this.eventName=e}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type=e.type,t.value=e.value,t}}class oe extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-radio"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="radio",t.checked=e.checked,t}}class ie extends ae{constructor(){super(...arguments),this.vegaComponentName="vega-textarea",this.eventName="change"}createEventTarget(e){const t=document.createElement("textarea");return this.copyAttributesToTarget(e,t),t.value=e.value,t}}const ge=new class{constructor(){this.strategyRegistry=new Map,this.updateStrategyRegistry([new se,new ce("change"),new ce("focus"),new ce("blur"),new re,new ie,new ne,new oe])}isSupportDelegated(e,t){let a=!1;const s=e.tagName.toLowerCase();return this.strategyRegistry.get(s)&&this.strategyRegistry.get(s).get(t.getNativeName())&&(a=!0),a}updateRegistryFromEventSemantics(e){let t=[];const{global:a,components:s}=e;if(a&&Array.isArray(a.jqueryDelegatedEvent)&&(t=t.concat(a.jqueryDelegatedEvent)),s)for(const e in s)Array.isArray(s[e].jqueryDelegatedEvent)&&(t=t.concat(s[e].jqueryDelegatedEvent));t.length&&this.updateStrategyRegistry(t)}getStrategy(e,t){const a=e.tagName.toLowerCase();if(this.strategyRegistry&&this.strategyRegistry.get(a))return this.strategyRegistry.get(a).get(t.getNativeName())}updateStrategyRegistry(e){e.forEach((e=>{const t=e.getHostName(),a=e.getEventName();if(this.strategyRegistry.get(t))this.strategyRegistry.get(t).set(a,e);else{const s=new Map;s.set(a,e),this.strategyRegistry.set(t,s)}}))}},ve=new class{constructor(){this.config={},this.defaultEventSemantics={namespace:"vega"}}setSemantics(e){this.config=e,ge.updateRegistryFromEventSemantics(e)}getSemantics(e){return Object.assign({},this.defaultEventSemantics,this.getSemanticsInGlobal(),this.getSemanticsInComponents(e))}getEnabledEventIdsByComponent(e){return te.get(e)}getSemanticsInGlobal(){return this.config.global}getSemanticsInComponents(e){const t=e.tagName.toLocaleLowerCase();return this.config.components&&Object.prototype.hasOwnProperty.call(this.config.components,t)?this.config.components[t]:null}};export{ae as B,ve as i,ge as j}
@@ -1 +0,0 @@
1
- import{c as t,I as e,V as i,L as s,M as o}from"./p-6e1ab235.js";import{f as n,d as h,b as r}from"./p-d9671d27.js";import{n as c}from"./p-dd72ad9e.js";import{c as l}from"./p-6a334573.js";import{P as a}from"./p-10ac8b57.js";import{P as d,A as u}from"./p-40f39194.js";import{H as p}from"./p-161b9c5b.js";import{R as f}from"./p-c0036e71.js";import{C as v}from"./p-2d0d575f.js";import{S as m}from"./p-a528714c.js";import{O as g}from"./p-331a62d5.js";import{d as b,D as w}from"./p-8bd496b4.js";import{x as R}from"./p-5b71c85e.js";class j{canRetrieve(){return!0}retrieve(){const t=document.body;return this.showConfig.appendableElement.parentElement!==t&&t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],j.prototype,"showConfig",void 0);class y{canRetrieve(){return!this.showConfig.isScreenPosition}}class x extends y{canRetrieve(){return super.canRetrieve()&&!!this.showConfig.positionRelativeTo&&!!document.querySelector(this.showConfig.positionRelativeTo)}retrieve(){const t=document.querySelector(this.showConfig.positionRelativeTo);return this.showConfig.appendableElement.parentElement!==t&&t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],x.prototype,"showConfig",void 0);class C extends y{canRetrieve(){return super.canRetrieve()&&!!n(this.showConfig.target,"vega-modal")}retrieve(){return this.getVegaModalShowConfigContainer()}setElementSlot(t,e){var i;const s=null===(i=Array.from(t.children).find((t=>{const e=t.getAttribute("slot");return e&&["content","modal-content"].includes(e)})))||void 0===i?void 0:i.getAttribute("slot");s&&e.setAttribute("slot",s)}getVegaModalShowConfigContainer(){const t=n(this.showConfig.target,"vega-modal"),e=t.shadowRoot.querySelector(".vega-modal-content-with-scroll"),i=t.shadowRoot.querySelector(".modal-dialog");return this.setElementSlot(t,this.showConfig.appendableElement),t.append(this.showConfig.appendableElement),e||i}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t({writable:!0})],C.prototype,"showConfig",void 0);class O extends y{canRetrieve(){return super.canRetrieve()&&!!n(this.showConfig.target,".vega-popover")}retrieve(){const t=n(this.showConfig.target,".vega-popover");return t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],O.prototype,"showConfig",void 0);var S=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class E extends i{constructor(){super(...arguments),this.positionRelativeToWrapper=new x,this.vegaPopoverWrapper=new O,this.vegaModalWrapper=new C,this.defaultWrapper=new j}setContainer(){this.setContainerRetrievers();for(const t of this.containerRetrievers)if(t.canRetrieve())return void(this.container=t.retrieve())}setContainerRetrievers(){this.containerRetrievers=[this.positionRelativeToWrapper,this.vegaPopoverWrapper,this.vegaModalWrapper,this.defaultWrapper]}}S([t({writable:!0})],E.prototype,"container",void 0),S([t({writable:!0})],E.prototype,"showConfig",void 0),S([e()],E.prototype,"positionRelativeToWrapper",void 0),S([e()],E.prototype,"vegaPopoverWrapper",void 0),S([e()],E.prototype,"vegaModalWrapper",void 0),S([e()],E.prototype,"defaultWrapper",void 0);class A extends i{getPositionBox(t,e){const i=t||this.getPlacements(),s=e||this.getAlignments(),o=this.getTargetBoundBox(),n=this.getElementBoundBox(),h=this.getElementScrollDimension(),r=this.getSuitablePlacement(h,n,o,i),c=this.getSuitableAlignment(h,n,o,r,s),l=this.calculatePosition(n,o,r,c),a=this.getTranslocationBox(r);return l.placement=r,l.alignment=c,l.left+=a.X,l.top+=a.Y,l}getElementBoundBox(){const t=this.showConfig.appendableElement,e=t.classList.contains("vega-force-hidden");e&&t.classList.remove("vega-force-hidden");const i=t.getBoundingClientRect();return e&&t.classList.add("vega-force-hidden"),{width:i.width,height:i.height,left:i.left,top:i.top}}getPlacements(){const t=this.showConfig.placement;if("string"==typeof t){const e=d.filter((e=>e!==t));return[t,...e]}return Array.isArray(t)?t:[...d]}getAlignments(){const t=this.showConfig.alignment;if("string"==typeof t){const e=u.filter((e=>e!==t));return[t,...e]}return Array.isArray(t)?t:[...u]}calculatePosition(t,e,i,s){return{top:this.calculateTop(t,e,i,s),left:this.calculateLeft(t,e,i,s)}}getTranslocationBox(t){const e=Array.isArray(this.showConfig.placement)?this.showConfig.placement[0]:this.showConfig.placement,i=this.getTranslocation(),s={X:0,Y:0};if(p(i)){let o=i.X,n=i.Y;(e&&["left","right"].includes(e)&&["top","bottom"].includes(t)||e&&["top","bottom"].includes(e)&&["left","right"].includes(t))&&(o=i.Y,n=i.X),["bottom","top"].includes(t)&&(s.Y="top"===t?-n:n,s.X=o),["left","right"].includes(t)&&(s.X="left"===t?-o:o,s.Y=n)}return s}calculateLeft(t,e,i,s){switch(i){case"top":case"bottom":return"end"===s?e.left+e.width-t.width:"center"===s?e.left-(t.width-e.width)/2:e.left;case"left":return e.left-t.width;case"right":return e.left+e.width;default:throw new Error(`Unexpected placement: ${i}. Expected values are top, bottom, left, or right.`)}}calculateTop(t,e,i,s){switch(i){case"left":case"right":return"end"===s?e.top+e.height-t.height:"center"===s?e.top-(t.height-e.height)/2:e.top;case"top":return e.top-t.height;case"bottom":return e.top+e.height;default:throw new Error(`Unexpected placement: ${i}. Expected values are top, bottom, left, or right.`)}}getSuitablePlacement(t,e,i,o){const n=o[0];return o.find((s=>this.hasEnoughSpace(t,s,i,e)))||(s.warn(`\n No enough space found for placing element and we will keep using the defined placement:\n ${n}\n `),n)}getSuitableAlignment(t,e,i,o,n){const h=n[0];return n.find((s=>this.hasEnoughAlignmentSpace(t,i,e,o,s)))||(s.warn(`\n No enough space found for placing element and we will keep using the defined alignment:\n ${h}\n `),h)}hasEnoughAlignmentSpace(t,e,i,s,o){if(["top","bottom"].includes(s))switch(o){case"start":return e.left+i.width<=t.width;case"center":return e.left>=(i.width-e.width)/2&&e.left+e.width/2+i.width/2<=t.width;case"end":return e.left+e.width>=i.width}if(["right","left"].includes(s))switch(o){case"start":return e.top+i.height<=t.height;case"center":return e.top>=(i.height-e.height)/2&&e.top+e.height/2+i.height/2<=t.height;case"end":return e.top+e.height>=i.height}return!1}hasEnoughSpace(t,e,i,s){switch(e){case"top":return i.top>=s.height;case"bottom":return t.height-i.top-i.height>=s.height;case"left":return i.left>=s.width;case"right":return t.width-i.left-i.width>=s.width;default:return!1}}getTranslocation(){const t=this.showConfig.translocation;return t&&f.format(t,"translocation")}}var k=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class P extends A{getPosition(){return"relative"!==window.getComputedStyle(this.container).position&&s.warn("Calculate position should make container as 'position: relative', otherwise the result might not be accurate."),this.getPositionBox()}getTargetBoundBox(){const t=this.container.getBoundingClientRect(),e=this.showConfig.target.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top-t.top+this.container.scrollTop,left:e.left-t.left+this.container.scrollLeft}}getElementScrollDimension(){return{width:this.container.scrollWidth,height:this.container.scrollHeight}}}k([t()],P.prototype,"container",void 0),k([t()],P.prototype,"showConfig",void 0);class T extends A{getPosition(t){const e=t?this.getPositionBox([this.previousPositionBox.placement],[this.previousPositionBox.alignment]):this.getPositionBox();return this.previousPositionBox=e,e}getTargetBoundBox(){const t=this.showConfig.target.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,left:t.left}}getElementScrollDimension(){return{width:window.innerWidth,height:window.innerHeight}}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],T.prototype,"showConfig",void 0);var $=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class D extends i{constructor(){super(...arguments),this.bodyPositionStrategy=new P,this.screenPositionStrategy=new T}setCalculationStrategy(){this.positionStrategy=this.showConfig.isScreenPosition?this.screenPositionStrategy:this.bodyPositionStrategy}adjustPosition(t){this.adjustWidth(),this.adjustHeight(),this.applyPosition(this.positionStrategy.getPosition(t))}applyPosition(t){const e=this.showConfig.appendableElement;this.showConfig.isScreenPosition?e.style.position="fixed":e.classList.contains("date-picker-content-box")&&(e.style.position="absolute"),e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.classList.remove("vega-placement-left","vega-placement-right","vega-placement-top","vega-placement-bottom"),e.classList.remove("vega-alignment-start","vega-alignment-center","vega-alignment-end"),e.classList.add(`vega-placement-${t.placement}`),e.classList.add(`vega-alignment-${t.alignment}`)}adjustWidth(){if(this.showConfig.matchTargetWidth){const{width:t}=this.showConfig.target.getBoundingClientRect();this.setRelatedWidth("width",t)}else this.setRelatedWidth("width",this.showConfig.size),this.setRelatedWidth("minWidth",this.showConfig.minWidth),this.setRelatedWidth("maxWidth",this.showConfig.maxWidth)}setRelatedWidth(t,e){if(!e)return;const i=f.format(e,"size");i&&(this.showConfig.appendableElement.style[t]="number"==typeof i?`${i}px`:i)}adjustHeight(){if(this.showConfig.matchContainerHeight&&!this.showConfig.isScreenPosition){const{height:t}=this.showConfig.target.getBoundingClientRect();let e=this.container.scrollHeight-this.showConfig.target.offsetTop-t;this.showConfig.maxHeight&&(e=Math.min(e,this.showConfig.maxHeight)),this.showConfig.appendableElement.style.maxHeight=`${e}px`}else this.showConfig.maxHeight&&(this.showConfig.appendableElement.style.maxHeight=`${this.showConfig.maxHeight}px`)}}$([t()],D.prototype,"container",void 0),$([t()],D.prototype,"showConfig",void 0),$([e()],D.prototype,"bodyPositionStrategy",void 0),$([e()],D.prototype,"screenPositionStrategy",void 0);var B=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class L{constructor(t,e){var i;this.resizeObserverSlimmer=l(L,a,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"},{mapFrom:"disconnectResizeObserver",mapTo:"disconnectResizeObserver"}],[{callback:()=>{h(this.showConfig.target)&&h(this.showConfig.appendableElement)&&this.adjustPosition()},target:()=>[document.body,this.showConfig.appendableElement,this.showConfig.target]}]),this.elementAppenderContainerController=new E,this.positionCalculationController=new D,this.showConfigCallback=t,this.showConfigCallbackTarget=e;const s=this.getShowConfig();this.hideElementAppender(s.appendableElement),null===(i=s.appendableElement)||void 0===i||i.classList.add("vega-element-appender-appendable")}show(){this.setShowConfig(),this.showConfig.target?this.showConfig.appendableElement?(this.prepareShow(),this.adjustPosition(),this.setZIndex(),this.toggleShow(!0),this.connectResizeObserver()):s.error("No appendable element found, please add it at new elementAppender."):s.error("No target element found, please add it at new elementAppender.")}hide(){this.showConfig&&(this.toggleShow(!1),this.resetContainerPosition(),c.removeZIndex(this.showConfig.appendableElement,"base"))}onScroll(){var t;const e=this.showConfig.target.getBoundingClientRect();!this.showConfig.isScreenPosition||e.left===(null===(t=this.previousTargetRect)||void 0===t?void 0:t.left)&&e.top===this.previousTargetRect.top||this.adjustPosition(!0)}destroy(){this.showConfig&&(this.removeVisibleAppendElement(this.showConfig.appendableElement),this.resetContainerPosition(),c.removeZIndex(this.showConfig.appendableElement,"base"),this.showConfig.appendableElement.remove(),this.disconnectResizeObserver())}connectResizeObserver(){}disconnectResizeObserver(){}toggleShow(t){t?(this.showElementAppender(this.showConfig.appendableElement),this.saveVisibleAppendElement(this.showConfig.appendableElement)):(this.hideElementAppender(this.showConfig.appendableElement),this.removeVisibleAppendElement(this.showConfig.appendableElement))}showElementAppender(t){t.classList.contains("date-picker-content-box")?t.style.display="block":t.classList.remove("vega-force-hidden")}hideElementAppender(t){t&&(t.classList.contains("date-picker-content-box")?t.style.display="none":t.classList.add("vega-force-hidden"))}saveVisibleAppendElement(t){const e=L.containerMap.get(this.container);e&&e.visibleAppendElements.add(t)}removeVisibleAppendElement(t){const e=L.containerMap.get(this.container);e&&e.visibleAppendElements.delete(t)}resetContainerPosition(){const t=L.containerMap.get(this.container);if(t){const{visibleAppendElements:e,originPosition:i="static"}=t;0===e.size&&(this.container.style.position=i,L.containerMap.delete(this.container))}}setShowConfig(){this.showConfig=this.getShowConfig(),this.showConfig=Object.assign({matchTargetWidth:!1,matchContainerHeight:!1},this.showConfig),this.showConfig.target&&this.showConfig.appendableElement&&this.elementAppenderContainerController.setContainer()}prepareShow(){this.showConfig.isScreenPosition||this.initVisibleAppendElement(),this.showConfig.appendableElement.style.boxSizing="border-box",this.positionCalculationController.setCalculationStrategy()}initVisibleAppendElement(){const t=window.getComputedStyle(this.container).position;L.containerMap.has(this.container)||L.containerMap.set(this.container,{visibleAppendElements:new Set,originPosition:t}),"static"===t&&(this.container.style.position="relative")}adjustPosition(t){this.positionCalculationController.adjustPosition(t)}setZIndex(){c.setZIndex(this.showConfig.appendableElement,"base")}getShowConfig(){return this.showConfigCallback instanceof Function?this.showConfigCallback(this.showConfigCallbackTarget):this.showConfigCallback}}L.containerMap=new Map,B([e()],L.prototype,"resizeObserverSlimmer",void 0),B([e()],L.prototype,"elementAppenderContainerController",void 0),B([e()],L.prototype,"positionCalculationController",void 0);var W,z=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};!function(t){t.SHOW="show",t.HIDE="hide"}(W||(W={}));class M extends i{constructor(t){super(),this.childrenEA=[],this.currentEA=t}componentDidLoad(){this.register()}onShow(){this.notify(W.SHOW)}onHide(){this.notify(W.HIDE)}getParent(){return this.parentEA}getChildren(){return this.childrenEA}notify(t){const e=n(this.showConfig.target,".vega-element-appender-appendable");e&&v.notify(b.getSubject(e,R),{type:t,child:this.currentEA,callback:t=>{this.parentEA=t}})}register(){this.showConfig&&w.addUniqueObserverToNode(this.showConfig.appendableElement,R,(t=>{t.type===W.SHOW?this.childrenEA.push(t.child):t.type===W.HIDE&&(this.childrenEA=this.childrenEA.filter((e=>e!==t.child))),t.callback(this.currentEA)}))}}z([t()],M.prototype,"showConfig",void 0),z([o("componentDidLoad")],M.prototype,"componentDidLoad",null),z([o("show")],M.prototype,"onShow",null),z([o("hide")],M.prototype,"onHide",null);var H=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class V extends i{constructor(t,e,i="isDropdownShow",s=(()=>!1)){super(),this.hierarchyTreeManager=new M(this),this.registerElementAppenderListener=()=>{var t,e,i,s,o,n;this.unRegisterElementAppenderListener(),this.showConfig&&(null===(t=this.showConfig.target)||void 0===t||t.addEventListener("click",this.targetClickHandler),null===(e=this.showConfig.target)||void 0===e||e.addEventListener("mouseenter",this.targetMouseEnterHandler),null===(i=this.showConfig.target)||void 0===i||i.addEventListener("mouseleave",this.targetMouseLeaveHandler),null===(s=this.showConfig.target)||void 0===s||s.addEventListener("focusout",this.targetFocusoutHandler),null===(o=this.showConfig.appendableElement)||void 0===o||o.addEventListener("mouseenter",this.elementMouseEnterHandler),null===(n=this.showConfig.appendableElement)||void 0===n||n.addEventListener("mouseleave",this.elementMouseLeaveHandler)),window.addEventListener("mousedown",this.globalMouseDownHandler),document.addEventListener("scroll",this.globalScrollHandler,{capture:!0}),this.listenShadowRootElementScrolling()},this.targetClickHandler=()=>{this.shouldListenerWork("click")&&(this.isShowing()?this.hide():this.show())},this.targetMouseEnterHandler=()=>{this.shouldListenerWork("hover")&&(!1===this.isShowing()&&this.show(),this.clearDelayHideTimer())},this.targetMouseLeaveHandler=()=>{this.shouldListenerWork("hover")&&this.createDelayHideTimer()},this.targetFocusoutHandler=t=>{var e;r(t.relatedTarget,null===(e=this.showConfig)||void 0===e?void 0:e.appendableElement)||this.targetMouseLeaveHandler()},this.elementMouseEnterHandler=()=>{var t;null===(t=this.hierarchyTreeManager.getParent())||void 0===t||t.elementMouseEnterHandler(),this.shouldListenerWork("hover")&&!this.disableInteractiveGetter()&&this.clearDelayHideTimer()},this.elementMouseLeaveHandler=()=>{var t;null===(t=this.hierarchyTreeManager.getParent())||void 0===t||t.elementMouseLeaveHandler(),this.shouldListenerWork("hover")&&!this.disableInteractiveGetter()&&this.createDelayHideTimer()},this.globalMouseDownHandler=t=>{const e=t.composedPath()[0];this.hierarchyTreeManager.getChildren().some((t=>t.isShowing()))||!this.shouldListenerWork("custom")||!this.isShowing()||!this.showConfig||r(e,this.showConfig.appendableElement)||r(e,this.showConfig.target)||!this.showConfig.isScreenPosition&&n(e,"vega-modal")!==n(this.showConfig.target,"vega-modal")||this.hide()},this.globalScrollHandler=()=>{var t;this.showConfig&&this.showConfig.isScreenPosition&&this.isShowing()&&(null===(t=this.elementAppender)||void 0===t||t.onScroll())},this.createDelayHideTimer=()=>{this.delayHideTimer=setTimeout((()=>{this.hide(),clearTimeout(this.delayHideTimer)}),V.DELAY_HIDE_TIME)},this.clearDelayHideTimer=()=>{this.delayHideTimer&&clearTimeout(this.delayHideTimer)},this.shouldListenerWork=t=>{const e=this.getTrigger();switch(t){case"custom":return"none"!==e;case"click":return"click"===e;case"hover":return"hover"===e}throw new Error(`Unexpected trigger: ${t}. Expected values are custom, click, or hover.`)},this.showConfigFactory=t,this.getTrigger=e,this.isDropdownShowName=i,this.disableInteractiveGetter=s}connectedCallback(){null===this.elementAppender&&(this.setElementAppender(),this.registerElementAppenderListener())}disconnectedCallback(){this.unRegisterElementAppenderListener(),this.destroyElementAppender()}componentDidLoad(){this.initElementAppender()}getElementAppender(){return this.elementAppender}show(){this.elementAppender&&this.elementAppender.show(),this[this.isDropdownShowName]=!0}hide(){this.elementAppender&&this.elementAppender.hide(),this[this.isDropdownShowName]=!1,this.hierarchyTreeManager.getChildren().map((t=>{t.hide()}))}destroy(){this.destroyElementAppender(),this[this.isDropdownShowName]=!1}updateShowConfigFactory(t){this.showConfigFactory=t,this.initElementAppender()}destroyElementAppender(){this.elementAppender&&(this.elementAppender.destroy(),this.elementAppender=null)}initElementAppender(){this.setShowConfig(),this.setElementAppender(),this.registerElementAppenderListener()}setElementAppender(){this.elementAppender=new L(this.showConfigFactory,this)}isShowing(){return this[this.isDropdownShowName]}setShowConfig(){this.showConfig=this.showConfigFactory()}unRegisterElementAppenderListener(){var t,e,i,s,o,n;this.showConfig&&(null===(t=this.showConfig.target)||void 0===t||t.removeEventListener("click",this.targetClickHandler),null===(e=this.showConfig.target)||void 0===e||e.removeEventListener("mouseenter",this.targetMouseEnterHandler),null===(i=this.showConfig.target)||void 0===i||i.removeEventListener("mouseleave",this.targetMouseLeaveHandler),null===(s=this.showConfig.target)||void 0===s||s.removeEventListener("focusout",this.targetMouseLeaveHandler),null===(o=this.showConfig.appendableElement)||void 0===o||o.removeEventListener("mouseenter",this.elementMouseEnterHandler),null===(n=this.showConfig.appendableElement)||void 0===n||n.removeEventListener("mouseleave",this.elementMouseLeaveHandler)),window.removeEventListener("mousedown",this.globalMouseDownHandler),document.removeEventListener("scroll",this.globalScrollHandler),this.removeShadowRootElementScrolling()}listenShadowRootElementScrolling(){this.shadowRootElementScrollingObserver=new g(this.canAcceptShadowRootScrollEvent.bind(this),this.globalScrollHandler.bind(this)),v.register(m,this.shadowRootElementScrollingObserver)}canAcceptShadowRootScrollEvent(t){return Boolean(this.showConfig&&r(this.showConfig.target,t.host))}removeShadowRootElementScrolling(){v.unregister(m,this.shadowRootElementScrollingObserver)}}V.DELAY_HIDE_TIME=100,H([e()],V.prototype,"hierarchyTreeManager",void 0),H([o("connectedCallback")],V.prototype,"connectedCallback",null),H([o("disconnectedCallback")],V.prototype,"disconnectedCallback",null),H([o("componentDidLoad")],V.prototype,"componentDidLoad",null);export{V as E}
@@ -1 +0,0 @@
1
- import{d as t,e,b as n,h as s,A as r,T as o,B as i,H as a,l,c,m as d,n as h,o as u,p as m,q as w,I as T,r as E,S as p,j as g,t as R,u as k,f,v as B,w as b,C as I,x,s as O,N as L,y as N,z as y,D as A,E as C,F as j,G as H,M as S,J as v,K as D,U as M,L as P,O as V,P as F,R as U}from"./p-bf61d136.js";import{g as z}from"./p-a4670e23.js";import{i as $}from"./p-161b9c5b.js";import{C as G}from"./p-2d0d575f.js";import{d as J}from"./p-8bd496b4.js";import{a as W,b as K}from"./p-5b71c85e.js";import{d as X}from"./p-02841589.js";import{r as Y,i as Z}from"./p-d9671d27.js";import{c as _}from"./p-bf19682d.js";import{L as Q}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);$(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(){return[`<li${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(z());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(z())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(o.name,RTEListItemBlock.name,new i),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new d),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new h),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new u),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new w),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class q extends R{constructor(){super(...arguments),this.type=k.LIST}renderStyle(t){return(null==t?void 0:t.standalone)?{paddingLeft:"8px",marginLeft:"16px"}:null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new q}toJSON(){}}class RTEListBlock extends f{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(k.LIST,new q)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);$(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return I.from(e);case"customClass":return b.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag();return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new T(e,r)),e.parent.apply(new E(e)),n.forEach((t=>t.children.map((t=>t.apply(new p)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new T(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new E(t))})),0===e.children.length&&e.parent.apply(new E(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const o=t.selectedBlocks,i=o.map((t=>(t.children.map((t=>t.apply(new p))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new g(e,...i));else if(r)e.parent.apply(new T(e,...i));else{const t=e.children.indexOf(o[0]),n=e.children.indexOf(o[o.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new g(e,r,...i,a)),e.parent.apply(new E(e))}o.map((t=>{e.apply(new E(t))})),0===e.children.length&&e.parent.apply(new E(e))}toParagraph(t){const n=new e(z(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new T(e,t.imageBlockToBeInserted):t)}});class tt{}class et{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter($)),e}}const nt=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},st=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r]))continue;let o=0;for(const i of n)if(o=i.canHandle(t,r,e),o>0){const n=t.slice(r,r+o),a=new et(i,n);1===o&&i.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=o-1;break}if(0===o&&r<t.length){const n=Array.from(t[r].childNodes),o=this.process(Array.from(n),e);o.length>0&&s.push(...o)}}return s}isInvalidElement(t){return t.nodeType===Node.COMMENT_NODE||["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return nt.getElementToBlockStrategies()}};class rt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class ot extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class it extends ot{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class at extends L{constructor(t,e){super(),this.type=N.IMAGE,this.size=t,this.alt=e}static from(t,e){return[N.IMAGE,new at(t,e)]}toJSON(){return $(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new at(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={verticalAlign:"bottom"};switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}class RTEImageNode extends y{constructor(t,e,n,s){super(t,s),this.type=A.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,o=Object.assign({},t.annotations),{size:i}=o,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(o,["size"]),l=Object.assign(Object.assign({},a),{size:null!=i?i:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?at.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter($)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof at||t instanceof C)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(){const t=this.getAnnotationByType(N.IMAGE);return`<img${super.generateAttributeString(...[t&&t.alt?`alt="${t.alt}"`:null,`src="${this.url}"`,t&&t.size?`data-size="${t.size}"`:null].filter($))}>`}doAnnotationActionApply(t){const e=r.get(j.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(j.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class lt extends S{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends f{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=super.generateAttributeString(),e=this.children.map((t=>t.toHtml())).join("");return super.shouldRenderAsInternalWrapper()?e:[`<div${t}>`,e,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(z())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new w),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new H(t));const o=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,o)),o}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new lt(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const o=e.from({id:z(),type:"paragraph",nodes:[{id:z(),type:"text",text:"\n"}]});r.parent.apply(new T(r,o));const i=this.concatBlocksNodes(t.slice(1));return(0===i.length||i[0]&&""===i[0].text)&&i.push(new n(z(),"\n",o)),o.apply(new s(i)),o.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new E(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,o=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(o.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,o)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new g(e,o)):(e.apply(new v(n,r)),e.parent.apply(new T(e,o)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends f{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(){const t=this.htmlTag;return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}class ct extends S{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class dt extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new E(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new E(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const o=n.isEmpty();if(e.children.length&&s&&s.parent!==e)o&&e.apply(new E(n)),e.type===s.parent.type&&s.parent.apply(new ct(e));else if(this.isContentFirstNode(n)&&o&&(r=this.getNextNode(n)),o&&e.apply(new E(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new E(t)),s||o||(r=n)}0===e.children.length&&e.parent.apply(new E(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),o=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(o=this.getNextNode(n)),1===t.children.length?t.parent.apply(new E(t)):t.apply(new E(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new E(e)),r||(t.nextNode=n))}r?t.previousNode=r:o&&(t.nextNode=o)}}class ht extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new T(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}n.parent.apply(new g(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(N.LINK),e.apply(new s([n]))),e}}}class ut extends S{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class mt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:o}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==o){const e=r.text.substring(0,o),n=r.text.substring(o),i=r.cloneWithText(e),a=r.cloneWithText(n),l=[i,s];n&&l.push(a),t.apply(new g(r,...l)),t.apply(new E(r))}else t.apply(new g(r,s));else t.apply(0!==o?new T(r,s):new g(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class wt extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,o=this.createNewParagraph(n);if(o){const t=o.children[0];e.apply(0!==s?new T(r,t):new g(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class Tt extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),o=this.copyInlineStyleToNewNode(t);if(r.apply(new s([o])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new g(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],o=1===n.children.length&&n.children[0].isEmpty();if(n===r&&o){const r=n.parent.parent;if("list-item"!==r.type){const o=e.from({id:z(),type:"paragraph",nodes:[]});return o.apply(new s(t.children)),r.apply(new T(n.parent,o)),n.parent.apply(new E(n)),o}r.parent.apply(new T(r,t)),n.parent.apply(new E(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(N.LINK),e}}class Et extends S{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class pt extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new Et(e):new E(e))}}class gt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let o=e;if(s===e.children[0]&&0===r)e.parent.apply(new g(e,...n));else{const t=new v(s,r);e.apply(t),e.parent.apply(new T(e,...n)),o=t.newBlock}t.futureFocusBlock=o}}}const Rt=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new pt:new P),r.register(c.APPEND_CHILDREN,t,new rt),r.register(c.INSERT_CHILDREN_BEFORE,t,new ot),r.register(c.INSERT_CHILDREN_AFTER,t,new it),r.register(c.DELETE_BLOCK_CONTENT,t,new dt),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new Tt:new ht),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new wt),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new mt),r.register(c.PASTE_CONTENT,t,new gt)}};class kt{}class ft extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||"bold"===t.style.fontWeight||"700"===t.style.fontWeight||t.classList.contains("v-rte--bold")}}class Bt extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class bt extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class It extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.generateCustomStyleAnnotations(t);return Object.keys(e).length>0?{customStyle:e}:{}}generateCustomStyleAnnotations(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[X(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}}class xt extends kt{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Ot extends kt{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Lt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class Nt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=Y(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=V.filter((t=>t.key!==F.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of V)if(t.style.color.includes(e.key))return e.key;return null}}class yt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||"italic"===t.style.fontStyle||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class At extends kt{constructor(){super(...arguments),this.handlers=[new Bt,new bt,new It]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:"A"===t.tagName?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:z()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Ct extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes("line-through")||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class jt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes("underline")||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Ht extends kt{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class St extends kt{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class vt extends kt{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}class Dt extends kt{constructor(){super(...arguments),this.customAttributeHandler=new Bt,this.customStyleAnnotationHandler=new It,this.customClassAnnotationHandler=new bt}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(Dt.canHandleTags.includes(t.nodeName)){const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));if(n)return{inlineHtml:n}}return{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||1===t.childNodes.length&&t.childNodes[0].nodeType!==Node.TEXT_NODE){const e={htmlTag:t.nodeName.toLowerCase(),customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass};if(s){let n=s;for(;n.child&&t.parentNode&&n.child.htmlTag===t.parentNode.nodeName.toLowerCase();)n=n.child;n.child=e}else s=e}return s?Object.assign({},s):null}}Dt.canHandleTags=["A","ABBR","AUDIO","B","BDI","BDO","CITE","CODE","DEL","DFN","EMBED","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","VIDEO"];const Mt=new class{constructor(){this.handlers=[new Ot,new xt,new ft,new yt,new jt,new Ct,new Nt,new At,new Lt,new St,new vt,new Bt,new bt,new It,new At,new Ht,new Dt]}generate(t,e,n={autoMatchFormat:!0}){const s="A"===e.tagName;return this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof At)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{})}};class Pt extends tt{constructor(){super(...arguments),this.annotationHandler=new Ht}generateChildNodes(t,e,s){const r=[],o=!(!s||!1!==s.autoMatchFormat),i=Object.assign({},e);return t.forEach((t=>{const a=nt.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,i)),l)r.push(l);else if(Z(t)&&t.childNodes.length>0){const a=Mt.generate(n,t,Object.assign({parentAnnotations:o?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class Vt extends Pt{canHandle(t,e,n){const s=t[e];return!n.autoMatchFormat&&("DIV"!==s.nodeName||s.childNodes.length>0&&"IMG"!==s.childNodes[0].nodeName)&&Vt.canHandleTags.includes(t[e].nodeName)?1:0}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}generateHtmlBlock(t,e){return{id:z(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:Mt.generate(RTEHtmlBlock,t,e),children:[]}}}Vt.canHandleTags=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BUTTON","CAPTION","COL","COLGROUP","DIV","DD","DETAILS","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","HEADER","HR","HX","INPUT","LEGEND","MAIN","NAV","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR"];class Ft extends Pt{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return x.from({id:z(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Ut extends Pt{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:z(),type:"image",nodes:[{id:z(),type:"image",url:t.src,annotations:Mt.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},Mt.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class zt extends Pt{canHandle(t,e){let n=0;for(let s=e;s<t.length;s++){const e=t[s];if(e.nodeType!==Node.TEXT_NODE&&(!zt.canHandleTags.includes(e.nodeName)||""===e.textContent&&e.querySelector("IMG")))break;n++}return n}handle(t,s){const r=t[0].parentElement,o=s&&s.autoMatchFormat,i=this.generateChildNodes(t,o?Mt.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=o?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!o&&!a;return e.from(Object.assign({id:z(),type:a||"paragraph",nodes:i},l?{annotations:{internalWrapper:l}}:{annotations:Mt.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}}zt.canHandleTags=[...Dt.canHandleTags,"CODE","A","VEGA-RICH-TEXT-LINK-EDITOR","BR"];class $t extends tt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:z(),type:"text",text:t,annotations:e}}}U.registerRTEDTOClass("paragraph",e),U.registerRTEDTOClass("title",e),U.registerRTEDTOClass("subtitle",e),U.registerRTEDTOClass("heading-1",e),U.registerRTEDTOClass("heading-2",e),U.registerRTEDTOClass("heading-3",e),U.registerRTEDTOClass("heading-4",e),U.registerRTEDTOClass("heading-5",e),U.registerRTEDTOClass("heading-6",e),U.registerRTEDTOClass("heading-6",e),U.registerRTEDTOClass("list-item",RTEListItemBlock),U.registerRTEDTOClass("bullet-list",RTEListBlock),U.registerRTEDTOClass("number-list",RTEListBlock),U.registerRTEDTOClass("image",RTEImageBlock),U.registerRTEDTOClass("code-block",x),U.registerRTEDTOClass("html-block",RTEHtmlBlock),U.registerRTEDTOClass("text",n),U.registerRTEDTOClass("image",RTEImageNode),Rt.registerBlockBasicStrategies(e.name),Rt.registerBlockBasicStrategies(RTEListBlock.name),Rt.registerBlockBasicStrategies(RTEListItemBlock.name),Rt.registerBlockBasicStrategies(RTEImageBlock.name),Rt.registerBlockBasicStrategies(RTEHtmlBlock.name),nt.registerElementToBlockStrategy(new zt),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if($(s))return RTEImageBlock.from({id:z(),type:"image",nodes:[{id:z(),type:"image",url:s.src,annotations:Mt.generate(RTEImageNode,n,e)}],annotations:Mt.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:z(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:Mt.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new Ft),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:z(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:z(),type:"list-item",annotations:Mt.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),Mt.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,o=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),i=$(s)&&["UL","OL"].includes(s.nodeName);return r&&!o&&i?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:z(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:z(),type:"number-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:z(),type:"bullet-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new Vt),nt.registerElementToNodeStrategy(new class extends $t{canHandle(t,e){const n=t[e];return!Z(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),o=Object.assign({},s),i=t[0],a=Mt.generate(n,i,Object.assign({parentAnnotations:r?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:s},e));if("BR"===i.nodeName)return this.generateTextNode("\n",a);if(0===i.childNodes.length){const t=r?_(Object.assign(Object.assign({},n.supportsHtmlTag(i.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml,plainText:$(a.inlineHtml)})):a;return Object.assign({},this.generateTextNode("",t))}}}),nt.registerElementToNodeStrategy(new class extends $t{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),o=!(!e||!1!==e.autoMatchFormat),i=t[0],a=i.parentNode.nodeName.toLowerCase(),l=o&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(i.textContent),o?_(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}});class Gt{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new Jt(e)}}class Jt{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(Z(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=U.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(){return VegaRTEContent.fromJSON([{id:z(),type:"paragraph",nodes:[{id:z(),type:"text",text:""}]}])}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=t.replace(/>\s+<\/?/g,(t=>t.endsWith("</")?t:"><")).replace(/(>)[\n\t]+(?=[a-zA-Z0-9_\W])/g,"$1").replace(/([a-zA-Z0-9_\W])[\n\t]+(?=<)/g,"$1"),s=Gt.preserve(n),r=s.getProcessedHtml(),o=(new DOMParser).parseFromString(r,"text/html").body,i=Array.from(o.childNodes);s.restore(i);const a=st.process(i,e).filter($).map((t=>t.toDto(e))).filter($);return new VegaRTEContent(a)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone(this))):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&Q.warn("The 'options' parameter in toHtml method is deprecated and will be removed in the future."),this.children.map((t=>t.toHtml())).join("")}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&G.notify(J.getSubject(t,K),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new p)));const e=new RTEListItemBlock(z());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(z(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(c.DELETE_CHILDREN,VegaRTEContent.name,new P),r.register(c.APPEND_CHILDREN,VegaRTEContent.name,new rt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new ot),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new it),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new x(z(),this.getCodeContent(n),"plainText");e.apply(new g(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new E(t[n]))}}),r.register(c.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,o=O.getDOMByEntity(e);o&&G.notify(J.getSubject(o,W),{node:s,offset:n,updateDirectly:r})}});const Wt=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(t,e){const n=this.RTE_DTO_RENDERER_MAP.get(t);if(e&&n&&n.constructor.name!==e.constructor.name)throw new Error(`Renderer for type ${t} is already registered with a different class(${n.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(t,e)}registerRTEToolbarButtonRenderer(t,e){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(t,e)}getRTERenderer(t){return this.RTE_DTO_RENDERER_MAP.get(t)}getRTEToolbarButtonRenderer(t){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(t)}};export{Pt as B,nt as E,lt as I,ct as M,Wt as R,Gt as S,ut as U,VegaRTEContent as V,Rt as a,tt as b,RTEListItemBlock as c,RTEImageBlock as d,RTEListBlock as e,RTEImageNode as f,at as g,Mt as h,st as i}
@@ -1 +0,0 @@
1
- import{C as e}from"./p-2d0d575f.js";import{O as a}from"./p-331a62d5.js";import{b as t}from"./p-d9671d27.js";class n{constructor(e,a){this.vegaName=e,this.nativeName=a}getName(){return this.getVegaName()}getCurrentName(e){return"native"!==e.namespace?this.getVegaName():this.getNativeName()}getVegaName(){return this.vegaName}getNativeName(){return this.nativeName}isBrowserRawEvent(){return te.includes(this)}}const s=new n("vegaChange","change"),o=new n("vegaClick","click"),r=new n("vegaFocus","focus"),i=new n("vegaBlur","blur"),g=new n("vegaClose","close"),c=new n("vegaOpen","modalOpen"),w=new n("vegaValidate","validate"),l=new n("vegaFormSubmit","formSubmit"),v=new n("vegaFormReset","formReset"),h=new n("vegaRowClick","rowClick"),d=new n("vegaRowExpand","rowExpand"),C=new n("vegaSelectChange","selectChange"),p=new n("vegaRowSelect","rowSelect"),u=new n("vegaRowSelectAll","rowSelectAll"),m=new n("vegaSelectAllChange","selectAllChange"),S=new n("vegaPageSizeChange","pageSizeChange"),k=new n("vegaDropdownClick","dropdownClick"),b=new n("vegaCreate","create"),f=new n("vegaSearch","search"),R=new n("vegaSearchTrigger","searchTrigger"),A=new n("vegaHide","hide"),N=new n("vegaShow","show"),U=new n("vegaPopoverShow","popoverShow"),j=new n("vegaPopoverHide","popoverHide"),B=new n("vegaCancel","cancel"),E=new n("vegaRemove","remove"),F=new n("vegaPageUpdate","pageUpdate"),P=new n("vegaCurrentStepUpdate","currentStepUpdate"),x=new n("vegaToggleStatus","toggleStatus"),y=new n("vegaStateUpdate","stateUpdate"),D=new n("vegaGroupClick","groupClick"),H=new n("vegaMenuClick","menuClick"),M=new n("vegaExpand","expand"),O=new n("vegaShow","dropdownShow"),$=new n("vegaHide","dropdownHide"),I=new n("vegaSearch","dropdownSearch"),T=new n("vegaActionClick","actionClick"),q=new n("vegaEventClick","eventClick"),z=new n("vegaDateDblClick","dateDblClick"),V=new n("vegaDateClick","dateClick"),Y=new n("vegaCountryChange","countryChange"),G=new n("vegaActionButtonClick","actionButtonClick"),L=new n("vegaMoreActionClick","moreActionClick"),J=new n("vegaSelectedFileChange","selectedFileChange"),K=new n("vegaImageInserted","imageInserted"),Q=new n("vegaRetry","retry"),W=new n("vegaPreview","preview"),X=new n("vegaLabelButtonClick","labelButtonClick"),Z=new n("vegaReset","reset"),_=new n("vegaClear","clear"),ee=new n("vegaComplete","complete"),ae=new n("vegaPaste","paste"),te=[s,o,r,i,ae],ne=new n("vegaMonthYearChange","monthYearChange"),se=new n("vegaSelectionChange","selectionChange");class oe{constructor(e,a){this.title=e,this.host=a}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const re=new class{constructor(){this.cache=new Map}getSubject(e,a){return this.isExist(e,a)?this.cache.get(e).get(a):this.setSubject(e,a)}isExist(e,a){return!!e&&this.cache.has(e)&&void 0!==this.cache.get(e)&&this.cache.get(e).has(a)}getSubjectFromParentNodeByEventId(e,a){let n;for(const s of this.cache)if(t(e,s[0])&&s[1].has(a)){n=s[1].get(a);break}return n}setSubject(e,a){const t=`${e.tagName}:${a.getName()}`,n=new oe(t,e);return this.cache.get(e)||this.cache.set(e,new Map),this.cache.get(e).set(a,n),n}},ie=()=>!0;class ge{static addUniqueObserverToNode(t,n,s,o){if(t){const r=new a("function"==typeof o?o.bind(null):ie,s);ge.removeUniqueObserverFromNode(t,n),e.register(re.getSubject(t,n),r)}}static removeUniqueObserverFromNode(a,t){re.isExist(a,t)&&e.clearObserversBySubject(re.getSubject(a,t))}}export{d as $,l as A,v as B,w as C,ge as D,B as E,r as F,i as G,ae as H,ee as I,Y as J,N as K,A as L,x as M,c as N,y as O,D as P,H as Q,T as R,S,U as T,j as U,k as V,P as W,K as X,C as Y,m as Z,h as _,o as a,p as a0,u as a1,M as b,Z as c,re as d,g as e,G as f,s as g,q as h,z as i,L as j,V as k,F as l,E as m,b as n,f as o,ne as p,_ as q,se as r,O as s,$ as t,I as u,R as v,X as w,J as x,Q as y,W as z}
@@ -1 +0,0 @@
1
- import{a3 as t,a0 as e}from"./p-161b9c5b.js";class s{constructor(){this.WEEKDAYS_SHORT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.weekdays=t()}getWeekdayNames(){return this.WEEKDAYS_SHORT}generateDates(t){const e=t.startDate.toDate(),s=[];for(let r=0;r<t.count;r++)s.push(new Date(e)),e.setDate(e.getDate()+1);return s}generateWeekHead(){return this.weekdays.map((t=>this.getWeekdayNames()[t]))}}class r{constructor(t,e){this._weekdays=t,this._dateItems=e}get weekdays(){return this._weekdays}get dateItems(){return this._dateItems}}class a extends s{generate(t){const s=t.showWeekends;let a=[],n=[];this.generateDates(t).forEach(((t,s)=>{s%7||(a[s/7]=n=[]);const r=e.from(t);n.push(r)}));let i=this.generateWeekHead();return!1===s&&(i=i.slice(1,6),a=a.map((t=>t.slice(1,6)))),new r(i,a)}}export{s as C,a as M,r as a}
@@ -1 +0,0 @@
1
- import{i as o}from"./p-161b9c5b.js";import{R as i}from"./p-c0036e71.js";function r(r,f,e,s){return o(r)?{flex:`${i.formatCustom(r)}`}:{flexGrow:o(f)?`${i.formatCustom(f)}`:void 0,flexShrink:o(e)?`${i.formatCustom(e)}`:void 0,flexBasis:o(s)?`${i.formatCustom(s)}`:void 0}}export{r as f}