@globalpayments/vega 2.93.0 → 2.94.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 (367) hide show
  1. package/dist/cjs/{app-globals-f7ad9275.js → app-globals-d05c3410.js} +11 -10
  2. package/dist/cjs/{code-block-2f3d0f38.js → code-block-493c7ce7.js} +77 -21
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-31d2c7aa.js → component-value-history-controller-slimmer.abstract-ab21fcbf.js} +3 -3
  4. package/dist/cjs/{content-state-13daf87a.js → content-state-fc34a814.js} +2 -2
  5. package/dist/cjs/{date-required-rule-e65ddd7d.js → date-required-rule-4ab06a82.js} +1 -1
  6. package/dist/cjs/{design-token-47393cbb.js → design-token-d3d12fa0.js} +3 -3
  7. package/dist/cjs/{element-appender-slimmer-29c4ac60.js → element-appender-slimmer-1d6323c2.js} +2 -2
  8. package/dist/cjs/{form-field-controller-slimmer-3bfcf88c.js → form-field-controller-slimmer-d638ba12.js} +1 -1
  9. package/dist/cjs/{image-annotation-action-c2b163bb.js → image-annotation-action-7c4cd316.js} +3 -3
  10. package/dist/cjs/{image-extension-4e99b620.js → image-extension-30a7c10f.js} +18 -1
  11. package/dist/cjs/index.cjs.js +19 -17
  12. package/dist/cjs/{inject-keyboard-manager-4b2ebbe4.js → inject-keyboard-manager-5a105612.js} +1 -1
  13. package/dist/cjs/{internal-calendar-period-factory-7a0ecdb1.js → internal-calendar-period-factory-b76006f7.js} +1 -1
  14. package/dist/cjs/{internal-translation-controller-31f2b057.js → internal-translation-controller-eb02c3b1.js} +2 -0
  15. package/dist/cjs/{keyboard-manager-c78b46bd.js → keyboard-manager-ca76d4dc.js} +1 -1
  16. package/dist/cjs/{keyboard-manager-slimmer-d350c931.js → keyboard-manager-slimmer-a1223714.js} +1 -1
  17. package/dist/cjs/{link-extension-455c02b3.js → link-extension-92a63cb7.js} +3 -3
  18. package/dist/cjs/loader.cjs.js +12 -13
  19. package/dist/cjs/{month-view-generator-006562dc.js → month-view-generator-876c50d4.js} +1 -1
  20. package/dist/cjs/{public-rules-c59eba88.js → public-rules-9e1ea1d9.js} +7 -7
  21. package/dist/cjs/{range-bf80fa40.js → range-30219330.js} +1 -1
  22. package/dist/cjs/{responsive-format-facade-1af54330.js → responsive-format-facade-25e9f30d.js} +1 -1
  23. package/dist/cjs/{rich-text-editor-required-rule-1085c71a.js → rich-text-editor-required-rule-23bf7485.js} +1 -1
  24. package/dist/cjs/{split-cell-operation-2fa5c9e4.js → split-cell-operation-43752212.js} +3 -3
  25. package/dist/cjs/{state-border-formatter-501f6645.js → state-border-formatter-f1ce0f3b.js} +1 -1
  26. package/dist/cjs/{string-format-strategy.abstract-a02bf002.js → string-format-strategy.abstract-b22f7754.js} +1 -1
  27. package/dist/cjs/{string-input-formatter-slimmer-9cca6151.js → string-input-formatter-slimmer-d2c248f7.js} +1 -1
  28. package/dist/cjs/{string-mask-strategy-4c174ebf.js → string-mask-strategy-fc01a500.js} +2 -2
  29. package/dist/cjs/{style-formatter-2c749500.js → style-formatter-73205450.js} +2 -2
  30. package/dist/cjs/{time-required-rule-04994a5e.js → time-required-rule-12d2f394.js} +1 -1
  31. package/dist/cjs/{token-extension-d217914d.js → token-extension-ea891d54.js} +307 -17
  32. package/dist/cjs/{translation-slimmer-7fb6e94c.js → translation-slimmer-9099f56c.js} +1 -1
  33. package/dist/cjs/{type-guard-1c3770d4.js → type-guard-f354af8b.js} +1 -1
  34. package/dist/cjs/{valid-credit-card-number-rule-f719a8c6.js → valid-credit-card-number-rule-8d370163.js} +1 -1
  35. package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
  36. package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
  37. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  38. package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
  39. package/dist/cjs/vega-button.cjs.entry.js +8 -5
  40. package/dist/cjs/vega-calendar_5.cjs.entry.js +7 -7
  41. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  42. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
  44. package/dist/cjs/vega-chip.cjs.entry.js +5 -5
  45. package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
  46. package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
  47. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +3 -3
  48. package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
  49. package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
  50. package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -13
  51. package/dist/cjs/vega-dialog_2.cjs.entry.js +3 -3
  52. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  53. package/dist/cjs/vega-dropdown_5.cjs.entry.js +7 -7
  54. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  55. package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
  56. package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
  57. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  58. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  59. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  60. package/dist/cjs/vega-form.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  63. package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
  64. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  65. package/dist/cjs/vega-input-numeric.cjs.entry.js +5 -5
  66. package/dist/cjs/vega-input-passcode.cjs.entry.js +5 -5
  67. package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
  68. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  69. package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
  70. package/dist/cjs/vega-input.cjs.entry.js +6 -6
  71. package/dist/cjs/vega-left-nav_5.cjs.entry.js +313 -108
  72. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  73. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
  74. package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
  75. package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
  76. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-radio_2.cjs.entry.js +5 -5
  78. package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
  79. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +55 -28
  80. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
  81. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
  82. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +12 -12
  83. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
  84. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
  85. package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
  86. package/dist/cjs/vega-signature-capture.cjs.entry.js +7 -7
  87. package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
  88. package/dist/cjs/vega-table_11.cjs.entry.js +69 -9
  89. package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
  90. package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
  91. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  92. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  93. package/dist/cjs/vega.cjs.js +12 -13
  94. package/dist/collection/components/vega-button/vega-button.css +4 -0
  95. package/dist/collection/components/vega-button/vega-button.js +4 -1
  96. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.js +4 -6
  97. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.js +23 -68
  98. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.js +74 -0
  99. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +16 -2
  100. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.js +2 -2
  101. package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +7 -2
  102. package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-style-annotation.js +3 -2
  103. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +2 -1
  104. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-node-filter-styles-strategy.js +1 -1
  105. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +2 -1
  106. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +1 -1
  107. package/dist/collection/components/vega-rich-text-editor/extensions/find-replace/slimmer/controllers/helper/find-replace-highlight-manager.js +21 -7
  108. package/dist/collection/components/vega-rich-text-editor/extensions/find-replace/slimmer/renderers/find-replace-toolbar-button-renderer.js +12 -0
  109. package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-enter.js +3 -0
  110. package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-exit.js +3 -0
  111. package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/controller/fullscreen-controller.js +156 -0
  112. package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-extension.js +31 -0
  113. package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-toolbar-button-renderer.js +73 -0
  114. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +1 -0
  115. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-toolbar-popover-renderer.js +1 -0
  116. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.js +1 -1
  117. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +1 -1
  118. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.js +1 -1
  119. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +1 -1
  120. package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +71 -15
  121. package/dist/collection/components/vega-rich-text-editor/public-api.js +2 -0
  122. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +2 -0
  123. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +1 -1
  124. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +1 -1
  125. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +1 -1
  126. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +1 -1
  127. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +1 -1
  128. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +11 -1
  129. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +19 -1
  130. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +1 -1
  131. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-cell-renderer.js +3 -1
  132. package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +89 -7
  133. package/dist/collection/global/scripts/before-vega-load.js +2 -0
  134. package/dist/collection/helpers/backdrop/index.js +1 -0
  135. package/dist/collection/helpers/backdrop/shared-backdrop-manager.js +163 -0
  136. package/dist/collection/helpers/translation/locales/en.js +2 -0
  137. package/dist/esm/{app-globals-9950d055.js → app-globals-f2336686.js} +11 -10
  138. package/dist/esm/{code-block-ae2337c2.js → code-block-e12588fe.js} +77 -21
  139. package/dist/esm/{component-value-history-controller-slimmer.abstract-b1ee1b8e.js → component-value-history-controller-slimmer.abstract-4e8eb313.js} +3 -3
  140. package/dist/esm/{content-state-c3b85ae6.js → content-state-8032467a.js} +2 -2
  141. package/dist/esm/{date-required-rule-e06115f8.js → date-required-rule-b88e1650.js} +1 -1
  142. package/dist/esm/{design-token-4e682056.js → design-token-76bd217c.js} +3 -3
  143. package/dist/esm/{element-appender-slimmer-a4485ef6.js → element-appender-slimmer-7fcb944b.js} +2 -2
  144. package/dist/esm/{form-field-controller-slimmer-a1c7b28c.js → form-field-controller-slimmer-395c23e3.js} +1 -1
  145. package/dist/esm/{image-annotation-action-4c77d314.js → image-annotation-action-b3b6c308.js} +3 -3
  146. package/dist/esm/{image-extension-7108c27d.js → image-extension-b6c7e4a7.js} +18 -2
  147. package/dist/esm/index.js +17 -17
  148. package/dist/esm/{inject-keyboard-manager-e8ddb78d.js → inject-keyboard-manager-86126b5b.js} +1 -1
  149. package/dist/esm/{internal-calendar-period-factory-6f19d767.js → internal-calendar-period-factory-3a07dba0.js} +1 -1
  150. package/dist/esm/{internal-translation-controller-09b8bd13.js → internal-translation-controller-16709132.js} +2 -0
  151. package/dist/esm/{keyboard-manager-ec18721b.js → keyboard-manager-a0c3e1cf.js} +1 -1
  152. package/dist/esm/{keyboard-manager-slimmer-531ddb0e.js → keyboard-manager-slimmer-f3f66c15.js} +1 -1
  153. package/dist/esm/{link-extension-74eaa826.js → link-extension-97fcb8fb.js} +3 -3
  154. package/dist/esm/loader.js +12 -13
  155. package/dist/esm/{month-view-generator-afd78ff8.js → month-view-generator-fd0e1856.js} +1 -1
  156. package/dist/esm/{public-rules-5fce32a5.js → public-rules-c06f0d2a.js} +7 -7
  157. package/dist/esm/{range-8f877dbf.js → range-e999837f.js} +1 -1
  158. package/dist/esm/{responsive-format-facade-299e6304.js → responsive-format-facade-ced96b0b.js} +1 -1
  159. package/dist/esm/{rich-text-editor-required-rule-3047bab0.js → rich-text-editor-required-rule-71f8ee98.js} +1 -1
  160. package/dist/esm/{split-cell-operation-98d58410.js → split-cell-operation-359f8082.js} +3 -3
  161. package/dist/esm/{state-border-formatter-da52b626.js → state-border-formatter-b680e922.js} +1 -1
  162. package/dist/esm/{string-format-strategy.abstract-a45b5ff7.js → string-format-strategy.abstract-23faab71.js} +1 -1
  163. package/dist/esm/{string-input-formatter-slimmer-4a032fed.js → string-input-formatter-slimmer-4b4866a6.js} +1 -1
  164. package/dist/esm/{string-mask-strategy-37e53e48.js → string-mask-strategy-66586cd8.js} +2 -2
  165. package/dist/esm/{style-formatter-3d5ddfb1.js → style-formatter-f4e16af5.js} +2 -2
  166. package/dist/esm/{time-required-rule-355b73d2.js → time-required-rule-6e80a9ab.js} +1 -1
  167. package/dist/esm/{token-extension-ecfafe94.js → token-extension-9896879b.js} +306 -17
  168. package/dist/esm/{translation-slimmer-3ea56354.js → translation-slimmer-21748a0e.js} +1 -1
  169. package/dist/esm/{type-guard-2bfb2c7b.js → type-guard-ec5e8628.js} +1 -1
  170. package/dist/esm/{valid-credit-card-number-rule-52c6b029.js → valid-credit-card-number-rule-ca5a47d6.js} +1 -1
  171. package/dist/esm/vega-accordion.entry.js +6 -6
  172. package/dist/esm/vega-app-header-button.entry.js +5 -5
  173. package/dist/esm/vega-box.entry.js +6 -6
  174. package/dist/esm/vega-button-circle.entry.js +5 -5
  175. package/dist/esm/vega-button.entry.js +8 -5
  176. package/dist/esm/vega-calendar_5.entry.js +7 -7
  177. package/dist/esm/vega-card.entry.js +5 -5
  178. package/dist/esm/vega-carousel.entry.js +3 -3
  179. package/dist/esm/vega-checkbox_2.entry.js +2 -2
  180. package/dist/esm/vega-chip.entry.js +5 -5
  181. package/dist/esm/vega-code-block.entry.js +8 -8
  182. package/dist/esm/vega-color-picker.entry.js +2 -2
  183. package/dist/esm/vega-color-swatch-picker.entry.js +3 -3
  184. package/dist/esm/vega-color-swatch.entry.js +2 -2
  185. package/dist/esm/vega-combo-box.entry.js +8 -8
  186. package/dist/esm/vega-date-picker_2.entry.js +13 -13
  187. package/dist/esm/vega-dialog_2.entry.js +3 -3
  188. package/dist/esm/vega-divider.entry.js +5 -5
  189. package/dist/esm/vega-dropdown_5.entry.js +7 -7
  190. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  191. package/dist/esm/vega-field-label.entry.js +2 -2
  192. package/dist/esm/vega-file-uploader.entry.js +3 -3
  193. package/dist/esm/vega-flag-icon.entry.js +5 -5
  194. package/dist/esm/vega-flex.entry.js +6 -6
  195. package/dist/esm/vega-font.entry.js +5 -5
  196. package/dist/esm/vega-form.entry.js +3 -3
  197. package/dist/esm/vega-grid.entry.js +5 -5
  198. package/dist/esm/vega-icon.entry.js +5 -5
  199. package/dist/esm/vega-image-uploader.entry.js +5 -5
  200. package/dist/esm/vega-input-credit-card.entry.js +6 -6
  201. package/dist/esm/vega-input-numeric.entry.js +5 -5
  202. package/dist/esm/vega-input-passcode.entry.js +5 -5
  203. package/dist/esm/vega-input-phone-number.entry.js +4 -4
  204. package/dist/esm/vega-input-range.entry.js +3 -3
  205. package/dist/esm/vega-input-select.entry.js +5 -5
  206. package/dist/esm/vega-input.entry.js +6 -6
  207. package/dist/esm/vega-left-nav_5.entry.js +313 -108
  208. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  209. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  210. package/dist/esm/vega-pagination.entry.js +4 -4
  211. package/dist/esm/vega-popover_2.entry.js +8 -8
  212. package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
  213. package/dist/esm/vega-radio_2.entry.js +5 -5
  214. package/dist/esm/vega-rich-text-content.entry.js +6 -6
  215. package/dist/esm/vega-rich-text-editor_4.entry.js +51 -24
  216. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
  217. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
  218. package/dist/esm/vega-rich-text-table-properties_3.entry.js +12 -12
  219. package/dist/esm/vega-selection-chip_2.entry.js +4 -4
  220. package/dist/esm/vega-selection-tile_2.entry.js +2 -2
  221. package/dist/esm/vega-sidenav_3.entry.js +3 -3
  222. package/dist/esm/vega-signature-capture.entry.js +7 -7
  223. package/dist/esm/vega-stepper.entry.js +2 -2
  224. package/dist/esm/vega-table_11.entry.js +69 -9
  225. package/dist/esm/vega-textarea.entry.js +2 -2
  226. package/dist/esm/vega-time-picker_2.entry.js +9 -9
  227. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  228. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  229. package/dist/esm/vega.js +12 -13
  230. package/dist/sri/vega-sri-manifest.json +318 -322
  231. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.d.ts +0 -1
  232. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.d.ts +12 -19
  233. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.d.ts +41 -0
  234. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +4 -1
  235. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.d.ts +1 -1
  236. package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +2 -0
  237. package/dist/types/components/vega-rich-text-editor/extensions/find-replace/slimmer/controllers/helper/find-replace-highlight-manager.d.ts +15 -4
  238. package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-enter.d.ts +3 -0
  239. package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-exit.d.ts +3 -0
  240. package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/controller/fullscreen-controller.d.ts +63 -0
  241. package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-extension.d.ts +20 -0
  242. package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-toolbar-button-renderer.d.ts +40 -0
  243. package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +19 -0
  244. package/dist/types/components/vega-rich-text-editor/interface.d.ts +20 -0
  245. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +2 -0
  246. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +5 -0
  247. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.d.ts +8 -0
  248. package/dist/types/components/vega-table/interface.d.ts +13 -0
  249. package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +14 -0
  250. package/dist/types/components.d.ts +10 -0
  251. package/dist/types/helpers/backdrop/index.d.ts +1 -0
  252. package/dist/types/helpers/backdrop/shared-backdrop-manager.d.ts +67 -0
  253. package/dist/types/helpers/translation/interface.d.ts +3 -1
  254. package/dist/vega/index.esm.js +1 -1
  255. package/dist/vega/{p-21e21f51.js → p-02355de8.js} +1 -1
  256. package/dist/vega/{p-05f937c5.entry.js → p-0af32f31.entry.js} +1 -1
  257. package/dist/vega/{p-2fcc604c.entry.js → p-0b311599.entry.js} +1 -1
  258. package/dist/vega/{p-ad35dea4.entry.js → p-0b9c7c79.entry.js} +1 -1
  259. package/dist/vega/p-0be4df0a.js +1 -0
  260. package/dist/vega/{p-0e607b44.js → p-0d18368b.js} +1 -1
  261. package/dist/vega/{p-6b1893f6.entry.js → p-1232b553.entry.js} +1 -1
  262. package/dist/vega/{p-944b43ce.entry.js → p-14559974.entry.js} +1 -1
  263. package/dist/vega/{p-32a67ba1.js → p-14baa886.js} +1 -1
  264. package/dist/vega/{p-846b1ab9.entry.js → p-2364be92.entry.js} +1 -1
  265. package/dist/vega/p-270697c0.entry.js +1 -0
  266. package/dist/vega/{p-af98539f.entry.js → p-288d65ad.entry.js} +1 -1
  267. package/dist/vega/p-2bf17505.entry.js +1 -0
  268. package/dist/vega/{p-afb96938.js → p-320091b7.js} +1 -1
  269. package/dist/vega/{p-73fd18d9.entry.js → p-341a6b32.entry.js} +1 -1
  270. package/dist/vega/p-36949349.js +1 -0
  271. package/dist/vega/p-38c9d782.js +1 -0
  272. package/dist/vega/{p-e4309574.js → p-3c309a38.js} +1 -1
  273. package/dist/vega/{p-4d9562bc.js → p-3dee1e55.js} +1 -1
  274. package/dist/vega/p-3e8baeac.entry.js +1 -0
  275. package/dist/vega/{p-d7f32ccf.entry.js → p-46fe3154.entry.js} +1 -1
  276. package/dist/vega/{p-8c1a5fa4.entry.js → p-48ee3e24.entry.js} +1 -1
  277. package/dist/vega/{p-ccf7518b.js → p-4fe40b76.js} +1 -1
  278. package/dist/vega/{p-7d54e9c1.js → p-4ff48b84.js} +1 -1
  279. package/dist/vega/{p-56c4e349.entry.js → p-5107277d.entry.js} +1 -1
  280. package/dist/vega/{p-5139e516.js → p-51b68d25.js} +1 -1
  281. package/dist/vega/{p-751a5cd6.entry.js → p-52c6a399.entry.js} +1 -1
  282. package/dist/vega/{p-a359e53c.js → p-579cdeae.js} +1 -1
  283. package/dist/vega/{p-c2d28797.entry.js → p-595998d9.entry.js} +1 -1
  284. package/dist/vega/{p-653a6dd8.entry.js → p-5db61a12.entry.js} +1 -1
  285. package/dist/vega/{p-f2f22b5d.entry.js → p-5df2d6a1.entry.js} +1 -1
  286. package/dist/vega/p-5f377954.js +1 -1
  287. package/dist/vega/{p-1efab41b.js → p-61ce8029.js} +1 -1
  288. package/dist/vega/{p-ddf03de1.entry.js → p-62d6e063.entry.js} +1 -1
  289. package/dist/vega/{p-1818f399.entry.js → p-6c9c2f8c.entry.js} +1 -1
  290. package/dist/vega/{p-5dbfffcd.js → p-6cde45fc.js} +1 -1
  291. package/dist/vega/p-6dfe2407.js +1 -0
  292. package/dist/vega/{p-d4bb6f93.entry.js → p-6f01a71a.entry.js} +1 -1
  293. package/dist/vega/p-6f70a10f.entry.js +1 -0
  294. package/dist/vega/p-73f2c3c0.entry.js +1 -0
  295. package/dist/vega/p-75e33859.js +1 -0
  296. package/dist/vega/p-762ea523.entry.js +1 -0
  297. package/dist/vega/{p-c5ecbc53.entry.js → p-782eb312.entry.js} +1 -1
  298. package/dist/vega/p-7a88a3d3.entry.js +1 -0
  299. package/dist/vega/{p-e410c4ad.entry.js → p-7b57a845.entry.js} +1 -1
  300. package/dist/vega/p-83a16285.entry.js +1 -0
  301. package/dist/vega/p-8720816e.js +1 -0
  302. package/dist/vega/{p-6712a9c7.entry.js → p-892edf88.entry.js} +1 -1
  303. package/dist/vega/{p-63101cb4.entry.js → p-8c083255.entry.js} +1 -1
  304. package/dist/vega/{p-19c42e30.js → p-8db904dc.js} +1 -1
  305. package/dist/vega/{p-0cb78838.entry.js → p-91287214.entry.js} +1 -1
  306. package/dist/vega/{p-c553d37e.js → p-919cddc3.js} +1 -1
  307. package/dist/vega/{p-e86c6802.entry.js → p-95913e3c.entry.js} +1 -1
  308. package/dist/vega/p-97215133.js +1 -0
  309. package/dist/vega/{p-3f7b10b9.entry.js → p-9bdc6e11.entry.js} +1 -1
  310. package/dist/vega/{p-cf8d5b3f.entry.js → p-9d18ba7f.entry.js} +1 -1
  311. package/dist/vega/{p-7b93a756.entry.js → p-9dca874d.entry.js} +1 -1
  312. package/dist/vega/{p-ffdacaf9.entry.js → p-9f38448c.entry.js} +1 -1
  313. package/dist/vega/{p-ef605271.js → p-9f7154d2.js} +1 -1
  314. package/dist/vega/{p-7c8e579e.entry.js → p-a057285e.entry.js} +1 -1
  315. package/dist/vega/{p-3c9da3cd.entry.js → p-a0a58295.entry.js} +1 -1
  316. package/dist/vega/{p-4c49b2e3.js → p-a7209700.js} +1 -1
  317. package/dist/vega/{p-c3c0e415.entry.js → p-a890d60b.entry.js} +1 -1
  318. package/dist/vega/{p-fda6e2cc.entry.js → p-addbca58.entry.js} +1 -1
  319. package/dist/vega/{p-f0d4c78c.js → p-b1eb9ff0.js} +1 -1
  320. package/dist/vega/p-b4e7c967.js +1 -0
  321. package/dist/vega/{p-2de61f1b.js → p-b775e51f.js} +1 -1
  322. package/dist/vega/{p-bbabb1c8.entry.js → p-b8f8e480.entry.js} +1 -1
  323. package/dist/vega/{p-95d6c85f.js → p-ba662fe5.js} +1 -1
  324. package/dist/vega/p-c66d2a1e.js +1 -0
  325. package/dist/vega/{p-3932f964.entry.js → p-c67b9aba.entry.js} +1 -1
  326. package/dist/vega/{p-acbba6da.entry.js → p-c9daabe1.entry.js} +1 -1
  327. package/dist/vega/{p-ddd28a8e.entry.js → p-cad5222a.entry.js} +1 -1
  328. package/dist/vega/{p-b042e3b4.entry.js → p-cb90163a.entry.js} +1 -1
  329. package/dist/vega/{p-422d88ae.entry.js → p-d08ffdf1.entry.js} +1 -1
  330. package/dist/vega/{p-d44943e2.entry.js → p-e235020b.entry.js} +1 -1
  331. package/dist/vega/{p-4f327808.entry.js → p-e4266b45.entry.js} +1 -1
  332. package/dist/vega/{p-9cafbc26.entry.js → p-e48a870f.entry.js} +1 -1
  333. package/dist/vega/{p-832d1a72.entry.js → p-e8ee70c5.entry.js} +1 -1
  334. package/dist/vega/{p-d62b85ff.entry.js → p-ed103a1a.entry.js} +1 -1
  335. package/dist/vega/{p-e5187a86.entry.js → p-f05a193e.entry.js} +1 -1
  336. package/dist/vega/p-f1974321.js +1 -0
  337. package/dist/vega/{p-615a2b8c.entry.js → p-f246f125.entry.js} +1 -1
  338. package/dist/vega/{p-4256252c.js → p-f4da615a.js} +1 -1
  339. package/dist/vega/{p-09d50f59.entry.js → p-f5d7b89f.entry.js} +1 -1
  340. package/dist/vega/{p-0f1d6ceb.entry.js → p-f651df3b.entry.js} +1 -1
  341. package/dist/vega/{p-6d40635e.js → p-f7e459cd.js} +1 -1
  342. package/dist/vega/{p-cb81fc2a.entry.js → p-f906a7bc.entry.js} +1 -1
  343. package/dist/vega/{p-66b7d1c7.entry.js → p-f96d0503.entry.js} +1 -1
  344. package/dist/vega/{p-8d27b9cc.js → p-fe24b459.js} +1 -1
  345. package/dist/vega/vega.esm.js +1 -1
  346. package/package.json +1 -1
  347. package/dist/cjs/replace-selected-text-action-a80f5a6a.js +0 -20
  348. package/dist/esm/replace-selected-text-action-c9278a0f.js +0 -18
  349. package/dist/vega/p-07562b9c.js +0 -1
  350. package/dist/vega/p-18a5e8bc.js +0 -1
  351. package/dist/vega/p-2de88b4a.entry.js +0 -1
  352. package/dist/vega/p-392e049c.entry.js +0 -1
  353. package/dist/vega/p-4e1aa86f.js +0 -1
  354. package/dist/vega/p-4ef5c4a7.entry.js +0 -1
  355. package/dist/vega/p-88863658.js +0 -1
  356. package/dist/vega/p-99b699be.entry.js +0 -1
  357. package/dist/vega/p-9a01be93.js +0 -1
  358. package/dist/vega/p-9a472a04.entry.js +0 -1
  359. package/dist/vega/p-a9a87b9a.js +0 -1
  360. package/dist/vega/p-b5bee669.entry.js +0 -1
  361. package/dist/vega/p-b5f308ee.entry.js +0 -1
  362. package/dist/vega/p-bbf1f988.entry.js +0 -1
  363. package/dist/vega/p-ccb9bf86.js +0 -1
  364. package/dist/vega/p-dca3278f.js +0 -1
  365. package/dist/vega/p-e0ecafca.js +0 -1
  366. package/dist/vega/p-e33e1e90.js +0 -1
  367. package/dist/vega/p-ff8dd200.js +0 -1
@@ -1 +0,0 @@
1
- import{h as e,f as t,F as i,H as o,r as s,c as a,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 v,s as p}from"./p-6bd5c49b.js";import{V as b,I as u}from"./p-8ce9e214.js";import{g as f}from"./p-a841cf13.js";import{C as g}from"./p-2d0d575f.js";import{m as w,n as m,o as y,p as x,S as R}from"./p-cb378636.js";import{O as S}from"./p-331a62d5.js";import{f as C,a as k,m as j}from"./p-528748fa.js";import{d as E,D}from"./p-526e3634.js";import{r as O}from"./p-77e64f26.js";import{U as T,W as L,X as M,Y as A,Z as N,_ as I,$ as W,a0 as P}from"./p-3a68b729.js";import{a as z,d as B,_,e as K,a2 as V,a3 as $,a4 as F,a5 as G,a6 as X,a7 as H,a8 as U}from"./p-698fbd73.js";import{R as Y}from"./p-4d9562bc.js";import{i as q,s as Z,ap as J}from"./p-19c42e30.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 se}from"./p-81dd00d0.js";import{c as ae}from"./p-3f183b52.js";import{C as re}from"./p-b1ff70bf.js";import{c as le}from"./p-140616fe.js";import{I as ne}from"./p-48e3be6a.js";import{T as de}from"./p-5dbfffcd.js";import{S as ce}from"./p-1fb56e14.js";import{c as he}from"./p-6a334573.js";import{I as ve}from"./p-781fd6e0.js";import{S as pe}from"./p-29e3eb12.js";import{F as be}from"./p-87a4d75f.js";import{B as ue}from"./p-ed45b3b6.js";import{c as fe}from"./p-3a620268.js";import{V as ge}from"./p-6031bed1.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-b438e68b.js";import"./p-0e607b44.js";import"./p-b75ee3ba.js";import"./p-282b37cb.js";import"./p-5f377954.js";import"./p-982747ef.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";class ye{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 ye(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const xe=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];class Re{constructor(e,t,i,o,s,a,r,l,n,d,c,h,v,p,b,u,f=[]){this.key=e,this.label=t,this.pinned=i,this.colSpan=o,this.rowSpan=s,this.isViewStart=a,this.isViewEnd=r,this.isLeftEndPinned=l,this.isRightStartPinned=n,this.isNoPinnedEnd=d,this.headHasGroupColumn=c,this.headHasPinnedColumn=h,this.headMaxDepth=v,this.level=p,this.columnIndex=b,this.parent=u,this.children=f,this.iteratorCacheMap=new Map,this.leaves=[]}static from(e){const t=[],i=[],o=e.getMaxDepth(),s=e.hasGroupColumn(),a=e.hasLeftPinnedColumn()||e.hasRightPinnedColumn();let r=0;return e.iterator().forEach((e=>{const l=e.level>0?i[e.level-1]:null,n=s&&this.isParentStart(e),d=s&&this.isParentEnd(e),c=new Re(e.key,e.label,l?l.pinned:e.pinned,s?this.getColSpan(e):null,s?e.isLeaf()?o-e.level:1:null,l?l.isViewStart&&n:n,l?l.isViewEnd&&d:d,l?l.isLeftEndPinned&&d:a&&this.isLeftEndPinned(e),l?l.isRightStartPinned&&n:a&&this.isRightStartPinned(e),l?l.isNoPinnedEnd&&d:a&&this.isNoPinnedEnd(e),s,a,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 withMergedBoundaries(e,t){let i=e.isLeftEndPinned,o=e.isRightStartPinned,s=e.isNoPinnedEnd,a=e.isViewEnd;for(const e of t)i=i||e.isLeftEndPinned,o=o||e.isRightStartPinned,s=s||e.isNoPinnedEnd,a=a||e.isViewEnd;return i===e.isLeftEndPinned&&o===e.isRightStartPinned&&s===e.isNoPinnedEnd&&a===e.isViewEnd?e:new Re(e.key,e.label,e.pinned,e.colSpan,e.rowSpan,e.isViewStart,a,i,o,s,e.headHasGroupColumn,e.headHasPinnedColumn,e.headMaxDepth,e.level,e.columnIndex,e.parent,e.children)}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 Se=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ce extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o,s)=>{var a,r;const l=f(i,t.prop),n=this.vegaTableDataSourceController.getRecordKey(i),c=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===n)),h=this.vegaTableEditableController.isEditing(n),v=this.vegaTableEditableController.getRowFormRefMap().get(n);if(!s&&h&&v&&t.renderFormItem)return t.renderFormItem(e,t.prop?l:n,i,o,{rowForm:v,isNewRow:c});if(!s&&h&&v&&t.editable){const e=null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,v,{record:i,index:o}),s=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:l},null===(r=t.formItemProps)||void 0===r?void 0:r.call(t,v,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,s)}return t.render?t.render(e,t.prop?l:n,i,o):"string"==typeof l||"number"==typeof l?String(l):null==l?"":void d.error(`Column ${t.prop}'s value has a wrong type(${typeof i[t.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(t="input",i)=>{const o=`vega-${t}`,{dataVegaForm:s}=i,a=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},a),{"data-vega-form":s}));d.error(`Type must be one of the form field types. [${xe.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(xe.join("|"),"i").test(e)}render(t,i,o,s){var a;const r=this.vegaTableBodyColSpanController.findColumn(t),l=null!==(a=null==s?void 0:s.htmlColspan)&&void 0!==a?a:1,n=l>1,d=n&&s?this.getMergedRenderInputForSpan(t,s):t;if(r){const t=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${t}_${r.key||r.prop}`,textAlign:r.align,breakpoint:r.breakpoint,overflow:r.overflow,colSpan:n?l:void 0,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,d)}},this.renderTableCellContent(r,i,o,n))}return e("vega-table-cell",{key:t.key,ref:e=>{this.vegaTableRenderInputController.addCellRenderInputMap(e,d)}})}getMergedRenderInputForSpan(e,t){const i=this.vegaTableRenderInputController.getLeafRenderInputs(),o=i.indexOf(e);if(o<0)return e;const s=i.slice(o+1,o+1+t.skipCount);return Re.withMergedBoundaries(e,s)}}Se([l()],Ce.prototype,"rowKey",void 0),Se([l()],Ce.prototype,"vegaTableDataSourceController",void 0),Se([l()],Ce.prototype,"vegaTableEditableController",void 0),Se([l()],Ce.prototype,"vegaTableRenderInputController",void 0),Se([l()],Ce.prototype,"vegaTableBodyColSpanController",void 0);const ke={htmlColspan:1,skipCount:0};function je(e,t,i,o,s,a){var r,l,n;const c=function(e,t,i){const o=null==e?void 0:e.colSpan;return null==o?1:function(e){if(!Number.isFinite(e))return 1;const t=Math.floor(e);return t>=1?t:1}("function"!=typeof o?o:o(e.prop?f(t,e.prop):void 0,t,i))}(e,t,i);if(!c||c<=1)return ke;const{span:h,clampReason:v}=function(e,t,i){var o,s;const a=null===(o=i[t])||void 0===o?void 0:o.pinned;let r=1;for(let o=1;o<e;o++){const e=i[t+o];if(!e)return{span:r,clampReason:`extends past the end of the row (${i.length} columns total)`};if(e.pinned!==a)return{span:r,clampReason:`crosses a pinned-column boundary (pinned="${null!=a?a:"none"}" → pinned="${null!==(s=e.pinned)&&void 0!==s?s:"none"}")`};r++}return{span:r,clampReason:null}}(c,o,s),p=Math.min(c,h);return v&&p<c&&function(e,t,i,o,s){s.has(e)||(s.add(e),d.warn(`[vega-table] colSpan for column "${e}" was clamped from ${t} to ${i} because it ${o}.`))}(null!==(n=null!==(l=null!==(r=e.key)&&void 0!==r?r:e.prop)&&void 0!==l?l:e.label)&&void 0!==n?n:"",c,p,v,a),p<=1?ke:{htmlColspan:p,skipCount:p-1}}class Ee extends n{constructor(){super(...arguments),this.warnedColSpanKeys=new Set,this.lastWarnedColumnsRef=null}resolveRow(e,t,i){this.columns!==this.lastWarnedColumnsRef&&(this.warnedColSpanKeys.clear(),this.lastWarnedColumnsRef=this.columns);const o=new Array(i.length).fill(null);let s=0;return i.forEach(((a,r)=>{if(s>0)return void s--;const l=this.findColumn(a),n=l?je(l,e,t,r,i,this.warnedColSpanKeys):{htmlColspan:1,skipCount:0};o[r]=n,s=n.skipCount})),o}findColumn(e){return this.columns.find((t=>t.key===e.key||t.prop===e.key||t.label===e.key))}}!function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);a>3&&r&&Object.defineProperty(t,i,r)}([l()],Ee.prototype,"columns",void 0);var De=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Oe 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=>`${Oe.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)}))}}Oe.expandRowSlotNamePrefix="vega-table-expand-row-",De([l()],Oe.prototype,"host",void 0),De([l()],Oe.prototype,"expandedRowKeySet",void 0),De([l({writable:!0})],Oe.prototype,"expandableRows",void 0),De([l({writable:!0})],Oe.prototype,"hasExpandableRow",void 0),De([l()],Oe.prototype,"rowExpandable",void 0),De([l()],Oe.prototype,"currentData",void 0),De([l()],Oe.prototype,"rowExpandEventEmitter",void 0),De([l()],Oe.prototype,"vegaTableDataSourceController",void 0),De([c("connectedCallback")],Oe.prototype,"connectedCallback",null),De([c("disconnectedCallback")],Oe.prototype,"disconnectedCallback",null),De([c("componentWillLoad")],Oe.prototype,"componentWillLoad",null),De([c("componentDidLoad")],Oe.prototype,"componentDidLoad",null),De([c("toggleExpandRow")],Oe.prototype,"toggleExpandRow",void 0),De([c("openExpandRow")],Oe.prototype,"openExpandRow",void 0),De([c("closeExpandRow")],Oe.prototype,"closeExpandRow",void 0),De([c("closeAllExpandRow")],Oe.prototype,"closeAllExpandRow",void 0),De([c("watchRowExpandable")],Oe.prototype,"watchRowExpandable",null),De([c("watchCurrentData")],Oe.prototype,"watchCurrentData",null);var Te=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Le 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(y,this.rowSelectionAllObserver),g.unregister(x,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(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){g.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-HEAD-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}initRowSelection(){this.rowSelectionObserver=new S(this.isAcceptableRowSelectionObserver.bind(this),(e=>{const{rowKey:t,checked:i}=e,o=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(i,o)})),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(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new S(this.isAcceptableRowClickObserver.bind(this),(e=>{if("single"===this.getRowSelectionType()){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}})),g.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}Te([l()],Le.prototype,"host",void 0),Te([l({writable:!0})],Le.prototype,"isSelectedAll",void 0),Te([l()],Le.prototype,"selectedRowKeySet",void 0),Te([l({writable:!0})],Le.prototype,"rowSelection",void 0),Te([l()],Le.prototype,"rowKey",void 0),Te([l()],Le.prototype,"selectChangeEventEmitter",void 0),Te([l()],Le.prototype,"selectAllChangeEventEmitter",void 0),Te([l()],Le.prototype,"vegaTableDataSourceController",void 0),Te([l()],Le.prototype,"rowSelectEventEmitter",void 0),Te([l()],Le.prototype,"rowSelectAllEventEmitter",void 0),Te([c("connectedCallback")],Le.prototype,"connectedCallback",null),Te([c("disconnectedCallback")],Le.prototype,"disconnectedCallback",null),Te([c("componentWillLoad")],Le.prototype,"componentWillLoad",null),Te([c("watchRowSelection")],Le.prototype,"watchRowSelection",null),Te([c("setSelection")],Le.prototype,"setSelection",null),Te([c("watchCurrentData")],Le.prototype,"watchCurrentData",null),Te([c("clearSelection")],Le.prototype,"clearSelection",null),Te([c("getSelection")],Le.prototype,"getSelection",null),Te([c("watchSelectedRowKeySet")],Le.prototype,"watchSelectedRowKeySet",null),Te([c("watchSelectedAll")],Le.prototype,"watchSelectedAll",null);var Me=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ae 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)}}Me([l()],Ae.prototype,"rowKey",void 0),Me([l({writable:!0})],Ae.prototype,"currentData",void 0),Me([l({writable:!0})],Ae.prototype,"dataSource",void 0),Me([l()],Ae.prototype,"columns",void 0),Me([l()],Ae.prototype,"sortersMap",void 0),Me([l()],Ae.prototype,"vegaTableSortController",void 0),Me([l()],Ae.prototype,"vegaTableRenderer",void 0),Me([l()],Ae.prototype,"isTemplateRenderMode",void 0),Me([c("componentWillLoad")],Ae.prototype,"componentWillLoad",null),Me([c("watchSortersMap")],Ae.prototype,"watchSortersMap",null),Me([c("watchDataSource")],Ae.prototype,"watchDataSource",null);var Ne=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ie 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(((s,a)=>{const r=this.vegaTableDataSourceController.getRecordKey(s),l=this.vegaTablePaginationController.isRowVisible(a);return e(i,null,this.vegaTableRowRenderer.render({rowKey:r,index:a,record:s,isVisibleInCurrentPage:l,isLastRow:a===o.length-1},t),this.vegaTableExpandRowController.isExpandableRow(s)&&e("vega-table-expand-row",{class:{"v-hidden":!l},key:`vega-table-expanded-row-${r}`,rowKey:r,striped:this.striped&&a%2==1},e("slot",{name:`${Oe.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)}}Ne([l()],Ie.prototype,"striped",void 0),Ne([l()],Ie.prototype,"rowDivider",void 0),Ne([l()],Ie.prototype,"columns",void 0),Ne([l()],Ie.prototype,"currentBreakpoint",void 0),Ne([l()],Ie.prototype,"rowClickable",void 0),Ne([l()],Ie.prototype,"vegaTableDataSourceController",void 0),Ne([l()],Ie.prototype,"vegaTablePaginationController",void 0),Ne([l()],Ie.prototype,"vegaTableRowSelectionController",void 0),Ne([l()],Ie.prototype,"vegaTableRowRenderer",void 0),Ne([l()],Ie.prototype,"columnStructureModel",void 0),Ne([l()],Ie.prototype,"vegaTableExpandRowController",void 0);var We=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Pe 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())}}We([l()],Pe.prototype,"showHeader",void 0),We([l()],Pe.prototype,"sortersMap",void 0),We([l()],Pe.prototype,"sortConfig",void 0),We([l()],Pe.prototype,"columns",void 0),We([l()],Pe.prototype,"rowSelection",void 0),We([l()],Pe.prototype,"vegaTableSortController",void 0),We([l()],Pe.prototype,"vegaTableDataSourceController",void 0),We([l()],Pe.prototype,"vegaTableRenderInputController",void 0);var ze=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Be extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{D.addUniqueObserverToNode(e,B,this.handlePaginationChange),D.addUniqueObserverToNode(e,_,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 s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]])}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:s}=this.getPaginationConfig(),a=["vega-table-pagination-container",i],r=this.vegaTableDataSourceController.getCurrentData().length;return r>0&&e("div",{class:k(a)},e("vega-pagination",{total:r,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:s,ref:this.paginationRefCallback}))}}ze([l()],Be.prototype,"pagination",void 0),ze([l()],Be.prototype,"pageSize",void 0),ze([l()],Be.prototype,"currentPage",void 0),ze([l()],Be.prototype,"vegaTablePaginationController",void 0),ze([l()],Be.prototype,"vegaTableDataSourceController",void 0);const _e=({scrollConfig:t={},ref:i,onScroll:o},s)=>{const{maxHeight:a}=t,r=q(a);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof a?`${a}px`:a},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")}},s)};var Ke=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ve 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(_e,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e),onScroll:()=>this.notifyContentScrolling()},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}Ke([l()],Ve.prototype,"scrollConfig",void 0),Ke([l()],Ve.prototype,"host",void 0),Ke([l()],Ve.prototype,"isTemplateRenderMode",void 0),Ke([c("watchCurrentPage")],Ve.prototype,"watchCurrentPage",null);var $e=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Fe 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,"show-edit-error":this.showEditError}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],(this.dataSource.length>0||this.editingRows.size>0)&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&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()],Fe.prototype,"host",void 0),$e([l()],Fe.prototype,"columns",void 0),$e([l()],Fe.prototype,"emptyDescription",void 0),$e([l()],Fe.prototype,"rowDivider",void 0),$e([l()],Fe.prototype,"columnDivider",void 0),$e([l()],Fe.prototype,"density",void 0),$e([l()],Fe.prototype,"dataSource",void 0),$e([l()],Fe.prototype,"striped",void 0),$e([l()],Fe.prototype,"columnStructureModel",void 0),$e([l()],Fe.prototype,"showEditError",void 0),$e([l()],Fe.prototype,"vegaTableHeaderRenderer",void 0),$e([l()],Fe.prototype,"vegaTableBodyRenderer",void 0),$e([l()],Fe.prototype,"vegaTableColGroupRenderer",void 0),$e([l()],Fe.prototype,"vegaTableScrollContainerRenderer",void 0),$e([l()],Fe.prototype,"vegaTablePaginationRenderer",void 0),$e([l()],Fe.prototype,"vegaTableDataSourceController",void 0),$e([l()],Fe.prototype,"translationSlimmer",void 0),$e([l({writable:!0})],Fe.prototype,"vegaTableChildrenController",void 0),$e([l()],Fe.prototype,"isTemplateRenderMode",void 0),$e([l()],Fe.prototype,"editingRows",void 0);var Ge=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Xe 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}}Ge([l()],Xe.prototype,"pagination",void 0),Ge([l({writable:!0})],Xe.prototype,"pageSize",void 0),Ge([l({writable:!0})],Xe.prototype,"currentPage",void 0),Ge([c("componentWillLoad")],Xe.prototype,"componentWillLoad",null),Ge([c("watchPagination")],Xe.prototype,"watchPagination",null);var He=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ue 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[`${Ue.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)}}Ue.rowFormKeyPrefix="vega-table-row-form-",He([l()],Ue.prototype,"editingRows",void 0),He([l()],Ue.prototype,"rowKey",void 0),He([l()],Ue.prototype,"columns",void 0),He([l()],Ue.prototype,"vegaTableDataSourceController",void 0),He([l()],Ue.prototype,"vegaTableBodyRenderer",void 0),He([c("saveAllEditRows")],Ue.prototype,"saveAllEditRows",null),He([c("stopAllRowEditMode")],Ue.prototype,"stopAllRowEditMode",null),He([c("watchDataSource")],Ue.prototype,"watchDataSource",null),He([c("saveEditRow")],Ue.prototype,"saveEditRow",null),He([c("stopRowEditMode")],Ue.prototype,"stopRowEditMode",null),He([c("removeRow")],Ue.prototype,"removeRow",null),He([c("startRowEditMode")],Ue.prototype,"startRowEditMode",null),He([c("addNewRow")],Ue.prototype,"addNewRow",null),He([c("getRowsData")],Ue.prototype,"getRowsData",null),He([c("getEditingRowsKey")],Ue.prototype,"getEditingRowsKey",null),He([c("getFormRef")],Ue.prototype,"getFormRef",null),He([c("getRowData")],Ue.prototype,"getRowData",null);class Ye{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 qe=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ze 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 Ye(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 Ye(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}))}}qe([l({writable:!0})],Ze.prototype,"sortersMap",void 0),qe([l()],Ze.prototype,"columns",void 0),qe([l()],Ze.prototype,"changeEventEmitter",void 0),qe([l()],Ze.prototype,"vegaTableDataSourceController",void 0),qe([l()],Ze.prototype,"sortConfig",void 0),qe([c("watchColumns")],Ze.prototype,"watchColumns",null);var Je=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Qe 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]}}))}}Je([l()],Qe.prototype,"paddingX",void 0),Je([l()],Qe.prototype,"columnStructureModel",void 0),Je([l()],Qe.prototype,"columns",void 0),Je([l()],Qe.prototype,"hasExpandableRow",void 0),Je([l()],Qe.prototype,"rowDraggable",void 0),Je([l()],Qe.prototype,"vegaTableRowSelectionController",void 0);var et=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>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-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(y,{host:this.host,checked:!1,noneChecked:!0})}watchCurrentData(){this.syncUpTableFootVisibility()}watchStriped(){this.syncRowStates()}watchRowDivider(){this.syncRowStates()}updateRowStriped(e,t){e.striped=this.striped&&t%2==1}updateRowDivider(e,t){e.rowDivider=this.rowDivider&&!t}syncUpTableFootVisibility(){const e=this.host.querySelector("vega-table-foot");e&&(this.vegaTableDataSourceController.isCurrentDataEmpty()?e.classList.add("v-hidden"):e.classList.remove("v-hidden"))}}et([l()],tt.prototype,"host",void 0),et([l()],tt.prototype,"columns",void 0),et([l()],tt.prototype,"dataSource",void 0),et([l()],tt.prototype,"currentData",void 0),et([l()],tt.prototype,"rowSelection",void 0),et([l()],tt.prototype,"striped",void 0),et([l()],tt.prototype,"rowDivider",void 0),et([l()],tt.prototype,"vegaTableDataSourceController",void 0),et([l()],tt.prototype,"vegaTableRenderer",void 0),et([l()],tt.prototype,"isTemplateRenderMode",void 0),et([h()],tt.prototype,"currentDataObserver",void 0),et([h()],tt.prototype,"rowStripedObserver",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),et([c("clearSelection")],tt.prototype,"clearSelection",null),et([c("watchCurrentData")],tt.prototype,"watchCurrentData",null),et([c("watchStriped")],tt.prototype,"watchStriped",null),et([c("watchRowDivider")],tt.prototype,"watchRowDivider",null);var it=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ot extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:s,isVisibleInCurrentPage:a}=t,r=this.vegaTableRenderInputController.getLeafRenderInputs(),l=this.vegaTableBodyColSpanController.resolveRow(s,o,r),n=[];return r.forEach(((e,t)=>{const i=l[t];i&&n.push(this.vegaTableCellRenderer.render(e,s,o,i))})),e("vega-table-row",{class:{"v-hidden":!a},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{D.addUniqueObserverToNode(e,z,(()=>{this.rowClickEventEmitter.emit({record:s,index:o})}))},striped:this.striped&&o%2==1,rowDivider:this.rowDivider&&!t.isLastRow},n)}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Ue.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}it([l()],ot.prototype,"rowClickEventEmitter",void 0),it([l()],ot.prototype,"vegaTableEditableController",void 0),it([l()],ot.prototype,"vegaTableCellRenderer",void 0),it([l()],ot.prototype,"vegaTableBodyColSpanController",void 0),it([l()],ot.prototype,"striped",void 0),it([l()],ot.prototype,"rowDivider",void 0),it([l()],ot.prototype,"vegaTableRenderInputController",void 0);var st=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class at 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(){}}st([l()],at.prototype,"host",void 0),st([l({writable:!0})],at.prototype,"isTemplateRenderMode",void 0),st([h()],at.prototype,"currentDataObserver",void 0),st([c("connectedCallback")],at.prototype,"connectedCallback",null),st([c("disconnectedCallback")],at.prototype,"disconnectedCallback",null),st([c("componentWillLoad")],at.prototype,"componentWillLoad",null),st([c("componentDidLoad")],at.prototype,"componentDidLoad",null);const rt=[{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 lt{constructor(e,t,i,o,s){this.key=e,this.level=t,this.parent=i,this.label=o,this.pinned=s,this.leaves=[],this.orderedChildren=[],this.iteratorCacheMap=new Map}static from(e,t){const i=new lt(this.ROOT_KEY,lt.ROOT_LEVEL);return t?(i.children=this.fromGroupColumns(i,t),i):e?(i.children=e.map((e=>new lt(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 lt(t.key,i,e,t.label,t.pinned);return o.children=this.fromGroupColumns(o,t.children,i+1),o}return new lt(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===lt.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}}lt.ROOT_LEVEL=-1,lt.ROOT_KEY="#root-model#";var nt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class dt extends n{componentWillLoad(){this.setColumnStructureModel()}watchColumns(){this.setColumnStructureModel()}watchGroupColumns(){this.setColumnStructureModel()}setColumnStructureModel(){this.columnStructureModel=lt.from(this.columns,this.groupColumns)}}nt([l()],dt.prototype,"host",void 0),nt([l()],dt.prototype,"columns",void 0),nt([l()],dt.prototype,"groupColumns",void 0),nt([l({writable:!0})],dt.prototype,"columnStructureModel",void 0),nt([c("componentWillLoad")],dt.prototype,"componentWillLoad",null),nt([c("watchColumns")],dt.prototype,"watchColumns",null),nt([c("watchGroupColumns")],dt.prototype,"watchGroupColumns",null);var ct=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ht 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=Re.from(this.columnStructureModel),this.leavesRenderInputModels=this.columnRenderInputModels.flatMap((e=>e.getLeaves()))}}ct([l()],ht.prototype,"host",void 0),ct([l()],ht.prototype,"columnStructureModel",void 0),ct([l()],ht.prototype,"vegaTableColGroupRenderer",void 0),ct([c("connectedCallback")],ht.prototype,"connectedCallback",null),ct([c("disconnectedCallback")],ht.prototype,"disconnectedCallback",null),ct([c("componentWillLoad")],ht.prototype,"componentWillLoad",null),ct([c("componentDidRender")],ht.prototype,"componentDidRender",null),ct([c("watchColumnStructureModel")],ht.prototype,"watchColumnStructureModel",null);var vt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class pt extends n{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new se({target:()=>this.host.shadowRoot.querySelector("table"),isDeferred:!0,callback:async()=>{await this.host.componentOnReady().then((()=>{this.updateTableRowPinnedPosition(),this.updateTableCellPinnedPosition()}))}}),this.previouslyStyledCells=new Set,this.dynamicRightDividerCells=new Set,this.dynamicLeftDividerCells=new Set,this.dynamicHideRightBorderCells=new Set,this.clearPinnedPositionsTaskQueue=new ce(1)}componentDidLoad(){}async componentDidRender(){await this.clearPinnedPositionsTaskQueue.runTask(),this.updateTableRowPinnedPosition();const e=this.updateTableCellPinnedPosition();e.length>0&&(await Promise.all(e.map((e=>e.componentOnReady()))),this.updateTableCellPinnedPosition())}watchColumnStructureModel(){this.clearPinnedPositionsTaskQueue.enqueue({run:async()=>{this.clearAllPinnedPositions()}},!1)}updateTableCellPinnedPosition(){if(!this.columnStructureModel.hasLeftPinnedColumn()&&!this.columnStructureModel.hasRightPinnedColumn())return[];if(this.dynamicRightDividerCells.forEach((e=>e.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((e=>e.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((e=>e.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),!this.host.shadowRoot.querySelector("vega-table-head-row"))return[];const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap(),t=this.vegaTableRenderInputController.getPinnedColumnBodyCellRenderInputMap(),[i,o]=this.getRowShadowThWidths(),s=this.getLeafWidths();let a=null,r=null,l=null;e.forEach(((e,t)=>{var n;const d=null===(n=t.shadowRoot)||void 0===n?void 0:n.querySelector("th, td"),c=!!d&&d.getBoundingClientRect().width>0;this.updateCellPinnedPosition(e,t,i,s,o),c&&"left"===e.pinned&&(a=d),c&&"right"===e.pinned&&!r&&(r=d),c&&"right"===e.pinned&&(l=d)})),t.forEach(((e,i)=>{(null==i?void 0:i.isConnected)||t.delete(i)}));const n=new Map,d=new Map,c=new Map,h=[];if(t.forEach(((e,t)=>{var a;const r=null===(a=t.shadowRoot)||void 0===a?void 0:a.querySelector("th, td"),l=!!r&&r.getBoundingClientRect().width>0;if(!["left","right"].includes(e.pinned)||r){if(this.updateCellPinnedPosition(e,t,i,s,o),l&&"left"===e.pinned){const e=t.closest("vega-table-row");e&&n.set(e,r)}if(l&&"right"===e.pinned){const e=t.closest("vega-table-row");e&&!d.has(e)&&d.set(e,r),e&&c.set(e,r)}}else h.push(t)})),a&&!a.classList.contains("right-divider")){const e=this.vegaTableRenderInputController.getLeafRenderInputs().find((e=>e.isLeftEndPinned));e&&0===s[e.columnIndex]&&(a.classList.add("right-divider"),this.dynamicRightDividerCells.add(a),n.forEach((e=>{e.classList.contains("right-divider")||(e.classList.add("right-divider"),this.dynamicRightDividerCells.add(e))})))}if(r&&!r.classList.contains("left-divider")){const e=this.vegaTableRenderInputController.getLeafRenderInputs().find((e=>e.isRightStartPinned));e&&0===s[e.columnIndex]&&(r.classList.add("left-divider"),this.dynamicLeftDividerCells.add(r),d.forEach((e=>{e.classList.contains("left-divider")||(e.classList.add("left-divider"),this.dynamicLeftDividerCells.add(e))})))}if(l&&!l.classList.contains("hide-right-border")){const e=this.vegaTableRenderInputController.getLeafRenderInputs().filter((e=>"right"===e.pinned)),t=e[e.length-1];t&&0===s[t.columnIndex]&&(l.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(l),c.forEach((e=>{e.classList.contains("hide-right-border")||(e.classList.add("hide-right-border"),this.dynamicHideRightBorderCells.add(e))})))}return this.syncColspanForHiddenColumns(s,t),h}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"),s=e.querySelector(".vega-table-expand-action-column"),a=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==s?void 0:s.getBoundingClientRect().width)||0)+a.getBoundingClientRect().width]:[0,0]}getLeafWidths(){const e=this.vegaTableRenderInputController.getHeadCellRenderInputMap();return this.vegaTableRenderInputController.getLeafRenderInputs().map((t=>{var i;for(const[o,s]of e.entries())if(t===s)return(null===(i=o.shadowRoot.querySelector("th, td"))||void 0===i?void 0:i.getBoundingClientRect().width)||0}))}syncColspanForHiddenColumns(e,t){e.every((e=>0===e))||t.forEach(((t,i)=>{var o;const s=i.colSpan||1;if(s<=1)return;const a=null===(o=i.shadowRoot)||void 0===o?void 0:o.querySelector("td");if(!a)return;const r=e.slice(t.columnIndex,t.columnIndex+s),l=Math.max(1,r.filter((e=>e>0)).length);a.setAttribute("colspan",String(l))}))}updateCellPinnedPosition(e,t,i,o,s){if(["left","right"].includes(e.pinned)){const a=t.shadowRoot.querySelector("th, td");if("left"===e.pinned){const t=i+o.slice(0,e.columnIndex).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"left",t)}if("right"===e.pinned){const i=q(e.colSpan)?e.colSpan:t.colSpan||1,r=s+o.slice(e.columnIndex+i).reduce(((e,t)=>e+t),0);this.updatePinnedPosition(a,"right",r)}}}updateTableRowPinnedPosition(){const e=this.columnStructureModel.hasLeftPinnedColumn(),t=this.columnStructureModel.hasRightPinnedColumn(),i=this.host.getBoundingClientRect().width,o=j(this.paddingX[0]),s=j(this.paddingX[1]),a=i-o-s-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 s=(null==i?void 0:i.getBoundingClientRect().width)||0;this.updatePinnedPosition(t,"left",o+s)}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",s),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=`${a}px`}}}))}clearAllPinnedPositions(){this.previouslyStyledCells.forEach((e=>{e.style.position="",e.style.zIndex="",e.style.left="",e.style.right="",e.classList.contains("expanded-row-slot-inner")&&(e.style.width="")})),this.dynamicRightDividerCells.forEach((e=>e.classList.remove("right-divider"))),this.dynamicRightDividerCells.clear(),this.dynamicLeftDividerCells.forEach((e=>e.classList.remove("left-divider"))),this.dynamicLeftDividerCells.clear(),this.dynamicHideRightBorderCells.forEach((e=>e.classList.remove("hide-right-border"))),this.dynamicHideRightBorderCells.clear(),this.previouslyStyledCells.clear()}updatePinnedPosition(e,t,i){e&&(e.style.position="sticky",e.style.zIndex="1",e.style[t]=`${i}px`,this.previouslyStyledCells.add(e))}}vt([l()],pt.prototype,"host",void 0),vt([l()],pt.prototype,"columnStructureModel",void 0),vt([l()],pt.prototype,"paddingX",void 0),vt([l()],pt.prototype,"vegaTableRenderInputController",void 0),vt([h()],pt.prototype,"pageResizeObserverSlimmer",void 0),vt([c("componentDidLoad")],pt.prototype,"componentDidLoad",null),vt([c("componentDidRender")],pt.prototype,"componentDidRender",null),vt([c("watchColumnStructureModel")],pt.prototype,"watchColumnStructureModel",null);var bt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ut 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)",ve.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,s=this.dragToIndex,a=this.isDragging&&null!=o&&o!==s,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(),a&&null!=o&&r&&(null===(i=(t=this.entry).onDragDrop)||void 0===i||i.call(t,{status:"end",options:{fromIndex:o,fromItem:r,toIndex:s,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);ve.removeZIndex(e,"top")}this.activePointerId=null,this.activeItem=null,this.isDragging=!1,this.dragFromIndex=null,this.dragToIndex=null,this.currentOverItem=null,this.currentOverIndex=null,this.activeItemHeight=0,this.cachedItemDraggableMap=new WeakMap,this.cachedItems=[]}getContainer(){return this.entry.container()}queryItems(){const e=this.getContainer();return e?Array.from(e.querySelectorAll(this.entry.itemSelector)):[]}getItems(){return this.cachedItems.length>0?this.cachedItems:this.queryItems()}getItemIndex(e){return this.getItems().indexOf(e)}getVisualElement(e){const t=this.cachedItemDraggableMap.get(e);return t?t.visualElement:this.resolveVisualElement(e)}resolveVisualElement(e){var t,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 s=null,a=!o;for(const t of e.composedPath())if(t instanceof HTMLElement&&(!s&&t.matches(i)&&(s=t),!a&&o&&t.matches(o)&&(a=!0),s&&a))break;return!s||t&&!a?null:s}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,s)=>{o!==this.activeItem&&(this.getVisualElement(o).style.transform=(e<t?s>e&&s<=t:s>=t&&s<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 s=this.getVisualElement(e).getBoundingClientRect(),a=t>s.top+s.height/2;return i>o?a?i:i-1:a?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)>=ut.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}}))}}ut.DRAG_THRESHOLD=4,bt([c("connectedCallback")],ut.prototype,"connectedCallback",null),bt([c("disconnectedCallback")],ut.prototype,"disconnectedCallback",null),bt([c("componentDidLoad")],ut.prototype,"componentDidLoad",null);var ft=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class gt extends n{constructor(){super(...arguments),this.draggableElementSlimmer=he(gt,ut,[{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)}}}ft([l()],gt.prototype,"rowDraggable",void 0),ft([l()],gt.prototype,"host",void 0),ft([l()],gt.prototype,"vegaTableDataSourceController",void 0),ft([l()],gt.prototype,"isTemplateRenderMode",void 0),ft([l()],gt.prototype,"vegaTableBodyRenderer",void 0),ft([l()],gt.prototype,"vegaTableSortController",void 0),ft([l()],gt.prototype,"rowDragDropEventEmitter",void 0),ft([h()],gt.prototype,"draggableElementSlimmer",void 0),ft([c("connectedCallback")],gt.prototype,"connectedCallback",null),ft([c("disconnectedCallback")],gt.prototype,"disconnectedCallback",null),ft([c("componentDidLoad")],gt.prototype,"componentDidLoad",null),ft([c("watchRowDraggable")],gt.prototype,"watchRowDraggable",null);var wt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const mt=class{constructor(e){s(this,e),this.vegaChange=a(this,"vegaChange",7),this.change=a(this,"change",7),this.vegaRowClick=a(this,"vegaRowClick",7),this.rowClick=a(this,"rowClick",7),this.vegaRowExpand=a(this,"vegaRowExpand",7),this.rowExpand=a(this,"rowExpand",7),this.vegaSelectChange=a(this,"vegaSelectChange",7),this.selectChange=a(this,"selectChange",7),this.vegaSelectAllChange=a(this,"vegaSelectAllChange",7),this.selectAllChange=a(this,"selectAllChange",7),this.vegaRowSelect=a(this,"vegaRowSelect",7),this.rowSelect=a(this,"rowSelect",7),this.vegaRowSelectAll=a(this,"vegaRowSelectAll",7),this.rowSelectAll=a(this,"rowSelectAll",7),this.vegaRowDragDrop=a(this,"vegaRowDragDrop",7),this.rowDragDrop=a(this,"rowDragDrop",7),this.globalSlimmers={},this.translationSlimmer=new de,this.vegaTableRenderModeController=new at,this.vegaTableColumnStructureModelController=new dt,this.vegaTableRenderInputController=new ht,this.vegaTablePinnedRenderer=new pt,this.vegaTableRenderer=new Fe,this.vegaTableHeaderRenderer=new Pe,this.vegaTableBodyRenderer=new Ie,this.vegaTableRowRenderer=new ot,this.vegaTableCellRenderer=new Ce,this.vegaTableBodyColSpanController=new Ee,this.vegaTablePaginationRenderer=new Be,this.vegaTableScrollContainerRenderer=new Ve,this.vegaTableRowSelectionController=new Le,this.vegaTableDataSourceController=new Ae,this.vegaTablePaginationController=new Xe,this.vegaTableEditableController=new Ue,this.vegaTableSortController=new Ze,this.vegaTableColGroupRenderer=new Qe,this.vegaTableChildrenController=new tt,this.vegaTableRowDraggableController=new gt,this.vegaTableExpandRowController=new Oe,this.pageResizeObserverSlimmer=new se,this.rowSelectionNotifySlimmer=ae(mt,"rowSelection","watchRowSelection"),this.expandableRowsNotifySlimmer=ae(mt,"expandableRows","watchExpandableRows"),this.hasExpandableRowNotifySlimmer=ae(mt,"hasExpandableRow","watchHasExpandableRow"),this.paddingXNotifySlimmer=ae(mt,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=ae(mt,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=ae(mt,"scrollConfig","watchScrollConfig"),this.eventsPrevent=new re([B,_,K],(()=>this.host)),this.changeEventEmitter=le(mt,B),this.selectChangeEventEmitter=le(mt,V),this.selectAllChangeEventEmitter=le(mt,$),this.rowClickEventEmitter=le(mt,F),this.rowExpandEventEmitter=le(mt,G),this.rowDragDropEventEmitter=le(mt,X),this.rowDividerNotifySlimmer=ae(mt,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=ae(mt,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=ae(mt,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=ae(mt,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=ae(mt,"currentData","watchCurrentData"),this.rowDraggableNotifySlimmer=ae(mt,"rowDraggable","watchRowDraggable"),this.vegaComponentUsageRuntimeMetricsSlimmer=new b(rt),this.rowSelectEventEmitter=le(mt,H),this.rowSelectAllEventEmitter=le(mt,U),this.selectedRowKeySet=new ye(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new ye(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 ye(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.expandableRows=[],this.hasExpandableRow=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDraggable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key",this.sortConfig={type:"multiple"},this.showEditError=!1}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(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 v()}async setSelection(e){}async startRowEditMode(e){}async stopRowEditMode(e){}async stopAllRowEditMode(){}async getRowData(e){return v(e)}async getRowsData(){return v()}async getFormRef(e){return v(e)}async addNewRow(e={}){return v(e)}async saveEditRow(e){return v(e)}async saveAllEditRows(){}async getEditingRowsKey(){return v()}async removeRow(e){}render(){return p(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"]}}};wt([u()],mt.prototype,"globalSlimmers",void 0),wt([h()],mt.prototype,"translationSlimmer",void 0),wt([h()],mt.prototype,"vegaTableRenderModeController",void 0),wt([h()],mt.prototype,"vegaTableColumnStructureModelController",void 0),wt([h()],mt.prototype,"vegaTableRenderInputController",void 0),wt([h()],mt.prototype,"vegaTablePinnedRenderer",void 0),wt([h()],mt.prototype,"vegaTableRenderer",void 0),wt([h()],mt.prototype,"vegaTableHeaderRenderer",void 0),wt([h()],mt.prototype,"vegaTableBodyRenderer",void 0),wt([h()],mt.prototype,"vegaTableRowRenderer",void 0),wt([h()],mt.prototype,"vegaTableCellRenderer",void 0),wt([h()],mt.prototype,"vegaTableBodyColSpanController",void 0),wt([h()],mt.prototype,"vegaTablePaginationRenderer",void 0),wt([h()],mt.prototype,"vegaTableScrollContainerRenderer",void 0),wt([h()],mt.prototype,"vegaTableRowSelectionController",void 0),wt([h()],mt.prototype,"vegaTableDataSourceController",void 0),wt([h()],mt.prototype,"vegaTablePaginationController",void 0),wt([h()],mt.prototype,"vegaTableEditableController",void 0),wt([h()],mt.prototype,"vegaTableSortController",void 0),wt([h()],mt.prototype,"vegaTableColGroupRenderer",void 0),wt([h()],mt.prototype,"vegaTableChildrenController",void 0),wt([h()],mt.prototype,"vegaTableRowDraggableController",void 0),wt([h()],mt.prototype,"vegaTableExpandRowController",void 0),wt([h()],mt.prototype,"pageResizeObserverSlimmer",void 0),wt([h()],mt.prototype,"rowSelectionNotifySlimmer",void 0),wt([h()],mt.prototype,"expandableRowsNotifySlimmer",void 0),wt([h()],mt.prototype,"hasExpandableRowNotifySlimmer",void 0),wt([h()],mt.prototype,"paddingXNotifySlimmer",void 0),wt([h()],mt.prototype,"rowClickableNotifySlimmer",void 0),wt([h()],mt.prototype,"scrollConfigNotifySlimmer",void 0),wt([h()],mt.prototype,"eventsPrevent",void 0),wt([h()],mt.prototype,"changeEventEmitter",void 0),wt([h()],mt.prototype,"selectChangeEventEmitter",void 0),wt([h()],mt.prototype,"selectAllChangeEventEmitter",void 0),wt([h()],mt.prototype,"rowClickEventEmitter",void 0),wt([h()],mt.prototype,"rowExpandEventEmitter",void 0),wt([h()],mt.prototype,"rowDragDropEventEmitter",void 0),wt([h()],mt.prototype,"rowDividerNotifySlimmer",void 0),wt([h()],mt.prototype,"columnDividerNotifySlimmer",void 0),wt([h()],mt.prototype,"densityNotifySlimmer",void 0),wt([h()],mt.prototype,"isTemplateRenderModeNotifySlimmer",void 0),wt([h()],mt.prototype,"currentDataNotifySlimmer",void 0),wt([h()],mt.prototype,"rowDraggableNotifySlimmer",void 0),wt([h()],mt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),wt([h()],mt.prototype,"rowSelectEventEmitter",void 0),wt([h()],mt.prototype,"rowSelectAllEventEmitter",void 0),mt.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}table:not(.show-edit-error) *::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none;visibility:collapse}@media (min-width: 320px){col.S\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column;visibility:visible}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column;visibility:visible}}:host(.is-group-table) .vega-table-scrollable-container{border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-width:1px;border-style:solid}:host(.is-group-table.density-relaxed) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-default) .vega-table-scrollable-container{border-radius:12px}:host(.is-group-table.density-compact) .vega-table-scrollable-container{border-radius:4px}:host(.is-pinned-table) table{min-width:max-content}.draggable-col{min-width:16px;width:16px}';var yt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const xt=class{constructor(e){s(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new re([B],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new b}render(){return Q(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return r(this)}};yt([u()],xt.prototype,"globalSlimmers",void 0),yt([h()],xt.prototype,"childChangeEventPrevent",void 0),yt([h()],xt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),xt.style=":host{display:contents}";const Rt=(e,t)=>e&&Z(e)?`v-hidden ${e}:${t}`:"";var St=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ct extends pe{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"}]})}}St([l()],Ct.prototype,"host",void 0),St([l({writable:!0})],Ct.prototype,"density",void 0),St([l({writable:!0})],Ct.prototype,"columnDivider",void 0),St([l({writable:!0})],Ct.prototype,"clickable",void 0);var kt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class jt extends pe{constructor(){super({parent:"vega-table-row",subStates:[{subStateName:"checked",parentStateName:"checked"},{subStateName:"expanded",parentStateName:"expanded"},{subStateName:"striped",parentStateName:"striped"},{subStateName:"rowDivider",parentStateName:"rowDivider"}]})}}kt([l({writable:!0})],jt.prototype,"checked",void 0),kt([l({writable:!0})],jt.prototype,"expanded",void 0),kt([l({writable:!0})],jt.prototype,"striped",void 0),kt([l({writable:!0})],jt.prototype,"rowDivider",void 0);var Et=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Dt 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)}}Et([l()],Dt.prototype,"host",void 0),Et([l({writable:!0})],Dt.prototype,"renderInput",void 0),Et([c("componentWillRender")],Dt.prototype,"componentWillRenderInput",null),Et([c("connectedCallback")],Dt.prototype,"connectRenderInputObserver",null),Et([c("disconnectedCallback")],Dt.prototype,"disconnectRenderInputObserver",null);var Ot=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const Tt=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new Ct,this.vegaTableRowStateSubscriber=new jt,this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new Dt(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,s,a,r,l;const n=Rt(this.breakpoint,"v-table-cell"),d=(()=>{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})(),c=this.getCellOverflowClass(),h=[n,d,"vega-table-cell"];return be.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||h.push("break-word"),(null===(t=this.renderInput)||void 0===t?void 0:t.isRightStartPinned)&&h.push("left-divider"),(null===(i=this.renderInput)||void 0===i?void 0:i.isLeftEndPinned)&&h.push("right-divider"),((null===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd)||(null===(a=this.renderInput)||void 0===a?void 0:a.isViewEnd))&&h.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"]),"aria-colspan":(null!==(r=this.colSpan)&&void 0!==r?r:0)>1?String(this.colSpan):null},e("td",{class:k(h),part:"cell",colSpan:(null!==(l=this.colSpan)&&void 0!==l?l:0)>1?this.colSpan:null,onMouseEnter:this.onMouseEnter.bind(this),onMouseLeave:this.onMouseLeave.bind(this),style:{width:this.width}},e("div",{class:c},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)}};Ot([u()],Tt.prototype,"globalSlimmers",void 0),Ot([h()],Tt.prototype,"vegaTableCellStateController",void 0),Ot([h()],Tt.prototype,"vegaTableRowStateSubscriber",void 0),Ot([h()],Tt.prototype,"pageResizeObserverSlimmer",void 0),Ot([h()],Tt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ot([h()],Tt.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),Tt.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 Lt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Mt extends n{render(){return e("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked,striped:this.striped},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},e("td",null),e("td",{colSpan:this.colSpan,key:`${Oe.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("div",{class:"expanded-row-slot-inner"},e("slot",null))),e("td",null))}}Lt([l()],Mt.prototype,"host",void 0),Lt([l()],Mt.prototype,"rowKey",void 0),Lt([l()],Mt.prototype,"expanded",void 0),Lt([l()],Mt.prototype,"checked",void 0),Lt([l()],Mt.prototype,"colSpan",void 0),Lt([l()],Mt.prototype,"striped",void 0);var At=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Nt 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 It(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function Wt(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}At([l()],Nt.prototype,"host",void 0),At([l()],Nt.prototype,"rowKey",void 0),At([l({writable:!0})],Nt.prototype,"expanded",void 0),At([c("connectedCallback")],Nt.prototype,"connectedCallback",null),At([c("disconnectedCallback")],Nt.prototype,"disconnectedCallback",null);var Pt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class zt extends n{connectedCallback(){this.rowSelectionObserver=new S(It.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),g.register(m,this.rowSelectionObserver)}disconnectedCallback(){g.unregister(m,this.rowSelectionObserver)}}Pt([l({writable:!0})],zt.prototype,"checked",void 0),Pt([l()],zt.prototype,"host",void 0),Pt([l()],zt.prototype,"rowKey",void 0),Pt([c("connectedCallback")],zt.prototype,"connectedCallback",null),Pt([c("disconnectedCallback")],zt.prototype,"disconnectedCallback",null);var Bt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class _t extends pe{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"}]})}}Bt([l()],_t.prototype,"host",void 0),Bt([l({writable:!0})],_t.prototype,"withMultipleSelection",void 0),Bt([l({writable:!0})],_t.prototype,"withRowDraggable",void 0),Bt([l()],_t.prototype,"vegaTableExpandRowColSpanController",void 0);var Kt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Vt 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])).reduce(((e,t)=>{var i;const o=null!==(i=t.colSpan)&&void 0!==i?i:1;return e+(o>1?o:1)}),0)}}Kt([l()],Vt.prototype,"host",void 0),Kt([l({writable:!0})],Vt.prototype,"colSpan",void 0),Kt([l()],Vt.prototype,"withMultipleSelection",void 0),Kt([l()],Vt.prototype,"withRowDraggable",void 0),Kt([c("componentWillLoad")],Vt.prototype,"componentWillLoad",null),Kt([c("watchCurrentBreakpoint")],Vt.prototype,"watchCurrentBreakpoint",null),Kt([c("watchWithMultipleSelection")],Vt.prototype,"watchWithMultipleSelection",null),Kt([c("watchWithRowDraggable")],Vt.prototype,"watchWithRowDraggable",null);var $t=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const Ft=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Mt,this.vegaTableExpandRowExpandController=new Nt,this.vegaTableExpandRowSelectionController=new zt,this.vegaTableExpandRowStateController=new _t,this.vegaTableExpandRowColSpanController=new Vt,this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=te(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}watchWithRowDraggable(){}render(){return p(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"]}}};$t([u()],Ft.prototype,"globalSlimmers",void 0),$t([h()],Ft.prototype,"vegaTableExpandRowRenderer",void 0),$t([h()],Ft.prototype,"vegaTableExpandRowExpandController",void 0),$t([h()],Ft.prototype,"vegaTableExpandRowSelectionController",void 0),$t([h()],Ft.prototype,"vegaTableExpandRowStateController",void 0),$t([h()],Ft.prototype,"vegaTableExpandRowColSpanController",void 0),$t([h()],Ft.prototype,"pageResizeObserverSlimmer",void 0),$t([h()],Ft.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ft.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 Gt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Xt extends pe{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(){ve.removeZIndex(this.tableFootRef,"base")}handleTableFootRefChange(e){this.tableFootRef&&ve.removeZIndex(this.tableFootRef,"base"),this.fixed&&ve.setZIndex(e,"base"),this.tableFootRef=e}}Gt([l()],Xt.prototype,"host",void 0),Gt([l({writable:!0})],Xt.prototype,"fixed",void 0),Gt([l({writable:!0})],Xt.prototype,"rowDivider",void 0),Gt([c("disconnectedCallback")],Xt.prototype,"handleDisconnectedCallback",null);var Ht=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const Ut=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableFootStateController=new Xt,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.childChangeEventPrevent=new re([B],(()=>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)}};Ht([u()],Ut.prototype,"globalSlimmers",void 0),Ht([h()],Ut.prototype,"vegaTableFootStateController",void 0),Ht([h()],Ut.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ht([h()],Ut.prototype,"childChangeEventPrevent",void 0),Ut.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 Yt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class qt extends pe{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}}}]})}}Yt([l({writable:!0})],qt.prototype,"density",void 0),Yt([l({writable:!0})],qt.prototype,"columnDivider",void 0);var Zt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Jt extends n{render(){var t;return e("td",{class:{"vega-table-cell":!0,"break-word":!be.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE"),[Rt(this.breakpoint,"v-table-cell")]:!0},colSpan:(null!==(t=this.colSpan)&&void 0!==t?t:0)>1?this.colSpan:null},e("div",{class:k(["vega-table-column",this.textAlign])},e("span",{class:"vega-table-column-label"},e("slot",null))))}}Zt([l()],Jt.prototype,"host",void 0),Zt([l()],Jt.prototype,"breakpoint",void 0),Zt([l()],Jt.prototype,"textAlign",void 0),Zt([l()],Jt.prototype,"colSpan",void 0);var Qt=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ei=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableFootCellStateController=new qt,this.vegaTableFootCellRenderer=new Jt,this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.currentBreakpoint=te()}render(){var t;return Q(e(o,{class:{[`density-${Y.formatCustom(this.density)}`]:!0,"column-divider":this.columnDivider},style:{width:this.width},"aria-colspan":(null!==(t=this.colSpan)&&void 0!==t?t:0)>1?String(this.colSpan):null},this.vegaTableFootCellRenderer.render()),this.host)}get host(){return r(this)}};Qt([u()],ei.prototype,"globalSlimmers",void 0),Qt([h()],ei.prototype,"vegaTableFootCellStateController",void 0),Qt([h()],ei.prototype,"vegaTableFootCellRenderer",void 0),Qt([h()],ei.prototype,"pageResizeObserverSlimmer",void 0),Qt([h()],ei.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ei.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 ti=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ii 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]}}))}}ti([l()],ii.prototype,"host",void 0),ti([l()],ii.prototype,"paddingX",void 0),ti([l()],ii.prototype,"selectionType",void 0),ti([l()],ii.prototype,"hasExpandableRow",void 0),ti([l()],ii.prototype,"draggable",void 0);var oi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class si extends pe{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}}}oi([l()],si.prototype,"host",void 0),oi([l({writable:!0})],si.prototype,"selectionType",void 0),oi([l({writable:!0})],si.prototype,"paddingX",void 0),oi([l({writable:!0})],si.prototype,"columnDivider",void 0),oi([l({writable:!0})],si.prototype,"density",void 0),oi([l({writable:!0})],si.prototype,"hasExpandableRow",void 0),oi([l({writable:!0})],si.prototype,"draggable",void 0);var ai=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ri=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableFootRowStateController=new si,this.vegaTableFootRowRenderer=new ii,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.pageResizeObserverSlimmer=new se,this.currentBreakpoint=te(),this.hasExpandableRow=!1}render(){return p(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)}};ai([u()],ri.prototype,"globalSlimmers",void 0),ai([h()],ri.prototype,"vegaTableFootRowStateController",void 0),ai([h()],ri.prototype,"vegaTableFootRowRenderer",void 0),ai([h()],ri.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ai([h()],ri.prototype,"pageResizeObserverSlimmer",void 0),ri.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 li=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ni extends pe{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}li([l()],ni.prototype,"host",void 0),li([l({writable:!0})],ni.prototype,"fixed",void 0);var di=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ci=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new ni,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.headCellEventPrevent=new re([B],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&ve.removeZIndex(this.tableHeadRef,"base"),this.fixed&&ve.setZIndex(e,"base"),this.tableHeadRef=e}}connectedCallback(){this.tableHeadRef&&this.fixed&&ve.setZIndex(this.tableHeadRef,"base")}disconnectedCallback(){ve.removeZIndex(this.tableHeadRef,"base")}render(){return 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)}};di([u()],ci.prototype,"globalSlimmers",void 0),di([h()],ci.prototype,"vegaTableHeadStateController",void 0),di([h()],ci.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),di([h()],ci.prototype,"headCellEventPrevent",void 0),ci.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 hi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class vi extends pe{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}}}]})}}hi([l({writable:!0})],vi.prototype,"density",void 0),hi([l({writable:!0})],vi.prototype,"columnDivider",void 0);var pi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class bi extends n{render(){if(!this.sorter)return;const{icon:t,color:i}=bi.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"}))}}bi.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"}},pi([l()],bi.prototype,"sorter",void 0),pi([l()],bi.prototype,"sortOrder",void 0);var ui=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class fi 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-")))}}ui([l()],fi.prototype,"host",void 0),ui([l({writable:!0})],fi.prototype,"sortOrder",void 0),ui([l()],fi.prototype,"sortConfig",void 0),ui([c("disconnectedCallback")],fi.prototype,"disconnectedCallback",null),ui([c("componentWillLoad")],fi.prototype,"componentWillLoad",null);var gi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const wi=class{constructor(e){s(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=le(wi,z),this.vegaTableHeadCellStateController=new vi,this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.sortIconRenderer=new bi,this.vegaTableHeadCellSortConfigController=new fi,this.vegaTableRenderInputConsumerSlimmer=new Dt(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=be.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,s,a,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":!be.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===(s=this.renderInput)||void 0===s?void 0:s.isNoPinnedEnd),"right-divider":null===(a=this.renderInput)||void 0===a?void 0:a.isLeftEndPinned,"left-divider":null===(r=this.renderInput)||void 0===r?void 0:r.isRightStartPinned,[Rt(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>'}}),gi([u()],wi.prototype,"globalSlimmers",void 0),gi([h()],wi.prototype,"clickEventEmitter",void 0),gi([h()],wi.prototype,"vegaTableHeadCellStateController",void 0),gi([h()],wi.prototype,"pageResizeObserverSlimmer",void 0),gi([h()],wi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gi([h()],wi.prototype,"sortIconRenderer",void 0),gi([h()],wi.prototype,"vegaTableHeadCellSortConfigController",void 0),gi([h()],wi.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),wi.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 mi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class yi 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,B,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;q(t)&&t!==this.checkedAll&&g.notify(y,{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}}mi([l()],yi.prototype,"host",void 0),mi([l()],yi.prototype,"paddingX",void 0),mi([l()],yi.prototype,"selectionType",void 0),mi([l()],yi.prototype,"hideSelectAll",void 0),mi([l()],yi.prototype,"selectAllDisabled",void 0),mi([l()],yi.prototype,"checkedAll",void 0),mi([l()],yi.prototype,"hasExpandableRow",void 0),mi([l()],yi.prototype,"draggable",void 0),mi([l()],yi.prototype,"isEmptyTable",void 0),mi([l()],yi.prototype,"isTemplateRenderMode",void 0),mi([l()],yi.prototype,"renderInput",void 0),mi([c("connectedCallback")],yi.prototype,"connectedCallback",null),mi([c("disconnectedCallback")],yi.prototype,"disconnectedCallback",null),mi([c("componentDidLoad")],yi.prototype,"componentDidLoad",null);var xi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ri extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){g.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new S(Wt.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),g.register(y,this.rowSelectionAllObserver)}}xi([l()],Ri.prototype,"host",void 0),xi([l({writable:!0})],Ri.prototype,"checkedAll",void 0),xi([c("connectedCallback")],Ri.prototype,"connectedCallback",null),xi([c("disconnectedCallback")],Ri.prototype,"disconnectedCallback",null);var Si=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ci extends pe{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}}}Si([l()],Ci.prototype,"host",void 0),Si([l({writable:!0})],Ci.prototype,"hasExpandableRow",void 0),Si([l({writable:!0})],Ci.prototype,"selectionType",void 0),Si([l({writable:!0})],Ci.prototype,"paddingX",void 0),Si([l({writable:!0})],Ci.prototype,"columnDivider",void 0),Si([l({writable:!0})],Ci.prototype,"density",void 0),Si([l({writable:!0})],Ci.prototype,"isTemplateRenderMode",void 0),Si([l({writable:!0})],Ci.prototype,"isEmptyTable",void 0),Si([l({writable:!0})],Ci.prototype,"draggable",void 0);var ki=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ji=class{constructor(e){s(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new Ci,this.vegaTableHeadRowRenderer=new yi,this.vegaTableHeadRowController=new Ri,this.headCellEventPrevent=new re([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.vegaTableRenderInputConsumerSlimmer=new Dt(N),this.currentBreakpoint=te(),this.hasExpandableRow=!1}render(){return p(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)}};ki([u()],ji.prototype,"globalSlimmers",void 0),ki([h()],ji.prototype,"vegaTableHeadRowStateController",void 0),ki([h()],ji.prototype,"vegaTableHeadRowRenderer",void 0),ki([h()],ji.prototype,"vegaTableHeadRowController",void 0),ki([h()],ji.prototype,"headCellEventPrevent",void 0),ki([h()],ji.prototype,"pageResizeObserverSlimmer",void 0),ki([h()],ji.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ki([h()],ji.prototype,"vegaTableRenderInputConsumerSlimmer",void 0),ji.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 Ei=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Di 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,B,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>'}}),Ei([l()],Di.prototype,"host",void 0),Ei([l()],Di.prototype,"rowKey",void 0),Ei([l()],Di.prototype,"checked",void 0),Ei([l()],Di.prototype,"clickable",void 0),Ei([l()],Di.prototype,"clicked",void 0),Ei([l()],Di.prototype,"expanded",void 0),Ei([l()],Di.prototype,"paddingX",void 0),Ei([l()],Di.prototype,"expandable",void 0),Ei([l()],Di.prototype,"hasExpandableRow",void 0),Ei([l()],Di.prototype,"vegaClick",void 0),Ei([l()],Di.prototype,"selectionType",void 0),Ei([l()],Di.prototype,"draggable",void 0),Ei([l()],Di.prototype,"vegaTableRowSelectionController",void 0),Ei([l()],Di.prototype,"vegaTableRowExpandController",void 0),Ei([l()],Di.prototype,"vegaTableRowClickController",void 0),Ei([l()],Di.prototype,"expandEventEmitter",void 0),Ei([c("connectedCallback")],Di.prototype,"connectedCallback",null);var Oi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ti 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(y,this.rowSelectionAllObserver),g.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new S(Wt.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),g.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new S(Wt.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),g.register(m,this.rowSelectionObserver)}}Oi([l()],Ti.prototype,"host",void 0),Oi([l()],Ti.prototype,"selectionType",void 0),Oi([l()],Ti.prototype,"rowKey",void 0),Oi([l({writable:!0})],Ti.prototype,"checked",void 0),Oi([c("connectedCallback")],Ti.prototype,"connectedCallback",null),Oi([c("disconnectedCallback")],Ti.prototype,"disconnectedCallback",null);var Li=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Mi 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(Wt.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),g.register(w,this.rowExpandObserver)}}Li([l()],Mi.prototype,"host",void 0),Li([l()],Mi.prototype,"rowKey",void 0),Li([l()],Mi.prototype,"expandable",void 0),Li([l({writable:!0})],Mi.prototype,"expanded",void 0),Li([l()],Mi.prototype,"vegaTableRowRenderer",void 0),Li([c("connectedCallback")],Mi.prototype,"connectedCallback",null),Li([c("disconnectedCallback")],Mi.prototype,"disconnectedCallback",null);var Ai=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ni extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){g.unregister(x,this.rowClickObserver)}handleRowClick(){O.call(E.getSubject(this.vegaTableRowRenderer.getParentTableRef(),L),{host:this.host,rowKey:this.rowKey,checked:!this.checked}).defaultPrevented||(g.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey}))}initRowClickObserver(){this.rowClickObserver=new S(It.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),g.register(x,this.rowClickObserver)}}Ai([l()],Ni.prototype,"host",void 0),Ai([l()],Ni.prototype,"rowKey",void 0),Ai([l({writable:!0})],Ni.prototype,"clicked",void 0),Ai([l()],Ni.prototype,"checked",void 0),Ai([l()],Ni.prototype,"selectionType",void 0),Ai([l()],Ni.prototype,"vegaClick",void 0),Ai([l()],Ni.prototype,"vegaTableRowSelectionController",void 0),Ai([l()],Ni.prototype,"clickEventEmitter",void 0),Ai([l()],Ni.prototype,"vegaTableRowRenderer",void 0),Ai([c("connectedCallback")],Ni.prototype,"connectedCallback",null),Ai([c("disconnectedCallback")],Ni.prototype,"disconnectedCallback",null);var Ii=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Wi extends pe{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)}}Ii([l()],Wi.prototype,"host",void 0),Ii([l({writable:!0})],Wi.prototype,"expandable",void 0),Ii([l({writable:!0})],Wi.prototype,"hasExpandableRow",void 0),Ii([l({writable:!0})],Wi.prototype,"clickable",void 0),Ii([l({writable:!0})],Wi.prototype,"paddingX",void 0),Ii([l({writable:!0})],Wi.prototype,"selectionType",void 0),Ii([l({writable:!0})],Wi.prototype,"columnDivider",void 0),Ii([l({writable:!0})],Wi.prototype,"density",void 0),Ii([l({writable:!0})],Wi.prototype,"draggable",void 0),Ii([l()],Wi.prototype,"rowKey",void 0),Ii([c("watchSelectionType")],Wi.prototype,"watchSelectionType",null),Ii([c("componentWillLoad")],Wi.prototype,"handleComponentWillLoad",null);var Pi=function(e,t,i,o){var s,a=arguments.length,r=a<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--)(s=e[l])&&(r=(a<3?s(r):a>3?s(t,i,r):s(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const zi=class{constructor(e){s(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.vegaExpand=a(this,"vegaExpand",7),this.expand=a(this,"expand",7),this.globalSlimmers={},this.vegaTableRowRenderer=new Di,this.vegaTableRowSelectionController=new Ti,this.vegaTableRowExpandController=new Mi,this.vegaTableRowClickController=new Ni,this.vegaTableRowStateController=new Wi,this.clickEventEmitter=le(zi,z),this.expandEventEmitter=le(zi,K),this.checkboxValueChangeEventPrevent=new re([z],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new se,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.checkedNotifySlimmer=ae(zi,"checked","watchChecked"),this.expandedNotifySlimmer=ae(zi,"expanded","watchExpanded"),this.stripedNotifySlimmer=ae(zi,"striped","watchStriped"),this.rowDividerNotifySlimmer=ae(zi,"rowDivider","watchRowDivider"),this.currentBreakpoint=te(),this.hasExpandableRow=!1,this.draggable=!1}watchSelectionType(){}watchChecked(){}watchExpanded(){}watchStriped(){}watchRowDivider(){}render(){return p(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"]}}};Pi([u()],zi.prototype,"globalSlimmers",void 0),Pi([h()],zi.prototype,"vegaTableRowRenderer",void 0),Pi([h()],zi.prototype,"vegaTableRowSelectionController",void 0),Pi([h()],zi.prototype,"vegaTableRowExpandController",void 0),Pi([h()],zi.prototype,"vegaTableRowClickController",void 0),Pi([h()],zi.prototype,"vegaTableRowStateController",void 0),Pi([h()],zi.prototype,"clickEventEmitter",void 0),Pi([h()],zi.prototype,"expandEventEmitter",void 0),Pi([h()],zi.prototype,"checkboxValueChangeEventPrevent",void 0),Pi([h()],zi.prototype,"pageResizeObserverSlimmer",void 0),Pi([h()],zi.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Pi([h()],zi.prototype,"checkedNotifySlimmer",void 0),Pi([h()],zi.prototype,"expandedNotifySlimmer",void 0),Pi([h()],zi.prototype,"stripedNotifySlimmer",void 0),Pi([h()],zi.prototype,"rowDividerNotifySlimmer",void 0),zi.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{mt as vega_table,xt as vega_table_body,Tt as vega_table_cell,Ft as vega_table_expand_row,Ut as vega_table_foot,ei as vega_table_foot_cell,ri as vega_table_foot_row,ci as vega_table_head,wi as vega_table_head_cell,ji as vega_table_head_row,zi as vega_table_row}
@@ -1 +0,0 @@
1
- import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-526e3634.js";import{e as s,f as n}from"./p-3a68b729.js";import{d as r,c as i}from"./p-02841589.js";import{L as o}from"./p-6e1ab235.js";import{i as a}from"./p-19c42e30.js";import{T as c}from"./p-b438e68b.js";import{g as l}from"./p-8b5d3a52.js";import{V as h}from"./p-3e09aeed.js";import{c as u}from"./p-a841cf13.js";import{f as d}from"./p-528748fa.js";var p,f;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(p||(p={}));class g{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(f||(f={}));class x extends g{}const w=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.dtoName}};var A,O,m,y;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT",t.DELETE_SELECTED_CONTENT="DELETE_SELECTED_CONTENT"}(A||(A={}));class E{constructor(){this.isFlushable=!1}}function S(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[r(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}function T(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}class N{constructor(){this.classNameToBeAdded=""}filterAnnotations(t){const e=t.customStyle;return e?(this.extractAndDeleteMatchedStyles(e),0===Object.keys(e).length&&delete t.customStyle,t):t}filterAndDeleteStyles(t,e){const s=new Set(e);return this.extractAndDeleteMatchedStyles(t)&&this.classNameToBeAdded&&s.add(this.classNameToBeAdded),{styles:t,classNames:Array.from(s)}}refillStyles(t){this.classNameToBeAdded&&t.classList.remove(this.classNameToBeAdded);const e=S(t),s=Object.assign(Object.assign({},this.stylesToBeFiltered),e),n=Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("");t.setAttribute("style",n)}canFilter(t){return!1}canRefill(t,e){return!1}toCssText(){return""}get alwaysFilter(){return!1}extractAndDeleteMatchedStyles(t){let e=!1;const s=this.stylesToBeFiltered;if(t&&s){const n=Object.keys(s);for(const r of n)t[r]===s[r]&&(delete t[r],e=!0)}return e}buildCssTextForStyles(t,e){return`${`.${N.RTE_CONTENT_CONTAINER_CLASS_NAME}`+(e?` .${e}`:` ${t}`)} { ${Object.entries(this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")} }`}convertStylesMapToCssText(t){return Object.entries(t||this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}isBlockOrNodeStylesMatchFilterStyles(t,e){const s=t.getStyles({standalone:!0});return this.isMatchFilterStyles(s,e)}isMatchFilterStyles(t,e){return(e&&e.length>0?e:Object.keys(this.stylesToBeFiltered)).every((e=>t[e]===this.stylesToBeFiltered[e]))}}N.RTE_CONTENT_CONTAINER_CLASS_NAME="vega-rte-content",function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(O||(O={}));class b extends g{}class C{static isTextBlock(t){return t===this.RTE_TEXT_BLOCK_CLASS_NAME}static isCodeBlock(t){return"RTECodeBlock"===t}static isListBlock(t){return"RTEListBlock"===t}static isListItemBlock(t){return"RTEListItemBlock"===t}static isTextNode(t){return t===this.RTE_TEXT_NODE_CLASS_NAME}static isLinkNode(t){return this.isTextNode(t.dtoName)&&!!t.getAnnotationByType(O.LINK)}static isCodeNode(t){if(this.isTextNode(t.dtoName)){const e=t.getAnnotationByType(O.CODE);return!!e&&e.code}return!1}static isImageNode(t){return"RTEImageNode"===t.dtoName}static isCodeBlockNode(t){return"RTECodeBlockNode"===t.dtoName}}C.RTE_TEXT_NODE_CLASS_NAME="RTETextNode",C.RTE_TEXT_BLOCK_CLASS_NAME="RTETextBlock";class v extends N{constructor(){super(...arguments),this.stylesToBeFiltered=R.getDefaultStyles(),this.elementTagName="a"}filterAnnotations(t){const e=t.link;return(null==e?void 0:e.customStyle)?(this.extractAndDeleteMatchedStyles(e.customStyle),0===Object.keys(e.customStyle).length&&delete e.customStyle,t):t}canFilter(t){return C.isLinkNode(t)}canRefill(t,e){return"RTETextNode"===t&&e.matches(this.elementTagName)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}filterLinkGroupInlineStyles(t){const e=t.style,s=t.class?t.class.split(" "):[],n=this.filterAndDeleteStyles(e,s);return n.styles&&Object.keys(n.styles).length>0&&(t.style=n.styles),n.classNames&&n.classNames.length>0&&(t.class=n.classNames.join(" ")),t.style&&0===Object.keys(t.style).length&&delete t.style,t}}class R extends g{constructor(t){super(),this.type=p.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}static getDefaultStyles(){return{color:"rgba(var(--v-text-link, 19, 98, 226, 1))"}}clone(){const t=new R("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){let s=this.toJsx(t,e);return(null==e?void 0:e.filterInlineStyles)&&(s=R.linkGroupFilterStylesStrategy.filterLinkGroupInlineStyles(s)),Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${i(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&Object.assign(s,R.getDefaultStyles()),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}}R.linkGroupFilterStylesStrategy=new v;class _ extends x{constructor(t){super(),this.type=f.ALIGNMENT,this.textAlign=t}static from(t){return[f.ALIGNMENT,new _(t)]}static getDefaultStyles(t){switch(t){case"right":case"center":case"justify":return{textAlign:t};case"left":default:return{textAlign:"left"}}}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new _(this.textAlign)}renderStyle(t){return(null==t?void 0:t.standalone)?_.getDefaultStyles(this.textAlign):null}}class j extends x{constructor(t){super(),this.type=f.INDENT,this.indent=Math.max(0,t)}static from(t){return[f.INDENT,new j(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new j(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class k{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof E?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}k.registry=new Map;class ${static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=k.get(t,e),n=()=>{const s=t instanceof E?t.type:t.constructor.name,n=$.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);o.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!$.get(t,e.constructor.name)}}$.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(m||(m={}));class L extends g{}class B extends L{constructor(t){super(),this.type=m.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[m.CUSTOM_ATTRIBUTE,new B(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new B(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(a)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class D extends L{constructor(t){super(),this.type=m.CUSTOM_CLASS,this.customClass=t}static from(t){return[m.CUSTOM_CLASS,new D(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new D(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class I extends L{constructor(t){super(),this.type=m.CUSTOM_STYLE,this.customStyle=t}static from(t){return[m.CUSTOM_STYLE,new I(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new I(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" ")}"`}}class M extends x{constructor(t){super(),this.type=f.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[f.INTERNAL_WRAPPER,new M(t)]}clone(){return new M(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class F{constructor(t){this.dtoName=t instanceof K?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof I)).map((e=>e.renderStyle(t))).filter(a);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoName?t instanceof x:t instanceof b}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}class H{static register(t,e){var s;const n=null!==(s=this.registry.get(t))&&void 0!==s?s:new Set;n.add(e),this.registry.set(t,n)}static getStrategies(t){var e;return Array.from(null!==(e=this.registry.get(t))&&void 0!==e?e:[])}static executeTheStrategyFilterAction(t,e,s){return this.getStrategies(t.dtoName).filter((e=>e.canFilter(t))).reduce(((t,e)=>e.filterAndDeleteStyles(t.styles,t.classNames)),{styles:e,classNames:s})}static executeTheStrategyRefillAction(t,e){this.getStrategies(t).filter((s=>s.canRefill(t,e))).forEach((t=>{t.refillStyles(e)}))}static generateAllStylesContent(t=!1){const e=[];return t&&(e.push("/* Font-face imports begin */\n"),e.push(Object.keys(c).map((t=>`@import url('${c[t].url}');\n`)).join(" ")),e.push("/* Font-face imports end */\n")),this.registry.forEach((t=>{t.forEach((t=>{const s=t.toCssText();s&&!e.includes(s)&&e.push(s)}))})),e.join(" ")}}H.registry=new Map,function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(y||(y={}));class P{constructor(t,e){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return I.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new F(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof D)).map((e=>e.renderClass(t))).filter(a).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(m.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return w.getDOMByEntity(this)}generateAttributeString(t,...e){var s;const n=new F(this),r=n.toJSON({standalone:!0},["textDecoration"]),i=this.annotationMap.get(m.CUSTOM_CLASS);let o=r,c=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=H.executeTheStrategyFilterAction(this,r,c);o=t.styles,c=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],c&&c.length>0?`class="${c.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${n.toCssText({standalone:!0},void 0,o)}"`:null,...e].filter(a);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof E?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=w.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const J=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof K)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof P))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class K{constructor(t){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=J.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(a)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return _.from(e);case"indent":return j.from(e);case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return I.from(e);case"internalWrapper":return M.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);a(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(f.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof R||t instanceof M))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof x||t instanceof L)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=w.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof K?t.getFirstNode():t}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new F(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof x||t instanceof D)).map((e=>e.renderClass(t))).filter(a).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(m.CUSTOM_ATTRIBUTE)}generateAttributeString(t,...e){var s;const n=new F(this),r=n.toJSON({standalone:!0}),i=this.annotationMap.get(m.CUSTOM_CLASS);let o=r,c=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=H.executeTheStrategyFilterAction(this,r,c);o=t.styles,c=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],c&&c.length>0?`class="${c.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${n.toCssText({standalone:!0},void 0,o)}"`:null,...e].filter(a);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof E?$.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();if(e instanceof R||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply)this.doAnnotationActionApply(t);else{const e=$.get(t.constructor.name,this.constructor.name);e&&e.execute(t,this)}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class U{}class G extends U{constructor(){super(...arguments),this.doSplit=!0}}class W extends g{constructor(t){super(),this.type=p.SELECTION_RANGE,this.range=t}clone(){return new W(this.range)}}const z="700",V="bold",X="italic",q="underline",Y="line-through";class Q extends b{constructor(t){super(),this.type=O.STRIKETHROUGH,this.strikethrough=t}static from(t){return[O.STRIKETHROUGH,new Q(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new Q(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class Z extends b{constructor(t){super(),this.type=O.UNDERLINE,this.underline=t}static from(t){return[O.UNDERLINE,new Z(t)]}toJSON(){return{underline:this.underline}}clone(){return new Z(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class tt extends b{constructor(t){super(),this.type=O.ITALIC,this.italic=t}static from(t){return[O.ITALIC,new tt(t)]}toJSON(){return{italic:this.italic}}clone(){return new tt(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class et extends b{constructor(t){super(),this.type=O.BOLD,this.bold=t}static from(t){return[O.BOLD,new et(t)]}toJSON(){return{bold:this.bold}}clone(){return new et(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class st extends b{constructor(t,e=!0){super(),this.type=O.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[O.CODE,new st(t,e)]}static getDefaultStyles(){return{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}}toJSON(){return{code:this.code}}clone(){return new st(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?st.getDefaultStyles():null}}const nt={key:"black",light:"#111128",dark:"#E3E3E8"},rt=[nt,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],it="​",ot=[{key:"title"},{key:"subtitle"},{key:"heading-1"},{key:"heading-2"},{key:"heading-3"},{key:"paragraph"}],at=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]],ct=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),lt=22;class ht extends b{constructor(t){super(),this.type=O.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[O.TEXT_COLOR,new ht(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new ht(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:h.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return rt.find((e=>e.key===t))||rt[0]}}class ut extends b{constructor(t,e=!0){super(),this.type=O.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[O.LINK,new ut(t,e)]}toJSON(){return{link:this.link}}clone(){return new ut(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class dt extends U{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new R(this.groupKey)}}class pt extends U{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class ft{execute(t,e){return o.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(m.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new I(s.removeStyles(e)))}createNewParagraph(t){const e=J.getRTEBlockClass("paragraph");if(e)return e.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.dtoName?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}getDOMByEntity(t){return w.getDOMByEntity(t)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class gt extends E{constructor(t){super(),this.type=A.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class xt extends ft{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(p.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof G&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new gt(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,a=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},c=i&&w.getEntityByDOM(i),l=o&&w.getEntityByDOM(o);if(c&&c.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,c,l]=a(e.text,r,i);return this.setApplyTargetNode(c),[o,c,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=a(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class wt extends G{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new et(this.bold)}}class At extends g{constructor(){super(...arguments),this.type=p.CLEAR_FORMATTING,this.items=[O.BOLD,O.ITALIC,O.UNDERLINE,O.STRIKETHROUGH,O.TEXT_COLOR,O.CODE,m.CUSTOM_STYLE]}}class Ot extends G{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new At}}class mt extends G{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new st(this.code)}}class yt extends U{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class Et extends G{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new tt(this.italic)}}class St extends G{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,a(n)&&(this.doSplit=n)}toAnnotation(){return new ut(this.link)}}class Tt extends G{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new Q(this.strikethrough)}}class Nt extends G{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new Z(this.underline)}}class bt extends ft{handleAction(t,e){const s=t.toAnnotation();if(t instanceof yt)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof At))return s instanceof b||s instanceof W?(t instanceof St&&(a(t.newText)&&(e.text=t.newText),e.parent.apply(new dt(t.link.groupKey,[e],t.type))),t instanceof mt&&this.handleAction(new Ot,e),t instanceof wt&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof Et&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof Nt||t instanceof Tt)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class Ct extends E{constructor(){super(...arguments),this.type=A.DELETE_LINK_GROUP}}class vt extends ft{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new Ct)}}class Rt extends E{constructor(t){super(),this.type=A.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class _t extends ft{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let a=s.text;if(n===r&&i===o&&t)a=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,c=r.parentElement,l=e&&w.getEntityByDOM(e),h=c&&w.getEntityByDOM(c);let u=0,d=s.text.length;l&&l===s?(u=i,d=n===r?o:d):h&&h===s&&(d=o),a=s.text.slice(0,u)+t+s.text.slice(d)}s.apply(new Rt(a))}}}class jt extends g{constructor(t){super(),this.type=O.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new jt(e);return o.groupId=t.groupId,o.child=s?jt.from(s)[1]:void 0,o.customAttribute=i?B.from(i)[1]:void 0,o.customClass=r?D.from(r)[1]:void 0,o.customStyle=n?I.from(n)[1]:void 0,[O.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new jt(this.htmlTag);return r.groupId=this.groupId,r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}renderProps(){var t,e,s;return Object.assign(Object.assign({},null===(t=this.customAttribute)||void 0===t?void 0:t.render()),{style:null===(e=this.customStyle)||void 0===e?void 0:e.renderStyle(),class:null===(s=this.customClass)||void 0===s?void 0:s.renderClass().join(" ")})}toJSON(){var t,e,s,n;return{inlineHtml:u({htmlTag:this.htmlTag,groupId:this.groupId,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class kt extends ft{handleAction(t,e){const s=e.parent.getAnnotationByType(p.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class $t extends ft{handleAction(t,e){const s=e.parent.getAnnotationByType(p.LINK_GROUP);if(s){const t=e.annotationMap.get(O.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(p.LINK_GROUP)}}e.annotationMap.delete(O.LINK)}}class Lt extends b{constructor(t){super(),this.type=O.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[O.PLAIN_TEXT,new Lt(t)]}clone(){return new Lt(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return this.plainText?{plainText:this.plainText}:void 0}}class Bt extends G{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new ht(this.textColor)}}class Dt extends P{constructor(t,e,s,n){super(t,n),this.dtoName=Dt.dtoName,this.type=y.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new Dt(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new dt(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(a))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return et.from(e);case"italic":return tt.from(e);case"underline":return Z.from(e);case"strikethrough":return Q.from(e);case"code":return st.from(e,n);case"textColor":return ht.from(e);case"link":return ut.from(e,n);case"inlineHtml":return jt.from(e);case"plainText":return Lt.from(e)}return P.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof L||t instanceof jt)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(t){const e=this.getAnnotationByType(O.INLINE_HTML);return e?this.renderWithWrapperStr(e,t):this.renderTextStr(t)}cloneWithText(t){return new Dt(l(),t,this.parent,super.cloneAnnotations())}clone(t){return new Dt(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!(this.getAnnotationByType(O.INLINE_HTML)||this.text&&"​"!==this.text&&"\n"!==this.text)}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}getInlineHtmlTagAtDepth(t){const e=this.getInlineHtmlAnnotationAtDepth(t);return e?ct.has(e.htmlTag)?null:{htmlTag:e.htmlTag,attrStr:this.annotationAttrStr(e),groupId:e.groupId,annotation:e}:null}renderHtmlFromDepth(t,e){if(0===t)return this.toHtml(e);const s=this.getInlineHtmlAnnotationAtDepth(t);return s?this.renderWithWrapperStr(s,e):this.renderTextStr(e)}getInlineHtmlAnnotationAtDepth(t){let e=this.getAnnotationByType(O.INLINE_HTML);for(let s=0;s<t&&e;s++)e=e.child;return e}registerModifyStrategy(){const t=this.constructor.name;Dt.registerActionStrategyStatus[t]||(this.isContentEditable()&&($.register(A.UPDATE_TEXT,t,new vt),$.register(A.REPLACE_SELECTED_TEXT,t,new _t),$.register(A.LINK_GROUP_NODE_SPLIT,t,new kt),$.register(St.name,t,new bt)),$.register(G.name,t,new xt),$.register(A.DELETE_LINK_GROUP,t,new $t),$.register(wt.name,t,new bt),$.register(Ot.name,t,new bt),$.register(Et.name,t,new bt),$.register(Nt.name,t,new bt),$.register(Bt.name,t,new bt),$.register(Tt.name,t,new bt),$.register(mt.name,t,new bt),$.register(U.name,t,new bt),Dt.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(p.SELECTION_RANGE);if(t instanceof G&&t.doSplit&&e){const e=$.get(G.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){$.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof pt)return void this.syncUpSelectedNodes(t);s instanceof W||this.syncUpSelectedNodes(t);const n=$.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=$.get(U.name,Dt.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t,e){const{htmlTag:s,child:n}=t,r=this.annotationAttrStr(t);return n?`<${s}${r}>${this.renderWithWrapperStr(n,e)}</${s}>`:ct.has(s)?`<${s}${r}>`:this.text?`<${s}${r}>${this.renderTextStr(e)}</${s}>`:`<${s}${r}></${s}>`}annotationAttrStr(t){const{customAttribute:e,customClass:s,customStyle:n}=t,r=[...(null==e?void 0:e.toString())||[],null==s?void 0:s.toString(),null==n?void 0:n.toString()].filter(a);return r.length>0?` ${r.join(" ")}`:""}renderTextStr(t){var e;const s=(null===(e=this.getAnnotationByType(O.CODE))||void 0===e?void 0:e.code)?"code":"span",n=super.generateAttributeString(t);return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${s}${n}>${"code"===s?T(this.text):this.text}</${s}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(O.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof b&&!(t instanceof ut)&&!(t instanceof Lt)||t instanceof L)).length}}Dt.registerActionStrategyStatus={},Dt.htmlTag="span",Dt.dtoName="RTETextNode";class It extends E{constructor(t){super(),this.type=A.APPEND_CHILDREN,this.entityToBeAppended=t}}const Mt={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},Ft=Object.assign(Object.assign({},Mt),{marginTop:"0px",marginBottom:"0px"}),Ht={paragraph:Ft,title:Object.assign(Object.assign({},Mt),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"}),subtitle:Object.assign(Object.assign({},Mt),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"}),"heading-1":Object.assign(Object.assign({},Ft),{fontSize:"22px",lineHeight:"24px",minHeight:"24px"}),"heading-2":Object.assign(Object.assign({},Ft),{fontSize:"20px",lineHeight:"24px",minHeight:"24px"}),"heading-3":Object.assign(Object.assign({},Ft),{fontSize:"18px"}),"heading-4":Object.assign({},Ft),"heading-5":Object.assign(Object.assign({},Ft),{fontSize:"14px"}),"heading-6":Object.assign(Object.assign({},Ft),{fontSize:"12px"})};class Pt extends x{constructor(t){super(),this.type=f.TEXT_STYLE,this.textStyle=t}static from(t){return[f.TEXT_STYLE,new Pt(t)]}static getDefaultStyles(t){return t?Ht[t]:null}toJSON(){return{textStyle:this.textStyle}}clone(){return new Pt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.textStyle?Pt.getDefaultStyles(this.textStyle):null}}class Jt extends U{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Pt(this.textStyle)}}class Kt extends ft{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new wt(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new yt(O.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class Ut extends E{constructor(t,...e){super(),this.type=A.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class Gt extends E{constructor(t){super(),this.type=A.REPLACE_CHILD_NODES,this.newChildNodes=t}}class Wt extends ft{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const o=s.children.slice(0,i),a=s.children.slice(i+1);t.isContentEditable()?(n&&o.push(t.cloneWithText(n)),r&&a.unshift(t.cloneWithText(r))):e>0?o.push(t):a.unshift(t),s.apply(new Gt(o));const c=s.cloneWithNodes(a);return s.parent.apply(new Ut(s,c)),c}}}}class zt extends ft{handleAction(t,e){e.children=[],e.apply(new It(t.newChildNodes))}}class Vt extends E{constructor(t){super(),this.type=A.DELETE_CHILDREN,this.entityToBeRemoved=t}}class Xt extends ft{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new It(t)),"image"!==e.type&&this.transferLinkGroups(t,e),s.parent.apply(new Vt(s))}}transferLinkGroups(t,e){t.forEach((t=>{if(!(t instanceof Dt))return;const s=t.getAnnotationByType(O.LINK);s&&e.apply(new dt(s.link.groupKey,[t],"link"))}))}}class qt extends ft{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new Dt(l(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const a=s.children.slice(0,o),c=s.children.slice(o+1);t.isContentEditable()?(r&&a.push(t.cloneWithText(r)),i&&c.unshift(t.cloneWithText(i))):e>0?a.push(t):c.unshift(t),this.mergeLineBreakNodes(a,n,c,s)}return n}}mergeLineBreakNodes(t,e,s,n){if(0===s.length||s[0]&&""===s[0].text){const e=t[t.length-1];s.push(new Dt(l(),"\n",n,e&&new Map(e.annotationMap)))}n.apply(new Gt([...t,e,...s]))}}class Yt extends ft{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new Dt(l(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Vt(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new Dt(l(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new Gt([...t,e,...s]))}}class Qt extends E{constructor(t,...e){super(),this.type=A.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class Zt extends E{constructor(t,e){super(),this.type=A.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}class te extends U{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new _(this.textAlign)}}class ee extends ft{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class se extends U{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new j(this.indent)}}class ne extends K{constructor(t,e,s){super(t),this.dtoName=ne.dtoName,this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=ne.isAcceptableTextStyle(e)?new Map([Pt.from(e)]):new Map([Pt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new ne(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const s=J.getRTENodeClass(t.type);if(s)return s.from(t,r,e)})).filter(a),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?Pt.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof St&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(O.LINK),r=s.getAnnotationByType(O.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),s=super.generateAttributeString(t),n=this.getChildrenHtml(t);return super.shouldRenderAsInternalWrapper()?n:[`<${e}${s}>`,n,`</${e}>`].join("")}cloneWithNodes(t){const e=new ne(l(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new It(t)),e}clone(t){const e=new ne(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(t){const e=this.getAnnotationByType(p.LINK_GROUP);let s=this.renderGroupedNodesAtDepth(this.children,0,t);return e&&this.children.length>0&&(s=this.generateLinkHtml(e,s,t)),s}doAnnotationActionApply(t){const e=$.get(t.constructor.name,ne.name);e&&e.execute(t,this)}renderGroupedNodesAtDepth(t,e,s){var n;let r="",i=0;for(;i<t.length;){const o=t[i].getInlineHtmlTagAtDepth(e);if(!(null==o?void 0:o.groupId)){r+=t[i].renderHtmlFromDepth(e,s),i++;continue}let a=i+1;for(;a<t.length&&(null===(n=t[a].getInlineHtmlTagAtDepth(e))||void 0===n?void 0:n.groupId)===o.groupId;)a++;if(a===i+1)r+=t[i].renderHtmlFromDepth(e,s);else{const n=this.renderGroupedNodesAtDepth(t.slice(i,a),e+1,s);r+=`<${o.htmlTag}${o.attrStr}>${n}</${o.htmlTag}>`}i=a}return r}generateLinkHtml(t,e,s){e="";let n=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(O.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(O.LINK):null;if(i){if(n.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,filterInlineStyles:null==s?void 0:s.filterInlineStyles});e+=[`<a${r?` ${r}`:""}>`,this.renderGroupedNodesAtDepth(n,0,s),"</a>"].join(""),n=[]}}else e+=this.children[r].toHtml(s)}return e}}$.register(Jt.name,ne.name,new Kt),$.register(te.name,ne.name,new ee),$.register(se.name,ne.name,new class extends ft{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),$.register(dt.name,ne.name,new class extends ft{handleAction(t,e){let s=e.getAnnotationByType(p.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(p.LINK_GROUP,s)}}}),$.register(A.UNLINK_LINK_GROUP,ne.name,new class extends ft{handleAction(t,e){const s=e.getAnnotationByType(p.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(p.LINK_GROUP))}}),$.register(A.SPLIT_BLOCK_WITH_NODE,ne.name,new Wt),$.register(A.REPLACE_CHILD_NODES,ne.name,new zt),$.register(A.MERGE_TWO_BLOCKS_NODES,ne.name,new Xt),$.register(A.LINE_BREAK_SINGLE_BLOCK,ne.name,new qt),$.register(A.LINE_BREAK_MULTIPLE_BLOCKS,ne.name,new Yt),$.register(A.INSERT_IMAGE_TO_BLOCK,ne.name,new class extends ft{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new Ut(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new Qt(e,r));else{const t=new Zt(s,n);e.apply(t),e.parent.apply(new Ut(e,r))}}}),$.register(A.TRANSFORM_LIST_BLOCK,ne.name,new class extends ft{handleAction(t,e){const s=e.parent,n=s.createList(t.listType),r=t.selectedBlocks,i=r.map((t=>s.toListItem(t)));n.apply(new It(i)),s.apply(new Ut(t.selectedBlocks[0],n)),r.forEach((t=>{t.parent.apply(new Vt(t))}))}}),ne.dtoName="RTETextBlock";class re extends ft{getPreviousNode(t){const e=t.parent,s=e.children.indexOf(t);if(s>0)return e.children[s-1];if(e.parent){const t=this.getPreviousBlock(e);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.dtoName}}class ie extends E{constructor(t,e){super(),this.isFlushable=!0,this.type=A.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class oe extends U{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new W(this.range)}}class ae extends P{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(ae.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${ae.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return d(t,`.${ae.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}ae.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",ae.DECORATOR_NODE_CLASS="v-internal-decorator-node";class ce extends N{constructor(){super(...arguments),this.stylesToBeFiltered=ce.STYLES,this.elementTagName="pre code"}canFilter(t){return C.isCodeBlockNode(t)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}ce.STYLES={boxSizing:"border-box",color:"rgba(var(--v-text-primary, 32, 54, 69, 1))",textAlign:"left",fontFamily:'"Roboto Mono"',fontWeight:"400",lineHeight:"22px",fontSize:"16px",whiteSpace:"pre-wrap",minHeight:"22px",tabSize:"2px"};class le extends ae{constructor(t,e,s,n){super(t),this.dtoName=le.dtoName,this.type=y.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s,this.annotationMap.set(m.CUSTOM_STYLE,new I(ce.STYLES))}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(t){return`<code${this.generateAttributeString(t)}>${this.text}</code>`}clone(t){return new le(this.id,this.text,this.language,t)}doAnnotationActionApply(t){$.executeTheStrategy(t,this)}doModifyActionApply(t){$.executeTheStrategy(t,this)}}$.register(A.UPDATE_CODE_BLOCK,le.name,new class extends ft{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),$.register(oe.name,le.name,new class extends ft{handleAction(t,e){e.annotationMap.set(p.SELECTION_RANGE,t.toAnnotation())}}),le.dtoName="RTECodeBlockNode";var he;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(he||(he={}));class ue extends ft{handleAction(t,e){e.children=e.children.filter((e=>e!==t.entityToBeRemoved)),0===e.children.length&&"parent"in e&&e.parent&&(e.isListItemBlock()&&e.nestList&&e.nestList.length||e.parent.apply(new Vt(e)))}}class de extends N{constructor(){super(...arguments),this.stylesToBeFiltered=de.STYLES,this.elementTagName="pre"}canFilter(t){return C.isCodeBlock(t.dtoName)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}de.STYLES={backgroundColor:"rgba(var(--v-bg-secondary, 245, 247, 247, 1))",padding:"12px"};class pe extends K{constructor(t,e,s){super(t),this.dtoName=pe.dtoName,this.type="code-block",this.annotationMap=new Map([I.from(de.STYLES)]),this.children=[new le(`${t}-1`,e,s,this)]}static from(t){return new pe(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(t){const{language:e=he["Plain Text"]}=this.children[0];return`<pre data-language="${e}"${super.generateAttributeString(t)}>${this.children.map((e=>e.toHtml(t)))}</pre>`}clone(t){const e=pe.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof E&&$.executeTheStrategy(n,this),n.isFlushable){const n=w.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(p.SELECTION_RANGE)}}$.register(A.DELETE_CODE_BLOCK,pe.name,new class extends re{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new Vt(e));const i=t?w.getDOMByEntity(t):null;if(0===n.children.length){const s=ne.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:""}]});e.parent.apply(new It([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const a=w.getDOMByEntity(o);if(a){const o=e.getSubjectFromParentNodeByEventId(a,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),$.register(A.DELETE_CHILDREN,pe.name,new ue),$.register(A.SWITCH_OUT_FROM_CODE_BLOCK,pe.name,new class extends ft{handleAction(s,r){const{content:i,language:o}=s,a=i.split("\n"),c=new ie(a.slice(0,a.length-2).join("\n"),o);c.isFlushable=!1,r.children[0].apply(c);const h=ne.from({id:l(),type:"paragraph",nodes:[{id:l(),text:"",type:"text"}]});r.parent.apply(new Ut(r,h));const u=w.getDOMByEntity(r);if(u){const s=e.getSubjectFromParentNodeByEventId(u,n);s&&t.notify(s,{node:h.children[0]})}}}),$.register(A.INSERT_IMAGE_TO_BLOCK,pe.name,new class extends ft{handleAction(t,e){e.parent.apply(new Ut(e,t.imageBlockToBeInserted))}}),pe.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element",pe.dtoName="RTECodeBlock";export{nt as $,$ as A,x as B,m as C,Xt as D,pt as E,f as F,D as G,te as H,Ut as I,b as J,y as K,L,E as M,O as N,Gt as O,ct as P,re as Q,Dt as R,Zt as S,Jt as T,Rt as U,at as V,ue as W,V as X,z as Y,S as Z,rt as _,K as a,X as a0,Y as a1,q as a2,Pt as a3,C as a4,_ as a5,st as a6,v as a7,de as a8,ce as a9,k as aa,he as ab,ot as ac,it as ad,St as ae,ie as af,oe as ag,Bt as ah,lt as ai,wt as aj,Et as ak,Nt as al,et as am,Ot as an,mt as ao,Tt as ap,se as aq,T as ar,ne as b,F as c,ft as d,It as e,P as f,Qt as g,p as h,A as i,U as j,Vt as k,B as l,J as m,N as n,ae as o,pe as p,le as q,I as r,w as s,H as t,Kt as u,ee as v,qt as w,Yt as x,Wt as y,zt as z}