@globalpayments/vega 2.92.0 → 2.93.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 (503) hide show
  1. package/dist/cjs/{app-globals-2f326662.js → app-globals-f7ad9275.js} +13 -9
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-b9a5b3e2.js → child-nodes-event-prevent-slimmer-e67ee84c.js} +1 -1
  3. package/dist/cjs/{code-block-6435d641.js → code-block-2f3d0f38.js} +41 -11
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-e4c9a5ba.js → component-value-history-controller-slimmer.abstract-31d2c7aa.js} +72 -39
  5. package/dist/cjs/{content-state-96ec9114.js → content-state-13daf87a.js} +61 -7
  6. package/dist/cjs/{date-required-rule-8c9e312b.js → date-required-rule-e65ddd7d.js} +1 -1
  7. package/dist/cjs/{design-token-3548af29.js → design-token-47393cbb.js} +3 -3
  8. package/dist/cjs/{element-appender-slimmer-3bf69990.js → element-appender-slimmer-29c4ac60.js} +17 -8
  9. package/dist/cjs/{event-emit-slimmer-5bab10c2.js → event-emit-slimmer-d234a619.js} +1 -1
  10. package/dist/cjs/{form-field-controller-slimmer-e0efac05.js → form-field-controller-slimmer-3bfcf88c.js} +1 -1
  11. package/dist/cjs/{image-annotation-action-853f72c8.js → image-annotation-action-c2b163bb.js} +3 -3
  12. package/dist/cjs/image-extension-4e99b620.js +39 -0
  13. package/dist/cjs/index.cjs.js +22 -19
  14. package/dist/cjs/{inject-keyboard-manager-0dccff1a.js → inject-keyboard-manager-4b2ebbe4.js} +1 -1
  15. package/dist/cjs/{internal-calendar-period-factory-6187ec4c.js → internal-calendar-period-factory-7a0ecdb1.js} +1 -1
  16. package/dist/cjs/{internal-translation-controller-48ebfd0f.js → internal-translation-controller-31f2b057.js} +4 -0
  17. package/dist/cjs/{internal-vega-event-manager-7196a847.js → internal-vega-event-manager-13c4012b.js} +2 -1
  18. package/dist/cjs/{keyboard-manager-dfe8d924.js → keyboard-manager-c78b46bd.js} +1 -1
  19. package/dist/cjs/{keyboard-manager-slimmer-4a2560a1.js → keyboard-manager-slimmer-d350c931.js} +1 -1
  20. package/dist/cjs/{link-extension-28d95849.js → link-extension-455c02b3.js} +3 -3
  21. package/dist/cjs/loader.cjs.js +15 -14
  22. package/dist/cjs/{month-view-generator-2e59b188.js → month-view-generator-006562dc.js} +1 -1
  23. package/dist/cjs/{public-rules-8727c42c.js → public-rules-c59eba88.js} +7 -7
  24. package/dist/cjs/{range-5cb3d1e4.js → range-bf80fa40.js} +1 -1
  25. package/dist/cjs/{replace-selected-text-action-a31563ed.js → replace-selected-text-action-a80f5a6a.js} +1 -1
  26. package/dist/cjs/{responsive-format-facade-98b89142.js → responsive-format-facade-1af54330.js} +1 -1
  27. package/dist/cjs/{rich-text-editor-required-rule-8e4d577d.js → rich-text-editor-required-rule-1085c71a.js} +1 -1
  28. package/dist/cjs/{split-cell-operation-9e3ab88d.js → split-cell-operation-2fa5c9e4.js} +3 -3
  29. package/dist/cjs/{state-border-formatter-626b0a14.js → state-border-formatter-501f6645.js} +1 -1
  30. package/dist/cjs/{string-format-strategy.abstract-981f43e1.js → string-format-strategy.abstract-a02bf002.js} +1 -1
  31. package/dist/cjs/{string-input-formatter-slimmer-fc4a0ba5.js → string-input-formatter-slimmer-9cca6151.js} +1 -1
  32. package/dist/cjs/{string-mask-strategy-b47fa159.js → string-mask-strategy-4c174ebf.js} +2 -2
  33. package/dist/cjs/{style-formatter-baf18624.js → style-formatter-2c749500.js} +2 -2
  34. package/dist/cjs/{time-required-rule-e77d174f.js → time-required-rule-04994a5e.js} +1 -1
  35. package/dist/cjs/{token-extension-3aec039f.js → token-extension-d217914d.js} +1300 -14
  36. package/dist/cjs/{translation-slimmer-1e05769e.js → translation-slimmer-7fb6e94c.js} +1 -1
  37. package/dist/cjs/{type-guard-7ab48d6c.js → type-guard-1c3770d4.js} +1 -1
  38. package/dist/cjs/{valid-credit-card-number-rule-52ba9c67.js → valid-credit-card-number-rule-f719a8c6.js} +1 -1
  39. package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
  40. package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  44. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  45. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  46. package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
  47. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  48. package/dist/cjs/vega-button.cjs.entry.js +7 -7
  49. package/dist/cjs/vega-calendar_5.cjs.entry.js +11 -11
  50. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  51. package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
  52. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  53. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  54. package/dist/cjs/vega-code-block.cjs.entry.js +12 -12
  55. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  56. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
  57. package/dist/cjs/vega-color-swatch.cjs.entry.js +5 -5
  58. package/dist/cjs/vega-combo-box.cjs.entry.js +19 -13
  59. package/dist/cjs/vega-date-picker_2.cjs.entry.js +17 -17
  60. package/dist/cjs/vega-dialog_2.cjs.entry.js +20 -9
  61. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-dropdown_5.cjs.entry.js +693 -195
  63. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  64. package/dist/cjs/{vega-event-id-df22d80e.js → vega-event-id-58afed7a.js} +2 -0
  65. package/dist/cjs/vega-field-label.cjs.entry.js +5 -5
  66. package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
  67. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  68. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  69. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  70. package/dist/cjs/vega-form.cjs.entry.js +7 -7
  71. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  72. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  73. package/dist/cjs/vega-image-uploader.cjs.entry.js +9 -9
  74. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  75. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  76. package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
  77. package/dist/cjs/vega-input-phone-number.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
  79. package/dist/cjs/vega-input-select.cjs.entry.js +9 -9
  80. package/dist/cjs/vega-input.cjs.entry.js +9 -9
  81. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  82. package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
  83. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  84. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  85. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  86. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
  87. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  88. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  89. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
  90. package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
  91. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  92. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +472 -62
  93. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +4 -4
  94. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +8 -8
  95. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +11 -11
  96. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  97. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  98. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
  99. package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
  100. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  101. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  102. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  103. package/dist/cjs/vega-table_11.cjs.entry.js +911 -428
  104. package/dist/cjs/vega-textarea.cjs.entry.js +7 -9
  105. package/dist/cjs/vega-time-picker_2.cjs.entry.js +34 -14
  106. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  107. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  108. package/dist/cjs/vega.cjs.js +15 -14
  109. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +4 -1
  110. package/dist/collection/components/vega-combo-box/vega-combo-box.js +7 -1
  111. package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
  112. package/dist/collection/components/vega-dropdown/constants.js +1 -0
  113. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +9 -0
  114. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.js +97 -4
  115. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-select-all-controller.js +219 -0
  116. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +78 -13
  117. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +13 -1
  118. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +7 -0
  119. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +52 -1
  120. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +4 -1
  121. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +5 -0
  122. package/dist/collection/components/vega-dropdown/vega-dropdown.js +126 -1
  123. package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
  124. package/dist/collection/components/vega-hint/vega-hint.js +1 -1
  125. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +4 -1
  126. package/dist/collection/components/vega-modal/vega-modal.css +0 -1
  127. package/dist/collection/components/vega-modal/vega-modal.js +38 -0
  128. package/dist/collection/components/vega-rich-text-editor/assets/redo.js +1 -1
  129. package/dist/collection/components/vega-rich-text-editor/assets/undo.js +1 -1
  130. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-strategy.js +11 -5
  131. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-text-node-strategy.js +9 -4
  132. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.js +61 -5
  133. package/dist/collection/components/vega-rich-text-editor/dto/actions/paste-content-action.js +1 -0
  134. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +6 -1
  135. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-interceptors/blockquote-exit-on-enter-interceptor.js +61 -0
  136. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/block-transform-to-blockquote-strategy.js +40 -0
  137. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/remove-blockquote-strategy.js +20 -0
  138. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/actions/remove-blockquote-action.js +17 -0
  139. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/actions/transform-to-blockquote-action.js +19 -0
  140. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/assets/quote-left.js +4 -0
  141. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.js +47 -0
  142. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/blockquote-annotation.js +76 -0
  143. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.js +70 -0
  144. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/element-to-dto-strategies/blockquote-to-blockquote-block-strategy.js +53 -0
  145. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.js +41 -0
  146. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.js +21 -0
  147. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-toolbar-button-renderer.js +260 -0
  148. package/dist/collection/components/vega-rich-text-editor/extensions/image/image-extension.js +34 -0
  149. package/dist/collection/components/vega-rich-text-editor/extensions/image/type.js +1 -0
  150. package/dist/collection/components/vega-rich-text-editor/extensions/paste/assets/paste.js +3 -0
  151. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +144 -0
  152. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-constants.js +6 -0
  153. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +442 -0
  154. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +1 -1
  155. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -3
  156. package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +14 -0
  157. package/dist/collection/components/vega-rich-text-editor/public-api.js +3 -0
  158. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +1 -1
  159. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +1 -1
  160. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +385 -25
  161. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +69 -36
  162. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +59 -14
  163. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.js +6 -1
  164. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +28 -1
  165. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +1 -1
  166. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +1 -1
  167. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +1 -1
  168. package/dist/collection/components/vega-table/slimmers/controllers/dto/column-render-input-model.js +32 -0
  169. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.js +77 -0
  170. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.js +121 -0
  171. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-cell-renderer.js +39 -14
  172. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +207 -7
  173. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +16 -3
  174. package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +24 -4
  175. package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-col-span-controller.js +11 -2
  176. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +5 -1
  177. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +22 -1
  178. package/dist/collection/components/vega-table/vega-table.css +5 -0
  179. package/dist/collection/components/vega-table/vega-table.js +5 -0
  180. package/dist/collection/components/vega-text/vega-text.js +1 -1
  181. package/dist/collection/components/vega-textarea/vega-textarea.js +1 -3
  182. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +4 -0
  183. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +4 -0
  184. package/dist/collection/components/vega-time-picker/vega-time-picker.js +39 -0
  185. package/dist/collection/constants/ui.js +1 -0
  186. package/dist/collection/global/scripts/before-vega-load.js +6 -0
  187. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -1
  188. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
  189. package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +11 -4
  190. package/dist/collection/helpers/translation/locales/en.js +4 -0
  191. package/dist/collection/helpers/ui/element-appender.js +5 -2
  192. package/dist/esm/{app-globals-5e0d319a.js → app-globals-9950d055.js} +13 -9
  193. package/dist/esm/{child-nodes-event-prevent-slimmer-f24618c5.js → child-nodes-event-prevent-slimmer-96c14f5a.js} +1 -1
  194. package/dist/esm/{code-block-b71b2aa4.js → code-block-ae2337c2.js} +41 -12
  195. package/dist/esm/{component-value-history-controller-slimmer.abstract-282df6e5.js → component-value-history-controller-slimmer.abstract-b1ee1b8e.js} +72 -39
  196. package/dist/esm/{content-state-909099f8.js → content-state-c3b85ae6.js} +61 -7
  197. package/dist/esm/{date-required-rule-15edb04a.js → date-required-rule-e06115f8.js} +1 -1
  198. package/dist/esm/{design-token-cb5ed6b9.js → design-token-4e682056.js} +3 -3
  199. package/dist/esm/{element-appender-slimmer-e41120ee.js → element-appender-slimmer-a4485ef6.js} +17 -8
  200. package/dist/esm/{event-emit-slimmer-03deba18.js → event-emit-slimmer-db4a82e0.js} +1 -1
  201. package/dist/esm/{form-field-controller-slimmer-cfe1d8a7.js → form-field-controller-slimmer-a1c7b28c.js} +1 -1
  202. package/dist/esm/{image-annotation-action-98232dc4.js → image-annotation-action-4c77d314.js} +3 -3
  203. package/dist/esm/image-extension-7108c27d.js +37 -0
  204. package/dist/esm/index.js +19 -19
  205. package/dist/esm/{inject-keyboard-manager-13cc77ab.js → inject-keyboard-manager-e8ddb78d.js} +1 -1
  206. package/dist/esm/{internal-calendar-period-factory-c3d70f3b.js → internal-calendar-period-factory-6f19d767.js} +1 -1
  207. package/dist/esm/{internal-translation-controller-8e8a514a.js → internal-translation-controller-09b8bd13.js} +4 -0
  208. package/dist/esm/{internal-vega-event-manager-75e5e3bb.js → internal-vega-event-manager-48690e5b.js} +2 -1
  209. package/dist/esm/{keyboard-manager-fe885db1.js → keyboard-manager-ec18721b.js} +1 -1
  210. package/dist/esm/{keyboard-manager-slimmer-61d4c79b.js → keyboard-manager-slimmer-531ddb0e.js} +1 -1
  211. package/dist/esm/{link-extension-f1a3bea7.js → link-extension-74eaa826.js} +3 -3
  212. package/dist/esm/loader.js +15 -14
  213. package/dist/esm/{month-view-generator-85eecb95.js → month-view-generator-afd78ff8.js} +1 -1
  214. package/dist/esm/{public-rules-323bea4b.js → public-rules-5fce32a5.js} +7 -7
  215. package/dist/esm/{range-e63068d1.js → range-8f877dbf.js} +1 -1
  216. package/dist/esm/{replace-selected-text-action-c0817b2b.js → replace-selected-text-action-c9278a0f.js} +1 -1
  217. package/dist/esm/{responsive-format-facade-fb424f5b.js → responsive-format-facade-299e6304.js} +1 -1
  218. package/dist/esm/{rich-text-editor-required-rule-0edb8ba7.js → rich-text-editor-required-rule-3047bab0.js} +1 -1
  219. package/dist/esm/{split-cell-operation-93b4d775.js → split-cell-operation-98d58410.js} +3 -3
  220. package/dist/esm/{state-border-formatter-1a528ca4.js → state-border-formatter-da52b626.js} +1 -1
  221. package/dist/esm/{string-format-strategy.abstract-72fc98aa.js → string-format-strategy.abstract-a45b5ff7.js} +1 -1
  222. package/dist/esm/{string-input-formatter-slimmer-b0c480d8.js → string-input-formatter-slimmer-4a032fed.js} +1 -1
  223. package/dist/esm/{string-mask-strategy-4e00c173.js → string-mask-strategy-37e53e48.js} +2 -2
  224. package/dist/esm/{style-formatter-5c1bea8d.js → style-formatter-3d5ddfb1.js} +2 -2
  225. package/dist/esm/{time-required-rule-df500b14.js → time-required-rule-355b73d2.js} +1 -1
  226. package/dist/esm/{token-extension-32d1fa56.js → token-extension-ecfafe94.js} +1298 -15
  227. package/dist/esm/{translation-slimmer-60408f13.js → translation-slimmer-3ea56354.js} +1 -1
  228. package/dist/esm/{type-guard-91087018.js → type-guard-2bfb2c7b.js} +1 -1
  229. package/dist/esm/{valid-credit-card-number-rule-681ecb75.js → valid-credit-card-number-rule-52c6b029.js} +1 -1
  230. package/dist/esm/vega-accordion.entry.js +9 -9
  231. package/dist/esm/vega-app-footer.entry.js +3 -3
  232. package/dist/esm/vega-app-header-button.entry.js +9 -9
  233. package/dist/esm/vega-banner.entry.js +3 -3
  234. package/dist/esm/vega-box.entry.js +6 -6
  235. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  236. package/dist/esm/vega-button-circle.entry.js +9 -9
  237. package/dist/esm/vega-button-group_2.entry.js +4 -4
  238. package/dist/esm/vega-button-link.entry.js +4 -4
  239. package/dist/esm/vega-button.entry.js +7 -7
  240. package/dist/esm/vega-calendar_5.entry.js +11 -11
  241. package/dist/esm/vega-card.entry.js +5 -5
  242. package/dist/esm/vega-carousel.entry.js +6 -6
  243. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  244. package/dist/esm/vega-chip.entry.js +9 -9
  245. package/dist/esm/vega-code-block.entry.js +12 -12
  246. package/dist/esm/vega-color-picker.entry.js +5 -5
  247. package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
  248. package/dist/esm/vega-color-swatch.entry.js +5 -5
  249. package/dist/esm/vega-combo-box.entry.js +19 -13
  250. package/dist/esm/vega-date-picker_2.entry.js +17 -17
  251. package/dist/esm/vega-dialog_2.entry.js +20 -9
  252. package/dist/esm/vega-divider.entry.js +5 -5
  253. package/dist/esm/vega-dropdown_5.entry.js +695 -197
  254. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  255. package/dist/esm/{vega-event-id-d3017041.js → vega-event-id-270fe47e.js} +2 -1
  256. package/dist/esm/vega-field-label.entry.js +5 -5
  257. package/dist/esm/vega-file-uploader.entry.js +6 -6
  258. package/dist/esm/vega-flag-icon.entry.js +5 -5
  259. package/dist/esm/vega-flex.entry.js +6 -6
  260. package/dist/esm/vega-font.entry.js +5 -5
  261. package/dist/esm/vega-form.entry.js +7 -7
  262. package/dist/esm/vega-grid.entry.js +5 -5
  263. package/dist/esm/vega-icon.entry.js +5 -5
  264. package/dist/esm/vega-image-uploader.entry.js +9 -9
  265. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  266. package/dist/esm/vega-input-numeric.entry.js +9 -9
  267. package/dist/esm/vega-input-passcode.entry.js +9 -9
  268. package/dist/esm/vega-input-phone-number.entry.js +8 -8
  269. package/dist/esm/vega-input-range.entry.js +7 -7
  270. package/dist/esm/vega-input-select.entry.js +9 -9
  271. package/dist/esm/vega-input.entry.js +9 -9
  272. package/dist/esm/vega-item-toggle.entry.js +3 -3
  273. package/dist/esm/vega-left-nav_5.entry.js +10 -10
  274. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  275. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  276. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  277. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
  278. package/dist/esm/vega-pagination.entry.js +8 -8
  279. package/dist/esm/vega-popover_2.entry.js +11 -11
  280. package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
  281. package/dist/esm/vega-radio_2.entry.js +9 -9
  282. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  283. package/dist/esm/vega-rich-text-editor_4.entry.js +472 -62
  284. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +4 -4
  285. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +8 -8
  286. package/dist/esm/vega-rich-text-table-properties_3.entry.js +11 -11
  287. package/dist/esm/vega-segment-control.entry.js +3 -3
  288. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  289. package/dist/esm/vega-selection-tile_2.entry.js +6 -6
  290. package/dist/esm/vega-sidenav_3.entry.js +6 -6
  291. package/dist/esm/vega-signature-capture.entry.js +10 -10
  292. package/dist/esm/vega-stepper.entry.js +6 -6
  293. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  294. package/dist/esm/vega-table_11.entry.js +911 -428
  295. package/dist/esm/vega-textarea.entry.js +7 -9
  296. package/dist/esm/vega-time-picker_2.entry.js +34 -14
  297. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  298. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  299. package/dist/esm/vega.js +15 -14
  300. package/dist/sri/vega-sri-manifest.json +362 -358
  301. package/dist/types/components/vega-combo-box/types.d.ts +6 -1
  302. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +1 -0
  303. package/dist/types/components/vega-dropdown/constants.d.ts +1 -0
  304. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +2 -0
  305. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.d.ts +36 -0
  306. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-select-all-controller.d.ts +107 -0
  307. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +17 -0
  308. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +5 -0
  309. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +2 -0
  310. package/dist/types/components/vega-dropdown/types.d.ts +8 -0
  311. package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.d.ts +25 -0
  312. package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
  313. package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +4 -0
  314. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +48 -0
  315. package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +2 -1
  316. package/dist/types/components/vega-modal/vega-modal.d.ts +9 -1
  317. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.d.ts +14 -4
  318. package/dist/types/components/vega-rich-text-editor/dto/actions/paste-content-action.d.ts +7 -0
  319. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-interceptors/blockquote-exit-on-enter-interceptor.d.ts +34 -0
  320. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/block-transform-to-blockquote-strategy.d.ts +13 -0
  321. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/remove-blockquote-strategy.d.ts +13 -0
  322. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/actions/remove-blockquote-action.d.ts +14 -0
  323. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/actions/transform-to-blockquote-action.d.ts +18 -0
  324. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/assets/quote-left.d.ts +3 -0
  325. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.d.ts +9 -0
  326. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/blockquote-annotation.d.ts +48 -0
  327. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.d.ts +56 -0
  328. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/element-to-dto-strategies/blockquote-to-blockquote-block-strategy.d.ts +35 -0
  329. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.d.ts +31 -0
  330. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.d.ts +18 -0
  331. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-toolbar-button-renderer.d.ts +113 -0
  332. package/dist/types/components/vega-rich-text-editor/extensions/image/image-extension.d.ts +27 -0
  333. package/dist/types/components/vega-rich-text-editor/extensions/image/type.d.ts +13 -0
  334. package/dist/types/components/vega-rich-text-editor/extensions/paste/assets/paste.d.ts +3 -0
  335. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.d.ts +58 -0
  336. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-constants.d.ts +6 -0
  337. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-extension.d.ts +150 -0
  338. package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +7 -0
  339. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +3 -0
  340. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +114 -3
  341. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +22 -13
  342. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +10 -2
  343. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.d.ts +1 -0
  344. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.d.ts +6 -0
  345. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +4 -4
  346. package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.d.ts +1 -1
  347. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +1 -1
  348. package/dist/types/components/vega-table/interface.d.ts +18 -0
  349. package/dist/types/components/vega-table/slimmers/controllers/dto/column-render-input-model.d.ts +13 -0
  350. package/dist/types/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.d.ts +43 -0
  351. package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.d.ts +38 -0
  352. package/dist/types/components/vega-table/slimmers/renderers/vega-table-cell-renderer.d.ts +11 -2
  353. package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +4 -0
  354. package/dist/types/components/vega-table/slimmers/renderers/vega-table-row-renderer.d.ts +1 -0
  355. package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-row-state-subscriber.d.ts +1 -1
  356. package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +9 -0
  357. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
  358. package/dist/types/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.d.ts +9 -0
  359. package/dist/types/components/vega-table/vega-table.d.ts +2 -0
  360. package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.d.ts +1 -0
  361. package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.d.ts +1 -0
  362. package/dist/types/components/vega-time-picker/types.d.ts +7 -0
  363. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +11 -1
  364. package/dist/types/components.d.ts +80 -3
  365. package/dist/types/constants/ui.d.ts +1 -1
  366. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
  367. package/dist/types/helpers/translation/interface.d.ts +5 -0
  368. package/dist/types/helpers/ui/element-appender.d.ts +4 -1
  369. package/dist/types/types/components.type.d.ts +5 -1
  370. package/dist/vega/index.esm.js +1 -1
  371. package/dist/vega/{p-481601c0.entry.js → p-05f937c5.entry.js} +1 -1
  372. package/dist/vega/{p-970115d6.js → p-07562b9c.js} +1 -1
  373. package/dist/vega/{p-d0ce752f.entry.js → p-09d50f59.entry.js} +1 -1
  374. package/dist/vega/{p-22f73e6e.entry.js → p-0cb78838.entry.js} +1 -1
  375. package/dist/vega/p-0e607b44.js +1 -0
  376. package/dist/vega/{p-c8eaf91c.entry.js → p-0f1d6ceb.entry.js} +1 -1
  377. package/dist/vega/{p-70817cf5.js → p-140616fe.js} +1 -1
  378. package/dist/vega/{p-f70f7ad8.entry.js → p-1818f399.entry.js} +1 -1
  379. package/dist/vega/{p-802bf369.js → p-18a5e8bc.js} +1 -1
  380. package/dist/vega/{p-4d9061fb.js → p-19c42e30.js} +1 -1
  381. package/dist/vega/{p-d7369441.js → p-1efab41b.js} +1 -1
  382. package/dist/vega/{p-92823583.js → p-21e21f51.js} +1 -1
  383. package/dist/vega/{p-c0629528.entry.js → p-26c7fe8b.entry.js} +1 -1
  384. package/dist/vega/p-282b37cb.js +1 -0
  385. package/dist/vega/{p-c78aeaf3.entry.js → p-2dc5edd0.entry.js} +1 -1
  386. package/dist/vega/{p-228c5de8.js → p-2de61f1b.js} +1 -1
  387. package/dist/vega/{p-82279b03.entry.js → p-2de88b4a.entry.js} +1 -1
  388. package/dist/vega/{p-438b7404.entry.js → p-2fcc604c.entry.js} +1 -1
  389. package/dist/vega/{p-aa32f2f3.js → p-32a67ba1.js} +1 -1
  390. package/dist/vega/p-392e049c.entry.js +1 -0
  391. package/dist/vega/{p-a268a4fb.entry.js → p-3932f964.entry.js} +1 -1
  392. package/dist/vega/{p-f515d189.entry.js → p-3c9da3cd.entry.js} +1 -1
  393. package/dist/vega/{p-5829a66d.entry.js → p-3f7b10b9.entry.js} +1 -1
  394. package/dist/vega/{p-5545a235.entry.js → p-422d88ae.entry.js} +1 -1
  395. package/dist/vega/p-4256252c.js +3 -0
  396. package/dist/vega/{p-8f078d0d.entry.js → p-44439ecc.entry.js} +1 -1
  397. package/dist/vega/{p-68e16c70.entry.js → p-45e8424a.entry.js} +1 -1
  398. package/dist/vega/p-4c49b2e3.js +1 -0
  399. package/dist/vega/{p-71e2a3ec.js → p-4d9562bc.js} +1 -1
  400. package/dist/vega/p-4e1aa86f.js +1 -0
  401. package/dist/vega/p-4ef5c4a7.entry.js +1 -0
  402. package/dist/vega/{p-9440a8a5.entry.js → p-4f327808.entry.js} +1 -1
  403. package/dist/vega/{p-2def8e3e.js → p-5139e516.js} +1 -1
  404. package/dist/vega/{p-2e58d99e.entry.js → p-56c4e349.entry.js} +1 -1
  405. package/dist/vega/{p-b730bf6e.js → p-5dbfffcd.js} +1 -1
  406. package/dist/vega/p-5f377954.js +1 -1
  407. package/dist/vega/{p-916dfa7e.entry.js → p-615a2b8c.entry.js} +1 -1
  408. package/dist/vega/{p-625351a3.entry.js → p-63101cb4.entry.js} +1 -1
  409. package/dist/vega/{p-7798254d.entry.js → p-653a6dd8.entry.js} +1 -1
  410. package/dist/vega/{p-d20587b4.entry.js → p-66b7d1c7.entry.js} +1 -1
  411. package/dist/vega/{p-9219201a.entry.js → p-6712a9c7.entry.js} +1 -1
  412. package/dist/vega/p-698fbd73.js +1 -0
  413. package/dist/vega/p-6ad7144a.entry.js +1 -0
  414. package/dist/vega/{p-9fafc956.entry.js → p-6b1893f6.entry.js} +1 -1
  415. package/dist/vega/{p-93dfab05.js → p-6d40635e.js} +1 -1
  416. package/dist/vega/{p-b799fc1f.entry.js → p-73fd18d9.entry.js} +1 -1
  417. package/dist/vega/p-751a5cd6.entry.js +1 -0
  418. package/dist/vega/{p-f7739cbb.entry.js → p-7b93a756.entry.js} +1 -1
  419. package/dist/vega/{p-2314494a.entry.js → p-7c8e579e.entry.js} +1 -1
  420. package/dist/vega/{p-4953bb1a.js → p-7d54e9c1.js} +1 -1
  421. package/dist/vega/{p-590c8720.entry.js → p-832d1a72.entry.js} +1 -1
  422. package/dist/vega/p-846b1ab9.entry.js +1 -0
  423. package/dist/vega/p-88863658.js +1 -0
  424. package/dist/vega/{p-c2e0f8b7.entry.js → p-8c1a5fa4.entry.js} +1 -1
  425. package/dist/vega/{p-f0bc2bbb.js → p-8d27b9cc.js} +1 -1
  426. package/dist/vega/{p-f365601c.entry.js → p-944b43ce.entry.js} +1 -1
  427. package/dist/vega/{p-8d69b201.js → p-95d6c85f.js} +1 -1
  428. package/dist/vega/{p-9b1d718c.entry.js → p-99b699be.entry.js} +1 -1
  429. package/dist/vega/p-9a01be93.js +1 -0
  430. package/dist/vega/{p-53c76d9d.entry.js → p-9a472a04.entry.js} +1 -1
  431. package/dist/vega/{p-18413b62.entry.js → p-9cafbc26.entry.js} +1 -1
  432. package/dist/vega/p-a359e53c.js +1 -0
  433. package/dist/vega/p-a9a87b9a.js +1 -0
  434. package/dist/vega/p-acbba6da.entry.js +1 -0
  435. package/dist/vega/{p-56cf1a65.entry.js → p-ad35dea4.entry.js} +1 -1
  436. package/dist/vega/{p-06c2ce2c.entry.js → p-af98539f.entry.js} +1 -1
  437. package/dist/vega/{p-136226f8.js → p-afb96938.js} +1 -1
  438. package/dist/vega/{p-e160a727.entry.js → p-b042e3b4.entry.js} +1 -1
  439. package/dist/vega/{p-5beec481.js → p-b1ff70bf.js} +1 -1
  440. package/dist/vega/{p-9cdedcfb.entry.js → p-b39d4a88.entry.js} +1 -1
  441. package/dist/vega/{p-c78e8081.entry.js → p-b5bee669.entry.js} +1 -1
  442. package/dist/vega/p-b5f308ee.entry.js +1 -0
  443. package/dist/vega/{p-43c3848f.entry.js → p-bbabb1c8.entry.js} +1 -1
  444. package/dist/vega/p-bbf1f988.entry.js +1 -0
  445. package/dist/vega/{p-e9cee498.entry.js → p-c2d28797.entry.js} +1 -1
  446. package/dist/vega/{p-40501057.entry.js → p-c3c0e415.entry.js} +1 -1
  447. package/dist/vega/{p-5946fadf.js → p-c553d37e.js} +1 -1
  448. package/dist/vega/{p-f6bccb06.entry.js → p-c5ecbc53.entry.js} +1 -1
  449. package/dist/vega/{p-2353b64f.entry.js → p-c9c6daa6.entry.js} +1 -1
  450. package/dist/vega/p-cb81fc2a.entry.js +1 -0
  451. package/dist/vega/p-ccb9bf86.js +1 -0
  452. package/dist/vega/{p-e371738b.js → p-ccf7518b.js} +1 -1
  453. package/dist/vega/{p-8b9a8603.entry.js → p-cf8d5b3f.entry.js} +1 -1
  454. package/dist/vega/{p-30561e1d.entry.js → p-d3a36d19.entry.js} +1 -1
  455. package/dist/vega/{p-cd1844ad.entry.js → p-d44943e2.entry.js} +1 -1
  456. package/dist/vega/{p-d3c8b871.entry.js → p-d4bb6f93.entry.js} +1 -1
  457. package/dist/vega/p-d62b85ff.entry.js +1 -0
  458. package/dist/vega/{p-ce7e9515.entry.js → p-d7f32ccf.entry.js} +1 -1
  459. package/dist/vega/p-dca3278f.js +1 -0
  460. package/dist/vega/{p-37dffdf6.entry.js → p-ddd28a8e.entry.js} +1 -1
  461. package/dist/vega/{p-2da12975.entry.js → p-ddf03de1.entry.js} +1 -1
  462. package/dist/vega/p-e0ecafca.js +1 -0
  463. package/dist/vega/p-e33e1e90.js +1 -0
  464. package/dist/vega/{p-5038b6d7.entry.js → p-e410c4ad.entry.js} +1 -1
  465. package/dist/vega/{p-a361456d.js → p-e4309574.js} +1 -1
  466. package/dist/vega/p-e5187a86.entry.js +1 -0
  467. package/dist/vega/{p-fc5dfb52.entry.js → p-e86c6802.entry.js} +1 -1
  468. package/dist/vega/{p-e3803943.js → p-ef605271.js} +1 -1
  469. package/dist/vega/{p-45ab490c.js → p-f0d4c78c.js} +1 -1
  470. package/dist/vega/{p-e41d9d0e.entry.js → p-f2f22b5d.entry.js} +1 -1
  471. package/dist/vega/{p-b6ebfd5c.entry.js → p-f8a29127.entry.js} +1 -1
  472. package/dist/vega/{p-cd9fb2ca.entry.js → p-fbd3be00.entry.js} +1 -1
  473. package/dist/vega/{p-450bf94d.entry.js → p-fda6e2cc.entry.js} +1 -1
  474. package/dist/vega/p-ff8dd200.js +1 -0
  475. package/dist/vega/{p-c67ce78c.entry.js → p-ffdacaf9.entry.js} +1 -1
  476. package/dist/vega/vega.esm.js +1 -1
  477. package/package.json +2 -16
  478. package/readme.md +0 -5
  479. package/dist/vega/p-0179f55d.js +0 -1
  480. package/dist/vega/p-07b56f2b.entry.js +0 -1
  481. package/dist/vega/p-209e0166.js +0 -1
  482. package/dist/vega/p-35df0f0a.entry.js +0 -1
  483. package/dist/vega/p-3cf4339a.entry.js +0 -1
  484. package/dist/vega/p-4e39adf5.entry.js +0 -1
  485. package/dist/vega/p-5319da71.entry.js +0 -1
  486. package/dist/vega/p-5de1acdb.js +0 -1
  487. package/dist/vega/p-5df9047c.js +0 -1
  488. package/dist/vega/p-683cfe24.js +0 -1
  489. package/dist/vega/p-7be548a7.js +0 -1
  490. package/dist/vega/p-8509c140.entry.js +0 -1
  491. package/dist/vega/p-8aa07ed0.js +0 -1
  492. package/dist/vega/p-8da860f6.js +0 -1
  493. package/dist/vega/p-ca9852bb.js +0 -1
  494. package/dist/vega/p-de885ef2.js +0 -1
  495. package/dist/vega/p-dee38163.entry.js +0 -1
  496. package/dist/vega/p-e5502873.entry.js +0 -1
  497. package/dist/vega/p-ea22cba0.js +0 -1
  498. package/dist/vega/p-ea54ce0a.js +0 -3
  499. package/dist/vega/p-ee3155bd.js +0 -1
  500. package/dist/vega/p-eee01ba7.entry.js +0 -1
  501. package/dist/vega/p-ef2b9846.entry.js +0 -1
  502. package/dist/vega/p-f4a01959.js +0 -1
  503. package/dist/vega/p-f5aefb2f.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{g as t}from"./p-8b5d3a52.js";import{a as e,g as n,D as i,f as s,r}from"./p-528748fa.js";import{L as a,I as o}from"./p-6e1ab235.js";import{I as l,c}from"./p-afcd8f04.js";import{I as h}from"./p-781fd6e0.js";import{c as d}from"./p-6a334573.js";import{P as u}from"./p-81dd00d0.js";import{i as p}from"./p-5de1acdb.js";import{V as f}from"./p-683cfe24.js";import{I as w}from"./p-aa32f2f3.js";import{U as g,V as b,B as m,E as v,h as y,I as x,R as C,a as L,P as k,A as S,b as T}from"./p-ea54ce0a.js";import{M as A,A as E,R as O,a as I,b as R,c as N,d as j,I as B,e as M,f as D,s as _,g as H,h as V,i as P,B as F,j as z,k as K,C as $,l as W,m as q,n as G,o as U,S as Z,U as J,p as Y,q as Q,N as X,r as tt,t as et}from"./p-f4a01959.js";import{i as nt}from"./p-4d9061fb.js";import{R as it,a as st,b as rt}from"./p-93dfab05.js";import{V as at}from"./p-6031bed1.js";import{v as ot}from"./p-4866e390.js";import{D as lt,d as ct}from"./p-526e3634.js";import{V as ht,a as dt,b as ut,c as pt,d as ft}from"./p-0179f55d.js";import{R as wt,a as gt,S as bt,T as mt,b as vt,c as yt,d as xt,e as Ct,C as Lt,M as kt,f as St,g as Tt,h as At,i as Et,j as Ot,k as It,l as Rt,m as Nt,n as jt,o as Bt,p as Mt,q as Dt,s as _t,r as Ht,t as Vt,I as Pt,u as Ft,v as zt,w as Kt,x as $t,y as Wt,z as qt,A as Gt,B as Ut,D as Zt,E as Jt,F as Yt,G as Qt,H as Xt,J as te,K as ee,L as ne,N as ie,O as se,P as re,Q as ae,U as oe,W as le,X as ce,Y as he}from"./p-e371738b.js";import{C as de}from"./p-2d0d575f.js";import{V as ue,a as pe,b as fe}from"./p-3a68b729.js";import{r as we}from"./p-77e64f26.js";import{V as ge,a as be}from"./p-3e09aeed.js";import{t as me}from"./p-b75ee3ba.js";import{p as ve}from"./p-0c667d6a.js";import{c as ye}from"./p-a841cf13.js";import{d as xe}from"./p-1bc5b3bc.js";import{R as Ce}from"./p-802bf369.js";import{c as Le}from"./p-890a5254.js";const ke=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaLoaderController is called",canAccept:(t,e)=>"VegaLoaderController"===t&&"load"===e,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaLoaderController is called",canAccept:(t,e)=>"VegaLoaderController"===t&&"close"===e,payloadValue:()=>!0}];class Se{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(Se,["load","close"],ke,"VegaLoaderController")}load(t={}){let e=t.containerSelector||"body",n=document.querySelector(e);if(n&&Se.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY.includes(n.tagName)&&(e="body",n=document.querySelector("body")),!n)return a.error("Container is not found by selector: ",e),null;const i=this.createLoadingIndicator(t.indicatorOptions),s=this.createLoader(e);return s.append(i),this.appendLoader(s,n)}close(t){const e=this.findLoader(t);if(e){if(e.dataset.container){const t=document.querySelector(e.dataset.container);t&&t.dataset.vegaLoaderOriginPosition&&(t.style.position=t.dataset.vegaLoaderOriginPosition)}e.remove()}}findLoader(t){var e,n;let i;if(t.includes(">>>")){const[s,r]=t.split(">>>");i=null===(n=null===(e=document.querySelector(s))||void 0===e?void 0:e.shadowRoot)||void 0===n?void 0:n.getElementById(r)}else i=document.getElementById(t);return i}createLoader(n){const i=document.createElement("vega-loader-wrapper");return i.className=e(["body"===n?"fixed-wrapper":"absolute-wrapper"]),i.dataset.container=n,i.id=`vega-loader-${t()}`,i}createLoadingIndicator(t={}){const e=document.createElement("vega-loading-indicator");return Object.assign(e,t),e}appendLoader(t,e){return e.dataset.vegaLoaderOriginPosition=e.style.position,e.style.position="relative",e.shadowRoot?(e.shadowRoot.append(t),`${t.dataset.container}>>>${t.id}`):(e.append(t),t.id)}}Se.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY=["VEGA-MODAL"],function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],Se.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const Te=new Se,Ae=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaNotifyController is called",canAccept:(t,e)=>"VegaNotifyController"===t&&"open"===e,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaNotifyController is called",canAccept:(t,e)=>"VegaNotifyController"===t&&"close"===e,payloadValue:()=>!0},{payloadKey:"IS_CLOSEALL_METHOD_CALLED",payloadDescription:"Indicate if the method closeAll of public API VegaNotifyController is called",canAccept:(t,e)=>"VegaNotifyController"===t&&"closeAll"===e,payloadValue:()=>!0}];var Ee=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a};class Oe{constructor(){this.resizeObserverSlimmer=d(Oe,u,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"}],[{callback:t=>{var e;!(t[0].contentRect.height>0)&&(null===(e=this.container)||void 0===e?void 0:e.classList.contains("hydrated"))&&(h.removeZIndex(this.container,"top"),this.container.remove(),this.container=null)},target:()=>this.container}]),this.vegaPublicAPIRuntimeMetricsSlimmer=c(Oe,["open","close","closeAll"],Ae,"VegaNotifyController")}async open(t){const e=this.createPageNotification(t);return this.getContainer().append(e),e.id}async closeAll(){this.container&&Array.from(this.container.children).forEach((t=>{t.close()}))}async close(t){await document.getElementById(t).close()}connectResizeObserver(){}createPageNotification(e){const s=document.createElement("vega-page-notification");return Object.keys(e).forEach((t=>{void 0!==e[t]&&(s[t]=e[t])})),s.style.marginBottom=n()===i.MOBILE?"12px":"16px",s.id=`vega-page-notification-${t()}`,s}getContainer(){return this.container||(this.container=document.createElement("vega-page-notification-list"),h.setZIndex(this.container,"top"),n()===i.MOBILE?this.container.classList.add("vega-page-notification-list-bottom"):this.container.classList.add("vega-page-notification-list-topRight"),document.body.append(this.container),this.connectResizeObserver()),this.container}}Ee([o()],Oe.prototype,"resizeObserverSlimmer",void 0),Ee([l()],Oe.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const Ie=new Oe,Re=[{payloadKey:"IS_SETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method setSemantics of public API VegaEventManager is called",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:()=>!0},{payloadKey:"IS_GETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method getSemantics of public API VegaEventManager is called",canAccept:(t,e)=>"VegaEventManager"===t&&"getSemantics"===e,payloadValue:()=>!0},{payloadKey:"IS_GETENABLEDEVENTIDSBYCOMPONENT_METHOD_CALLED",payloadDescription:"Indicate if the method getEnabledEventIdsByComponent of public API VegaEventManager is called",canAccept:(t,e)=>"VegaEventManager"===t&&"getEnabledEventIdsByComponent"===e,payloadValue:()=>!0},{payloadKey:"globalEventIsNative",payloadDescription:"Indicate if the vega components will emit events without the vega prefix",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>!(!t.global||"native"!==t.global.namespace)},{payloadKey:"eventOfSpecificComponentsIsNative",payloadDescription:"Indicate if the vega components will emit events with the vega prefix, but special components will emit events without vega prefix",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>{const e=t;if(e.components){const t=Object.keys(e.components);return!!(t.length>0&&"native"===e.components[t[0]].namespace)}return!1}},{payloadKey:"eventOfSpecificComponentsIsVega",payloadDescription:"Indicate if the vega components will emit events without the vega prefix, but special components will emit events with vega prefix",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>{const e=t;if(e.global&&e.components){const t=Object.keys(e.components);return!!("native"===e.global.namespace&&t.length>0&&"vega"===e.components[t[0]].namespace)}return!1}},{payloadKey:"globalJqueryDelegatedEventIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>!(!t.global||!0!==t.global.jqueryDelegatedEvent)},{payloadKey:"jqueryDelegatedEventIsCustomStrategy",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>{const e=t;return!!(e.global&&Array.isArray(e.global.jqueryDelegatedEvent)&&e.global.jqueryDelegatedEvent.length>0)}},{payloadKey:"jqueryDelegatedEventOfSpecialComponentsIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(t,e)=>"VegaEventManager"===t&&"setSemantics"===e,payloadValue:t=>{const e=t;if(e.components){const t=Object.keys(e.components);return!!(t.length>0&&!0===e.components[t[0]].jqueryDelegatedEvent)}return!1}}];class Ne{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(Ne,["setSemantics","getSemantics","getEnabledEventIdsByComponent"],Re,"VegaEventManager")}setSemantics(t){p.setSemantics(t)}getSemantics(t){return p.getSemantics(t)}getEnabledEventIdsByComponent(t){return p.getEnabledEventIdsByComponent(t)}}!function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],Ne.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const je=new Ne,Be=[{payloadKey:"IS_OVERRIDEZINDEXBASICVALUES_METHOD_CALLED",payloadDescription:"Indicate if the method overrideZIndexBasicValues of public API ZIndexManager is called",canAccept:(t,e)=>"VegaZIndexManager"===t&&"overrideZIndexBasicValues"===e,payloadValue:()=>!0},{payloadKey:"zIndexBasicValuesGreatThanTenThousand",payloadDescription:"Indicate if the basic z-index value is great than ten thousand",canAccept:(t,e)=>"VegaZIndexManager"===t&&"overrideZIndexBasicValues"===e,payloadValue:t=>t.base>1e4}];class Me{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(Me,["overrideZIndexBasicValues"],Be,"VegaZIndexManager")}overrideZIndexBasicValues(t){h.overrideZIndexBasicValues(t)}}!function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],Me.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const De=new Me,_e=[{payloadKey:"IS_WAITFORVEGA_METHOD_CALLED",payloadDescription:"Indicate if the method waitForVega of public API WaitForVegaHandler is called",canAccept:(t,e)=>"WaitForVegaHandler"===t&&"handle"===e,payloadValue:()=>!0}];class He{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(He,["handle"],_e,"WaitForVegaHandler")}async handle(){return await Promise.all(Array.from(document.querySelectorAll("*:not(.hydrated)")).filter((t=>t.tagName.startsWith("VEGA"))).map((t=>{var e;return null===(e=t.componentOnReady)||void 0===e?void 0:e.call(t)})))}}!function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],He.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const Ve=new He,Pe=async()=>Ve.handle(),Fe=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaSkeletonLoaderController is called",canAccept:(t,e)=>"VegaSkeletonLoaderController"===t&&"load"===e,payloadValue:()=>!0},{payloadKey:"IS_UNLOAD_METHOD_CALLED",payloadDescription:"Indicate if the method unLoad of public API VegaSkeletonLoaderController is called",canAccept:(t,e)=>"VegaSkeletonLoaderController"===t&&"unLoad"===e,payloadValue:()=>!0},{payloadKey:"IS_UNLOADALL_METHOD_CALLED",payloadDescription:"Indicate if the method unLoadAll of public API VegaSkeletonLoaderController is called",canAccept:(t,e)=>"VegaSkeletonLoaderController"===t&&"unLoadAll"===e,payloadValue:()=>!0}];class ze{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(ze,["load","unLoad","unLoadAll"],Fe,"VegaSkeletonLoaderController"),this.loaderMap=new Map}load({target:e,type:n="text",width:i,height:s,items:r,layout:a}){const o=Array.from(document.body.querySelectorAll(e)),l=`vega-skeleton-loader-${t()}`,c=[];return o.forEach((t=>{const e=r?r.map(this.createSkeleton):[this.createSkeleton({type:n,width:i,height:s})],o=(a?[this.wrapLayout(e,a)]:e).map((t=>(t.dataset[ze.LOADER_DATA_SET_KEY]=l,t)));c.push(...o),t.append(...o)})),this.loaderMap.set(l,c),l}unLoad(t){this.loaderMap.has(t)&&(this.loaderMap.get(t).forEach((t=>t.remove())),this.loaderMap.delete(t))}unLoadAll(){for(const t of this.loaderMap.values())t.forEach((t=>t.remove()));this.loaderMap.clear()}createSkeleton(t){const{type:e,width:n,height:i}=t,s=document.createElement("vega-skeleton");return Object.assign(s,{animated:!0,type:e,width:n,height:i}),s}wrapLayout(t,e){const n=document.createElement("vega-flex");return Object.assign(n,Object.assign({className:"vega-skeleton-loader-template-container"},e.props)),Object.assign(n.style,e.style),n.append(...t),n}}ze.LOADER_DATA_SET_KEY="vegaSkeletonLoaderKey",function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],ze.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const Ke=new ze,$e=[{payloadKey:"IS_INIT_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaTranslation.init is called",canAccept:(t,e)=>"TranslationController"===t&&"init"===e,payloadValue:()=>!0},{payloadKey:"IS_CHANGE_LANGUAGE_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaTranslation.changeLanguage is called",canAccept:(t,e)=>"TranslationController"===t&&"changeLanguage"===e,payloadValue:()=>!0}];class We{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=c(We,["init","changeLanguage"],$e,"TranslationController")}get currentLanguage(){return f.currentLanguage}init(t){f.init(t)}changeLanguage(t){f.changeLanguage(t)}}!function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);r>3&&a&&Object.defineProperty(e,n,a)}([l()],We.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const qe=new We;class Ge{static fromDate(t,e="month",n,i=!0){const s=w.createCalendarPeriod(t,e,n,i);return w.toCalendarPeriodType(s)}}class Ue{constructor(){this.dropdownEl=null,this.itemsContainerEl=null,this.buttonEl=null}isHidden(t){return t.sourceEditMode}getExtensionContext(t){return it.getExtensionContext(t)}renderDropdown(t,e,n,i){return t("vega-dropdown",Object.assign({trigger:"click",searchable:!1,maxWidth:"200",itemDisplayRule:"ellipsis",ref:t=>{this.dropdownEl=t,lt.addUniqueObserverToNode(t,ht,(t=>{this.handleDropdownClick(t.detail,e)}))}},n),i)}renderDropdownListTemplate(t,e,n){return t("div",{slot:"items",onMouseDown:this.preventDefault,onKeyDown:t=>this.handleItemsKeyDown(t),ref:t=>{this.itemsContainerEl=t},class:"rte-dropdown-list"},[t("style",{nonce:ot.nonce},".rte-dropdown-list vega-dropdown-group vega-dropdown-group { padding-left: 4px }"),...e.map((e=>"children"in e?this.renderDropdownGroup(t,e,n):this.renderDropdownItem(t,e,n)))])}renderDropdownItem(t,e,n){return t("vega-dropdown-item",{key:e.key,itemKey:e.key,label:n.translation.t(e.label),prefixIcon:e.icon})}renderDropdownGroup(t,e,n){return t("vega-dropdown-group",{key:e.key,label:n.translation.t(e.label),divide:!1},e.children.map((e=>"children"in e?this.renderDropdownGroup(t,e,n):this.renderDropdownItem(t,e,n))))}renderButton(t,e,n){const{icon:i,label:s,showArrowIcon:r,tooltip:a}=n,o=this.isDisabled(e),l=t("vega-rich-text-editor-toolbar-button",{disabled:o,icon:i,hidden:this.isHidden(e),selected:this.isSelected(e),ref:t=>{this.buttonEl=t,lt.addUniqueObserverToNode(t,dt,(()=>this.handleButtonClick(e)))},onMouseDown:this.preventDefault,onKeyDown:t=>this.handleButtonKeyDown(t)},[this.renderButtonLabel(t,e,s),r?t("vega-icon",{size:"size-8",color:o?"text-disabled":"text-secondary",style:{marginLeft:"8px"},icon:at.getIconKey("chevron-down")}):null].filter(nt));return(null==a?void 0:a.text)?t("vega-tooltip",{text:e.translation.t(a.text),placement:["bottom","top"]},[l]):l}renderButtonLabel(t,e,n){return n?t("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(e)?"text-disabled":"text-primary"},e.translation.t(n)):null}isDisabled(t){return t.host.disabled}isSelected(t){return!1}preventDefault(t){t.preventDefault()}getListItemByKey(t,e){for(const n of t)if("children"in n){const t=this.getListItemByKey(n.children,e);if(t)return t}else if(n.key===e)return n;return null}handleButtonKeyDown(t){this.dropdownEl&&("Enter"===t.code||"Space"===t.code?(t.preventDefault(),t.stopPropagation(),this.dropdownEl.dispatchEvent(new MouseEvent("click",{bubbles:!0}))):"ArrowDown"!==t.code&&"ArrowUp"!==t.code||(t.preventDefault(),t.stopPropagation(),this.dropdownEl.show().then((()=>{this.focusDropdownItem("ArrowDown"===t.code?"first":"last")}))))}handleItemsKeyDown(t){var e,n,i;if("Escape"===t.code)return t.preventDefault(),t.stopPropagation(),this.dropdownEl&&this.dropdownEl.hide(),void(null===(e=this.buttonEl)||void 0===e||e.focus());if("ArrowDown"!==t.code&&"ArrowUp"!==t.code)return;t.preventDefault(),t.stopPropagation();const s=this.getDropdownItems();if(0===s.length)return;const r=s.findIndex((t=>{var e,n;return(null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector("li"))===(null===(n=t.shadowRoot)||void 0===n?void 0:n.activeElement)})),a="ArrowDown"===t.code?1:-1,o=-1===r?"ArrowDown"===t.code?0:s.length-1:r+a;for(let t=0;t<s.length;t++){const e=(o+t*a+s.length)%s.length;if(!s[e].disabled)return void(null===(i=null===(n=s[e].shadowRoot)||void 0===n?void 0:n.querySelector("li"))||void 0===i||i.focus())}}focusDropdownItem(t){var e,n;const i=this.getDropdownItems(),s="first"===t?i:[...i].reverse();for(const t of s)if(!t.disabled)return void(null===(n=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelector("li"))||void 0===n||n.focus())}getDropdownItems(){return this.itemsContainerEl?Array.from(this.itemsContainerEl.querySelectorAll("vega-dropdown-item")):[]}}class Ze extends A{constructor(t,e){super(),this.type="INSERT_TOKEN_NODE",this.rteRange=null,this.actionHandleResult=!1,this.rteRange=t,this.token=e}}class Je extends Ue{constructor(t){super(),this.tokenList=[],this.tokenList=t}render(t,e){return this.renderDropdown(t,e,{},[this.renderButton(t,e,{label:"Tokens",showArrowIcon:!0,tooltip:{text:"Insert token"}}),this.renderDropdownListTemplate(t,this.tokenList,e)])}isDisabled(t){const e=this.getExtensionContext(t.host);if(e){const{host:t,getSelectedNodes:n}=e,[i]=n();return i?t.disabled||!E.canHandle("INSERT_TOKEN_NODE",i.parent):t.disabled}return!1}handleButtonClick(t){}handleDropdownClick(t,e){const n=this.getListItemByKey(this.tokenList,t),{rteRange:i}=e,{startNode:s}=i;if(s&&s.parent){const t=new Ze(i,n);s.parent.apply(t),t.actionHandleResult&&this.flushEditorUI(e)}}flushEditorUI(t){const e=this.getExtensionContext(t.host);if(e){const{host:t,flushValue:n}=e;n(t.value)}}}class Ye extends O{constructor(t,e,n,i,s){super(t,n,i,s),this.dtoName=Ye.dtoName,this.type="token",this.token=e,this.text=n}static from(t,e){const n=new Ye(t.id,t.token,t.text,e);return t.annotations&&(n.annotationMap=this.generateTextAnnotationMap(t.annotations)),n}toJSON(){const t=super.toJSON();return Object.assign({id:this.id,type:this.type,text:this.text,token:this.token},t.annotations?{annotations:t.annotations}:{})}isContentEditable(){return!1}clone(t){return new Ye(this.id,this.token,this.text,t,this.annotationMap)}toHtml(){return`<span class="token" contenteditable="false" template-token-key="${this.token}" token-key="${this.token}"${super.generateAttributeString()}>${this.text}</span>`}}Ye.dtoName="RTETokenNode";class Qe extends st{doRender(t,e,n){const{id:i,token:s}=e;return t("span",Object.assign(Object.assign({key:i,"template-token-key":s,"token-key":s,contenteditable:"false",style:e.getStyles(),class:`token ${e.getClasses()}`},this.additionalAttributes(e)),{ref:this.useRef(e),onClick:t=>{t.preventDefault(),n&&!1!==n.editable&&this.handleTokenElementClick(t,e,n.host)}}),e.text)}injectRTEScopeStyles(){return"span[token-key]{padding: 0 2px; margin: 0 1px; background-color: rgba(var(--v-bg-status-info, 205,209,211))}"}handleTokenElementClick(t,e,n){t.preventDefault(),n&&n.value.apply(new g(e,void 0,!0))}additionalAttributes(t){const e=t.getCustomAttributesAnnotation();let n={wrapped:"true"};return e&&(n=Object.assign(Object.assign({},n),e.render())),n}}class Xe extends Ue{constructor(t,e,n=""){super(),this.languageList=[],this.languageChangeCallback=null,this.selectedLanguage="",this.labelRef=null,this.translation=null,this.handleDropdownClick=t=>{this.setSelectedLanguage(t),"function"==typeof this.languageChangeCallback&&this.languageChangeCallback(t)},this.languageList=t,this.languageChangeCallback=e,this.selectedLanguage=n}setSelectedLanguage(t){var e;if(this.selectedLanguage=t,(null===(e=this.labelRef)||void 0===e?void 0:e.firstChild)&&this.translation){const e=this.getLanguageLabelByKey(t);this.labelRef.firstChild.nodeValue=this.translation.t(e)}}isHidden(){return!1}render(t,e){const n=this.languageList.map((t=>this.translateDropdownEntry(t,e)));return this.renderDropdown(t,e,{source:n},[this.renderButton(t,e,{label:this.getLanguageLabelByKey(this.selectedLanguage),showArrowIcon:!0,tooltip:{text:"Select language"}})])}renderButtonLabel(t,e,n){return this.translation=e.translation,t("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(e)?"text-disabled":"text-primary",ref:t=>{this.labelRef=t}},e.translation.t(n))}handleButtonClick(t){}getLanguageLabelByKey(t){var e;const n=this.getListItemByKey(this.languageList,t);return null!==(e=null==n?void 0:n.label)&&void 0!==e?e:"Select Language"}translateDropdownEntry(t,e){const n=e.translation.t(t.label);return Object.assign(Object.assign({},t),"children"in t?{label:n,children:t.children.map((t=>this.translateDropdownEntry(t,e)))}:{label:n})}}class tn extends rt{constructor(t,e){super(),this.languageToolbarButtonRenderer=null,this.languageState={selectedLanguage:"",contentMap:{}},this.languageChangeCallBack=t=>{const e=this.languageState.selectedLanguage;this.extensionContext&&e&&(this.languageState.contentMap[e]=this.getRTELatestValue(this.extensionContext.host)),this.languageState.selectedLanguage=t,this.applyLanguageContent(t,this.languageState.contentMap)},this.languageList=t,e&&(this.languageState=Object.assign(Object.assign({},this.languageState),e)),!this.languageState.selectedLanguage&&t.length>0&&(this.languageState.selectedLanguage=t[0].key)}prepareBeforeLoad(t){this.languageToolbarButtonRenderer=new Xe(this.languageList,this.languageChangeCallBack,this.languageState.selectedLanguage),this.registerToolbarButtonRenderer(tn.TOOLBAR_BUTTON_KEY,this.languageToolbarButtonRenderer,t)}initialExtensionAfterLoad(t){super.initialExtensionAfterLoad(t);const{selectedLanguage:e,contentMap:n}=this.languageState;this.languageToolbarButtonRenderer&&this.languageToolbarButtonRenderer.setSelectedLanguage(e),n&&n[e]&&this.applyLanguageContent(this.languageState.selectedLanguage,this.languageState.contentMap)}setState(t){const{selectedLanguage:e,contentMap:n}=t;this.languageToolbarButtonRenderer&&this.languageToolbarButtonRenderer.setSelectedLanguage(e),this.languageState.selectedLanguage=e,this.languageState.contentMap=Object.assign({},n),this.applyLanguageContent(e,n)}getState(){const{selectedLanguage:t,contentMap:e}=this.languageState;return this.extensionContext&&(e[t]=this.getRTELatestValue(this.extensionContext.host)),this.languageState}applyLanguageContent(t,e){if(this.extensionContext&&e){let n=e[t];const{host:i,flushValue:s}=this.extensionContext;n=n?n instanceof b?n:b.fromJSON(n,i.sourceEditConfig):b.createEmptyContent(),i.value!==n&&s(n,!0)}}getRTELatestValue(t){var e;let n=t.value;if(this.extensionContext&&this.extensionContext.isSourceEditMode()&&t.shadowRoot){const i=t.shadowRoot.querySelector(".source-view-container vega-code-block");if(i){let s;t.sourceEditConfig&&(s={autoMatchFormat:null===(e=t.sourceEditConfig.autoMatchFormat)||void 0===e||e,filterInlineStyles:t.sourceEditConfig.filterInlineStyles}),n=b.fromHtml(i.value.code,s)}}return n}}tn.TOOLBAR_BUTTON_KEY="languages";class en extends A{constructor(t){super(),this.type="INSERT_FUNCTION_BLOCK",this.functionType=t}}class nn extends I{constructor(t){super(t),this.dtoName=nn.dtoName,this.type="function-block",this.children=[]}static from(t,e){const n=new nn(t.id),i={customClass:["statement"]};let{annotations:s}=t;return s=s?Object.assign(Object.assign({},s),i):i,super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}toHtml(){return`<div class="statement">${this.children.map((t=>t instanceof R?`<div class="statementelement"${this.getFunctionContentStyle(t)}>${t.getChildrenHtml()}</div>`:t.toHtml())).join("")}</div>`}clone(e){const n=new nn(t());return n.parent=e,n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,children:this.children.map((t=>t.toJSON()))})}getFunctionContentStyle(t){const e=new N(t);let n=e.toCssText({standalone:!0});const i=t.getAnnotationByType("TEXT_STYLE");if(i&&"paragraph"===i.textStyle){const t=e.toCssText(void 0,void 0,i.renderStyle({standalone:!0}));n=n.replace(t,"").trim()}return n?` style="${n}"`:""}}nn.dtoName="RTEFunctionBlock";class sn extends j{handleAction(t,e){const{functionType:n}=t,i=this.getFunctionBlock(n),s=this.createNewParagraph(""),r=this.getReferenceBlock(e);r?r.parent.apply(new B(r,i,s)):e.apply(new M([i,s])),s&&(t.nextFocusNode=s.children[0])}getFunctionBlock(e){const n=t();return nn.from({id:n,type:"function-block",children:[{id:`${n}-1`,type:"logic-control-block",statementText:e.toUpperCase()},{id:`${n}-2`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${n}-2-1`,type:"text",text:" "}]},{id:`${n}-3`,type:"logic-control-block",statementText:"SHOW"},{id:`${n}-4`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${n}-4-1`,type:"text",text:" "}]}]})}getReferenceBlock(t){if(!(t instanceof b)){const e=t.parent;return e instanceof nn?e:t}}}class rn extends D{constructor(t,e,n){super(t),this.dtoName=rn.dtoName,this.type="logic-control-node",this.text="",this.text=e,this.parent=n}clone(){return new rn(this.id,this.text,this.parent)}toHtml(){return this.text}toJSON(){return{id:this.id,type:this.type,text:this.text}}getRangeEndOffset(){return 1}getRangeContainer(){const t=_.getDOMByEntity(this);if(t)return t.parentElement}isContentEditable(){return!1}}rn.dtoName="RTELogicControlNode";class an extends I{constructor(t,e,n){super(t),this.dtoName=an.dtoName,this.type="logic-control-block",this.children=[],this.statementText="",this.statementText=e,this.children=[new rn(`${t}-node-1`,e,this)],n&&(this.parent=n)}static from(t){return new an(t.id,t.statementText)}isNotEmpty(){return!0}getLastNode(){return this.children[this.children.length-1]}toHtml(){return`<div class='statementsyntax' contenteditable='false'>${this.statementText}</div>`}clone(t){return new an(this.id,this.statementText,t)}toJSON(){return{id:this.id,type:this.type,statementText:this.statementText}}}an.dtoName="RTELogicControlBlock";class on extends Ue{render(t,e){return this.renderDropdown(t,e,{},[this.renderButton(t,e,{label:"Functions",showArrowIcon:!0,tooltip:{text:"Insert function"}}),this.renderDropdownListTemplate(t,on.FUNCTION_LIST,e)])}isDisabled(t){const e=this.getExtensionContext(t.host);if(e){const{host:t,getSelectedNodes:n}=e,i=n()[0];let s=!0;return i&&(s=E.canHandle("INSERT_FUNCTION_BLOCK",i.parent)),t.disabled||!s}return!1}handleButtonClick(){throw new Error("Method not implemented.")}handleDropdownClick(t,e){if(e){const n=this.getExtensionContext(e.host);if(n){const{host:e,getSelectedNodes:i}=n,s=i()[0],r=new en(t);s?s.parent&&s.parent.apply(r):e.value.apply(r),r.nextFocusNode&&e.value.apply(new g(r.nextFocusNode,1))}}}}on.FUNCTION_LIST=[{key:"IF",label:"Conditional"},{key:"FOREACH",label:"Foreach"}];class ln extends st{doRender(t,e){return t("div",{key:e.id,class:"statementsyntax",ref:this.useRef(e)},t("span",{key:`${e.id}-1`,contenteditable:"false",ref:this.useRef(e.children[0])},e.statementText))}}class cn extends m{constructor(){super(...arguments),this.blockClassName="statementsyntax"}canHandle(t,e){const n=t[e];return n&&n.nodeType===Node.ELEMENT_NODE&&n.classList.contains(this.blockClassName)&&this.isFunctionBlockChild(n)?1:0}handle(e){const n=e[0];return an.from({id:t(),type:"logic-control-block",statementText:n.innerText})}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isFunctionBlockChild(t){return!(!t.parentElement||!t.parentElement.classList.contains("statement"))}}class hn extends st{doRender(t,e){return t("div",{key:e.id,class:this.getElementClassName(e),ref:this.useRef(e)})}injectRTEScopeStyles(){return"div.statement{padding:2px 4px;background:rgba(var(--v-bg-accent3-secondary, 255, 239, 200));border:1px solid rgba(var(--v-bg-accent3-primary, 255, 220, 131));border-radius:4px;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;gap:4px}div.statement .statementsyntax{padding:3px 0;line-height:22px}.rich-text-content div.statement .statementsyntax,.rich-text-content div.statement .statementelement{display:inline-block}div.statement+div.statement{margin-top:2px}div.statement .statementsyntax span{color:rgb(38, 42, 255);font-weight:bold}div.statement .statementelement{padding:2px 4px;background:rgba(var(--v-bg-secondary, 245, 247, 247));border:1px solid rgba(var(--v-border-color-input-field, 171, 198, 216));border-radius:4px;margin:0;min-width:8px}"}getElementClassName(t){let e=t.getClasses();return e.indexOf("statement")<0&&(e="statement "+e),e.trim()}}class dn{}class un extends dn{canIntercept(t,e){return e.parent&&e.parent instanceof nn}intercept(t,e,n){const i=new x(n.children[0],0);i.isFlushable=!0,n.parent.apply(i)}}class pn extends j{handleAction(t,e){const n=this.createNewParagraph("");n&&(e.parent.apply(new B(e,n)),t.newBlock=n,this.focusToNextLine(n))}focusToNextLine(t){const e=this.getRootContent(t);e&&e.apply(new g(t.children[0],1))}}class fn extends A{constructor(t,e,n){super(),this.type="PASTE_PLAIN_TEXT",this.blocksToBeInserted=t,this.startNode=e,this.startOffset=n}}class wn extends un{intercept(t,e,n){const{blocksToBeInserted:i,rteRange:s}=e;let{startNode:r,startOffset:a}=e;s&&(r=s.startNode,a=s.startOffset);const o=new fn(i,r,a);n.apply(o)}}class gn extends j{handleAction(t,e){const{blocksToBeInserted:n,startNode:i,startOffset:s}=t;if(i instanceof O){const t=n.flatMap((t=>t instanceof R?(this.copyLinkGroupAnnotations(e.annotationMap,t.annotationMap),t.children):[]));t.length>0&&(e.apply(s>0?new B(i,...t):new H(i,...t)),this.focusToNextLine(t[t.length-1],t[t.length-1].getRangeEndOffset()))}}focusToNextLine(t,e){const n=this.getRootContent(t);n&&n.apply(new g(t,e))}copyLinkGroupAnnotations(t,e){if(e&&e.has(V.LINK_GROUP)){const n=e.get(V.LINK_GROUP);t.has(V.LINK_GROUP)?n.linkGroups.forEach(((e,n)=>{t.get(V.LINK_GROUP).linkGroups.set(n,e)})):t.set(V.LINK_GROUP,e.get(V.LINK_GROUP))}}}const bn=new cn,mn=new class extends cn{constructor(){super(...arguments),this.blockClassName="statementelement"}handle(e,n){const i=y.generate(R,e[0]),s=Array.from(e[0].childNodes);return R.from({id:t(),type:"paragraph",annotations:Object.assign({customClass:[this.blockClassName]},i),nodes:this.generateChildNodes(s,void 0,n)})}},vn=new class extends v{canHandle(t,e){const n=t[e];return n&&"DIV"===n.tagName&&n.classList.contains("statement")&&n.childNodes.length&&n.querySelector(".statementsyntax")?1:0}handle(){return nn.from({id:t(),type:"function-block",annotations:{customClass:["statement"]},children:[]})}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}};class yn extends rt{constructor(){super(),this.registerBlockBasicStrategies(an.name),this.registerBlockBasicStrategies(nn.name),this.preventFunctionBlockDefaultInsertNewParagraph(),this.registerNode("logic-control-block",an),this.registerRenderer("logic-control-block",new ln),this.registerNode("function-block",nn),this.registerRenderer("function-block",new hn),this.registerElementToBlockDTOClassStrategy(bn),this.registerElementToBlockDTOClassStrategy(mn),this.registerElementToBlockDTOClassStrategy(vn)}prepareBeforeLoad(t){this.registerToolbarButtonRenderer(yn.TOOLBAR_BUTTON_KEY,new on,t)}preventFunctionBlockDefaultInsertNewParagraph(){this.unRegisterStrategy(P.INSERT_NEW_PARAGRAPH,an.name),this.unRegisterStrategy(P.APPEND_CHILDREN,nn.name),this.unRegisterStrategy(P.INSERT_CHILDREN_AFTER,nn.name),this.unRegisterStrategy(P.INSERT_CHILDREN_BEFORE,nn.name),this.unRegisterStrategy(P.PASTE_CONTENT,an.name),rt.registerActionHandleStrategy(nn.name,P.INSERT_NEW_PARAGRAPH,new pn)}}(()=>{const t=new sn;rt.registerActionHandleStrategy(b.name,"INSERT_FUNCTION_BLOCK",t),rt.registerActionHandleStrategy(R.name,"INSERT_FUNCTION_BLOCK",t),rt.registerActionHandleStrategy(C.name,"INSERT_FUNCTION_BLOCK",t),rt.registerActionHandleStrategy(an.name,"INSERT_FUNCTION_BLOCK",t),rt.registerActionHandleStrategy(R.name,"PASTE_PLAIN_TEXT",new gn),rt.registerActionHandlerInterceptor(R.name,P.INSERT_NEW_PARAGRAPH,new un),rt.registerActionHandlerInterceptor(R.name,P.PASTE_CONTENT,new wn)})(),yn.TOOLBAR_BUTTON_KEY="functions";class xn extends A{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_BLOCK",this.tableBlock=t}}class Cn extends F{constructor(){super(...arguments),this.type=wt.CAPTION}static getDefaultStyles(){return{padding:"8px",border:"1px solid #ddd",borderBottom:"none",position:"relative",textAlign:"center",minHeight:"22px"}}clone(){return new Cn}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--extension-table-caption"}renderStyle(t){return(null==t?void 0:t.standalone)?Object.assign(Object.assign({},Cn.getDefaultStyles()),{backgroundColor:this.getCaptionBackgroundColor()}):null}toJSON(){return{caption:!0}}getCaptionBackgroundColor(){return ge.isDarkMode()?gt.dark:gt.light}}class Ln extends I{constructor(t,e){super(t),this.dtoName=Ln.dtoName,this.type="table-caption";const{autoMatchFormat:n}=e||{autoMatchFormat:!0};n&&this.annotationMap.set(wt.CAPTION,new Cn)}static from(t,e){const n=new Ln(t.id,e),i=t.annotations||{},{caption:s}=i,r=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}(i,["caption"]);return s&&n.annotationMap.set(wt.CAPTION,new Cn),super.convertAnnotationsToMap(n.annotationMap,Object.assign({},r)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new Ln(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.isNotEmpty()))}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<caption${super.generateAttributeString(t)}>${e}</caption>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}E.register(P.INSERT_CHILDREN_BEFORE,Ln.name,new L),E.register(P.PASTE_CONTENT,Ln.name,new k),Ln.dtoName="RTETableCaptionBlock";class kn extends A{constructor(t){super(),this.type="TOGGLE_TABLE_CAPTION",this.isFlushable=!0,this.shouldEnable=t}}class Sn extends bt{canHandle(t){return t[0]===mt.CAPTION}execute(t,e,n){const i="rte-table-caption"===t[1],s=new kn(i),r=n.getCaption();if(i){const t=r&&r.isNotEmpty()?r:this.createCaptionBlock(null==r?void 0:r.id);r&&t===r||n.setCaption(t),s.nextFocusNode=t.getLastNode()}else r&&(n.setCaption(null),s.nextFocusNode=n.getFirstNode());this.syncCursorPosition(n,s.nextFocusNode)}syncCursorPosition(t,e){super.syncCursorPosition(t,e)}createCaptionBlock(e){const n={id:null!=e?e:t(),type:"table-caption",children:[{id:t(),type:"paragraph",nodes:[{id:t(),type:"text",text:""}]}]};return Ln.from(n)}}class Tn{static generateTablePropertiesForm(t){const e=t.annotationMap.get(wt.TABLE);let n={borderStyle:"none",borderColor:"",borderWidth:"",backgroundColor:"",width:"",height:"",textAlign:"center"};if(e){const t=e.toJSON().table,{style:i="none",color:s="",width:r=""}=t.border||{style:"none",color:"",width:""};n={backgroundColor:t.backgroundColor||"",width:t.width||"",height:t.height||"",textAlign:t.alignment,borderStyle:i,borderColor:s,borderWidth:r}}return n}updateCursorPosition(t,e){t&&e&&t.host.value.apply(new g(e,0))}}class An extends z{constructor(t){super(),this.isFlushable=!0;const{textAlign:e,width:n,borderWidth:i,borderColor:s,borderStyle:r,height:a}=t,o=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}(t,["textAlign","width","borderWidth","borderColor","borderStyle","height"]);this.tableProperties=Object.assign(Object.assign({},o),{alignment:e,border:{style:r,color:s,width:i?ve(i):""},width:n?ve(n):"",height:a?ve(a):""})}toAnnotation(){return new vt(this.tableProperties)}}class En extends Tn{handle(t,e,n,i){e.apply(new An(n)),this.updateCursorPosition(t,i)}}class On extends Tn{handle(t,e,n,i){t&&t.host&&(t.flushValue(t.host.value),this.updateCursorPosition(t,i))}}class In extends Tn{handle(t,e,n){const i=new An(n);i.isFlushable=!1,e.apply(i)}}class Rn extends z{constructor(t,e){super(),this.isFlushable=!0,this.cellAnnotation=t,this.originAnnotation=e}toAnnotation(){return this.updateOriginAnnotation(),this.originAnnotation}updateOriginAnnotation(){Object.keys(this.cellAnnotation).forEach((t=>{this.originAnnotation[t]=this.cellAnnotation[t]}))}}class Nn extends Rn{constructor(t,e){super(t,e),this.isFlushable=!0}toAnnotation(){return this.updateOriginAnnotation(),this.originAnnotation}}var jn=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n};class Bn{static getStyleCollectionFromCell(t){return t.reduce(((t,e)=>{const n=e.getAnnotationByType(wt.CELL);if(t[e.id]={},n){const i=n.toJSON().tableCell,{border:s}=i,r=jn(i,["border"]),a={};s&&(a.borderStyle=s.style,a.borderColor=s.color,a.borderWidth=s.width),t[e.id]=ye(Object.assign(Object.assign({},r),a))}return t}),{})}static convertStyleMapToFormField(t){const e={};for(const n in t){const i=t[n];for(const t in i)e[t]?e[t].push(i[t]):e[t]=[i[t]]}const n=Object.keys(t).length,i={};for(const t in e){const s=e[t],r=new Set(s);s.length===n&&1===r.size&&(i[t]=s[0])}return i}applyProperties(t,e,n){t.tableSelection.getSelectedCells().forEach((t=>{const i=e[t.id];if(i){const e=this.convertToVegaTableCellAnnotation(Object.assign({},i));this.applyAnnotation(t,e,n)}}))}updateCursorPosition(t,e){t&&e&&t.host.value.apply(new g(e,0))}convertToVegaTableCellAnnotation(t){const{borderStyle:e,borderWidth:n,borderColor:i}=t,s=jn(t,["borderStyle","borderWidth","borderColor"]),r=ye({style:e,width:n?ve(n):"",color:i});return ye(Object.assign(Object.assign({},s),{backgroundColor:s.backgroundColor||"",padding:s.padding?ve(s.padding):"",width:s.width?ve(s.width):"",height:s.height?ve(s.height):"",verticalAlign:s.verticalAlign||"",textAlign:s.textAlign||"",border:r}))}applyAnnotation(t,e,n){const i=t.getAnnotationByType(wt.CELL)||new yt({},!1),s=t instanceof xt?new Nn(e,i):new Rn(e,i);s.isFlushable=n,t.apply(s)}}class Mn extends Bn{handle(t,e,n){t&&t.host&&(t.flushValue(t.host.value),this.updateCursorPosition(t,n))}}class Dn extends Bn{handle(t,e){this.applyProperties(t,e,!1)}}class _n extends Bn{handle(t,e,n){this.applyProperties(t,e,!0),this.updateCursorPosition(t,n)}}class Hn{constructor(t){this.renderContext=t}getTableExtensionContext(){return this.renderContext?it.getExtensionContext(this.renderContext.host):null}}class Vn extends Hn{constructor(t,e){super(e),this.popoverCloseType="none",this.tablePropertiesHandlerMap={save:new On,cancel:new En,change:new In},this.cellPropertiesHandlerMap={save:new Mn,cancel:new _n,change:new Dn},this.handleTablePropertiesUpdate=t=>{const e=t.type.replace("vega","").toLowerCase();this.popoverCloseType=e,"change"!==e&&this.hide();const n=this.getTableExtensionContext();n&&this.tablePropertiesHandlerMap[e].handle(n,this.currentTableBlock,t.detail,this.currentFocusNode),"change"===e&&this.popoverRef.show(!0)},this.handleCellPropertiesUpdate=t=>{const e=t.type.replace("vega","").toLowerCase();this.popoverCloseType=e,"change"!==e&&this.hide();const n=this.getTableExtensionContext();n&&this.cellPropertiesHandlerMap[e].handle(n,t.detail,this.currentFocusNode),"change"===e&&this.popoverRef.show(!0)},this.tableColorSchema=t}destroy(){this.selectionAnchorRef&&this.selectionAnchorRef.parentNode&&(lt.removeUniqueObserverFromNode(this.selectionAnchorRef,ue),this.selectionAnchorRef.parentNode.removeChild(this.selectionAnchorRef),this.selectionAnchorRef=null)}async show(t){let e=this.getTableRef();const n=this.getTableExtensionContext();let i=[];if(n&&(i=n.tableSelection.getSelectedCells()),t===mt.CELL&&i.length>1){const t=this.getOrCreateSelectionAnchor(i,e);t&&(e=t)}else t===mt.CELL&&1===i.length&&(e=_.getDOMByEntity(i[0]));this.updateContent(t),this.storeCurrentFocusNode(),we.call(ct.getSubject(this.popoverRef,pe),e),await this.popoverRef.show()}async hide(){await this.popoverRef.hide()}reTarget(t,e){this.getTableRef=e,this.currentTableBlock=t}render(){const t=me();if(t){const e=t.createElement("vega-popover");e.trigger="click",e.isScreenPosition=!0,e.className="rte-table-dynamic-popover",lt.addUniqueObserverToNode(e,ut,(()=>{const t=this.getTableExtensionContext();"change"===this.popoverCloseType&&t&&t.flushValue(t.host.value)}));const n=t.createElement("div");n.setAttribute("slot","popover"),n.className="rte-table-dynamic-popover-content";const i=t.createElement("vega-rich-text-table-properties");i.colors=this.tableColorSchema,i.type=mt.TABLE,i.setAttribute("type",mt.TABLE),i.addEventListener("vegaCancel",this.handleTablePropertiesUpdate),i.addEventListener("vegaChange",this.handleTablePropertiesUpdate),i.addEventListener("vegaSave",this.handleTablePropertiesUpdate);const s=t.createElement("vega-rich-text-table-properties");return s.colors=this.tableColorSchema,s.type=mt.CELL,s.setAttribute("type",mt.CELL),s.addEventListener("vegaCancel",this.handleCellPropertiesUpdate),s.addEventListener("vegaChange",this.handleCellPropertiesUpdate),s.addEventListener("vegaSave",this.handleCellPropertiesUpdate),n.appendChild(i),n.appendChild(s),e.appendChild(n),this.popoverRef=e,this.tablePropertiesFormRef=i,this.cellPropertiesFormRef=s,e}}updateContent(t){this.popoverCloseType="none";const e=this.getTableExtensionContext();"TABLE"===t?(this.tablePropertiesFormRef.classList.remove("vega-hidden"),this.cellPropertiesFormRef.classList.add("vega-hidden"),this.tablePropertiesFormRef.defaultValue=Tn.generateTablePropertiesForm(this.currentTableBlock)):"CELL"===t&&(this.cellPropertiesFormRef.classList.remove("vega-hidden"),this.tablePropertiesFormRef.classList.add("vega-hidden"),e&&(this.cellPropertiesFormRef.styleMap=Bn.getStyleCollectionFromCell(e.tableSelection.getSelectedCells())),this.cellPropertiesFormRef.defaultValue=Bn.convertStyleMapToFormField(this.cellPropertiesFormRef.styleMap)),e&&e.getSelection().removeAllRanges()}storeCurrentFocusNode(){const t=this.getTableExtensionContext();t&&(this.currentFocusNode=t.getSelectedNodes()[0])}getOrCreateSelectionAnchor(t,e){const n=me();if(n&&e){const i=e.closest(".rich-text-content"),s=i.getBoundingClientRect();let r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;t.map((t=>_.getDOMByEntity(t))).filter(nt).forEach((t=>{const e=t.getBoundingClientRect();r=Math.min(r,e.left-s.left),a=Math.max(a,e.right-s.left),o=Math.min(o,e.top-s.top),l=Math.max(l,e.bottom-s.top)}));const c=a-r,h=l-o;return this.selectionAnchorRef=i.querySelector(".rte-table-selection-popover-anchor"),this.selectionAnchorRef||(this.selectionAnchorRef=n.createElement("div"),this.selectionAnchorRef.className="rte-table-selection-popover-anchor",this.selectionAnchorRef.style.position="absolute",this.selectionAnchorRef.style.pointerEvents="none",i.appendChild(this.selectionAnchorRef),lt.addUniqueObserverToNode(this.selectionAnchorRef,ue,(()=>{this.destroy()}))),this.selectionAnchorRef.style.left=`${r}px`,this.selectionAnchorRef.style.top=`${o}px`,this.selectionAnchorRef.style.width=`${c}px`,this.selectionAnchorRef.style.height=`${h}px`,this.selectionAnchorRef}}}class Pn extends Hn{constructor(t){super(t),this.settingHandlers=[new Ct,new Sn,new Lt,new kt,new St],this.handleTableClick=(t,e,n)=>{const i=t.target.closest("table");i===n()&&(t.stopPropagation(),this.reTarget(e,n),this.tableDynamicPopover.hide(),we.call(ct.getSubject(this.popoverRef,pe),i),this.popoverRef.show(!0))},this.syncSelectedCells=()=>{this.tableSettingRef&&(this.tableSettingRef.selectedCells=this.getTableSelectedCells())},this.handleSettingMenuClick=t=>{const e=this.settingHandlers.find((e=>e.canHandle(t.detail)));if(e){const n=this.getTableExtensionContext();n&&e.execute(t.detail,n,this.tableBlock),t.detail[0]===mt.CAPTION&&this.updateTableSettingCaption()}t.detail[0]!==mt.TABLE&&t.detail[0]!==mt.CELL||(this.popoverRef.hide(),this.tableDynamicPopover.show(t.detail[0]))},this.handleTableSettingPopoverShow=()=>{this.syncSelectedCells()},this.tableDynamicPopover=new Vn(Tt.getTableColors(),t)}destroy(){this.tableDynamicPopover.destroy(),this.popoverContainer&&this.popoverContainer.remove()}render(){const t=me();if(t&&this.renderContext){this.popoverContainer=t.createElement("div"),this.renderContext.host.appendChild(this.popoverContainer);const e=this.tableDynamicPopover.render(),n=t.createElement("vega-popover");n.trigger="click",n.isScreenPosition=!0,n.className="rte-table-setting-popover",lt.addUniqueObserverToNode(n,pt,this.handleTableSettingPopoverShow);const i=t.createElement("div");i.setAttribute("slot","popover");const s=t.createElement("vega-rich-text-table-setting");s.addEventListener("vegaClick",this.handleSettingMenuClick),i.appendChild(s),n.appendChild(i),this.popoverContainer.appendChild(n),this.popoverContainer.appendChild(e),this.popoverRef=n,this.tableSettingRef=s}}updateTableSettingCaption(){const t=this.tableBlock.hasCaption();this.tableSettingRef&&this.tableSettingRef.hasCaption!==t&&(this.tableSettingRef.hasCaption=t)}reTarget(t,e){this.tableSettingRef&&(this.tableBlock=t,this.tableSettingRef.target=e(),this.tableSettingRef.selectedCells=this.getTableSelectedCells(),this.tableDynamicPopover.reTarget(t,e))}getTableSelectedCells(){let t=[];const e=this.getTableExtensionContext();if(e&&e.tableSelection){const{tableSelection:n}=e;t=n.getSelectedCells()}return t}}class Fn extends st{doRender(t,e,n){let i;const s=this.renderTable(t,e,(t=>i=t));this.renderTableToolbar(n);const r=e.getAnnotationByType(wt.TABLE),a=n.editable?[t("vega-rich-text-table-selection-widget",{onVegaRemove:t=>{t.stopPropagation(),this.handleTableRemove(e,i)},onClick:t=>{this.tableToolbar&&this.tableToolbar.handleTableClick(t,e,(()=>i))},onMouseLeave:()=>{this.tableToolbar&&this.tableToolbar.syncSelectedCells()}},[t("div",{contentEditable:!0,ref:this.useRef(e)},[s])])]:[s],o={};if(r){const t=r.renderStyle();o.width=t.width,o.margin=t.margin}const l=t("div",{class:"v-rte--extension-table-container",style:Object.assign({},o)},a);return l.childrenContainerGetter=()=>s,l}destroy(){this.destroyTableToolbar()}injectRTEScopeStyles(){return".v-rte--extension-table-container{display:table}table.v-rte--extension-table{border-collapse:collapse}table.v-rte--extension-table th,table.v-rte--extension-table td{border:1px solid #ddd;padding:12px;text-align:left;vertical-align:middle;min-width:55px;box-sizing:border-box;position:relative}table.v-rte--extension-table th{background-color:#f2f2f2}.rte-table-setting-popover,.rte-table-dynamic-popover{display:block}table.v-rte--extension-table .v-rte-table-cell-focused::after,table.v-rte--extension-table .v-rte-table-cell-selected::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;background-color:rgba(158, 207, 250, 0.3)}table.v-rte--extension-table:has(.v-rte-table-cell-selected){caret-color:transparent}table.v-rte--extension-table:has(.v-rte-table-cell-selected) ::selection{background-color:transparent}table.v-rte--extension-table:has(.v-rte-table-cell-selected) ::-moz-selection{background-color:transparent}.v-rte--extension-table-caption{padding:8px;border:1px solid #ddd;border-bottom:none;background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));position:relative;display:table-caption;caption-side:top;min-height:22px;text-align:center;word-break:break-word;overflow-wrap:break-word}.v-rte--extension-table-caption.showPlaceholder::before{position:absolute;left:0;right:0;content:attr(data-placeholder);font-family:'Inter', sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1));text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"}renderTable(t,e,n){var i;return t("table",Object.assign(Object.assign({key:e.id},null===(i=e.getCustomAttributesAnnotation())||void 0===i?void 0:i.render()),{style:e.getStyles(),class:e.getClasses(),ref:t=>{this.useRef(e)(t),n(t)}}))}handleTableRemove(t,e){t.parent.apply(new xn(t)),this.destroySelectionAnchor(e)}destroySelectionAnchor(t){const e=t.closest(".rich-text-content");if(e){const t=e.querySelector(".rte-table-selection-popover-anchor");t&&de.notify(ct.getSubject(t,ue),{host:t})}}renderTableToolbar(t){t.editable?this.tableToolbar||(this.tableToolbar=new Pn(t),this.tableToolbar.render()):this.destroyTableToolbar()}destroyTableToolbar(){var t;null===(t=this.tableToolbar)||void 0===t||t.destroy(),this.tableToolbar=null}}class zn extends st{doRender(t,e){return t("thead",{key:e.id,ref:this.useRef(e)})}}class Kn extends st{doRender(t,e){return t("tr",{key:e.id,ref:this.useRef(e)})}}class $n extends st{doRender(t,e,n){return this.renderByCellType(t,e,n,"td")}renderByCellType(t,e,n,i){var s;return t(i,Object.assign(Object.assign(Object.assign({key:`${e.id}-${i}`,ref:this.useRef(e)},null===(s=e.getCustomAttributesAnnotation())||void 0===s?void 0:s.render()),{style:e.getStyles(n),class:e.getClasses()}),n.editable?this.onSelectionListeners(e,n):void 0))}onSelectionListeners(t,e){return{onMouseDown:t=>{const n=s(t.target,"table"),i=s(t.currentTarget,"table")===n,r=t.target.closest("td, th");if(i&&r){const t=this.getExtensionContext(e.host);t&&t.tableSelection.focusCell(r)}},onMouseMove:n=>{n.stopPropagation(),n.preventDefault();const i=this.getExtensionContext(e.host);i&&i.tableSelection.dragOver(t)},onMouseUp:()=>{const t=this.getExtensionContext(e.host);t&&t.tableSelection.endDrag()}}}}class Wn extends st{doRender(t,e){return t("tbody",{key:e.id,ref:this.useRef(e)})}}class qn extends $n{doRender(t,e,n){return super.renderByCellType(t,e,n,"th")}}class Gn extends A{constructor(t,e){super(),this.type="INSERT_TABLE_BLOCK",this.rowCount=t,this.columnCount=e}}class Un extends Hn{constructor(){super(...arguments),this.hoveredRows=1,this.hoveredCols=1}render(t,e){return t("vega-popover",{trigger:"click",alignment:"start",placement:"bottom",showArrow:!1,ref:t=>{t&&(this.tablePickerPopoverRef=t,lt.addUniqueObserverToNode(t,pt,(()=>{this.resetPicker()})))}},[t("div",{slot:"popover"},[this.generatePickerStyles(t),this.generateTableSizeGrid(t)]),t("div",{slot:"popover-content"},e)])}generateTableSizeGrid(t){const e=[];for(let n=1;n<=10;n++)for(let i=1;i<=10;i++)e.push(t("button",{class:"rte-table-picker__cell","data-row":n,"data-col":i,onMouseenter:this.handlePickerCellHover.bind(this,n,i),onClick:this.handlePickerClick.bind(this,n,i)},[]));return t("div",{class:"rte-table-picker"},[t("div",{class:"rte-table-picker__grid",ref:t=>{t&&(this.tablePickerGridRef=t)},style:{gridTemplateColumns:"repeat(10, 16px)",gridTemplateRows:"repeat(10, 16px)"}},e),t("div",{class:"rte-table-picker__hint"},t("vega-hint",{ref:t=>{t&&(this.selectedHintRef=t)}},[`${this.hoveredRows} × ${this.hoveredCols}`]))])}generatePickerStyles(t){return t("style",{},["\n.rte-table-picker__grid { display: grid; gap: 2px; }\n.rte-table-picker__cell {\n box-sizing: border-box;\n border: 1px solid #ccc;\n background-color: transparent;\n cursor: pointer;\n}\n.rte-table-picker__cell:hover {\n background-color: #cae1fc;\n}\n.rte-table-picker__cell.active {\n background-color: #cae1fc;\n}\n.rte-table-picker__hint {\n text-align: center;\n}\n "])}createTable(t,e){const n=this.getTableExtensionContext();if(n){const{host:i,getSelectedNodes:s}=n,r=s()[0],a=new Gn(t,e);r?r.parent&&r.parent.apply(a):i.value.apply(a),a.nextFocusNode&&i.value.apply(new g(a.nextFocusNode,1))}}handlePickerClick(t,e){this.createTable(t,e),this.tablePickerPopoverRef.hide()}handlePickerCellHover(t,e){this.hoveredRows=t,this.hoveredCols=e,Array.from(this.tablePickerGridRef.children).forEach((t=>{const e=Number(t.dataset.row),n=Number(t.dataset.col);e<=this.hoveredRows&&n<=this.hoveredCols?t.classList.add("active"):t.classList.remove("active")})),this.selectedHintRef.textContent=`${this.hoveredRows} × ${this.hoveredCols}`}resetPicker(){this.handlePickerCellHover(1,1)}}class Zn extends Ue{render(t,e){return new Un(e).render(t,super.renderButton(t,e,{showArrowIcon:!0,icon:"rte-table",tooltip:{text:"Insert table"}}))}isDisabled(t){let e=super.isDisabled(t);const n=this.getExtensionContext(t.host);if(n){const{host:t,getSelectedNodes:i}=n,s=i()[0];let r=!0;s&&(r=E.canHandle("INSERT_TABLE_BLOCK",s.parent)&&E.canHandle(P.INSERT_CHILDREN_AFTER,s.parent.parent)),e=t.disabled||!r}return e}handleButtonClick(){}handleDropdownClick(){}}at.register({"rte-table":{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="M48 264V160H232V264H48zm0 48H232V432H64c-8.8 0-16-7.2-16-16V312zM280 432V312H464V416c0 8.8-7.2 16-16 16H280zM464 264H280V160H464V264zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>'}});class Jn extends j{handleAction(t,e){const n=this.createTableBlock(t.rowCount,t.columnCount),i=super.createNewParagraph(""),s=this.getReferenceBlock(e);s?s.parent.apply(new B(s,n,i)):e.apply(new M([n,i])),t.nextFocusNode=n.getFirstNode()}createTableBlock(e,n){const i=Math.max(e,1),s=Math.max(n,1);return At.from({id:t(),type:"table-block",children:[Et(i,s)]})}getReferenceBlock(t){if(!(t instanceof b))return t}}class Yn extends dn{canIntercept(t,e){const n=e.parent;return n instanceof Ot&&1===n.children.length&&0===t.startOffset}intercept(){}}class Qn extends j{handleAction(t){const e=t.tableBlock,n=e.parent,i=super.getRootContent(e),s=super.createNewParagraph("");n.apply(new B(e,s)),n.apply(new K(e)),i&&i.apply(new g(s.getLastNode()))}}class Xn extends dn{canIntercept(t,e){return t.entityToBeRemoved&&1===e.children.length}intercept(e,n,i){if(!(n.entityToBeRemoved instanceof R)){const e=R.from({id:t(),type:"paragraph",nodes:[{id:t(),type:"text",text:""}]});return i.children=[],void i.apply(new M([e]))}n.entityToBeRemoved.apply(new M([new O(t(),"",n.entityToBeRemoved)]))}}class ti extends st{doRender(t,e){return t("caption",{key:e.id,ref:this.useRef(e),style:e.getStyles(),class:[e.getClasses(),e.isNotEmpty()?null:"showPlaceholder"].filter(nt).join(" "),"data-placeholder":"Enter table caption"})}}class ei extends j{getRowsMaxCellCount(t){let e=0;for(const n of t){let t=0;for(const e of n.children)t+=e.colSpan;e=Math.max(e,t)}return e}getRowCellStartCols(t){const e=this.getRowsMaxCellCount(t),n=new Array(t.length),i=new Array(e).fill(0);for(let e=0;e<t.length;e++){const s=t[e].children,r=new Array(s.length);let a=0;for(let t=0;t<s.length;t++){const e=s[t];for(;a<i.length&&i[a]>0;)a++;r[t]=a;const n=Math.max(e.colSpan,ei.DEFAULT_CELLSPAN);if(e.rowSpan>ei.DEFAULT_CELLSPAN)for(let t=0;t<n;t++){const n=a+t;n<i.length&&(i[n]=Math.max(i[n],e.rowSpan))}a+=n}n[e]=r;for(let t=0;t<i.length;t++)i[t]>0&&i[t]--}return n}updateCellSpan(t,e,n){const i=t.getCustomAttributesAnnotation();if(n<=ei.DEFAULT_CELLSPAN){if(i){const n=i.render();delete n[e],t.annotationMap.set($.CUSTOM_ATTRIBUTE,new W(n))}}else{const s=i?i.render():{};s[e]=n.toString(),t.annotationMap.set($.CUSTOM_ATTRIBUTE,new W(s))}}insertMovedCells(t,e,n){t.forEach(((t,i)=>{const s=e[i];if(s){const e=n[i]||[];t.sort(((t,e)=>t.logicalStartCol===e.logicalStartCol?e.cellIndex-t.cellIndex:e.logicalStartCol-t.logicalStartCol)),t.forEach((t=>{const{cell:n,logicalStartCol:i}=t;if(0===s.children.length)return s.apply(new M([n])),void(e[0]=i);const r=e.findIndex((t=>t>=i));-1===r?(s.apply(new B(s.children[s.children.length-1],n)),e.push(i)):0===r?(s.apply(new H(s.children[0],n)),e.unshift(i)):(s.apply(new H(s.children[r],n)),e.splice(r,0,i))}))}}))}splitRowsBySection(t){const e=[],n=[];return t.forEach((t=>{t.parent instanceof It?e.push(t):n.push(t)})),[e,n]}buildSelectedIndices(t,e){return new Set(t.map((t=>e.indexOf(t))).filter((t=>t>=0)))}intersectsRemovalRange(t,e,n,i){return t<=i&&e>=n}countRemovedRows(t,e,n){let i=0;for(let s=t;s<=e;s++)n.has(s)&&i++;return i}getHeadCellLength(t){let e=0;for(let n=0;n<t.children.length;n++){const i=t.children[n];if(!(i instanceof xt))break;e+=i.colSpan}return e}getTheStartSpanCell(t,e,n,i){const s={rowIndex:n};for(let r=n;r>=0;r--){const n=e[r];if(n.includes(i)){s.cell=t[r].children[n.indexOf(i)],s.rowIndex=r;break}}return s}getDefaultCellBlockTemplate(e,n,i=1){const s=ye({colspan:n>1?n.toString():null,rowspan:i>1?i.toString():null}),r=t(),a={id:r,type:e,children:[{id:`${r}-p`,type:"paragraph",nodes:[{id:`${r}-p-t`,type:"text",text:""}]}]};return Object.keys(s).length>0&&(a.annotations={customAttribute:s}),a}getSortedValuesByNumericKey(t){return Array.from(t.entries()).sort((([t],[e])=>t-e)).map((([,t])=>t))}}ei.DEFAULT_CELLSPAN=1;class ni extends ei{handleAction(t,e){const{rowsToBeRemoved:n}=t,i=this.getFutureFocusRow(n[0],n[n.length-1],e),s=this.splitRowsBySection(n);if(this.removeRows(s[0]),this.removeRows(s[1]),i){const t=this.getRootContent(e);if(t){const e=i.getLastNode();t.apply(new g(e,e.getRangeEndOffset()))}}}removeRows(t){if(0===t.length)return;const e=t[0].parent,n=e.children,i=this.buildSelectedIndices(t,n);if(i.size>0){if(n.length===t.length)return void e.parent.apply(new K(e));const s=Math.min(...i),r=Math.max(...i),a=this.getRowCellStartCols(n),o=this.collectCellsToMove(n,a,i,s,r);this.insertMovedCells(o,n,a),t.forEach((t=>{t.parent.apply(new K(t))}))}}collectCellsToMove(t,e,n,i,s){const r=new Map,a=t.length;for(let o=0;o<a;o++){const l=t[o],c=l.children.length;for(let t=0;t<c;t++){const c=l.children[t],h=c.rowSpan;if(h<=ei.DEFAULT_CELLSPAN)continue;const d=o+h-1;if(!this.intersectsRemovalRange(o,d,i,s))continue;const u=h-this.countRemovedRows(o,d,n);if(o<i&&d>=i)this.updateCellSpan(c,"rowspan",u);else if(o>=i&&d>s){const i=s+1;if(i<a&&!n.has(i)){const n=e[o][t];r.has(i)||r.set(i,[]),r.get(i).push({cell:this.cloneCellWithRowSpan(c,u),newRowSpan:u,cellIndex:t,logicalStartCol:n})}}}}return r}cloneCellWithRowSpan(t,e){const n=t.clone(t.parent);return this.updateCellSpan(n,"rowspan",e),n}getFutureFocusRow(t,e,n){const i=n.children.filter((t=>t instanceof It||t instanceof Rt)).flatMap((t=>t.children)),s=i.indexOf(t),r=i.indexOf(e);return i[s-1]?i[s-1]:i[r+1]?i[r+1]:void 0}}class ii{constructor(){this.dragging=!1,this.anchorCell=null,this.selectedCells=new Set,this.syncRTESelectionWithDebounce=xe(this.syncRTESelection,100,this),this.handleSelectionChangeWithDebounce=xe(this.handleSelectionChange,10,this),this.filterSelectedCell=(t,e)=>{const n=new Set;if(t.intersectsNode(e)){if(e.nodeType===Node.TEXT_NODE){const t=_.getEntityByDOM(e.parentElement);if(t){const e=Nt(t.parent,Ot);if(e)return n.add(e),Array.from(n)}}e.childNodes.forEach((e=>this.filterSelectedCell(t,e).forEach((t=>{n.add(t)}))))}return Array.from(n)},this.updateSelectedStyles=(t,e)=>{const n=1===e?"v-rte-table-cell-focused":"v-rte-table-cell-selected",i=_.getDOMByEntity(t);i&&i.classList.add(n)},this.handleDocMouseUp=()=>{this.endDrag();const t=me();t&&t.removeEventListener("mouseup",this.handleDocMouseUp)},this.handleContentClick=()=>{this.clearSelection();const t=this.context.host.shadowRoot.querySelector(".rich-text-editor-container");t&&t.removeEventListener("mousedown",this.handleContentClick,!0)}}static computeRectRange(t,e){const n=t.parent.parent.parent;if(n!==e.parent.parent.parent)return[];const i=[];n.children.forEach((t=>{t.children.forEach((t=>i.push(t)))}));const{grid:s,cellMeta:r}=ii.buildCellGrid(i),a=r.get(t),o=r.get(e);if(!a||!o)return[];const l=a.row+a.rowSpan-1,c=a.col,h=a.col+a.colSpan-1,d=o.row+o.rowSpan-1,u=o.col,p=o.col+o.colSpan-1,f=Math.min(a.row,o.row),w=Math.max(l,d),g=Math.min(c,u),b=Math.max(h,p),m=new Set;for(let t=f;t<=w;t++){const e=s[t];for(let t=g;t<=b;t++){const n=e[t];n&&m.add(n)}}return Array.from(m)}static getCellSpan(t){let e=1,n=1;const i=t.getAnnotationByType($.CUSTOM_ATTRIBUTE);if(i&&i.customAttribute){const t=i.customAttribute;t.rowSpan&&(e=parseInt(t.rowSpan,10)),t.colSpan&&(n=parseInt(t.colSpan,10))}if(1===e&&1===n){const i=_.getDOMByEntity(t);if(i){const t=i.getAttribute("rowSpan"),s=i.getAttribute("colSpan");t&&(e=parseInt(t,10)),s&&(n=parseInt(s,10))}}return{rowSpan:Number.isFinite(e)&&e>0?e:1,colSpan:Number.isFinite(n)&&n>0?n:1}}static buildCellGrid(t){const e=[],n=new Map;for(let i=0;i<t.length;i++){const s=t[i];e[i]||(e[i]=[]);let r=0;for(let t=0;t<s.children.length;t++){const a=s.children[t];for(;e[i][r];)r+=1;const{rowSpan:o,colSpan:l}=ii.getCellSpan(a);n.set(a,{row:i,col:r,rowSpan:o,colSpan:l});for(let t=0;t<o;t++){const n=i+t;e[n]||(e[n]=[]);for(let t=0;t<l;t++)e[n][r+t]=a}r+=l}}return{grid:e,cellMeta:n}}destroy(){this.removeSelectionChangeListener()}init(t){this.context=t,this.addSelectionChangeListener()}setSelectedCells(t){const e=Array.from(this.selectedCells)[0]||t[0];this.updateSelectedCells(t),this.emitCellSelectionChange(e,t)}getSelectedCells(){return Array.from(this.selectedCells)}focusCell(t){const e=_.getEntityByDOM(t);e&&(this.anchorCell=e,this.setSelectedCells([e]),this.addListeners())}dragOver(t){if(!this.anchorCell)return;const e=ii.computeRectRange(this.anchorCell,t);e.length>1&&this.startDrag(),this.dragging&&(this.preventTextSelection(e),this.updateSelectedCells(e,{debounceSync:!0}))}endDrag(){this.dragging=!1,this.anchorCell=null}emitCellSelectionChange(t,e){const n=Nt(t,At);if(n){const t=_.getDOMByEntity(n);t&&de.notify(ct.getSubject(t,fe),{host:t,detail:e})}}clearSelection(){this.selectedCells.forEach((t=>{const e=_.getDOMByEntity(t);e&&e.classList.remove("v-rte-table-cell-selected","v-rte-table-cell-focused")})),this.selectedCells.clear()}addSelectionChangeListener(){const t=me();t&&t.addEventListener("selectionchange",this.handleSelectionChangeWithDebounce)}removeSelectionChangeListener(){const t=me();t&&t.removeEventListener("selectionchange",this.handleSelectionChangeWithDebounce)}handleSelectionChange(){if(this.dragging)return void this.syncRTESelectionWithDebounce();const t=this.context.getSelection();if(t.rangeCount>0){const e=t.getRangeAt(0),n=e.commonAncestorContainer;if(s(n,"table")){const t=this.filterSelectedCell(e,n);this.setSelectedCells(t)}}}startDrag(){this.dragging=!0}updateSelectedCells(t,{debounceSync:e}={}){this.clearSelection(),t.forEach((e=>{this.selectedCells.add(e),this.updateSelectedStyles(e,t.length)})),e?this.syncRTESelectionWithDebounce():this.syncRTESelection()}syncRTESelection(){const t=Array.from(this.selectedCells),e=t.flatMap((t=>t.children.flatMap((t=>t.children.flatMap((t=>{if(t instanceof D)return t})))))).filter(nt);t.length>1&&this.context.setSelectedNodes(e,{startNode:e[0],endNode:e[e.length-1],startOffset:0,endOffset:e[e.length-1].getRangeEndOffset()})}preventTextSelection(t){const e=this.context.getSelection();if(e.removeAllRanges(),t.length>0){const n=_.getDOMByEntity(t[0]);if(n){const t=new Range;t.setStart(n,0),t.setEnd(n,0),e.addRange(t)}}}addListeners(){const t=me();t&&t.addEventListener("mouseup",this.handleDocMouseUp);const e=this.context.host.shadowRoot.querySelector(".rich-text-editor-container");e&&e.addEventListener("mousedown",this.handleContentClick,!0)}}class si extends ei{handleAction(t,e){const{selectedRows:n}=t,[i,s]=this.splitRowsBySection(n);s.length>0?this.convertToHeaderRows(s,e):this.revertToBodyRows(i,e);const r=this.getRootContent(e);if(r){const t=n[0].getFirstNode();t&&r.apply(new g(t,0))}}convertToHeaderRows(e,n){let i=n.children.find((t=>t instanceof It));const s=e[0].parent;i||(i=It.from({id:t(),type:"table-head",children:[]}),n.apply(new H(s,i)));const r=s.children.indexOf(e[e.length-1]),a=s.children.slice(0,r+1),o=this.buildSelectedIndices(a,s.children),l=Math.min(...o),c=Math.max(...o);if(o.size>0){if(o.size<s.children.length){const t=this.getRowCellStartCols(s.children),e=this.collectCellsToMove(s.children,t,o,l,c);this.insertMovedCells(e,s.children,t)}this.convertBodyRowsToHeaderRows(s,i,a)}}convertBodyRowsToHeaderRows(t,e,n){for(let e=0;e<n.length;e++){const i=n[e];i.children=i.children.map((t=>this.convertTdToTh(t))),t.apply(new K(i))}e.apply(new M(n))}revertToBodyRows(e,n){let i=n.children.find((t=>t instanceof Rt));const s=e[0].parent;i||(i=Rt.from({id:t(),type:"table-body",children:[]}),n.apply(new B(s,i)));const r=s.children.indexOf(e[0]),a=s.children.slice(r),o=this.buildSelectedIndices(a,s.children);if(o.size>0){const t=this.getRowCellStartCols(s.children),e=this.collectCellsToMove(s.children,t,o,Math.min(...o),Math.max(...o));this.insertMovedCells(e,s.children,t),this.convertHeadRowsToBodyRows(s,i,a)}}convertHeadRowsToBodyRows(t,e,n){const i=e.children[0],s=this.getRowCellStartCols(n);for(let r=0;r<n.length;r++){const a=n[r];t.apply(new K(a));const o=i?this.getHeadCellLength(i):0;a.children=this.convertThToTd(a,s[r],o),i&&e.apply(new H(i,a))}i||e.apply(new M(n))}collectCellsToMove(t,e,n,i,s){const r=new Map,a=t.length;for(let o=0;o<a;o++){const l=t[o],c=l.children.length;for(let t=0;t<c;t++){const c=l.children[t],h=c.rowSpan;if(h<=ei.DEFAULT_CELLSPAN)continue;const d=o+h-1;if(!this.intersectsRemovalRange(o,d,i,s))continue;const u=this.countRemovedRows(o,d,n),p=h-u;if(o<i&&d>=i){this.updateCellSpan(c,"rowspan",p);const s=i;if(s<a&&n.has(s)){const n=e[o][t];r.has(s)||r.set(s,[]),r.get(s).push({cell:this.cloneCellWithRowSpan(c,u),newRowSpan:u,cellIndex:t,logicalStartCol:n})}}else if(o>=i&&d>s){this.updateCellSpan(c,"rowspan",u);const i=s+1;if(i<a&&!n.has(i)){const n=e[o][t];r.has(i)||r.set(i,[]),r.get(i).push({cell:this.cloneCellWithRowSpan(c,p),newRowSpan:p,cellIndex:t,logicalStartCol:n})}}}}return r}convertTdToTh(t){if(t instanceof xt)return t;const e=xt.from(t.toJSON());return e.parent=t.parent,e}convertThToTd(t,e,n){return t.children.map(((i,s)=>{let r=i;const a=e[s]<n,o=i.toJSON();return r=a?i:Ot.from(this.deleteHeadCellDefaultBackground(o)),r.parent=t,r}))}cloneCellWithRowSpan(e,n){const i=e.clone(e.parent);i.id=t(),i.children=[];const s=this.createNewParagraph("");return s&&i.apply(new M([s])),this.updateCellSpan(i,"rowspan",n),i}deleteHeadCellDefaultBackground(t){var e;if(t&&t.annotations&&t.annotations.customStyle){delete t.annotations.tableCell;const n=t.annotations.customStyle.backgroundColor,i=jt.getDefaultBackgroundColor();!n||n!==i&&(null===(e=r(n))||void 0===e?void 0:e.toUpperCase())!==i||delete t.annotations.customStyle.backgroundColor}return t}}class ri extends Bt{handleAction(t,e){const{insertDirection:n,tableCellInsertRange:i}=t,s=new Set(i.map((t=>t.id))),r=Mt(e),a=Dt(r),[o,l]=this.getBoundaryCellColumnRange(i,r,a),c=n===Pt.LEFT?o:l+1,h=this.hasSelectedCellInsideTargetColumn(r,a,c,s),d=new Set;r.forEach(((t,i)=>{if(d.has(i))return;const o=this.findExpandableCell(t,i,c,a,n,s,h);if(o){const t=o.rowSpan;if(_t(o,o.colSpan+1,o.rowSpan,e,!0),t>1)for(let e=1;e<t;e++)d.add(i+e);return}const l=this.findInsertPosition(t,i,c,a,r);if(l){const e=this.generateTableCell(l.templateCell);t.apply(l.before?new H(l.anchorCell,e):new B(l.anchorCell,e))}}))}findExpandableCell(t,e,n,i,s,r,a){const o=i[e],l=t.children.reduce(((t,e)=>t+(r.has(e.id)?1:0)),0);for(const c of t.children){const t=o.indexOf(c.id),h=t+c.colSpan,d=n===h,u=e+c.rowSpan>=i.length,p=r.has(c.id),f=n>t&&n<h;if(s===Pt.LEFT?f:f&&(!p||!u)||d&&c.colSpan>1&&p&&!u&&1===l&&!a)return c}return null}hasSelectedCellInsideTargetColumn(t,e,n,i){for(let s=0;s<t.length;s++){const r=t[s],a=e[s];for(const t of r.children){if(!i.has(t.id))continue;const e=a.indexOf(t.id),s=e+t.colSpan;if(n>e&&n<s)return!0}}return!1}findInsertPosition(t,e,n,i,s){const r=i[e];let a=t.children[0];if(n>=0&&n<r.length){const t=Ht(s,r[n]);t&&(a=t)}let o=0;for(let e=0;e<t.children.length;e++){const i=t.children[e];for(;o<r.length&&r[o]!==i.id;)o++;if(o>=n)return{anchorCell:i,templateCell:a,before:!0};const s=o+i.colSpan;if(s>n||e===t.children.length-1)return{anchorCell:i,templateCell:a,before:!1};o=s}return null}generateTableCell(t){return t instanceof xt?xt.from(Vt(t.type)):Ot.from(Vt(t.type))}}class ai extends Bt{handleAction(t,e){const n=Mt(e),i=Dt(n),[s,r]=this.getBoundaryCellColumnRange(t.tableCellDeleteRange,n,i),a=Math.max(n.indexOf(t.tableCellDeleteRange[t.tableCellDeleteRange.length-1].parent),0),{coveredCellIds:o,coveredCells:l,adjustmentCellInfo:c}=this.getDeleteCellsInfo(n,s,r,i),h=this.findNextFocusableCell(n,i,s,r,o,a);this.deleteCells(l,c,e);const d=this.getRootContent(e),u=Kt(h);d&&u&&d.apply(new g(u))}getDeleteCellsInfo(t,e,n,i){const s=[],r=new Set,a=[],o=Ft(i);return t.forEach((t=>{t.children.forEach((t=>{const i=o.get(t.id);if(void 0===i)return;const{colSpan:l,rowSpan:c}=$t(t),h=this.getColumnOverlapCount(i,l,e,n);if(h<=0)return;if(h===l)return s.push(t),void r.add(t.id);const d=Math.max(1,l-h);a.push({cell:t,nextColSpan:d,rowSpan:c})}))})),{coveredCells:s,coveredCellIds:r,adjustmentCellInfo:a}}findNextFocusableCell(t,e,n,i,s,r){for(let a=0;a<t.length;a++){const o=this.findFocusableCellIdInGridRow(e[(r+a)%t.length],n,i,s);if(!o)continue;const l=Ht(t,o);if(l)return l}return null}findFocusableCellIdInGridRow(t,e,n,i){for(let e=n+1;e<t.length;e++){const n=t[e];if(n&&!i.has(n))return n}for(let n=e-1;n>=0;n--){const e=t[n];if(e&&!i.has(e))return e}return null}deleteCells(t,e,n){t.forEach((t=>{t.parent.apply(new K(t))}));const i=new Set;e.forEach((({cell:t,nextColSpan:e,rowSpan:s})=>{i.add(t.id),_t(t,e,s,n)})),this.normalizeRemainingCellSpans(n,i)}normalizeRemainingCellSpans(t,e){Mt(t).forEach((n=>{n.children.forEach((n=>{const{colSpan:i,rowSpan:s}=$t(n);if(e.has(n.id)){const e=zt(t);if(!(s>1&&i===e))return}_t(n,i,s,t)}))}))}getColumnOverlapCount(t,e,n,i){const s=t+e-1,r=Math.max(t,n),a=Math.min(s,i);return r<=a?a-r+1:0}}class oi extends A{constructor(t){super(),this.isFlushable=!0,this.type="CREATE_SEGMENT_TABLE_CELL",this.payload=t}}class li extends j{handleAction(t,e){const{table:n,sourceCell:i,colSpan:s,cellType:r,keepSourceContent:a}=t.payload,o=a?this.convertCellType(i,r):Wt(r);_t(o,s,i.rowSpan,n),e.apply(new H(i,o))}convertCellType(t,e){return"table-head-cell"===e?xt.from(t.toJSON()):Ot.from(t.toJSON())}}class ci extends j{handleAction(t,e){const{cell:n,targetCellType:i}=t.payload,s="table-head-cell"===i?xt.from(n.toJSON()):Ot.from(n.toJSON());e.apply(new H(n,s)),e.apply(new K(n))}}class hi extends j{handleAction(t,e){const{table:n,cell:i,col:s,cellStartCol:r,endCol:a,targetCellType:o}=t.payload,l=r+i.colSpan-1,c=s>r?s-r:0,h=Math.min(a,l),d=h-s+1,u=l-h;c>0&&e.apply(new oi({table:n,sourceCell:i,colSpan:c,cellType:i.type,keepSourceContent:!0})),e.apply(new oi({table:n,sourceCell:i,colSpan:d,cellType:o,keepSourceContent:0===c})),u>0&&e.apply(new oi({table:n,sourceCell:i,colSpan:u,cellType:i.type,keepSourceContent:0===c&&d===i.colSpan})),e.apply(new K(i))}}class di extends Bt{handleAction(t,e){const n=Mt(e),i=Dt(n),s=Ft(i),[r,a]=this.getBoundaryCellColumnRange(t.tableCellSelectRange,n,i),o=[],l=new Set;n.forEach((t=>{t.children.forEach((t=>{const e=s.get(t.id);void 0!==e&&e>=r&&e<=a&&!l.has(t.id)&&(l.add(t.id),o.push(t))}))})),t.selectCellCallback(o)}}class ui extends dn{canIntercept(t){return t.childrenToBeInserted.some((t=>!(t instanceof Ot)))}intercept(){}}class pi extends j{handleAction(t,e){const{targetCell:n,mergeCells:i,colSpan:s,rowSpan:r,direction:a}=t;this.mergeContentToTargetCell(n,i),_t(n,s,r,e),this.deleteOtherSelectedCells(i,n),a!==qt.MERGE_CELL_LEFT&&a!==qt.MERGE_CELL_RIGHT&&r>1&&this.clearRowSpanIfUniformAcrossRow(n,e,r);const o=this.getRootContent(e),l=Kt(n);o&&l&&o.apply(new g(l))}mergeContentToTargetCell(t,e){const n=e.flatMap((t=>t.children)),i=n.filter((t=>t.isNotEmpty()));t.children=(i.length>0?i:[n[0]]).map((e=>e.clone(t)))}deleteOtherSelectedCells(t,e){t.forEach((t=>{t!==e&&t.parent.apply(new K(t))}))}clearRowSpanIfUniformAcrossRow(t,e,n){const i=t.parent.parent.children,s=Dt(i),r=[];for(let e=0;e<s.length;e++)s[e].includes(t.id)&&r.push(e);if(r.length>1){const t=r[0],a=t+n-1,o=new Set;let l=Number.POSITIVE_INFINITY;for(let e=0;e<s[0].length;e++){let n=s[t][e],i=1,r=!1;for(let c=t+1;c<=a;c++)s[c][e]!==n?(i>1&&(r=!0,l=Math.min(l,i),o.add(n)),i=1,n=s[c][e]):i++;if(i<2&&!r){o.clear();break}i>1&&(l=Math.min(l,i),o.add(n))}o.size>0&&i.forEach((t=>{t.children.forEach((t=>{if(o.has(t.id)){const{rowSpan:n,colSpan:i}=$t(t);_t(t,i,n-l+1,e)}}))}))}}}class fi extends v{canHandle(t,e){const n=t[e];return n&&"TABLE"===n.tagName?1:0}handle(e,n){return At.from({id:t(),type:"table-block",annotations:y.generate(At,e[0],n),children:[]},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}}class wi extends m{canHandle(t,e){const n=t[e];return n&&"THEAD"===n.tagName?1:0}handle(e,n){return It.from({id:t(),type:"table-head",annotations:y.generate(It,e[0],n),children:[]},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}}class gi extends m{canHandle(t,e){const n=t[e];return n&&"TBODY"===n.tagName?1:0}handle(e,n){return Rt.from({id:t(),type:"table-body",annotations:y.generate(Rt,e[0],n),children:[]},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}}class bi extends m{canHandle(t,e){const n=t[e];return n&&"TR"===n.tagName?1:0}handle(e,n){return Gt.from({id:t(),type:"table-row",annotations:y.generate(Gt,e[0],n),children:[]},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}}class mi extends m{canHandle(t,e){const n=t[e];return!n||"TD"!==n.tagName&&"TH"!==n.tagName?0:1}handle(e,n){const i=e[0],s=[{id:t(),type:"paragraph",annotations:{internalWrapper:n&&!n.autoMatchFormat},nodes:[{id:t(),type:"text",annotations:{plainText:n&&!n.autoMatchFormat},text:""}]}];return"TH"===i.tagName?xt.from({id:t(),type:"table-head-cell",annotations:this.getTableHeadCellAnnotations(i,n),children:s},n):Ot.from({id:t(),type:"table-cell",annotations:y.generate(Ot,i,n),children:s},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}getTableHeadCellAnnotations(t,e){const n=y.generate(xt,t,e);return n&&n.tableCell&&Tt.getColorKey(n.tableCell.backgroundColor,!0)===gt.key&&(delete n.tableCell.backgroundColor,n.customStyle&&delete n.customStyle.backgroundColor),n}}class vi extends v{canHandle(t,e){const n=t[e];return n&&n.parentElement&&"TABLE"===n.parentElement.tagName&&"CAPTION"===n.tagName?1:0}handle(e,n){const i=this.getTableCaptionAnnotations(e[0],n);return Ln.from({id:t(),type:"table-caption",annotations:Object.assign(Object.assign({},i),{caption:!0}),children:[]},n)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}getTableCaptionAnnotations(t,e){const n=y.generate(Ln,t,e);return n&&n.customStyle&&n.customStyle.backgroundColor&&Tt.getColorKey(n.customStyle.backgroundColor,!0)===gt.key&&delete n.customStyle.backgroundColor,n}}class yi extends S{getBackgroundColor(t){return t.style.backgroundColor?Tt.getColorKey(t.style.backgroundColor)||t.style.backgroundColor:null}getBorder(t){const e=t.style,n=e.borderStyle,i=e.borderWidth,s=e.borderColor;if(s||n||i){const t="initial"===s?"":s;return{style:"initial"===n?"":n,width:"initial"===i?"":i,color:Tt.getColorKey(t)||t}}return null}getWidth(t){if(t.style.width)return t.style.width;const e=t.getAttribute("width");return e?/^\d+$/.test(e)?`${e}px`:e:null}getHeight(t){if(t.style.height)return t.style.height;const e=t.getAttribute("height");return e?/^\d+$/.test(e)?`${e}px`:e:null}}class xi extends yi{canHandle(t){return"RTETableBlock"===t.dtoName}handle(t){const e=ye({backgroundColor:this.getBackgroundColor(t),border:this.getBorder(t),width:this.getWidth(t),height:this.getHeight(t),alignment:this.getAlignment(t)});return Object.keys(e).length>0?{table:e}:{}}getAlignment(t){const e=t.classList;if(e.contains("v-rte--extension-table-align-left"))return"left";if(e.contains("v-rte--extension-table-align-center"))return"center";if(e.contains("v-rte--extension-table-align-right"))return"right";const n=t.style,i=n.marginLeft,s=n.marginRight;if("auto"===i&&"auto"===s)return"center";if("0"===i||"0px"===i)return"left";if("0"===s||"0px"===s)return"right";const r=t.getAttribute("align");return r&&["left","center","right"].includes(r)?r:null}}class Ci extends yi{canHandle(t){return"RTETableCellBlock"===t.dtoName}handle(t){const e=ye({backgroundColor:this.getBackgroundColor(t),padding:this.getPadding(t),border:this.getBorder(t),width:this.getWidth(t),height:this.getHeight(t),textAlign:this.getTextAlign(t),verticalAlign:this.getVerticalAlign(t),minWidth:this.getMinWidth(t),boxSizing:this.getBoxSizing(t)});return Object.keys(e).length>0?{tableCell:e}:{}}getMinWidth(t){return t.style.minWidth?t.style.minWidth:null}getBoxSizing(t){return t.style.boxSizing?t.style.boxSizing:null}getPadding(t){return t.style.padding?t.style.padding:null}getTextAlign(t){if(t.style.textAlign){const e=t.style.textAlign;if(["left","center","right","justify"].includes(e))return e}const e=t.getAttribute("align");return e&&["left","center","right","justify"].includes(e)?e:null}getVerticalAlign(t){if(t.style.verticalAlign){const e=t.style.verticalAlign;if(["top","middle","bottom"].includes(e))return e}return null}}class Li extends Ci{canHandle(t){return"RTETableHeadCellBlock"===t.dtoName}}class ki extends j{handleAction(t,e){const n=t.toAnnotation(),i=this.getDOMByEntity(e);if(i){const t=i.closest(".v-rte--extension-table-container"),{backgroundColorAnnotation:s,width:r,height:a}=n;i.style.backgroundColor=s.renderStyle().color,i.style.border=n.borderStr,i.style.width=r,i.style.height=a;const o=n.renderAlignmentStyle().margin;i.style.margin=o,t&&(t.style.width=r,t.style.height=a,t.style.margin=o),this.updateCustomStyleAnnotation(e,["backgroundColor","border","width","height","margin"])}}}class Si extends j{handleAction(t,e){const n=t.toAnnotation(),i=this.getDOMByEntity(e);if(i){const{width:t,height:s,borderStr:r,padding:a,textAlign:o,verticalAlign:l}=n,c=n.renderStyle().backgroundColor||"";i.style.backgroundColor=c,i.style.border=r,i.style.width=t,i.style.height=s,i.style.padding=a,i.style.textAlign=o,i.style.verticalAlign=l,this.updateCustomStyleAnnotation(e,["backgroundColor","border","width","height","padding","textAlign","verticalAlign"])}}}class Ti extends j{handleAction(t,e){const n=e.parent,i=n.parent,s=Nt(n,At),r=Mt(s),a=r.indexOf(n),{colSpan:o,rowSpan:l}=$t(e),c=Ut(e,r),h=Math.ceil(l/2),d=Math.max(1,l-h),u=1===l;_t(e,o,h,s);const p=a+h,f=Wt(e.type);if(_t(f,o,d,s),u){const t=this.createNewRowWithCell(i,f),a=i.children.indexOf(n);i.apply(new B(i.children[a],t)),r.splice(p,0,t),this.updateCellsSpanningThroughInsertionPoint(r,p,e,s)}else{const t=r[p],e=this.findInsertPosition(t,c,r,p);t.children.splice(e,0,f),f.parent=t}}findInsertPosition(t,e,n,i){let s=0;for(let t=0;t<i;t++){const r=n[t];for(const a of r.children){const{colSpan:r,rowSpan:o}=$t(a);t+o>i&&Ut(a,n)<e&&(s+=r)}}let r=s;for(let n=0;n<t.children.length;n++){if(r>=e)return n;const i=t.children[n],{colSpan:s}=$t(i);r+=s}return t.children.length}createNewRowWithCell(e,n){const i={id:t(),type:"table-row",children:[]},s=Gt.from(i);return s.parent=e,s.children.push(n),n.parent=s,s}updateCellsSpanningThroughInsertionPoint(t,e,n,i){for(let s=0;s<e;s++){const r=t[s];for(const t of r.children){if(t===n)continue;const{colSpan:r,rowSpan:a}=$t(t);s+a>=e&&_t(t,r,a+1,i)}}}}class Ai extends j{handleAction(t,e){const n=e.parent,i=Nt(n,At),s=Mt(i),r=s.indexOf(n),{colSpan:a,rowSpan:o}=$t(e),l=Ut(e,s),c=l+a-1,h=Math.ceil(a/2),d=Math.floor(a/2);_t(e,h,o,i);const u=Wt(e.type);_t(u,d,o,i),n.apply(new B(e,u));const p=1===a?1:0;p>0&&this.updateOtherRowsCells(s,r,l,c,o,p,i)}updateOtherRowsCells(t,e,n,i,s,r,a){for(let o=0;o<t.length;o++){const l=t[o];if(!(o>=e&&o<e+s))for(const e of l.children){const s=Ut(e,t),{colSpan:o,rowSpan:l}=$t(e);if(s+o-1>=n&&s<=i){_t(e,o+r,l,a);break}}}}}class Ei extends ei{handleAction(e,n){const{selectedRows:i}=e,s=i[i.length-1];let r=n.children.find((t=>t instanceof Rt));const a={id:t(),type:"table-row",children:[]};let o=0,l=null;r?(l=r.children[0],o=this.getHeadCellLength(l)):(r=Rt.from({id:t(),type:"table-body",children:[]}),n.apply(new M([r])));const c=s.parent.children,h=this.getRowsMaxCellCount(c);if(this.getRowsMaxCellCount([s])<h){const t=c.indexOf(s),e=this.getRowCellStartCols(c),n=new Map;for(let i=0;i<h;i++){const s=i<o?"table-head-cell":"table-cell",{cell:r}=this.getTheStartSpanCell(c,e,t,i);if(r){const t=r.colSpan;n.set(i,this.getDefaultCellBlockTemplate(s,t)),i+=t-1}}a.children=this.getSortedValuesByNumericKey(n)}else a.children=this.createTableCells(s,o);const d=l?new H(l,Gt.from(a)):new M([Gt.from(a)]);r.apply(d)}createTableCells(t,e){const n=[];let i=0;for(const s of t.children)n.push(this.getDefaultCellBlockTemplate(i<e?"table-head-cell":"table-cell",s.colSpan)),i+=s.colSpan;return n}}class Oi extends ei{handleAction(e){const{insertDirection:n,selectedRows:i}=e,s=n===Zt.ABOVE?i[0]:i[i.length-1],r={id:t(),type:"table-row",children:[]},a=s.parent.children,o=this.getRowsMaxCellCount(a),l=a.indexOf(s),c=this.getRowCellStartCols(a),h=new Map;for(let t=0;t<o;t++){const{cell:e,rowIndex:i}=this.getTheStartSpanCell(a,c,l,t);if(e){const{colSpan:s,rowSpan:r}=e;if(n===Zt.ABOVE?i!==l:i+r>l+1){this.updateCellSpan(e,"rowspan",r+1),t+=s-1;continue}h.set(t,this.getDefaultCellBlockTemplate(e.type,s)),t+=s-1}}r.children=this.getSortedValuesByNumericKey(h);const d=Gt.from(r),u=n===Zt.ABOVE?new H(s,d):new B(s,d);s.parent.apply(u)}}class Ii extends dn{canIntercept(t,e){return Boolean(e.parent)}intercept(t,e,n){const i=this.createNewParagraph("");i&&(n.parent.apply(0===e.startOffset?new H(n,i):new B(n,i)),e.newBlock=i)}createNewParagraph(e){const n=q.getRTEBlockClass("paragraph");if(n)return n.from({id:t(),type:"paragraph",nodes:[{id:t(),type:"text",text:e}]})}}class Ri extends G{constructor(){super(...arguments),this.stylesToBeFiltered=vt.getDefaultStyles(),this.elementTagName="table"}canFilter(t){return this.isTableBlock(t.dtoName)}canRefill(t,e){return this.isTableBlock(t)&&e.tagName.toLowerCase()===this.elementTagName}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}isTableBlock(t){return"RTETableBlock"===t}}class Ni extends G{constructor(){super(...arguments),this.stylesToBeFiltered=Cn.getDefaultStyles(),this.elementTagName="table caption"}canFilter(t){return this.isTableCaption(t.dtoName)}canRefill(t,e){return this.isTableCaption(t)&&"CAPTION"===e.nodeName}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}isTableCaption(t){return"RTETableCaptionBlock"===t}}class ji extends G{constructor(t="td"){super(),this.stylesToBeFiltered=yt.getDefaultStyles(),this.elementTagName="",this.stylesWithRGBColor=yt.getDefaultStyles(!1),this.cellBlockClassName="",this.elementTagName=t,this.cellBlockClassName="td"===t?"RTETableCellBlock":"RTETableHeadCellBlock"}canFilter(t){return this.isTableCell(t.dtoName)}filterAndDeleteStyles(t,e){return this.convertDefaultBorderColorFromRGBToHex(t),super.filterAndDeleteStyles(t,e)}canRefill(t,e){return this.isTableCell(t)&&e.nodeName===this.elementTagName.toUpperCase()}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}isTableCell(t){return t===this.cellBlockClassName}convertDefaultBorderColorFromRGBToHex(t){t&&t.border&&t.border===this.stylesWithRGBColor.border&&(t.border=this.stylesToBeFiltered.border)}}class Bi extends rt{constructor(t=Jt){super(),this.toolbarButtonRenderer=new Zn,this.tableBlockRenderer=new Fn,this.tableRowBlockRenderer=new Kn,this.tableCellRenderer=new $n,this.tableHeadCellRenderer=new qn,this.tableSelection=new ii,Tt.setTableColors(t),this.registerToolbarButtonRenderer(Bi.TOOLBAR_BUTTON_KEY,this.toolbarButtonRenderer),this.registerBlockBasicStrategies(At.name),this.registerBlockBasicStrategies(It.name),this.registerBlockBasicStrategies(xt.name),this.registerBlockBasicStrategies(Gt.name),this.registerBlockBasicStrategies(Ot.name),this.registerBlockBasicStrategies(Rt.name),this.registerRenderer("table-block",this.tableBlockRenderer),this.registerRenderer("table-head",new zn),this.registerRenderer("table-head-cell",this.tableHeadCellRenderer),this.registerRenderer("table-row",this.tableRowBlockRenderer),this.registerRenderer("table-cell",this.tableCellRenderer),this.registerRenderer("table-body",new Wn),this.registerRenderer("table-caption",new ti),this.registerNode("table-block",At),this.registerNode("table-head",It),this.registerNode("table-head-cell",xt),this.registerNode("table-row",Gt),this.registerNode("table-cell",Ot),this.registerNode("table-body",Rt),this.registerNode("table-caption",Ln),this.registerElementToBlockDTOClassStrategy(new fi),this.registerElementToBlockDTOClassStrategy(new wi),this.registerElementToBlockDTOClassStrategy(new gi),this.registerElementToBlockDTOClassStrategy(new bi),this.registerElementToBlockDTOClassStrategy(new mi),this.registerElementToBlockDTOClassStrategy(new vi),this.registerAnnotationHandler(new xi),this.registerAnnotationHandler(new Ci),this.registerAnnotationHandler(new Li)}initialExtensionAfterLoad(t){this.tableSelection.init(t);const e=Object.assign(Object.assign({},t),{tableSelection:this.tableSelection});super.initialExtensionAfterLoad(e)}destroyExtension(){this.tableBlockRenderer.destroy(),this.tableSelection.destroy()}}(()=>{const t=new Jn,e=new Qn;rt.registerActionHandleStrategy(b.name,"INSERT_TABLE_BLOCK",t),rt.registerActionHandleStrategy(b.name,"DELETE_TABLE_BLOCK",e),rt.registerActionHandleStrategy(Ot.name,"DELETE_TABLE_BLOCK",e),rt.registerActionHandleStrategy(xt.name,"DELETE_TABLE_BLOCK",e),rt.registerActionHandleStrategy(R.name,"INSERT_TABLE_BLOCK",t),rt.registerActionHandleStrategy(C.name,"INSERT_TABLE_BLOCK",t),rt.registerActionHandleStrategy(At.name,Yt,new Ei),rt.registerActionHandleStrategy(At.name,Qt,new Oi),rt.registerActionHandleStrategy(At.name,Xt,new ni),rt.registerActionHandleStrategy(At.name,te,new si),rt.registerActionHandleStrategy(At.name,ee,new ri),rt.registerActionHandleStrategy(At.name,ne,new ai),rt.registerActionHandleStrategy(At.name,ie,new se),rt.registerActionHandleStrategy(Gt.name,re,new hi),rt.registerActionHandleStrategy(Gt.name,"CREATE_SEGMENT_TABLE_CELL",new li),rt.registerActionHandleStrategy(Gt.name,ae,new ci),rt.registerActionHandleStrategy(Ot.name,oe,new Ti),rt.registerActionHandleStrategy(Ot.name,le,new Ai),rt.registerActionHandleStrategy(xt.name,oe,new Ti),rt.registerActionHandleStrategy(xt.name,le,new Ai),rt.registerActionHandleStrategy(At.name,ce,new di),rt.registerActionHandleStrategy(At.name,he,new pi),rt.registerActionHandleStrategy(At.name,An.name,new ki),rt.registerActionHandleStrategy(Ot.name,Rn.name,new Si),rt.registerActionHandleStrategy(xt.name,Nn.name,new Si),rt.registerActionHandlerInterceptor(R.name,P.DELETE_BLOCK_CONTENT,new Yn),rt.registerActionHandlerInterceptor(Gt.name,P.INSERT_CHILDREN_BEFORE,new ui),rt.registerActionHandlerInterceptor(Ot.name,P.DELETE_CHILDREN,new Xn),rt.registerActionHandlerInterceptor(xt.name,P.DELETE_CHILDREN,new Xn),rt.registerActionHandlerInterceptor(At.name,P.INSERT_NEW_PARAGRAPH,new Ii),rt.registerFilterStylesStrategy(At.dtoName,new Ri),rt.registerFilterStylesStrategy(Ln.dtoName,new Ni),rt.registerFilterStylesStrategy(Ot.dtoName,new ji),rt.registerFilterStylesStrategy(xt.dtoName,new ji("th"))})(),Bi.TOOLBAR_BUTTON_KEY="table";class Mi extends U{constructor(t,e,n){super(t,n),this.type="horizontal-line",this.parent=e}toJSON(){return{id:this.id,type:"horizontal-line"}}clone(t){return new Mi(this.id,t,super.cloneAnnotations())}toHtml(){return"<hr>"}}const Di={display:"inline-block",width:"100%",height:"4px",backgroundColor:"rgb(222, 222, 222)",borderWidth:"0px"};class _i extends G{constructor(){super(...arguments),this.stylesToBeFiltered=Di,this.elementTagName="hr"}canFilter(t){return class{static isHorizontalLineBlock(t){return"RTEHorizontalLineBlock"===t}}.isHorizontalLineBlock(t.dtoName)}canRefill(t,e){return e.tagName.toLowerCase()===this.elementTagName}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}var Hi;!function(t){t.HORIZONTAL_LINE="HORIZONTAL_LINE"}(Hi||(Hi={}));class Vi extends F{constructor(){super(...arguments),this.type=Hi.HORIZONTAL_LINE}static from(){return[Hi.HORIZONTAL_LINE,new Vi]}static getDefaultStyles(){return Di}toJSON(){return null}clone(){return new Vi}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte-horizontal-line-hr"}renderStyle(t){return(null==t?void 0:t.standalone)?Vi.getDefaultStyles():null}}class Pi extends I{constructor(t,e){super(t),this.dtoName=Pi.dtoName,this.type="horizontal-line",this.children=[];const{autoMatchFormat:n=!0}=null!=e?e:{};n&&(this.annotationMap=new Map([Vi.from()]))}static from(e,n={autoMatchFormat:!0}){var i,s;const r=new Pi(e.id,n),a=(null===(s=null===(i=e.children)||void 0===i?void 0:i[0])||void 0===s?void 0:s.id)||t(),o=new Mi(a,r);return r.children=[o],e.annotations&&I.convertAnnotationsToMap(r.annotationMap,e.annotations),r}static create(e,n={autoMatchFormat:!0}){const i=new Pi(t(),n),s=new Mi(t(),i);return i.children=[s],e&&I.convertAnnotationsToMap(i.annotationMap,e),i}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"horizontal-line",children:this.children.map((t=>t.toJSON()))})}toHtml(t){return`<hr${super.generateAttributeString(t)}>`}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1]}clone(t){const e=new Pi(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}Pi.dtoName="RTEHorizontalLineBlock";class Fi extends st{doRender(t,e,n){const i=e.children[0],s=e.getStyles(n),r=e.getClasses(n),a=[U.DECORATOR_NODE_CLASS,r].filter(Boolean).join(" ");return t("div",{key:e.id,class:`v-rte-horizontal-line ${U.DECORATOR_CONTAINER_CLASS}`,ref:this.useRef(e)},[t("hr",{key:(null==i?void 0:i.id)||e.id+"-hr",class:a,style:Object.keys(s).length>0?s:void 0,ref:i?this.useRef(i):void 0})])}injectRTEScopeStyles(){return".v-rte-horizontal-line{padding:8px 0;overflow:hidden}.v-rte-horizontal-line .v-rte-horizontal-line-hr{display:inline-block;width:100%;height:4px;border-width:0px;background-color:rgb(222, 222, 222)}"}}class zi extends A{constructor(t,e=0){super(),this.type="INSERT_HORIZONTAL_LINE_BLOCK",this.splitPointNode=t,this.startOffsetOfNode=e}}class Ki extends Ue{render(t,e){return this.renderButton(t,e,{icon:"horizontal-line",tooltip:{text:f.t("Horizontal line")}})}isDisabled(t){const e=this.getExtensionContext(t.host);if(e){const{host:t,getSelectedNodes:n}=e,[i]=n();return i?t.disabled||!E.canHandle("INSERT_HORIZONTAL_LINE_BLOCK",i.parent):t.disabled}return!1}handleButtonClick(t){if(this.isDisabled(t))return;const e=this.getExtensionContext(t.host);if(e){const{host:n,getSelectedNodes:i,flushValue:s}=e,r=i()[0],a=new zi(r,t.rteRange.startOffset);r?r.parent&&r.parent.apply(a):n.value.apply(a),a.nextFocusNode&&n.value.apply(new g(a.nextFocusNode,0)),s(n.value)}}handleDropdownClick(){}}at.register({"horizontal-line":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 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="M0 224H32 608h32v64H608 32 0V224z"/></svg>'}});class $i extends v{canHandle(t,e){return"HR"===t[e].tagName?1:0}handle(t,e){const n=y.generate(Pi,t[0],e);return Pi.create(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Wi extends j{handleAction(t,e){const n=Pi.create();if(t.splitPointNode instanceof O){const i=t.splitPointNode,s=t.startOffsetOfNode;if(this.isCaretPositionAtBlockEnd(e,i,s))this.insertAfterWithFocus(t,e,n);else if(this.isCaretPositionAtBlockStart(e,i,s))e.parent.apply(new H(e,n)),t.nextFocusNode=e.getFirstNode();else{const r=new Z(i,s);e.apply(r);const a=this.getNextSiblingBlock(e);e.parent.apply(new B(e,n)),t.nextFocusNode=a.getFirstNode()}}else if(t.splitPointNode)this.insertAfterWithFocus(t,e,n);else{const i=super.createNewParagraph("");e.apply(new M([n,i])),t.nextFocusNode=i.children[0]}}insertAfterWithFocus(t,e,n){const i=this.getNextSiblingBlock(e),s=null==i?void 0:i.getFirstNode();if(s instanceof O)e.parent.apply(new B(e,n)),t.nextFocusNode=s;else{const i=super.createNewParagraph("");e.parent.apply(new B(e,n,i)),t.nextFocusNode=i.children[0]}}getNextSiblingBlock(t){const e=t.parent.children,n=e.indexOf(t);return e[n+1]}}class qi extends rt{constructor(){super(),this.blockRenderer=new Fi,this.toolbarButtonRenderer=new Ki,this.registerBlockBasicStrategies(Pi.name),this.registerNode("horizontal-line",Pi),this.registerRenderer("horizontal-line",this.blockRenderer),this.registerToolbarButtonRenderer(qi.TOOLBAR_BUTTON_KEY,this.toolbarButtonRenderer),this.registerElementToBlockDTOClassStrategy(new $i),rt.registerFilterStylesStrategy(Pi.dtoName,new _i)}}(()=>{const t=new Wi;rt.registerActionHandleStrategy(b.name,"INSERT_HORIZONTAL_LINE_BLOCK",t),rt.registerActionHandleStrategy(R.name,"INSERT_HORIZONTAL_LINE_BLOCK",t),rt.registerActionHandleStrategy(C.name,"INSERT_HORIZONTAL_LINE_BLOCK",t),rt.registerActionHandleStrategy(Pi.name,"INSERT_HORIZONTAL_LINE_BLOCK",t)})(),qi.TOOLBAR_BUTTON_KEY="horizontalLine";const Gi={key:"latin",label:"Latin",characters:[{character:"Ā",title:"Latin capital letter a with macron"},{character:"ā",title:"Latin small letter a with macron"},{character:"Ă",title:"Latin capital letter a with breve"},{character:"ă",title:"Latin small letter a with breve"},{character:"Ą",title:"Latin capital letter a with ogonek"},{character:"ą",title:"Latin small letter a with ogonek"},{character:"Ć",title:"Latin capital letter c with acute"},{character:"ć",title:"Latin small letter c with acute"},{character:"Ĉ",title:"Latin capital letter c with circumflex"},{character:"ĉ",title:"Latin small letter c with circumflex"},{character:"Ċ",title:"Latin capital letter c with dot above"},{character:"ċ",title:"Latin small letter c with dot above"},{character:"Č",title:"Latin capital letter c with caron"},{character:"č",title:"Latin small letter c with caron"},{character:"Ď",title:"Latin capital letter d with caron"},{character:"ď",title:"Latin small letter d with caron"},{character:"Đ",title:"Latin capital letter d with stroke"},{character:"đ",title:"Latin small letter d with stroke"},{character:"Ē",title:"Latin capital letter e with macron"},{character:"ē",title:"Latin small letter e with macron"},{character:"Ĕ",title:"Latin capital letter e with breve"},{character:"ĕ",title:"Latin small letter e with breve"},{character:"Ė",title:"Latin capital letter e with dot above"},{character:"ė",title:"Latin small letter e with dot above"},{character:"Ę",title:"Latin capital letter e with ogonek"},{character:"ę",title:"Latin small letter e with ogonek"},{character:"Ě",title:"Latin capital letter e with caron"},{character:"ě",title:"Latin small letter e with caron"},{character:"Ĝ",title:"Latin capital letter g with circumflex"},{character:"ĝ",title:"Latin small letter g with circumflex"},{character:"Ğ",title:"Latin capital letter g with breve"},{character:"ğ",title:"Latin small letter g with breve"},{character:"Ġ",title:"Latin capital letter g with dot above"},{character:"ġ",title:"Latin small letter g with dot above"},{character:"Ģ",title:"Latin capital letter g with cedilla"},{character:"ģ",title:"Latin small letter g with cedilla"},{character:"Ĥ",title:"Latin capital letter h with circumflex"},{character:"ĥ",title:"Latin small letter h with circumflex"},{character:"Ħ",title:"Latin capital letter h with stroke"},{character:"ħ",title:"Latin small letter h with stroke"},{character:"Ĩ",title:"Latin capital letter i with tilde"},{character:"ĩ",title:"Latin small letter i with tilde"},{character:"Ī",title:"Latin capital letter i with macron"},{character:"ī",title:"Latin small letter i with macron"},{character:"Ĭ",title:"Latin capital letter i with breve"},{character:"ĭ",title:"Latin small letter i with breve"},{character:"Į",title:"Latin capital letter i with ogonek"},{character:"į",title:"Latin small letter i with ogonek"},{character:"İ",title:"Latin capital letter i with dot above"},{character:"ı",title:"Latin small letter dotless i"},{character:"IJ",title:"Latin capital ligature ij"},{character:"ij",title:"Latin small ligature ij"},{character:"Ĵ",title:"Latin capital letter j with circumflex"},{character:"ĵ",title:"Latin small letter j with circumflex"},{character:"Ķ",title:"Latin capital letter k with cedilla"},{character:"ķ",title:"Latin small letter k with cedilla"},{character:"ĸ",title:"Latin small letter kra"},{character:"Ĺ",title:"Latin capital letter l with acute"},{character:"ĺ",title:"Latin small letter l with acute"},{character:"Ļ",title:"Latin capital letter l with cedilla"},{character:"ļ",title:"Latin small letter l with cedilla"},{character:"Ľ",title:"Latin capital letter l with caron"},{character:"ľ",title:"Latin small letter l with caron"},{character:"Ŀ",title:"Latin capital letter l with middle dot"},{character:"ŀ",title:"Latin small letter l with middle dot"},{character:"Ł",title:"Latin capital letter l with stroke"},{character:"ł",title:"Latin small letter l with stroke"},{character:"Ń",title:"Latin capital letter n with acute"},{character:"ń",title:"Latin small letter n with acute"},{character:"Ņ",title:"Latin capital letter n with cedilla"},{character:"ņ",title:"Latin small letter n with cedilla"},{character:"Ň",title:"Latin capital letter n with caron"},{character:"ň",title:"Latin small letter n with caron"},{character:"ʼn",title:"Latin small letter n preceded by apostrophe"},{character:"Ŋ",title:"Latin capital letter eng"},{character:"ŋ",title:"Latin small letter eng"},{character:"Ō",title:"Latin capital letter o with macron"},{character:"ō",title:"Latin small letter o with macron"},{character:"Ŏ",title:"Latin capital letter o with breve"},{character:"ŏ",title:"Latin small letter o with breve"},{character:"Ő",title:"Latin capital letter o with double acute"},{character:"ő",title:"Latin small letter o with double acute"},{character:"Œ",title:"Latin capital ligature oe"},{character:"œ",title:"Latin small ligature oe"},{character:"Ŕ",title:"Latin capital letter r with acute"},{character:"ŕ",title:"Latin small letter r with acute"},{character:"Ŗ",title:"Latin capital letter r with cedilla"},{character:"ŗ",title:"Latin small letter r with cedilla"},{character:"Ř",title:"Latin capital letter r with caron"},{character:"ř",title:"Latin small letter r with caron"},{character:"Ś",title:"Latin capital letter s with acute"},{character:"ś",title:"Latin small letter s with acute"},{character:"Ŝ",title:"Latin capital letter s with circumflex"},{character:"ŝ",title:"Latin small letter s with circumflex"},{character:"Ş",title:"Latin capital letter s with cedilla"},{character:"ş",title:"Latin small letter s with cedilla"},{character:"Š",title:"Latin capital letter s with caron"},{character:"š",title:"Latin small letter s with caron"},{character:"Ţ",title:"Latin capital letter t with cedilla"},{character:"ţ",title:"Latin small letter t with cedilla"},{character:"Ť",title:"Latin capital letter t with caron"},{character:"ť",title:"Latin small letter t with caron"},{character:"Ŧ",title:"Latin capital letter t with stroke"},{character:"ŧ",title:"Latin small letter t with stroke"},{character:"Ũ",title:"Latin capital letter u with tilde"},{character:"ũ",title:"Latin small letter u with tilde"},{character:"Ū",title:"Latin capital letter u with macron"},{character:"ū",title:"Latin small letter u with macron"},{character:"Ŭ",title:"Latin capital letter u with breve"},{character:"ŭ",title:"Latin small letter u with breve"},{character:"Ů",title:"Latin capital letter u with ring above"},{character:"ů",title:"Latin small letter u with ring above"},{character:"Ű",title:"Latin capital letter u with double acute"},{character:"ű",title:"Latin small letter u with double acute"},{character:"Ų",title:"Latin capital letter u with ogonek"},{character:"ų",title:"Latin small letter u with ogonek"},{character:"Ŵ",title:"Latin capital letter w with circumflex"},{character:"ŵ",title:"Latin small letter w with circumflex"},{character:"Ŷ",title:"Latin capital letter y with circumflex"},{character:"ŷ",title:"Latin small letter y with circumflex"},{character:"Ÿ",title:"Latin capital letter y with diaeresis"},{character:"Ź",title:"Latin capital letter z with acute"},{character:"ź",title:"Latin small letter z with acute"},{character:"Ż",title:"Latin capital letter z with dot above"},{character:"ż",title:"Latin small letter z with dot above"},{character:"Ž",title:"Latin capital letter z with caron"},{character:"ž",title:"Latin small letter z with caron"},{character:"ſ",title:"Latin small letter long s"}]},Ui={key:"mathematical",label:"Mathematical",characters:[{character:"<",title:"Less-than sign"},{character:">",title:"Greater-than sign"},{character:"≤",title:"Less-than or equal to"},{character:"≥",title:"Greater-than or equal to"},{character:"–",title:"En dash"},{character:"—",title:"Em dash"},{character:"¯",title:"Macron"},{character:"‾",title:"Overline"},{character:"°",title:"Degree sign"},{character:"−",title:"Minus sign"},{character:"±",title:"Plus-minus sign"},{character:"÷",title:"Division sign"},{character:"⁄",title:"Fraction slash"},{character:"×",title:"Multiplication sign"},{character:"ƒ",title:"Latin small letter f with hook"},{character:"∫",title:"Integral"},{character:"∑",title:"N-ary summation"},{character:"∞",title:"Infinity"},{character:"√",title:"Square root"},{character:"∼",title:"Tilde operator"},{character:"≅",title:"Approximately equal to"},{character:"≈",title:"Almost equal to"},{character:"≠",title:"Not equal to"},{character:"≡",title:"Identical to"},{character:"∈",title:"Element of"},{character:"∉",title:"Not an element of"},{character:"∋",title:"Contains as member"},{character:"∏",title:"N-ary product"},{character:"∧",title:"Logical and"},{character:"∨",title:"Logical or"},{character:"¬",title:"Not sign"},{character:"∩",title:"Intersection"},{character:"∪",title:"Union"},{character:"∂",title:"Partial differential"},{character:"∀",title:"For all"},{character:"∃",title:"There exists"},{character:"∅",title:"Empty set"},{character:"∇",title:"Nabla"},{character:"∗",title:"Asterisk operator"},{character:"∝",title:"Proportional to"},{character:"∠",title:"Angle"},{character:"¼",title:"Vulgar fraction one quarter"},{character:"½",title:"Vulgar fraction one half"},{character:"¾",title:"Vulgar fraction three quarters"}]},Zi={key:"arrows",label:"Arrows",characters:[{character:"←",title:"leftwards simple arrow"},{character:"→",title:"rightwards simple arrow"},{character:"↑",title:"upwards simple arrow"},{character:"↓",title:"downwards simple arrow"},{character:"⇐",title:"leftwards double arrow"},{character:"⇒",title:"rightwards double arrow"},{character:"⇑",title:"upwards double arrow"},{character:"⇓",title:"downwards double arrow"},{character:"⇠",title:"leftwards dashed arrow"},{character:"⇢",title:"rightwards dashed arrow"},{character:"⇡",title:"upwards dashed arrow"},{character:"⇣",title:"downwards dashed arrow"},{character:"⇤",title:"leftwards arrow to bar"},{character:"⇥",title:"rightwards arrow to bar"},{character:"⤒",title:"upwards arrow to bar"},{character:"⤓",title:"downwards arrow to bar"},{character:"↨",title:"up down arrow with base"},{character:"🔙",title:"back with leftwards arrow above"},{character:"🔚",title:"end with leftwards arrow above"},{character:"🔛",title:"on with exclamation mark with left right arrow above"},{character:"🔜",title:"soon with rightwards arrow above"},{character:"🔝",title:"top with upwards arrow above"}]},Ji={key:"currency",label:"Currency",characters:[{character:"$",title:"Dollar sign"},{character:"€",title:"Euro sign"},{character:"¥",title:"Yen sign"},{character:"£",title:"Pound sign"},{character:"¢",title:"Cent sign"},{character:"₠",title:"Euro-currency sign"},{character:"₡",title:"Colon sign"},{character:"₢",title:"Cruzeiro sign"},{character:"₣",title:"French franc sign"},{character:"₤",title:"Lira sign"},{character:"¤",title:"Currency sign"},{character:"₿",title:"Bitcoin sign"},{character:"₥",title:"Mill sign"},{character:"₦",title:"Naira sign"},{character:"₧",title:"Peseta sign"},{character:"₨",title:"Rupee sign"},{character:"₩",title:"Won sign"},{character:"₪",title:"New sheqel sign"},{character:"₫",title:"Dong sign"},{character:"₭",title:"Kip sign"},{character:"₮",title:"Tugrik sign"},{character:"₯",title:"Drachma sign"},{character:"₰",title:"German penny sign"},{character:"₱",title:"Peso sign"},{character:"₲",title:"Guarani sign"},{character:"₳",title:"Austral sign"},{character:"₴",title:"Hryvnia sign"},{character:"₵",title:"Cedi sign"},{character:"₶",title:"Livre tournois sign"},{character:"₷",title:"Spesmilo sign"},{character:"₸",title:"Tenge sign"},{character:"₹",title:"Indian rupee sign"},{character:"₺",title:"Turkish lira sign"},{character:"₻",title:"Nordic mark sign"},{character:"₼",title:"Manat sign"},{character:"₽",title:"Ruble sign"}]},Yi={key:"text",label:"Text",characters:[{character:"‹",title:"Single left-pointing angle quotation mark"},{character:"›",title:"Single right-pointing angle quotation mark"},{character:"«",title:"Left-pointing double angle quotation mark"},{character:"»",title:"Right-pointing double angle quotation mark"},{character:"‘",title:"Left single quotation mark"},{character:"’",title:"Right single quotation mark"},{character:"“",title:"Left double quotation mark"},{character:"”",title:"Right double quotation mark"},{character:"‚",title:"Single low-9 quotation mark"},{character:"„",title:"Double low-9 quotation mark"},{character:"¡",title:"Inverted exclamation mark"},{character:"¿",title:"Inverted question mark"},{character:"‥",title:"Two dot leader"},{character:"…",title:"Horizontal ellipsis"},{character:"‡",title:"Double dagger"},{character:"‰",title:"Per mille sign"},{character:"‱",title:"Per ten thousand sign"},{character:"‼",title:"Double exclamation mark"},{character:"⁈",title:"Question exclamation mark"},{character:"⁉",title:"Exclamation question mark"},{character:"⁇",title:"Double question mark"},{character:"©",title:"Copyright sign"},{character:"®",title:"Registered sign"},{character:"™",title:"Trade mark sign"},{character:"§",title:"Section sign"},{character:"¶",title:"Paragraph sign"},{character:"⁋",title:"Reversed paragraph sign"}]},Qi=[Ji,Yi,Ui,Zi,Gi];class Xi extends Ue{constructor(t){super(),this.panelRef=null,this.categories=t}render(t,e){return t("vega-popover",{trigger:"click",alignment:"start",placement:"bottom",showArrow:!1,isScreenPosition:!0,ref:t=>{t&&lt.addUniqueObserverToNode(t,pt,(()=>{this.handlePopoverShow()}))}},[t("div",{slot:"popover"},[t("vega-rich-text-special-characters-panel",{categories:this.categories,ref:t=>{t&&(this.panelRef=t,lt.addUniqueObserverToNode(t,dt,(t=>{this.insertCharacter(e,t.detail)})))}})]),t("div",{slot:"popover-content"},this.renderButton(t,e,{icon:"rte-special-characters",tooltip:{text:"Special Characters"}}))])}handleButtonClick(){}handleDropdownClick(){}handlePopoverShow(){this.panelRef&&this.panelRef.resetPanel()}insertCharacter(t,e){const n=t.rteRange,i=n.startNode;if(!i)return;const s=this.isCaretOnLineBreak(i,n)?this.insertAtLineBreak(i,e,n):this.insertAtTextNode(i,e,n);t.host.value.apply(new g(s.node,s.offset))}isCaretOnLineBreak(t,e){return t instanceof O&&"\n"===t.text&&e.startOffset===e.endOffset}insertAtTextNode(t,e,n){const i=new Ce(e,n);return i.isFlushable=!0,t.apply(i),{node:t,offset:Math.min(n.startOffset+e.length,t.getRangeEndOffset())}}insertAtLineBreak(t,e,n){return{node:this.insertTextToLineBreakNode(t,e,n),offset:e.length}}insertTextToLineBreakNode(t,e,n){const i=t.parent,s=i.children.indexOf(t);if(0===n.startOffset&&i.children[s+1]){const n=t.cloneWithText(e),s=new H(t,n);return s.isFlushable=!0,i.apply(s),n}const r=new J(e);return r.isFlushable=!0,t.apply(r),t}}at.register({"rte-special-characters":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 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="M224 80C126.8 80 48 158.8 48 256c0 63.7 33.8 119.5 84.6 150.4c11.4 7 19.4 19.6 19.4 34.2c0 21.8-17.6 39.4-39.4 39.4H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H85.4C33.4 391 0 327.4 0 256C0 132.3 100.3 32 224 32s224 100.3 224 224c0 71.4-33.4 135-85.4 176H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H335.4c-21.8 0-39.4-17.6-39.4-39.4c0-14.6 8-27.2 19.4-34.2C366.2 375.5 400 319.7 400 256c0-97.2-78.8-176-176-176z"/></svg>'}});class ts extends rt{constructor(t){super(),this.categories=this.buildCategories(t)}prepareBeforeLoad(t){this.registerToolbarButtonRenderer(ts.TOOLBAR_BUTTON_KEY,new Xi(this.categories),t)}buildCategories(t){const e=!1!==(null==t?void 0:t.includeDefaults)?Qi:[];return(null==t?void 0:t.categories)?[...e,...t.categories]:e}}ts.TOOLBAR_BUTTON_KEY="special-characters";class es{}class ns extends es{canHandle(t){return t instanceof Y}collect(t){return[t]}}class is extends es{canHandle(t){return t instanceof T}collect(t,e){const n=t,i=[n];if(n.nestList&&n.nestList.length>0)for(const t of n.nestList)i.push(...e(t.children));return i}}class ss extends es{canHandle(t){return t instanceof R}collect(t){return[t]}}class rs extends es{canHandle(t){return null!=t.children&&t.children.length>0&&!(t.children[0]instanceof O)}collect(t,e){return e(t.children)}}class as{constructor(){this.matches=[],this.currentIndex=-1,this.flatCache=new WeakMap,this.cachedContent=null,this.matchCase=!1,this.wholeWords=!1,this.blockSearchStrategies=[new ns,new is,new ss,new rs]}search(t,e){if(this.invalidateCacheIfNeeded(t),!e)return this.matches=[],void(this.currentIndex=-1);const n=this.buildRegExp(e,this.getFindOptions()),i=this.collectSearchableBlocks(t.children),s=[];for(const t of i){let e=this.flatCache.get(t);e||(e=t instanceof Y?this.buildCodeBlockFlat(t):this.buildTextBlockFlat(t),this.flatCache.set(t,e));const{flatText:i,segments:r}=e;if(!i)continue;let a;for(n.lastIndex=0;null!==(a=n.exec(i));){const e=a.index+a[0].length,n=this.flatOffsetToNodePositions(r,e-a[1].length,e);n.length>0&&s.push({block:t,nodes:n,matchText:a[1]})}}this.matches=s,this.currentIndex=s.length>0?0:-1}next(){0!==this.matches.length&&(this.currentIndex=(this.currentIndex+1)%this.matches.length)}prev(){0!==this.matches.length&&(this.currentIndex=(this.currentIndex-1+this.matches.length)%this.matches.length)}setCurrentIndex(t){this.currentIndex=0!==this.matches.length?Math.max(0,Math.min(t,this.matches.length-1)):-1}getCurrentMatch(){var t;return null!==(t=this.matches[this.currentIndex])&&void 0!==t?t:null}getMatches(){return this.matches}getTotal(){return this.matches.length}getCurrentIndex(){return this.currentIndex}clearResults(){this.matches=[],this.currentIndex=-1}clear(){this.matches=[],this.currentIndex=-1,this.flatCache=new WeakMap,this.cachedContent=null}setMatchCase(t){this.matchCase=t}setWholeWords(t){this.wholeWords=t}invalidateCacheIfNeeded(t){t!==this.cachedContent&&(this.flatCache=new WeakMap,this.cachedContent=t)}buildRegExp(t,e){const n=this.escapeRegExp(t);let i="gu";if(e.matchCase||(i+="i"),e.wholeWords){const e="[^a-zA-ZÀ-ɏḀ-ỿ]",s=new RegExp(`^${e}`).test(t)?"":`(?:^|${e})`,r=new RegExp(`${e}$`).test(t)?"":`(?=${e}|$)`;return new RegExp(`${s}(${n})${r}`,i)}return new RegExp(`(${n})`,i)}escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}collectSearchableBlocks(t){const e=[],n=this.collectSearchableBlocks.bind(this);for(const i of t){const t=this.blockSearchStrategies.find((t=>t.canHandle(i)));t&&e.push(...t.collect(i,n))}return e}buildTextBlockFlat(t){const e=[],n=[];let i=0;for(const s of t.children){if(!s.isContentEditable()){n.push("\0"),i+="\0".length;continue}const t=s.text.length;e.push({node:s,start:i,end:i+t}),n.push(s.text),i+=t}return{flatText:n.join(""),segments:e}}buildCodeBlockFlat(t){const e=t.children[0];if(!e)return{flatText:"",segments:[]};const n=e.text;return{flatText:n,segments:[{node:e,start:0,end:n.length}]}}flatOffsetToNodePositions(t,e,n){const i=[];for(const s of t){if(s.end<=e)continue;if(s.start>=n)break;const t=Math.max(0,e-s.start),r=Math.min(s.end,n)-s.start;i.push({node:s.node,startOffset:t,endOffset:r})}return i}getFindOptions(){return{matchCase:this.matchCase,wholeWords:this.wholeWords}}}class os{constructor(){this.overlayContainer=null,be.registerCustomDarkModeColor({"rte-find-highlight-bg":"255, 235, 0, 0.55","rte-find-highlight-active-bg":"255, 190, 0, 0.7","rte-find-highlight-blend":"lighten"})}apply(t,e,n,i=!0){if(this.clear(),0===t.length)return;const s=this.getOrCreateOverlay(n);if(s){const n=s.getBoundingClientRect();let r=null;t.forEach(((t,i)=>{const a=i===e,o=a?"rgba(var(--v-rte-find-highlight-active-bg, 255, 150, 0, 0.5))":"rgba(var(--v-rte-find-highlight-bg, 255, 220, 0, 0.35))";t.nodes.forEach((t=>{const e=this.createHighlightRectangles(s,n,t,o);a&&!r&&e&&(r=e)}))})),i&&r&&r.scrollIntoView({block:"center",inline:"nearest"})}}clear(){this.overlayContainer&&(this.overlayContainer.innerHTML="")}getOrCreateOverlay(t){if(this.overlayContainer&&this.overlayContainer.isConnected)return this.overlayContainer;const e=me();if(e){const n=t.shadowRoot.querySelector(".rich-text-editor-container");if(n){const t=e.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.pointerEvents="none",t.style.overflow="visible",t.style.setProperty("mix-blend-mode","var(--v-rte-find-highlight-blend, multiply)"),n.appendChild(t),this.overlayContainer=t,t}}return null}createHighlightRectangles(t,e,n,i){const s=_.getDOMByEntity(n.node);if(!s)return null;const r=this.buildRange(s,n);if(!r)return null;const a=r.getClientRects(),o=me();let l=null;if(o)for(let n=0;n<a.length;n++){const s=a[n];if(0===s.width||0===s.height)continue;const r=o.createElement("div");r.style.position="absolute",r.style.top=s.top-e.top+"px",r.style.left=s.left-e.left+"px",r.style.width=`${s.width}px`,r.style.height=`${s.height}px`,r.style.backgroundColor=i,r.style.pointerEvents="none",r.style.borderRadius="2px",t.appendChild(r),l||(l=r)}return l}buildRange(t,e){if(e.node instanceof Q)return this.buildCodeBlockRange(t,e);const n=t.firstChild;if(!n)return null;const i=me();if(i){const t=i.createRange();try{return t.setStart(n,e.startOffset),t.setEnd(n,e.endOffset),t}catch(t){return null}}return null}buildCodeBlockRange(t,e){const n=t.shadowRoot.querySelector("code");if(!n)return null;const i=me();if(i){const t=i.createTreeWalker(n,NodeFilter.SHOW_TEXT);let s=0,r=null,a=0,o=null,l=0,c=t.nextNode();for(;c;){const n=c.textContent.length;if(!r&&s+n>e.startOffset&&(r=c,a=e.startOffset-s),s+n>=e.endOffset){o=c,l=e.endOffset-s;break}s+=n,c=t.nextNode()}if(r&&o){const t=i.createRange();try{return t.setStart(r,a),t.setEnd(o,l),t}catch(t){return null}}}return null}}class ls{constructor(t){this.context=t}setHost(t){this.context.hostRef=t}setKeyword(t){return this.context.keyword=t,this.context.state.clearResults(),this.context.hostRef&&this.context.highlightManager.clear(),{current:0,total:0}}applyAndGetResult(t=!0){const e=this.context.state.getTotal(),n=e>0?this.context.state.getCurrentIndex()+1:0;return this.context.hostRef&&this.context.highlightManager.apply(this.context.state.getMatches(),this.context.state.getCurrentIndex(),this.context.hostRef,t),{current:n,total:e}}}class cs extends ls{constructor(t){super(t)}find(){return this.context.hostRef?(this.context.state.search(this.context.hostRef.value,this.context.keyword),this.applyAndGetResult()):{current:0,total:0}}next(){return this.context.state.next(),this.applyAndGetResult()}prev(){return this.context.state.prev(),this.applyAndGetResult()}clear(){this.context.state.clear(),this.context.hostRef&&this.context.highlightManager.clear()}refresh(t=!0){if(!this.context.keyword||!this.context.hostRef)return null;const e=this.context.state.getCurrentIndex();return this.context.state.search(this.context.hostRef.value,this.context.keyword),this.context.state.setCurrentIndex(e),this.applyAndGetResult(t)}setMatchCase(t){return this.context.state.setMatchCase(t),this.updateFindResults()}setWholeWords(t){return this.context.state.setWholeWords(t),this.updateFindResults()}updateFindResults(){return this.context.state.clearResults(),this.context.keyword&&this.context.hostRef?(this.context.state.search(this.context.hostRef.value,this.context.keyword),this.applyAndGetResult()):{current:0,total:0}}}class hs extends ls{constructor(t){super(t),this.replacement="",this.flushFn=null}setFlushValue(t){this.flushFn=t}setReplacement(t){this.replacement=t}replace(){const t=this.context.state.getCurrentMatch();if(t&&this.context.hostRef&&this.flushFn){const e=this.context.state.getCurrentIndex();this.applyMatchReplacement(t),this.flushFn(this.context.hostRef.value),this.context.state.clear(),this.context.state.search(this.context.hostRef.value,this.context.keyword),this.context.state.setCurrentIndex(e)}return this.applyAndGetResult()}replaceAll(){if(this.context.state.getTotal()>0&&this.flushFn&&this.context.hostRef){const t=this.context.state.getMatches();for(let e=t.length-1;e>=0;e-=1)this.applyMatchReplacement(t[e]);this.flushFn(this.context.hostRef.value),this.context.state.clear(),this.context.state.search(this.context.hostRef.value,this.context.keyword)}return this.applyAndGetResult()}applyMatchReplacement(t){t.nodes.forEach(((t,e)=>{const n=0===e?this.replacement:"";t.node.text=t.node.text.slice(0,t.startOffset)+n+t.node.text.slice(t.endOffset)}))}}class ds extends Ue{constructor(){super(...arguments),this.sharedContext={state:new as,highlightManager:new os,hostRef:null,keyword:""},this.findController=new cs(this.sharedContext),this.replaceController=new hs(this.sharedContext),this.panelRef=null,this.popoverRef=null,this.isPopoverOpen=!1,this.scrollOnNextRefresh=!1,this.debouncedRefresh=xe(this.onContentChanged,100,this),this.panelActionHandlers={find:()=>this.findController.find(),prev:()=>this.findController.prev(),next:()=>this.findController.next(),replace:()=>(this.scrollOnNextRefresh=!0,this.replaceController.replace()),"replace-all":()=>(this.scrollOnNextRefresh=!0,this.replaceController.replaceAll()),"match-case":t=>this.findController.setMatchCase(t),"whole-words":t=>this.findController.setWholeWords(t),close:()=>this.closePanel()}}render(t,e){return this.syncEditorState(e),t("vega-popover",{trigger:"none",alignment:"start",placement:"bottom",showArrow:!1,isScreenPosition:!0,ref:t=>{t&&(this.popoverRef=t,lt.addUniqueObserverToNode(t,ut,(()=>{this.isPopoverOpen=!1,this.findController.clear(),this.updatePanel({current:0,total:0})})),lt.addUniqueObserverToNode(t,pt,(()=>{this.isPopoverOpen=!0})))}},[t("div",{slot:"popover"},[t("vega-rich-text-find-replace-panel",{ref:t=>{t&&(this.panelRef=t,lt.addUniqueObserverToNode(t,ft,(t=>{"keyword"===t.detail.type?this.updatePanel(this.findController.setKeyword(t.detail.value)):"replace"===t.detail.type&&this.replaceController.setReplacement(t.detail.value)})),lt.addUniqueObserverToNode(t,dt,(t=>{this.handlePanelAction(t.detail)})))}})]),t("div",{slot:"popover-content"},this.renderButton(t,e,{icon:"rte-find-replace",tooltip:{text:f.t("Find and replace")}}))])}handleButtonClick(){this.popoverRef&&(this.isPopoverOpen?this.popoverRef.hide():this.popoverRef.show())}handleDropdownClick(){}syncEditorState(t){this.findController.setHost(t.host);const e=this.getExtensionContext(t.host);e&&this.replaceController.setFlushValue(e.flushValue),lt.addUniqueObserverToNode(t.host,ft,this.debouncedRefresh),this.isHidden(t)&&this.isPopoverOpen&&this.popoverRef&&this.popoverRef.hide()}handlePanelAction(t){const{action:e,data:n}=t,i=this.panelActionHandlers[e];if(i){const t=i(n);t&&this.updatePanel(t)}}updatePanel(t){this.panelRef&&this.panelRef.updateResult(t.current,t.total)}onContentChanged(){if(!this.isPopoverOpen)return;const t=this.scrollOnNextRefresh;this.scrollOnNextRefresh=!1;const e=this.findController.refresh(t);e&&this.updatePanel(e)}closePanel(){this.popoverRef&&this.popoverRef.hide()}}at.register({"rte-find-replace":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2026 Fonticons, Inc. --\x3e<path fill="currentColor" d="M208 48c39.6 0 75.9 14.4 103.8 38.2L279 119c-6.9 6.9-8.9 17.2-5.2 26.2S286.3 160 296 160l96 0c13.3 0 24-10.7 24-24l0-96c0-9.7-5.8-18.5-14.8-22.2S381.9 16.2 375 23L345.8 52.2c-36.7-32.5-85-52.2-137.8-52.2-99.4 0-182.4 69.7-203.1 162.8-2.9 12.9 5.3 25.8 18.2 28.6 1.4 .3 2.7 .5 4.1 .5l2.3 0C40.1 191.5 49.4 184 51.8 173.2 67.7 101.6 131.6 48 208 48zM386 224c-10.4 .7-19.4 8.1-21.8 18.8-15.9 71.7-79.8 125.2-156.2 125.2-39.6 0-75.9-14.4-103.8-38.2L137 297c6.9-6.9 8.9-17.2 5.2-26.2S129.7 256 120 256l-96 0c-13.3 0-24 10.7-24 24l0 96c0 9.7 5.8 18.5 14.8 22.2S34.1 399.8 41 393l29.2-29.2c36.7 32.5 85 52.2 137.8 52.2 48.8 0 93.7-16.8 129.1-44.9L471 505c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L371.1 337.1c19.2-24.2 33.1-52.8 40-84 2.9-12.9-5.3-25.8-18.2-28.6-1.2-.3-2.4-.4-3.6-.5l-3.2 0z"/></svg>'}});class us extends rt{prepareBeforeLoad(t){this.registerToolbarButtonRenderer(us.TOOLBAR_BUTTON_KEY,new ds,t)}}us.TOOLBAR_BUTTON_KEY="findReplace";const ps=[{title:"0.5",value:"0.5"},{title:"1",value:"1"},{title:"1.5",value:"1.5"},{title:"2",value:"2"},{title:"2.5",value:"2.5"}];var fs;!function(t){t.LINE_HEIGHT="LINE_HEIGHT"}(fs||(fs={}));class ws extends F{constructor(t){super(),this.type=fs.LINE_HEIGHT,this.lineHeight=t}static from(t){return[fs.LINE_HEIGHT,new ws(t)]}static getDefaultStyles(t){return{lineHeight:t}}toJSON(){return{lineHeight:this.lineHeight}}renderClass(){return null}clone(){return new ws(this.lineHeight)}renderStyle(){return ws.getDefaultStyles(this.lineHeight)}}class gs extends z{constructor(t){super(),this.isFlushable=!0,this.lineHeight=t}toAnnotation(){return new ws(this.lineHeight)}}class bs extends j{handleAction(t,e){this.updateCustomStyleAnnotation(e,["lineHeight"])}}class ms extends Ue{constructor(t){super(),this.options=t}render(t,e){const n=this.options.map((t=>{var e;return{key:t.value,label:null!==(e=t.title)&&void 0!==e?e:t.value}}));return this.renderDropdown(t,e,{selectType:"single",selectedSourceKey:this.getSelectedSourceValue(e)},[this.renderButton(t,e,{icon:"line-height",showArrowIcon:!0,tooltip:{text:f.t("Line Height")}}),this.renderDropdownListTemplate(t,n,e)])}isSelected(){return!1}isDisabled(t){var e;if(t.host.disabled)return!0;const n=this.getExtensionContext(t.host);return!!(null!==(e=null==n?void 0:n.getSelectedNodes())&&void 0!==e?e:[]).some((t=>{var e;return(null===(e=t.getAnnotationByType(X.CODE))||void 0===e?void 0:e.code)||t.parent instanceof Y}))||this.getSelectedBlocks(t).some((t=>t instanceof Y||t instanceof C||!E.canHandle(gs.name,t)))}handleDropdownClick(t,e){const n=t;this.getSelectedBlocks(e).forEach((t=>{t.apply(new gs(n))}))}handleButtonClick(){}getSelectedSourceValue(t){const e=this.getSelectedBlocks(t);if(0===e.length)return"";const n=e[0].getAnnotationByType(fs.LINE_HEIGHT);return e.every((t=>{const e=t.getAnnotationByType(fs.LINE_HEIGHT);return(null==e?void 0:e.lineHeight)===(null==n?void 0:n.lineHeight)}))&&n?n.lineHeight:""}getSelectedBlocks(t){var e,n;const i=this.getExtensionContext(t.host),s=null!==(e=null==i?void 0:i.getSelectedNodes())&&void 0!==e?e:[],r=[];return s.forEach((t=>{t.parent instanceof I&&!r.includes(t.parent)&&r.push(t.parent)})),0===r.length&&(null===(n=t.rteRange.startNode)||void 0===n?void 0:n.parent)instanceof I&&r.push(t.rteRange.startNode.parent),r}}at.register({"line-height":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 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="M113.8 39.9c-4.6-5.1-11-7.9-17.8-7.9s-13.3 2.9-17.8 7.9l-72 80c-8.9 9.9-8.1 25 1.8 33.9s25 8.1 33.9-1.8L72 118.5V393.5L41.8 359.9c-8.9-9.9-24-10.7-33.9-1.8s-10.7 24-1.8 33.9l72 80c4.6 5.1 11 7.9 17.8 7.9s13.3-2.9 17.8-7.9l72-80c8.9-9.9 8.1-25-1.8-33.9s-25-8.1-33.9 1.8L120 393.5V118.5l30.2 33.5c8.9 9.9 24 10.7 33.9 1.8s10.7-24 1.8-33.9l-72-80zM248 72c-13.3 0-24 10.7-24 24s10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248zm0 160c-13.3 0-24 10.7-24 24s10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248zM224 416c0 13.3 10.7 24 24 24H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H248c-13.3 0-24 10.7-24 24z"/></svg>'}});const vs=new Set([R.name,T.name]);class ys extends S{constructor(t=ps){super(),this.allowedLineHeights=new Set(t.map((t=>t.value)))}canHandle(t){return vs.has(t.name)}handle(t){var e,n;const i=null!==(n=null===(e=null==t?void 0:t.style.lineHeight)||void 0===e?void 0:e.trim())&&void 0!==n?n:"";return i&&this.allowedLineHeights.has(i)?{lineHeight:i}:{}}}class xs extends G{constructor(){super(...arguments),this.stylesToBeFiltered={}}get alwaysFilter(){return!0}filterAnnotations(t){const e=t,n=e.lineHeight,i=e.customStyle;return n&&i&&i.lineHeight===n&&delete i.lineHeight,i&&0===Object.keys(i).length&&delete e.customStyle,t}}const Cs=new WeakMap,Ls=new WeakSet;class ks extends rt{constructor(t=ps){super(),this.options=t,this.toolbarButtonRenderer=null,this.registerAnnotationHandler(new ys(this.options)),[R,T].forEach((t=>{!function(t,e){Cs.set(t,new Set(e.map((t=>t.value))))}(t,this.options)}))}prepareBeforeLoad(t){this.toolbarButtonRenderer=new ms(this.options),this.registerToolbarButtonRenderer(ks.TOOLBAR_BUTTON_KEY,this.toolbarButtonRenderer,t)}}[R,T].forEach((t=>{rt.registerActionHandleStrategy(t.name,gs.name,new bs),et.register(t.name,new xs),function(t){Ls.has(t)||(Ls.add(t),rt.attachAnnotationFromJson(t,"lineHeight",((e,n)=>{if("string"!=typeof n||""===n)return;e.annotationMap.set(...ws.from(n));const i=Cs.get(t);i&&i.size>0&&function(t,e){const n=t.annotationMap.get(fs.LINE_HEIGHT);if(!n||e.has(n.lineHeight))return;const i=n.lineHeight;t.annotationMap.delete(fs.LINE_HEIGHT);const s=t.annotationMap.get($.CUSTOM_STYLE);s?s.customStyle=Object.assign(Object.assign({},s.customStyle),{lineHeight:i}):t.annotationMap.set(...tt.from({lineHeight:i}))}(e,i)})))}(t)})),ks.TOOLBAR_BUTTON_KEY="lineHeight";class Ss extends A{constructor(t,e){super(),this.type="COPY_SELECTED_CONTENT_ACTION",this.selection=null,this.selectedNodes=[],this.copyResult=null,this.selection=t,this.selectedNodes=e}}class Ts extends Ue{render(t,e){return this.renderButton(t,e,{icon:"rte-copy",tooltip:{text:"Copy"}})}isDisabled(t){const e=this.getExtensionContext(t.host);return!e||e.host.disabled||!e.getSelection()||e.getSelection().isCollapsed}handleButtonClick(t){const e=this.getExtensionContext(t.host);e&&e.host&&e.host.value.apply(new Ss(e.getSelection(),e.getSelectedNodes()))}handleDropdownClick(){}}at.register({"rte-copy":Le});class As extends rt{prepareBeforeLoad(t){this.registerToolbarButtonRenderer(As.TOOLBAR_BUTTON_KEY,new Ts,t)}}E.register("COPY_SELECTED_CONTENT_ACTION",b.name,new class extends j{handleAction(t){const e=this.getParentBlocks(t.selectedNodes),{html:n,text:i}=this.getSelectedContent(t.selection,e);(i||n)&&(t.copyResult=this.copyToClipboard(n,i))}getSelectedContent(t,e){const n={html:"",text:""};if(!t||0===t.rangeCount||t.isCollapsed)return n;const i=t.getRangeAt(0),s=me();if(!s)return n;const r=i.cloneContents(),a=s.createElement("div"),o=i.commonAncestorContainer;if(1===e.length){const t=this.getDOMByEntity(e[0]);if(t&&t.contains(o)){const e=this.wrapWithAncestorChain(r,o,t);return a.appendChild(e),n.html=a.innerHTML,n.text=a.textContent,n}}else if(e.length>1&&e.every((t=>"list-item"===t.type))){const t=e[0].parent;if(t&&e.every((e=>e.parent===t))){const e=this.getDOMByEntity(t);if(e&&e.contains(o)){const t=e.cloneNode(!1);return t.appendChild(r),a.appendChild(t),n.html=a.innerHTML,n.text=a.textContent,n}}}return a.appendChild(r),n.html=a.innerHTML,n.text=a.textContent,n}wrapWithAncestorChain(t,e,n){const i=n.cloneNode(!1),s=e.nodeType===Node.TEXT_NODE?e.parentElement:e;if(s===n)return i.appendChild(t),i;const r=s.cloneNode(!1);r.appendChild(t);let a=r,o=s.parentElement;for(;o&&o!==n;){const t=o.cloneNode(!1);t.appendChild(a),a=t,o=o.parentElement}if(i.appendChild(a),"LI"===i.tagName&&o&&o.parentElement&&"OL"===o.parentElement.tagName){const t=o.parentElement.cloneNode(!1);return t.appendChild(i),t}return i}getParentBlocks(t){const e=[];for(const n of t){const t=n.parent;t&&!e.includes(t)&&e.push(t)}return e}async copyToClipboard(t,e){let n=!1;try{const i=new Blob([t],{type:"text/html"}),s=new Blob([e],{type:"text/plain"}),r=new ClipboardItem({"text/html":i,"text/plain":s});await navigator.clipboard.write([r]),n=!0}catch(i){n=this.copyWithExecCommand(t,e),n||a.warn("Failed to copy the selected content to the clipboard. Use keyboard shortcuts instead.")}return n}copyWithExecCommand(t,e){const n=me();if(!n)return!1;const i=n=>{n.clipboardData&&(n.clipboardData.setData("text/html",t),n.clipboardData.setData("text/plain",e)),n.preventDefault()};n.addEventListener("copy",i);try{return n.execCommand("copy")}finally{n.removeEventListener("copy",i)}}}),As.TOOLBAR_BUTTON_KEY="copy";class Es extends A{constructor(t,e,n=!1){super(),this.type=P.DELETE_SELECTED_CONTENT,this.mergeFlag=!1,this.host=t,this.mergeFlag=e,this.isFlushable=n}}class Os extends Ts{render(t,e){return this.renderButton(t,e,{icon:"rte-cut",tooltip:{text:"Cut"}})}async handleButtonClick(t){const e=this.getExtensionContext(t.host);if(e&&e.host){const{host:t}=e,n=new Ss(e.getSelection(),e.getSelectedNodes());t.value.apply(n),await n.copyResult&&t.value.apply(new Es(t,!0,!0))}}}at.register({"rte-cut":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2026 Fonticons, Inc. --\x3e<path fill="currentColor" d="M48 112a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm176 0C224 50.1 173.9 0 112 0S0 50.1 0 112 50.1 224 112 224c24 0 46.3-7.6 64.5-20.4l57.3 52.4-57.3 52.4C158.3 295.6 136 288 112 288 50.1 288 0 338.1 0 400s50.1 112 112 112 112-50.1 112-112c0-20.5-5.5-39.6-15.1-56.2L504.2 73.7c9.8-8.9 10.5-24.1 1.5-33.9s-24.1-10.5-33.9-1.5l-202.4 185.2-60.5-55.3c9.6-16.5 15.1-35.7 15.1-56.2zM471.8 473.7c9.8 8.9 25 8.3 33.9-1.5s8.3-25-1.5-33.9L338.6 286.8 302.7 319 471.8 473.7zM48 400a64 64 0 1 1 128 0 64 64 0 1 1 -128 0z"/></svg>'}});class Is extends rt{prepareBeforeLoad(t){this.registerToolbarButtonRenderer(Is.TOOLBAR_BUTTON_KEY,new Os,t)}}Is.TOOLBAR_BUTTON_KEY="cut";class Rs extends A{constructor(t,e){super(),this.type=P.INSERT_NODE_TO_NEAREST_ROOT,this.rteRange=t,this.nodeToBeInserted=e}}class Ns extends j{handleAction(e,n){const{rteRange:i,token:s}=e;if(i&&i.startNode){const{key:r,label:a,customAttrs:o={wrapped:"true"}}=s,l=new Ye(t(),r,a,n);l.annotationMap.set("CUSTOM_ATTRIBUTE",new W(o)),n.apply(new Rs(i,l)),e.actionHandleResult=!0}}}const js=new class extends v{canHandle(t,e){const n=t[e];return"SPAN"===n.nodeName&&n.classList.contains("token")&&n.hasAttribute("token-key")?1:0}handle(e){const n=e[0],i=n.getAttribute("token-key"),s=n.textContent,r=y.generate(O,n),{customAttribute:a}=r,o=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}(r,["customAttribute","customClass"]);return{id:t(),type:"token",token:i,text:s,annotations:Object.assign(Object.assign({},o),{customAttribute:this.createCustomAttrs(a)})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}createCustomAttrs(t){const e=Object.assign(Object.assign({},t),{contenteditable:null,"template-token-key":null,"token-key":null,wrapped:"false"===t.wrapped?"false":"true"});return ye(e)}};class Bs extends rt{constructor(t=[]){super(),this.tokenRenderer=new Qe,this.tokenList=t,this.registerNode("token",Ye),this.registerRenderer("token",this.tokenRenderer),this.registerElementToNodeDTOClassStrategy(js)}prepareBeforeLoad(t){this.registerToolbarButtonRenderer(Bs.TOOLBAR_BUTTON_KEY,new Je(this.tokenList),t)}}(()=>{const t=new Ns;rt.registerActionHandleStrategy(R.name,"INSERT_TOKEN_NODE",t),rt.registerActionHandleStrategy(T.name,"INSERT_TOKEN_NODE",t)})(),Bs.TOOLBAR_BUTTON_KEY="token";export{Qe as A,Xe as B,dn as C,Es as D,Rs as I,Je as R,Te as V,Ie as a,je as b,De as c,Ke as d,qe as e,Bs as f,tn as g,ps as h,yn as i,Bi as j,qi as k,ts as l,us as m,Qi as n,Gi as o,Ui as p,Zi as q,Ji as r,Yi as s,ks as t,As as u,Is as v,Pe as w,Ge as x,Ue as y,Ye as z}
@@ -1 +0,0 @@
1
- import{L as e}from"./p-6e1ab235.js";import{C as t}from"./p-2d0d575f.js";import{U as a}from"./p-cb378636.js";const n={"This field is required":"This field is required","The minimum input value is {0}":"The minimum input value is {0}","The maximum input value is {0}":"The maximum input value is {0}","The end value should be greater than the start value":"The end value should be greater than the start value","The end date should be later than start date":"The end date should be later than start date","Credit card number is invalid":"Credit card number is invalid","Please enter the correct email format.":"Please enter the correct email format.","The maximum input length is {0}":"The maximum input length is {0}","The start date should be later than {0}":"The start date should be later than {0}","The start date should be earlier than {0}":"The start date should be earlier than {0}","The end date should be earlier than {0}":"The end date should be earlier than {0}","The date should be later than {0}":"The date should be later than {0}","The date should be earlier than {0}":"The date should be earlier than {0}","The minimum input length is {0}":"The minimum input length is {0}","The end time should be later than start time":"The end time should be later than start time","Phone number is not valid":"Phone number is not valid","Phone number is valid but it belongs to country {0}, not country {1}":"Phone number is valid but it belongs to country {0}, not country {1}","The value does not exist in the source":"The value does not exist in the source","There are values that do not exist in the source":"There are values that do not exist in the source",Viewing:"Viewing",Show:"Show","Go To":"Go To","Viewing {0}-{1} of {2}":"Viewing {0}-{1} of {2}","Viewing [{0}-{1}] of {2}":"Viewing [{0}-{1}] of {2}","Show [{0} items / page]":"Show [{0} items / page]","Items Per Page":"Items Per Page",Upload:"Upload",Clear:"Clear",Today:"Today","Previous month":"Previous month","Next month":"Next month",Day:"Day",Week:"Week",Month:"Month",Sun:"Sun",Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat","Sun-short":"S","Mon-short":"M","Tue-short":"T","Wed-short":"W","Thu-short":"T","Fri-short":"F","Sat-short":"S","Sun-full":"Sunday","Mon-full":"Monday","Tue-full":"Tuesday","Wed-full":"Wednesday","Thu-full":"Thursday","Fri-full":"Friday","Sat-full":"Saturday",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",Jan:"Jan",Feb:"Feb",Mar:"Mar",Apr:"Apr",Jun:"Jun",Jul:"Jul",Aug:"Aug",Sep:"Sep",Oct:"Oct",Nov:"Nov",Dec:"Dec","All Day":"All Day","Select or drop your file here":"Select or drop your file here","Please sign here":"Please sign here","Clear Signature":"Clear Signature","Start Date":"Start Date","End Date":"End Date","Please select":"Please select","No options":"No options","No results found":"No results found",Minimum:"Minimum",Maximum:"Maximum","Select Time":"Select Time","Start Time":"Start Time","End Time":"End Time","There is no data to display":"There is no data to display","Text Styles":"Text Styles",Bold:"Bold",Italic:"Italic",Underline:"Underline",Strikethrough:"Strikethrough",Code:"Code","Text Color":"Text Color","Left Align":"Left Align","Center Align":"Center Align","Right Align":"Right Align",Justified:"Justified","Line Height":"Line Height",Bullets:"Bullets",Numbers:"Numbers","More Indent":"More Indent","Less Indent":"Less Indent",Link:"Link",Image:"Image","Upload from computer":"Upload from computer","Insert via URL":"Insert via URL","Image via URL":"Image via URL",Insert:"Insert","Clear Style":"Clear Style","Find and replace":"Find and replace","Find in text":"Find in text","Previous match":"Previous match","Next match":"Next match",Find:"Find",Close:"Close","Replace with":"Replace with",Replace:"Replace","Replace All":"Replace All","Whole words":"Whole words","Match case":"Match case","Advanced options":"Advanced options",URL:"URL",Text:"Text",Edit:"Edit",Unlink:"Unlink",Size:"Size","Alt Text":"Alt Text","Delete Image":"Delete Image",Sm:"Sm",Md:"Md",Lg:"Lg",Title:"Title",Subtitle:"Subtitle","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3",Paragraph:"Paragraph","Reset Selection":"Reset Selection","Select Language":"Select Language","Select language":"Select language",Tokens:"Tokens","Insert token":"Insert token",Functions:"Functions","Insert function":"Insert function",Conditional:"Conditional",Foreach:"Foreach","Delete Code":"Delete Code","Copy Code":"Copy Code","Code Block":"Code Block",Copied:"Copied","Repeat every {0} days":"Repeat every {0} days","Repeat daily":"Repeat daily","Repeat every {0} weeks on {1}":"Repeat every {0} weeks on {1}","Repeat weekly on {0}":"Repeat weekly on {0}","Repeat every {0} months on day {1}":"Repeat every {0} months on day {1}","Repeat monthly on day {0}":"Repeat monthly on day {0}","Repeat every {0} years on {1} {2}":"Repeat every {0} years on {1} {2}","Repeat yearly on {0} {1}":"Repeat yearly on {0} {1}","until {0}":"until {0}","after {0} occurrences":"after {0} occurrences",Sunday:"Sunday",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",am:"am",pm:"pm","{0} Selected":"{0} Selected","date picker":"Date Picker","Selected result":"Selected result","Close event preview detail":"Close event preview detail","Edit event":"Edit event","More actions":"More actions","Expand accordion":"Expand accordion","Collapse accordion":"Collapse accordion","Expand {0} accordion":"Expand {0} accordion","Collapse {0} accordion":"Collapse {0} accordion","Clear color":"Clear color","Color swatch":"Color swatch","Color {0}":"Color {0}",Apply:"Apply","Enter color":"Enter color","Horizontal line":"Horizontal line","Special Characters":"Special Characters",All:"All",Latin:"Latin",Mathematical:"Mathematical",Arrows:"Arrows",Currency:"Currency",Required:"Required",Disabled:"Disabled",Optional:"Optional",Previous:"Previous",Next:"Next",Copy:"Copy",Cut:"Cut"};class r{constructor(){this.resources={en:n},this._currentLanguage="en"}get currentLanguage(){return this._currentLanguage}init({resources:r,language:o}){r&&Object.keys(r).length>0?this.resources=r:(e.warn('Resources are empty. Falling back to default language "en".'),this.resources={en:n}),o&&o in this.resources?this._currentLanguage=o:(e.warn(`Language "${o}" not found in resources. Falling back to default language "en".`),this._currentLanguage="en"),t.notify(a,{})}changeLanguage(n){this.resources[n]?(this._currentLanguage=n,t.notify(a,{})):e.warn(`Language "${n}" not found in resources.`)}t(e,...t){return t.reduce(((e,t,a)=>e.replace(new RegExp(`\\{${a}\\}`,"g"),String(t))),this.resources[this._currentLanguage][e]||n[e]||e)}registerComponent(e){const t=r.connectedComponents.get(e.tagName);t?t.add(e):r.connectedComponents.set(e.tagName,new Set([e]))}unRegisterComponent(e){const t=r.connectedComponents.get(e.tagName);t&&t.delete(e)}getConnectedComponents(){return r.connectedComponents}tWithPreservedBlocks(e,t=/(\[[^\]]*\])/g,...a){return this.t(e,...a).split(t).map((e=>{const a=t.test(e);return{content:a?e.substring(1,e.length-1):e,isPreserved:a}}))}}r.connectedComponents=new Map;const o=new r;export{o as V,n as s}
@@ -1 +0,0 @@
1
- import{M as e,V as t}from"./p-6e1ab235.js";import{K as c}from"./p-de885ef2.js";var n=function(e,t,c,n){var o,l=arguments.length,a=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,c):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,c,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(l<3?o(a):l>3?o(t,c,a):o(t,c))||a);return l>3&&a&&Object.defineProperty(t,c,a),a};class o extends t{constructor(e){super(),this.keyboardEventListeners=[],this.listenersRetriever=e}connectedCallback(){c.register(this.keyboardEventListeners)}disconnectedCallback(){c.deregister(this.keyboardEventListeners)}componentDidLoad(){this.keyboardEventListeners=this.listenersRetriever(this),c.register(this.keyboardEventListeners)}}n([e("connectedCallback")],o.prototype,"connectedCallback",null),n([e("disconnectedCallback")],o.prototype,"disconnectedCallback",null),n([e("componentDidLoad")],o.prototype,"componentDidLoad",null);export{o as K}
@@ -1 +0,0 @@
1
- import{h as e,F as t,H as i,r as o,c as a,g as r}from"./p-6b2342e0.js";import{R as n}from"./p-8bc15ed0.js";import{g as s,s as d}from"./p-519a7d55.js";import{a1 as p,a2 as l}from"./p-4d9061fb.js";import{c,M as h,V as f,I as b}from"./p-6e1ab235.js";import{V as m,I as v}from"./p-8ce9e214.js";import{F as g}from"./p-136226f8.js";import{C as x}from"./p-5beec481.js";import{c as u}from"./p-70817cf5.js";import{s as w,z as y,V as j,i as R,d as I,t as C}from"./p-0179f55d.js";import{F as k}from"./p-cb378636.js";import{C as O}from"./p-2d0d575f.js";import{c as z}from"./p-3a620268.js";import{D}from"./p-526e3634.js";import{m as S}from"./p-3a68b729.js";import{h as A,l as E}from"./p-f0e828d8.js";import{f as V}from"./p-8da860f6.js";import{K as L}from"./p-7be548a7.js";import{f as H}from"./p-528748fa.js";import{M as T}from"./p-78a57a17.js";import{T as F}from"./p-52b8f2d2.js";import{P as M}from"./p-81dd00d0.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-683cfe24.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-5de1acdb.js";import"./p-5f377954.js";import"./p-b75ee3ba.js";import"./p-71e2a3ec.js";import"./p-49a2e141.js";import"./p-0c667d6a.js";import"./p-4953bb1a.js";import"./p-de885ef2.js";const _=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a value is edited in the combo box",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a value is edited in the combo box",payloadValue:e=>!1===e.autoValidation}];var K=function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class N extends f{constructor(){super(...arguments),this.onItemClick=async()=>{this.valueController.setValue(await this.dropdownRef.getSelection()),await this.clearInput()},this.onDropdownHide=async()=>{await this.clearInput()},this.onDropdownCreate=async e=>{this.createEventEmit.emit(e),await this.clearInput()},this.onInputChange=async e=>{const t=e.target.value;(this.useDefaultFilter||this.vegaDropdownProps.dynamicOption)&&(await this.dropdownRef.show(),await this.dropdownRef.search(t)),!this.isTemplateMode&&this.useDefaultFilter||this.searchEventEmit.emit(t)}}connectedCallback(){this.isTemplateMode=null!==this.host.querySelector("[slot=items]")}getDropdownRef(){return this.dropdownRef}getSearchInputRef(){return this.searchInputRef}focusInput(){this.searchInputRef.focus()}async hide(){await this.dropdownRef.hide()}async show(){await this.dropdownRef.show()}replaceItemsSlot(e){e&&this.itemsSlotRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(e))}renderDropdown(){return e("vega-dropdown",Object.assign({trigger:this.disabled?"none":"click",source:this.source,selectType:"multiple",selectedSourceKey:this.value,matchTargetWidth:!0,useDefaultFilter:this.useDefaultFilter},this.vegaDropdownProps,{ref:e=>{this.dropdownRef=e,D.addUniqueObserverToNode(e,w,(async e=>{await this.onDropdownCreate(e.detail)})),D.addUniqueObserverToNode(e,y,(async()=>{await this.onDropdownHide()})),D.addUniqueObserverToNode(e,j,(async()=>{await this.onItemClick()})),D.addUniqueObserverToNode(e,S,(e=>{const t=Array.from(e).filter((e=>!this.source.find((t=>t.key===e.itemKey)))).map((e=>({key:e.itemKey,label:e.label})));this.sourceController.setSource([...this.source,...t])}))}}),this.renderContainer(),this.renderItemsSlot())}renderContainer(){const i=V(this.containerMaxHeight,"widthAndHeight");return e("div",{class:{"vega-combo-box-container":!0,[`vega-combo-box-size-${this.size}`]:!0}},i?e("div",{class:"vega-combo-box-container-content",style:i?{maxHeight:i}:void 0},this.renderSelectedContainer(),this.renderInputContainer()):e(t,null,this.renderSelectedContainer(),this.renderInputContainer()))}renderItemsSlot(){return this.isTemplateMode&&e("div",{slot:"items",ref:e=>{this.itemsSlotRef=e}})}renderSelectedContainer(){const i=this.value.map((e=>this.source.find((t=>t.key===e)))).filter((e=>e));return e(t,null,i.map((e=>this.renderSelectedChip(e))))}renderSelectedChip(t){return e("vega-chip",{key:t.key,text:A.sanitize(t.label,E),variant:"outlined",showCloseIcon:!this.disabled,size:"small",ref:e=>{D.addUniqueObserverToNode(e,R,(async()=>{await this.onChipClose(t.key)}))}})}renderInputContainer(){return e("div",{class:"vega-combo-box-input-container"},e("input",{onInput:this.onInputChange,"aria-label":this.label||"No label defined",placeholder:0===this.value.length?this.placeholder:"",ref:e=>this.searchInputRef=e,onKeyDown:z(),disabled:this.disabled}))}async onChipClose(e){this.valueController.setValue([...this.value.filter((t=>t!==e))]),await this.dropdownRef.hide()}async clearInput(){this.searchInputRef.value="",await this.dropdownRef.search("")}}K([c()],N.prototype,"host",void 0),K([c()],N.prototype,"value",void 0),K([c()],N.prototype,"source",void 0),K([c()],N.prototype,"disabled",void 0),K([c()],N.prototype,"size",void 0),K([c()],N.prototype,"containerMaxHeight",void 0),K([c()],N.prototype,"vegaDropdownProps",void 0),K([c()],N.prototype,"label",void 0),K([c()],N.prototype,"placeholder",void 0),K([c()],N.prototype,"useDefaultFilter",void 0),K([c()],N.prototype,"createEventEmit",void 0),K([c()],N.prototype,"searchEventEmit",void 0),K([c()],N.prototype,"valueController",void 0),K([c()],N.prototype,"sourceController",void 0),K([h("connectedCallback")],N.prototype,"connectedCallback",null);class P extends f{setValue(e){this.value=e}}!function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);r>3&&n&&Object.defineProperty(t,i,n)}([c({writable:!0})],P.prototype,"value",void 0);var G=function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class U extends f{constructor(){super(...arguments),this.onLabelClick=()=>{this.dropdownRenderer.focusInput()}}render(){return e(i,{class:{"vega-combo-box-disabled":this.disabled}},this.renderLabel(),this.dropdownRenderer.renderDropdown(),this.renderHint())}renderLabel(){return e("vega-field-label",{onClick:this.onLabelClick,"is-field-required":this.required,disabled:this.disabled,optional:this.optional,label:this.label})}renderHint(){return e("div",{class:"vega-combo-box-hint"},this.hint)}}G([c()],U.prototype,"required",void 0),G([c()],U.prototype,"optional",void 0),G([c()],U.prototype,"hint",void 0),G([c()],U.prototype,"disabled",void 0),G([c()],U.prototype,"dropdownRenderer",void 0),G([c()],U.prototype,"label",void 0);var q=function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class B extends L{constructor(){super((e=>[{keyCode:"Backspace",activeElementInScope:[e.dropdownRenderer.getSearchInputRef()],eventName:"keydown",callback:e.deleteLastSelectedItem},{keyCode:"ArrowLeft",activeElementInScope:[e.host],callback:()=>e.controlDirectionByKeyboard("ArrowLeft")},{keyCode:"ArrowRight",activeElementInScope:[e.host],callback:()=>e.controlDirectionByKeyboard("ArrowRight")}])),this.deleteLastSelectedItem=()=>{""===this.dropdownRenderer.getSearchInputRef().value&&(this.value.pop(),this.valueController.setValue([...this.value]))}}controlDirectionByKeyboard(e){const t=s();if(t&&t.classList.contains("vega-chip-close-icon")){const i=H(t,"vega-chip");"ArrowLeft"===e&&this.focusItemByKeyboard(i.previousSibling),"ArrowRight"===e&&this.focusItemByKeyboard(i.nextSibling)}else"ArrowLeft"===e&&0===this.dropdownRenderer.getSearchInputRef().selectionStart&&this.focusItemByKeyboard(this.host.shadowRoot.querySelector("vega-chip:last-of-type"))}focusItemByKeyboard(e){e&&(e.classList.contains("vega-combo-box-input-container")?e.querySelector("input").focus():e.shadowRoot.querySelector(".vega-chip-close-icon").focus())}}q([c()],B.prototype,"host",void 0),q([c()],B.prototype,"value",void 0),q([c()],B.prototype,"dropdownRenderer",void 0),q([c()],B.prototype,"valueController",void 0);var W=function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};class $ extends f{constructor(){super(...arguments),this.mutationObserver=new T({mutationFilter:F("VEGA-DROPDOWN-ITEM"),options:{childList:!0,subtree:!0},callback:()=>this.appendHostItemsToDropdown()})}componentDidLoad(){this.appendHostItemsToDropdown()}appendHostItemsToDropdown(){this.dropdownRenderer.replaceItemsSlot(this.host.querySelector("[slot=items]"))}}W([b()],$.prototype,"mutationObserver",void 0),W([c()],$.prototype,"host",void 0),W([c()],$.prototype,"dropdownRenderer",void 0),W([h("componentDidLoad")],$.prototype,"componentDidLoad",null);class J extends f{setSource(e){this.source=e}}!function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);r>3&&n&&Object.defineProperty(t,i,n)}([c({writable:!0})],J.prototype,"source",void 0);var Q=function(e,t,i,o){var a,r=arguments.length,n=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(r<3?a(n):r>3?a(t,i,n):a(t,i))||n);return r>3&&n&&Object.defineProperty(t,i,n),n};const X=class{constructor(e){o(this,e),this.vegaChange=a(this,"vegaChange",7),this.change=a(this,"change",7),this.vegaCreate=a(this,"vegaCreate",7),this.create=a(this,"create",7),this.vegaSearch=a(this,"vegaSearch",7),this.search=a(this,"search",7),this.globalSlimmers={},this.itemsSlotController=new $,this.keyboardController=new B,this.valueController=new P,this.sourceController=new J,this.renderer=new U,this.dropdownRenderer=new N,this.pageResizeSlimmer=new M,this.formFieldController=new g({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new n:null}],validationRulesName:"validationRules",defaultValue:[],attributeGetter:e=>this[e],inputContainerGetter:()=>this.dropdownRenderer.getDropdownRef(),touchableAreaGetter:()=>[this.dropdownRenderer.getSearchInputRef()]}),this.changeEventEmit=u(X,I),this.createEventEmit=u(X,w),this.searchEventEmit=u(X,C),this.dropdownEventPrevent=new x([w,C],(()=>this.dropdownRenderer.getDropdownRef()),{customPreventHandle:e=>{e.stopImmediatePropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(_),this.label="",this.required=!1,this.optional=!1,this.source=[],this.value=[],this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.disabled=!1,this.placeholder="",this.hint="",this.size="medium",this.vegaDropdownProps={},this.useDefaultFilter=!0}watchSource(){this.source=p(this.source,l)?this.source:[]}watchValue(){this.changeEventEmit.emit(this.value),O.notify(k,{host:this.host,detail:this.value})}watchValidationRules(){}watchContainerMaxHeight(){}async close(){this.disabled||await this.dropdownRenderer.hide()}async open(){this.disabled||await this.dropdownRenderer.show()}render(){return d(this.renderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{source:["watchSource"],value:["watchValue"],validationRules:["watchValidationRules"],containerMaxHeight:["watchContainerMaxHeight"]}}};Q([v()],X.prototype,"globalSlimmers",void 0),Q([b()],X.prototype,"itemsSlotController",void 0),Q([b()],X.prototype,"keyboardController",void 0),Q([b()],X.prototype,"valueController",void 0),Q([b()],X.prototype,"sourceController",void 0),Q([b()],X.prototype,"renderer",void 0),Q([b()],X.prototype,"dropdownRenderer",void 0),Q([b()],X.prototype,"pageResizeSlimmer",void 0),Q([b()],X.prototype,"formFieldController",void 0),Q([b()],X.prototype,"changeEventEmit",void 0),Q([b()],X.prototype,"createEventEmit",void 0),Q([b()],X.prototype,"searchEventEmit",void 0),Q([b()],X.prototype,"dropdownEventPrevent",void 0),Q([b()],X.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),X.style=':host{display:inline-block;width:100%;min-width:0px;text-align:left;line-height:normal}.vega-combo-box-container{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;border-radius:8px;gap:8px;display:block;display:flex;flex-wrap:wrap;align-items:center;cursor:pointer}.vega-combo-box-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-combo-box-container-content{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;max-height:100%;overflow-y:auto;overflow-x:hidden;min-height:26px}.vega-combo-box-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.vega-combo-box-container .vega-combo-box-input-container{width:-webkit-min-content;width:-moz-min-content;width:min-content;flex-grow:1}.vega-combo-box-container input{border-style:none;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));width:100%}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-combo-box-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-combo-box-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-combo-box-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-combo-box-container input:focus{outline:2px solid transparent;outline-offset:2px}.vega-combo-box-size-medium{padding-left:12px;padding-right:12px;padding-top:11px;padding-bottom:11px}.vega-combo-box-size-small{padding-left:12px;padding-right:12px;padding-top:7px;padding-bottom:7px}.vega-combo-box-container:focus{outline:none}vega-field-label{margin-bottom:8px}.error .vega-combo-box-container{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.error .vega-combo-box-container:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.error .vega-combo-box-container:focus-within{border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1));outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}:host(.vega-combo-box-disabled) .vega-combo-box-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.vega-combo-box-disabled) .vega-combo-box-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.vega-combo-box-disabled) vega-icon{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.vega-combo-box-container input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-combo-box-hint{padding-left:8px;padding-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-top:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-combo-box-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-combo-box-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-combo-box-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-error:not(.vega-hidden)+.vega-combo-box-hint{padding-top:4px}vega-dropdown{display:block}';export{X as vega_combo_box}
@@ -1 +0,0 @@
1
- import{F as s}from"./p-87a4d75f.js";import{V as l,a as o,b as a,c as t,w as i,d as e,e as c,f as n,g as b,h as r,i as h,j as f,k as p,l as T,m as d,n as g,o as m,p as u,q as j,r as C,s as O,t as k,u as v,v as E,x as R}from"./p-5df9047c.js";import{V}from"./p-e371738b.js";import{M as _,V as A,s as L,G as y}from"./p-6e1ab235.js";import{V as D}from"./p-e8f50fc5.js";import{T as M}from"./p-b438e68b.js";import{V as N}from"./p-ffdc25ec.js";import{V as x,s as F}from"./p-683cfe24.js";import{V as H}from"./p-8d69b201.js";import{v as P}from"./p-5f377954.js";import{U as w}from"./p-cb378636.js";import{C as G}from"./p-2d0d575f.js";import{O as W}from"./p-331a62d5.js";import{f as B}from"./p-6b2342e0.js";import{V as q}from"./p-ea54ce0a.js";import{v as K,s as S}from"./p-4866e390.js";import{V as U}from"./p-f4a01959.js";import{V as Y}from"./p-93dfab05.js";import"./p-4d9061fb.js";var z=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class I extends A{constructor(l){super(),this.originalWatchers=new Map,this.hasDisconnected=!1,this.isEnabled=s.isEnabled("VEGA_REACT.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD")&&s.isEnabled("VEGA_FRAMEWORK.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD"),this.component=l.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const l in s)s[l].forEach((s=>{this.originalWatchers.has(s)||(this.originalWatchers.set(s,this.component[s]),this.component[s]=function(){})}))}disconnectedCallback(){this.isEnabled&&(this.hasDisconnected=!0)}componentDidLoad(){this.isEnabled&&this.originalWatchers.forEach(((s,l)=>{const o=s;this.component[l]=function(...s){return o.apply(this,s)}}))}}z([_("connectedCallback")],I.prototype,"connectedCallback",null),z([_("disconnectedCallback")],I.prototype,"disconnectedCallback",null),z([_("componentDidLoad")],I.prototype,"componentDidLoad",null);var J=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class Q extends A{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new W(this.isAcceptable.bind(this),(()=>{B(this.component)})),G.register(w,this.observer)}disconnectedCallback(){this.observer&&(G.unregister(w,this.observer),this.observer=null)}isAcceptable(){var s,l;const o=this.component.host;return null!==(l=null===(s=x.getConnectedComponents().get(o.tagName))||void 0===s?void 0:s.has(o))&&void 0!==l&&l}}J([_("connectedCallback")],Q.prototype,"connectedCallback",null),J([_("disconnectedCallback")],Q.prototype,"disconnectedCallback",null);class X extends A{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,l=s.insertBefore;s.insertBefore=function(s,o){if("STYLE"===s.nodeName){const l=K.nonce;void 0!==l&&s.setAttribute("nonce",l)}return l.call(this,s,o)}}}!function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);i>3&&e&&Object.defineProperty(l,o,e)}([_("connectedCallback")],X.prototype,"connectedCallback",null);const Z=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=l,globalThis.VegaNotify=o,globalThis.VegaThemeManager=V,globalThis.setVegaLogLevel=L,globalThis.VegaDialog=D,y.register([I,Q,X]),globalThis.VegaEventManager=a,Object.keys(M).forEach((s=>{const{url:l}=M[s],o="vega-typography-"+s;if(!document.querySelector("#"+o)){const s=document.createElement("link");s.id=o,s.href=l,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=N,globalThis.VegaZIndexManager=t,globalThis.ValidCreditCardNumberRule=H,globalThis.VegaEnvInfo=P.getVegaEnv(),import("./p-982747ef.js").then((l=>{l.default.init(s)})),globalThis.waitForVega=i,globalThis.VegaSkeletonLoader=e,globalThis.VegaTranslation=c,globalThis.VegaTranslationResourceEN=F,globalThis.VegaRTEContent=q,globalThis.VegaRTETokenExtension=n,globalThis.VegaRTELanguageExtension=b,globalThis.VegaRTEPresetToolbarItems=U,globalThis.VegaRTEDefaultLineHeightOptions=r,globalThis.VegaRTEFunctionExtension=h,globalThis.VegaRTETableExtension=f,globalThis.VegaRTEHorizontalLineExtension=p,globalThis.VegaRTESpecialCharactersExtension=T,globalThis.VegaRTEFindReplaceExtension=d,globalThis.VegaRTESpecialCharactersEssentials=g,globalThis.VegaRTESpecialCharactersLatin=m,globalThis.VegaRTESpecialCharactersMathematical=u,globalThis.VegaRTESpecialCharactersArrows=j,globalThis.VegaRTESpecialCharactersCurrency=C,globalThis.VegaRTESpecialCharactersText=O,globalThis.VegaRTELineHeightExtension=k,globalThis.VegaRTELinkExtension=Y,globalThis.VegaRTECopyExtension=v,globalThis.VegaRTECutExtension=E,import("./p-f0bc2bbb.js").then((s=>{Object.entries(s).forEach((([s,l])=>{globalThis[s]=l}))})),globalThis.VegaThemeManagerApplyBranding&&V.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=S,K.patchHeadInsertBeforeWithNonceToStencil(),globalThis.VegaCalendarPeriodFactory=R};export{Z as g}
@@ -1 +0,0 @@
1
- import{m as r,n as a,o as t,p as o,q as n,r as e,s,t as i,l as f,u,B as c,c as b,j as d,v as p}from"./p-4d9061fb.js";import{B as l}from"./p-ed45b3b6.js";import{L as m}from"./p-6e1ab235.js";import{R as $}from"./p-71e2a3ec.js";import{a as v}from"./p-b438e68b.js";import{S as j,a as g,b as k}from"./p-4953bb1a.js";import{B as h}from"./p-d4ea8e22.js";const w=new class{format(a,t){switch(t){case"backgroundColor":return r.format(a);case"borderColor":return k.format(a);case"shadow":return g.format(a);case"border":return j.format(a);default:throw new Error(`Invalid flag ${t} passed into StateFormatFacade`)}}};function O(r,a,t){m.warn(`The ${r} value ${a} is invalid, it must be a value of: `,t)}function x(r,a){let t="";return a.includes("dark")&&(t+=` dark:v-dark-${r}`),t}function B(r){if(a(r))return`v-p-${r}`;O("padding",r,Object.keys(f))}function C(r){if(u(r))return`v-border-${r}`;O("border-style",r,h)}function F(r){if(t(r))return`v-${r}`;O("border-radius",r,Object.keys(c))}function S(r){if(o(r))return`v-${r}`;O("border-color",r,b.filter((()=>/^border-color-.+$/.test)))}function q(r,a=[]){if(n(r))return`v-${r}`+x(r,a);O("background-color",r,b.filter((()=>/^bg-.+$/.test)))}function y(r,a=[]){if(e(r))return`v-${r}`+x(r,a);O("text-color",r,b.filter((()=>/^text-.+$/.test)))}function E(r){if(s(r))return`vega-flex-${r}`;O("breakpoint",r,Object.keys(l))}function I(r){if(s(r))return l[r];O("breakpoint",r,Object.keys(l))}function L(r){if(a(r))return`v-gap-${r}`;O("gap",r,Object.keys(f))}function R(r,a=[]){if(i(r))return`v-${r}`+x(r,a);O("shadows",r,d)}function T(r,a){if(null!=r)return $.format(r,a)}function z(r){if(p(r))return`v-${r}`;O("font",r,v)}function A(r,a){if(null!=r)return w.format(r,a)}export{L as a,R as b,I as c,q as d,S as e,T as f,F as g,B as h,y as i,A as j,C as k,E as l,z as m}
@@ -1 +0,0 @@
1
- import{i as o}from"./p-4d9061fb.js";import{R as f}from"./p-71e2a3ec.js";function i(i,r,e,s){return o(i)?{flex:`${f.formatCustom(i)}`}:{flexGrow:o(r)?`${f.formatCustom(r)}`:void 0,flexShrink:o(e)?`${f.formatCustom(e)}`:void 0,flexBasis:o(s)?`${f.formatCustom(s)}`:void 0}}export{i as f}
@@ -1 +0,0 @@
1
- import{b as t,e}from"./p-528748fa.js";import{i as s}from"./p-4d9061fb.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(t){t.map((t=>t.eventName||(t.eventName="keyup"))),this.listeners=this.listeners.concat(t)}deregister(t){this.listeners=this.listeners.filter((e=>!t.includes(e)))}listenKeyPress(){document.addEventListener("keydown",(t=>{this.invokeListeners("keydown",t)})),document.addEventListener("keyup",(t=>{this.invokeListeners("keyup",t)}))}invokeListeners(t,e){this.listeners.filter((s=>s.eventName===t&&this.shouldInvokeListener(s,e))).forEach((t=>{t.preventDefault&&e.preventDefault(),t.callback(e)}))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const u=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!u)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const d=!i.activeElementInScope||r.some((s=>t(e(document,!0),s)));if(!d)return!1;const f=!i.activeElementOutScope||c.every((s=>!t(e(document,!0),s))),h=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),p=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return u&&d&&f&&h&&p}isModifierPressed(t){return/Mac|iPhone|iPad/.test(navigator.userAgent)?t.metaKey:t.ctrlKey}};export{i as K}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as a,g as r}from"./p-6b2342e0.js";import{M as s,a as n}from"./p-cdbbdcc2.js";import{R as o}from"./p-8bc15ed0.js";import{s as p}from"./p-519a7d55.js";import{I as h}from"./p-6e1ab235.js";import{V as d,I as l}from"./p-8ce9e214.js";import{F as x}from"./p-136226f8.js";import{F as g}from"./p-cb378636.js";import{C as f}from"./p-2d0d575f.js";import{c as m}from"./p-70817cf5.js";import{d as c,L as v,B as b}from"./p-0179f55d.js";import{C as u}from"./p-5beec481.js";import{D as w}from"./p-526e3634.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-3a68b729.js";import"./p-683cfe24.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-5de1acdb.js";import"./p-5f377954.js";const y=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!1===t.autoValidation}];var j=function(t,e,i,a){var r,s=arguments.length,n=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const z=class{constructor(a){t(this,a),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.vegaBlur=e(this,"vegaBlur",7),this.blur=e(this,"blur",7),this.vegaLabelButtonClick=e(this,"vegaLabelButtonClick",7),this.labelButtonClick=e(this,"labelButtonClick",7),this.globalSlimmers={},this.formFieldController=new x({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new o:null},{propertyName:"minLength",ruleFactory:t=>t?new s({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new n({maxStrLength:t}):null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.textareaRef]}),this.changeEventEmitter=m(z,c),this.blurEventEmitter=m(z,v),this.labelButtonClickEventEmitter=m(z,b),this.textareaEventPrevent=new u([c],(()=>this.inputContainerRef)),this.vegaComponentUsageRuntimeMetricsSlimmer=new d(y),this.currentCharCount=0,this.placeholder="",this.hint="",this.disabled=!1,this.label="",this.labelSuffixButtonConfig=null,this.showCounter=!1,this.value="",this.isValid=null,this.autoValidation=!0,this.required=!1,this.maxLength=null,this.minLength=null,this.optional=!1,this.resizable=!0,this.rows=5,this.validationRules=[],this.renderTextareaContainer=()=>i("div",{class:{"vega-textarea-container":!0,"vega-textarea-not-resizable":!this.resizable},ref:t=>this.inputContainerRef=t},i("textarea",{rows:this.rows>=2?this.rows-1:4,placeholder:this.placeholder,disabled:this.disabled,required:this.required,ref:this.setTextareaRef,maxLength:this.maxLength,minLength:this.minLength,value:this.value,onBlur:this.handleTextareaBlur,"aria-label":this.label||"No label defined"}),this.showCounter&&this.renderCharacterCounter()),this.renderHintMessage=()=>i("vega-text",{text:this.hint}),this.renderCharacterCounter=()=>i("div",{class:{"vega-textarea-counter":!0,"counter-exceed-max-length":this.isExceedMaxLength(this.value,this.maxLength)}},i("span",{id:"current"},this.currentCharCount),null!=this.maxLength&&this.renderMaxLengthNumber()),this.renderMaxLengthNumber=()=>i("span",{id:"maximum"},"/",this.maxLength),this.setTextareaRef=t=>{t&&this.textareaRef!==t&&(this.textareaRef=t)},this.inputFocus=()=>{this.textareaRef.focus()},this.handleTextareaBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.isExceedMaxLength=(t,e)=>null!=e&&t.length>e,this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()}}watchValue(t){this.changeEventEmitter.emit(t),this.textareaRef.value!==this.value&&(this.textareaRef.value=this.value),t&&(this.currentCharCount=t.length),f.notify(g,{host:this.host,detail:t})}watchValidationRules(){}componentWillLoad(){this.currentCharCount=this.value.length}handleValueTextarea(){this.value=this.textareaRef.value,this.currentCharCount=this.value.length}render(){return p(i(a,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderTextareaContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{onClick:this.inputFocus,"is-field-required":this.required,disabled:this.disabled,label:this.label,optional:this.optional,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{w.addUniqueObserverToNode(t,b,this.handleLabelButtonClick)}})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};j([l()],z.prototype,"globalSlimmers",void 0),j([h()],z.prototype,"formFieldController",void 0),j([h()],z.prototype,"changeEventEmitter",void 0),j([h()],z.prototype,"blurEventEmitter",void 0),j([h()],z.prototype,"labelButtonClickEventEmitter",void 0),j([h()],z.prototype,"textareaEventPrevent",void 0),j([h()],z.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),z.style=':host{display:inline-block;width:100%;text-align:left}:host .vega-textarea-container{display:flex;position:relative;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:50px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host textarea{display:block;position:relative;padding-top:12px;padding-right:16px;padding-bottom:32px;padding-left:16px;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;outline:2px solid transparent;outline-offset:2px;border-style:none;overflow:auto;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));min-height:48px}@media screen and (min-width: 768px) and (max-width: 1023px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-textarea-container.vega-textarea-not-resizable{resize:none}:host .vega-textarea-container.vega-textarea-not-resizable textarea{resize:none}:host vega-field-label{margin-bottom:8px}:host .vega-textarea-counter{position:absolute;bottom:8px;right:8px;display:flex;padding-left:4px;padding-right:4px;padding-top:2px;padding-bottom:2px;border-radius:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));background-color:rgba(var(--v-bg-textarea-count, 4, 4, 28, 0.6))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-counter.counter-exceed-max-length{background-color:rgba(var(--v-bg-textarea-counter-exceed-max-length, 214, 46, 81))}:host textarea::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-text{padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-textarea-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .vega-textarea-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-textarea-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-textarea-container.error:focus-within{border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1));outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}:host(.disabled) textarea{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.disabled) .vega-textarea-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host .vega-hidden{display:none}';export{z as vega_textarea}