@globalpayments/vega 2.87.0-beta.1 → 2.88.0

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 (602) hide show
  1. package/dist/cjs/action-color-accessibility-validator-15fa91e4.js +1817 -0
  2. package/dist/cjs/{app-globals-885090b1.js → app-globals-6fbbcb2f.js} +16 -7
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-b7498e5a.js → child-nodes-event-prevent-slimmer-01930b4e.js} +1 -1
  4. package/dist/cjs/{code-block-15411c14.js → code-block-00fee034.js} +31 -13
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-5218e4b3.js → component-value-history-controller-slimmer.abstract-066645b3.js} +25 -5
  6. package/dist/cjs/{content-state-a69d99b4.js → content-state-d4f54659.js} +66 -54
  7. package/dist/cjs/{dark-mode-style-controller-bd765afb.js → dark-mode-style-controller-ed481250.js} +41 -2
  8. package/dist/cjs/{date-required-rule-d65727c5.js → date-required-rule-4cea8fc8.js} +1 -1
  9. package/dist/cjs/{design-token-3bc36220.js → design-token-ad9f413c.js} +3 -3
  10. package/dist/cjs/{element-appender-slimmer-f86e6811.js → element-appender-slimmer-d04aa177.js} +2 -2
  11. package/dist/cjs/{event-emit-slimmer-73c42d7e.js → event-emit-slimmer-5fd6e54a.js} +1 -1
  12. package/dist/cjs/{form-field-controller-slimmer-44091874.js → form-field-controller-slimmer-23d112bd.js} +1 -1
  13. package/dist/cjs/{image-annotation-action-aad07357.js → image-annotation-action-bcf2a1b4.js} +4 -4
  14. package/dist/cjs/index-58ea899e.js +4 -0
  15. package/dist/cjs/index.cjs.js +27 -17
  16. package/dist/cjs/{inject-keyboard-manager-d06b337e.js → inject-keyboard-manager-acaf1530.js} +1 -1
  17. package/dist/cjs/{internal-translation-controller-f0da24b2.js → internal-translation-controller-a1250419.js} +8 -0
  18. package/dist/cjs/{internal-vega-event-manager-063c17cb.js → internal-vega-event-manager-c515cf5e.js} +2 -2
  19. package/dist/cjs/{keyboard-manager-1e045791.js → keyboard-manager-6821709a.js} +1 -1
  20. package/dist/cjs/{keyboard-manager-slimmer-861d991f.js → keyboard-manager-slimmer-74528545.js} +1 -1
  21. package/dist/cjs/loader.cjs.js +13 -12
  22. package/dist/cjs/{month-view-generator-8ed9818e.js → month-view-generator-61578283.js} +1 -1
  23. package/dist/cjs/{public-rules-c7726702.js → public-rules-d2fbbbf5.js} +8 -8
  24. package/dist/cjs/{range-d6fb50a4.js → range-e797475c.js} +1 -1
  25. package/dist/cjs/replace-selected-text-action-a098523f.js +20 -0
  26. package/dist/cjs/{responsive-format-facade-9647775d.js → responsive-format-facade-bf330592.js} +1 -1
  27. package/dist/cjs/{rich-text-editor-required-rule-a1a070ce.js → rich-text-editor-required-rule-ba9d42fa.js} +1 -1
  28. package/dist/cjs/{split-cell-operation-39b19943.js → split-cell-operation-91ee6894.js} +79 -16
  29. package/dist/cjs/{state-border-formatter-1a483a9b.js → state-border-formatter-fd194e53.js} +1 -1
  30. package/dist/cjs/{string-format-strategy.abstract-2aec209d.js → string-format-strategy.abstract-af9fc35e.js} +1 -1
  31. package/dist/cjs/{string-input-formatter-slimmer-e061bd10.js → string-input-formatter-slimmer-a3fb1292.js} +1 -1
  32. package/dist/cjs/{string-mask-strategy-4bc07c00.js → string-mask-strategy-2054f3fb.js} +2 -2
  33. package/dist/cjs/{style-formatter-263d5eb6.js → style-formatter-7d60fb70.js} +2 -2
  34. package/dist/cjs/{time-required-rule-f9a7e897.js → time-required-rule-ba450bbd.js} +1 -1
  35. package/dist/cjs/{token-extension-927062b9.js → token-extension-8b69f7e1.js} +1136 -26
  36. package/dist/cjs/{translation-slimmer-a4a7f0eb.js → translation-slimmer-aee3fb1c.js} +1 -1
  37. package/dist/cjs/{type-guard-c1195e50.js → type-guard-424efe26.js} +1 -1
  38. package/dist/cjs/{valid-credit-card-number-rule-22f3e6cf.js → valid-credit-card-number-rule-6bd5834c.js} +1 -1
  39. package/dist/cjs/vega-accordion.cjs.entry.js +22 -15
  40. package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
  41. package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  44. package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -1
  45. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  47. package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
  48. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  49. package/dist/cjs/vega-button.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-calendar_4.cjs.entry.js +11 -11
  51. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  52. package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
  53. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  54. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  55. package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
  56. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  57. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
  58. package/dist/cjs/vega-color-swatch.cjs.entry.js +5 -5
  59. package/dist/cjs/vega-combo-box.cjs.entry.js +23 -10
  60. package/dist/cjs/vega-date-picker_2.cjs.entry.js +327 -267
  61. package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
  62. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  63. package/dist/cjs/vega-dropdown_5.cjs.entry.js +11 -11
  64. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  65. package/dist/cjs/{vega-event-id-f95480b7.js → vega-event-id-39dedd17.js} +2 -0
  66. package/dist/cjs/vega-field-label.cjs.entry.js +22 -5
  67. package/dist/cjs/vega-file-uploader.cjs.entry.js +20 -7
  68. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  69. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  70. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  71. package/dist/cjs/vega-form.cjs.entry.js +7 -7
  72. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  73. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  74. package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
  75. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  76. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  77. package/dist/cjs/vega-input-passcode.cjs.entry.js +23 -10
  78. package/dist/cjs/vega-input-phone-number.cjs.entry.js +22 -9
  79. package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
  80. package/dist/cjs/vega-input-select.cjs.entry.js +9 -9
  81. package/dist/cjs/vega-input.cjs.entry.js +23 -10
  82. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  83. package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
  84. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  85. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  86. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  87. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  89. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  90. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
  91. package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
  92. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  93. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +289 -193
  94. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +400 -0
  95. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +12 -12
  96. package/dist/cjs/vega-section-title.cjs.entry.js +3 -2
  97. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  98. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  99. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
  100. package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  102. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  103. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  104. package/dist/cjs/vega-table_11.cjs.entry.js +20 -9
  105. package/dist/cjs/vega-textarea.cjs.entry.js +17 -7
  106. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  107. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  108. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  109. package/dist/cjs/vega.cjs.js +13 -12
  110. package/dist/collection/collection-manifest.json +6 -0
  111. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +12 -5
  112. package/dist/collection/components/vega-accordion/vega-accordion.css +23 -0
  113. package/dist/collection/components/vega-accordion/vega-accordion.js +28 -0
  114. package/dist/collection/components/vega-box/vega-box.js +3 -3
  115. package/dist/collection/components/vega-calendar/vega-calendar.js +5 -5
  116. package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-copy-button-renderer.js +2 -2
  117. package/dist/collection/components/vega-code-block/vega-code-block.js +4 -0
  118. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.js +4 -1
  119. package/dist/collection/components/vega-combo-box/vega-combo-box.js +34 -0
  120. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.js +46 -0
  121. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +8 -4
  122. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +3 -3
  123. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +0 -3
  124. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +67 -6
  125. package/dist/collection/components/vega-field-label/vega-field-label.css +37 -0
  126. package/dist/collection/components/vega-field-label/vega-field-label.js +40 -0
  127. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.js +4 -1
  128. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +34 -0
  129. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +4 -1
  130. package/dist/collection/components/vega-input/vega-input.js +34 -0
  131. package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +4 -1
  132. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +34 -0
  133. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.js +4 -1
  134. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +34 -0
  135. package/dist/collection/components/vega-rich-text-editor/assets/redo.js +3 -0
  136. package/dist/collection/components/vega-rich-text-editor/assets/undo.js +3 -0
  137. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +1 -1
  138. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +1 -1
  139. package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation-style.js +2 -2
  140. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +5 -0
  141. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -0
  142. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +2 -0
  143. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +2 -0
  144. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +2 -0
  145. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +2 -0
  146. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +2 -0
  147. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -0
  148. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +1 -1
  149. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +1 -1
  150. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +1 -1
  151. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +1 -1
  152. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +1 -1
  153. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +1 -1
  154. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +4 -4
  155. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +1 -2
  156. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +1 -1
  157. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -0
  158. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -0
  159. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +5 -0
  160. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -0
  161. package/dist/collection/components/vega-rich-text-editor/dto/setup.js +29 -29
  162. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +105 -1
  163. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +50 -1
  164. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +2 -0
  165. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +2 -0
  166. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +2 -0
  167. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +4 -2
  168. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.js +18 -0
  169. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.js +20 -0
  170. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.js +61 -0
  171. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/assets/line-height.js +3 -0
  172. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/constants.js +11 -0
  173. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.js +41 -0
  174. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.js +41 -0
  175. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.js +65 -0
  176. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-extension.js +44 -0
  177. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.js +131 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.js +24 -0
  179. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.js +38 -0
  180. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.js +37 -0
  181. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.js +130 -0
  182. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.js +46 -0
  183. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.js +29 -0
  184. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.js +34 -0
  185. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.js +3 -0
  186. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.js +184 -0
  187. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/types.js +1 -0
  188. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.js +11 -0
  189. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.js +85 -0
  190. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.js +210 -0
  191. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.css +66 -0
  192. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.js +174 -0
  193. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +1 -1
  194. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +1 -1
  195. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +1 -1
  196. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +2 -0
  197. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +2 -0
  198. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +2 -0
  199. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +2 -0
  200. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +2 -0
  201. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +2 -0
  202. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +2 -0
  203. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +1 -1
  204. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +1 -1
  205. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +1 -1
  206. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -4
  207. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +5 -2
  208. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +2 -0
  209. package/dist/collection/components/vega-rich-text-editor/extensions/type.js +1 -0
  210. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +8 -2
  211. package/dist/collection/components/vega-rich-text-editor/public-api.js +4 -0
  212. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +1 -1
  213. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +1 -1
  214. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +1 -1
  215. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +3 -3
  216. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +1 -1
  217. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +1 -1
  218. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +1 -1
  219. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +1 -1
  220. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +1 -1
  221. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
  222. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +1 -1
  223. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +1 -1
  224. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +1 -1
  225. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +1 -1
  226. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +1 -0
  227. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +1 -1
  228. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +14 -0
  229. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.js +36 -0
  230. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.js +36 -0
  231. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +4 -1
  232. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +44 -0
  233. package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +1 -1
  234. package/dist/collection/components/vega-section-title/vega-section-title.js +2 -1
  235. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +4 -0
  236. package/dist/collection/components/vega-table/vega-table.css +1 -1
  237. package/dist/collection/components/vega-table/vega-table.js +28 -0
  238. package/dist/collection/components/vega-textarea/vega-textarea.js +35 -1
  239. package/dist/collection/constants/runtime-metrics-payload-definition/public-api/ThemeManager/runtime-metrics-payload-definition.js +30 -10
  240. package/dist/collection/constants/ui.js +1 -0
  241. package/dist/collection/global/scripts/before-vega-load.js +13 -0
  242. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
  243. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
  244. package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js +22 -2
  245. package/dist/collection/helpers/theme/controllers/action-color-accessibility-validator.js +34 -0
  246. package/dist/collection/helpers/theme/internal-theme-manager.js +39 -2
  247. package/dist/collection/helpers/theme/theme-manager.js +33 -2
  248. package/dist/collection/helpers/translation/locales/en.js +8 -0
  249. package/dist/esm/action-color-accessibility-validator-3d8efb64.js +1815 -0
  250. package/dist/esm/{app-globals-be458779.js → app-globals-98c3d676.js} +16 -7
  251. package/dist/esm/{child-nodes-event-prevent-slimmer-0a406a71.js → child-nodes-event-prevent-slimmer-2f823df2.js} +1 -1
  252. package/dist/esm/{code-block-ff52d912.js → code-block-6261a99d.js} +32 -14
  253. package/dist/esm/{component-value-history-controller-slimmer.abstract-ad5f29cd.js → component-value-history-controller-slimmer.abstract-07488472.js} +25 -5
  254. package/dist/esm/{content-state-6fccd284.js → content-state-9bf85e00.js} +66 -54
  255. package/dist/esm/{dark-mode-style-controller-e9a6b097.js → dark-mode-style-controller-fcda24ec.js} +40 -3
  256. package/dist/esm/{date-required-rule-70324452.js → date-required-rule-281aab50.js} +1 -1
  257. package/dist/esm/{design-token-0e6fb2c4.js → design-token-b7ce7ed4.js} +3 -3
  258. package/dist/esm/{element-appender-slimmer-afe5a638.js → element-appender-slimmer-3926470f.js} +2 -2
  259. package/dist/esm/{event-emit-slimmer-697ad0b7.js → event-emit-slimmer-0990037c.js} +1 -1
  260. package/dist/esm/{form-field-controller-slimmer-9e70a18d.js → form-field-controller-slimmer-24aca6c4.js} +1 -1
  261. package/dist/esm/{image-annotation-action-245eaa54.js → image-annotation-action-dadda36f.js} +4 -4
  262. package/dist/esm/index-090d31ca.js +4 -0
  263. package/dist/esm/index.js +18 -17
  264. package/dist/esm/{inject-keyboard-manager-05d5db90.js → inject-keyboard-manager-6317d1b3.js} +1 -1
  265. package/dist/esm/{internal-translation-controller-d8217d93.js → internal-translation-controller-0b9589d0.js} +8 -0
  266. package/dist/esm/{internal-vega-event-manager-1ac5ee9a.js → internal-vega-event-manager-dc4c3a37.js} +2 -2
  267. package/dist/esm/{keyboard-manager-26e2fc32.js → keyboard-manager-69761aa6.js} +1 -1
  268. package/dist/esm/{keyboard-manager-slimmer-012a9a9b.js → keyboard-manager-slimmer-c2d038f0.js} +1 -1
  269. package/dist/esm/loader.js +13 -12
  270. package/dist/esm/{month-view-generator-918f1f88.js → month-view-generator-4c1ee949.js} +1 -1
  271. package/dist/esm/polyfills/core-js.js +0 -0
  272. package/dist/esm/polyfills/dom.js +0 -0
  273. package/dist/esm/polyfills/es5-html-element.js +0 -0
  274. package/dist/esm/polyfills/index.js +0 -0
  275. package/dist/esm/polyfills/system.js +0 -0
  276. package/dist/esm/{public-rules-22320bdf.js → public-rules-da28b413.js} +8 -8
  277. package/dist/esm/{range-76f8e7dd.js → range-342cbce9.js} +1 -1
  278. package/dist/esm/replace-selected-text-action-a45bee4b.js +18 -0
  279. package/dist/esm/{responsive-format-facade-2a1d6398.js → responsive-format-facade-3ca1422d.js} +1 -1
  280. package/dist/esm/{rich-text-editor-required-rule-6eb90840.js → rich-text-editor-required-rule-46d0bc5b.js} +1 -1
  281. package/dist/esm/{split-cell-operation-7652e813.js → split-cell-operation-1d114aa3.js} +79 -16
  282. package/dist/esm/{state-border-formatter-a243f3fc.js → state-border-formatter-3ebc76a4.js} +1 -1
  283. package/dist/esm/{string-format-strategy.abstract-f6625ed7.js → string-format-strategy.abstract-95d691e1.js} +1 -1
  284. package/dist/esm/{string-input-formatter-slimmer-e801bd7e.js → string-input-formatter-slimmer-e18d202c.js} +1 -1
  285. package/dist/esm/{string-mask-strategy-53cb9b33.js → string-mask-strategy-43d846ac.js} +2 -2
  286. package/dist/esm/{style-formatter-a622a045.js → style-formatter-197e2fd3.js} +2 -2
  287. package/dist/esm/{time-required-rule-2fd8df50.js → time-required-rule-78d8ecf1.js} +1 -1
  288. package/dist/esm/{token-extension-5838c71b.js → token-extension-30011dc4.js} +1128 -27
  289. package/dist/esm/{translation-slimmer-32353a1c.js → translation-slimmer-49903fc8.js} +1 -1
  290. package/dist/esm/{type-guard-ed1004cc.js → type-guard-b18807dc.js} +1 -1
  291. package/dist/esm/{valid-credit-card-number-rule-7c9d6808.js → valid-credit-card-number-rule-fe1c8a9c.js} +1 -1
  292. package/dist/esm/vega-accordion.entry.js +22 -15
  293. package/dist/esm/vega-app-footer.entry.js +1 -1
  294. package/dist/esm/vega-app-header-button.entry.js +9 -9
  295. package/dist/esm/vega-banner.entry.js +3 -3
  296. package/dist/esm/vega-box.entry.js +6 -6
  297. package/dist/esm/vega-brand-logo.entry.js +1 -1
  298. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  299. package/dist/esm/vega-button-circle.entry.js +9 -9
  300. package/dist/esm/vega-button-group_2.entry.js +4 -4
  301. package/dist/esm/vega-button-link.entry.js +4 -4
  302. package/dist/esm/vega-button.entry.js +7 -7
  303. package/dist/esm/vega-calendar_4.entry.js +11 -11
  304. package/dist/esm/vega-card.entry.js +5 -5
  305. package/dist/esm/vega-carousel.entry.js +6 -6
  306. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  307. package/dist/esm/vega-chip.entry.js +9 -9
  308. package/dist/esm/vega-code-block.entry.js +16 -15
  309. package/dist/esm/vega-color-picker.entry.js +5 -5
  310. package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
  311. package/dist/esm/vega-color-swatch.entry.js +5 -5
  312. package/dist/esm/vega-combo-box.entry.js +23 -10
  313. package/dist/esm/vega-date-picker_2.entry.js +327 -267
  314. package/dist/esm/vega-dialog_2.entry.js +7 -7
  315. package/dist/esm/vega-divider.entry.js +5 -5
  316. package/dist/esm/vega-dropdown_5.entry.js +11 -11
  317. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  318. package/dist/esm/{vega-event-id-578c6c6d.js → vega-event-id-20494454.js} +2 -1
  319. package/dist/esm/vega-field-label.entry.js +22 -5
  320. package/dist/esm/vega-file-uploader.entry.js +20 -7
  321. package/dist/esm/vega-flag-icon.entry.js +5 -5
  322. package/dist/esm/vega-flex.entry.js +6 -6
  323. package/dist/esm/vega-font.entry.js +5 -5
  324. package/dist/esm/vega-form.entry.js +7 -7
  325. package/dist/esm/vega-grid.entry.js +5 -5
  326. package/dist/esm/vega-icon.entry.js +5 -5
  327. package/dist/esm/vega-image-uploader.entry.js +10 -10
  328. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  329. package/dist/esm/vega-input-numeric.entry.js +9 -9
  330. package/dist/esm/vega-input-passcode.entry.js +23 -10
  331. package/dist/esm/vega-input-phone-number.entry.js +22 -9
  332. package/dist/esm/vega-input-range.entry.js +7 -7
  333. package/dist/esm/vega-input-select.entry.js +9 -9
  334. package/dist/esm/vega-input.entry.js +23 -10
  335. package/dist/esm/vega-item-toggle.entry.js +3 -3
  336. package/dist/esm/vega-left-nav_5.entry.js +11 -11
  337. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  338. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  339. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  340. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
  341. package/dist/esm/vega-pagination.entry.js +8 -8
  342. package/dist/esm/vega-popover_2.entry.js +11 -11
  343. package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
  344. package/dist/esm/vega-radio_2.entry.js +9 -9
  345. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  346. package/dist/esm/vega-rich-text-editor_4.entry.js +285 -189
  347. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +396 -0
  348. package/dist/esm/vega-rich-text-table-properties_3.entry.js +12 -12
  349. package/dist/esm/vega-section-title.entry.js +3 -2
  350. package/dist/esm/vega-segment-control.entry.js +3 -3
  351. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  352. package/dist/esm/vega-selection-tile_2.entry.js +6 -6
  353. package/dist/esm/vega-sidenav_3.entry.js +6 -6
  354. package/dist/esm/vega-signature-capture.entry.js +10 -10
  355. package/dist/esm/vega-stepper.entry.js +6 -6
  356. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  357. package/dist/esm/vega-table_11.entry.js +20 -9
  358. package/dist/esm/vega-textarea.entry.js +17 -7
  359. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  360. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  361. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  362. package/dist/esm/vega.js +13 -12
  363. package/dist/sri/vega-sri-manifest.json +362 -350
  364. package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +1 -0
  365. package/dist/types/components/vega-accordion/vega-accordion.d.ts +14 -0
  366. package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +1 -1
  367. package/dist/types/components/vega-calendar/vega-calendar.d.ts +4 -4
  368. package/dist/types/components/vega-code-block/vega-code-block.d.ts +1 -0
  369. package/dist/types/components/vega-combo-box/slimmers/renderers/vega-combo-box-renderer.d.ts +1 -0
  370. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +10 -0
  371. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-size-controller.d.ts +20 -0
  372. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +2 -1
  373. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +1 -1
  374. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +0 -1
  375. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +22 -2
  376. package/dist/types/components/vega-field-label/vega-field-label.d.ts +12 -0
  377. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-renderer.d.ts +1 -0
  378. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +10 -0
  379. package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +1 -0
  380. package/dist/types/components/vega-input/vega-input.d.ts +10 -0
  381. package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +1 -0
  382. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +10 -0
  383. package/dist/types/components/vega-input-phone-number/slimmers/renderers/vega-input-phone-number-renderer.d.ts +1 -0
  384. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +10 -0
  385. package/dist/types/components/vega-rich-text-editor/assets/redo.d.ts +3 -0
  386. package/dist/types/components/vega-rich-text-editor/assets/undo.d.ts +3 -0
  387. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation-style.d.ts +1 -1
  388. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +5 -0
  389. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +2 -0
  390. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +2 -0
  391. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +2 -0
  392. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +2 -0
  393. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +2 -0
  394. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +2 -0
  395. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +3 -0
  396. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +2 -0
  397. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +2 -0
  398. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +5 -0
  399. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +2 -0
  400. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +31 -0
  401. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +19 -0
  402. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +2 -0
  403. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +2 -0
  404. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +2 -0
  405. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +2 -1
  406. package/dist/types/components/vega-rich-text-editor/extensions/line-height/action-handler-strategies/block-update-line-height-strategy.d.ts +18 -0
  407. package/dist/types/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.d.ts +16 -0
  408. package/dist/types/components/vega-rich-text-editor/extensions/line-height/annotations/line-height-annotation.d.ts +46 -0
  409. package/dist/types/components/vega-rich-text-editor/extensions/line-height/assets/line-height.d.ts +3 -0
  410. package/dist/types/components/vega-rich-text-editor/extensions/line-height/constants.d.ts +6 -0
  411. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.d.ts +23 -0
  412. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-filter-styles-strategy.d.ts +26 -0
  413. package/dist/types/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-from-json-handler.d.ts +17 -0
  414. package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-extension.d.ts +19 -0
  415. package/dist/types/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.d.ts +44 -0
  416. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/arrow-characters.d.ts +2 -0
  417. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/currency-characters.d.ts +2 -0
  418. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/default-categories.d.ts +7 -0
  419. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/latin-characters.d.ts +2 -0
  420. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/mathematical-characters.d.ts +2 -0
  421. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/constants/text-characters.d.ts +2 -0
  422. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-extension.d.ts +20 -0
  423. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-icon.d.ts +3 -0
  424. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/special-characters-toolbar-button-renderer.d.ts +83 -0
  425. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/types.d.ts +20 -0
  426. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/constants.d.ts +11 -0
  427. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/controllers/special-characters-panel-keyboard-controller.d.ts +18 -0
  428. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/slimmers/renderers/special-characters-panel-renderer.d.ts +66 -0
  429. package/dist/types/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.d.ts +58 -0
  430. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +2 -0
  431. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +2 -0
  432. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +2 -0
  433. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +2 -0
  434. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +2 -0
  435. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +2 -0
  436. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +2 -0
  437. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +3 -1
  438. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -0
  439. package/dist/types/components/vega-rich-text-editor/extensions/type.d.ts +14 -0
  440. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +1 -1
  441. package/dist/types/components/vega-rich-text-editor/interface.d.ts +8 -0
  442. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +5 -0
  443. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +3 -1
  444. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +3 -0
  445. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/redo-toolbar-button-slimmer.d.ts +9 -0
  446. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/undo-toolbar-button-slimmer.d.ts +9 -0
  447. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +1 -0
  448. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -0
  449. package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
  450. package/dist/types/components/vega-table/vega-table.d.ts +7 -0
  451. package/dist/types/components/vega-textarea/vega-textarea.d.ts +10 -0
  452. package/dist/types/components.d.ts +185 -11
  453. package/dist/types/constants/ui.d.ts +1 -1
  454. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
  455. package/dist/types/helpers/slimmers/component-value-history-controller-slimmer.abstract.d.ts +13 -0
  456. package/dist/types/helpers/theme/controllers/action-color-accessibility-validator.d.ts +10 -0
  457. package/dist/types/helpers/theme/internal-theme-manager.d.ts +28 -1
  458. package/dist/types/helpers/theme/theme-manager.d.ts +24 -1
  459. package/dist/types/helpers/theme/theme.d.ts +8 -0
  460. package/dist/types/helpers/translation/interface.d.ts +10 -1
  461. package/dist/types/types/components.type.d.ts +11 -10
  462. package/dist/types/types/public-api.d.ts +1 -0
  463. package/dist/types/vega-color-token-contrast-checker/src/check/checker.d.ts +177 -0
  464. package/dist/types/vega-color-token-contrast-checker/src/check/color-math.d.ts +125 -0
  465. package/dist/types/vega-color-token-contrast-checker/src/check/contrast-check-strategy.d.ts +38 -0
  466. package/dist/types/vega-color-token-contrast-checker/src/check/search.d.ts +58 -0
  467. package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.d.ts +122 -0
  468. package/dist/types/vega-color-token-contrast-checker/src/check/token-checks.generated.d.ts +2 -0
  469. package/dist/types/vega-color-token-contrast-checker/src/index.d.ts +2 -0
  470. package/dist/vega/index.esm.js +1 -1
  471. package/dist/vega/{p-636d890e.entry.js → p-01f617ee.entry.js} +1 -1
  472. package/dist/vega/{p-fdb97cb7.entry.js → p-03b32939.entry.js} +1 -1
  473. package/dist/vega/{p-2927b7a1.js → p-05dc6718.js} +1 -1
  474. package/dist/vega/{p-72e2a587.js → p-0b2ca33b.js} +1 -1
  475. package/dist/vega/p-0c460945.js +1 -0
  476. package/dist/vega/{p-d286da1d.entry.js → p-0d248322.entry.js} +1 -1
  477. package/dist/vega/{p-2b2fefc6.js → p-0d3830f1.js} +1 -1
  478. package/dist/vega/{p-c45acdc3.entry.js → p-0dafd071.entry.js} +1 -1
  479. package/dist/vega/{p-a67d52ce.entry.js → p-0edf9c6e.entry.js} +1 -1
  480. package/dist/vega/{p-a03341d8.entry.js → p-1385da31.entry.js} +1 -1
  481. package/dist/vega/{p-d1a6e126.entry.js → p-18d1d404.entry.js} +1 -1
  482. package/dist/vega/{p-aa8f4713.entry.js → p-1d752c37.entry.js} +1 -1
  483. package/dist/vega/p-1f563387.js +1 -0
  484. package/dist/vega/{p-e85497ec.entry.js → p-296c90bd.entry.js} +1 -1
  485. package/dist/vega/p-30f76962.js +3 -0
  486. package/dist/vega/p-3186995a.entry.js +1 -0
  487. package/dist/vega/p-3312e3dd.js +1 -0
  488. package/dist/vega/{p-a0dd08b1.js → p-36e46c4f.js} +1 -1
  489. package/dist/vega/p-36f3dd19.entry.js +1 -0
  490. package/dist/vega/{p-d5aad9f0.entry.js → p-3ab50c06.entry.js} +1 -1
  491. package/dist/vega/{p-31ebace1.js → p-3d6568cc.js} +1 -1
  492. package/dist/vega/{p-19df2831.entry.js → p-3e2e4b00.entry.js} +1 -1
  493. package/dist/vega/{p-ff5208f5.entry.js → p-416e89b0.entry.js} +1 -1
  494. package/dist/vega/{p-79bb216e.entry.js → p-4914a5f8.entry.js} +1 -1
  495. package/dist/vega/{p-ac26924d.entry.js → p-4f53b45d.entry.js} +1 -1
  496. package/dist/vega/p-50958342.js +1 -0
  497. package/dist/vega/{p-2d694684.js → p-518e0a24.js} +1 -1
  498. package/dist/vega/p-540bd78a.entry.js +1 -0
  499. package/dist/vega/p-5424e837.js +1 -0
  500. package/dist/vega/p-54ed506c.entry.js +1 -0
  501. package/dist/vega/{p-7e7e2f85.entry.js → p-5a960f83.entry.js} +1 -1
  502. package/dist/vega/{p-879d3cc9.entry.js → p-5c1a4fd7.entry.js} +1 -1
  503. package/dist/vega/{p-5b43a303.entry.js → p-5c8522eb.entry.js} +1 -1
  504. package/dist/vega/p-5f377954.js +1 -1
  505. package/dist/vega/{p-0b41b49a.entry.js → p-6205288e.entry.js} +1 -1
  506. package/dist/vega/{p-04a65b3f.js → p-6629a68b.js} +1 -1
  507. package/dist/vega/p-696d7b8f.js +1 -0
  508. package/dist/vega/{p-931dac8c.entry.js → p-6ab23e89.entry.js} +1 -1
  509. package/dist/vega/{p-154cc614.js → p-6bd37d32.js} +1 -1
  510. package/dist/vega/{p-ce034372.entry.js → p-6be01c6b.entry.js} +1 -1
  511. package/dist/vega/{p-294cff20.entry.js → p-70e0c3eb.entry.js} +1 -1
  512. package/dist/vega/{p-4a9c8ec0.entry.js → p-7168ef16.entry.js} +1 -1
  513. package/dist/vega/{p-ab04eff6.js → p-7292ac20.js} +1 -1
  514. package/dist/vega/p-7348a091.entry.js +1 -0
  515. package/dist/vega/{p-19adf714.js → p-788ada42.js} +1 -1
  516. package/dist/vega/p-7cd8d054.entry.js +1 -0
  517. package/dist/vega/{p-bee5dfb0.entry.js → p-7dcc0b23.entry.js} +1 -1
  518. package/dist/vega/{p-189d36ec.js → p-81d55efd.js} +1 -1
  519. package/dist/vega/{p-8077b117.js → p-8ee917b4.js} +1 -1
  520. package/dist/vega/{p-52645382.entry.js → p-92468c30.entry.js} +1 -1
  521. package/dist/vega/{p-3a3720c7.entry.js → p-92710213.entry.js} +1 -1
  522. package/dist/vega/{p-e8de9535.js → p-9c48e4e5.js} +1 -1
  523. package/dist/vega/{p-891815d6.js → p-9f03856e.js} +1 -1
  524. package/dist/vega/{p-7ffe8081.entry.js → p-a0dd5273.entry.js} +1 -1
  525. package/dist/vega/p-a0fa5ccc.entry.js +1 -0
  526. package/dist/vega/{p-4a954d9d.entry.js → p-a32ad1ac.entry.js} +1 -1
  527. package/dist/vega/{p-01a54c29.entry.js → p-a36d4199.entry.js} +1 -1
  528. package/dist/vega/{p-d97974be.entry.js → p-a53e1a60.entry.js} +1 -1
  529. package/dist/vega/{p-d4262f06.entry.js → p-a73d8915.entry.js} +1 -1
  530. package/dist/vega/{p-07225567.entry.js → p-a87bc75a.entry.js} +1 -1
  531. package/dist/vega/{p-09076646.js → p-abfe46ca.js} +1 -1
  532. package/dist/vega/p-ad815280.js +1 -0
  533. package/dist/vega/p-b0fb5099.entry.js +1 -0
  534. package/dist/vega/{p-d05915af.entry.js → p-b218141f.entry.js} +1 -1
  535. package/dist/vega/{p-e7c930d9.entry.js → p-b2a0d104.entry.js} +1 -1
  536. package/dist/vega/{p-3bf3c8bb.entry.js → p-b31802b3.entry.js} +1 -1
  537. package/dist/vega/{p-255a7387.entry.js → p-b3e97e2f.entry.js} +1 -1
  538. package/dist/vega/{p-15b4f1ce.entry.js → p-b519b9ab.entry.js} +1 -1
  539. package/dist/vega/{p-8aee6b74.js → p-b565a6a5.js} +1 -1
  540. package/dist/vega/{p-2e0bdc53.entry.js → p-b5a3de00.entry.js} +1 -1
  541. package/dist/vega/p-b5d00d38.entry.js +1 -0
  542. package/dist/vega/p-b72d7b57.entry.js +1 -0
  543. package/dist/vega/{p-f5ae99b4.entry.js → p-b7f30f68.entry.js} +1 -1
  544. package/dist/vega/p-b857a661.js +1 -0
  545. package/dist/vega/{p-d9d4bdbf.entry.js → p-ba4f23d8.entry.js} +1 -1
  546. package/dist/vega/{p-5df7ab03.entry.js → p-c0c13993.entry.js} +1 -1
  547. package/dist/vega/p-c4675cd2.entry.js +1 -0
  548. package/dist/vega/p-c51e3b9e.js +1 -0
  549. package/dist/vega/{p-bd47d8a7.entry.js → p-c6201e76.entry.js} +1 -1
  550. package/dist/vega/p-c84aa55a.js +1 -0
  551. package/dist/vega/{p-858ec529.js → p-c93dfe23.js} +1 -1
  552. package/dist/vega/p-cacec680.js +1 -0
  553. package/dist/vega/{p-186df871.entry.js → p-cd382652.entry.js} +1 -1
  554. package/dist/vega/{p-49341532.entry.js → p-cdd3af89.entry.js} +1 -1
  555. package/dist/vega/{p-ec663f00.entry.js → p-ce8a0aa6.entry.js} +1 -1
  556. package/dist/vega/{p-648be36d.entry.js → p-cf5c6172.entry.js} +1 -1
  557. package/dist/vega/{p-0a322971.entry.js → p-d1641644.entry.js} +1 -1
  558. package/dist/vega/p-d2237b95.entry.js +1 -0
  559. package/dist/vega/{p-76075a1c.entry.js → p-d24892d6.entry.js} +1 -1
  560. package/dist/vega/p-d25ca0c3.entry.js +1 -0
  561. package/dist/vega/{p-b69755c7.entry.js → p-d8591207.entry.js} +1 -1
  562. package/dist/vega/p-da42fde0.js +1 -0
  563. package/dist/vega/{p-aa4e9a4b.entry.js → p-dc0f7ef1.entry.js} +1 -1
  564. package/dist/vega/{p-70ae9157.entry.js → p-dcd3b421.entry.js} +1 -1
  565. package/dist/vega/{p-c19132c9.entry.js → p-df4f9264.entry.js} +1 -1
  566. package/dist/vega/p-e5726df7.entry.js +1 -0
  567. package/dist/vega/{p-4c91b13d.js → p-e7fb7eee.js} +1 -1
  568. package/dist/vega/{p-98dad153.entry.js → p-ea4b5520.entry.js} +1 -1
  569. package/dist/vega/p-ecbead18.entry.js +1 -0
  570. package/dist/vega/{p-b02b985d.js → p-f0d70de3.js} +1 -1
  571. package/dist/vega/{p-78ba7ca9.js → p-f7ad9349.js} +1 -1
  572. package/dist/vega/{p-a6565e02.js → p-fdf6f368.js} +1 -1
  573. package/dist/vega/{p-0a261b66.js → p-fea75b87.js} +1 -1
  574. package/dist/vega/{p-296c5e52.js → p-ffda64ac.js} +1 -1
  575. package/dist/vega/{p-74a1a82a.entry.js → p-ffe8a826.entry.js} +1 -1
  576. package/dist/vega/vega.esm.js +1 -1
  577. package/package.json +3 -2
  578. package/dist/vega/p-042933f1.js +0 -1
  579. package/dist/vega/p-0d97dcb9.js +0 -1
  580. package/dist/vega/p-1da42a63.entry.js +0 -1
  581. package/dist/vega/p-281fa1e0.js +0 -1
  582. package/dist/vega/p-32a0f887.js +0 -1
  583. package/dist/vega/p-4a6f241d.entry.js +0 -1
  584. package/dist/vega/p-4dd02704.js +0 -1
  585. package/dist/vega/p-50fb936f.entry.js +0 -1
  586. package/dist/vega/p-612808ce.entry.js +0 -1
  587. package/dist/vega/p-6399b5ed.js +0 -1
  588. package/dist/vega/p-686e0b6b.entry.js +0 -1
  589. package/dist/vega/p-6d4faebc.js +0 -1
  590. package/dist/vega/p-8d36afcc.entry.js +0 -1
  591. package/dist/vega/p-979a5e91.entry.js +0 -1
  592. package/dist/vega/p-a2b8d49d.js +0 -1
  593. package/dist/vega/p-ab4c307b.js +0 -1
  594. package/dist/vega/p-c41b42eb.entry.js +0 -1
  595. package/dist/vega/p-ce2d9efe.entry.js +0 -1
  596. package/dist/vega/p-e46a23fc.entry.js +0 -1
  597. package/dist/vega/p-e8ea3b16.js +0 -3
  598. package/dist/vega/p-ea0e922f.entry.js +0 -1
  599. package/dist/vega/p-ec2333f7.entry.js +0 -1
  600. package/dist/vega/p-ed2b0e01.entry.js +0 -1
  601. package/dist/vega/p-ef13b346.js +0 -1
  602. package/dist/vega/p-fe220f3a.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{h as e,f as t,F as i,H as o,r as a,c as s,g as r}from"./p-6b2342e0.js";import{c as l,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-8ce9e214.js";import{g as f}from"./p-a841cf13.js";import{C as g}from"./p-2d0d575f.js";import{l as w,m,n as x,o as y,S as R}from"./p-a528714c.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,o as j}from"./p-ec2a1d4c.js";import{d as E,D}from"./p-11e2dcf5.js";import{r as O}from"./p-77e64f26.js";import{T,U as L,W as M,X as A,Y as N,Z as I,_ as W,$ as P}from"./p-3a93730e.js";import{a as z,i as _,W as K,d as B,_ as V,$,a0 as F,a1 as G,a2 as X,a3 as H,a4 as U}from"./p-2927b7a1.js";import{R as Y}from"./p-b02b985d.js";import{i as q,p as Z,ao as J}from"./p-78ba7ca9.js";import{s as Q}from"./p-519a7d55.js";import{g as ee}from"./p-8b5d3a52.js";import{g as te}from"./p-49a2e141.js";import{M as ie}from"./p-78a57a17.js";import{T as oe}from"./p-52b8f2d2.js";import{P as ae}from"./p-81dd00d0.js";import{c as se}from"./p-341d5e4e.js";import{C as re}from"./p-ab04eff6.js";import{c as le}from"./p-04a65b3f.js";import{I as ne}from"./p-48e3be6a.js";import{T as de}from"./p-a6565e02.js";import{S as ce}from"./p-1fb56e14.js";import{c as he}from"./p-6a334573.js";import{I as pe}from"./p-781fd6e0.js";import{S as be}from"./p-10fa27d2.js";import{F as ve}from"./p-dcf162e9.js";import{B as ue}from"./p-ed45b3b6.js";import{c as fe}from"./p-3a620268.js";import{V as ge}from"./p-724df1f5.js";import{c as we}from"./p-1ec763ab.js";import{c as me}from"./p-613ddaab.js";import"./p-d4ea8e22.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-d884c644.js";import"./p-0a261b66.js";import"./p-b75ee3ba.js";import"./p-4dd02704.js";import"./p-5f377954.js";import"./p-982747ef.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";class xe{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 xe(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const ye=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];var Re=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Se extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o)=>{var a,s;const r=f(i,t.prop),l=this.vegaTableDataSourceController.getRecordKey(i),n=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===l)),c=this.vegaTableEditableController.isEditing(l),h=this.vegaTableEditableController.getRowFormRefMap().get(l);if(c&&h&&t.renderFormItem)return t.renderFormItem(e,t.prop?r:l,i,o,{rowForm:h,isNewRow:n});if(c&&h&&t.editable){const e=null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,h,{record:i,index:o}),l=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:r},null===(s=t.formItemProps)||void 0===s?void 0:s.call(t,h,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,l)}return t.render?t.render(e,t.prop?r:l,i,o):"string"==typeof r||"number"==typeof r?String(r):null==r?"":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:a}=i,s=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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},s),{"data-vega-form":a}));d.error(`Type must be one of the form field types. [${ye.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(ye.join("|"),"i").test(e)}render(t,i,o){const a=this.columns.find((e=>e.key===t.key||e.prop===t.key||e.label===t.key));if(a){const s=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${s}_${a.key||a.prop}`,textAlign:a.align,breakpoint:a.breakpoint,overflow:a.overflow,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}},this.renderTableCellContent(a,i,o))}return e("vega-table-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,t)}})}}Re([l()],Se.prototype,"rowKey",void 0),Re([l()],Se.prototype,"columns",void 0),Re([l()],Se.prototype,"vegaTableDataSourceController",void 0),Re([l()],Se.prototype,"vegaTableEditableController",void 0),Re([l()],Se.prototype,"vegaTableRenderInputController",void 0);var Ce=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class ke extends n{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.isRowExpandable(e)&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.hasExpandableRow&&this.handleCloseAllExpandRow()},this.isExpandableRow=e=>this.expandableRows.includes(this.vegaTableDataSourceController.getRecordKey(e)),this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((e=>{g.notify(w,{host:this.host,rowKey:e,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),g.notify(w,{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=>`${ke.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(),g.unregister(w,this.expandObserver),O.unRegister(E.getSubject(this.host,T))}componentWillLoad(){this.setExpandableRows()}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.setExpandableRows(),this.handleCloseAllExpandRow()}watchCurrentData(){this.setExpandableRows(),this.clearUnusedExpandRowSlot()}initRowExpandObserver(){this.expandObserver=new S(this.isAcceptableTableRowObserver.bind({host:this.host}),(e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)})),g.register(w,this.expandObserver),O.register(E.getSubject(this.host,T),(({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")}setExpandableRows(){if("boolean"==typeof this.rowExpandable)this.expandableRows=this.rowExpandable?this.currentData.map((e=>this.vegaTableDataSourceController.getRecordKey(e))):[],this.hasExpandableRow=this.rowExpandable;else if("function"==typeof this.rowExpandable){const e=[];this.currentData.forEach((t=>{const i=this.vegaTableDataSourceController.getRecordKey(t);this.rowExpandable(i)&&e.push(i)})),this.expandableRows=e,this.hasExpandableRow=e.length>0}else this.expandableRows=[],this.hasExpandableRow=!1}isRowExpandable(e){return this.expandableRows.includes(e)}clearUnusedExpandRowSlot(){this.expandedRowKeySet.toArray().forEach((e=>{this.isRowExpandable(e)||this.expandedRowKeySet.delete(e)}))}}ke.expandRowSlotNamePrefix="vega-table-expand-row-",Ce([l()],ke.prototype,"host",void 0),Ce([l()],ke.prototype,"expandedRowKeySet",void 0),Ce([l({writable:!0})],ke.prototype,"expandableRows",void 0),Ce([l({writable:!0})],ke.prototype,"hasExpandableRow",void 0),Ce([l()],ke.prototype,"rowExpandable",void 0),Ce([l()],ke.prototype,"currentData",void 0),Ce([l()],ke.prototype,"rowExpandEventEmitter",void 0),Ce([l()],ke.prototype,"vegaTableDataSourceController",void 0),Ce([c("connectedCallback")],ke.prototype,"connectedCallback",null),Ce([c("disconnectedCallback")],ke.prototype,"disconnectedCallback",null),Ce([c("componentWillLoad")],ke.prototype,"componentWillLoad",null),Ce([c("componentDidLoad")],ke.prototype,"componentDidLoad",null),Ce([c("toggleExpandRow")],ke.prototype,"toggleExpandRow",void 0),Ce([c("openExpandRow")],ke.prototype,"openExpandRow",void 0),Ce([c("closeExpandRow")],ke.prototype,"closeExpandRow",void 0),Ce([c("closeAllExpandRow")],ke.prototype,"closeAllExpandRow",void 0),Ce([c("watchRowExpandable")],ke.prototype,"watchRowExpandable",null),Ce([c("watchCurrentData")],ke.prototype,"watchCurrentData",null);var je=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ee 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(){g.unregister(m,this.rowSelectionObserver),g.unregister(x,this.rowSelectionAllObserver),g.unregister(y,this.rowClickObserver),O.unRegister(E.getSubject(this.host,L)),O.unRegister(E.getSubject(this.host,M))}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=>{g.notify(m,{host:this.host,rowKey:e,checked:!1})})),this.selectedRowKeySet.clear(),e.forEach((e=>{this.vegaTableDataSourceController.getRecordByKey(e)&&(this.selectedRowKeySet.add(e),g.notify(m,{host:this.host,rowKey:e,checked:!0}))}))}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),g.notify(x,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){g.notify(x,{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)})),g.register(m,this.rowSelectionObserver),O.register(E.getSubject(this.host,L),(({rowKey:e,checked:t})=>this.rowSelectEventEmitter.emit({selected:t,record:this.vegaTableDataSourceController.getRecordByKey(e),selectedRows:this.getSelectedRecords()}))),O.register(E.getSubject(this.host,M),(({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)})),g.register(x,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)}})),g.register(y,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}je([l()],Ee.prototype,"host",void 0),je([l({writable:!0})],Ee.prototype,"isSelectedAll",void 0),je([l()],Ee.prototype,"selectedRowKeySet",void 0),je([l({writable:!0})],Ee.prototype,"rowSelection",void 0),je([l()],Ee.prototype,"rowKey",void 0),je([l()],Ee.prototype,"selectChangeEventEmitter",void 0),je([l()],Ee.prototype,"selectAllChangeEventEmitter",void 0),je([l()],Ee.prototype,"vegaTableDataSourceController",void 0),je([l()],Ee.prototype,"rowSelectEventEmitter",void 0),je([l()],Ee.prototype,"rowSelectAllEventEmitter",void 0),je([c("connectedCallback")],Ee.prototype,"connectedCallback",null),je([c("disconnectedCallback")],Ee.prototype,"disconnectedCallback",null),je([c("componentWillLoad")],Ee.prototype,"componentWillLoad",null),je([c("watchRowSelection")],Ee.prototype,"watchRowSelection",null),je([c("setSelection")],Ee.prototype,"setSelection",null),je([c("watchCurrentData")],Ee.prototype,"watchCurrentData",null),je([c("clearSelection")],Ee.prototype,"clearSelection",null),je([c("getSelection")],Ee.prototype,"getSelection",null),je([c("watchSelectedRowKeySet")],Ee.prototype,"watchSelectedRowKeySet",null),je([c("watchSelectedAll")],Ee.prototype,"watchSelectedAll",null);var De=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Oe 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)}}De([l()],Oe.prototype,"rowKey",void 0),De([l({writable:!0})],Oe.prototype,"currentData",void 0),De([l({writable:!0})],Oe.prototype,"dataSource",void 0),De([l()],Oe.prototype,"columns",void 0),De([l()],Oe.prototype,"sortersMap",void 0),De([l()],Oe.prototype,"vegaTableSortController",void 0),De([l()],Oe.prototype,"vegaTableRenderer",void 0),De([l()],Oe.prototype,"isTemplateRenderMode",void 0),De([c("componentWillLoad")],Oe.prototype,"componentWillLoad",null),De([c("watchSortersMap")],Oe.prototype,"watchSortersMap",null),De([c("watchDataSource")],Oe.prototype,"watchDataSource",null);var Te=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Le extends n{constructor(){super(...arguments),this.renderTableBody=t=>{const o=this.vegaTableDataSourceController.getCurrentData();return e("vega-table-body",{ref:e=>this.tableBodyRef=e},o.map(((a,s)=>{const r=this.vegaTableDataSourceController.getRecordKey(a),l=this.vegaTablePaginationController.isRowVisible(s);return e(i,null,this.vegaTableRowRenderer.render({rowKey:r,index:s,record:a,isVisibleInCurrentPage:l,isLastRow:s===o.length-1},t),this.vegaTableExpandRowController.isExpandableRow(a)&&e("vega-table-expand-row",{class:{"v-hidden":!l},key:`vega-table-expanded-row-${r}`,rowKey:r,striped:this.striped&&s%2==1},e("slot",{name:`${ke.expandRowSlotNamePrefix}${r}`})))})))}}getTableFormRef(){return this.tableFormRef}getTableBodyRef(){return this.tableBodyRef}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)}}Te([l()],Le.prototype,"striped",void 0),Te([l()],Le.prototype,"rowDivider",void 0),Te([l()],Le.prototype,"columns",void 0),Te([l()],Le.prototype,"currentBreakpoint",void 0),Te([l()],Le.prototype,"rowClickable",void 0),Te([l()],Le.prototype,"vegaTableDataSourceController",void 0),Te([l()],Le.prototype,"vegaTablePaginationController",void 0),Te([l()],Le.prototype,"vegaTableRowSelectionController",void 0),Te([l()],Le.prototype,"vegaTableRowRenderer",void 0),Te([l()],Le.prototype,"columnStructureModel",void 0),Te([l()],Le.prototype,"vegaTableExpandRowController",void 0);var Me=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ae 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),D.addUniqueObserverToNode(e,z,(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())}}Me([l()],Ae.prototype,"showHeader",void 0),Me([l()],Ae.prototype,"sortersMap",void 0),Me([l()],Ae.prototype,"sortConfig",void 0),Me([l()],Ae.prototype,"columns",void 0),Me([l()],Ae.prototype,"rowSelection",void 0),Me([l()],Ae.prototype,"vegaTableSortController",void 0),Me([l()],Ae.prototype,"vegaTableDataSourceController",void 0),Me([l()],Ae.prototype,"vegaTableRenderInputController",void 0);var Ne=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ie extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{D.addUniqueObserverToNode(e,_,this.handlePaginationChange),D.addUniqueObserverToNode(e,K,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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(e,["position"]),o=Y.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:a}=this.getPaginationConfig(),s=["vega-table-pagination-container",i],r=this.vegaTableDataSourceController.getCurrentData().length;return r>0&&e("div",{class:k(s)},e("vega-pagination",{total:r,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:a,ref:this.paginationRefCallback}))}}Ne([l()],Ie.prototype,"pagination",void 0),Ne([l()],Ie.prototype,"pageSize",void 0),Ne([l()],Ie.prototype,"currentPage",void 0),Ne([l()],Ie.prototype,"vegaTablePaginationController",void 0),Ne([l()],Ie.prototype,"vegaTableDataSourceController",void 0);const We=({scrollConfig:t={},ref:i,onScroll:o},a)=>{const{maxHeight:s}=t,r=q(s);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof s?`${s}px`:s},ref:i,onScroll:e=>{if(!r)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")}},a)};var Pe=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class ze extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)},this.notifyContentScrolling=()=>{this.isTemplateRenderMode&&g.notify(R,{host:this.host})}}watchCurrentPage(){this.scrollContainerToTop()}render(t){return e(We,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e),onScroll:()=>this.notifyContentScrolling()},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}Pe([l()],ze.prototype,"scrollConfig",void 0),Pe([l()],ze.prototype,"host",void 0),Pe([l()],ze.prototype,"isTemplateRenderMode",void 0),Pe([c("watchCurrentPage")],ze.prototype,"watchCurrentPage",null);var _e=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ke 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-${Y.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)}}_e([l()],Ke.prototype,"host",void 0),_e([l()],Ke.prototype,"columns",void 0),_e([l()],Ke.prototype,"emptyDescription",void 0),_e([l()],Ke.prototype,"rowDivider",void 0),_e([l()],Ke.prototype,"columnDivider",void 0),_e([l()],Ke.prototype,"density",void 0),_e([l()],Ke.prototype,"dataSource",void 0),_e([l()],Ke.prototype,"striped",void 0),_e([l()],Ke.prototype,"columnStructureModel",void 0),_e([l()],Ke.prototype,"vegaTableHeaderRenderer",void 0),_e([l()],Ke.prototype,"vegaTableBodyRenderer",void 0),_e([l()],Ke.prototype,"vegaTableColGroupRenderer",void 0),_e([l()],Ke.prototype,"vegaTableScrollContainerRenderer",void 0),_e([l()],Ke.prototype,"vegaTablePaginationRenderer",void 0),_e([l()],Ke.prototype,"vegaTableDataSourceController",void 0),_e([l()],Ke.prototype,"translationSlimmer",void 0),_e([l({writable:!0})],Ke.prototype,"vegaTableChildrenController",void 0),_e([l()],Ke.prototype,"isTemplateRenderMode",void 0),_e([l()],Ke.prototype,"editingRows",void 0);var Be=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ve 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}}Be([l()],Ve.prototype,"pagination",void 0),Be([l({writable:!0})],Ve.prototype,"pageSize",void 0),Be([l({writable:!0})],Ve.prototype,"currentPage",void 0),Be([c("componentWillLoad")],Ve.prototype,"componentWillLoad",null),Be([c("watchPagination")],Ve.prototype,"watchPagination",null);var $e=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Fe 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())||ee(),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[`${Fe.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)}}Fe.rowFormKeyPrefix="vega-table-row-form-",$e([l()],Fe.prototype,"editingRows",void 0),$e([l()],Fe.prototype,"rowKey",void 0),$e([l()],Fe.prototype,"columns",void 0),$e([l()],Fe.prototype,"vegaTableDataSourceController",void 0),$e([l()],Fe.prototype,"vegaTableBodyRenderer",void 0),$e([c("saveAllEditRows")],Fe.prototype,"saveAllEditRows",null),$e([c("stopAllRowEditMode")],Fe.prototype,"stopAllRowEditMode",null),$e([c("watchDataSource")],Fe.prototype,"watchDataSource",null),$e([c("saveEditRow")],Fe.prototype,"saveEditRow",null),$e([c("stopRowEditMode")],Fe.prototype,"stopRowEditMode",null),$e([c("removeRow")],Fe.prototype,"removeRow",null),$e([c("startRowEditMode")],Fe.prototype,"startRowEditMode",null),$e([c("addNewRow")],Fe.prototype,"addNewRow",null),$e([c("getRowsData")],Fe.prototype,"getRowsData",null),$e([c("getEditingRowsKey")],Fe.prototype,"getEditingRowsKey",null),$e([c("getFormRef")],Fe.prototype,"getFormRef",null),$e([c("getRowData")],Fe.prototype,"getRowData",null);class Ge{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 Xe=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class He extends n{constructor(){super(...arguments),this.clearSorter=()=>{this.sortersMap.size>0&&(this.sortersMap.clear(!1),this.changeEventEmitter.emit({sorters:[]}))}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){"single"===this.sortConfig.type&&this.sortersMap.clear(),t?this.sortersMap.set(e.prop,new Ge(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=>q(e.sorter)&&q(e.sortOrder))).forEach((e=>{this.sortersMap.set(e.prop,new Ge(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(q(t))return t}return 0}))}}Xe([l({writable:!0})],He.prototype,"sortersMap",void 0),Xe([l()],He.prototype,"columns",void 0),Xe([l()],He.prototype,"changeEventEmitter",void 0),Xe([l()],He.prototype,"vegaTableDataSourceController",void 0),Xe([l()],He.prototype,"sortConfig",void 0),Xe([c("watchColumns")],He.prototype,"watchColumns",null);var Ue=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ye extends n{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&Z(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]}}),this.rowDraggable&&e("col",{class:"draggable-col"}),"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.hasExpandableRow&&e("col",{style:{minWidth:"40px",width:"40px"}}),e("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}Ue([l()],Ye.prototype,"paddingX",void 0),Ue([l()],Ye.prototype,"columnStructureModel",void 0),Ue([l()],Ye.prototype,"columns",void 0),Ue([l()],Ye.prototype,"hasExpandableRow",void 0),Ue([l()],Ye.prototype,"rowDraggable",void 0),Ue([l()],Ye.prototype,"vegaTableRowSelectionController",void 0);var qe=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ze extends n{constructor(){super(...arguments),this.currentDataObserver=new ie({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:oe("VEGA-TABLE-BODY","VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new ie({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:oe("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(){g.notify(x,{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"))}}qe([l()],Ze.prototype,"host",void 0),qe([l()],Ze.prototype,"columns",void 0),qe([l()],Ze.prototype,"dataSource",void 0),qe([l()],Ze.prototype,"currentData",void 0),qe([l()],Ze.prototype,"rowSelection",void 0),qe([l()],Ze.prototype,"striped",void 0),qe([l()],Ze.prototype,"rowDivider",void 0),qe([l()],Ze.prototype,"vegaTableDataSourceController",void 0),qe([l()],Ze.prototype,"vegaTableRenderer",void 0),qe([l()],Ze.prototype,"isTemplateRenderMode",void 0),qe([h()],Ze.prototype,"currentDataObserver",void 0),qe([h()],Ze.prototype,"rowStripedObserver",void 0),qe([c("connectedCallback")],Ze.prototype,"connectedCallback",null),qe([c("disconnectedCallback")],Ze.prototype,"disconnectedCallback",null),qe([c("componentWillLoad")],Ze.prototype,"componentWillLoad",null),qe([c("componentDidLoad")],Ze.prototype,"componentDidLoad",null),qe([c("clearSelection")],Ze.prototype,"clearSelection",null),qe([c("watchCurrentData")],Ze.prototype,"watchCurrentData",null),qe([c("watchStriped")],Ze.prototype,"watchStriped",null),qe([c("watchRowDivider")],Ze.prototype,"watchRowDivider",null);var Je=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Qe extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:a,isVisibleInCurrentPage:s}=t,r=this.vegaTableRenderInputController.getLeafRenderInputs();return e("vega-table-row",{class:{"v-hidden":!s},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{D.addUniqueObserverToNode(e,z,(()=>{this.rowClickEventEmitter.emit({record:a,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!t.isLastRow},r.map((e=>this.vegaTableCellRenderer.render(e,a,o))))}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Fe.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}Je([l()],Qe.prototype,"rowClickEventEmitter",void 0),Je([l()],Qe.prototype,"vegaTableEditableController",void 0),Je([l()],Qe.prototype,"vegaTableCellRenderer",void 0),Je([l()],Qe.prototype,"striped",void 0),Je([l()],Qe.prototype,"rowDivider",void 0),Je([l()],Qe.prototype,"vegaTableRenderInputController",void 0);var et=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class tt extends n{constructor(){super(...arguments),this.currentDataObserver=new ie({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:oe("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(){}}et([l()],tt.prototype,"host",void 0),et([l({writable:!0})],tt.prototype,"isTemplateRenderMode",void 0),et([h()],tt.prototype,"currentDataObserver",void 0),et([c("connectedCallback")],tt.prototype,"connectedCallback",null),et([c("disconnectedCallback")],tt.prototype,"disconnectedCallback",null),et([c("componentWillLoad")],tt.prototype,"componentWillLoad",null),et([c("componentDidLoad")],tt.prototype,"componentDidLoad",null);const it=[{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 ot{constructor(e,t,i,o,a){this.key=e,this.level=t,this.parent=i,this.label=o,this.pinned=a,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(e,t){const i=new ot(this.ROOT_KEY,ot.ROOT_LEVEL);return t?(i.children=this.fromGroupColumns(i,t),i):e?(i.children=e.map((e=>new ot(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(J(t)){const o=new ot(t.key,i,e,t.label,t.pinned);return o.children=this.fromGroupColumns(o,t.children,i+1),o}return new ot(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===ot.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}}ot.ROOT_LEVEL=-1,ot.ROOT_KEY="#root-model#";var at=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class st extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=ot.from(this.columns,this.groupColumns)}}at([l()],st.prototype,"host",void 0),at([l()],st.prototype,"columns",void 0),at([l()],st.prototype,"groupColumns",void 0),at([l({writable:!0})],st.prototype,"columnStructureModel",void 0),at([c("componentWillLoad")],st.prototype,"componentWillLoad",null),at([c("watchColumns")],st.prototype,"watchColumns",null),at([c("watchGroupColumns")],st.prototype,"watchGroupColumns",null);class rt{constructor(e,t,i,o,a,s,r,l,n,d,c,h,p,b,v,u,f=[]){this.key=e,this.label=t,this.pinned=i,this.colSpan=o,this.rowSpan=a,this.isViewStart=s,this.isViewEnd=r,this.isLeftEndPinned=l,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(),a=e.hasGroupColumn(),s=e.hasLeftPinnedColumn()||e.hasRightPinnedColumn();let r=0;return e.iterator().forEach((e=>{const l=e.level>0?i[e.level-1]:null,n=a&&this.isParentStart(e),d=a&&this.isParentEnd(e),c=new rt(e.key,e.label,l?l.pinned:e.pinned,a?this.getColSpan(e):null,a?e.isLeaf()?o-e.level:1:null,l?l.isViewStart&&n:n,l?l.isViewEnd&&d:d,l?l.isLeftEndPinned&&d:s&&this.isLeftEndPinned(e),l?l.isRightStartPinned&&n:s&&this.isRightStartPinned(e),l?l.isNoPinnedEnd&&d:s&&this.isNoPinnedEnd(e),a,s,o,e.level,r,l);l?l.children.push(c):t.push(c),i[e.level]=c,i.length=e.level+1,e.isLeaf()&&r++})),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 lt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class nt extends n{constructor(){super(...arguments),this.headRowRenderInputMap=new Map,this.headCellRenderInputMap=new Map,this.pinnedColumnBodyCellRenderInputMap=new Map,this.cellRenderInputChangeTaskQueue=new ce}connectedCallback(){this.registerRenderInputRICObserver()}disconnectedCallback(){this.unRegisterRenderInputRICObserver()}componentWillLoad(){this.setRenderInputModel()}async componentDidRender(){await this.cellRenderInputChangeTaskQueue.runTask()}async watchColumnStructureModel(){this.setRenderInputModel(),this.pinnedColumnBodyCellRenderInputMap.clear(),await this.cellRenderInputChangeTaskQueue.enqueue({run:async()=>{g.notify(E.getSubject(this.host,A),{})}},!1)}getLeafRenderInputs(){return this.leavesRenderInputModels}getHeadRenderInputs(){return this.columnRenderInputModels}addHeadRowRenderInputMap(e,t){this.headRowRenderInputMap.set(e,t)}addHeadCellRenderInputMap(e,t){this.headCellRenderInputMap.set(e,t)}addCellRenderInputMap(e,t){(e&&["left","right"].includes(t.pinned)||t.isNoPinnedEnd)&&this.pinnedColumnBodyCellRenderInputMap.set(e,t)}getHeadCellRenderInputMap(){return this.headCellRenderInputMap}getPinnedColumnBodyCellRenderInputMap(){return this.pinnedColumnBodyCellRenderInputMap}registerRenderInputRICObserver(){O.register(E.getSubject(this.host,N),(e=>this.headRowRenderInputMap.get(e))),O.register(E.getSubject(this.host,I),(e=>this.headCellRenderInputMap.get(e))),O.register(E.getSubject(this.host,W),(e=>this.pinnedColumnBodyCellRenderInputMap.get(e)))}unRegisterRenderInputRICObserver(){O.unRegister(E.getSubject(this.host,N)),O.unRegister(E.getSubject(this.host,I)),O.unRegister(E.getSubject(this.host,W))}setRenderInputModel(){this.columnRenderInputModels=rt.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((e=>e.getLeaves()))}}lt([l()],nt.prototype,"host",void 0),lt([l()],nt.prototype,"columnStructureModel",void 0),lt([l()],nt.prototype,"vegaTableColGroupRenderer",void 0),lt([c("connectedCallback")],nt.prototype,"connectedCallback",null),lt([c("disconnectedCallback")],nt.prototype,"disconnectedCallback",null),lt([c("componentWillLoad")],nt.prototype,"componentWillLoad",null),lt([c("componentDidRender")],nt.prototype,"componentDidRender",null),lt([c("watchColumnStructureModel")],nt.prototype,"watchColumnStructureModel",null);var dt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class ct extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new ae({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}}),this.previouslyStyledCells=new Set,this.clearPinnedPositionsTaskQueue=new ce(1)}componentDidLoad(){}async componentDidRender(){await this.clearPinnedPositionsTaskQueue.runTask(),this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}watchColumnStructureModel(){this.clearPinnedPositionsTaskQueue.enqueue({run:async()=>{this.clearAllPinnedPositions()}},!1)}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(),a=this.getLeafWidths();e.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,a,o)})),t.forEach(((e,t)=>{this.updateCellPinnedPosition(e,t,i,a,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-draggable-column"),o=e.querySelector(".vega-table-selection-column"),a=e.querySelector(".vega-table-expand-action-column"),s=e.querySelector("th:last-of-type");return t?[t.getBoundingClientRect().width+((null==o?void 0:o.getBoundingClientRect().width)||0)+((null==i?void 0:i.getBoundingClientRect().width)||0),((null==a?void 0:a.getBoundingClientRect().width)||0)+s.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((t=>{var i;for(const[o,a]of e.entries())if(t===a)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}updateCellPinnedPosition(e,t,i,o,a){if(["left","right"].includes(e.pinned)){const s=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(s,"left",t)}if("right"===e.pinned){const t=q(e.colSpan)?e.colSpan:1,i=a+o.slice(e.columnIndex+(t-1)+1).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(s,"right",i)}}}updateTableRowPinnedPosition(){const e=this.columnStructureModel.hasLeftPinnedColumn(),t=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),a=j(this.paddingX[1]),s=i-o-a-2;this.host.shadowRoot.querySelectorAll("vega-table-head-row, vega-table-row, vega-table-expand-row").forEach((i=>{const r=i.shadowRoot;if(e){const e=r.querySelector("th:first-of-type, td:first-of-type"),t=r.querySelector(".vega-table-selection-column"),i=r.querySelector(".vega-table-draggable-column");this.updatePinnedPosition(e,"left",0),this.updatePinnedPosition(i,"left",o);const a=(null==i?void 0:i.getBoundingClientRect().width)||0;this.updatePinnedPosition(t,"left",o+a)}if(t){const e=r.querySelector(".vega-table-expand-action-column"),t=r.querySelector("th:last-of-type, td:last-of-type");this.updatePinnedPosition(e,"right",a),this.updatePinnedPosition(t,"right",0)}if(t||e){const e=r.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=`${s}px`}}}))}clearAllPinnedPositions(){this.previouslyStyledCells.forEach((e=>{e.style.position="",e.style.zIndex="",e.style.left="",e.style.right="",e.classList.contains("expanded-row-slot-inner")&&(e.style.width="")})),this.previouslyStyledCells.clear()}updatePinnedPosition(e,t,i){e&&(e.style.position="sticky",e.style.zIndex="1",e.style[t]=`${i}px`,this.previouslyStyledCells.add(e))}}dt([l()],ct.prototype,"host",void 0),dt([l()],ct.prototype,"columnStructureModel",void 0),dt([l()],ct.prototype,"paddingX",void 0),dt([l()],ct.prototype,"vegaTableRenderInputController",void 0),dt([h()],ct.prototype,"pageResizeObserverSlimmer",void 0),dt([c("componentDidLoad")],ct.prototype,"componentDidLoad",null),dt([c("componentDidRender")],ct.prototype,"componentDidRender",null),dt([c("watchColumnStructureModel")],ct.prototype,"watchColumnStructureModel",null);var ht=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class pt extends n{constructor(e){super(),this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.startX=0,this.startY=0,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItems=[],this.cachedItemDraggableMap=new WeakMap,this.onPointerDown=e=>{if(0!==e.button)return;const t=this.getItemFromComposedPath(e,!0);t&&(this.startDrag(t,e),e.preventDefault())},this.onPointerMove=e=>{this.isCurrentPointEvent(e)&&this.hasCrossedDragThreshold(e)&&(this.beginDragging(),this.syncActiveVisual(e),this.updateDropTarget(e),this.emitDrag(),e.preventDefault())},this.onPointerUp=e=>{this.isCurrentPointEvent(e)&&this.finishDrag()},this.onPointerCancel=e=>{e.pointerId===this.activePointerId&&this.resetDragState()},this.entry=e}connectedCallback(){this.init()}disconnectedCallback(){this.destroy()}componentDidLoad(){this.init()}watchIsDraggable(){this.isDraggable?this.init():this.destroy()}init(){this.isDraggable&&this.listenPointerEvents()}destroy(){this.removePointerListeners(),this.resetDragState()}listenPointerEvents(){const e=this.getContainer();e&&(e.addEventListener("pointerdown",this.onPointerDown),window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerCancel))}removePointerListeners(){const e=this.getContainer();e&&e.removeEventListener("pointerdown",this.onPointerDown),window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerCancel)}startDrag(e,t){this.activePointerId=t.pointerId,this.activeItem=e,this.isDragging=!1,this.startX=t.clientX,this.startY=t.clientY,this.cacheItems(),this.dragFromIndex=this.getItems().indexOf(e),this.dragToIndex=this.dragFromIndex,this.currentOverItem=e,this.currentOverIndex=this.dragFromIndex,this.activeItemHeight=this.getVisualElement(e).getBoundingClientRect().height}beginDragging(){!this.isDragging&&null!==this.dragFromIndex&&this.activeItem&&(this.isDragging=!0,this.onDragDrop("start"))}syncActiveVisual(e){if(!this.activeItem)return;const t=this.getVisualElement(this.activeItem);t.style.transform=`translateY(${e.clientY-this.startY}px)`,t.style.position="relative",t.style.pointerEvents="none",t.style.boxShadow="0 4px 8px rgba(0, 0, 0, 0.15)",pe.setZIndex(t,"top")}updateDropTarget(e){if(null===this.dragFromIndex||!this.activeItem)return;const t=this.getItemFromComposedPath(e,!1);if(!t)return this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=null,void(this.currentOverIndex=null);const i=this.getItemIndex(t),o=this.getResolvedDropIndex(t,e.clientY);this.currentOverItem!==t?(this.emitDragLeave(this.currentOverIndex,this.currentOverItem),this.currentOverItem=t,this.currentOverIndex=i,this.onDragDrop("enter")):this.currentOverIndex=i,this.dragToIndex=o,this.onDragDrop("over"),this.applyLayoutTransforms()}finishDrag(){var e,t,i;const o=this.dragFromIndex,a=this.dragToIndex,s=this.isDragging&&null!=o&&o!==a,r=null!=o&&null!==(e=this.getItems().at(o))&&void 0!==e?e:null,l=this.currentOverItem;this.isDragging&&null!=o&&r&&this.onDragDrop("drop"),this.resetDragState(),s&&null!=o&&r&&(null===(i=(t=this.entry).onDragDrop)||void 0===i||i.call(t,{status:"end",options:{fromIndex:o,fromItem:r,toIndex:a,toItem:l}}))}resetDragState(){if(this.cachedItems.forEach((e=>{const t=this.cachedItemDraggableMap.get(e);if(!t)return;const{visualElement:i,inlineStyle:o}=t;null==o?i.removeAttribute("style"):i.setAttribute("style",o)})),this.activeItem){const e=this.getVisualElement(this.activeItem);pe.removeZIndex(e,"top")}this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItemDraggableMap=new WeakMap,this.cachedItems=[]}getContainer(){return this.entry.container()}queryItems(){const e=this.getContainer();return e?Array.from(e.querySelectorAll(this.entry.itemSelector)):[]}getItems(){return this.cachedItems.length>0?this.cachedItems:this.queryItems()}getItemIndex(e){return this.getItems().indexOf(e)}getVisualElement(e){const t=this.cachedItemDraggableMap.get(e);return t?t.visualElement:this.resolveVisualElement(e)}resolveVisualElement(e){var t,i;const o=this.entry.visualElementSelector;if(!o)return e;return(null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector(o))||(null!==(i=e.querySelector(o))&&void 0!==i?i:e)}cacheItems(){this.cachedItemDraggableMap=new WeakMap,this.cachedItems=this.queryItems(),this.cachedItems.forEach((e=>{const t=this.resolveVisualElement(e);this.cachedItemDraggableMap.set(e,{visualElement:t,inlineStyle:t.getAttribute("style")})}))}getItemFromComposedPath(e,t=!1){const i=this.entry.itemSelector,o=this.entry.triggerElementSelector;let a=null,s=!o;for(const t of e.composedPath())if(t instanceof HTMLElement&&(!a&&t.matches(i)&&(a=t),!s&&o&&t.matches(o)&&(s=!0),a&&s))break;return!a||t&&!s?null:a}applyLayoutTransforms(){if(null==this.dragFromIndex||null==this.dragToIndex||0===this.activeItemHeight)return;const e=this.dragFromIndex,t=this.dragToIndex,i=e<t?-this.activeItemHeight:this.activeItemHeight;this.getItems().forEach(((o,a)=>{o!==this.activeItem&&(this.getVisualElement(o).style.transform=(e<t?a>e&&a<=t:a>=t&&a<e)?`translateY(${i}px)`:"")}))}getResolvedDropIndex(e,t){const i=this.getItemIndex(e),o=this.dragFromIndex;if(i<0||null==o)return i;if(i===o)return i;const a=this.getVisualElement(e).getBoundingClientRect(),s=t>a.top+a.height/2;return i>o?s?i:i-1:s?i+1:i}isCurrentPointEvent(e){return null!==this.activePointerId&&this.activePointerId===e.pointerId}hasCrossedDragThreshold(e){return!!this.isDragging||Math.abs(e.clientX-this.startX)+Math.abs(e.clientY-this.startY)>=pt.DRAG_THRESHOLD}emitDrag(){null!==this.dragFromIndex&&this.activeItem&&this.onDragDrop("drag")}emitDragLeave(e,t){null!==e&&t&&this.onDragDrop("leave")}onDragDrop(e){var t,i;null!=this.dragFromIndex&&this.activeItem&&(null===(i=(t=this.entry).onDragDrop)||void 0===i||i.call(t,{status:e,options:{fromIndex:this.dragFromIndex,fromItem:this.activeItem,toIndex:this.dragToIndex,toItem:this.currentOverItem}}))}}pt.DRAG_THRESHOLD=4,ht([c("connectedCallback")],pt.prototype,"connectedCallback",null),ht([c("disconnectedCallback")],pt.prototype,"disconnectedCallback",null),ht([c("componentDidLoad")],pt.prototype,"componentDidLoad",null);var bt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class vt extends n{constructor(){super(...arguments),this.draggableElementSlimmer=he(vt,pt,[{mapFrom:"rowDraggable",mapTo:"isDraggable"}],[{mapFrom:"watchRowDraggable",mapTo:"watchIsDraggable"}],[{container:this.getDragContainer.bind(this),itemSelector:"vega-table-row",triggerElementSelector:"td.vega-table-draggable-column",visualElementSelector:"tr.vega-table-row",onDragDrop:this.onDragDrop.bind(this)}])}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}watchRowDraggable(){}getDragContainer(){return this.isTemplateRenderMode?this.host.querySelector("vega-table-body"):this.vegaTableBodyRenderer.getTableBodyRef()}onDragDrop(e){this.rowDragDropEventEmitter.emit(e).defaultPrevented||"end"===e.status&&this.onDragEnd(e)}onDragEnd(e){const t=e.options.fromIndex,i=e.options.toIndex;if(this.vegaTableSortController.clearSorter(),this.isTemplateRenderMode){const e=Array.from(this.host.querySelectorAll("vega-table-row"));this.host.querySelector("vega-table-body").insertBefore(e[t],t>i?e[i]:e[i].nextSibling)}else{const e=[...this.vegaTableDataSourceController.getCurrentData()],[o]=e.splice(t,1);e.splice(i,0,o),this.vegaTableDataSourceController.setCurrentData(e)}}}bt([l()],vt.prototype,"rowDraggable",void 0),bt([l()],vt.prototype,"host",void 0),bt([l()],vt.prototype,"vegaTableDataSourceController",void 0),bt([l()],vt.prototype,"isTemplateRenderMode",void 0),bt([l()],vt.prototype,"vegaTableBodyRenderer",void 0),bt([l()],vt.prototype,"vegaTableSortController",void 0),bt([l()],vt.prototype,"rowDragDropEventEmitter",void 0),bt([h()],vt.prototype,"draggableElementSlimmer",void 0),bt([c("connectedCallback")],vt.prototype,"connectedCallback",null),bt([c("disconnectedCallback")],vt.prototype,"disconnectedCallback",null),bt([c("componentDidLoad")],vt.prototype,"componentDidLoad",null),bt([c("watchRowDraggable")],vt.prototype,"watchRowDraggable",null);var ut=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const ft=class{constructor(e){a(this,e),this.vegaChange=s(this,"vegaChange",7),this.change=s(this,"change",7),this.vegaRowClick=s(this,"vegaRowClick",7),this.rowClick=s(this,"rowClick",7),this.vegaRowExpand=s(this,"vegaRowExpand",7),this.rowExpand=s(this,"rowExpand",7),this.vegaSelectChange=s(this,"vegaSelectChange",7),this.selectChange=s(this,"selectChange",7),this.vegaSelectAllChange=s(this,"vegaSelectAllChange",7),this.selectAllChange=s(this,"selectAllChange",7),this.vegaRowSelect=s(this,"vegaRowSelect",7),this.rowSelect=s(this,"rowSelect",7),this.vegaRowSelectAll=s(this,"vegaRowSelectAll",7),this.rowSelectAll=s(this,"rowSelectAll",7),this.vegaRowDragDrop=s(this,"vegaRowDragDrop",7),this.rowDragDrop=s(this,"rowDragDrop",7),this.globalSlimmers={},this.translationSlimmer=new de,this.vegaTableRenderModeController=new tt,this.vegaTableColumnStructureModelController=new st,this.vegaTableRenderInputController=new nt,this.vegaTablePinnedRenderer=new ct,this.vegaTableRenderer=new Ke,this.vegaTableHeaderRenderer=new Ae,this.vegaTableBodyRenderer=new Le,this.vegaTableRowRenderer=new Qe,this.vegaTableCellRenderer=new Se,this.vegaTablePaginationRenderer=new Ie,this.vegaTableScrollContainerRenderer=new ze,this.vegaTableRowSelectionController=new Ee,this.vegaTableDataSourceController=new Oe,this.vegaTablePaginationController=new Ve,this.vegaTableEditableController=new Fe,this.vegaTableSortController=new He,this.vegaTableColGroupRenderer=new Ye,this.vegaTableChildrenController=new Ze,this.vegaTableRowDraggableController=new vt,this.vegaTableExpandRowController=new ke,this.pageResizeObserverSlimmer=new ae,this.rowSelectionNotifySlimmer=se(ft,"rowSelection","watchRowSelection"),this.expandableRowsNotifySlimmer=se(ft,"expandableRows","watchExpandableRows"),this.hasExpandableRowNotifySlimmer=se(ft,"hasExpandableRow","watchHasExpandableRow"),this.paddingXNotifySlimmer=se(ft,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=se(ft,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=se(ft,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new re([_,K,B],(()=>this.host)),this.changeEventEmitter=le(ft,_),this.selectChangeEventEmitter=le(ft,V),this.selectAllChangeEventEmitter=le(ft,$),this.rowClickEventEmitter=le(ft,F),this.rowExpandEventEmitter=le(ft,G),this.rowDragDropEventEmitter=le(ft,X),this.rowDividerNotifySlimmer=se(ft,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=se(ft,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=se(ft,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=se(ft,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=se(ft,"currentData","watchCurrentData"),this.rowDraggableNotifySlimmer=se(ft,"rowDraggable","watchRowDraggable"),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(it),this.rowSelectEventEmitter=le(ft,H),this.rowSelectAllEventEmitter=le(ft,U),this.selectedRowKeySet=new xe(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new xe(new Set,(e=>{this.expandedRowKeySet=e})),this.currentBreakpoint=te(),this.sortersMap=new ne(new Map,(e=>{this.sortersMap=e})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new xe(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.expandableRows=[],this.hasExpandableRow=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDraggable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"}}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(e,t){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumnStructureModel(){}watchExpandableRows(){}watchHasExpandableRow(){}watchColumns(){}watchGroupColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDraggable(){}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 r(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columnStructureModel:["watchColumnStructureModel"],expandableRows:["watchExpandableRows"],hasExpandableRow:["watchHasExpandableRow"],columns:["watchColumns"],groupColumns:["watchGroupColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDraggable:["watchRowDraggable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};ut([u()],ft.prototype,"globalSlimmers",void 0),ut([h()],ft.prototype,"translationSlimmer",void 0),ut([h()],ft.prototype,"vegaTableRenderModeController",void 0),ut([h()],ft.prototype,"vegaTableColumnStructureModelController",void 0),ut([h()],ft.prototype,"vegaTableRenderInputController",void 0),ut([h()],ft.prototype,"vegaTablePinnedRenderer",void 0),ut([h()],ft.prototype,"vegaTableRenderer",void 0),ut([h()],ft.prototype,"vegaTableHeaderRenderer",void 0),ut([h()],ft.prototype,"vegaTableBodyRenderer",void 0),ut([h()],ft.prototype,"vegaTableRowRenderer",void 0),ut([h()],ft.prototype,"vegaTableCellRenderer",void 0),ut([h()],ft.prototype,"vegaTablePaginationRenderer",void 0),ut([h()],ft.prototype,"vegaTableScrollContainerRenderer",void 0),ut([h()],ft.prototype,"vegaTableRowSelectionController",void 0),ut([h()],ft.prototype,"vegaTableDataSourceController",void 0),ut([h()],ft.prototype,"vegaTablePaginationController",void 0),ut([h()],ft.prototype,"vegaTableEditableController",void 0),ut([h()],ft.prototype,"vegaTableSortController",void 0),ut([h()],ft.prototype,"vegaTableColGroupRenderer",void 0),ut([h()],ft.prototype,"vegaTableChildrenController",void 0),ut([h()],ft.prototype,"vegaTableRowDraggableController",void 0),ut([h()],ft.prototype,"vegaTableExpandRowController",void 0),ut([h()],ft.prototype,"pageResizeObserverSlimmer",void 0),ut([h()],ft.prototype,"rowSelectionNotifySlimmer",void 0),ut([h()],ft.prototype,"expandableRowsNotifySlimmer",void 0),ut([h()],ft.prototype,"hasExpandableRowNotifySlimmer",void 0),ut([h()],ft.prototype,"paddingXNotifySlimmer",void 0),ut([h()],ft.prototype,"rowClickableNotifySlimmer",void 0),ut([h()],ft.prototype,"scrollConfigNotifySlimmer",void 0),ut([h()],ft.prototype,"eventsPrevent",void 0),ut([h()],ft.prototype,"changeEventEmitter",void 0),ut([h()],ft.prototype,"selectChangeEventEmitter",void 0),ut([h()],ft.prototype,"selectAllChangeEventEmitter",void 0),ut([h()],ft.prototype,"rowClickEventEmitter",void 0),ut([h()],ft.prototype,"rowExpandEventEmitter",void 0),ut([h()],ft.prototype,"rowDragDropEventEmitter",void 0),ut([h()],ft.prototype,"rowDividerNotifySlimmer",void 0),ut([h()],ft.prototype,"columnDividerNotifySlimmer",void 0),ut([h()],ft.prototype,"densityNotifySlimmer",void 0),ut([h()],ft.prototype,"isTemplateRenderModeNotifySlimmer",void 0),ut([h()],ft.prototype,"currentDataNotifySlimmer",void 0),ut([h()],ft.prototype,"rowDraggableNotifySlimmer",void 0),ut([h()],ft.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ut([h()],ft.prototype,"rowSelectEventEmitter",void 0),ut([h()],ft.prototype,"rowSelectAllEventEmitter",void 0),ft.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}.draggable-col{min-width:16px;width:16px}';var gt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const wt=class{constructor(e){a(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new re([_],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return Q(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return r(this)}};gt([u()],wt.prototype,"globalSlimmers",void 0),gt([h()],wt.prototype,"childChangeEventPrevent",void 0),gt([h()],wt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),wt.style=":host{display:contents}";const mt=(e,t)=>e&&Z(e)?`v-hidden ${e}:${t}`:"";var xt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class yt extends be{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"}]})}}xt([l()],yt.prototype,"host",void 0),xt([l({writable:!0})],yt.prototype,"density",void 0),xt([l({writable:!0})],yt.prototype,"columnDivider",void 0),xt([l({writable:!0})],yt.prototype,"clickable",void 0);var Rt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class St extends be{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}Rt([l({writable:!0})],St.prototype,"checked",void 0),Rt([l({writable:!0})],St.prototype,"expanded",void 0),Rt([l({writable:!0})],St.prototype,"striped",void 0),Rt([l({writable:!0})],St.prototype,"rowDivider",void 0);var Ct=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class kt extends n{constructor(e){super(),this.observer=null,this.table=null,this.observerSubject=e}componentWillRenderInput(){this.renderInput=this.fetchRenderInput()}connectRenderInputObserver(){this.table=C(this.host,"vega-table"),this.table&&this.registerRenderInputChangeObserver()}disconnectRenderInputObserver(){this.table&&this.observer&&(this.unregisterRenderInputChangeObserver(),this.observer=null,this.table=null)}fetchRenderInput(){return this.table?O.call(E.getSubject(this.table,this.observerSubject),this.host):null}registerRenderInputChangeObserver(){this.observer=new S((()=>!0),(()=>{this.renderInput=this.fetchRenderInput()})),g.register(E.getSubject(this.table,A),this.observer)}unregisterRenderInputChangeObserver(){g.unregister(E.getSubject(this.table,A),this.observer)}}Ct([l()],kt.prototype,"host",void 0),Ct([l({writable:!0})],kt.prototype,"renderInput",void 0),Ct([c("componentWillRender")],kt.prototype,"componentWillRenderInput",null),Ct([c("connectedCallback")],kt.prototype,"connectRenderInputObserver",null),Ct([c("disconnectedCallback")],kt.prototype,"disconnectRenderInputObserver",null);var jt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Et=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new yt,this.vegaTableRowStateSubscriber=new St,this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.vegaTableRenderInputConsumerSlimmer=new kt(W),this.currentBreakpoint=te(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){var t,i,a;const s=mt(this.breakpoint,"v-table-cell"),r=(()=>{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})(),l=this.getCellOverflowClass(),n=[s,r,"vega-table-cell"];return ve.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||n.push("break-word"),(null===(t=this.renderInput)||void 0===t?void 0:t.isRightStartPinned)&&n.push("left-divider"),(null===(i=this.renderInput)||void 0===i?void 0:i.isLeftEndPinned)&&n.push("right-divider"),(null===(a=this.renderInput)||void 0===a?void 0:a.isNoPinnedEnd)&&n.push("hide-right-border"),Q(e(o,{class:k([`density-${Y.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(n),part:"cell",onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},e("div",{class:l},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 r(this)}};jt([u()],Et.prototype,"globalSlimmers",void 0),jt([h()],Et.prototype,"vegaTableCellStateController",void 0),jt([h()],Et.prototype,"vegaTableRowStateSubscriber",void 0),jt([h()],Et.prototype,"pageResizeObserverSlimmer",void 0),jt([h()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),jt([h()],Et.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),Et.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 Dt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ot 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:`${ke.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("div",{class:"expanded-row-slot-inner"},e("slot",null))),e("td",null))}}Dt([l()],Ot.prototype,"host",void 0),Dt([l()],Ot.prototype,"rowKey",void 0),Dt([l()],Ot.prototype,"expanded",void 0),Dt([l()],Ot.prototype,"checked",void 0),Dt([l()],Ot.prototype,"colSpan",void 0),Dt([l()],Ot.prototype,"striped",void 0);var Tt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Lt extends n{connectedCallback(){this.expandObserver=new S(this.isAcceptableTableExpandRowObserver.bind(this),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),g.register(w,this.expandObserver)}disconnectedCallback(){g.unregister(w,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 Mt(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function At(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}Tt([l()],Lt.prototype,"host",void 0),Tt([l()],Lt.prototype,"rowKey",void 0),Tt([l({writable:!0})],Lt.prototype,"expanded",void 0),Tt([c("connectedCallback")],Lt.prototype,"connectedCallback",null),Tt([c("disconnectedCallback")],Lt.prototype,"disconnectedCallback",null);var Nt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class It extends n{connectedCallback(){this.rowSelectionObserver=new S(Mt.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),g.register(m,this.rowSelectionObserver)}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver)}}Nt([l({writable:!0})],It.prototype,"checked",void 0),Nt([l()],It.prototype,"host",void 0),Nt([l()],It.prototype,"rowKey",void 0),Nt([c("connectedCallback")],It.prototype,"connectedCallback",null),Nt([c("disconnectedCallback")],It.prototype,"disconnectedCallback",null);var Wt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Pt extends be{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}},{subStateName:"withRowDraggable",parentStateName:"rowDraggable"}]})}}Wt([l()],Pt.prototype,"host",void 0),Wt([l({writable:!0})],Pt.prototype,"withMultipleSelection",void 0),Wt([l({writable:!0})],Pt.prototype,"withRowDraggable",void 0),Wt([l()],Pt.prototype,"vegaTableExpandRowColSpanController",void 0);var zt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class _t extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)+(this.withRowDraggable?1:0)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}watchWithRowDraggable(){this.updateColSpan()}getVisibleColumnsNumber(){const e=C(this.host,"vega-table"),t=te(),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&&ue[t]>=ue[e.breakpoint])).length}}zt([l()],_t.prototype,"host",void 0),zt([l({writable:!0})],_t.prototype,"colSpan",void 0),zt([l()],_t.prototype,"withMultipleSelection",void 0),zt([l()],_t.prototype,"withRowDraggable",void 0),zt([c("componentWillLoad")],_t.prototype,"componentWillLoad",null),zt([c("watchCurrentBreakpoint")],_t.prototype,"watchCurrentBreakpoint",null),zt([c("watchWithMultipleSelection")],_t.prototype,"watchWithMultipleSelection",null),zt([c("watchWithRowDraggable")],_t.prototype,"watchWithRowDraggable",null);var Kt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Bt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Ot,this.vegaTableExpandRowExpandController=new Lt,this.vegaTableExpandRowSelectionController=new It,this.vegaTableExpandRowStateController=new Pt,this.vegaTableExpandRowColSpanController=new _t,this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=te(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}watchWithRowDraggable(){}render(){return b(e("slot",null)),Q(e(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"],withRowDraggable:["watchWithRowDraggable"]}}};Kt([u()],Bt.prototype,"globalSlimmers",void 0),Kt([h()],Bt.prototype,"vegaTableExpandRowRenderer",void 0),Kt([h()],Bt.prototype,"vegaTableExpandRowExpandController",void 0),Kt([h()],Bt.prototype,"vegaTableExpandRowSelectionController",void 0),Kt([h()],Bt.prototype,"vegaTableExpandRowStateController",void 0),Kt([h()],Bt.prototype,"vegaTableExpandRowColSpanController",void 0),Kt([h()],Bt.prototype,"pageResizeObserverSlimmer",void 0),Kt([h()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Bt.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 Vt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class $t extends be{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(){pe.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(e){this.tableFootRef&&pe.removeZIndex(this.tableFootRef,"base"),this.fixed&&pe.setZIndex(e,"base"),this.tableFootRef=e}}Vt([l()],$t.prototype,"host",void 0),Vt([l({writable:!0})],$t.prototype,"fixed",void 0),Vt([l({writable:!0})],$t.prototype,"rowDivider",void 0),Vt([c("disconnectedCallback")],$t.prototype,"handleDisconnectedCallback",null);var Ft=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Gt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableFootStateController=new $t,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.childChangeEventPrevent=new re([_],(()=>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 r(this)}};Ft([u()],Gt.prototype,"globalSlimmers",void 0),Ft([h()],Gt.prototype,"vegaTableFootStateController",void 0),Ft([h()],Gt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ft([h()],Gt.prototype,"childChangeEventPrevent",void 0),Gt.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 Xt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ht extends be{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}}}]})}}Xt([l({writable:!0})],Ht.prototype,"density",void 0),Xt([l({writable:!0})],Ht.prototype,"columnDivider",void 0);var Ut=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Yt extends n{render(){return e("td",{class:{"vega-table-cell":!0,"break-word":!ve.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[mt(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))))}}Ut([l()],Yt.prototype,"host",void 0),Ut([l()],Yt.prototype,"breakpoint",void 0),Ut([l()],Yt.prototype,"textAlign",void 0);var qt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Zt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableFootCellStateController=new Ht,this.vegaTableFootCellRenderer=new Yt,this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=te()}render(){return Q(e(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width}},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return r(this)}};qt([u()],Zt.prototype,"globalSlimmers",void 0),qt([h()],Zt.prototype,"vegaTableFootCellStateController",void 0),qt([h()],Zt.prototype,"vegaTableFootCellRenderer",void 0),qt([h()],Zt.prototype,"pageResizeObserverSlimmer",void 0),qt([h()],Zt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Zt.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 Jt=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Qt extends n{constructor(){super(...arguments),this.renderFooterSelectionCell=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"})},this.renderFooterExpandableCell=()=>this.hasExpandableRow&&e("td",{class:"vega-table-expand-action-column"}),this.renderFooterDraggableCell=()=>this.draggable&&e("td",{class:"vega-table-draggable-column"})}render(){return e("tr",null,e("td",{style:{width:this.paddingX[0]}}),this.renderFooterDraggableCell(),this.renderFooterSelectionCell(),e("slot",null),this.renderFooterExpandableCell(),e("td",{style:{width:this.paddingX[1]}}))}}Jt([l()],Qt.prototype,"host",void 0),Jt([l()],Qt.prototype,"paddingX",void 0),Jt([l()],Qt.prototype,"selectionType",void 0),Jt([l()],Qt.prototype,"hasExpandableRow",void 0),Jt([l()],Qt.prototype,"draggable",void 0);var ei=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class ti extends be{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"paddingX",parentStateName:"paddingX"},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=e=>{if(e){const{type:t}=e;this.selectionType=t}else this.selectionType=null}}}ei([l()],ti.prototype,"host",void 0),ei([l({writable:!0})],ti.prototype,"selectionType",void 0),ei([l({writable:!0})],ti.prototype,"paddingX",void 0),ei([l({writable:!0})],ti.prototype,"columnDivider",void 0),ei([l({writable:!0})],ti.prototype,"density",void 0),ei([l({writable:!0})],ti.prototype,"hasExpandableRow",void 0),ei([l({writable:!0})],ti.prototype,"draggable",void 0);var ii=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const oi=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableFootRowStateController=new ti,this.vegaTableFootRowRenderer=new Qt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.pageResizeObserverSlimmer=new ae,this.currentBreakpoint=te(),this.hasExpandableRow=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableFootRowRenderer.render()),this.host)}get host(){return r(this)}};ii([u()],oi.prototype,"globalSlimmers",void 0),ii([h()],oi.prototype,"vegaTableFootRowStateController",void 0),ii([h()],oi.prototype,"vegaTableFootRowRenderer",void 0),ii([h()],oi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ii([h()],oi.prototype,"pageResizeObserverSlimmer",void 0),oi.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 ai=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class si extends be{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}ai([l()],si.prototype,"host",void 0),ai([l({writable:!0})],si.prototype,"fixed",void 0);var ri=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const li=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new si,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.headCellEventPrevent=new re([_],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&pe.removeZIndex(this.tableHeadRef,"base"),this.fixed&&pe.setZIndex(e,"base"),this.tableHeadRef=e}}connectedCallback(){this.tableHeadRef&&this.fixed&&pe.setZIndex(this.tableHeadRef,"base")}disconnectedCallback(){pe.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 r(this)}};ri([u()],li.prototype,"globalSlimmers",void 0),ri([h()],li.prototype,"vegaTableHeadStateController",void 0),ri([h()],li.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ri([h()],li.prototype,"headCellEventPrevent",void 0),li.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 ni=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class di extends be{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}}}]})}}ni([l({writable:!0})],di.prototype,"density",void 0),ni([l({writable:!0})],di.prototype,"columnDivider",void 0);var ci=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class hi extends n{render(){if(!this.sorter)return;const{icon:t,color:i}=hi.SORT_ICON_MAP[this.sortOrder||"default"];return e("span",{class:"vega-table-column-sorter"},e("vega-icon",{color:i,icon:ge.getIconKey(t),size:"size-12"}))}}hi.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"}},ci([l()],hi.prototype,"sorter",void 0),ci([l()],hi.prototype,"sortOrder",void 0);var pi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class bi extends n{disconnectedCallback(){const e=C(this.host,"vega-table-head");e&&g.unregister(E.getSubject(e,P),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)),g.register(E.getSubject(e,P),this.observer))}notifyOtherHeadCellOnClickSort(){const e=C(this.host,"vega-table-head");e&&g.notify(E.getSubject(e,P),{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-")))}}pi([l()],bi.prototype,"host",void 0),pi([l({writable:!0})],bi.prototype,"sortOrder",void 0),pi([l()],bi.prototype,"sortConfig",void 0),pi([c("disconnectedCallback")],bi.prototype,"disconnectedCallback",null),pi([c("componentWillLoad")],bi.prototype,"componentWillLoad",null);var vi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const ui=class{constructor(e){a(this,e),this.vegaClick=s(this,"vegaClick",7),this.click=s(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=le(ui,z),this.vegaTableHeadCellStateController=new di,this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.sortIconRenderer=new hi,this.vegaTableHeadCellSortConfigController=new bi,this.vegaTableRenderInputConsumerSlimmer=new kt(I),this.currentBreakpoint=te(),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=ve.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(){var t,i,a,s,r,l,n;const d=this.sorter?{role:"button",onKeyDown:fe(),tabIndex:0,onClick:e=>this.handleSort(e)}:null;return Q(e(o,{class:{[`density-${Y.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":!ve.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),"is-group-cell":null===(t=this.renderInput)||void 0===t?void 0:t.headHasGroupColumn,"hide-right-border":(null===(i=this.renderInput)||void 0===i?void 0:i.isViewEnd)||(null===(a=this.renderInput)||void 0===a?void 0:a.isNoPinnedEnd),"right-divider":null===(s=this.renderInput)||void 0===s?void 0:s.isLeftEndPinned,"left-divider":null===(r=this.renderInput)||void 0===r?void 0:r.isRightStartPinned,[mt(this.breakpoint,"v-table-cell")]:!0}},d,{colSpan:null===(l=this.renderInput)||void 0===l?void 0:l.colSpan,rowSpan:null===(n=this.renderInput)||void 0===n?void 0:n.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 r(this)}};ge.register({"chevron-up":we,"chevron-down":me,"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>'}}),vi([u()],ui.prototype,"globalSlimmers",void 0),vi([h()],ui.prototype,"clickEventEmitter",void 0),vi([h()],ui.prototype,"vegaTableHeadCellStateController",void 0),vi([h()],ui.prototype,"pageResizeObserverSlimmer",void 0),vi([h()],ui.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),vi([h()],ui.prototype,"sortIconRenderer",void 0),vi([h()],ui.prototype,"vegaTableHeadCellSortConfigController",void 0),vi([h()],ui.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),ui.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 fi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class gi 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=>{D.addUniqueObserverToNode(e,_,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;q(t)&&t!==this.checkedAll&&g.notify(x,{host:this.host,checked:t})}},this.renderHeaderDraggableCell=t=>this.draggable&&e("th",{rowSpan:t.startRowSpan,class:{"vega-table-draggable-column":!0,hidden:t.isStartHidden}}),this.renderHeaderExpandableCell=t=>this.hasExpandableRow&&e("th",{rowSpan:t.endRowSpan,class:{"vega-table-expand-action-column":!0,hidden:t.isEndHidden}}),this.handleClick=e=>{e.stopPropagation(),O.call(E.getSubject(C(this.host,"vega-table"),M),{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.renderHeaderDraggableCell(o),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=this.renderInput,i=null==t?void 0:t[0],o=null==t?void 0:t[t.length-1];return i&&(e.headHasGroupColumn=i.headHasGroupColumn,e.headHasPinnedColumn=i.headHasPinnedColumn,e.headHasGroupColumn&&(e.startRowSpan="multiple"===this.selectionType&&0===i.level?i.headMaxDepth:i.rowSpan,e.isStartHidden=i.headHasGroupColumn&&("multiple"===this.selectionType&&i.level>0||!i.isViewStart))),o&&o.headHasGroupColumn&&(e.endRowSpan=o.rowSpan,e.isEndHidden=i.headHasGroupColumn&&!o.isViewEnd),e}}fi([l()],gi.prototype,"host",void 0),fi([l()],gi.prototype,"paddingX",void 0),fi([l()],gi.prototype,"selectionType",void 0),fi([l()],gi.prototype,"hideSelectAll",void 0),fi([l()],gi.prototype,"selectAllDisabled",void 0),fi([l()],gi.prototype,"checkedAll",void 0),fi([l()],gi.prototype,"hasExpandableRow",void 0),fi([l()],gi.prototype,"draggable",void 0),fi([l()],gi.prototype,"isEmptyTable",void 0),fi([l()],gi.prototype,"isTemplateRenderMode",void 0),fi([l()],gi.prototype,"renderInput",void 0),fi([c("connectedCallback")],gi.prototype,"connectedCallback",null),fi([c("disconnectedCallback")],gi.prototype,"disconnectedCallback",null),fi([c("componentDidLoad")],gi.prototype,"componentDidLoad",null);var wi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class mi extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(x,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(At.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),g.register(x,this.rowSelectionAllObserver)}}wi([l()],mi.prototype,"host",void 0),wi([l({writable:!0})],mi.prototype,"checkedAll",void 0),wi([c("connectedCallback")],mi.prototype,"connectedCallback",null),wi([c("disconnectedCallback")],mi.prototype,"disconnectedCallback",null);var xi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class yi extends be{constructor(){super({parent:"vega-table",subStates:[{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{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}},{subStateName:"draggable",parentStateName:"rowDraggable"}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}xi([l()],yi.prototype,"host",void 0),xi([l({writable:!0})],yi.prototype,"hasExpandableRow",void 0),xi([l({writable:!0})],yi.prototype,"selectionType",void 0),xi([l({writable:!0})],yi.prototype,"paddingX",void 0),xi([l({writable:!0})],yi.prototype,"columnDivider",void 0),xi([l({writable:!0})],yi.prototype,"density",void 0),xi([l({writable:!0})],yi.prototype,"isTemplateRenderMode",void 0),xi([l({writable:!0})],yi.prototype,"isEmptyTable",void 0),xi([l({writable:!0})],yi.prototype,"draggable",void 0);var Ri=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Si=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new yi,this.vegaTableHeadRowRenderer=new gi,this.vegaTableHeadRowController=new mi,this.headCellEventPrevent=new re([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.vegaTableRenderInputConsumerSlimmer=new kt(N),this.currentBreakpoint=te(),this.hasExpandableRow=!1}render(){return b(e("slot",null)),Q(e(o,{class:{"column-divider":this.columnDivider,[`density-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return r(this)}};Ri([u()],Si.prototype,"globalSlimmers",void 0),Ri([h()],Si.prototype,"vegaTableHeadRowStateController",void 0),Ri([h()],Si.prototype,"vegaTableHeadRowRenderer",void 0),Ri([h()],Si.prototype,"vegaTableHeadRowController",void 0),Ri([h()],Si.prototype,"headCellEventPrevent",void 0),Ri([h()],Si.prototype,"pageResizeObserverSlimmer",void 0),Ri([h()],Si.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ri([h()],Si.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),Si.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 Ci=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class ki extends n{constructor(){super(...arguments),this.renderDragIcon=()=>this.draggable&&e("td",{class:"vega-table-draggable-column"},e("vega-flex",{alignItems:"center"},e("vega-icon",{icon:ge.getIconKey("grip-dots-vertical"),color:"text-link"}))),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=>{D.addUniqueObserverToNode(e,_,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>(this.expandable||this.hasExpandableRow)&&e("td",{class:"vega-table-expand-action-column"},e("div",{class:"vega-table-expand-icon-wrapper"},this.expandable&&e("vega-icon",{icon:ge.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(),O.call(E.getSubject(this.parentTableRef,L),{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.renderDragIcon(),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")}}ge.register({"chevron-down":me,"grip-dots-vertical":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 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="M32 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm0 160a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM64 416A32 32 0 1 0 0 416a32 32 0 1 0 64 0zm96-288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm32 128a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM160 448a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>'}}),Ci([l()],ki.prototype,"host",void 0),Ci([l()],ki.prototype,"rowKey",void 0),Ci([l()],ki.prototype,"checked",void 0),Ci([l()],ki.prototype,"clickable",void 0),Ci([l()],ki.prototype,"clicked",void 0),Ci([l()],ki.prototype,"expanded",void 0),Ci([l()],ki.prototype,"paddingX",void 0),Ci([l()],ki.prototype,"expandable",void 0),Ci([l()],ki.prototype,"hasExpandableRow",void 0),Ci([l()],ki.prototype,"vegaClick",void 0),Ci([l()],ki.prototype,"selectionType",void 0),Ci([l()],ki.prototype,"draggable",void 0),Ci([l()],ki.prototype,"vegaTableRowSelectionController",void 0),Ci([l()],ki.prototype,"vegaTableRowExpandController",void 0),Ci([l()],ki.prototype,"vegaTableRowClickController",void 0),Ci([l()],ki.prototype,"expandEventEmitter",void 0),Ci([c("connectedCallback")],ki.prototype,"connectedCallback",null);var ji=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ei extends n{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,g.notify(m,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){g.unregister(x,this.rowSelectionAllObserver),g.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(At.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),g.register(x,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(At.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),g.register(m,this.rowSelectionObserver)}}ji([l()],Ei.prototype,"host",void 0),ji([l()],Ei.prototype,"selectionType",void 0),ji([l()],Ei.prototype,"rowKey",void 0),ji([l({writable:!0})],Ei.prototype,"checked",void 0),ji([c("connectedCallback")],Ei.prototype,"connectedCallback",null),ji([c("disconnectedCallback")],Ei.prototype,"disconnectedCallback",null);var Di=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Oi extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){g.unregister(w,this.rowExpandObserver)}handleExpandIconClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),T),{host:this.host,rowKey:this.rowKey,expanded:!this.expanded}).defaultPrevented||(this.expanded=!this.expanded,g.notify(w,{host:this.host,rowKey:this.rowKey,expanded:this.expanded}))}initRowExpandObserver(){this.rowExpandObserver=new S(At.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),g.register(w,this.rowExpandObserver)}}Di([l()],Oi.prototype,"host",void 0),Di([l()],Oi.prototype,"rowKey",void 0),Di([l()],Oi.prototype,"expandable",void 0),Di([l({writable:!0})],Oi.prototype,"expanded",void 0),Di([l()],Oi.prototype,"vegaTableRowRenderer",void 0),Di([c("connectedCallback")],Oi.prototype,"connectedCallback",null),Di([c("disconnectedCallback")],Oi.prototype,"disconnectedCallback",null);var Ti=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Li extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){g.unregister(y,this.rowClickObserver)}handleRowClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(g.notify(y,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(Mt.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),g.register(y,this.rowClickObserver)}}Ti([l()],Li.prototype,"host",void 0),Ti([l()],Li.prototype,"rowKey",void 0),Ti([l({writable:!0})],Li.prototype,"clicked",void 0),Ti([l()],Li.prototype,"checked",void 0),Ti([l()],Li.prototype,"selectionType",void 0),Ti([l()],Li.prototype,"vegaClick",void 0),Ti([l()],Li.prototype,"vegaTableRowSelectionController",void 0),Ti([l()],Li.prototype,"clickEventEmitter",void 0),Ti([l()],Li.prototype,"vegaTableRowRenderer",void 0),Ti([c("connectedCallback")],Li.prototype,"connectedCallback",null),Ti([c("disconnectedCallback")],Li.prototype,"disconnectedCallback",null);var Mi=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class Ai extends be{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"expandableRows",callback:e=>{this.expandable=e.includes(this.rowKey)}},{subStateName:"hasExpandableRow",parentStateName:"hasExpandableRow"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=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"},{subStateName:"draggable",parentStateName:"rowDraggable"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Mi([l()],Ai.prototype,"host",void 0),Mi([l({writable:!0})],Ai.prototype,"expandable",void 0),Mi([l({writable:!0})],Ai.prototype,"hasExpandableRow",void 0),Mi([l({writable:!0})],Ai.prototype,"clickable",void 0),Mi([l({writable:!0})],Ai.prototype,"paddingX",void 0),Mi([l({writable:!0})],Ai.prototype,"selectionType",void 0),Mi([l({writable:!0})],Ai.prototype,"columnDivider",void 0),Mi([l({writable:!0})],Ai.prototype,"density",void 0),Mi([l({writable:!0})],Ai.prototype,"draggable",void 0),Mi([l()],Ai.prototype,"rowKey",void 0),Mi([c("watchSelectionType")],Ai.prototype,"watchSelectionType",null),Mi([c("componentWillLoad")],Ai.prototype,"handleComponentWillLoad",null);var Ni=function(e,t,i,o){var a,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(r=(s<3?a(r):s>3?a(t,i,r):a(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const Ii=class{constructor(e){a(this,e),this.vegaClick=s(this,"vegaClick",7),this.click=s(this,"click",7),this.vegaExpand=s(this,"vegaExpand",7),this.expand=s(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new ki,this.vegaTableRowSelectionController=new Ei,this.vegaTableRowExpandController=new Oi,this.vegaTableRowClickController=new Li,this.vegaTableRowStateController=new Ai,this.clickEventEmitter=le(Ii,z),this.expandEventEmitter=le(Ii,B),this.checkboxValueChangeEventPrevent=new re([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new ae,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.checkedNotifySlimmer=se(Ii,"checked","watchChecked"),this.expandedNotifySlimmer=se(Ii,"expanded","watchExpanded"),this.stripedNotifySlimmer=se(Ii,"striped","watchStriped"),this.rowDividerNotifySlimmer=se(Ii,"rowDivider","watchRowDivider"),this.currentBreakpoint=te(),this.hasExpandableRow=!1,this.draggable=!1}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-${Y.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{selectionType:["watchSelectionType"],checked:["watchChecked"],expanded:["watchExpanded"],striped:["watchStriped"],rowDivider:["watchRowDivider"]}}};Ni([u()],Ii.prototype,"globalSlimmers",void 0),Ni([h()],Ii.prototype,"vegaTableRowRenderer",void 0),Ni([h()],Ii.prototype,"vegaTableRowSelectionController",void 0),Ni([h()],Ii.prototype,"vegaTableRowExpandController",void 0),Ni([h()],Ii.prototype,"vegaTableRowClickController",void 0),Ni([h()],Ii.prototype,"vegaTableRowStateController",void 0),Ni([h()],Ii.prototype,"clickEventEmitter",void 0),Ni([h()],Ii.prototype,"expandEventEmitter",void 0),Ni([h()],Ii.prototype,"checkboxValueChangeEventPrevent",void 0),Ni([h()],Ii.prototype,"pageResizeObserverSlimmer",void 0),Ni([h()],Ii.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ni([h()],Ii.prototype,"checkedNotifySlimmer",void 0),Ni([h()],Ii.prototype,"expandedNotifySlimmer",void 0),Ni([h()],Ii.prototype,"stripedNotifySlimmer",void 0),Ni([h()],Ii.prototype,"rowDividerNotifySlimmer",void 0),Ii.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}.vega-table-draggable-column{width:16px;min-width:16px;cursor:move}";export{ft as vega_table,wt as vega_table_body,Et as vega_table_cell,Bt as vega_table_expand_row,Gt as vega_table_foot,Zt as vega_table_foot_cell,oi as vega_table_foot_row,li as vega_table_head,ui as vega_table_head_cell,Si as vega_table_head_row,Ii as vega_table_row}
@@ -1 +0,0 @@
1
- import{h as t,H as e,r as i,c as s,g as r}from"./p-6b2342e0.js";import{c as a,M as n,V as o,I as h}from"./p-6e1ab235.js";import{V as p,I as l}from"./p-8ce9e214.js";import{s as d}from"./p-519a7d55.js";import{H as u,I as c,i as m,K as f,L as v}from"./p-2927b7a1.js";import{D as g}from"./p-11e2dcf5.js";import{F as b}from"./p-a528714c.js";import{C as x}from"./p-2d0d575f.js";import{c as w}from"./p-04a65b3f.js";import{K as j}from"./p-296c5e52.js";import{C as y}from"./p-ab04eff6.js";import{F as I}from"./p-2d694684.js";import{R}from"./p-280cbcdb.js";import"./p-331a62d5.js";import"./p-ec2a1d4c.js";import"./p-6a334573.js";import"./p-4dd02704.js";import"./p-b75ee3ba.js";import"./p-8077b117.js";import"./p-78ba7ca9.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-0a261b66.js";import"./p-5f377954.js";import"./p-dcf162e9.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-3a93730e.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-10fa27d2.js";var V=function(t,e,i,s){var r,a=arguments.length,n=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class C extends o{constructor(){super(...arguments),this.vegaInputRefs=[],this.focusInputPasscode=()=>{this.vegaInputRefs[0]&&this.vegaInputRefs[0].doFocus()},this.handleVegaFocus=t=>()=>{0!==t&&(this.vegaInputRefs[t].tabIndex=null);const e=this.vegaInputValues.get(t)?t:this.valueController.getFirstEmptyIndex(),i=-1===e?this.length-1:e;this.currentIndex=i,this.vegaInputRefs[i].doFocus()},this.handleVegaBlur=t=>()=>{0!==t&&(this.vegaInputRefs[t].tabIndex=-1)},this.handleVegaChange=t=>e=>{var i;const s=e.detail||"";if(2===s.length||1===s.length&&!this.vegaInputValues.get(t)){const e=this.generateNewInputValue(t,s);this.vegaInputValues.set(t,e),null===(i=this.vegaInputRefs[t+1])||void 0===i||i.doFocus()}},this.handleVegaPaste=()=>t=>{t.preventDefault();const e=t.detail.getData("text");this.valueController.setValuesArray(e),this.vegaInputRefs[this.value.length<this.length?this.value.length:this.length-1].doFocus()}}watchLengthAndInputType(){this.valueController.setValuesArray(this.value)}getVegaInputRefs(){return this.vegaInputRefs}getCurrentIndex(){return this.currentIndex}getInputPasscodeContainerRef(){return this.inputPasscodeContainerRef}render(){const i=Array.from({length:this.length}).map(((e,i)=>t("vega-input",{class:"small"===this.size?"small":"medium",key:i,"data-tabindex":0!==i?-1:0,showClearIcon:!1,disabled:this.disabled,"data-aria-hidden":String(!this.isInputAccessibleForScreenReader(i)),"data-aria-label":`Passcode input ${i+1} of ${this.length}`,value:this.vegaInputValues.get(i)||"",autocomplete:0===i?"one-time-code":"off",inputmode:"text"===this.inputType?"text":"numeric",ref:t=>{this.vegaInputRefs[i]=t,g.addUniqueObserverToNode(t,u,this.handleVegaFocus(i)),g.addUniqueObserverToNode(t,c,this.handleVegaBlur(i)),g.addUniqueObserverToNode(t,m,this.handleVegaChange(i)),g.addUniqueObserverToNode(t,f,this.handleVegaPaste())},maskConfig:{type:"custom-formatter",formatter:t=>this.valueController.valueValidationFilter(t)}})));return t(e,null,this.label&&this.renderLabel(),t("vega-flex",{class:"vega-input-passcode-container",direction:"row",gap:"size-8",role:"group","aria-label":this.label||"One-time password input",ref:t=>this.inputPasscodeContainerRef=t},i),this.hint&&t("vega-hint",null,this.hint))}renderLabel(){return t("vega-field-label",{onClick:this.focusInputPasscode,isFieldRequired:this.required,disabled:this.disabled,label:this.label})}getFirstEmptyIndexForRender(t){for(let e=0;e<t;e++)if(!this.vegaInputValues.get(e))return e;return-1}isInputAccessibleForScreenReader(t){const e=this.getFirstEmptyIndexForRender(this.length);return-1===e||t<=e}generateNewInputValue(t,e){if(2===e.length){for(let i=0;i<e.length;i++)if(e[i]!==this.vegaInputValues.get(t))return e[i];return this.vegaInputValues.get(t)}return e}}V([a()],C.prototype,"host",void 0),V([a()],C.prototype,"value",void 0),V([a()],C.prototype,"label",void 0),V([a()],C.prototype,"required",void 0),V([a()],C.prototype,"length",void 0),V([a()],C.prototype,"disabled",void 0),V([a()],C.prototype,"hint",void 0),V([a()],C.prototype,"size",void 0),V([a()],C.prototype,"inputType",void 0),V([a()],C.prototype,"vegaInputValues",void 0),V([a()],C.prototype,"valueController",void 0),V([n("watchLengthAndInputType")],C.prototype,"watchLengthAndInputType",null);var A=function(t,e,i,s){var r,a=arguments.length,n=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class k extends o{componentWillLoad(){this.setValuesArray(this.value),this.value=this.vegaInputValues.join("")}watchValue(){this.setValuesArray(this.value),this.changeEventEmitter.emit(this.value),x.notify(b,{host:this.host,detail:this.value}),this.value.length===this.length&&this.completeEventEmitter.emit(this.value)}watchVegaInputValues(){for(let t=0;t<this.length;t++)this.inputPasscodeRenderer.getVegaInputRefs()[t]&&(this.inputPasscodeRenderer.getVegaInputRefs()[t].value=this.vegaInputValues.get(t)||"");this.value=this.vegaInputValues.join("")}setValuesArray(t){const e=this.valueValidationFilter(t).slice(0,this.length).split("");this.vegaInputValues.setAll(e)}valueValidationFilter(t){return t.replace("text"===this.inputType?/\s/g:/\D/g,"")}getFirstEmptyIndex(){var t;const{length:e}=this;return null!==(t=Array.from({length:e},((t,e)=>this.vegaInputValues.get(e)||"")).findIndex((t=>!t||""===t)))&&void 0!==t?t:-1}}A([a()],k.prototype,"host",void 0),A([a({writable:!0})],k.prototype,"value",void 0),A([a({writable:!0})],k.prototype,"vegaInputValues",void 0),A([a()],k.prototype,"length",void 0),A([a()],k.prototype,"inputType",void 0),A([a()],k.prototype,"inputPasscodeRenderer",void 0),A([a()],k.prototype,"changeEventEmitter",void 0),A([a()],k.prototype,"completeEventEmitter",void 0),A([n("componentWillLoad")],k.prototype,"componentWillLoad",null),A([n("watchValue")],k.prototype,"watchValue",null),A([n("watchVegaInputValues")],k.prototype,"watchVegaInputValues",null);var L=function(t,e,i,s){var r,a=arguments.length,n=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class E extends j{constructor(){super((t=>[{keyCode:"Backspace",activeElementInScope:[this.inputPasscodeRenderer.getInputPasscodeContainerRef()],eventName:"keydown",callback:e=>{t.deletePasscode(e)}},{keyCode:["ArrowLeft","ArrowRight"],activeElementInScope:[this.inputPasscodeRenderer.getInputPasscodeContainerRef()],eventName:"keydown",callback:e=>{t.controlDirectionByKeyboard(e)}}])),this.deletePasscode=t=>{t.preventDefault();const e=this.inputPasscodeRenderer.getCurrentIndex();this.vegaInputValues.get(e)?this.vegaInputValues.withMutation((t=>{for(let i=e;i<this.length-1;i++)t[i]=t[i+1];t[this.length-1]=""})):!this.vegaInputValues.get(e)&&e>0&&(this.vegaInputValues.set(e-1,""),this.inputPasscodeRenderer.getVegaInputRefs()[e-1].doFocus())}}controlDirectionByKeyboard(t){t.preventDefault();const e=this.inputPasscodeRenderer.getCurrentIndex(),i=this.inputPasscodeRenderer.getVegaInputRefs();"ArrowLeft"===t.key&&e>0&&i[e-1].doFocus(),"ArrowRight"===t.key&&this.vegaInputValues.get(e)&&e<this.length-1&&i[e+1].doFocus()}}L([a()],E.prototype,"value",void 0),L([a()],E.prototype,"length",void 0),L([a()],E.prototype,"vegaInputValues",void 0),L([a()],E.prototype,"valueController",void 0),L([a()],E.prototype,"inputPasscodeRenderer",void 0);class F{constructor(t,e){this.length=0,this.array=[],t&&(this.array=t,this.length=t.length),e&&(this.onMutate=e)}onMutate(t){}push(...t){return this.withMutation((e=>{e.push(...t)}))}pop(){return this.withMutation((t=>{t.length>0&&t.pop()}))}set(t,e){return this.withMutation((i=>{t>=0&&(i[t]=e)}))}setAll(t){return this.withMutation((e=>{e.length=0;for(let i=0;i<t.length;i++)e[i]=t[i]}))}clear(){return this.withMutation((t=>{t.length=0}))}withMutation(t){const e=[...this.array];t(e);const i=new F(e,this.onMutate);return this.onMutate(i),i}get(t){return this.array[t]}join(t){return this.array.join(t)}toArray(){return this.array}}var O=function(t,e,i,s){var r,a=arguments.length,n=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const T=class{constructor(t){i(this,t),this.vegaChange=s(this,"vegaChange",7),this.change=s(this,"change",7),this.vegaComplete=s(this,"vegaComplete",7),this.complete=s(this,"complete",7),this.globalSlimmers={},this.formFieldController=new I({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new R:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputPasscodeRenderer.getInputPasscodeContainerRef(),touchableAreaGetter:()=>[...this.inputPasscodeRenderer.getVegaInputRefs()]}),this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.keyboardController=new E,this.valueController=new k,this.inputPasscodeRenderer=new C,this.changeEventEmitter=w(T,m),this.completeEventEmitter=w(T,v),this.eventPreventSlimmer=new y([m],(()=>this.host),{useCapture:!0}),this.vegaInputValues=new F(new Array,(t=>{this.vegaInputValues=t})),this.label="",this.disabled=!1,this.size="medium",this.hint="",this.length=4,this.inputType="numeric",this.value="",this.required=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null}watchVegaInputValues(){}watchLengthAndInputType(){}watchValue(){}watchValidationRules(){}render(){return d(this.inputPasscodeRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{vegaInputValues:["watchVegaInputValues"],length:["watchLengthAndInputType"],inputType:["watchLengthAndInputType"],value:["watchValue"],validationRules:["watchValidationRules"]}}};O([l()],T.prototype,"globalSlimmers",void 0),O([h()],T.prototype,"formFieldController",void 0),O([h()],T.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),O([h()],T.prototype,"keyboardController",void 0),O([h()],T.prototype,"valueController",void 0),O([h()],T.prototype,"inputPasscodeRenderer",void 0),O([h()],T.prototype,"changeEventEmitter",void 0),O([h()],T.prototype,"completeEventEmitter",void 0),O([h()],T.prototype,"eventPreventSlimmer",void 0),T.style=':host{display:inline-block}:host vega-field-label{margin-bottom:8px}:host vega-input::part(input-container){padding-left:0px;padding-right:0px}:host vega-input.small{width:38px;height:42px;box-sizing:border-box}:host vega-input.medium{width:42px;height:50px;box-sizing:border-box}:host vega-input::part(input){text-align:center}:host vega-input.small::part(input-container){padding-top:8px;padding-bottom:8px}:host vega-input.medium::part(input-container){padding-top:12px;padding-bottom:12px}:host .vega-input-passcode-container.error vega-input::part(input-container){border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-input-passcode-container.error vega-input::part(input-container):hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-input-passcode-container.error vega-input::part(input-container):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));box-shadow:0 0 0}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}';export{T as vega_input_passcode}
@@ -1 +0,0 @@
1
- import{h as i,F as t,r as o,c as n,H as e,g as a}from"./p-6b2342e0.js";import{c as r,V as s,M as c,I as d}from"./p-6e1ab235.js";import{s as l}from"./p-6bd5c49b.js";import{V as p,I as h}from"./p-8ce9e214.js";import{s as m}from"./p-519a7d55.js";import{f}from"./p-19adf714.js";import{a as v}from"./p-ec2a1d4c.js";import{D as b}from"./p-11e2dcf5.js";import{a as x,d as g}from"./p-2927b7a1.js";import{c as u}from"./p-1ec763ab.js";import{c as j}from"./p-613ddaab.js";import{V as k}from"./p-724df1f5.js";import{O as w}from"./p-331a62d5.js";import{C as y}from"./p-2d0d575f.js";import{A as E}from"./p-a528714c.js";import{Y as I}from"./p-78ba7ca9.js";import{c as L}from"./p-04a65b3f.js";import{T as z}from"./p-a6565e02.js";import"./p-ed45b3b6.js";import"./p-b02b985d.js";import"./p-d4ea8e22.js";import"./p-49a2e141.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-dcf162e9.js";import"./p-982747ef.js";import"./p-d884c644.js";import"./p-281fa1e0.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-0a261b66.js";import"./p-4dd02704.js";import"./p-b75ee3ba.js";var O=function(i,t,o,n){var e,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(i,t,o,n);else for(var s=i.length-1;s>=0;s--)(e=i[s])&&(r=(a<3?e(r):a>3?e(t,o,r):e(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r};class S extends s{render(){return i("div",{class:{accordion:!0,background:this.drawsBackground,expanded:this.expand,collapsed:!this.expand,"icon-position-center":"center"===this.iconPosition}},this.renderHeader(),this.renderContent())}renderHeader(){const o=i(t,null,this.renderPrefixIcon(),this.accordionTitle?this.renderTitle():this.renderTitleSlot());return i("div",{class:"accordion-header"},i("vega-flex",{gap:"size-8","align-items":"start"},"left"===this.expandIconAlign&&this.renderExpandIcon(),o,"right"===this.expandIconAlign&&this.renderExpandIcon()))}renderPrefixIcon(){return this.prefixIcon&&i("div",{class:"accordion-prefix-icon"},i("vega-icon",{icon:this.prefixIcon,size:"size-24"}))}renderTitle(){return i("div",{class:"accordion-title"},this.accordionTitle)}renderExpandIcon(){const t=["accordion-expand-icon",`accordion-expand-icon-align-${this.expandIconAlign}`,f(this.showExpandIcon,"display")];return i("div",{class:`${v(t)}`},i("vega-button-circle",{size:"small","icon-color":"text-link",variant:"icon-only","data-aria-label":this.getExpandIconAriaLabel(),"data-aria-expanded":`${this.expand}`,icon:k.getIconKey("left"===this.expandIconAlign?"chevron-down":"chevron-up"),ref:i=>{b.addUniqueObserverToNode(i,x,(()=>{this.expandController.flipExpand()}))}}))}renderContent(){return i("div",{class:"accordion-content"},i("slot",{name:"content"}),i("slot",{name:"accordion-content"}))}renderTitleSlot(){return i("div",{class:"accordion-title-slot"},i("slot",{name:"title"}),i("slot",{name:"accordion-title"}))}getExpandIconAriaLabel(){return this.accordionTitle?this.translationSlimmer.t(this.expand?"Collapse {0} accordion":"Expand {0} accordion",this.accordionTitle):this.translationSlimmer.t(this.expand?"Collapse accordion":"Expand accordion")}}k.register({"chevron-up":u,"chevron-down":j}),O([r()],S.prototype,"drawsBackground",void 0),O([r()],S.prototype,"prefixIcon",void 0),O([r()],S.prototype,"accordionTitle",void 0),O([r()],S.prototype,"expandIconAlign",void 0),O([r()],S.prototype,"expand",void 0),O([r()],S.prototype,"iconPosition",void 0),O([r()],S.prototype,"showExpandIcon",void 0),O([r()],S.prototype,"expandController",void 0),O([r()],S.prototype,"translationSlimmer",void 0);var R=function(i,t,o,n){var e,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(i,t,o,n);else for(var s=i.length-1;s>=0;s--)(e=i[s])&&(r=(a<3?e(r):a>3?e(t,o,r):e(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r};class C extends s{flipExpand(){this.expand=!this.expand}onExpand(){this.groupId&&this.expand&&y.notify(E,{groupId:this.groupId,element:this.host}),this.expandEventEmitter.emit(this.expand)}registerObserver(){this.observer=new w(I,this.shouldCollapseSelfIfOtherExpand.bind(this)),y.register(E,this.observer)}unregisterObserver(){this.observer&&(y.unregister(E,this.observer),this.observer=null)}shouldCollapseSelfIfOtherExpand(i){this.groupId===i.groupId&&this.host!==i.element&&(this.expand=!1)}}R([r()],C.prototype,"host",void 0),R([r()],C.prototype,"groupId",void 0),R([r({writable:!0})],C.prototype,"expand",void 0),R([r()],C.prototype,"expandEventEmitter",void 0),R([c("watchExpand")],C.prototype,"onExpand",null),R([c("componentWillLoad")],C.prototype,"registerObserver",null),R([c("disconnectedCallback")],C.prototype,"unregisterObserver",null);var M=function(i,t,o,n){var e,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(i,t,o,n);else for(var s=i.length-1;s>=0;s--)(e=i[s])&&(r=(a<3?e(r):a>3?e(t,o,r):e(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r};const X=class{constructor(i){o(this,i),this.vegaExpand=n(this,"vegaExpand",7),this.accordionExpand=n(this,"accordionExpand",7),this.globalSlimmers={},this.renderer=new S,this.expandController=new C,this.translationSlimmer=new z,this.expandEventEmitter=L(X,g,"accordionExpand"),this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.drawsBackground=!0,this.expandIconAlign="right",this.expand=!0,this.iconPosition="top",this.showExpandIcon=!0}watchExpand(){}render(){return l(i("slot",null)),m(i(e,null,this.renderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{expand:["watchExpand"]}}};M([h()],X.prototype,"globalSlimmers",void 0),M([d()],X.prototype,"renderer",void 0),M([d()],X.prototype,"expandController",void 0),M([d()],X.prototype,"translationSlimmer",void 0),M([d()],X.prototype,"expandEventEmitter",void 0),M([d()],X.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),X.style=':host(.v-block),.v-block{display:block}:host(.v-inline-block),.v-inline-block{display:inline-block}:host(.v-hidden),.v-hidden{display:none}@media (min-width: 320px){:host(.S\\:v-block),.S\\:v-block{display:block}:host(.S\\:v-inline-block),.S\\:v-inline-block{display:inline-block}:host(.S\\:v-hidden),.S\\:v-hidden{display:none}}@media (min-width: 768px){:host(.M\\:v-block),.M\\:v-block{display:block}:host(.M\\:v-inline-block),.M\\:v-inline-block{display:inline-block}:host(.M\\:v-hidden),.M\\:v-hidden{display:none}}@media (min-width: 1024px){:host(.L\\:v-block),.L\\:v-block{display:block}:host(.L\\:v-inline-block),.L\\:v-inline-block{display:inline-block}:host(.L\\:v-hidden),.L\\:v-hidden{display:none}}@media (min-width: 1440px){:host(.XL\\:v-block),.XL\\:v-block{display:block}:host(.XL\\:v-inline-block),.XL\\:v-inline-block{display:inline-block}:host(.XL\\:v-hidden),.XL\\:v-hidden{display:none}}:host{display:block;text-align:left;line-height:normal}.accordion{display:block;border-radius:16px}.accordion-title,.accordion-title-slot{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));overflow:hidden;flex-basis:0;flex-grow:1;padding-top:2px;padding-bottom:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.accordion-title,.accordion-title-slot{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.accordion-title,.accordion-title-slot{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.accordion-title,.accordion-title-slot{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:28px;letter-spacing:0px}}.accordion-prefix-icon{width:24px;height:32px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));box-sizing:border-box;padding-top:4px;padding-bottom:4px;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}.icon-position-center .accordion-prefix-icon{align-self:center}.accordion-content{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.accordion.background{padding:24px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.accordion.expanded .accordion-content{margin-top:24px}.accordion.collapsed .accordion-content{max-height:0px;overflow:hidden;display:none}.accordion.collapsed .accordion-expand-icon-align-left{transform:rotate(-90deg)}.accordion.collapsed .accordion-expand-icon-align-right{transform:rotate(180deg)}.accordion-expand-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}.icon-position-center .accordion-expand-icon{align-self:center}.hidden{display:none}';export{X as vega_accordion}
@@ -1,3 +0,0 @@
1
- import{g as t,e,c as n,h as s,A as r,T as i,q as o,H as a,r as l,l as c,t as h,u,v as d,w as m,x as w,I as T,n as p,S as g,j as E,B as f,y as k,d as R,z as B,D as x,o as I,E as b,s as O,N as L,F as y,G as N,J as C,K as A,m as H,L as j,M as v,O as S,P as $,Q as D,U as M,W as P,X as F,Y as z,Z as V,_ as U,$ as W,a0 as G,a1 as J,a2 as K,R as Y,a3 as X,p as Q,a4 as Z,a5 as _,a6 as q,b as tt,a7 as et,a8 as nt,a9 as st,aa as rt}from"./p-a2b8d49d.js";import{g as it}from"./p-8b5d3a52.js";import{i as ot}from"./p-78ba7ca9.js";import{C as at}from"./p-2d0d575f.js";import{d as lt}from"./p-11e2dcf5.js";import{c as ct,d as ht}from"./p-3a93730e.js";import{r as ut,i as dt}from"./p-ec2a1d4c.js";import{c as mt}from"./p-a841cf13.js";import{L as wt}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);ot(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(t){return[`<li${super.generateAttributeString(t)}>`,this.getChildrenHtml(t),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(it());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(it())}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(i.name,RTEListItemBlock.name,new o),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new h),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new u),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 d),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 Tt extends f{constructor(){super(...arguments),this.type=k.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?Tt.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new Tt}toJSON(){}}class RTEListBlock extends R{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 Tt)}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);ot(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 x.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(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].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 p(e)),n.forEach((t=>t.children.map((t=>t.apply(new g)))));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 p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const i=t.selectedBlocks,o=i.map((t=>(t.children.map((t=>t.apply(new g))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new E(e,...o));else if(r)e.parent.apply(new T(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.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 E(e,r,...o,a)),e.parent.apply(new p(e))}i.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(it(),"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 pt{}class gt{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(ot)),e}}const Et=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)}},ft=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],e))continue;let i=0;for(const o of n)if(i=o.canHandle(t,r,e),i>0){const n=t.slice(r,r+i),a=new gt(o,n);1===i&&o.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=i-1;break}if(0===i&&r<t.length){const n=Array.from(t[r].childNodes),i=this.process(Array.from(n),e);i.length>0&&s.push(...i)}}return s}isInvalidElement(t,e){return t.nodeType===Node.COMMENT_NODE||!1!==e.autoMatchFormat&&["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return Et.getElementToBlockStrategies()}};class kt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class Rt 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 Bt extends Rt{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class xt extends L{constructor(t,e){super(),this.type=y.IMAGE,this.size=t,this.alt=e}static from(t,e){return[y.IMAGE,new xt(t,e)]}static getDefaultStyles(){return{verticalAlign:"bottom"}}toJSON(){return ot(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new xt(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=xt.getDefaultStyles();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%"})}}}xt.BASE_STYLES={verticalAlign:"bottom"};class RTEImageNode extends N{constructor(t,e,n,s){super(t,s),this.type=C.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,i=Object.assign({},t.annotations),{size:o}=i,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}(i,["size"]),l=Object.assign(Object.assign({},a),{size:null!=o?o:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?xt.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter(ot)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof xt||t instanceof A)).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(t){const e=this.getAnnotationByType(y.IMAGE);return`<img${super.generateAttributeString(t,...[e&&e.alt?`alt="${e.alt}"`:null,`src="${this.url}"`,e&&e.size?`data-size="${e.size}"`:null].filter(ot))}>`}doAnnotationActionApply(t){const e=r.get(H.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(H.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class It extends v{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends R{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(t){const e=super.generateAttributeString(t),n=this.children.map((e=>e.toHtml(t))).join("");return super.shouldRenderAsInternalWrapper()?n:[`<div${e}>`,n,"</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(it())}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 j(t));const i=this.cloneWithNodes(r,n);return n.parent.apply(new T(n,i)),i}}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 It(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 i=e.from({id:it(),type:"paragraph",nodes:[{id:it(),type:"text",text:"\n"}]});r.parent.apply(new T(r,i));const o=this.concatBlocksNodes(t.slice(1));return(0===o.length||o[0]&&""===o[0].text)&&o.push(new n(it(),"\n",i)),i.apply(new s(o)),i.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(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,i=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(i.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new T(e,i)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new E(e,i)):(e.apply(new S(n,r)),e.parent.apply(new T(e,i)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends R{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!0}toHtml(t){const e=this.htmlTag,n=super.generateAttributeString(t);return $.has(this.htmlTag)?`<${e}${n}>`:[`<${e}${n}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].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 bt extends v{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class Ot 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 p(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 p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const i=n.isEmpty();if(e.children.length&&s&&s.parent!==e)i&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new bt(e));else if(this.isContentFirstNode(n)&&i&&(r=this.getNextNode(n)),i&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||i||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),i=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(i=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:i&&(t.nextNode=i)}}class Lt 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 S(t,e);return n.apply(s),s.newBlock}n.parent.apply(new E(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(y.LINK),e.apply(new s([n]))),e}}}class yt extends v{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 Nt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:i}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==i){const e=r.text.substring(0,i),n=r.text.substring(i),o=r.cloneWithText(e),a=r.cloneWithText(n),l=[o,s];n&&l.push(a),t.apply(new E(r,...l)),t.apply(new p(r))}else t.apply(new E(r,s));else t.apply(0!==i?new T(r,s):new E(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class Ct extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,i=this.createNewParagraph(n);if(i){const t=i.children[0];e.apply(0!==s?new T(r,t):new E(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new yt(t))}}class At extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),i=this.copyInlineStyleToNewNode(t);if(r.apply(new s([i])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new S(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new E(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],i=1===n.children.length&&n.children[0].isEmpty();if(n===r&&i){const r=n.parent.parent;if("list-item"!==r.type){const i=e.from({id:it(),type:"paragraph",nodes:[]});return i.apply(new s(t.children)),r.apply(new T(n.parent,i)),n.parent.apply(new p(n)),i}r.parent.apply(new T(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new T(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(y.LINK),e}}class Ht extends v{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class jt 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 Ht(e):new p(e))}}class vt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let i=e;if(s===e.children[0]&&0===r)e.parent.apply(new E(e,...n));else{const t=new S(s,r);e.apply(t),e.parent.apply(new T(e,...n)),i=t.newBlock}t.futureFocusBlock=i}}}const St=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new jt:new P),r.register(c.APPEND_CHILDREN,t,new kt),r.register(c.INSERT_CHILDREN_BEFORE,t,new Rt),r.register(c.INSERT_CHILDREN_AFTER,t,new Bt),r.register(c.DELETE_BLOCK_CONTENT,t,new Ot),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new At:new Lt),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new Ct),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new Nt),r.register(c.PASTE_CONTENT,t,new vt)}};class $t{}class Dt extends $t{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||t.style.fontWeight===F||t.style.fontWeight===z||t.classList.contains("v-rte--bold")}}class Mt extends $t{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 Pt extends $t{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 Ft extends $t{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=V(t);return Object.keys(e).length>0?{customStyle:e}:{}}}class zt extends $t{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 Vt extends $t{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 Ut extends $t{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 Wt extends $t{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=ut(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=U.filter((t=>t.key!==W.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of U)if(t.style.color.includes(e.key))return e.key;return null}}class Gt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||t.style.fontStyle===G||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class Jt extends $t{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"P":return"paragraph";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|heading-4|heading-5|heading-6|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class Kt{static isTitleOrSubtitle(t){if("DIV"===t.nodeName){const e=Kt.textStyleHandler.getTextStyle(t);return"title"===e||"subtitle"===e}return!1}static isLinkElement(t){return"A"===t.nodeName}}Kt.textStyleHandler=new Jt;class Yt extends $t{constructor(){super(...arguments),this.handlers=[new Mt,new Pt,new Ft]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:Kt.isLinkElement(t)?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:it()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Xt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes(J)||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class Qt extends $t{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes(K)||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Zt extends $t{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 _t extends $t{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}const qt=new Set(["P","H1","H2","H3","H4","H5","H6","LI"]),te=new Set(["P","H1","H2","H3","H4","H5","H6","LI","UL","OL","IMG","CODE"]),ee=new Set(["BR","VEGA-RICH-TEXT-LINK-EDITOR","CODE","A"]),ne=new Set(["TABLE","THEAD","TBODY","TFOOT","TR","DL"]),se=new Set(["ABBR","B","BDI","BDO","CITE","DEL","DFN","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SAMP","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR"]);function re(t){return qt.has(t.parentElement.nodeName)}class ie extends $t{constructor(){super(...arguments),this.customAttributeHandler=new Mt,this.customStyleAnnotationHandler=new Ft,this.customClassAnnotationHandler=new Pt}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(te.has(t.nodeName)&&!ee.has(t.nodeName))return{};const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));return n?{inlineHtml:n}:{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;const r=Array.from(t.childNodes).some((t=>t.nodeType===Node.ELEMENT_NODE));if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||r){const e=Object.assign(Object.assign({htmlTag:t.nodeName.toLowerCase()},r?{groupId:it()}:{}),{customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass});s=s?this.appendToInlineHtmlChain(s,e,t.parentNode):e}return s?Object.assign({},s):null}appendToInlineHtmlChain(t,e,n){return t.child&&n&&t.child.htmlTag===n.nodeName.toLowerCase()?Object.assign(Object.assign({},t),{child:this.appendToInlineHtmlChain(t.child,e,n)}):Object.assign(Object.assign({},t),{child:e})}}const oe=new class{constructor(){this.handlers=[new Vt,new zt,new Dt,new Gt,new Qt,new Xt,new Wt,new Yt,new Ut,new Zt,new _t,new Mt,new Pt,new Ft,new Jt,new ie]}registerHandler(t){this.handlers.unshift(t)}generate(t,e,n={autoMatchFormat:!0}){n&&n.filterInlineStyles&&Y.executeTheStrategyRefillAction(t.name,e);const s=Kt.isLinkElement(e)&&"RTETextNode"===t.name,r=this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof Yt)).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)}),{});this.removeTextStyleDefaultsFromCustomStyle(r);const i=Y.getStrategies(t.name);for(const t of i)(n.autoMatchFormat||t.alwaysFilter)&&t.filterAnnotations(r);return r}removeTextStyleDefaultsFromCustomStyle(t){const e="textStyle"in t?t.textStyle:void 0,n=t.customStyle;if(!e||!n)return t;const s=X.getDefaultStyles(e);if(!s)return t;for(const t of Object.keys(s))n[t]===s[t]&&delete n[t];return 0===Object.keys(n).length&&delete t.customStyle,t}};class ae extends pt{constructor(){super(...arguments),this.annotationHandler=new Jt}generateChildNodes(t,e,s){const r=[],i=!(!s||!1!==s.autoMatchFormat),o=Object.assign({},e);return t.forEach((t=>{const a=Et.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,o)),l)r.push(l);else if(dt(t)&&t.childNodes.length>0){const a=oe.generate(n,t,Object.assign({parentAnnotations:i?{inlineHtml:o.inlineHtml,link:o.link,code:o.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 le extends ae{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 b.from({id:it(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class ce extends ae{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:t.src,annotations:oe.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},oe.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class he extends pt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:it(),type:"text",text:t,annotations:e}}}class ue extends Q{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const{textAlign:e,customStyle:n}=t;return e&&n?(this.stylesToBeFiltered=_.getDefaultStyles(e),super.filterAnnotations(t)):t}}class de extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=X.getDefaultStyles("paragraph"),this.type="paragraph",this.elementTagName="p"}filterAnnotations(t){return t}canFilter(t){return Z.isTextBlock(t.constructor.name)&&t.type===this.type}canRefill(t,e){const n=this.classNameToBeAdded?`.${this.classNameToBeAdded}`:this.elementTagName;return Z.isTextBlock(t)&&e.matches(n)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}class me extends de{constructor(t){super(),this.type="heading-1",this.elementTagName="h1",this.type=`heading-${t}`,this.elementTagName=`h${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class we extends de{constructor(t){super(),this.type="title",this.elementTagName="div",this.classNameToBeAdded="v-rte-title",this.type=t,this.classNameToBeAdded=`v-rte-${t}`,this.stylesToBeFiltered=X.getDefaultStyles(this.type)}}class Te extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=Te.BOLD_STYLES,this.elementTagName="span",this.parentBlockTypes=["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title"],this.parentElementSelectors=["h1","h2","h3","h4","h5","h6",".v-rte-title"],this.toBeCheckedSelector=this.parentElementSelectors.join(",")}filterAnnotations(t){return t}canFilter(t){return Z.isTextNode(t.constructor.name)&&this.parentBlockIsHeadingOrTitle(t)}canRefill(t,e){return Z.isTextNode(t)&&"SPAN"===e.nodeName&&this.isHeadingOrTitleChild(e)}toCssText(){return`${this.parentElementSelectors.map((t=>`.${Te.RTE_CONTENT_CONTAINER_CLASS_NAME} ${t}`)).join(",")} { ${this.convertStylesMapToCssText()} }`}parentBlockIsHeadingOrTitle(t){const e=t.parent;return!!e&&this.parentBlockTypes.includes(e.type)}isHeadingOrTitleChild(t){let e=t.parentElement;for(;e;){if(e.matches(this.toBeCheckedSelector))return!0;if(Te.NON_HEADING_TITLE_ELEMENT_TAGS.includes(e.tagName))return!1;e=e.parentElement}return!1}}Te.BOLD_STYLES={fontWeight:"700"},Te.NON_HEADING_TITLE_ELEMENT_TAGS=["TD","TH","TR","TABLE","THEAD","TBODY","DIV","BODY"];class pe extends me{constructor(t){super(t),this.classNameToBeAdded=`v-rte-h${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}class ge extends we{constructor(t){super(t),this.classNameToBeAdded=`v-rte-${t}`,this.elementTagName="li"}canFilter(t){return Z.isListItemBlock(t.constructor.name)&&this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"])}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&e.classList.contains(this.classNameToBeAdded)}}tt.registerRTEDTOClass("paragraph",e),tt.registerRTEDTOClass("title",e),tt.registerRTEDTOClass("subtitle",e),tt.registerRTEDTOClass("heading-1",e),tt.registerRTEDTOClass("heading-2",e),tt.registerRTEDTOClass("heading-3",e),tt.registerRTEDTOClass("heading-4",e),tt.registerRTEDTOClass("heading-5",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("heading-6",e),tt.registerRTEDTOClass("list-item",RTEListItemBlock),tt.registerRTEDTOClass("bullet-list",RTEListBlock),tt.registerRTEDTOClass("number-list",RTEListBlock),tt.registerRTEDTOClass("image",RTEImageBlock),tt.registerRTEDTOClass("code-block",b),tt.registerRTEDTOClass("html-block",RTEHtmlBlock),tt.registerRTEDTOClass("text",n),tt.registerRTEDTOClass("image",RTEImageNode),St.registerBlockBasicStrategies(e.name),St.registerBlockBasicStrategies(RTEListBlock.name),St.registerBlockBasicStrategies(RTEListItemBlock.name),St.registerBlockBasicStrategies(RTEImageBlock.name),St.registerBlockBasicStrategies(RTEHtmlBlock.name),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){let s=0;for(let r=e;r<t.length&&this.isInlineCandidate(t[r],n);r++)s++;return s}handle(t,s){const r=t[0].parentElement,i=s&&s.autoMatchFormat,o=this.generateChildNodes(t,i?oe.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=i?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!i&&!a;return e.from(Object.assign({id:it(),type:a||"paragraph",nodes:o},l?{annotations:{internalWrapper:l}}:{annotations:oe.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}isInlineCandidate(t,e){return t.nodeType===Node.TEXT_NODE||!!ee.has(t.nodeName)||!this.isDedicatedBlockTag(t.nodeName)&&(!(!1!==e.autoMatchFormat||!re(t))||this.isInlineLeafOrWrapper(t))}isDedicatedBlockTag(t){return te.has(t)&&!ee.has(t)}isInlineLeafOrWrapper(t){return 0===t.childNodes.length?se.has(t.nodeName):this.isTextOnlyElement(t)?se.has(t.nodeName)||ee.has(t.nodeName):this.hasOnlyInlineDescendants(t)}isTextOnlyElement(t){const e=Array.from(t.childNodes);return!e.some((t=>t.nodeType===Node.ELEMENT_NODE))&&e.some((t=>t.nodeType===Node.TEXT_NODE))}hasOnlyInlineDescendants(t){for(let e=0;e<t.children.length;e++){const n=t.children[e];if(this.isDedicatedBlockTag(n.nodeName))return!1;if(!n.hasChildNodes())return!1;if(!this.hasOnlyInlineDescendants(n))return!1}return!0}}),Et.registerElementToBlockStrategy(new class extends ce{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}}),Et.registerElementToBlockStrategy(new class extends ce{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(ot(s))return RTEImageBlock.from({id:it(),type:"image",nodes:[{id:it(),type:"image",url:s.src,annotations:oe.generate(RTEImageNode,n,e)}],annotations:oe.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ce{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{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:it(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:oe.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{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:it(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:it(),type:"list-item",annotations:oe.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),oe.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,i=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),o=ot(s)&&["UL","OL"].includes(s.nodeName);return r&&!i&&o?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:it(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"number-list",blocks:[],annotations:oe.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}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:it(),type:"bullet-list",blocks:[],annotations:oe.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}}),Et.registerElementToBlockStrategy(new class extends ae{canHandle(t,e,n){const s=t[e];return s.nodeType===Node.TEXT_NODE||this.isInlineTagWithoutBlockChildren(s,n)||te.has(s.nodeName)&&!this.shouldFallBackToHtmlBlock(s)||n.autoMatchFormat||!this.isCustomHtmlContainer(s)||Kt.isTitleOrSubtitle(s)?0:1}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}isInlineTagWithoutBlockChildren(t,e){if(re(t))return!(0===t.childNodes.length&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName));const n=Array.from(t.childNodes);return!(n.some((t=>t.nodeType===Node.ELEMENT_NODE))||!n.some((t=>t.nodeType===Node.TEXT_NODE)))&&(!1!==e.autoMatchFormat||!ne.has(t.parentElement.nodeName)&&(se.has(t.nodeName)||ee.has(t.nodeName)))}shouldFallBackToHtmlBlock(t){const e=Array.from(t.childNodes);if(0===e.length)return!1;const n=t.parentElement.nodeName;return"UL"!==n&&"OL"!==n&&e.every((t=>t.nodeType===Node.ELEMENT_NODE&&""===t.textContent&&!ee.has(t.nodeName)&&!se.has(t.nodeName)))}isCustomHtmlContainer(t){return"DIV"!==t.nodeName||t.childNodes.length>0&&"IMG"!==t.childNodes[0].nodeName}generateHtmlBlock(t,e){return{id:it(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:oe.generate(RTEHtmlBlock,t,e),children:[]}}}),
2
- //!important: Code block strategies must be registered after HtmlBlockStrategy because registerElementToBlockStrategy uses unshift, giving later registrations higher priority.
3
- Et.registerElementToBlockStrategy(new le),Et.registerElementToBlockStrategy(new class extends le{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}}),Et.registerElementToNodeStrategy(new class extends he{canHandle(t,e){const n=t[e];return!dt(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),i=Object.assign({},s),o=t[0],a=oe.generate(n,o,Object.assign({parentAnnotations:r?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:s},e));if("BR"===o.nodeName)return this.generateTextNode("\n",a);if(0===o.childNodes.length){const t=r?mt(Object.assign(Object.assign({},n.supportsHtmlTag(o.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml})):a;return Object.assign({},this.generateTextNode("",t))}}}),Et.registerElementToNodeStrategy(new class extends he{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),i=!(!e||!1!==e.autoMatchFormat),o=t[0],a=o.parentNode.nodeName.toLowerCase(),l=i&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(o.textContent),i?mt(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)}}),Y.register(e.name,new ue),Y.register(RTEListBlock.name,new ue),Y.register(RTEListItemBlock.name,new ue),Y.register(n.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const e=t,n=e.customStyle;if(!n)return t;e.bold&&n.fontWeight===z&&delete n.fontWeight,e.italic&&n.fontStyle===G&&delete n.fontStyle;const s=this.normalizeTextDecoration(n.textDecoration);return s&&this.shouldRemoveTextDecoration(s,e)&&delete n.textDecoration,0===Object.keys(n).length&&delete e.customStyle,t}normalizeTextDecoration(t){if(!t)return;const e=t.trim().toLowerCase().split(/\s+/);return e.some((t=>t!==K&&t!==J))?void 0:Array.from(new Set(e)).sort().join(" ")}shouldRemoveTextDecoration(t,e){const n=[];return e.underline&&n.push(K),e.strikethrough&&n.push(J),0!==n.length&&t===n.sort().join(" ")}}),Y.register(e.name,new de),Y.register(e.name,new me(1)),Y.register(e.name,new me(2)),Y.register(e.name,new me(3)),Y.register(e.name,new me(4)),Y.register(e.name,new me(5)),Y.register(e.name,new me(6)),Y.register(e.name,new we("title")),Y.register(e.name,new we("subtitle")),Y.register(n.name,new Te),Y.register(n.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=q.getDefaultStyles(),this.elementTagName="code"}filterAnnotations(t){const{code:e,customStyle:n}=t;return e&&n?super.filterAnnotations(t):t}canFilter(t){return Z.isCodeNode(t)}canRefill(t,e){return Z.isTextNode(t)&&e.matches(this.elementTagName)}toCssText(){return`.${Q.RTE_CONTENT_CONTAINER_CLASS_NAME} ${this.elementTagName} { ${this.convertStylesMapToCssText(Object.assign(Object.assign({},this.stylesToBeFiltered),{fontWeight:"500"}))} }`}}),Y.register(n.name,new et),Y.register(RTEImageNode.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=xt.getDefaultStyles(),this.elementTagName="img"}get alwaysFilter(){return!0}canFilter(t){return Z.isImageNode(t)}canRefill(t,e){return e.tagName.toLowerCase()===this.elementTagName}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}),Y.register(b.name,new nt),Y.register(st.name,new rt),Y.register(RTEListBlock.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=Tt.getDefaultStyles(),this.elementTagName="ol,ul"}canFilter(t){return Z.isListBlock(t.constructor.name)}canRefill(t,e){return Z.isListBlock(t)&&e.matches(this.elementTagName)}toCssText(){return`${this.elementTagName.split(",").map((t=>`.${Q.RTE_CONTENT_CONTAINER_CLASS_NAME} ${t.trim()}`)).join(", ")} { ${this.convertStylesMapToCssText(this.stylesToBeFiltered)} }`}}),Y.register(RTEListItemBlock.name,new class extends Q{constructor(){super(...arguments),this.stylesToBeFiltered=X.getDefaultStyles("paragraph"),this.elementTagName="li",this.headingOrTitleClassNamePattern=/^v-rte-(h[1-6]|title|subtitle)$/}canFilter(t){const e=!t.getStyles().fontSize||this.isBlockOrNodeStylesMatchFilterStyles(t,["fontSize","lineHeight"]);return Z.isListItemBlock(t.constructor.name)&&e}canRefill(t,e){return Z.isListItemBlock(t)&&e.matches(this.elementTagName)&&this.isElementNotHeadingOrTitle(e)}toCssText(){return this.buildCssTextForStyles(this.elementTagName)}isElementNotHeadingOrTitle(t){return!t.className.split(" ").some((t=>this.headingOrTitleClassNamePattern.test(t.trim())))}}),Y.register(RTEListItemBlock.name,new pe(1)),Y.register(RTEListItemBlock.name,new pe(2)),Y.register(RTEListItemBlock.name,new pe(3)),Y.register(RTEListItemBlock.name,new pe(4)),Y.register(RTEListItemBlock.name,new pe(5)),Y.register(RTEListItemBlock.name,new pe(6)),Y.register(RTEListItemBlock.name,new ge("title")),Y.register(RTEListItemBlock.name,new ge("subtitle"));class Ee{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new fe(e)}}class fe{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(dt(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 ke{process(t){return t.replace(/(<[^>]+>)(\s+)(<[^>]+>)/g,((t,e,n,s)=>{const r=this.extractOpeningTagName(e),i=this.extractClosingTagName(s);return r&&i&&r===i?`${e}${n}${s}`:`${e}${s}`}))}extractOpeningTagName(t){const e=t.match(/<(\w[\w-]*)/);return e?e[1]:null}extractClosingTagName(t){const e=t.match(/<\/(\w[\w-]*)/);return e?e[1]:null}}class Re{process(t){return t.replace(/(>)[\n\t]+(?=.)/g,"$1")}}class Be{process(t){return t.replace(/(.?)[\n\t]+(?=<)/g,"$1")}}class xe{constructor(){this.processors=[new ke,new Re,new Be]}clean(t){if(!t||0===t.trim().length)return t;let e,n=t;do{e=n;for(const t of this.processors)n=t.process(n)}while(n!==e);return n}}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=tt.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(t={autoMatchFormat:!0}){return VegaRTEContent.fromJSON([{id:it(),type:"paragraph",annotations:{internalWrapper:!t.autoMatchFormat},nodes:[{id:it(),annotations:{plainText:!t.autoMatchFormat},type:"text",text:""}]}],t)}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=(new xe).clean(t),s=Ee.preserve(n),r=s.getProcessedHtml(),i=(new DOMParser).parseFromString(r,"text/html").body,o=Array.from(i.childNodes);s.restore(o);const a=ft.process(o,e).filter(ot).map((t=>t.toDto(e))).filter(ot);return new VegaRTEContent(a)}static generateContentStyles(t){return Y.generateAllStylesContent(null==t?void 0:t.enableFontImports)}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&&(ot(t.autoMatchFormat)||ot(t.skipCustomAnnotations))&&wt.warn("The 'options' parameter's properties 'autoMatchFormat' and 'skipCustomAnnotations' in toHtml method are deprecated and will be removed in the future."),this.isEmpty()?"":this.children.map((e=>e.toHtml({filterInlineStyles:null==t?void 0:t.filterInlineStyles}))).join("")}isEmpty(){return 0===this.children.length||1===this.children.length&&!this.children[0].isNotEmpty()}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&at.notify(lt.getSubject(t,ht),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new g)));const e=new RTEListItemBlock(it());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(it(),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 kt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new Rt),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new Bt),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new b(it(),this.getCodeContent(n),"plainText");e.apply(new E(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 p(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,i=O.getDOMByEntity(e);i&&at.notify(lt.getSubject(i,ct),{node:s,offset:n,updateDirectly:r})}});export{$t as A,ae as B,Et as E,It as I,bt as M,vt as P,St as R,Ee as S,yt as U,VegaRTEContent as V,pt as a,RTEImageBlock as b,Rt as c,RTEListItemBlock as d,RTEListBlock as e,RTEImageNode as f,xt as g,oe as h,ft as i}