@globalpayments/vega 2.97.0 → 2.99.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 (628) hide show
  1. package/dist/cjs/{action-color-accessibility-validator-24498816.js → action-color-accessibility-validator-b8a9ef0f.js} +2 -2
  2. package/dist/cjs/{app-globals-3f57f7b9.js → app-globals-a306dce6.js} +10 -10
  3. package/dist/cjs/{aria-dialog-focusable-trap-slimmer-73b4c0cb.js → aria-dialog-focusable-trap-slimmer-62147489.js} +1 -1
  4. package/dist/cjs/{code-block-28a7732e.js → code-block-ea1f5eb3.js} +58 -14
  5. package/dist/cjs/{component-global-style-slimmer-93c5fb50.js → component-global-style-slimmer-ba588eb4.js} +1 -1
  6. package/dist/cjs/{component-value-history-controller-slimmer.abstract-50cdba6e.js → component-value-history-controller-slimmer.abstract-7071b064.js} +25 -6
  7. package/dist/cjs/constants-907d7d89.js +16 -0
  8. package/dist/cjs/{content-state-e2ab0f06.js → content-state-8d07d530.js} +61 -9
  9. package/dist/cjs/{dark-mode-style-controller-32d4054a.js → dark-mode-style-controller-f3da3342.js} +2 -2
  10. package/dist/cjs/{date-required-rule-5250f26d.js → date-required-rule-c0c498ad.js} +1 -1
  11. package/dist/cjs/{design-token-74674ee7.js → design-token-58bf7fe8.js} +3 -3
  12. package/dist/cjs/{element-appender-slimmer-ccb2e3c2.js → element-appender-slimmer-a0269315.js} +3 -3
  13. package/dist/cjs/{form-field-controller-slimmer-58621b5e.js → form-field-controller-slimmer-f73f200e.js} +4 -4
  14. package/dist/cjs/{image-annotation-action-b54dc669.js → image-annotation-action-2a28038e.js} +3 -3
  15. package/dist/cjs/{image-extension-1e3eeaa3.js → image-extension-9659708b.js} +2 -2
  16. package/dist/cjs/{index-592b4052.js → index-5d1adcd1.js} +86 -0
  17. package/dist/cjs/index.cjs.js +20 -20
  18. package/dist/cjs/{inject-keyboard-manager-6a6f5c9f.js → inject-keyboard-manager-4fa45f9c.js} +1 -1
  19. package/dist/cjs/{internal-calendar-period-factory-dfcdd3f6.js → internal-calendar-period-factory-6196bc80.js} +1 -1
  20. package/dist/cjs/{internal-translation-controller-1dac2df8.js → internal-translation-controller-51f7f865.js} +2 -0
  21. package/dist/cjs/{keyboard-manager-c56033b1.js → keyboard-manager-482fe257.js} +1 -1
  22. package/dist/cjs/{keyboard-manager-slimmer-7043a106.js → keyboard-manager-slimmer-a19430dd.js} +1 -1
  23. package/dist/cjs/{link-extension-71c27ff3.js → link-extension-11340e1c.js} +26 -7
  24. package/dist/cjs/loader.cjs.js +15 -15
  25. package/dist/cjs/{month-view-generator-7b704a80.js → month-view-generator-1a534451.js} +1 -1
  26. package/dist/cjs/{public-rules-55e34d2e.js → public-rules-6c77b545.js} +10 -10
  27. package/dist/cjs/{range-eebe0e3c.js → range-22ddd452.js} +1 -1
  28. package/dist/cjs/{responsive-format-facade-493d1763.js → responsive-format-facade-74e6d791.js} +1 -1
  29. package/dist/cjs/{rich-text-editor-required-rule-4fdee376.js → rich-text-editor-required-rule-09d1093a.js} +1 -1
  30. package/dist/cjs/{split-cell-operation-51097409.js → split-cell-operation-11bfb305.js} +14 -4
  31. package/dist/cjs/{state-border-formatter-711c7aaa.js → state-border-formatter-bf4f9f1c.js} +1 -1
  32. package/dist/cjs/{string-format-strategy.abstract-b61bdcbd.js → string-format-strategy.abstract-bf37b14c.js} +1 -1
  33. package/dist/cjs/{string-input-formatter-slimmer-18d45942.js → string-input-formatter-slimmer-ffeb18a6.js} +3 -3
  34. package/dist/cjs/{string-mask-strategy-ad3fa0ac.js → string-mask-strategy-7f394726.js} +2 -2
  35. package/dist/cjs/{style-formatter-8f711cb0.js → style-formatter-4ac63910.js} +2 -2
  36. package/dist/cjs/{sub-state-notify-slimmer-18891389.js → sub-state-notify-slimmer-e264a120.js} +1 -1
  37. package/dist/cjs/{sub-state-observer-slimmer-eee2f0ae.js → sub-state-observer-slimmer-6033b824.js} +1 -1
  38. package/dist/cjs/{time-required-rule-87417359.js → time-required-rule-e2a50003.js} +1 -1
  39. package/dist/cjs/{token-extension-608bbf7b.js → token-extension-4686cb3b.js} +2921 -158
  40. package/dist/cjs/{translation-slimmer-77c7f37d.js → translation-slimmer-e4997f8f.js} +1 -1
  41. package/dist/cjs/{type-guard-a57ef3ac.js → type-guard-b8d7bb3f.js} +1 -1
  42. package/dist/cjs/{valid-credit-card-number-rule-4c0a3040.js → valid-credit-card-number-rule-f5a6f009.js} +1 -1
  43. package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
  44. package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
  45. package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
  46. package/dist/cjs/vega-box.cjs.entry.js +7 -7
  47. package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -2
  48. package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
  49. package/dist/cjs/vega-button-circle.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-button-link.cjs.entry.js +1 -1
  52. package/dist/cjs/vega-button.cjs.entry.js +5 -5
  53. package/dist/cjs/vega-calendar_5.cjs.entry.js +24 -13
  54. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  55. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  56. package/dist/cjs/vega-checkbox_2.cjs.entry.js +5 -5
  57. package/dist/cjs/vega-chip.cjs.entry.js +5 -5
  58. package/dist/cjs/vega-code-block.cjs.entry.js +16 -29
  59. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  60. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +6 -6
  61. package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
  62. package/dist/cjs/vega-combo-box.cjs.entry.js +11 -11
  63. package/dist/cjs/vega-counter-badge.cjs.entry.js +2 -2
  64. package/dist/cjs/vega-date-picker_2.cjs.entry.js +18 -18
  65. package/dist/cjs/vega-dialog_2.cjs.entry.js +7 -7
  66. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  67. package/dist/cjs/vega-dropdown_5.cjs.entry.js +46 -31
  68. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  69. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  70. package/dist/cjs/vega-file-uploader.cjs.entry.js +41 -8
  71. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  72. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  73. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  74. package/dist/cjs/vega-form.cjs.entry.js +5 -5
  75. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  76. package/dist/cjs/vega-icon.cjs.entry.js +6 -6
  77. package/dist/cjs/vega-image-uploader.cjs.entry.js +9 -9
  78. package/dist/cjs/vega-input-credit-card.cjs.entry.js +9 -9
  79. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  80. package/dist/cjs/vega-input-passcode.cjs.entry.js +8 -8
  81. package/dist/cjs/vega-input-phone-number.cjs.entry.js +7 -7
  82. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  83. package/dist/cjs/vega-input-select.cjs.entry.js +8 -8
  84. package/dist/cjs/vega-input.cjs.entry.js +17 -12
  85. package/dist/cjs/{vega-internal-event-id-ecc5b87a.js → vega-internal-event-id-f4d33037.js} +2 -0
  86. package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -13
  87. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  89. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
  90. package/dist/cjs/vega-pagination.cjs.entry.js +5 -5
  91. package/dist/cjs/vega-popover_2.cjs.entry.js +10 -10
  92. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
  93. package/dist/cjs/vega-radio_2.cjs.entry.js +8 -8
  94. package/dist/cjs/vega-rich-text-content.cjs.entry.js +42 -14
  95. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +83 -26
  96. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
  97. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
  98. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +11 -11
  99. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
  100. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
  102. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  103. package/dist/cjs/vega-stepper.cjs.entry.js +5 -5
  104. package/dist/cjs/vega-tab-group_2.cjs.entry.js +21 -8
  105. package/dist/cjs/vega-table_11.cjs.entry.js +1219 -489
  106. package/dist/cjs/vega-textarea.cjs.entry.js +5 -5
  107. package/dist/cjs/vega-time-picker_2.cjs.entry.js +12 -12
  108. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  109. package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -7
  110. package/dist/cjs/vega.cjs.js +15 -15
  111. package/dist/cjs/{wait-for-component-did-render-02ca4bee.js → wait-for-component-did-render-44d006ee.js} +1 -1
  112. package/dist/collection/components/vega-accordion/vega-accordion.js +2 -0
  113. package/dist/collection/components/vega-app-footer/vega-app-footer.js +2 -0
  114. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +2 -0
  115. package/dist/collection/components/vega-banner/vega-banner.js +2 -0
  116. package/dist/collection/components/vega-box/vega-box.js +2 -0
  117. package/dist/collection/components/vega-brand-logo/vega-brand-logo.js +2 -0
  118. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +2 -0
  119. package/dist/collection/components/vega-button/vega-button.js +2 -0
  120. package/dist/collection/components/vega-button-circle/vega-button-circle.js +2 -0
  121. package/dist/collection/components/vega-button-group/vega-button-group.js +2 -0
  122. package/dist/collection/components/vega-button-link/vega-button-link.js +2 -0
  123. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +5 -2
  124. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +9 -1
  125. package/dist/collection/components/vega-calendar/vega-calendar.js +2 -0
  126. package/dist/collection/components/vega-card/vega-card.js +2 -0
  127. package/dist/collection/components/vega-carousel/vega-carousel.js +2 -0
  128. package/dist/collection/components/vega-checkbox/vega-checkbox.js +2 -0
  129. package/dist/collection/components/vega-chip/vega-chip.js +2 -0
  130. package/dist/collection/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.js +4 -17
  131. package/dist/collection/components/vega-color-picker/vega-color-picker.js +2 -0
  132. package/dist/collection/components/vega-combo-box/vega-combo-box.js +2 -0
  133. package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +4 -2
  134. package/dist/collection/components/vega-date-picker/vega-date-picker.js +2 -0
  135. package/dist/collection/components/vega-divider/vega-divider.js +2 -0
  136. package/dist/collection/components/vega-dropdown/constants.js +10 -0
  137. package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +6 -4
  138. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +10 -2
  139. package/dist/collection/components/vega-dropdown/vega-dropdown.js +45 -14
  140. package/dist/collection/components/vega-field-error/vega-field-error.js +2 -0
  141. package/dist/collection/components/vega-field-label/vega-field-label.css +1 -0
  142. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.js +22 -2
  143. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +63 -6
  144. package/dist/collection/components/vega-flag-icon/vega-flag-icon.js +2 -0
  145. package/dist/collection/components/vega-flex/vega-flex.js +2 -0
  146. package/dist/collection/components/vega-font/vega-font.js +2 -0
  147. package/dist/collection/components/vega-form/vega-form.js +2 -0
  148. package/dist/collection/components/vega-grid/vega-grid.js +2 -0
  149. package/dist/collection/components/vega-icon/vega-icon.js +2 -0
  150. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +2 -0
  151. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +7 -2
  152. package/dist/collection/components/vega-input/vega-input.js +2 -0
  153. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +2 -0
  154. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +2 -0
  155. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +2 -0
  156. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +2 -0
  157. package/dist/collection/components/vega-input-range/vega-input-range.js +2 -0
  158. package/dist/collection/components/vega-input-select/vega-input-select.js +2 -0
  159. package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +2 -0
  160. package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +2 -0
  161. package/dist/collection/components/vega-modal/vega-modal.js +2 -0
  162. package/dist/collection/components/vega-page-notification/vega-page-notification.js +2 -0
  163. package/dist/collection/components/vega-pagination/vega-pagination.js +2 -0
  164. package/dist/collection/components/vega-popover/vega-popover.js +2 -0
  165. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +2 -0
  166. package/dist/collection/components/vega-radio/vega-radio.js +2 -0
  167. package/dist/collection/components/vega-rich-text-editor/constants/constant.js +16 -0
  168. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-default-styles.js +2 -1
  169. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +11 -0
  170. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -0
  171. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +2 -1
  172. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.js +5 -2
  173. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +36 -2
  174. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -1
  175. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +20 -3
  176. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +12 -0
  177. package/dist/collection/components/vega-rich-text-editor/extensions/block-boundary-registry.js +34 -0
  178. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +20 -0
  179. package/dist/collection/components/vega-rich-text-editor/extensions/functions/action-handler-strategies/insert-function-block-strategy.js +3 -2
  180. package/dist/collection/components/vega-rich-text-editor/extensions/functions/constants.js +8 -0
  181. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +14 -3
  182. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +2 -1
  183. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-containing-function-block-strategy.js +19 -0
  184. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-block-strategy.js +9 -5
  185. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-content-strategy.js +3 -3
  186. package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-logic-control-block-strategy.js +4 -2
  187. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +18 -0
  188. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.js +5 -2
  189. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.js +2 -1
  190. package/dist/collection/components/vega-rich-text-editor/extensions/functions/utils.js +36 -0
  191. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +1 -0
  192. package/dist/collection/components/vega-rich-text-editor/extensions/paste/action-handler-strategies/image-replace-src-strategy.js +21 -0
  193. package/dist/collection/components/vega-rich-text-editor/extensions/paste/actions/image-replace-src-action.js +13 -0
  194. package/dist/collection/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/paste-image-parser.js +295 -0
  195. package/dist/collection/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/pending-image-registry.js +116 -0
  196. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +13 -4
  197. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +70 -7
  198. package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/default-paste-strategy.js +38 -0
  199. package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.js +55 -0
  200. package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.js +59 -0
  201. package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/word-paste-strategy.js +416 -0
  202. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-code-block-transformer.js +106 -0
  203. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-image-transformer.js +198 -0
  204. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-list-transformer.js +591 -0
  205. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-paragraph-transformer.js +112 -0
  206. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-table-transformer.js +551 -0
  207. package/dist/collection/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-transformer.js +7 -0
  208. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +10 -0
  209. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.js +4 -2
  210. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +44 -0
  211. package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +10 -6
  212. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +2 -0
  213. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +7 -4
  214. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +17 -0
  215. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +18 -4
  216. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +21 -2
  217. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +7 -0
  218. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +5 -2
  219. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +2 -0
  220. package/dist/collection/components/vega-section-title/vega-section-title.js +2 -0
  221. package/dist/collection/components/vega-segment-control/vega-segment-control.js +2 -0
  222. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +2 -0
  223. package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +2 -0
  224. package/dist/collection/components/vega-sidenav/vega-sidenav.js +2 -0
  225. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +2 -0
  226. package/dist/collection/components/vega-skeleton/vega-skeleton.js +2 -0
  227. package/dist/collection/components/vega-stepper/vega-stepper.js +2 -0
  228. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +14 -7
  229. package/dist/collection/components/vega-tab-group/vega-tab-group.css +6 -0
  230. package/dist/collection/components/vega-tab-group/vega-tab-group.js +7 -0
  231. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.js +31 -1
  232. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.js +17 -7
  233. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.js +440 -0
  234. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +11 -3
  235. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.js +18 -11
  236. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +207 -17
  237. package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.css +1 -0
  238. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +4 -1
  239. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.css +15 -0
  240. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +1 -1
  241. package/dist/collection/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-template-structure-controller.js +28 -0
  242. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +1 -0
  243. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +68 -4
  244. package/dist/collection/components/vega-table/vega-table.js +15 -0
  245. package/dist/collection/components/vega-textarea/vega-textarea.js +2 -0
  246. package/dist/collection/components/vega-time-picker/vega-time-picker.js +2 -0
  247. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +2 -0
  248. package/dist/collection/components/vega-tooltip/vega-tooltip.js +2 -0
  249. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  250. package/dist/collection/helpers/translation/locales/en.js +2 -0
  251. package/dist/collection/utils/sanitize/index.js +3 -2
  252. package/dist/collection/utils/sanitize/strategies/index.js +1 -0
  253. package/dist/collection/utils/sanitize/strategies/label-sanitize-strategy.js +14 -0
  254. package/dist/collection/utils/sanitize/strategies/plain-text-sanitize-strategy.js +70 -0
  255. package/dist/esm/{action-color-accessibility-validator-ce55cb07.js → action-color-accessibility-validator-08877515.js} +2 -2
  256. package/dist/esm/{app-globals-d3991e53.js → app-globals-c59364c2.js} +10 -10
  257. package/dist/esm/{aria-dialog-focusable-trap-slimmer-9eae86c6.js → aria-dialog-focusable-trap-slimmer-f069f54d.js} +1 -1
  258. package/dist/esm/{code-block-8df86434.js → code-block-e6443949.js} +54 -15
  259. package/dist/esm/{component-global-style-slimmer-ac703085.js → component-global-style-slimmer-7d60a04a.js} +1 -1
  260. package/dist/esm/{component-value-history-controller-slimmer.abstract-e4b95997.js → component-value-history-controller-slimmer.abstract-ee393213.js} +25 -6
  261. package/dist/esm/constants-4725f97f.js +13 -0
  262. package/dist/esm/{content-state-c63fbeda.js → content-state-43cdacff.js} +61 -10
  263. package/dist/esm/{dark-mode-style-controller-ca5afd2d.js → dark-mode-style-controller-352f15ff.js} +2 -2
  264. package/dist/esm/{date-required-rule-85334d0c.js → date-required-rule-b5b67498.js} +1 -1
  265. package/dist/esm/{design-token-10ff79b5.js → design-token-8319bb59.js} +3 -3
  266. package/dist/esm/{element-appender-slimmer-24be8e94.js → element-appender-slimmer-c81d1fe3.js} +3 -3
  267. package/dist/esm/{form-field-controller-slimmer-d8628837.js → form-field-controller-slimmer-511b7ac5.js} +4 -4
  268. package/dist/esm/{image-annotation-action-fcceff95.js → image-annotation-action-d7cb80aa.js} +3 -3
  269. package/dist/esm/{image-extension-3280bdb0.js → image-extension-9b8abd0d.js} +2 -2
  270. package/dist/esm/{index-3b327f29.js → index-35451d12.js} +86 -1
  271. package/dist/esm/index.js +20 -20
  272. package/dist/esm/{inject-keyboard-manager-ea1aad5b.js → inject-keyboard-manager-dd368d56.js} +1 -1
  273. package/dist/esm/{internal-calendar-period-factory-7b294fb6.js → internal-calendar-period-factory-d58f35c6.js} +1 -1
  274. package/dist/esm/{internal-translation-controller-fac22598.js → internal-translation-controller-b33430c6.js} +2 -0
  275. package/dist/esm/{keyboard-manager-50da85d7.js → keyboard-manager-b4a0d97d.js} +1 -1
  276. package/dist/esm/{keyboard-manager-slimmer-1f7c8bfb.js → keyboard-manager-slimmer-0517fc70.js} +1 -1
  277. package/dist/esm/{link-extension-f92c06ef.js → link-extension-230bae8d.js} +26 -7
  278. package/dist/esm/loader.js +15 -15
  279. package/dist/esm/{month-view-generator-a1a9a4ec.js → month-view-generator-f470caac.js} +1 -1
  280. package/dist/esm/{public-rules-3695aaf7.js → public-rules-28ef32d3.js} +10 -10
  281. package/dist/esm/{range-717d552d.js → range-efad2578.js} +1 -1
  282. package/dist/esm/{responsive-format-facade-f19b601c.js → responsive-format-facade-dec87e46.js} +1 -1
  283. package/dist/esm/{rich-text-editor-required-rule-2e39264a.js → rich-text-editor-required-rule-a697e5bd.js} +1 -1
  284. package/dist/esm/{split-cell-operation-6c26af91.js → split-cell-operation-89b91a38.js} +14 -4
  285. package/dist/esm/{state-border-formatter-bfda33aa.js → state-border-formatter-1e900a2f.js} +1 -1
  286. package/dist/esm/{string-format-strategy.abstract-1f4ff1b3.js → string-format-strategy.abstract-d0ce3f65.js} +1 -1
  287. package/dist/esm/{string-input-formatter-slimmer-68b2af39.js → string-input-formatter-slimmer-6546cfc7.js} +3 -3
  288. package/dist/esm/{string-mask-strategy-bbbcdbef.js → string-mask-strategy-dd13ae21.js} +2 -2
  289. package/dist/esm/{style-formatter-e9adc8f4.js → style-formatter-057d7120.js} +2 -2
  290. package/dist/esm/{sub-state-notify-slimmer-0f72ce74.js → sub-state-notify-slimmer-23b7d0e8.js} +1 -1
  291. package/dist/esm/{sub-state-observer-slimmer-64532d94.js → sub-state-observer-slimmer-722f6b92.js} +1 -1
  292. package/dist/esm/{time-required-rule-1ce2d0a0.js → time-required-rule-73753a54.js} +1 -1
  293. package/dist/esm/{token-extension-5082a4d2.js → token-extension-74a0eeb1.js} +2919 -156
  294. package/dist/esm/{translation-slimmer-ee0f0e76.js → translation-slimmer-ef970ffc.js} +1 -1
  295. package/dist/esm/{type-guard-f2624334.js → type-guard-6fc96870.js} +1 -1
  296. package/dist/esm/{valid-credit-card-number-rule-60212b1d.js → valid-credit-card-number-rule-b54a31e7.js} +1 -1
  297. package/dist/esm/vega-accordion.entry.js +6 -6
  298. package/dist/esm/vega-app-footer.entry.js +2 -2
  299. package/dist/esm/vega-app-header-button.entry.js +5 -5
  300. package/dist/esm/vega-box.entry.js +7 -7
  301. package/dist/esm/vega-brand-logo.entry.js +2 -2
  302. package/dist/esm/vega-breadcrumb.entry.js +2 -2
  303. package/dist/esm/vega-button-circle.entry.js +7 -7
  304. package/dist/esm/vega-button-group_2.entry.js +3 -3
  305. package/dist/esm/vega-button-link.entry.js +1 -1
  306. package/dist/esm/vega-button.entry.js +5 -5
  307. package/dist/esm/vega-calendar_5.entry.js +24 -13
  308. package/dist/esm/vega-card.entry.js +5 -5
  309. package/dist/esm/vega-carousel.entry.js +3 -3
  310. package/dist/esm/vega-checkbox_2.entry.js +5 -5
  311. package/dist/esm/vega-chip.entry.js +5 -5
  312. package/dist/esm/vega-code-block.entry.js +16 -29
  313. package/dist/esm/vega-color-picker.entry.js +5 -5
  314. package/dist/esm/vega-color-swatch-picker.entry.js +6 -6
  315. package/dist/esm/vega-color-swatch.entry.js +2 -2
  316. package/dist/esm/vega-combo-box.entry.js +11 -11
  317. package/dist/esm/vega-counter-badge.entry.js +2 -2
  318. package/dist/esm/vega-date-picker_2.entry.js +18 -18
  319. package/dist/esm/vega-dialog_2.entry.js +7 -7
  320. package/dist/esm/vega-divider.entry.js +5 -5
  321. package/dist/esm/vega-dropdown_5.entry.js +42 -27
  322. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  323. package/dist/esm/vega-field-label.entry.js +3 -3
  324. package/dist/esm/vega-file-uploader.entry.js +41 -8
  325. package/dist/esm/vega-flag-icon.entry.js +5 -5
  326. package/dist/esm/vega-flex.entry.js +6 -6
  327. package/dist/esm/vega-font.entry.js +5 -5
  328. package/dist/esm/vega-form.entry.js +5 -5
  329. package/dist/esm/vega-grid.entry.js +5 -5
  330. package/dist/esm/vega-icon.entry.js +6 -6
  331. package/dist/esm/vega-image-uploader.entry.js +9 -9
  332. package/dist/esm/vega-input-credit-card.entry.js +9 -9
  333. package/dist/esm/vega-input-numeric.entry.js +9 -9
  334. package/dist/esm/vega-input-passcode.entry.js +8 -8
  335. package/dist/esm/vega-input-phone-number.entry.js +7 -7
  336. package/dist/esm/vega-input-range.entry.js +6 -6
  337. package/dist/esm/vega-input-select.entry.js +8 -8
  338. package/dist/esm/vega-input.entry.js +17 -12
  339. package/dist/esm/{vega-internal-event-id-827eb1ce.js → vega-internal-event-id-86fce049.js} +2 -1
  340. package/dist/esm/vega-left-nav_5.entry.js +13 -13
  341. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  342. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
  343. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
  344. package/dist/esm/vega-pagination.entry.js +5 -5
  345. package/dist/esm/vega-popover_2.entry.js +10 -10
  346. package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
  347. package/dist/esm/vega-radio_2.entry.js +8 -8
  348. package/dist/esm/vega-rich-text-content.entry.js +42 -14
  349. package/dist/esm/vega-rich-text-editor_4.entry.js +83 -26
  350. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
  351. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
  352. package/dist/esm/vega-rich-text-table-properties_3.entry.js +11 -11
  353. package/dist/esm/vega-selection-chip_2.entry.js +8 -8
  354. package/dist/esm/vega-selection-tile_2.entry.js +6 -6
  355. package/dist/esm/vega-sidenav_3.entry.js +6 -6
  356. package/dist/esm/vega-signature-capture.entry.js +10 -10
  357. package/dist/esm/vega-stepper.entry.js +5 -5
  358. package/dist/esm/vega-tab-group_2.entry.js +21 -8
  359. package/dist/esm/vega-table_11.entry.js +1194 -464
  360. package/dist/esm/vega-textarea.entry.js +5 -5
  361. package/dist/esm/vega-time-picker_2.entry.js +12 -12
  362. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  363. package/dist/esm/vega-tooltip_2.entry.js +7 -7
  364. package/dist/esm/vega.js +15 -15
  365. package/dist/esm/{wait-for-component-did-render-0c237cb8.js → wait-for-component-did-render-ff7062aa.js} +1 -1
  366. package/dist/sri/vega-sri-manifest.json +371 -367
  367. package/dist/types/components/vega-accordion/vega-accordion.d.ts +2 -0
  368. package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +2 -0
  369. package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +2 -0
  370. package/dist/types/components/vega-banner/vega-banner.d.ts +2 -0
  371. package/dist/types/components/vega-box/vega-box.d.ts +2 -0
  372. package/dist/types/components/vega-brand-logo/vega-brand-logo.d.ts +2 -0
  373. package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +2 -0
  374. package/dist/types/components/vega-button/vega-button.d.ts +2 -0
  375. package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +2 -0
  376. package/dist/types/components/vega-button-group/vega-button-group.d.ts +2 -0
  377. package/dist/types/components/vega-button-link/vega-button-link.d.ts +2 -0
  378. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +2 -0
  379. package/dist/types/components/vega-calendar/vega-calendar.d.ts +2 -0
  380. package/dist/types/components/vega-card/vega-card.d.ts +2 -0
  381. package/dist/types/components/vega-carousel/vega-carousel.d.ts +2 -0
  382. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
  383. package/dist/types/components/vega-chip/vega-chip.d.ts +2 -0
  384. package/dist/types/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.d.ts +2 -1
  385. package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +2 -0
  386. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +2 -0
  387. package/dist/types/components/vega-counter-badge/vega-counter-badge.d.ts +2 -0
  388. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +2 -0
  389. package/dist/types/components/vega-divider/vega-divider.d.ts +2 -0
  390. package/dist/types/components/vega-dropdown/constants.d.ts +12 -0
  391. package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
  392. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +9 -0
  393. package/dist/types/components/vega-field-error/vega-field-error.d.ts +2 -0
  394. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.d.ts +10 -0
  395. package/dist/types/components/vega-file-uploader/types.d.ts +4 -0
  396. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +15 -0
  397. package/dist/types/components/vega-flag-icon/vega-flag-icon.d.ts +2 -0
  398. package/dist/types/components/vega-flex/vega-flex.d.ts +2 -0
  399. package/dist/types/components/vega-font/vega-font.d.ts +2 -0
  400. package/dist/types/components/vega-form/vega-form.d.ts +2 -0
  401. package/dist/types/components/vega-grid/vega-grid.d.ts +2 -0
  402. package/dist/types/components/vega-icon/vega-icon.d.ts +2 -0
  403. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +2 -0
  404. package/dist/types/components/vega-input/types.d.ts +11 -1
  405. package/dist/types/components/vega-input/vega-input.d.ts +2 -0
  406. package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +2 -0
  407. package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +2 -0
  408. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +2 -0
  409. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +2 -0
  410. package/dist/types/components/vega-input-range/vega-input-range.d.ts +2 -0
  411. package/dist/types/components/vega-input-select/vega-input-select.d.ts +2 -0
  412. package/dist/types/components/vega-item-toggle/vega-item-toggle.d.ts +2 -0
  413. package/dist/types/components/vega-loading-indicator/vega-loading-indicator.d.ts +2 -0
  414. package/dist/types/components/vega-modal/vega-modal.d.ts +2 -0
  415. package/dist/types/components/vega-page-notification/vega-page-notification.d.ts +2 -0
  416. package/dist/types/components/vega-pagination/vega-pagination.d.ts +2 -0
  417. package/dist/types/components/vega-popover/vega-popover.d.ts +2 -0
  418. package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -0
  419. package/dist/types/components/vega-radio/vega-radio.d.ts +2 -0
  420. package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +16 -0
  421. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-default-styles.d.ts +1 -0
  422. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +9 -0
  423. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +1 -0
  424. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.d.ts +3 -2
  425. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.d.ts +25 -3
  426. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +7 -0
  427. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +11 -0
  428. package/dist/types/components/vega-rich-text-editor/extensions/block-boundary-registry.d.ts +21 -0
  429. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +15 -0
  430. package/dist/types/components/vega-rich-text-editor/extensions/functions/constants.d.ts +4 -0
  431. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +7 -0
  432. package/dist/types/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-containing-function-block-strategy.d.ts +8 -0
  433. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +6 -0
  434. package/dist/types/components/vega-rich-text-editor/extensions/functions/utils.d.ts +29 -0
  435. package/dist/types/components/vega-rich-text-editor/extensions/paste/action-handler-strategies/image-replace-src-strategy.d.ts +12 -0
  436. package/dist/types/components/vega-rich-text-editor/extensions/paste/actions/image-replace-src-action.d.ts +11 -0
  437. package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/paste-image-parser.d.ts +136 -0
  438. package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/pending-image-registry.d.ts +68 -0
  439. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.d.ts +9 -4
  440. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-extension.d.ts +39 -2
  441. package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/default-paste-strategy.d.ts +29 -0
  442. package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.d.ts +61 -0
  443. package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.d.ts +45 -0
  444. package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/word-paste-strategy.d.ts +186 -0
  445. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-code-block-transformer.d.ts +51 -0
  446. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-image-transformer.d.ts +86 -0
  447. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-list-transformer.d.ts +271 -0
  448. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-paragraph-transformer.d.ts +25 -0
  449. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-table-transformer.d.ts +240 -0
  450. package/dist/types/components/vega-rich-text-editor/extensions/paste/word-paste-transformers/word-structure-transformer.d.ts +36 -0
  451. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +8 -0
  452. package/dist/types/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.d.ts +2 -2
  453. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +19 -1
  454. package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +7 -0
  455. package/dist/types/components/vega-rich-text-editor/interface.d.ts +10 -0
  456. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.d.ts +4 -1
  457. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +8 -0
  458. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +1 -0
  459. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
  460. package/dist/types/components/vega-section-title/vega-section-title.d.ts +2 -0
  461. package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +2 -0
  462. package/dist/types/components/vega-selection-chip/vega-selection-chip.d.ts +2 -0
  463. package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +2 -0
  464. package/dist/types/components/vega-sidenav/vega-sidenav.d.ts +2 -0
  465. package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +2 -0
  466. package/dist/types/components/vega-skeleton/vega-skeleton.d.ts +2 -0
  467. package/dist/types/components/vega-stepper/vega-stepper.d.ts +2 -0
  468. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +1 -0
  469. package/dist/types/components/vega-tab-group/types.d.ts +3 -1
  470. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +4 -0
  471. package/dist/types/components/vega-table/interface.d.ts +4 -4
  472. package/dist/types/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.d.ts +16 -0
  473. package/dist/types/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.d.ts +8 -4
  474. package/dist/types/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.d.ts +168 -0
  475. package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +8 -1
  476. package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.d.ts +8 -10
  477. package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +76 -0
  478. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
  479. package/dist/types/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-template-structure-controller.d.ts +12 -0
  480. package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +19 -0
  481. package/dist/types/components/vega-table/vega-table.d.ts +6 -0
  482. package/dist/types/components/vega-textarea/vega-textarea.d.ts +2 -0
  483. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +2 -0
  484. package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +2 -0
  485. package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +2 -0
  486. package/dist/types/components.d.ts +54 -0
  487. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  488. package/dist/types/helpers/translation/interface.d.ts +3 -1
  489. package/dist/types/types/public-api.d.ts +1 -0
  490. package/dist/types/utils/sanitize/index.d.ts +3 -2
  491. package/dist/types/utils/sanitize/strategies/index.d.ts +1 -0
  492. package/dist/types/utils/sanitize/strategies/label-sanitize-strategy.d.ts +9 -0
  493. package/dist/types/utils/sanitize/strategies/plain-text-sanitize-strategy.d.ts +36 -0
  494. package/dist/vega/index.esm.js +1 -1
  495. package/dist/vega/{p-36c89520.entry.js → p-024db952.entry.js} +1 -1
  496. package/dist/vega/p-0b2c4c0b.js +1 -0
  497. package/dist/vega/{p-c2277448.entry.js → p-0ca3b4bf.entry.js} +1 -1
  498. package/dist/vega/{p-363ee8a5.entry.js → p-1a37d63c.entry.js} +1 -1
  499. package/dist/vega/{p-b622c455.js → p-1fa22fda.js} +1 -1
  500. package/dist/vega/{p-d609c3fd.js → p-2044eba9.js} +1 -1
  501. package/dist/vega/{p-e1029acc.js → p-22edd3cc.js} +1 -1
  502. package/dist/vega/{p-5f96e741.entry.js → p-23c1f378.entry.js} +1 -1
  503. package/dist/vega/{p-6c95a6a3.js → p-2529820e.js} +1 -1
  504. package/dist/vega/{p-8d96f0e8.entry.js → p-2af1d8b8.entry.js} +1 -1
  505. package/dist/vega/{p-4c3a08be.entry.js → p-2f89ee14.entry.js} +1 -1
  506. package/dist/vega/{p-2bb5a232.js → p-3091b105.js} +1 -1
  507. package/dist/vega/{p-3af5e87b.entry.js → p-328ebbdb.entry.js} +1 -1
  508. package/dist/vega/p-35628af4.js +1 -0
  509. package/dist/vega/{p-9abf7d0a.entry.js → p-35d37477.entry.js} +1 -1
  510. package/dist/vega/{p-26760c66.entry.js → p-3a230d4b.entry.js} +1 -1
  511. package/dist/vega/{p-040ea356.entry.js → p-3c152bad.entry.js} +1 -1
  512. package/dist/vega/p-3c559c8b.js +1 -0
  513. package/dist/vega/{p-e3fdb65c.entry.js → p-3c8421d5.entry.js} +1 -1
  514. package/dist/vega/{p-b594a11c.entry.js → p-4022412e.entry.js} +1 -1
  515. package/dist/vega/{p-046203cb.entry.js → p-433b1395.entry.js} +1 -1
  516. package/dist/vega/{p-b98ead05.entry.js → p-4370b954.entry.js} +1 -1
  517. package/dist/vega/p-444e24c6.js +1 -0
  518. package/dist/vega/p-4473d8b1.js +3 -0
  519. package/dist/vega/{p-a484e32d.entry.js → p-44999c88.entry.js} +1 -1
  520. package/dist/vega/{p-f29ea345.entry.js → p-47a48329.entry.js} +1 -1
  521. package/dist/vega/{p-0cf3b5c1.entry.js → p-49d7cfed.entry.js} +1 -1
  522. package/dist/vega/p-4a2fe3a4.js +1 -0
  523. package/dist/vega/{p-92528dc9.entry.js → p-4afd6715.entry.js} +1 -1
  524. package/dist/vega/{p-461100b8.entry.js → p-4f6aaac5.entry.js} +1 -1
  525. package/dist/vega/p-50eda925.js +1 -0
  526. package/dist/vega/{p-ae2abdfa.js → p-5110c84f.js} +1 -1
  527. package/dist/vega/{p-deaf037a.entry.js → p-5147c30d.entry.js} +1 -1
  528. package/dist/vega/{p-874e5624.js → p-52878ea9.js} +1 -1
  529. package/dist/vega/{p-b00ec194.entry.js → p-55dc3053.entry.js} +1 -1
  530. package/dist/vega/p-5af312f8.js +1 -0
  531. package/dist/vega/{p-3e09aeed.js → p-5b3c8a56.js} +1 -1
  532. package/dist/vega/{p-2acf9b42.entry.js → p-5e9e04f3.entry.js} +1 -1
  533. package/dist/vega/p-5f377954.js +1 -1
  534. package/dist/vega/p-6493f13a.entry.js +1 -0
  535. package/dist/vega/{p-8611465f.entry.js → p-6659c910.entry.js} +1 -1
  536. package/dist/vega/{p-9c4c474e.entry.js → p-66728dd4.entry.js} +1 -1
  537. package/dist/vega/{p-21f608e8.entry.js → p-66a785d0.entry.js} +1 -1
  538. package/dist/vega/{p-0499e65a.entry.js → p-66fe8b4e.entry.js} +1 -1
  539. package/dist/vega/p-67e88cd7.entry.js +1 -0
  540. package/dist/vega/p-67eaf77e.js +1 -0
  541. package/dist/vega/{p-456f678b.js → p-691bdc20.js} +1 -1
  542. package/dist/vega/{p-1132a74e.entry.js → p-6d6b4495.entry.js} +1 -1
  543. package/dist/vega/p-6db1b9ac.js +1 -0
  544. package/dist/vega/p-7754b10f.entry.js +1 -0
  545. package/dist/vega/{p-d2cbcf5e.entry.js → p-77fb3971.entry.js} +1 -1
  546. package/dist/vega/{p-e7e963ba.entry.js → p-7977352b.entry.js} +1 -1
  547. package/dist/vega/{p-a91927eb.entry.js → p-7b133734.entry.js} +1 -1
  548. package/dist/vega/p-7b84a943.entry.js +1 -0
  549. package/dist/vega/{p-a2bd621e.js → p-83ad8988.js} +1 -1
  550. package/dist/vega/{p-2eb8e167.entry.js → p-840444c9.entry.js} +1 -1
  551. package/dist/vega/{p-703ac992.entry.js → p-860e76f5.entry.js} +1 -1
  552. package/dist/vega/p-867cc602.entry.js +1 -0
  553. package/dist/vega/p-8d2a9012.js +1 -0
  554. package/dist/vega/{p-5e37b041.js → p-8d4be607.js} +1 -1
  555. package/dist/vega/p-8d77c7cf.js +1 -0
  556. package/dist/vega/{p-c29934ef.js → p-8f3b93db.js} +1 -1
  557. package/dist/vega/{p-56417ec5.entry.js → p-944e284d.entry.js} +1 -1
  558. package/dist/vega/{p-0809c651.js → p-94b54a95.js} +1 -1
  559. package/dist/vega/p-9c2b3279.js +1 -0
  560. package/dist/vega/{p-aeb50cad.entry.js → p-9c5289dc.entry.js} +1 -1
  561. package/dist/vega/{p-d25c1a48.js → p-9c9b0629.js} +1 -1
  562. package/dist/vega/{p-abbceebf.entry.js → p-9c9ff871.entry.js} +1 -1
  563. package/dist/vega/{p-a034dfc0.entry.js → p-9d90e271.entry.js} +1 -1
  564. package/dist/vega/{p-d319ebb5.js → p-9e9f49f4.js} +1 -1
  565. package/dist/vega/{p-dcd3e3a7.js → p-a1f220ca.js} +1 -1
  566. package/dist/vega/{p-3488a3f1.entry.js → p-a4360b7e.entry.js} +1 -1
  567. package/dist/vega/{p-2540fd1c.entry.js → p-a7517760.entry.js} +1 -1
  568. package/dist/vega/{p-8ed3b2b6.entry.js → p-aa433430.entry.js} +1 -1
  569. package/dist/vega/{p-c3646101.entry.js → p-aa914dbd.entry.js} +1 -1
  570. package/dist/vega/{p-72ab5cd5.entry.js → p-b12de1bf.entry.js} +1 -1
  571. package/dist/vega/p-b21cc390.entry.js +1 -0
  572. package/dist/vega/{p-dbb4b1d1.js → p-b3c4943b.js} +1 -1
  573. package/dist/vega/{p-98fc5821.entry.js → p-ba6881da.entry.js} +1 -1
  574. package/dist/vega/p-bd7725f7.entry.js +1 -0
  575. package/dist/vega/{p-dad7d2ac.js → p-c348eaf5.js} +1 -1
  576. package/dist/vega/{p-29e3eb12.js → p-c41a2d4a.js} +1 -1
  577. package/dist/vega/{p-ccbe3f1b.entry.js → p-c8ad7207.entry.js} +1 -1
  578. package/dist/vega/{p-b3733762.entry.js → p-c8fb3aac.entry.js} +1 -1
  579. package/dist/vega/p-cc569b54.js +1 -0
  580. package/dist/vega/{p-53fd3c41.entry.js → p-ccbed811.entry.js} +1 -1
  581. package/dist/vega/{p-8ff92914.entry.js → p-ce82d6bb.entry.js} +1 -1
  582. package/dist/vega/{p-f1078e63.js → p-cede3535.js} +1 -1
  583. package/dist/vega/{p-775ecfad.entry.js → p-cf4b3d40.entry.js} +1 -1
  584. package/dist/vega/p-d35a31a5.entry.js +1 -0
  585. package/dist/vega/{p-ac94ba1b.entry.js → p-d4d90ce2.entry.js} +1 -1
  586. package/dist/vega/{p-f5095035.entry.js → p-d6023dc0.entry.js} +1 -1
  587. package/dist/vega/{p-a8174ad8.entry.js → p-d62e618a.entry.js} +1 -1
  588. package/dist/vega/{p-3f183b52.js → p-daba4af1.js} +1 -1
  589. package/dist/vega/{p-1ea9ad9a.js → p-dd0bd78b.js} +1 -1
  590. package/dist/vega/{p-36d2df7a.entry.js → p-ded1ecc1.entry.js} +1 -1
  591. package/dist/vega/p-df63c2fb.entry.js +1 -0
  592. package/dist/vega/{p-d3413a78.entry.js → p-e1a65e06.entry.js} +1 -1
  593. package/dist/vega/{p-39c5054b.js → p-e1c82ca9.js} +1 -1
  594. package/dist/vega/{p-6b76b572.entry.js → p-e469ba27.entry.js} +1 -1
  595. package/dist/vega/{p-e9d09211.js → p-e4c5cb4f.js} +1 -1
  596. package/dist/vega/{p-ec64cc59.entry.js → p-f0a0fc77.entry.js} +1 -1
  597. package/dist/vega/{p-12e8a1b2.js → p-f13b39d8.js} +1 -1
  598. package/dist/vega/{p-21626b93.entry.js → p-f2384411.entry.js} +1 -1
  599. package/dist/vega/{p-09524fec.js → p-f9a3805d.js} +1 -1
  600. package/dist/vega/{p-1e0a8fd3.js → p-fa5cd8b1.js} +1 -1
  601. package/dist/vega/{p-56d19601.entry.js → p-fb9475ab.entry.js} +1 -1
  602. package/dist/vega/{p-2c2e8615.js → p-fcb6b499.js} +1 -1
  603. package/dist/vega/vega.esm.js +1 -1
  604. package/package.json +1 -1
  605. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-constants.js +0 -6
  606. package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-constants.d.ts +0 -6
  607. package/dist/vega/p-10d43a80.entry.js +0 -1
  608. package/dist/vega/p-1250b1ab.entry.js +0 -1
  609. package/dist/vega/p-1d5e05d9.js +0 -3
  610. package/dist/vega/p-2bb60f89.js +0 -1
  611. package/dist/vega/p-2d158cbd.js +0 -1
  612. package/dist/vega/p-2d7388c9.entry.js +0 -1
  613. package/dist/vega/p-2ff4ae1c.js +0 -1
  614. package/dist/vega/p-3980dfa8.entry.js +0 -1
  615. package/dist/vega/p-3a68b729.js +0 -1
  616. package/dist/vega/p-781b7a54.js +0 -1
  617. package/dist/vega/p-81d4dfcb.entry.js +0 -1
  618. package/dist/vega/p-88a6c89a.js +0 -1
  619. package/dist/vega/p-8e7932bc.js +0 -1
  620. package/dist/vega/p-9664e914.entry.js +0 -1
  621. package/dist/vega/p-9be02fa5.js +0 -1
  622. package/dist/vega/p-ca270da3.entry.js +0 -1
  623. package/dist/vega/p-cd69aeae.js +0 -1
  624. package/dist/vega/p-de8f0d98.js +0 -1
  625. package/dist/vega/p-e9b005df.js +0 -1
  626. package/dist/vega/p-f0e828d8.js +0 -1
  627. package/dist/vega/p-f95d8d10.entry.js +0 -1
  628. package/dist/vega/p-fa65956c.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-526e3634.js";import{e as s,f as n}from"./p-3a68b729.js";import{d as r,c as i}from"./p-02841589.js";import{L as o}from"./p-6e1ab235.js";import{i as c}from"./p-456f678b.js";import{T as a}from"./p-b438e68b.js";import{g as l}from"./p-8b5d3a52.js";import{V as h}from"./p-3e09aeed.js";import{c as u}from"./p-a841cf13.js";import{f as d}from"./p-528748fa.js";var f,p;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(f||(f={}));class w{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(p||(p={}));class g extends w{}const m=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.dtoName}};var x,S,A,y;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.NEST_LIST_ITEMS="NEST_LIST_ITEMS",t.UNNEST_LIST_ITEMS="UNNEST_LIST_ITEMS",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT",t.DELETE_SELECTED_CONTENT="DELETE_SELECTED_CONTENT"}(x||(x={}));class O{constructor(){this.isFlushable=!1}}function E(t){const e={},s=t.getAttribute("style");if(!s)return e;const n=function(t){const e=[];let s="",n=0;for(let r=0;r<t.length;r++){const i=t[r];"("===i?(n++,s+=i):")"===i?(n--,s+=i):";"===i&&0===n?(e.push(s),s=""):s+=i}return s&&e.push(s),e}(s);for(const t of n){const s=t.trim(),n=s.indexOf(":"),i=s.substring(0,n).trim(),o=s.substring(n+1).trim();e[r(i)]=o}return e}function T(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v(t){return t.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]+|#[0-9]+|#x[a-fA-F0-9]+);)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}class N{constructor(){this.classNameToBeAdded=""}filterAnnotations(t){const e=t.customStyle;return e?(this.extractAndDeleteMatchedStyles(e),0===Object.keys(e).length&&delete t.customStyle,t):t}filterAndDeleteStyles(t,e){const s=new Set(e);return this.extractAndDeleteMatchedStyles(t)&&this.classNameToBeAdded&&s.add(this.classNameToBeAdded),{styles:t,classNames:Array.from(s)}}refillStyles(t){this.classNameToBeAdded&&t.classList.remove(this.classNameToBeAdded);const e=E(t),s=Object.assign(Object.assign({},this.stylesToBeFiltered),e),n=Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("");t.setAttribute("style",n)}canFilter(t){return!1}canRefill(t,e){return!1}toCssText(){return""}get alwaysFilter(){return!1}extractAndDeleteMatchedStyles(t){let e=!1;const s=this.stylesToBeFiltered;if(t&&s){const n=Object.keys(s);for(const r of n)t[r]===s[r]&&(delete t[r],e=!0)}return e}buildCssTextForStyles(t,e){return`${`.${N.RTE_CONTENT_CONTAINER_CLASS_NAME}`+(e?` .${e}`:` ${t}`)} { ${Object.entries(this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")} }`}convertStylesMapToCssText(t){return Object.entries(t||this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}isBlockOrNodeStylesMatchFilterStyles(t,e){const s=t.getStyles({standalone:!0});return this.isMatchFilterStyles(s,e)}isMatchFilterStyles(t,e){return(e&&e.length>0?e:Object.keys(this.stylesToBeFiltered)).every((e=>t[e]===this.stylesToBeFiltered[e]))}}N.RTE_CONTENT_CONTAINER_CLASS_NAME="vega-rte-content",function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(S||(S={}));class b extends w{}class C{static isTextBlock(t){return t===this.RTE_TEXT_BLOCK_CLASS_NAME}static isCodeBlock(t){return"RTECodeBlock"===t}static isListBlock(t){return"RTEListBlock"===t}static isListItemBlock(t){return"RTEListItemBlock"===t}static isTextNode(t){return t===this.RTE_TEXT_NODE_CLASS_NAME}static isLinkNode(t){return this.isTextNode(t.dtoName)&&!!t.getAnnotationByType(S.LINK)}static isCodeNode(t){if(this.isTextNode(t.dtoName)){const e=t.getAnnotationByType(S.CODE);return!!e&&e.code}return!1}static isImageNode(t){return"RTEImageNode"===t.dtoName}static isCodeBlockNode(t){return"RTECodeBlockNode"===t.dtoName}}C.RTE_TEXT_NODE_CLASS_NAME="RTETextNode",C.RTE_TEXT_BLOCK_CLASS_NAME="RTETextBlock";class L extends N{constructor(){super(...arguments),this.stylesToBeFiltered=R.getDefaultStyles(),this.elementTagName="a"}filterAnnotations(t){const e=t.link;return(null==e?void 0:e.customStyle)?(this.extractAndDeleteMatchedStyles(e.customStyle),0===Object.keys(e.customStyle).length&&delete e.customStyle,t):t}canFilter(t){return C.isLinkNode(t)}canRefill(t,e){return"RTETextNode"===t&&e.matches(this.elementTagName)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}filterLinkGroupInlineStyles(t){const e=t.style,s=t.class?t.class.split(" "):[],n=this.filterAndDeleteStyles(e,s);return n.styles&&Object.keys(n.styles).length>0&&(t.style=n.styles),n.classNames&&n.classNames.length>0&&(t.class=n.classNames.join(" ")),t.style&&0===Object.keys(t.style).length&&delete t.style,t}}class R extends w{constructor(t){super(),this.type=f.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}static getDefaultStyles(){return{color:"rgba(var(--v-text-link, 19, 98, 226, 1))"}}clone(){const t=new R("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){let s=this.toJsx(t,e);return(null==e?void 0:e.filterInlineStyles)&&(s=R.linkGroupFilterStylesStrategy.filterLinkGroupInlineStyles(s)),Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${i(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&Object.assign(s,R.getDefaultStyles()),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}}R.linkGroupFilterStylesStrategy=new L;class k extends g{constructor(t){super(),this.type=p.ALIGNMENT,this.textAlign=t}static from(t){return[p.ALIGNMENT,new k(t)]}static getDefaultStyles(t){switch(t){case"right":case"center":case"justify":return{textAlign:t};case"left":default:return{textAlign:"left"}}}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new k(this.textAlign)}renderStyle(t){return(null==t?void 0:t.standalone)?k.getDefaultStyles(this.textAlign):null}}class j extends g{constructor(t){super(),this.type=p.INDENT,this.indent=Math.max(0,t)}static from(t){return[p.INDENT,new j(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new j(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class _{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof O?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}_.registry=new Map;class ${static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=_.get(t,e),n=()=>{const s=t instanceof O?t.type:t.constructor.name,n=$.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);o.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!$.get(t,e.constructor.name)}}$.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(A||(A={}));class I extends w{}class B extends I{constructor(t){super(),this.type=A.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[A.CUSTOM_ATTRIBUTE,new B(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new B(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(c)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class D extends I{constructor(t){super(),this.type=A.CUSTOM_CLASS,this.customClass=t}static from(t){return[A.CUSTOM_CLASS,new D(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new D(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class M extends I{constructor(t){super(),this.type=A.CUSTOM_STYLE,this.customStyle=t}static from(t){return[A.CUSTOM_STYLE,new M(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new M(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${v(Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" "))}"`}}class F extends g{constructor(t){super(),this.type=p.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[p.INTERNAL_WRAPPER,new F(t)]}clone(){return new F(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class H{constructor(t){this.dtoName=t instanceof U?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof M)).map((e=>e.renderStyle(t))).filter(c);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoName?t instanceof g:t instanceof b}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}class P{static register(t,e){var s;const n=null!==(s=this.registry.get(t))&&void 0!==s?s:new Set;n.add(e),this.registry.set(t,n)}static getStrategies(t){var e;return Array.from(null!==(e=this.registry.get(t))&&void 0!==e?e:[])}static executeTheStrategyFilterAction(t,e,s){return this.getStrategies(t.dtoName).filter((e=>e.canFilter(t))).reduce(((t,e)=>e.filterAndDeleteStyles(t.styles,t.classNames)),{styles:e,classNames:s})}static executeTheStrategyRefillAction(t,e){this.getStrategies(t).filter((s=>s.canRefill(t,e))).forEach((t=>{t.refillStyles(e)}))}static generateAllStylesContent(t=!1){const e=[];return t&&(e.push("/* Font-face imports begin */\n"),e.push(Object.keys(a).map((t=>`@import url('${a[t].url}');\n`)).join(" ")),e.push("/* Font-face imports end */\n")),this.registry.forEach((t=>{t.forEach((t=>{const s=t.toCssText();s&&!e.includes(s)&&e.push(s)}))})),e.join(" ")}}P.registry=new Map,function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(y||(y={}));class J{constructor(t,e){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new H(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof D)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return m.getDOMByEntity(this)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0},["textDecoration"]),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=P.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${v(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const K=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof U)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof J))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class U{constructor(t){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=K.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(c)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return k.from(e);case"indent":return j.from(e);case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e);case"internalWrapper":return F.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);c(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(p.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof R||t instanceof F))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof I)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof U?t.getFirstNode():t}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new H(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof D)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0}),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=P.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${v(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?$.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();if(e instanceof R||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply)this.doAnnotationActionApply(t);else{const e=$.get(t.constructor.name,this.constructor.name);e&&e.execute(t,this)}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class W{}class G extends W{constructor(){super(...arguments),this.doSplit=!0}}class z extends w{constructor(t){super(),this.type=f.SELECTION_RANGE,this.range=t}clone(){return new z(this.range)}}const V="700",X="bold",q="italic",Y="underline",Z="line-through";class Q extends b{constructor(t){super(),this.type=S.STRIKETHROUGH,this.strikethrough=t}static from(t){return[S.STRIKETHROUGH,new Q(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new Q(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class tt extends b{constructor(t){super(),this.type=S.UNDERLINE,this.underline=t}static from(t){return[S.UNDERLINE,new tt(t)]}toJSON(){return{underline:this.underline}}clone(){return new tt(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class et extends b{constructor(t){super(),this.type=S.ITALIC,this.italic=t}static from(t){return[S.ITALIC,new et(t)]}toJSON(){return{italic:this.italic}}clone(){return new et(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class st extends b{constructor(t){super(),this.type=S.BOLD,this.bold=t}static from(t){return[S.BOLD,new st(t)]}toJSON(){return{bold:this.bold}}clone(){return new st(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class nt extends b{constructor(t,e=!0){super(),this.type=S.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[S.CODE,new nt(t,e)]}static getDefaultStyles(){return{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}}toJSON(){return{code:this.code}}clone(){return new nt(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?nt.getDefaultStyles():null}}const rt={key:"black",light:"#111128",dark:"#E3E3E8"},it=[rt,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],ot="​",ct=[{key:"title"},{key:"subtitle"},{key:"heading-1"},{key:"heading-2"},{key:"heading-3"},{key:"paragraph"}],at=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]],lt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),ht=22,ut="url",dt="email",ft=["url","email"];class pt extends b{constructor(t){super(),this.type=S.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[S.TEXT_COLOR,new pt(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new pt(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:h.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return it.find((e=>e.key===t))||it[0]}}class wt extends b{constructor(t,e=!0){super(),this.type=S.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[S.LINK,new wt(t,e)]}toJSON(){return{link:this.link}}clone(){return new wt(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class gt extends W{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new R(this.groupKey)}}class mt extends W{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class xt{execute(t,e){return o.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(A.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new M(s.removeStyles(e)))}createNewParagraph(t){const e=K.getRTEBlockClass("paragraph");if(e)return e.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.dtoName?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}getDOMByEntity(t){return m.getDOMByEntity(t)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class St extends O{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class At extends xt{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(f.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof G&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new St(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,c=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},a=i&&m.getEntityByDOM(i),l=o&&m.getEntityByDOM(o);if(a&&a.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,a,l]=c(e.text,r,i);return this.setApplyTargetNode(a),[o,a,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=c(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class yt extends G{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new st(this.bold)}}class Ot extends w{constructor(){super(...arguments),this.type=f.CLEAR_FORMATTING,this.items=[S.BOLD,S.ITALIC,S.UNDERLINE,S.STRIKETHROUGH,S.TEXT_COLOR,S.CODE,A.CUSTOM_STYLE]}}class Et extends G{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new Ot}}class Tt extends G{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new nt(this.code)}}class vt extends W{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class Nt extends G{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new et(this.italic)}}class bt extends G{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,c(n)&&(this.doSplit=n)}toAnnotation(){return new wt(this.link)}}class Ct extends G{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new Q(this.strikethrough)}}class Lt extends G{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new tt(this.underline)}}class Rt extends xt{handleAction(t,e){const s=t.toAnnotation();if(t instanceof vt)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof Ot))return s instanceof b||s instanceof z?(t instanceof bt&&(c(t.newText)&&(e.text=t.newText),e.parent.apply(new gt(t.link.groupKey,[e],t.type))),t instanceof Tt&&this.handleAction(new Et,e),t instanceof yt&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof Nt&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof Lt||t instanceof Ct)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class kt extends O{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class jt extends xt{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new kt)}}class _t extends O{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class $t extends xt{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let c=s.text;if(n===r&&i===o&&t)c=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,a=r.parentElement,l=e&&m.getEntityByDOM(e),h=a&&m.getEntityByDOM(a);let u=0,d=s.text.length;l&&l===s?(u=i,d=n===r?o:d):h&&h===s&&(d=o),c=s.text.slice(0,u)+t+s.text.slice(d)}s.apply(new _t(c))}}}class It extends w{constructor(t){super(),this.type=S.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new It(e);return o.groupId=t.groupId,o.child=s?It.from(s)[1]:void 0,o.customAttribute=i?B.from(i)[1]:void 0,o.customClass=r?D.from(r)[1]:void 0,o.customStyle=n?M.from(n)[1]:void 0,[S.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new It(this.htmlTag);return r.groupId=this.groupId,r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}renderProps(){var t,e,s;return Object.assign(Object.assign({},null===(t=this.customAttribute)||void 0===t?void 0:t.render()),{style:null===(e=this.customStyle)||void 0===e?void 0:e.renderStyle(),class:null===(s=this.customClass)||void 0===s?void 0:s.renderClass().join(" ")})}toJSON(){var t,e,s,n;return{inlineHtml:u({htmlTag:this.htmlTag,groupId:this.groupId,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class Bt extends xt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class Dt extends xt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const t=e.annotationMap.get(S.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(f.LINK_GROUP)}}e.annotationMap.delete(S.LINK)}}class Mt extends b{constructor(t){super(),this.type=S.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[S.PLAIN_TEXT,new Mt(t)]}clone(){return new Mt(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return this.plainText?{plainText:this.plainText}:void 0}}class Ft extends G{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new pt(this.textColor)}}class Ht extends J{constructor(t,e,s,n){super(t,n),this.dtoName=Ht.dtoName,this.type=y.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new Ht(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new gt(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(c))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return st.from(e);case"italic":return et.from(e);case"underline":return tt.from(e);case"strikethrough":return Q.from(e);case"code":return nt.from(e,n);case"textColor":return pt.from(e);case"link":return wt.from(e,n);case"inlineHtml":return It.from(e);case"plainText":return Mt.from(e)}return J.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof I||t instanceof It)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(t){const e=this.getAnnotationByType(S.INLINE_HTML);return e?this.renderWithWrapperStr(e,t):this.renderTextStr(t)}cloneWithText(t){return new Ht(l(),t,this.parent,super.cloneAnnotations())}clone(t){return new Ht(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!(this.getAnnotationByType(S.INLINE_HTML)||this.text&&"​"!==this.text&&"\n"!==this.text)}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}getInlineHtmlTagAtDepth(t){const e=this.getInlineHtmlAnnotationAtDepth(t);return e?lt.has(e.htmlTag)?null:{htmlTag:e.htmlTag,attrStr:this.annotationAttrStr(e),groupId:e.groupId,annotation:e}:null}renderHtmlFromDepth(t,e){if(0===t)return this.toHtml(e);const s=this.getInlineHtmlAnnotationAtDepth(t);return s?this.renderWithWrapperStr(s,e):this.renderTextStr(e)}getInlineHtmlAnnotationAtDepth(t){let e=this.getAnnotationByType(S.INLINE_HTML);for(let s=0;s<t&&e;s++)e=e.child;return e}registerModifyStrategy(){const t=this.constructor.name;Ht.registerActionStrategyStatus[t]||(this.isContentEditable()&&($.register(x.UPDATE_TEXT,t,new jt),$.register(x.REPLACE_SELECTED_TEXT,t,new $t),$.register(x.LINK_GROUP_NODE_SPLIT,t,new Bt),$.register(bt.name,t,new Rt)),$.register(G.name,t,new At),$.register(x.DELETE_LINK_GROUP,t,new Dt),$.register(yt.name,t,new Rt),$.register(Et.name,t,new Rt),$.register(Nt.name,t,new Rt),$.register(Lt.name,t,new Rt),$.register(Ft.name,t,new Rt),$.register(Ct.name,t,new Rt),$.register(Tt.name,t,new Rt),$.register(W.name,t,new Rt),Ht.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(f.SELECTION_RANGE);if(t instanceof G&&t.doSplit&&e){const e=$.get(G.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){$.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof mt)return void this.syncUpSelectedNodes(t);s instanceof z||this.syncUpSelectedNodes(t);const n=$.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=$.get(W.name,Ht.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t,e){const{htmlTag:s,child:n}=t,r=this.annotationAttrStr(t);return n?`<${s}${r}>${this.renderWithWrapperStr(n,e)}</${s}>`:lt.has(s)?`<${s}${r}>`:this.text?`<${s}${r}>${this.renderTextStr(e)}</${s}>`:`<${s}${r}></${s}>`}annotationAttrStr(t){const{customAttribute:e,customClass:s,customStyle:n}=t,r=[...(null==e?void 0:e.toString())||[],null==s?void 0:s.toString(),null==n?void 0:n.toString()].filter(c);return r.length>0?` ${r.join(" ")}`:""}renderTextStr(t){var e;const s=(null===(e=this.getAnnotationByType(S.CODE))||void 0===e?void 0:e.code)?"code":"span",n=super.generateAttributeString(t);return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${s}${n}>${"code"===s?T(this.text):this.text}</${s}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(S.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof b&&!(t instanceof wt)&&!(t instanceof Mt)||t instanceof I)).length}}Ht.registerActionStrategyStatus={},Ht.htmlTag="span",Ht.dtoName="RTETextNode";class Pt extends O{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}const Jt={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},Kt=Object.assign(Object.assign({},Jt),{marginTop:"0px",marginBottom:"0px"}),Ut={paragraph:Kt,title:Object.assign(Object.assign({},Jt),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"}),subtitle:Object.assign(Object.assign({},Jt),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"}),"heading-1":Object.assign(Object.assign({},Kt),{fontSize:"22px",lineHeight:"24px",minHeight:"24px"}),"heading-2":Object.assign(Object.assign({},Kt),{fontSize:"20px",lineHeight:"24px",minHeight:"24px"}),"heading-3":Object.assign(Object.assign({},Kt),{fontSize:"18px"}),"heading-4":Object.assign({},Kt),"heading-5":Object.assign(Object.assign({},Kt),{fontSize:"14px"}),"heading-6":Object.assign(Object.assign({},Kt),{fontSize:"12px"})};class Wt extends g{constructor(t){super(),this.type=p.TEXT_STYLE,this.textStyle=t}static from(t){return[p.TEXT_STYLE,new Wt(t)]}static getDefaultStyles(t){return t?Ut[t]:null}toJSON(){return{textStyle:this.textStyle}}clone(){return new Wt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.textStyle?Wt.getDefaultStyles(this.textStyle):null}}class Gt extends W{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Wt(this.textStyle)}}class zt extends xt{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new yt(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new vt(S.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class Vt extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class Xt extends O{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class qt extends xt{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const o=s.children.slice(0,i),c=s.children.slice(i+1);t.isContentEditable()?(n&&o.push(t.cloneWithText(n)),r&&c.unshift(t.cloneWithText(r))):e>0?o.push(t):c.unshift(t),s.apply(new Xt(o));const a=s.cloneWithNodes(c);return s.parent.apply(new Vt(s,a)),a}}}}class Yt extends xt{handleAction(t,e){e.children=[],e.apply(new Pt(t.newChildNodes))}}class Zt extends O{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class Qt extends xt{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new Pt(t)),"image"!==e.type&&this.transferLinkGroups(t,e),s.parent.apply(new Zt(s))}}transferLinkGroups(t,e){t.forEach((t=>{if(!(t instanceof Ht))return;const s=t.getAnnotationByType(S.LINK);s&&e.apply(new gt(s.link.groupKey,[t],"link"))}))}}class te extends xt{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new Ht(l(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const c=s.children.slice(0,o),a=s.children.slice(o+1);t.isContentEditable()?(r&&c.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i))):e>0?c.push(t):a.unshift(t),this.mergeLineBreakNodes(c,n,a,s)}return n}}mergeLineBreakNodes(t,e,s,n){if(0===s.length||s[0]&&""===s[0].text){const e=t[t.length-1];s.push(new Ht(l(),"\n",n,e&&new Map(e.annotationMap)))}n.apply(new Xt([...t,e,...s]))}}class ee extends xt{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new Ht(l(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Zt(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new Ht(l(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new Xt([...t,e,...s]))}}class se extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class ne extends O{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}function re(t,e){const s=new Set(t.filter((t=>"RTEListItemBlock"===t.dtoName)));return t.filter((t=>{if("RTEListItemBlock"!==t.dtoName)return!0;let n=t.parent;for(;n.parent&&"RTEListItemBlock"===n.parent.dtoName;){const r=n.parent;if(s.has(r))return t.parent.type=e,!1;n=r.parent}return!0}))}class ie extends W{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new k(this.textAlign)}}class oe extends xt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class ce extends W{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new j(this.indent)}}class ae extends U{constructor(t,e,s){super(t),this.dtoName=ae.dtoName,this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=ae.isAcceptableTextStyle(e)?new Map([Wt.from(e)]):new Map([Wt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new ae(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const s=K.getRTENodeClass(t.type);if(s)return s.from(t,r,e)})).filter(c),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?Wt.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof bt&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(S.LINK),r=s.getAnnotationByType(S.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),s=super.generateAttributeString(t),n=this.getChildrenHtml(t);return super.shouldRenderAsInternalWrapper()?n:[`<${e}${s}>`,n,`</${e}>`].join("")}cloneWithNodes(t){const e=new ae(l(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new Pt(t)),e}clone(t){const e=new ae(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(t){const e=this.getAnnotationByType(f.LINK_GROUP);let s=this.renderGroupedNodesAtDepth(this.children,0,t);return e&&this.children.length>0&&(s=this.generateLinkHtml(e,s,t)),s}doAnnotationActionApply(t){const e=$.get(t.constructor.name,ae.name);e&&e.execute(t,this)}renderGroupedNodesAtDepth(t,e,s){var n;let r="",i=0;for(;i<t.length;){const o=t[i].getInlineHtmlTagAtDepth(e);if(!(null==o?void 0:o.groupId)){r+=t[i].renderHtmlFromDepth(e,s),i++;continue}let c=i+1;for(;c<t.length&&(null===(n=t[c].getInlineHtmlTagAtDepth(e))||void 0===n?void 0:n.groupId)===o.groupId;)c++;if(c===i+1)r+=t[i].renderHtmlFromDepth(e,s);else{const n=this.renderGroupedNodesAtDepth(t.slice(i,c),e+1,s);r+=`<${o.htmlTag}${o.attrStr}>${n}</${o.htmlTag}>`}i=c}return r}generateLinkHtml(t,e,s){e="";let n=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(S.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(S.LINK):null;if(i){if(n.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,filterInlineStyles:null==s?void 0:s.filterInlineStyles});e+=[`<a${r?` ${r}`:""}>`,this.renderGroupedNodesAtDepth(n,0,s),"</a>"].join(""),n=[]}}else e+=this.children[r].toHtml(s)}return e}}$.register(Gt.name,ae.name,new zt),$.register(ie.name,ae.name,new oe),$.register(ce.name,ae.name,new class extends xt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),$.register(gt.name,ae.name,new class extends xt{handleAction(t,e){let s=e.getAnnotationByType(f.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(f.LINK_GROUP,s)}}}),$.register(x.UNLINK_LINK_GROUP,ae.name,new class extends xt{handleAction(t,e){const s=e.getAnnotationByType(f.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(f.LINK_GROUP))}}),$.register(x.SPLIT_BLOCK_WITH_NODE,ae.name,new qt),$.register(x.REPLACE_CHILD_NODES,ae.name,new Yt),$.register(x.MERGE_TWO_BLOCKS_NODES,ae.name,new Qt),$.register(x.LINE_BREAK_SINGLE_BLOCK,ae.name,new te),$.register(x.LINE_BREAK_MULTIPLE_BLOCKS,ae.name,new ee),$.register(x.INSERT_IMAGE_TO_BLOCK,ae.name,new class extends xt{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new Vt(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new se(e,r));else{const t=new ne(s,n);e.apply(t),e.parent.apply(new Vt(e,r))}}}),$.register(x.TRANSFORM_LIST_BLOCK,ae.name,new class extends xt{handleAction(t,e){const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=s.createList(t.listType),i=re(t.selectedBlocks,t.listType),o=i.map((t=>s.toListItem(t)));r.apply(new Pt(o)),n.apply(new Vt(t.selectedBlocks[0],r)),i.forEach((t=>{t.parent.apply(new Zt(t))}))}}),ae.dtoName="RTETextBlock";class le extends xt{copyListAnnotations(t,e){t.annotationMap.forEach(((t,s)=>{e.annotationMap.set(s,t.clone())}))}haveSameListAnnotations(t,e){var s,n;const r=Array.from(t.annotationMap.keys()).sort(),i=Array.from(e.annotationMap.keys()).sort();return JSON.stringify(r)===JSON.stringify(i)&&JSON.stringify(this.normalizeAnnotationValue(null!==(s=t.toJSON().annotations)&&void 0!==s?s:{}))===JSON.stringify(this.normalizeAnnotationValue(null!==(n=e.toJSON().annotations)&&void 0!==n?n:{}))}normalizeAnnotationValue(t){if(Array.isArray(t))return t.map((t=>this.normalizeAnnotationValue(t)));if(t&&"object"==typeof t){const e=t;return Object.keys(e).sort().reduce(((t,s)=>(t[s]=this.normalizeAnnotationValue(e[s]),t)),{})}return t}}class he extends ae{constructor(t,e,s){super(t,"list-item",s),this.dtoName=he.dtoName,this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new he(t.id,void 0,e);s.children=t.nodes.map((t=>Ht.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const n=me.from(t,e);return n.parent=s,n})));const{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){var e;const s=super.generateAttributeString(t),n=(null===(e=this.nestList)||void 0===e?void 0:e.length)?this.nestList.map((e=>e.toHtml(t))).join(""):"";return[`<li${s}>`,this.getChildrenHtml(t),n,"</li>"].join("")}cloneWithNodes(t){const e=new he(l());return e.children=[],e.apply(new Pt(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new he(l())}clone(t){var e;const s=new he(this.id);return s.children=this.children.map((t=>t.clone(s))),s.annotationMap=super.cloneAnnotations(),s.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(s))),s.parent=t,s}}$.register(Gt.name,he.name,new zt),$.register(ie.name,he.name,new oe),$.register(x.LINE_BREAK_SINGLE_BLOCK,he.name,new te),$.register(x.LINE_BREAK_MULTIPLE_BLOCKS,he.name,new ee),$.register(x.DELETE_NEST_LIST,he.name,new class extends xt{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),$.register(x.SPLIT_BLOCK_WITH_NODE,he.name,new qt),$.register(x.REPLACE_CHILD_NODES,he.name,new Yt),$.register(x.REPLACE_NEST_LIST,he.name,new class extends le{handleAction(t,e){const s=this.mergeAdjacentSameType(t.newList);s.forEach((t=>{t.parent=e})),e.nestList=s}mergeAdjacentSameType(t){if(t.length<=1)return t;const e=[t[0]];for(let s=1;s<t.length;s++){const n=e[e.length-1],r=t[s];n.type===r.type&&this.haveSameListAnnotations(n,r)?(r.children.forEach((t=>{t.parent=n})),n.children=n.children.concat(r.children)):e.push(r)}return e}}),$.register(x.MERGE_TWO_BLOCKS_NODES,he.name,new Qt),$.register(x.INSERT_IMAGE_TO_BLOCK,he.name,new class extends xt{handleAction(t,e){e.parent.apply(t)}}),he.dtoName="RTEListItemBlock";class ue extends O{constructor(t){super(),this.type=x.REPLACE_NEST_LIST,this.newList=t}}class de extends O{constructor(t){super(),this.type=x.TRANSFORM_PARAGRAPH_BLOCK,this.isFlushable=!0,this.selectedBlocks=t}}class fe extends U{constructor(t,e){super(t),this.dtoName=fe.dtoName,this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const s=new fe(t.id,t.htmlTag),{annotations:n}=t;return n&&super.convertAnnotationsToMap(s.annotationMap,n),s.children=this.generateBlockChildren(t.children,e,s),s}clone(t){const e=new fe(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,s=super.generateAttributeString(t);return lt.has(this.htmlTag)?`<${e}${s}>`:[`<${e}${s}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}fe.dtoName="RTEHtmlBlock";class pe extends xt{getOrderedContiguousItems(t,e){const s=[...e].sort(((e,s)=>t.children.indexOf(e)-t.children.indexOf(s))),n=t.children.indexOf(s[0]);return n<0?[]:t.children.slice(n,n+s.length).every(((t,e)=>t===s[e]))?s:[]}}class we extends O{constructor(t){super(),this.type=x.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class ge extends g{constructor(){super(...arguments),this.type=p.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}static getDefaultMarkerStyles(){return{fontSize:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?ge.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new ge}toJSON(){}}class me extends U{constructor(t,e,s){super(t),this.dtoName=me.dtoName,this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&this.annotationMap.set(p.LIST,new ge)}static from(t,e={autoMatchFormat:!0}){const s=new me(t.id,t.type,e),{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s.children=t.blocks.map((t=>{const n=he.from(t,e);return n.parent=s,n})),s}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new me(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}$.register(x.TRANSFORM_LIST_BLOCK,me.name,new class extends le{handleAction(t,e){var s;const n=t.selectedBlocks,r=n.every((t=>t.parent===e)),i=this.getRootContent(e);if(!i)return;if(e.parent instanceof he){if(r){const r=this.createListFromSource(i,e,t.listType);r.apply(new Pt(e.children));const o=e.parent,c=(null!==(s=o.nestList)&&void 0!==s?s:[]).map((t=>t===e?r:t));o.apply(new ue(c)),n.forEach((t=>t.children.map((t=>t.apply(new mt)))))}else this.handleCrossListTransform(t,e);return}if(!r&&n.every((t=>t instanceof he))){const e=new Set(n.map((t=>t.parent))),s=new Set;e.forEach((e=>{e.type!==t.listType&&this.convertListTypeInPlace(e,t.listType)}));const r=new Set;return n.forEach((t=>{const e=t.parent;e.parent instanceof he||(s.add(e),r.add(e.parent))})),r.forEach((t=>{for(let e=0;e<t.children.length-1;){const n=t.children[e],r=t.children[e+1];n instanceof me&&r instanceof me&&n.type===r.type&&this.haveSameListAnnotations(n,r)&&s.has(n)&&s.has(r)?(n.apply(new Pt([...r.children])),t.apply(new Zt(r)),s.delete(r)):e++}})),void n.forEach((t=>t.children.map((t=>t.apply(new mt)))))}const o=this.createListFromSource(i,e,t.listType),c=e.parent;if(r)o.apply(new Pt(e.children)),c.apply(new Vt(e,o)),c.apply(new Zt(e)),n.forEach((t=>t.children.map((t=>t.apply(new mt)))));else{const s=re(t.selectedBlocks,t.listType),n=s.map((t=>i.toListItem(t)));o.apply(new Pt(n)),c.apply(new Vt(e,o)),s.forEach((t=>{t.parent.apply(new Zt(t))})),0===e.children.length&&c.apply(new Zt(e))}}convertListTypeInPlace(t,e){var s;const n=this.getRootContent(t);if(!n)return;const r=t.parent,i=this.createListFromSource(n,t,e);if(i.apply(new Pt([...t.children])),r instanceof he){const e=(null!==(s=r.nestList)&&void 0!==s?s:[]).map((e=>e===t?i:e));r.apply(new ue(e))}else r.apply(new Vt(t,i)),r.apply(new Zt(t))}handleCrossListTransform(t,e){if(!(e.parent instanceof he))return;const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=n.nestList,i=new Set(t.selectedBlocks.filter((t=>t instanceof he)).map((t=>t.parent)).filter((t=>r.includes(t))));if(!i.size)return;const o=r.map((e=>{if(!i.has(e))return e;const n=this.createListFromSource(s,e,t.listType);return n.apply(new Pt(e.children)),n}));n.apply(new ue(o)),t.selectedBlocks.forEach((t=>t.children.map((t=>t.apply(new mt)))))}createListFromSource(t,e,s){const n=t.createList(s);return this.copyListAnnotations(e,n),n}}),$.register(x.TRANSFORM_PARAGRAPH_BLOCK,me.name,new class extends le{handleAction(t,e){const s=this.getSelectedSegments(t.selectedBlocks);0!==s.length&&this.hasConsistentTargetAndRoot(s,e)&&(this.syncSelection(s),[...s].reverse().forEach((t=>this.transformSegment(t))))}hasConsistentTargetAndRoot(t,e){if(t[0][0].parent!==e)return!1;const s=this.getRootContent(e);return Boolean(s&&t.every((t=>t.every((t=>this.getRootContent(t)===s)))))}syncSelection(t){t.forEach((t=>{t.forEach((t=>{t.children.forEach((t=>t.apply(new mt)))}))}))}transformSegment(t){const e=t[0].parent,s=new de(t);e.parent instanceof he?this.handleNestedListCase(s,e):this.handleRootListCase(s,e)}handleRootListCase(t,e){const s=this.getRootContent(e);let n=!1,r=!1;const i=t.selectedBlocks,o=[];if(i.forEach((t=>{var s;t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),o.push(this.toParagraph(t));for(const e of null!==(s=t.nestList)&&void 0!==s?s:[])this.appendListBlock(o,e)})),n)e.parent.apply(new se(e,...o));else if(r)e.parent.apply(new Vt(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=this.createListFromSource(s,e);r.apply(new Pt(e.children.slice(0,t)));const c=this.createListFromSource(s,e);c.apply(new Pt(e.children.slice(n+1)));const a=o[o.length-1];a instanceof me&&c.children.length>0&&a.type===c.type&&this.haveSameListAnnotations(a,c)?(a.apply(new Pt(c.children)),e.parent.apply(new se(e,r,...o))):e.parent.apply(new se(e,r,...o,c)),e.parent.apply(new Zt(e))}if(i.map((t=>{t.nestList=[],e.apply(new Zt(t))})),0===e.children.length)e.parent.apply(new Zt(e));else if(n){const t=o[o.length-1];t instanceof me&&t.type===e.type&&this.haveSameListAnnotations(t,e)&&(t.apply(new Pt([...e.children])),e.parent.apply(new Zt(e)))}}handleNestedListCase(t,e){const s=t.selectedBlocks,n=this.getRootContent(e),r=e.children.indexOf(s[0]),i=[];s.forEach((t=>{var e;i.push(this.toParagraph(t));for(const s of null!==(e=t.nestList)&&void 0!==e?e:[])this.appendListBlock(i,s)}));const o=e.children.indexOf(s[s.length-1]),c=e.children.slice(o+1),a=[];let l=e;for(;l.parent instanceof he;){const t=l.parent,e=t.parent,s=e.children.indexOf(t),n=t.nestList,r=n.indexOf(l),i=n.slice(r+1);a.push({list:e,ancestorIndex:s,trailingNestLists:i}),l=e}const h=l,u=h.parent,d=[];c.length>0&&d.push({items:c,sourceList:e});for(const t of a){for(const e of t.trailingNestLists)e.children.length>0&&d.push({items:[...e.children],sourceList:e});const e=t.list.children.slice(t.ancestorIndex+1);e.length>0&&d.push({items:e,sourceList:t.list})}const f=[];for(const t of d){const e=f[f.length-1];e&&e.sourceList.type===t.sourceList.type&&this.haveSameListAnnotations(e.sourceList,t.sourceList)?e.items.push(...t.items):f.push({items:[...t.items],sourceList:t.sourceList})}f.map((t=>{const e=this.createListFromSource(n,t.sourceList);return e.apply(new Pt(t.items)),e})).forEach((t=>this.appendListBlock(i,t))),e.children=e.children.slice(0,r);const p=e.parent,w=p.nestList,g=w.indexOf(e);let m=w.slice(0,g+1);0===e.children.length&&(m=m.filter((t=>t!==e))),p.apply(new ue(m));for(const t of a)if(t.list.children=t.list.children.slice(0,t.ancestorIndex+1),t.trailingNestLists.length>0){const e=t.list.children[t.ancestorIndex],s=e.nestList,n=s.indexOf(t.trailingNestLists[0]);if(n>=0){const t=s.slice(0,n);e.apply(new ue(t))}}u.apply(new Vt(h,...i))}getSelectedSegments(t){const e=Array.from(new Set(t.filter((t=>t instanceof he)))).map((t=>({item:t,path:this.getStructuralPath(t)}))).filter((t=>null!==t.path)).sort(((t,e)=>this.compareStructuralPaths(t.path,e.path))).map((t=>t.item)),s=[];for(const t of e){const e=s[s.length-1],n=null==e?void 0:e[e.length-1];(null==n?void 0:n.parent)===t.parent&&t.parent.children.indexOf(t)-t.parent.children.indexOf(n)==1?e.push(t):s.push([t])}return s}getStructuralPath(t){var e;const s=[],n=new Set;let r=t,i=t.parent;for(;!n.has(i);){n.add(i);const t=i.children.indexOf(r);if(t<0)return null;if(s.unshift(t),"VegaRTEContent"===i.parent.dtoName||"RTEHtmlBlock"===i.parent.dtoName){const t=this.getContainerPath(i);return t?[...t,...s]:null}if(!(i.parent instanceof he))return null;const o=i.parent,c=(null!==(e=o.nestList)&&void 0!==e?e:[]).indexOf(i);if(c<0)return null;s.unshift(c),r=o,i=o.parent}return null}getContainerPath(t){const e=[],s=new Set;let n=t,r=t.parent;for(;r instanceof fe;){if(s.has(r))return null;s.add(r);const t=r.children.indexOf(n);if(t<0)return null;e.unshift(t),n=r,r=r.parent}const i=r.children.indexOf(n);return i<0?null:(e.unshift(i),e)}compareStructuralPaths(t,e){const s=Math.min(t.length,e.length);for(let n=0;n<s;n++)if(t[n]!==e[n])return t[n]-e[n];return t.length-e.length}appendListBlock(t,e){const s=t[t.length-1];s instanceof me&&s.type===e.type&&this.haveSameListAnnotations(s,e)?s.apply(new Pt([...e.children])):t.push(e)}createListFromSource(t,e){const s=t.createList(e.type);return this.copyListAnnotations(e,s),s}toParagraph(t){const e=new ae(l(),"paragraph");return e.apply(new Pt(t.children)),e.annotationMap=t.annotationMap,e}}),$.register(x.INSERT_IMAGE_TO_BLOCK,me.name,new class extends xt{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new Vt(e,t.imageBlockToBeInserted):t)}}),$.register(x.NEST_LIST_ITEMS,me.name,new class extends pe{handleAction(t,e){var s,n;const r=this.getOrderedContiguousItems(e,t.selectedBlocks);if(!r.length)return;const i=e.children.indexOf(r[0]);if(i<=0)return;const o=e.children[i-1],c=new Set(r);let a=null===(s=o.nestList)||void 0===s?void 0:s[o.nestList.length-1];a||(a=new me(l(),e.type),o.apply(new ue([...null!==(n=o.nestList)&&void 0!==n?n:[],a]))),e.children=e.children.filter((t=>!c.has(t))),a.children=a.children.concat(r),r.forEach((t=>{var e;t.parent=a,(null===(e=t.nestList)||void 0===e?void 0:e.length)&&this.unifyDescendantNestLists(t,t.nestList[0].type),t.children.forEach((t=>t.apply(new mt)))}))}unifyDescendantNestLists(t,e){var s;if(!(null===(s=t.nestList)||void 0===s?void 0:s.length))return;let n=!1;for(const s of t.nestList){s.type!==e&&(s.type=e,n=!0);for(const t of s.children)this.unifyDescendantNestLists(t,e)}n&&t.apply(new ue([...t.nestList]))}}),$.register(x.UNNEST_LIST_ITEMS,me.name,new class extends pe{handleAction(t,e){var s;const n=this.getOrderedContiguousItems(e,t.selectedBlocks),r=e.parent;if(!(n.length&&r instanceof he))return;const i=e.children.indexOf(n[0]),o=e.children.indexOf(n[n.length-1]);if(i<0||o<i)return;const c=r,a=c.parent,h=a.children.indexOf(c);if(h<0)return;const u=e.children.slice(o+1),d=new Set(n);if(e.children=e.children.filter((t=>!d.has(t))),a.children=[...a.children.slice(0,h+1),...n,...a.children.slice(h+1)],n.forEach((t=>{t.parent=a,t.children.forEach((t=>t.apply(new mt)))})),u.length>0){const t=new Set(u);e.children=e.children.filter((e=>!t.has(e)));const r=n[n.length-1];let i=null===(s=r.nestList)||void 0===s?void 0:s[r.nestList.length-1];if(i&&i.type!==e.type&&(i=null),!i){i=new me(l(),e.type);const t=Array.isArray(r.nestList)?r.nestList:[];r.apply(new ue([...t,i]))}i.children=i.children.concat(u),u.forEach((t=>{t.parent=i}))}const f=this.collectTrailingNestLists(c,e);if(f.length>0){const t=n[n.length-1],e=Array.isArray(t.nestList)?t.nestList:[];t.apply(new ue([...e,...f]))}0===e.children.length&&c.apply(new we(e))}collectTrailingNestLists(t,e){var s;const n=null!==(s=t.nestList)&&void 0!==s?s:[],r=n.indexOf(e);if(r<0||r>=n.length-1)return[];const i=n.slice(r+1);return t.apply(new ue(n.slice(0,r+1))),i}}),me.dtoName="RTEListBlock";class xe extends xt{getPreviousNode(t){var e;const s=t.parent,n=s.children.indexOf(t);if(n>0)return s.children[n-1];if(s.parent){if(s.isListItemBlock()&&0===s.parent.children.indexOf(s)&&s.parent.parent instanceof he){const t=s.parent.parent;if(0!==(null!==(e=t.nestList)&&void 0!==e?e:[]).indexOf(s.parent)){const t=this.getPreviousBlock(s);return t?this.getBlockLastNode(t):null}const n=t.children;return n.length>0?n[n.length-1]:null}const t=this.getPreviousBlock(s);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){var e;if(t.parent instanceof he){const s=null!==(e=t.parent.nestList)&&void 0!==e?e:[],n=s.indexOf(t);if(n>0)return s[n-1];if(0===n)return t.parent}if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.dtoName}}class Se extends O{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class Ae extends W{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new z(this.range)}}class ye extends J{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(ye.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${ye.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return d(t,`.${ye.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}ye.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",ye.DECORATOR_NODE_CLASS="v-internal-decorator-node";class Oe extends N{constructor(){super(...arguments),this.stylesToBeFiltered=Oe.STYLES,this.elementTagName="pre code"}canFilter(t){return C.isCodeBlockNode(t)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Oe.STYLES={boxSizing:"border-box",color:"rgba(var(--v-text-primary, 32, 54, 69, 1))",textAlign:"left",fontFamily:"'Roboto Mono'",fontWeight:"400",lineHeight:"22px",fontSize:"16px",whiteSpace:"pre-wrap",minHeight:"22px",tabSize:"2px"};class Ee extends ye{constructor(t,e,s,n){super(t),this.dtoName=Ee.dtoName,this.type=y.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s,this.annotationMap.set(A.CUSTOM_STYLE,new M(Oe.STYLES))}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(t){return`<code${this.generateAttributeString(t)}>${this.text}</code>`}clone(t){return new Ee(this.id,this.text,this.language,t)}doAnnotationActionApply(t){$.executeTheStrategy(t,this)}doModifyActionApply(t){$.executeTheStrategy(t,this)}}$.register(x.UPDATE_CODE_BLOCK,Ee.name,new class extends xt{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),$.register(Ae.name,Ee.name,new class extends xt{handleAction(t,e){e.annotationMap.set(f.SELECTION_RANGE,t.toAnnotation())}}),Ee.dtoName="RTECodeBlockNode";var Te;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(Te||(Te={}));class ve extends xt{handleAction(t,e){e.children=e.children.filter((e=>e!==t.entityToBeRemoved)),0===e.children.length&&"parent"in e&&e.parent&&(e.isListItemBlock()&&e.nestList&&e.nestList.length||e.parent.apply(new Zt(e)))}}class Ne extends N{constructor(){super(...arguments),this.stylesToBeFiltered=Ne.STYLES,this.elementTagName="pre"}canFilter(t){return C.isCodeBlock(t.dtoName)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Ne.STYLES={backgroundColor:"rgba(var(--v-bg-secondary, 245, 247, 247, 1))",padding:"12px"};class be extends U{constructor(t,e,s){super(t),this.dtoName=be.dtoName,this.type="code-block",this.annotationMap=new Map([M.from(Ne.STYLES)]),this.children=[new Ee(`${t}-1`,e,s,this)]}static from(t){return new be(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(t){const{language:e=Te["Plain Text"]}=this.children[0];return`<pre data-language="${e}"${super.generateAttributeString(t)}>${this.children.map((e=>e.toHtml(t)))}</pre>`}clone(t){const e=be.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof O&&$.executeTheStrategy(n,this),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(f.SELECTION_RANGE)}}$.register(x.DELETE_CODE_BLOCK,be.name,new class extends xe{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new Zt(e));const i=t?m.getDOMByEntity(t):null;if(0===n.children.length){const s=ae.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:""}]});e.parent.apply(new Pt([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const c=m.getDOMByEntity(o);if(c){const o=e.getSubjectFromParentNodeByEventId(c,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),$.register(x.DELETE_CHILDREN,be.name,new ve),$.register(x.SWITCH_OUT_FROM_CODE_BLOCK,be.name,new class extends xt{handleAction(s,r){const{content:i,language:o}=s,c=i.split("\n"),a=new Se(c.slice(0,c.length-2).join("\n"),o);a.isFlushable=!1,r.children[0].apply(a);const h=ae.from({id:l(),type:"paragraph",nodes:[{id:l(),text:"",type:"text"}]});r.parent.apply(new Vt(r,h));const u=m.getDOMByEntity(r);if(u){const s=e.getSubjectFromParentNodeByEventId(u,n);s&&t.notify(s,{node:h.children[0]})}}}),$.register(x.INSERT_IMAGE_TO_BLOCK,be.name,new class extends xt{handleAction(t,e){e.parent.apply(new Vt(e,t.imageBlockToBeInserted))}}),be.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element",be.dtoName="RTECodeBlock";export{fe as $,$ as A,g as B,A as C,Yt as D,oe as E,xe as F,ve as G,ie as H,Vt as I,we as J,ue as K,me as L,O as M,S as N,X as O,V as P,E as Q,Ht as R,ne as S,it as T,_t as U,at as V,rt as W,q as X,Z as Y,Y as Z,Wt as _,U as a,C as a0,ge as a1,k as a2,nt as a3,L as a4,Ne as a5,Oe as a6,mt as a7,_ as a8,Te as a9,D as aa,ct as ab,ot as ac,bt as ad,Se as ae,Ae as af,Ft as ag,ht as ah,yt as ai,Nt as aj,Lt as ak,Gt as al,st as am,p as an,Et as ao,Tt as ap,Ct as aq,ce as ar,de as as,T as at,dt as au,ut as av,ft as aw,ae as b,H as c,xt as d,Pt as e,J as f,se as g,f as h,x as i,W as j,Zt as k,B as l,K as m,N as n,ye as o,be as p,he as q,Ee as r,m as s,M as t,P as u,b as v,y as w,I as x,Xt as y,Qt as z}
@@ -1 +0,0 @@
1
- import{K as n}from"./p-6c95a6a3.js";function t(t){return i=>{const{connectedCallback:o,componentDidLoad:s,disconnectedCallback:e}=i;i.connectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.register(t),null==o?void 0:o.call(this)},i.componentDidLoad=function(){return this.keyboardEventListeners=t(this),n.register(this.keyboardEventListeners),null==s?void 0:s.call(this)},i.disconnectedCallback=function(){const{keyboardEventListeners:t=[]}=this;return n.deregister(t),null==e?void 0:e.call(this)}}}export{t as I}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-8bc15ed0.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-8ce9e214.js";import{F as w}from"./p-e1029acc.js";import{c as y}from"./p-66647244.js";import{a as C,C as j,V as k,d as R,K as I,L as S,M as z,N as O,O as D}from"./p-5447a8e8.js";import{S as E}from"./p-1ea9ad9a.js";import{S as T}from"./p-ae2abdfa.js";import{i as V}from"./p-456f678b.js";import{S as M}from"./p-f1078e63.js";import{i as L}from"./p-d27ae9ff.js";import{d as N}from"./p-a841cf13.js";import{p as F,q as A,r as P,m as B}from"./p-3a68b729.js";import{D as $,d as _}from"./p-526e3634.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-29e3eb12.js";import{V as K}from"./p-6031bed1.js";import{c as q}from"./p-3a620268.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-cb378636.js";import{C as X}from"./p-8187878e.js";import{A as Y}from"./p-bdb5180c.js";import{M as J}from"./p-78a57a17.js";import"./p-262ec334.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-874e5624.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-71909102.js";import"./p-52b8f2d2.js";import"./p-8c30a60d.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-88a6c89a.js";import"./p-49a2e141.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";const Q=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class Z extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Q.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class tt extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],tt.prototype,"disableCopyPaste",void 0);var et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class it extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}et([u()],it.prototype,"host",void 0),et([u()],it.prototype,"prefixIcon",void 0);class nt extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class st extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class ot extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class at extends st{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class lt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new nt(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new ot(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new st({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new at(t,e):new st(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>N(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,F,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,F)}}rt([u()],lt.prototype,"maskConfig",void 0),rt([u()],lt.prototype,"disableCopyPaste",void 0),rt([u()],lt.prototype,"type",void 0),rt([u()],lt.prototype,"inputRenderer",void 0),rt([g("connectedCallback")],lt.prototype,"connectedCallback",null),rt([g("disconnectedCallback")],lt.prototype,"disconnectedCallback",null),rt([g("watchValue")],lt.prototype,"watchValue",null),rt([g("watchMaskChange")],lt.prototype,"watchMaskChange",null),rt([g("watchTypeChange")],lt.prototype,"watchTypeChange",null);const pt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class dt extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}ct([u()],dt.prototype,"host",void 0),ct([u()],dt.prototype,"value",void 0),ct([u()],dt.prototype,"placeholder",void 0),ct([u()],dt.prototype,"isCompactInputWidth",void 0),ct([u()],dt.prototype,"suffixText",void 0),ct([g("componentDidLoad")],dt.prototype,"componentDidLoad",null),ct([g("watchValue")],dt.prototype,"watchValue",null),ct([g("watchSuffixText")],dt.prototype,"watchSuffixText",null);var ht=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ut extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ht([u()],ut.prototype,"host",void 0),ht([u({writable:!0})],ut.prototype,"prefixText",void 0),ht([u({writable:!0})],ut.prototype,"suffixText",void 0),ht([u({writable:!0})],ut.prototype,"isCompactInputWidth",void 0);var ft=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class gt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{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="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{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="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),ft([u()],gt.prototype,"host",void 0),ft([u({writable:!0})],gt.prototype,"isPasswordDisplay",void 0),ft([u()],gt.prototype,"type",void 0);var vt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class mt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}vt([u()],mt.prototype,"host",void 0),vt([u()],mt.prototype,"value",void 0),vt([u()],mt.prototype,"size",void 0),vt([u()],mt.prototype,"disabled",void 0),vt([u()],mt.prototype,"type",void 0),vt([u()],mt.prototype,"showClearIcon",void 0),vt([u()],mt.prototype,"prefixText",void 0),vt([u()],mt.prototype,"suffixText",void 0),vt([u()],mt.prototype,"isCompactInputWidth",void 0),vt([u()],mt.prototype,"prefixSlotRenderer",void 0),vt([u()],mt.prototype,"passwordEyeRenderer",void 0),vt([u()],mt.prototype,"inputRenderer",void 0);var xt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class bt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,F),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}xt([u()],bt.prototype,"host",void 0),xt([u()],bt.prototype,"value",void 0),xt([u()],bt.prototype,"disabled",void 0),xt([u()],bt.prototype,"type",void 0),xt([u()],bt.prototype,"name",void 0),xt([u()],bt.prototype,"autocomplete",void 0),xt([u()],bt.prototype,"inputmode",void 0),xt([u()],bt.prototype,"enterkeyhint",void 0),xt([u()],bt.prototype,"readOnly",void 0),xt([u()],bt.prototype,"placeholder",void 0),xt([u()],bt.prototype,"minLength",void 0),xt([u()],bt.prototype,"maxLength",void 0),xt([u()],bt.prototype,"isPasswordDisplay",void 0),xt([u()],bt.prototype,"valueUpdateTrigger",void 0),xt([u()],bt.prototype,"focusEventEmitter",void 0),xt([u()],bt.prototype,"blurEventEmitter",void 0),xt([u()],bt.prototype,"pasteEventEmitter",void 0),xt([u()],bt.prototype,"copyPasteController",void 0),xt([u()],bt.prototype,"nativeInputChangeEventEmitter",void 0),xt([g("connectedCallback")],bt.prototype,"connectedCallback",null),xt([g("disconnectedCallback")],bt.prototype,"disconnectedCallback",null),xt([g("doFocus")],bt.prototype,"doFocus",null),xt([g("doBlur")],bt.prototype,"doBlur",null);var wt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class yt extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,optional:this.optional,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}wt([u()],yt.prototype,"host",void 0),wt([u()],yt.prototype,"disabled",void 0),wt([u()],yt.prototype,"required",void 0),wt([u()],yt.prototype,"label",void 0),wt([u()],yt.prototype,"hint",void 0),wt([u()],yt.prototype,"labelSuffixButtonProps",void 0),wt([u()],yt.prototype,"labelSuffixButtonConfig",void 0),wt([u()],yt.prototype,"optional",void 0),wt([u()],yt.prototype,"labelButtonClickEventEmitter",void 0),wt([u()],yt.prototype,"inputContainerRenderer",void 0),wt([u()],yt.prototype,"inputSuggestionsRenderer",void 0),wt([u()],yt.prototype,"renderModeController",void 0);var Ct=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class jt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}Ct([u()],jt.prototype,"host",void 0),Ct([u({writable:!0})],jt.prototype,"value",void 0),Ct([u()],jt.prototype,"changeEventEmitter",void 0),Ct([u()],jt.prototype,"inputRenderer",void 0),Ct([g("connectedCallback")],jt.prototype,"connectedCallback",null),Ct([g("disconnectedCallback")],jt.prototype,"disconnectedCallback",null),Ct([g("watchValue")],jt.prototype,"watchValue",null);var kt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Rt extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=t,await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new X,matchTargetWidth:!0,searchable:!1,placement:["top","bottom"],translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}kt([u()],Rt.prototype,"host",void 0),kt([u()],Rt.prototype,"value",void 0),kt([u({writable:!0})],Rt.prototype,"suggestionsDropdownConfig",void 0),kt([u()],Rt.prototype,"suggestionsDropdownSource",void 0),kt([u()],Rt.prototype,"renderModeController",void 0),kt([u()],Rt.prototype,"suggestionItemClickEventEmitter",void 0),kt([g("componentDidLoad")],Rt.prototype,"appendHostItemsToDropdown",null),kt([g("showSuggestionsDropdown")],Rt.prototype,"showSuggestionsDropdown",null),kt([g("hideSuggestionsDropdown")],Rt.prototype,"hideSuggestionsDropdown",null),kt([g("watchValue")],Rt.prototype,"watchValue",null),kt([g("watchSuggestionsDropdownSource")],Rt.prototype,"watchSuggestionsDropdownSource",null);var It=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class St extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}It([u()],St.prototype,"host",void 0),It([u()],St.prototype,"suggestionsDropdownSource",void 0),It([g("connectedCallback")],St.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends J{constructor(t){super({options:{attributes:!0,attributeFilter:[Ot.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Ot.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Ot.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Ot.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Ot.prototype,"componentDidRender",null);var Dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Et=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new Y((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Ot((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new Z:null},{propertyName:"type",ruleFactory:t=>"email"===t?new Z:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new St,this.copyPasteController=new tt,this.compactWidthController=new dt,this.stateController=new ut,this.maskConfigController=new lt,this.valueController=new jt,this.prefixSlotRenderer=new it,this.renderer=new yt,this.inputContainerRenderer=new mt,this.inputRenderer=new bt,this.inputSuggestionsRenderer=new Rt,this.changeEventEmitter=y(Et,R),this.nativeInputChangeEventEmitter=y(Et,I),this.focusEventEmitter=y(Et,S),this.blurEventEmitter=y(Et,z),this.labelButtonClickEventEmitter=y(Et,j),this.suggestionItemClickEventEmitter=y(Et,O),this.pasteEventEmitter=y(Et,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(pt),this.passwordEyeRenderer=new gt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.optional=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Dt([b()],Et.prototype,"globalSlimmers",void 0),Dt([v()],Et.prototype,"ariaAttributesValueMapper",void 0),Dt([v()],Et.prototype,"dataTabIndexValueMapper",void 0),Dt([v()],Et.prototype,"formFieldController",void 0),Dt([v()],Et.prototype,"pageResizeObserverSlimmer",void 0),Dt([v()],Et.prototype,"renderModeController",void 0),Dt([v()],Et.prototype,"copyPasteController",void 0),Dt([v()],Et.prototype,"compactWidthController",void 0),Dt([v()],Et.prototype,"stateController",void 0),Dt([v()],Et.prototype,"maskConfigController",void 0),Dt([v()],Et.prototype,"valueController",void 0),Dt([v()],Et.prototype,"prefixSlotRenderer",void 0),Dt([v()],Et.prototype,"renderer",void 0),Dt([v()],Et.prototype,"inputContainerRenderer",void 0),Dt([v()],Et.prototype,"inputRenderer",void 0),Dt([v()],Et.prototype,"inputSuggestionsRenderer",void 0),Dt([v()],Et.prototype,"changeEventEmitter",void 0),Dt([v()],Et.prototype,"nativeInputChangeEventEmitter",void 0),Dt([v()],Et.prototype,"focusEventEmitter",void 0),Dt([v()],Et.prototype,"blurEventEmitter",void 0),Dt([v()],Et.prototype,"labelButtonClickEventEmitter",void 0),Dt([v()],Et.prototype,"suggestionItemClickEventEmitter",void 0),Dt([v()],Et.prototype,"pasteEventEmitter",void 0),Dt([v()],Et.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt([v()],Et.prototype,"passwordEyeRenderer",void 0),Dt([h()],Et.prototype,"watchMaskChange",null),Et.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));font-feature-settings:"calt" 0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input 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-input-input 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-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.vega-hint>label{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){.vega-hint>label{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-hint>label{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-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{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-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.v-font-field-value{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){.v-font-field-value{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){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Et as vega_input}