@globalpayments/vega 2.63.1 → 2.65.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 (457) hide show
  1. package/dist/cjs/{app-globals-2d0b157e.js → app-globals-681a0ed4.js} +10 -10
  2. package/dist/cjs/{brand-switch-state-controller-slimmer-b83a4596.js → brand-switch-state-controller-slimmer-3d41b2a4.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-4e96270e.js → child-nodes-event-prevent-slimmer-feb072c4.js} +1 -1
  4. package/dist/cjs/{child-nodes-notify-observer-slimmer-34ac3bfc.js → child-nodes-notify-observer-slimmer-257fedb3.js} +1 -1
  5. package/dist/cjs/{code-block-cc740807.js → code-block-961d54e8.js} +13 -17
  6. package/dist/cjs/{component-value-history-controller-slimmer.abstract-0bb81172.js → component-value-history-controller-slimmer.abstract-c5b8b47b.js} +6 -6
  7. package/dist/cjs/{dark-mode-state-controller-slimmer-17022f93.js → dark-mode-state-controller-slimmer-8a87ec08.js} +1 -1
  8. package/dist/cjs/{dark-mode-style-controller-b1e9ec82.js → dark-mode-style-controller-27809ff8.js} +1 -1
  9. package/dist/cjs/{design-token-bf913c86.js → design-token-98652b67.js} +1 -1
  10. package/dist/cjs/{dom-node-subject-observer-factory-58e3c010.js → dom-node-subject-observer-factory-56609e5a.js} +1 -1
  11. package/dist/cjs/{dto-renderer-manager-424c5031.js → dto-renderer-manager-4b9d2560.js} +11 -6
  12. package/dist/cjs/{element-appender-slimmer-1d035b1f.js → element-appender-slimmer-1f46981b.js} +6 -6
  13. package/dist/cjs/{event-emit-slimmer-428d8802.js → event-emit-slimmer-3cefb326.js} +2 -2
  14. package/dist/cjs/{form-field-controller-slimmer-cc6e53a4.js → form-field-controller-slimmer-1e1123ea.js} +16 -8
  15. package/dist/cjs/{image-annotation-action-f831e09b.js → image-annotation-action-03b36f68.js} +5 -5
  16. package/dist/cjs/{index-00ba6623.js → index-58ea899e.js} +1 -0
  17. package/dist/cjs/{index-5505e8dd.js → index-f2fe26a0.js} +2 -2
  18. package/dist/cjs/index.cjs.js +16 -16
  19. package/dist/cjs/{inject-keyboard-manager-ad865c95.js → inject-keyboard-manager-51033b3f.js} +1 -1
  20. package/dist/cjs/{internal-vega-event-manager-28b957c8.js → internal-vega-event-manager-9b503f1a.js} +1 -1
  21. package/dist/cjs/{keyboard-manager-7f4e1f43.js → keyboard-manager-144907d7.js} +1 -1
  22. package/dist/cjs/{keyboard-manager-slimmer-138a90e5.js → keyboard-manager-slimmer-04c48756.js} +1 -1
  23. package/dist/cjs/{language-extension-cfe0eabd.js → language-extension-059d62f6.js} +2 -2
  24. package/dist/cjs/loader.cjs.js +15 -15
  25. package/dist/cjs/{public-rules-7e9b633d.js → public-rules-58e0218b.js} +8 -8
  26. package/dist/cjs/{range-44f08955.js → range-42732973.js} +2 -2
  27. package/dist/cjs/{responsive-format-facade-a7fbefc4.js → responsive-format-facade-29070d00.js} +5 -5
  28. package/dist/cjs/{rich-text-editor-required-rule-a0618c85.js → rich-text-editor-required-rule-ce4dd5fb.js} +1 -1
  29. package/dist/cjs/{static-subject-title-85732e0f.js → static-subject-title-5829a298.js} +0 -8
  30. package/dist/cjs/{string-input-formatter-slimmer-f6c7a255.js → string-input-formatter-slimmer-0d69ea76.js} +3 -3
  31. package/dist/cjs/{style-formatter-795451f2.js → style-formatter-f6723cb3.js} +1 -1
  32. package/dist/cjs/{sub-state-notify-slimmer-bb64fcfc.js → sub-state-notify-slimmer-066f2aa9.js} +2 -2
  33. package/dist/cjs/{sub-state-observer-slimmer-84175d61.js → sub-state-observer-slimmer-569e3297.js} +3 -3
  34. package/dist/cjs/{token-extension-4764d5f3.js → token-extension-260adb8a.js} +6 -6
  35. package/dist/cjs/{translation-cde4dce3.js → translation-f5adcb9f.js} +1 -1
  36. package/dist/cjs/{translation-slimmer-af399096.js → translation-slimmer-4b6239d1.js} +1 -1
  37. package/dist/cjs/{ui-4ce1fa08.js → ui-9e181079.js} +16 -3
  38. package/dist/cjs/vega-accordion.cjs.entry.js +14 -14
  39. package/dist/cjs/vega-app-footer.cjs.entry.js +4 -4
  40. package/dist/cjs/vega-app-header-button.cjs.entry.js +15 -15
  41. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  42. package/dist/cjs/vega-banner.cjs.entry.js +5 -5
  43. package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
  44. package/dist/cjs/vega-box.cjs.entry.js +14 -14
  45. package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-breadcrumb.cjs.entry.js +6 -6
  47. package/dist/cjs/vega-button-circle.cjs.entry.js +20 -17
  48. package/dist/cjs/vega-button-group_2.cjs.entry.js +9 -9
  49. package/dist/cjs/vega-button-link.cjs.entry.js +6 -6
  50. package/dist/cjs/vega-button.cjs.entry.js +20 -15
  51. package/dist/cjs/vega-calendar_4.cjs.entry.js +528 -226
  52. package/dist/cjs/vega-card.cjs.entry.js +13 -13
  53. package/dist/cjs/vega-carousel.cjs.entry.js +13 -13
  54. package/dist/cjs/vega-checkbox_2.cjs.entry.js +12 -12
  55. package/dist/cjs/vega-chip.cjs.entry.js +15 -15
  56. package/dist/cjs/vega-code-block.cjs.entry.js +16 -16
  57. package/dist/cjs/vega-color-picker.cjs.entry.js +10 -10
  58. package/dist/cjs/vega-combo-box.cjs.entry.js +13 -13
  59. package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
  60. package/dist/cjs/vega-date-picker_2.cjs.entry.js +63 -26
  61. package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -16
  62. package/dist/cjs/vega-divider.cjs.entry.js +13 -13
  63. package/dist/cjs/vega-dropdown_5.cjs.entry.js +24 -23
  64. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  65. package/dist/cjs/vega-field-error.cjs.entry.js +2 -2
  66. package/dist/cjs/vega-field-label.cjs.entry.js +5 -5
  67. package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
  68. package/dist/cjs/vega-flag-icon.cjs.entry.js +13 -13
  69. package/dist/cjs/vega-flex.cjs.entry.js +14 -14
  70. package/dist/cjs/vega-font.cjs.entry.js +13 -13
  71. package/dist/cjs/vega-form.cjs.entry.js +636 -323
  72. package/dist/cjs/vega-grid.cjs.entry.js +13 -13
  73. package/dist/cjs/vega-hint.cjs.entry.js +1 -1
  74. package/dist/cjs/vega-icon.cjs.entry.js +13 -13
  75. package/dist/cjs/vega-image-uploader.cjs.entry.js +18 -18
  76. package/dist/cjs/vega-input-credit-card.cjs.entry.js +11 -11
  77. package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -14
  78. package/dist/cjs/vega-input-phone-number.cjs.entry.js +15 -15
  79. package/dist/cjs/vega-input-range.cjs.entry.js +12 -12
  80. package/dist/cjs/vega-input-select.cjs.entry.js +17 -17
  81. package/dist/cjs/vega-input.cjs.entry.js +12 -12
  82. package/dist/cjs/{vega-internal-event-id-9647aaf8.js → vega-internal-event-id-6d4a2c53.js} +8 -0
  83. package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -5
  84. package/dist/cjs/vega-left-nav_5.cjs.entry.js +45 -21
  85. package/dist/cjs/vega-line-chart.cjs.entry.js +1 -1
  86. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +12 -12
  87. package/dist/cjs/vega-page-notification_2.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +6 -6
  89. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +7 -7
  90. package/dist/cjs/vega-pagination.cjs.entry.js +15 -15
  91. package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
  92. package/dist/cjs/vega-popover_2.cjs.entry.js +17 -17
  93. package/dist/cjs/vega-progress-tracker.cjs.entry.js +5 -5
  94. package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
  95. package/dist/cjs/vega-rich-text-content.cjs.entry.js +11 -11
  96. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +25 -29
  97. package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
  98. package/dist/cjs/vega-segment-control.cjs.entry.js +5 -5
  99. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -17
  100. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +13 -13
  101. package/dist/cjs/vega-sidenav_3.cjs.entry.js +15 -15
  102. package/dist/cjs/vega-signature-capture.cjs.entry.js +17 -17
  103. package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
  104. package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
  105. package/dist/cjs/vega-stepper.cjs.entry.js +11 -11
  106. package/dist/cjs/vega-tab-group_2.cjs.entry.js +7 -7
  107. package/dist/cjs/vega-table_8.cjs.entry.js +17 -17
  108. package/dist/cjs/vega-text.cjs.entry.js +2 -2
  109. package/dist/cjs/vega-textarea.cjs.entry.js +11 -11
  110. package/dist/cjs/vega-time-picker_2.cjs.entry.js +20 -20
  111. package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -10
  112. package/dist/cjs/vega-tooltip_2.cjs.entry.js +15 -15
  113. package/dist/cjs/vega.cjs.js +15 -15
  114. package/dist/collection/components/vega-button/vega-button.js +9 -2
  115. package/dist/collection/components/vega-button-circle/vega-button-circle.js +8 -3
  116. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.js +7 -4
  117. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.js +21 -1
  118. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preivew-popover-controller.js +18 -1
  119. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.js +14 -1
  120. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-repeat-pattern-factory.js +8 -9
  121. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +3 -1
  122. package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.js +34 -0
  123. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +1 -1
  124. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +7 -6
  125. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-time-marker-renderer.js +31 -5
  126. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +4 -1
  127. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +11 -10
  128. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +4 -1
  129. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +15 -5
  130. package/dist/collection/components/vega-calendar/vega-calendar.js +47 -1
  131. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +37 -3
  132. package/dist/collection/components/vega-date-picker/vega-date-picker.js +6 -0
  133. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +1 -1
  134. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +4 -8
  135. package/dist/collection/components/vega-dropdown/vega-dropdown.js +4 -0
  136. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-controller.js +351 -0
  137. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-reset-controller.js +99 -0
  138. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-submit-controller.js +122 -0
  139. package/dist/collection/components/vega-form/slimmers/renderers/native-form-renderer.js +30 -0
  140. package/dist/collection/components/vega-form/vega-form.js +97 -335
  141. package/dist/collection/components/vega-modal/vega-modal.css +4 -1
  142. package/dist/collection/components/vega-nav/slimmers/vega-nav-observer-slimmer.js +8 -3
  143. package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.js +21 -4
  144. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +1 -1
  145. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +5 -7
  146. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -5
  147. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +7 -2
  148. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +1 -5
  149. package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +9 -1
  150. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +1 -1
  151. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +51 -40
  152. package/dist/collection/helpers/calendar/calendar-date.js +10 -8
  153. package/dist/collection/helpers/calendar/calendar-event.js +152 -16
  154. package/dist/collection/helpers/calendar/calendar-period/calendar-period.abstract.js +13 -4
  155. package/dist/collection/helpers/calendar/calendar-period/day-period.js +4 -4
  156. package/dist/collection/helpers/calendar/calendar-period/month-period.js +7 -6
  157. package/dist/collection/helpers/calendar/calendar-period/week-period.js +3 -3
  158. package/dist/collection/helpers/calendar/calendar-view-generator/week-view-generator.js +1 -1
  159. package/dist/collection/helpers/calendar/test/calendar-date.test.js +24 -0
  160. package/dist/collection/helpers/calendar/test/calendar-event.test.js +71 -0
  161. package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +28 -0
  162. package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +35 -0
  163. package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +43 -0
  164. package/dist/collection/helpers/calendar/test/utils.test.js +29 -1
  165. package/dist/collection/helpers/calendar/utils.js +46 -0
  166. package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +0 -3
  167. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +4 -0
  168. package/dist/collection/helpers/validator/form-field-controller.js +13 -3
  169. package/dist/collection/utils/test/ui.test.js +55 -0
  170. package/dist/collection/utils/ui.js +16 -3
  171. package/dist/esm/{app-globals-2623304e.js → app-globals-1bacb762.js} +10 -10
  172. package/dist/esm/{brand-switch-state-controller-slimmer-d6e4d217.js → brand-switch-state-controller-slimmer-60249013.js} +1 -1
  173. package/dist/esm/{child-nodes-event-prevent-slimmer-7fe3dc57.js → child-nodes-event-prevent-slimmer-f32efdee.js} +1 -1
  174. package/dist/esm/{child-nodes-notify-observer-slimmer-78f77c2c.js → child-nodes-notify-observer-slimmer-b676cd2b.js} +1 -1
  175. package/dist/esm/{code-block-23e7f8d0.js → code-block-cb657afd.js} +13 -17
  176. package/dist/esm/{component-value-history-controller-slimmer.abstract-df25e4a1.js → component-value-history-controller-slimmer.abstract-65a83eaf.js} +6 -6
  177. package/dist/esm/{dark-mode-state-controller-slimmer-0c7d1c77.js → dark-mode-state-controller-slimmer-f2b4f8ed.js} +1 -1
  178. package/dist/esm/{dark-mode-style-controller-972e1f06.js → dark-mode-style-controller-b7e85b6a.js} +1 -1
  179. package/dist/esm/{design-token-0f439510.js → design-token-3889675a.js} +1 -1
  180. package/dist/esm/{dom-node-subject-observer-factory-c7bc3035.js → dom-node-subject-observer-factory-ed4b89f4.js} +1 -1
  181. package/dist/esm/{dto-renderer-manager-65b7b1b1.js → dto-renderer-manager-8cac8f0f.js} +11 -6
  182. package/dist/esm/{element-appender-slimmer-bf5ca501.js → element-appender-slimmer-31b21e1b.js} +6 -6
  183. package/dist/esm/{event-emit-slimmer-3922d816.js → event-emit-slimmer-000ca6a7.js} +2 -2
  184. package/dist/esm/{form-field-controller-slimmer-f7e8845b.js → form-field-controller-slimmer-24dbc255.js} +16 -8
  185. package/dist/esm/{image-annotation-action-af21ea8f.js → image-annotation-action-59ea166c.js} +5 -5
  186. package/dist/esm/{index-057d0f70.js → index-090d31ca.js} +1 -0
  187. package/dist/esm/{index-7fe93427.js → index-50b32f3d.js} +2 -2
  188. package/dist/esm/index.js +16 -16
  189. package/dist/esm/{inject-keyboard-manager-109817bf.js → inject-keyboard-manager-f7d92809.js} +1 -1
  190. package/dist/esm/{internal-vega-event-manager-cb06e987.js → internal-vega-event-manager-13e3ed3d.js} +1 -1
  191. package/dist/esm/{keyboard-manager-ab521d22.js → keyboard-manager-f4bbc452.js} +1 -1
  192. package/dist/esm/{keyboard-manager-slimmer-cae3a002.js → keyboard-manager-slimmer-a02cbc5f.js} +1 -1
  193. package/dist/esm/{language-extension-d355f9aa.js → language-extension-038014ac.js} +2 -2
  194. package/dist/esm/loader.js +15 -15
  195. package/dist/esm/{public-rules-1a5da7bf.js → public-rules-a42e6f59.js} +8 -8
  196. package/dist/esm/{range-fac2962c.js → range-c08d8de1.js} +2 -2
  197. package/dist/esm/{responsive-format-facade-2904b456.js → responsive-format-facade-d8ccc742.js} +5 -5
  198. package/dist/esm/{rich-text-editor-required-rule-bb94d680.js → rich-text-editor-required-rule-3a8f319c.js} +1 -1
  199. package/dist/esm/{static-subject-title-633b3474.js → static-subject-title-52f93124.js} +1 -5
  200. package/dist/esm/{string-input-formatter-slimmer-69117deb.js → string-input-formatter-slimmer-c64c7855.js} +3 -3
  201. package/dist/esm/{style-formatter-a724e38d.js → style-formatter-ab6a9248.js} +1 -1
  202. package/dist/esm/{sub-state-notify-slimmer-4252a90e.js → sub-state-notify-slimmer-8b3b15ee.js} +2 -2
  203. package/dist/esm/{sub-state-observer-slimmer-baa8853a.js → sub-state-observer-slimmer-2b98e2c9.js} +3 -3
  204. package/dist/esm/{token-extension-89eeef74.js → token-extension-f5bf06a5.js} +6 -6
  205. package/dist/esm/{translation-833d9ef4.js → translation-f10b1e19.js} +1 -1
  206. package/dist/esm/{translation-slimmer-c83b52c1.js → translation-slimmer-984c9ce6.js} +1 -1
  207. package/dist/esm/{ui-c20be16d.js → ui-bb99c0c2.js} +16 -3
  208. package/dist/esm/vega-accordion.entry.js +14 -14
  209. package/dist/esm/vega-app-footer.entry.js +4 -4
  210. package/dist/esm/vega-app-header-button.entry.js +15 -15
  211. package/dist/esm/vega-backdrop.entry.js +2 -2
  212. package/dist/esm/vega-banner.entry.js +5 -5
  213. package/dist/esm/vega-bar-chart.entry.js +1 -1
  214. package/dist/esm/vega-box.entry.js +14 -14
  215. package/dist/esm/vega-brand-logo.entry.js +4 -4
  216. package/dist/esm/vega-breadcrumb.entry.js +6 -6
  217. package/dist/esm/vega-button-circle.entry.js +20 -17
  218. package/dist/esm/vega-button-group_2.entry.js +9 -9
  219. package/dist/esm/vega-button-link.entry.js +6 -6
  220. package/dist/esm/vega-button.entry.js +20 -15
  221. package/dist/esm/vega-calendar_4.entry.js +529 -227
  222. package/dist/esm/vega-card.entry.js +13 -13
  223. package/dist/esm/vega-carousel.entry.js +13 -13
  224. package/dist/esm/vega-checkbox_2.entry.js +12 -12
  225. package/dist/esm/vega-chip.entry.js +15 -15
  226. package/dist/esm/vega-code-block.entry.js +16 -16
  227. package/dist/esm/vega-color-picker.entry.js +10 -10
  228. package/dist/esm/vega-combo-box.entry.js +13 -13
  229. package/dist/esm/vega-counter-badge.entry.js +1 -1
  230. package/dist/esm/vega-date-picker_2.entry.js +63 -26
  231. package/dist/esm/vega-dialog_2.entry.js +16 -16
  232. package/dist/esm/vega-divider.entry.js +13 -13
  233. package/dist/esm/vega-dropdown_5.entry.js +24 -23
  234. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  235. package/dist/esm/vega-field-error.entry.js +2 -2
  236. package/dist/esm/vega-field-label.entry.js +5 -5
  237. package/dist/esm/vega-file-uploader.entry.js +11 -11
  238. package/dist/esm/vega-flag-icon.entry.js +13 -13
  239. package/dist/esm/vega-flex.entry.js +14 -14
  240. package/dist/esm/vega-font.entry.js +13 -13
  241. package/dist/esm/vega-form.entry.js +636 -323
  242. package/dist/esm/vega-grid.entry.js +13 -13
  243. package/dist/esm/vega-hint.entry.js +1 -1
  244. package/dist/esm/vega-icon.entry.js +13 -13
  245. package/dist/esm/vega-image-uploader.entry.js +18 -18
  246. package/dist/esm/vega-input-credit-card.entry.js +11 -11
  247. package/dist/esm/vega-input-numeric.entry.js +14 -14
  248. package/dist/esm/vega-input-phone-number.entry.js +15 -15
  249. package/dist/esm/vega-input-range.entry.js +12 -12
  250. package/dist/esm/vega-input-select.entry.js +17 -17
  251. package/dist/esm/vega-input.entry.js +12 -12
  252. package/dist/esm/{vega-internal-event-id-5a143cd2.js → vega-internal-event-id-5c3e5f7f.js} +5 -1
  253. package/dist/esm/vega-item-toggle.entry.js +5 -5
  254. package/dist/esm/vega-left-nav_5.entry.js +45 -21
  255. package/dist/esm/vega-line-chart.entry.js +1 -1
  256. package/dist/esm/vega-loader-wrapper_2.entry.js +12 -12
  257. package/dist/esm/vega-page-notification_2.entry.js +3 -3
  258. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +6 -6
  259. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -7
  260. package/dist/esm/vega-pagination.entry.js +15 -15
  261. package/dist/esm/vega-pie-chart.entry.js +1 -1
  262. package/dist/esm/vega-popover_2.entry.js +17 -17
  263. package/dist/esm/vega-progress-tracker.entry.js +5 -5
  264. package/dist/esm/vega-radio_2.entry.js +14 -14
  265. package/dist/esm/vega-rich-text-content.entry.js +11 -11
  266. package/dist/esm/vega-rich-text-editor_4.entry.js +25 -29
  267. package/dist/esm/vega-section-title.entry.js +1 -1
  268. package/dist/esm/vega-segment-control.entry.js +5 -5
  269. package/dist/esm/vega-selection-chip_2.entry.js +17 -17
  270. package/dist/esm/vega-selection-tile_2.entry.js +13 -13
  271. package/dist/esm/vega-sidenav_3.entry.js +15 -15
  272. package/dist/esm/vega-signature-capture.entry.js +17 -17
  273. package/dist/esm/vega-skeleton.entry.js +1 -1
  274. package/dist/esm/vega-slot-container.entry.js +1 -1
  275. package/dist/esm/vega-stepper.entry.js +11 -11
  276. package/dist/esm/vega-tab-group_2.entry.js +7 -7
  277. package/dist/esm/vega-table_8.entry.js +17 -17
  278. package/dist/esm/vega-text.entry.js +2 -2
  279. package/dist/esm/vega-textarea.entry.js +11 -11
  280. package/dist/esm/vega-time-picker_2.entry.js +20 -20
  281. package/dist/esm/vega-toggle-switch.entry.js +10 -10
  282. package/dist/esm/vega-tooltip_2.entry.js +15 -15
  283. package/dist/esm/vega.js +15 -15
  284. package/dist/sri/vega-sri-loader.js +147 -0
  285. package/dist/sri/vega-sri-manifest.json +698 -0
  286. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.d.ts +1 -0
  287. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.d.ts +6 -0
  288. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preivew-popover-controller.d.ts +5 -0
  289. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.d.ts +6 -0
  290. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-repeat-pattern-factory.d.ts +3 -1
  291. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-time-marker-renderer.d.ts +1 -0
  292. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.d.ts +1 -0
  293. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +1 -0
  294. package/dist/types/components/vega-calendar/types.d.ts +5 -0
  295. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +3 -0
  296. package/dist/types/components/vega-calendar/vega-calendar.d.ts +17 -0
  297. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +13 -0
  298. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +1 -0
  299. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +1 -0
  300. package/dist/types/components/vega-form/slimmers/controllers/vega-form-field-controller.d.ts +158 -0
  301. package/dist/types/components/vega-form/slimmers/controllers/vega-form-reset-controller.d.ts +43 -0
  302. package/dist/types/components/vega-form/slimmers/controllers/vega-form-submit-controller.d.ts +55 -0
  303. package/dist/types/components/vega-form/slimmers/renderers/native-form-renderer.d.ts +12 -0
  304. package/dist/types/components/vega-form/types.d.ts +13 -0
  305. package/dist/types/components/vega-form/vega-form.d.ts +28 -97
  306. package/dist/types/components/vega-nav/slimmers/vega-nav-observer-slimmer.d.ts +3 -0
  307. package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.d.ts +8 -0
  308. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -1
  309. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -2
  310. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +2 -1
  311. package/dist/types/components.d.ts +42 -1
  312. package/dist/types/helpers/calendar/calendar-date.d.ts +5 -3
  313. package/dist/types/helpers/calendar/calendar-event.d.ts +50 -1
  314. package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +8 -1
  315. package/dist/types/helpers/calendar/calendar-period/day-period.d.ts +1 -1
  316. package/dist/types/helpers/calendar/calendar-period/month-period.d.ts +4 -3
  317. package/dist/types/helpers/calendar/calendar-period/week-period.d.ts +1 -1
  318. package/dist/types/helpers/calendar/utils.d.ts +22 -0
  319. package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +1 -4
  320. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +4 -0
  321. package/dist/types/types/components.type.d.ts +0 -1
  322. package/dist/types/utils/ui.d.ts +5 -1
  323. package/dist/vega/index.esm.js +1 -1
  324. package/dist/vega/p-050bb2ad.entry.js +1 -0
  325. package/dist/vega/{p-3cdbee7e.js → p-053eb64a.js} +1 -1
  326. package/dist/vega/{p-76c7538a.entry.js → p-0685cba6.entry.js} +1 -1
  327. package/dist/vega/{p-476cc642.entry.js → p-0b38a01f.entry.js} +1 -1
  328. package/dist/vega/{p-5e4fb663.entry.js → p-0bb3be0b.entry.js} +1 -1
  329. package/dist/vega/{p-e74c275a.entry.js → p-12d4488b.entry.js} +1 -1
  330. package/dist/vega/{p-5397648b.entry.js → p-13c6a04c.entry.js} +1 -1
  331. package/dist/vega/{p-b6c51409.entry.js → p-185dfdd4.entry.js} +1 -1
  332. package/dist/vega/{p-942fc9b9.js → p-199dc74b.js} +1 -1
  333. package/dist/vega/p-1bd5d806.entry.js +1 -0
  334. package/dist/vega/p-1eb5b772.entry.js +1 -0
  335. package/dist/vega/{p-2591f217.entry.js → p-1f061725.entry.js} +1 -1
  336. package/dist/vega/{p-64c281ec.entry.js → p-1f43f551.entry.js} +1 -1
  337. package/dist/vega/{p-1da54ff3.js → p-2033f86e.js} +1 -1
  338. package/dist/vega/{p-e513f041.js → p-228de113.js} +1 -1
  339. package/dist/vega/{p-f1436035.js → p-24cb0a7e.js} +1 -1
  340. package/dist/vega/{p-f92fc49b.entry.js → p-299e14b4.entry.js} +1 -1
  341. package/dist/vega/{p-da6369d4.entry.js → p-2d91799a.entry.js} +1 -1
  342. package/dist/vega/{p-0bc93777.entry.js → p-2f4f3744.entry.js} +1 -1
  343. package/dist/vega/{p-b32f7aac.entry.js → p-303efbfe.entry.js} +1 -1
  344. package/dist/vega/p-308aa2e3.js +1 -0
  345. package/dist/vega/{p-d15e70d7.entry.js → p-33837794.entry.js} +1 -1
  346. package/dist/vega/p-33c6fb3f.entry.js +1 -0
  347. package/dist/vega/{p-9b2d8516.entry.js → p-3494a5f1.entry.js} +1 -1
  348. package/dist/vega/{p-66199d68.js → p-378e5881.js} +1 -1
  349. package/dist/vega/{p-bf0ced3c.js → p-39482a1a.js} +1 -1
  350. package/dist/vega/p-39b4c838.js +1 -0
  351. package/dist/vega/{p-3be7bfee.entry.js → p-3b953a24.entry.js} +1 -1
  352. package/dist/vega/{p-2ee4def0.js → p-3c21b875.js} +1 -1
  353. package/dist/vega/p-43257678.js +1 -0
  354. package/dist/vega/{p-4c3075ef.js → p-45ead9fe.js} +1 -1
  355. package/dist/vega/{p-351405f2.entry.js → p-4897bedd.entry.js} +1 -1
  356. package/dist/vega/{p-02a4732a.js → p-4c192985.js} +1 -1
  357. package/dist/vega/{p-cc5a3a1b.entry.js → p-4dd6554e.entry.js} +1 -1
  358. package/dist/vega/{p-d4564bfd.js → p-521d1d07.js} +1 -1
  359. package/dist/vega/{p-57257de0.entry.js → p-5910be31.entry.js} +1 -1
  360. package/dist/vega/{p-9c309b85.entry.js → p-59d70a67.entry.js} +1 -1
  361. package/dist/vega/{p-20223e8e.entry.js → p-5cdcd08f.entry.js} +1 -1
  362. package/dist/vega/{p-589b7ea3.entry.js → p-5d36cc3f.entry.js} +1 -1
  363. package/dist/vega/{p-09cb98f3.entry.js → p-5e1c913d.entry.js} +1 -1
  364. package/dist/vega/p-5e2ef0b8.entry.js +1 -0
  365. package/dist/vega/p-5f377954.js +1 -1
  366. package/dist/vega/{p-81fbf18f.entry.js → p-5f854901.entry.js} +1 -1
  367. package/dist/vega/p-5fec05a2.js +1 -0
  368. package/dist/vega/p-63596567.entry.js +1 -0
  369. package/dist/vega/{p-92469fa1.entry.js → p-63a5bbf4.entry.js} +1 -1
  370. package/dist/vega/{p-89d2cf34.js → p-64c3d021.js} +1 -1
  371. package/dist/vega/{p-0b36f4ce.js → p-651fe4fc.js} +1 -1
  372. package/dist/vega/{p-26ef2066.entry.js → p-671afda4.entry.js} +1 -1
  373. package/dist/vega/{p-5970369e.entry.js → p-676bee73.entry.js} +1 -1
  374. package/dist/vega/{p-6180c1af.entry.js → p-6a4db686.entry.js} +1 -1
  375. package/dist/vega/{p-614e450a.entry.js → p-6ce1e9d4.entry.js} +1 -1
  376. package/dist/vega/{p-460429da.entry.js → p-6d371296.entry.js} +1 -1
  377. package/dist/vega/{p-bc0ae89a.entry.js → p-6f96dd01.entry.js} +1 -1
  378. package/dist/vega/{p-2d58cf34.entry.js → p-719354e7.entry.js} +1 -1
  379. package/dist/vega/{p-134ed822.entry.js → p-74e684fc.entry.js} +1 -1
  380. package/dist/vega/{p-969066d3.entry.js → p-78d607ca.entry.js} +1 -1
  381. package/dist/vega/p-7c594a9f.js +1 -0
  382. package/dist/vega/p-7cd2b93b.js +1 -0
  383. package/dist/vega/{p-8a484812.entry.js → p-833d81d0.entry.js} +1 -1
  384. package/dist/vega/{p-4f21faf1.js → p-840c09c7.js} +1 -1
  385. package/dist/vega/p-852fa2d2.entry.js +1 -0
  386. package/dist/vega/{p-4f5a2b0c.entry.js → p-85ad1c21.entry.js} +1 -1
  387. package/dist/vega/{p-b4d88fce.entry.js → p-8a5c123f.entry.js} +1 -1
  388. package/dist/vega/{p-5313d0bc.js → p-901ff5d3.js} +1 -1
  389. package/dist/vega/{p-2f88ba36.entry.js → p-9439077d.entry.js} +1 -1
  390. package/dist/vega/{p-c2377afa.js → p-99b1492c.js} +1 -1
  391. package/dist/vega/{p-40924882.entry.js → p-9d492a46.entry.js} +1 -1
  392. package/dist/vega/p-9e6db93d.entry.js +1 -0
  393. package/dist/vega/{p-427b2b55.entry.js → p-a082d41b.entry.js} +1 -1
  394. package/dist/vega/{p-27dfa896.js → p-a4912b85.js} +1 -1
  395. package/dist/vega/p-a528714c.js +1 -0
  396. package/dist/vega/{p-521ace2d.js → p-a5713178.js} +1 -1
  397. package/dist/vega/{p-7cd2fac8.entry.js → p-a6010b93.entry.js} +1 -1
  398. package/dist/vega/{p-b110b7bd.entry.js → p-a61e2108.entry.js} +1 -1
  399. package/dist/vega/{p-3fba9e77.entry.js → p-a69c9e42.entry.js} +1 -1
  400. package/dist/vega/{p-cfb2af9c.entry.js → p-ab3c4b43.entry.js} +1 -1
  401. package/dist/vega/{p-8175d8de.entry.js → p-ad2055f4.entry.js} +1 -1
  402. package/dist/vega/{p-0717073b.entry.js → p-ae598946.entry.js} +1 -1
  403. package/dist/vega/{p-743c5baf.js → p-b4c25109.js} +1 -1
  404. package/dist/vega/{p-2608b9fe.js → p-b510e4d7.js} +1 -1
  405. package/dist/vega/{p-2a1b3108.entry.js → p-b68a13df.entry.js} +1 -1
  406. package/dist/vega/{p-320cccc5.entry.js → p-ba24f7b9.entry.js} +1 -1
  407. package/dist/vega/{p-2b90fae6.js → p-bc9484a6.js} +1 -1
  408. package/dist/vega/{p-dcae53cf.entry.js → p-c12000ee.entry.js} +1 -1
  409. package/dist/vega/{p-25c831a4.entry.js → p-c1fa6088.entry.js} +2 -2
  410. package/dist/vega/{p-ab29f968.js → p-c241f615.js} +1 -1
  411. package/dist/vega/{p-6244b0ad.entry.js → p-c682d53c.entry.js} +1 -1
  412. package/dist/vega/{p-c61f8ca6.entry.js → p-c8a3fb7f.entry.js} +1 -1
  413. package/dist/vega/{p-0ec14fbc.entry.js → p-c96d28dc.entry.js} +1 -1
  414. package/dist/vega/p-cef9f638.js +1 -0
  415. package/dist/vega/{p-648134d2.entry.js → p-cf211582.entry.js} +1 -1
  416. package/dist/vega/p-d3137a6e.entry.js +1 -0
  417. package/dist/vega/p-d418ecc1.entry.js +1 -0
  418. package/dist/vega/p-d5d6dae6.js +1 -0
  419. package/dist/vega/p-d5ff8b7f.js +1 -0
  420. package/dist/vega/p-d9671d27.js +1 -0
  421. package/dist/vega/{p-7bad6577.entry.js → p-dabba918.entry.js} +1 -1
  422. package/dist/vega/{p-dadc6ab3.js → p-dc92fec6.js} +1 -1
  423. package/dist/vega/{p-36ae2dd3.entry.js → p-e5af5a4d.entry.js} +1 -1
  424. package/dist/vega/{p-b1054e18.entry.js → p-e853105a.entry.js} +1 -1
  425. package/dist/vega/{p-d72abacd.entry.js → p-e9b86dac.entry.js} +1 -1
  426. package/dist/vega/p-ebfc4323.entry.js +1 -0
  427. package/dist/vega/{p-81765b4b.entry.js → p-f83739d0.entry.js} +1 -1
  428. package/dist/vega/{p-6585cfd5.entry.js → p-fbc85265.entry.js} +1 -1
  429. package/dist/vega/{p-3ab20f9e.entry.js → p-fbd38139.entry.js} +1 -1
  430. package/dist/vega/{p-bdd9ef3b.js → p-fddca002.js} +1 -1
  431. package/dist/vega/{p-de1ee131.entry.js → p-fee972e6.entry.js} +1 -1
  432. package/dist/vega/{p-b73532c0.entry.js → p-fff13ed1.entry.js} +1 -1
  433. package/dist/vega/vega.esm.js +1 -1
  434. package/package.json +3 -2
  435. package/dist/vega/p-02b29c18.js +0 -1
  436. package/dist/vega/p-079f5d94.entry.js +0 -1
  437. package/dist/vega/p-0e3cd270.entry.js +0 -1
  438. package/dist/vega/p-0e954b9b.js +0 -1
  439. package/dist/vega/p-10454aa5.entry.js +0 -1
  440. package/dist/vega/p-258f9603.js +0 -1
  441. package/dist/vega/p-51d40b0d.entry.js +0 -1
  442. package/dist/vega/p-56ff8559.entry.js +0 -1
  443. package/dist/vega/p-575235c8.js +0 -1
  444. package/dist/vega/p-657446a3.entry.js +0 -1
  445. package/dist/vega/p-6908117a.js +0 -1
  446. package/dist/vega/p-846ae5fb.js +0 -1
  447. package/dist/vega/p-893d5dfa.js +0 -1
  448. package/dist/vega/p-8a6b820a.entry.js +0 -1
  449. package/dist/vega/p-8a877e12.js +0 -1
  450. package/dist/vega/p-9ffd2a96.entry.js +0 -1
  451. package/dist/vega/p-bb61f015.js +0 -1
  452. package/dist/vega/p-c7726252.js +0 -1
  453. package/dist/vega/p-d85b0bfa.entry.js +0 -1
  454. package/dist/vega/p-d87c3058.entry.js +0 -1
  455. package/dist/vega/p-e0729c4d.entry.js +0 -1
  456. package/dist/vega/p-e5cd6521.js +0 -1
  457. /package/dist/vega/{p-48a58baf.js → p-6b2342e0.js} +0 -0
@@ -0,0 +1 @@
1
+ import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-3c21b875.js";import{b as n,c as s}from"./p-308aa2e3.js";import{c as r}from"./p-02841589.js";import{L as i}from"./p-6e1ab235.js";import{i as o}from"./p-b1faebe0.js";import{g as a}from"./p-a4670e23.js";import{V as c}from"./p-4c192985.js";import{c as l}from"./p-bf19682d.js";import{f as h}from"./p-d9671d27.js";var u,d;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(u||(u={}));class p{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(d||(d={}));class f extends p{}const T=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 n=this.rootDomToContentEntity.get(t);n&&n!==e&&this.contentEntityToRootDom.delete(n),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.constructor.name}};var E,x,g,m;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT"}(E||(E={}));class w{constructor(){this.isFlushable=!1}}class A extends p{constructor(t){super(),this.type=u.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}clone(){const t=new A("");return this.linkGroups.forEach(((e,n)=>{t.linkGroups.set(n,e.map((t=>t.clone())))})),t}toString(t,e){const n=this.toJsx(t,e);return Object.entries(n).map((([t,e])=>{const n="string"==typeof e?e:this.formatStyleToString(e);return`${r(t)}="${n}"`})).join(" ")}toJsx(t,e){const n=this.getStyle(t,e),s=this.getClass(t,e),r=this.getAttribute(t);return s.length>0&&(r.class=s.join(" ")),n&&Object.keys(n).length>0&&(r.style=n),r}getClass(t,e){const n=[];return t.link.customClass&&n.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&n.push("v-rte--link"),n}getStyle(t,e){const n={};return t.link.customStyle&&Object.assign(n,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&(n.color="rgba(var(--v-text-link, 19, 98, 226, 1))"),n}getAttribute(t){const{href:e,customAttribute:n={}}=t.link,s=t.useInternalStyle,r=n.target||(s?"_blank":"");return Object.assign(Object.assign(Object.assign({},n),e||s?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${r(t)}: ${e};`)).join(" ")}}class N extends f{constructor(t){super(),this.type=d.ALIGNMENT,this.textAlign=t}static from(t){return[d.ALIGNMENT,new N(t)]}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 N(this.textAlign)}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;switch(this.textAlign){case"right":case"center":case"justify":return{textAlign:this.textAlign};case"left":default:return{textAlign:"left"}}}}class y extends f{constructor(t){super(),this.type=d.INDENT,this.indent=Math.max(0,t)}static from(t){return[d.INDENT,new y(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new y(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class R{static register(t,e,n){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,n)}static get(t,e){const n=this.registry.get(e);if(n)return n.get(t)}static executeTheStrategy(t,e){const n=t instanceof w?t.type:t.constructor.name,s=R.get(n,e.constructor.name);if(s)return s.execute(t,e);i.error(`Type ${n} action handle strategy is not registered in class ${e.constructor.name}`)}static canHandle(t,e){return!!R.get(t,e.constructor.name)}}R.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(x||(x={}));class O extends p{}class S extends O{constructor(t){super(),this.type=x.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[x.CUSTOM_ATTRIBUTE,new S(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new S(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(o)}render(t={}){var e;const n=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete n[t])),Object.keys(n).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===n[t]&&(n[t]="true")})),n}}class C extends O{constructor(t){super(),this.type=x.CUSTOM_CLASS,this.customClass=t}static from(t){return[x.CUSTOM_CLASS,new C(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new C(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class B extends O{constructor(t){super(),this.type=x.CUSTOM_STYLE,this.customStyle=t}static from(t){return[x.CUSTOM_STYLE,new B(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new B(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" ")}"`}}class k extends f{constructor(t){super(),this.type=d.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[d.INTERNAL_WRAPPER,new k(t)]}clone(){return new k(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class RTEBlock{constructor(t){this.annotationMap=new Map,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 createAnnotationEntity(t,e){switch(t){case"textAlign":return N.from(e);case"indent":return y.from(e);case"customAttribute":return S.from(e);case"customClass":return C.from(e);case"customStyle":return B.from(e);case"internalWrapper":return k.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,n])=>{const s=this.createAnnotationEntity(e,n);o(s)&&t.set(...s)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(d.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof A||t instanceof k))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof O)).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(s){if(this.doApply(s),s.isFlushable){const s=T.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){return Object.assign(Object.assign({},Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof B)).map((e=>e.renderStyle(t))).filter(o).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof C)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(x.CUSTOM_ATTRIBUTE)}generateAttributeString(...t){var e;const n=Object.entries(Object.assign({},this.getStyles({standalone:!0}))).map((([t,e])=>`${r(t)}: ${e};`)).join(""),s=this.annotationMap.get(x.CUSTOM_CLASS),i=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==s?void 0:s.toString(),n?`style="${n}"`:null,...t].filter(o);return i.length?` ${i.join(" ")}`:""}doApply(t){t instanceof w?R.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();e instanceof A||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply&&this.doAnnotationActionApply(t)}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}!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"}(g||(g={}));class v extends p{}!function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(m||(m={}));class RTENode{constructor(t,e){this.annotationMap=new Map,this.id=t,e&&(this.annotationMap=e)}static from(t,e,n){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${n}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return S.from(e);case"customClass":return C.from(e);case"customStyle":return B.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}){const e=Array.from(this.annotationMap.values()).filter((t=>t instanceof v||t instanceof B)).map((e=>e.renderStyle(t))).filter(Boolean);return this.mergeAnnotationStyles(e,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof v||t instanceof C)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(x.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return T.getDOMByEntity(this)}generateAttributeString(...t){var e;const n=Object.entries(Object.assign({},this.getStyles({standalone:!0}))).map((([t,e])=>`${r(t)}: ${e};`)).join(""),s=this.annotationMap.get(x.CUSTOM_CLASS),i=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==s?void 0:s.toString(),n?`style="${n}"`:null,...t].filter(o);return i.length?` ${i.join(" ")}`:""}doApply(t){t instanceof w?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const s=T.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}mergeAnnotationStyles(t,e){const n={};for(const s of t)for(const t in s){const r=s[t],i=n[t];n[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return n}}class b{}class _ extends b{constructor(){super(...arguments),this.doSplit=!0}}class L extends p{constructor(t){super(),this.type=u.SELECTION_RANGE,this.range=t}clone(){return new L(this.range)}}class I extends v{constructor(t){super(),this.type=g.STRIKETHROUGH,this.strikethrough=t}static from(t){return[g.STRIKETHROUGH,new I(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new I(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 D extends v{constructor(t){super(),this.type=g.UNDERLINE,this.underline=t}static from(t){return[g.UNDERLINE,new D(t)]}toJSON(){return{underline:this.underline}}clone(){return new D(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 $ extends v{constructor(t){super(),this.type=g.ITALIC,this.italic=t}static from(t){return[g.ITALIC,new $(t)]}toJSON(){return{italic:this.italic}}clone(){return new $(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 M extends v{constructor(t){super(),this.type=g.BOLD,this.bold=t}static from(t){return[g.BOLD,new M(t)]}toJSON(){return{bold:this.bold}}clone(){return new M(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 j extends v{constructor(t,e=!0){super(),this.type=g.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[g.CODE,new j(t,e)]}toJSON(){return{code:this.code}}clone(){return new j(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?{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}:null}}const P={key:"black",light:"#111128",dark:"#E3E3E8"},F=[P,{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"}],H="​",W=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]];class K extends v{constructor(t){super(),this.type=g.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[g.TEXT_COLOR,new K(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new K(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:c.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return F.find((e=>e.key===t))||F[0]}}class J extends v{constructor(t,e=!0){super(),this.type=g.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[g.LINK,new J(t,e)]}toJSON(){return{link:this.link}}clone(){return new J(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class U extends b{constructor(t,e,n){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=n}toAnnotation(){return new A(this.groupKey)}}class G extends b{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}const z=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 RTEBlock)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof RTENode))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 X{execute(t,e){return i.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const n=t.annotationMap.get(x.CUSTOM_STYLE);n&&this.isCustomStyle(n,e)&&t.annotationMap.set(n.type,new B(n.removeStyles(e)))}createNewParagraph(t){const e=z.getRTEBlockClass("paragraph");if(e)return e.from({id:a(),type:"paragraph",nodes:[{id:a(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.constructor.name?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,n){return e===t.children[0]&&0===n}isCaretPositionAtBlockEnd(t,e,n){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,n):this.isCaretPositionAtDecoratorBlockEnd(t,e,n)}isCaretPositionAtTextBlockEnd(t,e,n){const s=t.children[t.children.length-1];return e===s&&(e.isEmpty()||n===s.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,n){return e===t.children[t.children.length-1]&&0!==n}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class V extends w{constructor(t){super(),this.type=E.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class q extends X{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const n=e.getAnnotationByType(u.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof _&&t.doSplit&&n){const{startContainer:t,endContainer:s,startOffset:r,endOffset:i}=n.range,o=t===s&&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(n.range)&&e.isContentEditable()){const s=this.splitTextNode(n.range,e);return t.annotationMap.has("LINK")&&t.apply(new V(s)),s}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const n=e.cloneWithText("");this.setApplyTargetNode(n);const s=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===s?[n,e]:t===e.text.length||!e.isContentEditable()&&t===s+1?[e,n]:[e.cloneWithText(e.text.substring(0,t)),n,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:n,startOffset:s,endOffset:r}=t;return e!==n||s>0||r<(n.textContent?n.textContent.length:0)}splitTextNode(t,e){const{startContainer:n,endContainer:s,startOffset:r}=t,i=n.parentElement,o=s.parentElement,a=(t,n,s)=>{const r=t.substring(0,n),i=t.substring(n,s),o=t.substring(s);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},c=i&&T.getEntityByDOM(i),l=o&&T.getEntityByDOM(o);if(c&&c.id===e.id){const i=n===s?t.endOffset:e.text.length,[o,c,l]=a(e.text,r,i);return this.setApplyTargetNode(c),[o,c,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[n,s,r]=a(e.text,0,t.endOffset);return this.setApplyTargetNode(s),[n,s,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class Y extends _{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new M(this.bold)}}class Q extends p{constructor(){super(...arguments),this.type=u.CLEAR_FORMATTING,this.items=[g.BOLD,g.ITALIC,g.UNDERLINE,g.STRIKETHROUGH,g.TEXT_COLOR,g.CODE,x.CUSTOM_STYLE]}}class Z extends _{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new Q}}class tt extends _{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new j(this.code)}}class et extends b{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class nt extends _{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new $(this.italic)}}class st extends _{constructor({link:t,newText:e,needMergeNode:n,doSplit:s,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=n,this.newText=e,this.type=r,o(s)&&(this.doSplit=s)}toAnnotation(){return new J(this.link)}}class rt extends _{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new I(this.strikethrough)}}class it extends _{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new D(this.underline)}}class ot extends X{handleAction(t,e){const n=t.toAnnotation();if(t instanceof et)e.annotationMap.delete(t.annotationType);else{if(!(n instanceof Q))return n instanceof v||n instanceof L?(t instanceof st&&(o(t.newText)&&(e.text=t.newText),e.parent.apply(new U(t.link.groupKey,[e],t.type))),t instanceof tt&&this.handleAction(new Z,e),t instanceof Y&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof nt&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof it||t instanceof rt)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(n.type,n)):void 0;n.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class at extends w{constructor(){super(...arguments),this.type=E.DELETE_LINK_GROUP}}class ct extends X{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new at)}}class lt extends w{constructor(t){super(),this.type=E.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class ht extends X{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,n){if(e&&e.startContainer&&e.endContainer){const{startContainer:s,endContainer:r,startOffset:i,endOffset:o}=e;let a=n.text;if(s===r&&i===o&&t)a=n.text.slice(0,i)+t+n.text.slice(i);else{const e=s.parentElement,c=r.parentElement,l=e&&T.getEntityByDOM(e),h=c&&T.getEntityByDOM(c);let u=0,d=n.text.length;l&&l===n?(u=i,d=s===r?o:d):h&&h===n&&(d=o),a=n.text.slice(0,u)+t+n.text.slice(d)}n.apply(new lt(a))}}}class ut extends p{constructor(t){super(),this.type=g.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:n,customStyle:s,customClass:r,customAttribute:i}=t,o=new ut(e);return o.child=n?ut.from(n)[1]:void 0,o.customAttribute=i?S.from(i)[1]:void 0,o.customClass=r?C.from(r)[1]:void 0,o.customStyle=s?B.from(s)[1]:void 0,[g.INLINE_HTML,o]}clone(){var t,e,n,s;const r=new ut(this.htmlTag);return 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===(n=this.customClass)||void 0===n?void 0:n.clone(),r.customStyle=null===(s=this.customStyle)||void 0===s?void 0:s.clone(),r}toJSON(){var t,e,n,s;return{inlineHtml:l({htmlTag:this.htmlTag,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===(n=this.customClass)||void 0===n?void 0:n.toJSON().customClass,customStyle:null===(s=this.customStyle)||void 0===s?void 0:s.toJSON().customStyle})}}}class dt extends X{handleAction(t,e){const n=e.parent.getAnnotationByType(u.LINK_GROUP);if(n){const s=e.annotationMap.get("LINK").link.groupKey,r=n.linkGroups.get(s);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),n.linkGroups.set(s,r))}}}}class pt extends X{handleAction(t,e){const n=e.parent.getAnnotationByType(u.LINK_GROUP);if(n){const t=e.annotationMap.get(g.LINK).link.groupKey,s=n.linkGroups.get(t);if(s){const r=s.indexOf(e);-1!==r&&s.splice(r,1),0===s.length&&n.linkGroups.delete(t),0===n.linkGroups.size&&e.parent.annotationMap.delete(u.LINK_GROUP)}}e.annotationMap.delete(g.LINK)}}class ft extends v{constructor(t){super(),this.type=g.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[g.PLAIN_TEXT,new ft(t)]}clone(){return new ft(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return{plainText:this.plainText}}}class RTETextNode extends RTENode{constructor(t,e,n,s){super(t,s),this.type=m.TEXT,this.parent=n,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,n={autoMatchFormat:!0}){const s=new RTETextNode(t.id,t.text,e),{annotations:r}=t;return r&&(s.annotationMap=this.generateTextAnnotationMap(r,n,e,s)),s}static generateTextAnnotationMap(t,e,n,s){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&n&&s&&n.apply(new U(t.link.groupKey,[s],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(o))}static createAnnotationEntity(t,e,n){const s=!(!n||!n.autoMatchFormat);switch(t){case"bold":return M.from(e);case"italic":return $.from(e);case"underline":return D.from(e);case"strikethrough":return I.from(e);case"code":return j.from(e,s);case"textColor":return K.from(e);case"link":return J.from(e,s);case"inlineHtml":return ut.from(e);case"plainText":return ft.from(e)}return RTENode.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof v||t instanceof O||t instanceof ut)).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(){const t=this.getAnnotationByType(g.INLINE_HTML);return t?this.renderWithWrapperStr(t):this.renderTextStr()}cloneWithText(t){return new RTETextNode(a(),t,this.parent,super.cloneAnnotations())}clone(){return new RTETextNode(this.id,this.text,this.parent,super.cloneAnnotations())}isEmpty(){return!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}registerModifyStrategy(){const t=this.constructor.name;RTETextNode.registerActionStrategyStatus[t]||(this.isContentEditable()&&(R.register(E.UPDATE_TEXT,t,new ct),R.register(E.REPLACE_SELECTED_TEXT,t,new ht),R.register(E.LINK_GROUP_NODE_SPLIT,t,new dt),R.register(st.name,t,new ot)),R.register(_.name,t,new q),R.register(E.DELETE_LINK_GROUP,t,new pt),R.register(b.name,t,new ot),RTETextNode.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(u.SELECTION_RANGE);if(t instanceof _&&t.doSplit&&e){const e=R.get(_.name,this.constructor.name);if(e){const n=e.execute(t,this);n&&this.applyActionToNode(n,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){R.executeTheStrategy(t,this)}applyActionToNode(t,e){const n=e.toAnnotation();if(e instanceof G)return void this.syncUpSelectedNodes(t);n instanceof L||this.syncUpSelectedNodes(t);const s=R.get(e.constructor.name,t.constructor.name);if(s)return void s.execute(e,t);const r=R.get(b.name,RTETextNode.name);r&&r.execute(e,t)}syncUpSelectedNodes(n){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,s);i&&t.notify(i,{node:n})}}renderWithWrapperStr(t){const{htmlTag:e,customAttribute:n,customClass:s,customStyle:r,child:i}=t,a=[...(null==n?void 0:n.toString())||[],null==s?void 0:s.toString(),null==r?void 0:r.toString()].filter(o),c=a.length>0?` ${a.join(" ")}`:"";return i?`<${e}${c}>${this.renderWithWrapperStr(i)}</${e}>`:`<${e}${c}>${this.renderTextStr()}</${e}>`}renderTextStr(){var t;const e=(null===(t=this.getAnnotationByType(g.CODE))||void 0===t?void 0:t.code)?"code":"span",n=super.generateAttributeString();return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${e}${n}>${this.text}</${e}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(g.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof v&&!(t instanceof J)&&!(t instanceof ft)||t instanceof O)).length}}RTETextNode.registerActionStrategyStatus={},RTETextNode.htmlTag="span";class Tt extends w{constructor(t){super(),this.type=E.APPEND_CHILDREN,this.entityToBeAppended=t}}class Et extends f{constructor(t){super(),this.type=d.TEXT_STYLE,this.textStyle=t}static from(t){return[d.TEXT_STYLE,new Et(t)]}toJSON(){return{textStyle:this.textStyle}}clone(){return new Et(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};switch(this.textStyle){case"paragraph":return e;case"title":return{fontFamily:"Inter",fontSize:"36px",lineHeight:"40px",fontWeight:"500"};case"subtitle":return{fontFamily:"Inter",fontSize:"28px",lineHeight:"32px",fontWeight:"500"};case"heading-1":return{fontFamily:"Inter",fontSize:"22px",lineHeight:"24px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-2":return{fontFamily:"Inter",fontSize:"20px",lineHeight:"24px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-3":return{fontFamily:"Inter",fontSize:"18px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-4":return{fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-5":return{fontFamily:"Inter",fontSize:"14px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-6":return{fontFamily:"Inter",fontSize:"12px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"}}}}class xt extends b{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Et(this.textStyle)}}class gt extends w{constructor(t,...e){super(),this.type=E.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class mt extends w{constructor(t){super(),this.type=E.REPLACE_CHILD_NODES,this.newChildNodes=t}}class wt extends X{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,n){if(t){const s=t.text.slice(0,e),r=t.text.slice(e),i=n.children.indexOf(t);if(i>-1){const e=n.children.slice(0,i),o=n.children.slice(i+1);s&&e.push(t.cloneWithText(s)),r&&o.unshift(t.cloneWithText(r)),n.apply(new mt(e));const a=n.cloneWithNodes(o);return n.parent.apply(new gt(n,a)),a}}}}class At extends X{handleAction(t,e){e.children=[],e.apply(new Tt(t.newChildNodes))}}class Nt extends w{constructor(t){super(),this.type=E.DELETE_CHILDREN,this.entityToBeRemoved=t}}class yt extends X{handleAction(t,e){const n=t.blockNeedToBeMerged;if(e.type===n.type||"image"!==e.type&&"image"!==n.type){let t=n.children;"image"!==n.type&&(t=n.children.filter((t=>t.text))),e.apply(new Tt(t)),n.parent.apply(new Nt(n))}}}class Rt extends X{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,n){if(t){const s=new RTETextNode(a(),"\n",n),r=t.text.slice(0,e),i=t.text.slice(e),o=n.children.indexOf(t);if(o>-1){const e=n.children.slice(0,o),a=n.children.slice(o+1);r&&e.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i)),this.mergeLineBreakNodes(e,s,a,n)}return s}}mergeLineBreakNodes(t,e,n,s){(0===n.length||n[0]&&""===n[0].text)&&n.push(new RTETextNode(a(),"\n",s,t[t.length-1]&&t[t.length-1].annotationMap)),s.apply(new mt([...t,e,...n]))}}class Ot extends X{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const n=e.children,s=new RTETextNode(a(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(n,s,r,e),s}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Nt(t)))})),e}mergeLineBreakNodes(t,e,n,s){(0===n.length||n[0]&&""===n[0].text)&&n.push(new RTETextNode(a(),"\n",s,t[t.length-1]&&t[t.length-1].annotationMap)),s.apply(new mt([...t,e,...n]))}}class St extends w{constructor(t,...e){super(),this.type=E.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class Ct extends w{constructor(t,e){super(),this.type=E.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}class Bt extends b{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new N(this.textAlign)}}class kt extends X{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class vt extends b{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new y(this.indent)}}class RTETextBlock extends RTEBlock{constructor(t,e,n){super(t),this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&(this.annotationMap=RTETextBlock.isAcceptableTextStyle(e)?new Map([Et.from(e)]):new Map([Et.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var n,s;const r=new RTETextBlock(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(s=null===(n=t.annotations)||void 0===n?void 0:n.textStyle)&&void 0!==s?s:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const n=z.getRTENodeClass(t.type);if(n)return n.from(t,r,e)})).filter(o),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?Et.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,n)=>{const s=e.at(-1);if(t instanceof st&&t.needMergeNode){const t=null==s?void 0:s.getAnnotationByType(g.LINK),r=n.getAnnotationByType(g.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,n]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag(),e=super.generateAttributeString(),n=this.getAnnotationByType(u.LINK_GROUP);let s=this.children.map((t=>t.toHtml())).join("");return n&&this.children.length>0&&(s=this.generateLinkHtml(n,s)),super.shouldRenderAsInternalWrapper()?s:[`<${t}${e}>`,s,`</${t}>`].join("")}cloneWithNodes(t){const e=new RTETextBlock(a(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new Tt(t)),e}clone(){const t=new RTETextBlock(this.id,this.type);return t.children=this.children.map((e=>{const n=e.clone();return n.parent=t,n})),t.annotationMap=super.cloneAnnotations(),t.parent=this.parent,t}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"}}doAnnotationActionApply(t){const e=R.get(t.constructor.name,RTETextBlock.name);e&&e.execute(t,this)}generateLinkHtml(t,e){e="";let n=[];for(let s=0;s<this.children.length;s++){const r=this.children[s].getAnnotationByType(g.LINK),i=this.children[s+1]?this.children[s+1].getAnnotationByType(g.LINK):null;if(r){if(n.push(this.children[s]),!i||r.link.groupKey!==i.link.groupKey){const s=t.toString(r,{standalone:!0});e+=[`<a${s?` ${s}`:""}>`,n.map((t=>t.toHtml())).join(""),"</a>"].join(""),n=[]}}else e+=this.children[s].toHtml()}return e}}R.register(xt.name,RTETextBlock.name,new class extends X{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new Y(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new et(g.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}),R.register(Bt.name,RTETextBlock.name,new kt),R.register(vt.name,RTETextBlock.name,new class extends X{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),R.register(U.name,RTETextBlock.name,new class extends X{handleAction(t,e){let n=e.getAnnotationByType(u.LINK_GROUP);if("update_link"===t.type){if(n){const e=n.linkGroups.get(t.groupKey);e&&n.linkGroups.set(t.groupKey,[e[0]])}}else{if(n){const e=n.linkGroups.get(t.groupKey)||[];n.linkGroups.set(t.groupKey,[...e,...t.nodes])}else n=t.toAnnotation(),n.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(u.LINK_GROUP,n)}}}),R.register(E.UNLINK_LINK_GROUP,RTETextBlock.name,new class extends X{handleAction(t,e){const n=e.getAnnotationByType(u.LINK_GROUP);n&&(n.linkGroups.size>1?n.linkGroups.delete(t.groupKey):e.annotationMap.delete(u.LINK_GROUP))}}),R.register(E.SPLIT_BLOCK_WITH_NODE,RTETextBlock.name,new wt),R.register(E.REPLACE_CHILD_NODES,RTETextBlock.name,new At),R.register(E.MERGE_TWO_BLOCKS_NODES,RTETextBlock.name,new yt),R.register(E.LINE_BREAK_SINGLE_BLOCK,RTETextBlock.name,new Rt),R.register(E.LINE_BREAK_MULTIPLE_BLOCKS,RTETextBlock.name,new Ot),R.register(E.INSERT_IMAGE_TO_BLOCK,RTETextBlock.name,new class extends X{handleAction(t,e){const n=t.splitPointNode,s=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,n,s))e.parent.apply(new gt(e,r));else if(this.isCaretPositionAtBlockStart(e,n,s))e.parent.apply(new St(e,r));else{const t=new Ct(n,s);e.apply(t),e.parent.apply(new gt(e,r))}}}),R.register(E.TRANSFORM_LIST_BLOCK,RTETextBlock.name,new class extends X{handleAction(t,e){const n=e.parent,s=n.createList(t.listType),r=t.selectedBlocks,i=r.map((t=>n.toListItem(t)));s.apply(new Tt(i)),n.apply(new gt(t.selectedBlocks[0],s)),r.forEach((t=>{t.parent.apply(new Nt(t))}))}});class bt extends X{getPreviousNode(t){const e=t.parent,n=e.children.indexOf(t);if(n>0)return e.children[n-1];if(e.parent){const t=this.getPreviousBlock(e);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,n=e.children.indexOf(t);if(e.children[n+1])return e.children[n+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,n=e.children.indexOf(t),s=e.parent;if(e.isListItemBlock()){const t=s.parent;return 0===n&&Array.isArray(s.children)&&s.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===s}return 0===n&&Array.isArray(s.children)&&s.children[0]===e}getPreviousBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(("number-list"===t.parent.type||"bullet-list"===t.parent.type)&&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)}}}class _t extends w{constructor(t,e){super(),this.isFlushable=!0,this.type=E.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class Lt extends b{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new L(this.range)}}class RTEDecoratorNode extends RTENode{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(RTEDecoratorNode.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${RTEDecoratorNode.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return h(t,`.${RTEDecoratorNode.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}RTEDecoratorNode.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",RTEDecoratorNode.DECORATOR_NODE_CLASS="v-internal-decorator-node";class RTECodeBlockNode extends RTEDecoratorNode{constructor(t,e,n,s){super(t),this.type=m.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=s,this.language=n}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(){return`<code style='box-sizing: border-box;color: rgba(var(--v-text-primary, 32, 54, 69, 1));text-align: left;font-family: "Roboto Mono";font-weight: 400;line-height: 22px;font-size: 16px;white-space: pre-wrap;min-height: 22px;tab-size: 2px;'>${this.text}</code>`}clone(){return new RTECodeBlockNode(this.id,this.text,this.language,this.parent)}doAnnotationActionApply(t){R.executeTheStrategy(t,this)}doModifyActionApply(t){R.executeTheStrategy(t,this)}}R.register(E.UPDATE_CODE_BLOCK,RTECodeBlockNode.name,new class extends X{handleAction(t,e){const{content:n,language:s}=t;e.language=s,e.text=n}}),R.register(Lt.name,RTECodeBlockNode.name,new class extends X{handleAction(t,e){e.annotationMap.set(u.SELECTION_RANGE,t.toAnnotation())}});var It;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(It||(It={}));class Dt extends X{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 Nt(e)))}}class RTECodeBlock extends RTEBlock{constructor(t,e,n){super(t),this.type="code-block",this.children=[new RTECodeBlockNode(`${t}-1`,e,n,this)]}static from(t){return new RTECodeBlock(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(){const{language:t=It["Plain Text"]}=this.children[0];return`<pre data-language="${t}" style="background-color: rgba(var(--v-bg-secondary, 245, 247, 247, 1)); padding: 12px">${this.children.map((t=>t.toHtml()))}</pre>`}clone(){const t=RTECodeBlock.from(this.toJSON());return t.parent=this.parent,t}apply(s){if(s instanceof w&&R.executeTheStrategy(s,this),s.isFlushable){const s=T.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(u.SELECTION_RANGE)}}R.register(E.DELETE_CODE_BLOCK,RTECodeBlock.name,new class extends bt{handleAction(t,e){const n=e.children[0],s=e.parent;if(s){let t=this.getPreviousNode(n),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(n),r=0),s.apply(new Nt(e));const i=t?T.getDOMByEntity(t):null;if(0===s.children.length){const n=RTETextBlock.from({id:a(),type:"paragraph",nodes:[{id:a(),type:"text",text:""}]});e.parent.apply(new Tt([n])),t=n.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(n,r,i,o){const a=T.getDOMByEntity(o);if(a){const o=e.getSubjectFromParentNodeByEventId(a,s);o&&t.notify(o,{node:n,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),R.register(E.DELETE_CHILDREN,RTECodeBlock.name,new Dt),R.register(E.SWITCH_OUT_FROM_CODE_BLOCK,RTECodeBlock.name,new class extends X{handleAction(n,r){const{content:i,language:o}=n,c=i.split("\n"),l=new _t(c.slice(0,c.length-2).join("\n"),o);l.isFlushable=!1,r.children[0].apply(l);const h=RTETextBlock.from({id:a(),type:"paragraph",nodes:[{id:a(),text:"",type:"text"}]});r.parent.apply(new gt(r,h));const u=T.getDOMByEntity(r);if(u){const n=e.getSubjectFromParentNodeByEventId(u,s);n&&t.notify(n,{node:h.children[0]})}}}),R.register(E.INSERT_IMAGE_TO_BLOCK,RTECodeBlock.name,new class extends X{handleAction(t,e){e.parent.apply(new gt(e,t.imageBlockToBeInserted))}}),RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element";export{nt as $,R as A,Rt as B,B as C,Ct as D,kt as E,bt as F,Dt as G,Bt as H,gt as I,RTENode as J,It as K,st as L,w as M,v as N,u as O,x as P,_t as Q,z as R,G as S,Lt as T,lt as U,W as V,_ as W,K as X,RTECodeBlockNode as Y,H as Z,Y as _,RTETextNode as a,it as a0,xt as a1,Et as a2,M as a3,Z as a4,tt as a5,rt as a6,vt as a7,E as b,X as c,RTETextBlock as d,Tt as e,Ot as f,wt as g,At as h,yt as i,Nt as j,St as k,f as l,d as m,RTEBlock as n,C as o,S as p,RTECodeBlock as q,F as r,T as s,P as t,g as u,RTEDecoratorNode as v,m as w,O as x,b as y,mt as z}
@@ -1 +1 @@
1
- import{r as t,h as e,H as i,g as r}from"./p-48a58baf.js";import{g as o,I as s}from"./p-16493e5b.js";import{h as a}from"./p-b1faebe0.js";import{s as v}from"./p-519a7d55.js";import{i as n}from"./p-66199d68.js";import{a as h}from"./p-575235c8.js";import{V as c}from"./p-8c9ea6f4.js";import{L as p,I as l}from"./p-6e1ab235.js";import{V as x,I as d}from"./p-d849e0f5.js";import{t as m}from"./p-b75ee3ba.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-e513f041.js";import"./p-7d9cd9c8.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-89d2cf34.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-02a4732a.js";import"./p-8a877e12.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-54ae02db.js";import"./p-f1436035.js";import"./p-2ee4def0.js";import"./p-e5cd6521.js";import"./p-258f9603.js";import"./p-0e954b9b.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-bf0ced3c.js";import"./p-824a06ba.js";var g=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var v=t.length-1;v>=0;v--)(o=t[v])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const b=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new x,this.size="size-16",this.cloneFAIconStyles=()=>{if(this.isThirdPartyIcon(this.icon)){const t=this.getIconStyleHTML();t&&this.appendStyles(t);let e=0;const i=window.setInterval((()=>{if(!(e<10))return p.warn("[Vega] Loading Font Awesome timeout.",this.icon),void clearInterval(i);{e++;const t=this.getIconStyleHTML();if(t)return this.appendStyles(t),void clearInterval(i)}}),300)}}}watchIcon(){this.cloneFAIconStyles()}componentWillLoad(){this.cloneFAIconStyles()}render(){const t=s.findIndex((t=>t===this.icon));if(c.hasIcon(this.icon)){const{icon:t,autoSize:e}=c.getIcon(this.icon);return this.renderForVegaIconToken(t,e?null:this.size,e)}return t>-1?this.renderForVegaIconToken(o(this.icon),this.size):this.renderForThirdPartyIcon()}isThirdPartyIcon(t){return!c.hasIcon(t)&&!s.find((e=>e===t))}renderForVegaIconToken(t,r,o=!1){const s=r?this.formatAndValidSize(this.size):null;return v(e(i,{class:h([s,this.color&&n(this.color),o&&"vega-auto-size"]),innerHTML:t},e("slot",null)),this.host)}renderForThirdPartyIcon(){return v(e(i,{class:h([this.color&&n(this.color)]),style:this.formatThirdPartyIconSize(this.size)},e("i",{part:"icon",class:this.icon})),this.host)}formatAndValidSize(t){return`v-w-${t} v-h-${t}`}formatThirdPartyIconSize(t){return{"font-size":`${a[t]}px`}}appendStyles(t){var e;if(t&&m()){const i=null!==(e=this.host.shadowRoot.querySelector("#fa-icon-styles"))&&void 0!==e?e:m().createElement("style");i.id="fa-icon-styles",i.innerHTML=t,this.host.shadowRoot.appendChild(i)}}getIconStyleHTML(){var t;if(b.iconStyleCache.has(this.icon))return b.iconStyleCache.get(this.icon);if(m()){const e=m().createElement("i");e.className=this.icon,e.style.display="none",m().body.appendChild(e);const i=getComputedStyle(e);if(null===(t=i.fontFamily)||void 0===t?void 0:t.includes("Font Awesome")){const t=getComputedStyle(e,"::before"),r=getComputedStyle(e,"::after"),o=`\n\t\t\t\ti {\n\t\t\t\t\tfont-weight: ${i.fontWeight};\n\t\t\t\t\tfont-family: ${i.fontFamily};\n\t\t\t\t\tfont-style: ${i.fontStyle};\n\t\t\t\t\tposition: ${i.position};\n\t\t\t\t\tletter-spacing: ${i.letterSpacing};\n\t\t\t\t}\n\t\t\t\ti::before {\n\t\t\t\t\tcontent: ${t.content};\n\t\t\t\t\tposition: ${t.position};\n\t\t\t\t\topacity: ${t.opacity};\n\t\t\t\t}\n\t\t\t\ti::after {\n\t\t\t\t\tcontent: ${r.content};\n\t\t\t\t\tposition: ${r.position};\n\t\t\t\t\topacity: ${r.opacity};\n\t\t\t\t}\n\t\t\t`.replace(/[\n\t]/gi,"");return b.iconStyleCache.set(this.icon,o),m().body.removeChild(e),o}return m().body.removeChild(e),null}}get host(){return r(this)}static get watchers(){return{icon:["watchIcon"]}}};b.iconStyleCache=new Map,g([d()],b.prototype,"globalSlimmers",void 0),g([l()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host(.v-w-0),.v-w-0{width:0px}:host(.v-w-size-0),.v-w-size-0{width:0px}:host(.v-w-size-4),.v-w-size-4{width:4px}:host(.v-w-size-8),.v-w-size-8{width:8px}:host(.v-w-size-12),.v-w-size-12{width:12px}:host(.v-w-size-16),.v-w-size-16{width:16px}:host(.v-w-size-20),.v-w-size-20{width:20px}:host(.v-w-size-24),.v-w-size-24{width:24px}:host(.v-w-size-32),.v-w-size-32{width:32px}:host(.v-w-size-40),.v-w-size-40{width:40px}:host(.v-w-size-48),.v-w-size-48{width:48px}:host(.v-w-size-64),.v-w-size-64{width:64px}:host(.v-w-size-72),.v-w-size-72{width:72px}:host(.v-w-size-80),.v-w-size-80{width:80px}:host(.v-w-size-112),.v-w-size-112{width:112px}:host(.v-w-size-2),.v-w-size-2{width:2px}:host(.v-h-0),.v-h-0{height:0px}:host(.v-h-size-0),.v-h-size-0{height:0px}:host(.v-h-size-4),.v-h-size-4{height:4px}:host(.v-h-size-8),.v-h-size-8{height:8px}:host(.v-h-size-12),.v-h-size-12{height:12px}:host(.v-h-size-16),.v-h-size-16{height:16px}:host(.v-h-size-20),.v-h-size-20{height:20px}:host(.v-h-size-24),.v-h-size-24{height:24px}:host(.v-h-size-32),.v-h-size-32{height:32px}:host(.v-h-size-40),.v-h-size-40{height:40px}:host(.v-h-size-48),.v-h-size-48{height:48px}:host(.v-h-size-64),.v-h-size-64{height:64px}:host(.v-h-size-72),.v-h-size-72{height:72px}:host(.v-h-size-80),.v-h-size-80{height:80px}:host(.v-h-size-112),.v-h-size-112{height:112px}:host(.v-h-size-2),.v-h-size-2{height:2px}:host{display:inline-flex;user-select:none}i{line-height:1}:host(:not(.vega-auto-size)) ::slotted(svg){width:100%;height:100%}";export{b as vega_icon}
1
+ import{r as t,h as e,H as i,g as r}from"./p-6b2342e0.js";import{g as o,I as s}from"./p-16493e5b.js";import{h as a}from"./p-b1faebe0.js";import{s as v}from"./p-519a7d55.js";import{i as n}from"./p-378e5881.js";import{a as h}from"./p-d9671d27.js";import{V as c}from"./p-8c9ea6f4.js";import{L as p,I as l}from"./p-6e1ab235.js";import{V as x,I as d}from"./p-d849e0f5.js";import{t as m}from"./p-b75ee3ba.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-228de113.js";import"./p-7d9cd9c8.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-64c3d021.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-4c192985.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-54ae02db.js";import"./p-24cb0a7e.js";import"./p-3c21b875.js";import"./p-d5d6dae6.js";import"./p-39b4c838.js";import"./p-308aa2e3.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-39482a1a.js";import"./p-824a06ba.js";var g=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var v=t.length-1;v>=0;v--)(o=t[v])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const b=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new x,this.size="size-16",this.cloneFAIconStyles=()=>{if(this.isThirdPartyIcon(this.icon)){const t=this.getIconStyleHTML();t&&this.appendStyles(t);let e=0;const i=window.setInterval((()=>{if(!(e<10))return p.warn("[Vega] Loading Font Awesome timeout.",this.icon),void clearInterval(i);{e++;const t=this.getIconStyleHTML();if(t)return this.appendStyles(t),void clearInterval(i)}}),300)}}}watchIcon(){this.cloneFAIconStyles()}componentWillLoad(){this.cloneFAIconStyles()}render(){const t=s.findIndex((t=>t===this.icon));if(c.hasIcon(this.icon)){const{icon:t,autoSize:e}=c.getIcon(this.icon);return this.renderForVegaIconToken(t,e?null:this.size,e)}return t>-1?this.renderForVegaIconToken(o(this.icon),this.size):this.renderForThirdPartyIcon()}isThirdPartyIcon(t){return!c.hasIcon(t)&&!s.find((e=>e===t))}renderForVegaIconToken(t,r,o=!1){const s=r?this.formatAndValidSize(this.size):null;return v(e(i,{class:h([s,this.color&&n(this.color),o&&"vega-auto-size"]),innerHTML:t},e("slot",null)),this.host)}renderForThirdPartyIcon(){return v(e(i,{class:h([this.color&&n(this.color)]),style:this.formatThirdPartyIconSize(this.size)},e("i",{part:"icon",class:this.icon})),this.host)}formatAndValidSize(t){return`v-w-${t} v-h-${t}`}formatThirdPartyIconSize(t){return{"font-size":`${a[t]}px`}}appendStyles(t){var e;if(t&&m()){const i=null!==(e=this.host.shadowRoot.querySelector("#fa-icon-styles"))&&void 0!==e?e:m().createElement("style");i.id="fa-icon-styles",i.innerHTML=t,this.host.shadowRoot.appendChild(i)}}getIconStyleHTML(){var t;if(b.iconStyleCache.has(this.icon))return b.iconStyleCache.get(this.icon);if(m()){const e=m().createElement("i");e.className=this.icon,e.style.display="none",m().body.appendChild(e);const i=getComputedStyle(e);if(null===(t=i.fontFamily)||void 0===t?void 0:t.includes("Font Awesome")){const t=getComputedStyle(e,"::before"),r=getComputedStyle(e,"::after"),o=`\n\t\t\t\ti {\n\t\t\t\t\tfont-weight: ${i.fontWeight};\n\t\t\t\t\tfont-family: ${i.fontFamily};\n\t\t\t\t\tfont-style: ${i.fontStyle};\n\t\t\t\t\tposition: ${i.position};\n\t\t\t\t\tletter-spacing: ${i.letterSpacing};\n\t\t\t\t}\n\t\t\t\ti::before {\n\t\t\t\t\tcontent: ${t.content};\n\t\t\t\t\tposition: ${t.position};\n\t\t\t\t\topacity: ${t.opacity};\n\t\t\t\t}\n\t\t\t\ti::after {\n\t\t\t\t\tcontent: ${r.content};\n\t\t\t\t\tposition: ${r.position};\n\t\t\t\t\topacity: ${r.opacity};\n\t\t\t\t}\n\t\t\t`.replace(/[\n\t]/gi,"");return b.iconStyleCache.set(this.icon,o),m().body.removeChild(e),o}return m().body.removeChild(e),null}}get host(){return r(this)}static get watchers(){return{icon:["watchIcon"]}}};b.iconStyleCache=new Map,g([d()],b.prototype,"globalSlimmers",void 0),g([l()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host(.v-w-0),.v-w-0{width:0px}:host(.v-w-size-0),.v-w-size-0{width:0px}:host(.v-w-size-4),.v-w-size-4{width:4px}:host(.v-w-size-8),.v-w-size-8{width:8px}:host(.v-w-size-12),.v-w-size-12{width:12px}:host(.v-w-size-16),.v-w-size-16{width:16px}:host(.v-w-size-20),.v-w-size-20{width:20px}:host(.v-w-size-24),.v-w-size-24{width:24px}:host(.v-w-size-32),.v-w-size-32{width:32px}:host(.v-w-size-40),.v-w-size-40{width:40px}:host(.v-w-size-48),.v-w-size-48{width:48px}:host(.v-w-size-64),.v-w-size-64{width:64px}:host(.v-w-size-72),.v-w-size-72{width:72px}:host(.v-w-size-80),.v-w-size-80{width:80px}:host(.v-w-size-112),.v-w-size-112{width:112px}:host(.v-w-size-2),.v-w-size-2{width:2px}:host(.v-h-0),.v-h-0{height:0px}:host(.v-h-size-0),.v-h-size-0{height:0px}:host(.v-h-size-4),.v-h-size-4{height:4px}:host(.v-h-size-8),.v-h-size-8{height:8px}:host(.v-h-size-12),.v-h-size-12{height:12px}:host(.v-h-size-16),.v-h-size-16{height:16px}:host(.v-h-size-20),.v-h-size-20{height:20px}:host(.v-h-size-24),.v-h-size-24{height:24px}:host(.v-h-size-32),.v-h-size-32{height:32px}:host(.v-h-size-40),.v-h-size-40{height:40px}:host(.v-h-size-48),.v-h-size-48{height:48px}:host(.v-h-size-64),.v-h-size-64{height:64px}:host(.v-h-size-72),.v-h-size-72{height:72px}:host(.v-h-size-80),.v-h-size-80{height:80px}:host(.v-h-size-112),.v-h-size-112{height:112px}:host(.v-h-size-2),.v-h-size-2{height:2px}:host{display:inline-flex;user-select:none}i{line-height:1}:host(:not(.vega-auto-size)) ::slotted(svg){width:100%;height:100%}";export{b as vega_icon}
@@ -1 +1 @@
1
- import{C as e}from"./p-2d0d575f.js";import{O as a}from"./p-331a62d5.js";import{b as t}from"./p-575235c8.js";class n{constructor(e,a){this.vegaName=e,this.nativeName=a}getName(){return this.getVegaName()}getCurrentName(e){return"native"!==e.namespace?this.getVegaName():this.getNativeName()}getVegaName(){return this.vegaName}getNativeName(){return this.nativeName}isBrowserRawEvent(){return ee.includes(this)}}const s=new n("vegaChange","change"),r=new n("vegaClick","click"),o=new n("vegaFocus","focus"),i=new n("vegaBlur","blur"),g=new n("vegaClose","close"),c=new n("vegaOpen","modalOpen"),w=new n("vegaValidate","validate"),v=new n("vegaFormSubmit","formSubmit"),l=new n("vegaFormReset","formReset"),h=new n("vegaRowClick","rowClick"),d=new n("vegaRowExpand","rowExpand"),C=new n("vegaSelectChange","selectChange"),u=new n("vegaRowSelect","rowSelect"),p=new n("vegaRowSelectAll","rowSelectAll"),m=new n("vegaSelectAllChange","selectAllChange"),S=new n("vegaPageSizeChange","pageSizeChange"),k=new n("vegaDropdownClick","dropdownClick"),b=new n("vegaCreate","create"),f=new n("vegaSearch","search"),R=new n("vegaSearchTrigger","searchTrigger"),A=new n("vegaHide","hide"),N=new n("vegaShow","show"),U=new n("vegaPopoverShow","popoverShow"),j=new n("vegaPopoverHide","popoverHide"),B=new n("vegaCancel","cancel"),E=new n("vegaRemove","remove"),F=new n("vegaPageUpdate","pageUpdate"),x=new n("vegaCurrentStepUpdate","currentStepUpdate"),y=new n("vegaToggleStatus","toggleStatus"),D=new n("vegaStateUpdate","stateUpdate"),P=new n("vegaGroupClick","groupClick"),H=new n("vegaMenuClick","menuClick"),M=new n("vegaExpand","expand"),O=new n("vegaShow","dropdownShow"),I=new n("vegaHide","dropdownHide"),T=new n("vegaSearch","dropdownSearch"),$=new n("vegaActionClick","actionClick"),q=new n("vegaEventClick","eventClick"),z=new n("vegaDateDblClick","dateDblClick"),V=new n("vegaDateClick","dateClick"),Y=new n("vegaCountryChange","countryChange"),G=new n("vegaActionButtonClick","actionButtonClick"),L=new n("vegaMoreActionClick","moreActionClick"),J=new n("vegaSelectedFileChange","selectedFileChange"),K=new n("vegaImageInserted","imageInserted"),Q=new n("vegaRetry","retry"),W=new n("vegaPreview","preview"),X=new n("vegaLabelButtonClick","labelButtonClick"),Z=new n("vegaReset","reset"),_=new n("vegaMonthYearChange","monthYearChange"),ee=[s,r,o,i];class ae{constructor(e,a){this.title=e,this.host=a}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const te=new class{constructor(){this.cache=new Map}getSubject(e,a){return this.isExist(e,a)?this.cache.get(e).get(a):this.setSubject(e,a)}isExist(e,a){return!!e&&this.cache.has(e)&&void 0!==this.cache.get(e)&&this.cache.get(e).has(a)}getSubjectFromParentNodeByEventId(e,a){let n;for(const s of this.cache)if(t(e,s[0])&&s[1].has(a)){n=s[1].get(a);break}return n}setSubject(e,a){const t=`${e.tagName}:${a.getName()}`,n=new ae(t,e);return this.cache.get(e)||this.cache.set(e,new Map),this.cache.get(e).set(a,n),n}},ne=()=>!0;class se{static addUniqueObserverToNode(t,n,s,r){if(t){const o=new a("function"==typeof r?r.bind(null):ne,s);se.removeUniqueObserverFromNode(t,n),e.register(te.getSubject(t,n),o)}}static removeUniqueObserverFromNode(a,t){te.isExist(a,t)&&e.clearObserversBySubject(te.getSubject(a,t))}}export{w as A,B,o as C,se as D,i as E,Y as F,N as G,A as H,y as I,c as J,D as K,P as L,H as M,$ as N,S as O,U as P,j as Q,x as R,K as S,C as T,m as U,k as V,h as W,d as X,u as Y,p as Z,r as a,M as b,g as c,te as d,G as e,s as f,q as g,z as h,L as i,V as j,F as k,E as l,b as m,f as n,_ as o,O as p,I as q,Z as r,T as s,R as t,X as u,J as v,Q as w,W as x,v as y,l as z}
1
+ import{C as e}from"./p-2d0d575f.js";import{O as a}from"./p-331a62d5.js";import{b as t}from"./p-d9671d27.js";class n{constructor(e,a){this.vegaName=e,this.nativeName=a}getName(){return this.getVegaName()}getCurrentName(e){return"native"!==e.namespace?this.getVegaName():this.getNativeName()}getVegaName(){return this.vegaName}getNativeName(){return this.nativeName}isBrowserRawEvent(){return ee.includes(this)}}const s=new n("vegaChange","change"),r=new n("vegaClick","click"),o=new n("vegaFocus","focus"),i=new n("vegaBlur","blur"),g=new n("vegaClose","close"),c=new n("vegaOpen","modalOpen"),w=new n("vegaValidate","validate"),v=new n("vegaFormSubmit","formSubmit"),l=new n("vegaFormReset","formReset"),h=new n("vegaRowClick","rowClick"),d=new n("vegaRowExpand","rowExpand"),C=new n("vegaSelectChange","selectChange"),u=new n("vegaRowSelect","rowSelect"),p=new n("vegaRowSelectAll","rowSelectAll"),m=new n("vegaSelectAllChange","selectAllChange"),S=new n("vegaPageSizeChange","pageSizeChange"),k=new n("vegaDropdownClick","dropdownClick"),b=new n("vegaCreate","create"),f=new n("vegaSearch","search"),R=new n("vegaSearchTrigger","searchTrigger"),A=new n("vegaHide","hide"),N=new n("vegaShow","show"),U=new n("vegaPopoverShow","popoverShow"),j=new n("vegaPopoverHide","popoverHide"),B=new n("vegaCancel","cancel"),E=new n("vegaRemove","remove"),F=new n("vegaPageUpdate","pageUpdate"),x=new n("vegaCurrentStepUpdate","currentStepUpdate"),y=new n("vegaToggleStatus","toggleStatus"),D=new n("vegaStateUpdate","stateUpdate"),P=new n("vegaGroupClick","groupClick"),H=new n("vegaMenuClick","menuClick"),M=new n("vegaExpand","expand"),O=new n("vegaShow","dropdownShow"),I=new n("vegaHide","dropdownHide"),T=new n("vegaSearch","dropdownSearch"),$=new n("vegaActionClick","actionClick"),q=new n("vegaEventClick","eventClick"),z=new n("vegaDateDblClick","dateDblClick"),V=new n("vegaDateClick","dateClick"),Y=new n("vegaCountryChange","countryChange"),G=new n("vegaActionButtonClick","actionButtonClick"),L=new n("vegaMoreActionClick","moreActionClick"),J=new n("vegaSelectedFileChange","selectedFileChange"),K=new n("vegaImageInserted","imageInserted"),Q=new n("vegaRetry","retry"),W=new n("vegaPreview","preview"),X=new n("vegaLabelButtonClick","labelButtonClick"),Z=new n("vegaReset","reset"),_=new n("vegaMonthYearChange","monthYearChange"),ee=[s,r,o,i];class ae{constructor(e,a){this.title=e,this.host=a}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const te=new class{constructor(){this.cache=new Map}getSubject(e,a){return this.isExist(e,a)?this.cache.get(e).get(a):this.setSubject(e,a)}isExist(e,a){return!!e&&this.cache.has(e)&&void 0!==this.cache.get(e)&&this.cache.get(e).has(a)}getSubjectFromParentNodeByEventId(e,a){let n;for(const s of this.cache)if(t(e,s[0])&&s[1].has(a)){n=s[1].get(a);break}return n}setSubject(e,a){const t=`${e.tagName}:${a.getName()}`,n=new ae(t,e);return this.cache.get(e)||this.cache.set(e,new Map),this.cache.get(e).set(a,n),n}},ne=()=>!0;class se{static addUniqueObserverToNode(t,n,s,r){if(t){const o=new a("function"==typeof r?r.bind(null):ne,s);se.removeUniqueObserverFromNode(t,n),e.register(te.getSubject(t,n),o)}}static removeUniqueObserverFromNode(a,t){te.isExist(a,t)&&e.clearObserversBySubject(te.getSubject(a,t))}}export{w as A,B,o as C,se as D,i as E,Y as F,N as G,A as H,y as I,c as J,D as K,P as L,H as M,$ as N,S as O,U as P,j as Q,x as R,K as S,C as T,m as U,k as V,h as W,d as X,u as Y,p as Z,r as a,M as b,g as c,te as d,G as e,s as f,q as g,z as h,L as i,V as j,F as k,E as l,b as m,f as n,_ as o,O as p,I as q,Z as r,T as s,R as t,X as u,J as v,Q as w,W as x,v as y,l as z}
@@ -0,0 +1 @@
1
+ import{V as t,I as e,c as s,M as i}from"./p-6e1ab235.js";import{c as r}from"./p-02841589.js";import{C as o}from"./p-2d0d575f.js";import{O as n}from"./p-331a62d5.js";import{U as a,a as l,b as h,F as c,c as d,d as u,e as f}from"./p-a528714c.js";import{f as m,d as p}from"./p-d9671d27.js";import{i as v,g as b}from"./p-a4670e23.js";import{c as g}from"./p-6a334573.js";import{d as R,D as j}from"./p-3c21b875.js";import{f as y,d as w,g as O}from"./p-308aa2e3.js";import{V as E}from"./p-39482a1a.js";import{P as V}from"./p-7d9cd9c8.js";import{I as F}from"./p-abd7aeaa.js";import{M as I}from"./p-78a57a17.js";import{A as C}from"./p-52b8f2d2.js";import{i as S}from"./p-d27ae9ff.js";import{S as A}from"./p-fddca002.js";class k{constructor(t){this.rule=t}getStatus(t,e,s){return{canEvaluate:this.rule.canEvaluate(t,e,s),isAsync:v(this.rule.evaluate)}}shouldShowError(t,e){try{return this.rule.shouldShowError?this.rule.shouldShowError(t,e):this.defaultShouldShowError(t)}catch(t){return!1}}handle(t){try{return this.rule.evaluate(t)}catch(t){return{isValid:!0,message:""}}}defaultShouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}}class T{constructor(){this.handlers=[],this.processId=""}checkIncludesAsyncRuleHandler(t,e,s){return!!this.handlers.find((i=>{const r=i.getStatus(t,e,s);return r.canEvaluate&&r.isAsync}))}setHandlersByRules(t){this.handlers=t&&t.length?t.map((t=>new k(t))):[]}async process(t,e,s,i,r){const o=this.preProcess();let n;for(const i of this.handlers){if(o!==this.processId)break;const r=i.getStatus(t,e,s);if(!r.canEvaluate)continue;let a;if(r.isAsync)try{a=await i.handle(t)}catch(t){}else a=i.handle(t);if(a&&!a.isValid){const t=i.shouldShowError(e,s);n=Object.assign(Object.assign({},a),{shouldShowError:t});break}}return this.postProcess(o,i,n,r),n?{isValid:!1,message:n.message}:{isValid:!0,message:""}}preProcess(){const t=b();return this.processId=t,t}postProcess(t,e,s,i){this.processId===t&&i(e,s)}}class L{run(t){const e=t.nextElementSibling;return e&&e.querySelector(".vega-error")?e.querySelector(".vega-error"):null}}class M{run(t){let e=t.nextElementSibling;return e&&!e.classList.contains("vega-error")&&(e=document.createElement("label"),e.classList.add("vega-error"),e.setAttribute("part","field-error-message"),t.after(e)),e}}class D{run(t){let e=t.nextElementSibling;return e||(e=document.createElement("label"),e.classList.add("vega-error"),e.setAttribute("part","field-error-message"),t.after(e)),e}}class B extends t{getTranslatedMessage(t){return"string"==typeof t?E.t(t):E.t(t.key,...t.args||[])}}var H=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class U extends t{constructor(){super(),this.formFieldMessageTranslatorSlimmer=new B,this.fieldErrorUiControllerStrategies=[new L,new M,new D],this.initTranslationObserver()}applyInputInvalidUI(t){const e=this.getInputElementContainer();if(o.notify(R.getSubject(this.host,y),{host:this.host,showError:!0}),e&&(e.classList.add("error"),t)){this.errorMessage=t;const s=this.getErrorContainer(e);s.innerHTML=this.formFieldMessageTranslatorSlimmer.getTranslatedMessage(t),s.classList.remove("vega-hidden")}}resetInputInvalidUI(){this.errorMessage="";const t=this.getInputElementContainer();t&&(this.getErrorContainer(t).classList.add("vega-hidden"),t.classList.remove("error"),o.notify(R.getSubject(this.host,y),{host:this.host,showError:!1}))}getInputElementContainer(){return this.options&&this.options.inputContainerGetter?this.options.inputContainerGetter():null}getErrorContainer(t){for(const e of this.fieldErrorUiControllerStrategies){const s=e.run(t);if(s)return s}}initTranslationObserver(){const t=new n(this.isAcceptableTranslationObserver.bind(this),(()=>{if(!this.errorMessage)return;const t=this.getInputElementContainer();if(t){const e=this.getErrorContainer(t);e&&(e.innerHTML=this.formFieldMessageTranslatorSlimmer.getTranslatedMessage(this.errorMessage))}}));o.register(a,t)}isAcceptableTranslationObserver(){return!0}}H([e()],U.prototype,"formFieldMessageTranslatorSlimmer",void 0),H([s()],U.prototype,"host",void 0),H([s()],U.prototype,"options",void 0);var x=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class G{constructor(t,e,s,i){var r,n;this.formFieldMessageTranslatorSlimmer=new B,this.fieldErrorUIController=new U,this.resizeObserverSlimmer=g(G,V,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"}],[{callback:t=>{const e=this.isVisible,s=t[0].contentRect.height>0;this.isVisible=s,this.isAutoValidationEnabled()&&m(this.host,"vega-form")&&e!==s&&this.valid(["visible"])},target:()=>this.host}]),this.defaultRules=[],this.additionalRules=[],this.listeners=[],this.isTouched=!1,this.isModified=!1,this.isVisible=!1,this.formFieldValidationRuleHandlerChain=new T,this.hostChildAddedBlurEventMap=new WeakMap,this.handleValidationResult=(t,e)=>{let s=!0;return e?("rule"===t?e.shouldShowError?this.fieldErrorUIController.applyInputInvalidUI(e.message):this.fieldErrorUIController.resetInputInvalidUI():t?this.fieldErrorUIController.applyInputInvalidUI(e.message):this.fieldErrorUIController.resetInputInvalidUI(),s=!1):this.fieldErrorUIController.resetInputInvalidUI(),this.invokeListeners(s),o.notify(l,{host:this.host,detail:s}),s},this.setupTouchedListener=()=>{this.getTouchableAreaElements().filter((t=>t&&!0!==this.hostChildAddedBlurEventMap.get(t))).forEach((t=>{t.addEventListener("blur",(()=>{this.updateIsTouched(!0)})),this.hostChildAddedBlurEventMap.set(t,!0)}))},this.defaultRules=t||[],this.host=e,this.defaultValue=s,this.options=i,this.initDisabledAttrObserver(),this.connectResizeObserver(),this.initFormResetObserver(),null===(n=(r=this.host).componentOnReady)||void 0===n||n.call(r).then((()=>{this.didRender()})),this.setupModifiedListener(),this.listenHostElementKeydown(),this.updateValidationHandlers()}async validate(t){return await this.valid([],t)}addListener(t){this.listeners.push(t)}getRules(){const t=[...this.additionalRules];return[...this.defaultRules.map((e=>this.overrideDefaultRuleByAdditionalRule(e,t))),...t]}setDefaultRules(t){this.defaultRules=t,this.updateValidationHandlers()}setAdditionalRules(t){this.additionalRules=t,this.updateValidationHandlers()}destroy(){o.notify(h,{host:this.host}),this.unregisterFormResetObserver(),o.unregister(c,this.hostValueChangeObserver),this.hostChildrenObserver&&this.hostChildrenObserver.disconnect()}connectResizeObserver(){}updateDisableBlurValidation(t){this.disableBlurValidation=t}updateValidationHandlers(){this.formFieldValidationRuleHandlerChain.setHandlersByRules(this.getRules())}async valid(t,e="rule"){const s=this.getStatus(),i=this.host.value;this.formFieldValidationRuleHandlerChain.checkIncludesAsyncRuleHandler(i,s,t)&&o.notify(l,{host:this.host,detail:null});const{isValid:r,message:n}=await this.formFieldValidationRuleHandlerChain.process(i,s,t,e,this.handleValidationResult);return{isValid:r,message:this.formFieldMessageTranslatorSlimmer.getTranslatedMessage(n)}}invokeListeners(t){this.listeners.forEach((e=>e.callback(t)))}getStatus(){return{touched:this.isTouched,modified:this.isModified,disabled:this.host.disabled,visible:this.isVisible}}updateIsTouched(t){const e=this.isTouched;this.isTouched=t,!this.disableBlurValidation&&this.isAutoValidationEnabled()&&this.valid(e===t?[]:["touched"])}updateIsModified(t){const e=this.isModified;this.isModified=t,this.isAutoValidationEnabled()&&this.valid(e===t?[]:["modified"])}initDisabledAttrObserver(){this.disabledAttrObserver=new MutationObserver((()=>{this.isAutoValidationEnabled()&&this.valid(["disabled"])})),this.disabledAttrObserver.observe(this.host,{attributes:!0,attributeFilter:["disabled"]})}canAcceptFormResetOperation(t){return m(this.host,"vega-form")===t.host}unregisterFormResetObserver(){o.unregister(d,this.formResetTriggeredObserver)}monitorTouchedListener(){const t=this.getInputContainerElements();t&&(this.hostChildrenObserver=new MutationObserver((()=>{this.setupTouchedListener()})),this.hostChildrenObserver.observe(t,{childList:!0,subtree:!0})),this.setupTouchedListener()}getTouchableAreaElements(){return this.options&&this.options.touchableAreaGetter?this.options.touchableAreaGetter():[]}getInputContainerElements(){return this.options&&this.options.inputContainerGetter?this.options.inputContainerGetter():null}setupModifiedListener(){this.hostValueChangeObserver=new n(this.isCurrentTarget.bind(this),(()=>this.updateIsModified(!0))),o.register(c,this.hostValueChangeObserver)}isCurrentTarget(t){return this.host===t.host}async reset(t){var e,s;if(this.shouldVisitElement(this.host,null===(e=t.option)||void 0===e?void 0:e.skipDisabled,null===(s=t.option)||void 0===s?void 0:s.skipInvisible)){const e=t.defaultValueMap,s=this.host.dataset.vegaForm,i=null==e[s]?this.getDefaultValue():e[s];"function"==typeof this.host.setValue?await this.host.setValue(i):this.host.value=i,this.isTouched=!1,this.isModified=!1,this.fieldErrorUIController.resetInputInvalidUI()}}getDefaultValue(){return this.defaultValue instanceof Function?this.defaultValue(this.host):this.defaultValue}didRender(){this.monitorTouchedListener()}initFormResetObserver(){this.formResetTriggeredObserver=new n(this.canAcceptFormResetOperation.bind(this),this.reset.bind(this)),o.register(d,this.formResetTriggeredObserver)}isAutoValidationEnabled(){return!1!==this.host.autoValidation}shouldVisitElement(t,e,s){return!(!t.dataset.vegaForm||e&&t.disabled||s&&!p(t))}listenHostElementKeydown(){this.host.addEventListener("keydown",(t=>{if(this.canSubmitFormByEvent(t)){const t=m(this.host,"vega-form",{outerMost:!0});t&&o.notify(R.getSubject(t,w),{host:this.host})}}))}canSubmitFormByEvent(t){const e="Enter"===t.key||13===t.keyCode,s=e&&t.shiftKey;switch(this.host.tagName){case"VEGA-TEXTAREA":case"VEGA-DATE-PICKER":case"VEGA-TIME-PICKER":return s&&t.preventDefault(),s;case"VEGA-RICH-TEXT-EDITOR":return!1;default:return e}}overrideDefaultRuleByAdditionalRule(t,e){if(t&&e){const s=e.findIndex((e=>e instanceof F&&e instanceof t.constructor&&e.overrideDefault));if(s>-1)return e.splice(s,1)[0]}return t}}x([e()],G.prototype,"formFieldMessageTranslatorSlimmer",void 0),x([e()],G.prototype,"fieldErrorUIController",void 0),x([e()],G.prototype,"resizeObserverSlimmer",void 0);var P=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class W extends t{constructor(){super(...arguments),this.fieldErrorUIController=new U,this.handleFieldErrorMessageUpdate=t=>{const{message:e,isValid:s}=t;s?this.fieldErrorUIController.resetInputInvalidUI():this.fieldErrorUIController.applyInputInvalidUI(e)}}handleComponentWillLoadByFieldErrorSlimmer(){this.fieldErrorMessageChangeObserver=new n(this.canAcceptFieldErrorMessageUpdate.bind(this),this.handleFieldErrorMessageUpdate),o.register(u,this.fieldErrorMessageChangeObserver)}handleUnregisterObserver(){o.unregister(u,this.fieldErrorMessageChangeObserver)}canAcceptFieldErrorMessageUpdate(t){const{host:e}=t,s=this.host.parentElement;return s&&s===e&&"VEGA-FIELD-ERROR"===s.tagName||this.host===e}}P([s()],W.prototype,"host",void 0),P([s()],W.prototype,"options",void 0),P([e()],W.prototype,"fieldErrorUIController",void 0),P([i("setInjectFormFieldHelper")],W.prototype,"handleComponentWillLoadByFieldErrorSlimmer",null),P([i("disconnectedCallback")],W.prototype,"handleUnregisterObserver",null);var z=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class K extends t{constructor(){super(...arguments),this.handleValidInvocation=async t=>{if(this.validator){void 0!==t.timerId&&clearTimeout(t.timerId);const e=await this.validator.validate(t.message);if(e){const{isValid:s,message:i}=e;"function"==typeof t.promiseResolve&&t.promiseResolve({isValid:s,message:i})}}}}registerValidInvocationObserver(){j.addUniqueObserverToNode(this.host,O,this.handleValidInvocation)}handleUnregisterObserver(){j.removeUniqueObserverFromNode(this.host,O)}}z([s()],K.prototype,"host",void 0),z([s()],K.prototype,"validator",void 0),z([i("setInjectFormFieldHelper")],K.prototype,"registerValidInvocationObserver",null),z([i("disconnectedCallback")],K.prototype,"handleUnregisterObserver",null);var N=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class X extends A{constructor(){super({parent:"vega-form",subStates:[{subStateName:"disableBlurValidation",parentStateName:"disableBlurValidation",callback:t=>{var e;null===(e=this.validator)||void 0===e||e.updateDisableBlurValidation(t)}}]})}componentWillLoad(){super.componentWillLoad()}}N([s()],X.prototype,"host",void 0),N([s()],X.prototype,"validator",void 0),N([i("setInjectFormFieldHelper")],X.prototype,"componentWillLoad",null);var q=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class J extends t{constructor(t){super(),this.fieldErrorSlimmer=new W,this.formFieldValidInvokeSlimmer=new K,this.formFormStateController=new X,this.mutationObserverCallBack=()=>{this.validator&&(this.setDefaultRules(),this.internalValidate())},this.options=t,this.setMutationObserverSlimmer()}connectedCallback(){null===this.validator&&this.setInjectFormFieldHelper()}disconnectedCallback(){this.validator&&(this.validator.destroy(),this.validator=null)}componentDidLoad(){}static isValidFormField(t){return t&&Boolean(t.getAttribute("data-vega-form"))}watchValidationRulesByFormControllerSlimmer(t,e){S(t,e,!1,((t,e)=>t===e?0:-1))||(this.setAdditionalRules(),this.internalValidate())}setInjectFormFieldHelper(){if(J.isValidFormField(this.host)){const{defaultValue:t}=this.options,e=new G(this.getPropertyRules(),this.host,t,this.options);e.addListener({callback:t=>{this.isValid!=t&&(this.isValid=t,o.notify(f,{host:this.host,detail:t}))}}),this.validator=e,this.setAdditionalRules()}}setAdditionalRules(){this.options.validationRulesName&&"validationRules"===this.options.validationRulesName&&this.validator&&this.validator.setAdditionalRules(this.validationRules||[])}setDefaultRules(){this.validator&&this.validator.setDefaultRules(this.getPropertyRules())}getPropertyRules(){const{propertyRules:t,attributeGetter:e}=this.options;return t.map((t=>{const s=t.dependence&&"string"==typeof t.dependence?[e(t.dependence)]:Array.isArray(t.dependence)?t.dependence.map((t=>e(t))):[null];return t.ruleFactory(e(t.propertyName),...s)})).filter(Boolean)}internalValidate(){!this.disabled&&this.validator&&this.validator.validate()}setMutationObserverSlimmer(){this.mutationObserverSlimmer=new I({options:{attributeFilter:this.options.propertyRules.map((t=>r(t.propertyName))),attributeOldValue:!0},mutationFilter:C(),callback:this.mutationObserverCallBack})}}q([s()],J.prototype,"host",void 0),q([s({writable:!0})],J.prototype,"validationRules",void 0),q([s()],J.prototype,"disabled",void 0),q([s()],J.prototype,"autoValidation",void 0),q([s({writable:!0})],J.prototype,"isValid",void 0),q([e()],J.prototype,"fieldErrorSlimmer",void 0),q([e()],J.prototype,"formFieldValidInvokeSlimmer",void 0),q([e()],J.prototype,"mutationObserverSlimmer",void 0),q([e()],J.prototype,"formFormStateController",void 0),q([i("connectedCallback")],J.prototype,"connectedCallback",null),q([i("disconnectedCallback")],J.prototype,"disconnectedCallback",null),q([i("componentDidLoad")],J.prototype,"componentDidLoad",null),q([i("watchValidationRules")],J.prototype,"watchValidationRulesByFormControllerSlimmer",null),q([i("componentWillLoad")],J.prototype,"setInjectFormFieldHelper",null);export{J as F}
@@ -1 +1 @@
1
- import{h as t}from"./p-48a58baf.js";import{a as e}from"./p-8c9ea6f4.js";import{c as o,V as s}from"./p-6e1ab235.js";import{W as r,X as i,r as n,a as c,Y as l,u as a,y as h}from"./p-258f9603.js";import{D as u,a as d,P as p,Q as f,f as v}from"./p-2ee4def0.js";import{a as m}from"./p-02a4732a.js";import{I as b}from"./p-e5cd6521.js";class w extends r{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new i(this.textColor)}}var C=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class x extends s{constructor({icon:e,tooltip:o,autoFocusOnClick:s=!0}){super(),this.renderBtn=({showArrowIcon:e,iconColor:o}={})=>{var s;return t("vega-tooltip",{text:this.translationSlimmer.t(this.tooltip.text),placement:["bottom","top"]},t("vega-rich-text-editor-toolbar-button",Object.assign({showArrowIcon:e,icon:this.icon,iconColor:o,ref:t=>{u.addUniqueObserverToNode(t,d,(()=>{this.handleClick()}))},selected:this.isSelected(),disabled:this.isDisabled(),hidden:this.isHidden()},this.preventLostFocus()),null===(s=this.renderSlotContent)||void 0===s?void 0:s.call(this)))},this.handleClick=()=>{"function"==typeof this.onClick&&(!this.selectionController.getSelectedNodes().length&&this.autoFocusOnClick?this.focusController.focusOnLastTextNode().then((()=>{this.onClick()})):this.onClick())},this.icon=e,this.tooltip=o,this.autoFocusOnClick=s}setIcon(t){this.icon=t}isHidden(){return!1}render(){return"function"==typeof this.renderBtnWrapper?this.renderBtnWrapper(this.renderBtn):this.renderBtn()}isDisabled(){return this.disabled}preventLostFocus(){return{onMouseDown:t=>t.preventDefault()}}}C([o()],x.prototype,"translationSlimmer",void 0),C([o()],x.prototype,"selectionController",void 0),C([o()],x.prototype,"focusController",void 0),C([o()],x.prototype,"disabled",void 0);class g extends x{constructor(t){super(t)}isHidden(){return this.sourceView}isDisabled(){return super.isDisabled()&&!this.sourceView}}!function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);i>3&&n&&Object.defineProperty(e,o,n)}([o()],g.prototype,"sourceView",void 0);var j=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class y extends g{constructor(){super({icon:"text",tooltip:{text:"Text Color"}}),this.popoverShow=!1,m.registerCustomDarkModeColor(y.formatDarkModeColor())}static formatDarkModeColor(){return n.reduce(((t,e)=>(e.dark&&(t[`rich-text-editor-${e.key}`]=e.dark),t)),{})}renderSlotContent(){return t("div",{class:{"toolbar-btn-color-preview-box":!0,disabled:this.isDisabled()},style:{backgroundColor:this.getCurrentColor()}})}handlePopoverShowChange(){this.popoverShow=!0}handlePopoverHideChange(){this.popoverShow=!1}renderBtnWrapper(e){return t("vega-popover",{placement:"bottom",alignment:"center",ref:t=>{this.popoverRef=t,u.addUniqueObserverToNode(t,p,this.handlePopoverShowChange.bind(this)),u.addUniqueObserverToNode(t,f,this.handlePopoverHideChange.bind(this))}},t("div",{slot:"popover-content"},e({showArrowIcon:!1})),t("div",Object.assign({slot:"popover",style:{userSelect:"none"}},super.preventLostFocus()),this.renderPopoverContent()))}renderPopoverContent(){return t("vega-color-picker",{isInline:!0,colors:n.map((t=>t[this.isInDarkMode?"dark":"light"])),ref:t=>{u.addUniqueObserverToNode(t,v,this.handleChange.bind(this))},value:this.getCurrentColor()})}async handleChange(t){this.popoverShow&&(this.selectionController.getSelectedNodes().length||await this.focusController.focusOnLastTextNode(),this.selectionController.getSelectedNodes().filter((t=>t instanceof c)).forEach((e=>e.apply(new w(this.matchColor(t.detail).key))))),this.popoverRef.hide()}matchColor(t){return n.find((e=>e[this.isInDarkMode?"dark":"light"]===t))}getCurrentColor(){let t=n[0];const e=this.selectionController.getSelectedNodes();return e.length>1&&(t=this.isSelectedSameColor(e)?this.getTextColor(e[0]):null),1===e.length&&(t=this.getTextColor(e[0])),t?t[this.isInDarkMode?"dark":"light"]:null}isSelected(){return!1}isSelectedSameColor(t){return t.every((e=>this.getTextColor(e).key===this.getTextColor(t[0]).key))}getTextColor(t){var e;return(null===(e=t.getAnnotationByType("TEXT_COLOR"))||void 0===e?void 0:e.textColor)||n[0]}isDisabled(){const t=this.selectionController.getSelectedNodes();return super.isDisabled()||t.some((t=>{var e;return t instanceof l||(null===(e=t.getAnnotationByType(a.CODE))||void 0===e?void 0:e.code)||t.getAnnotationByType(a.LINK)||t.getAnnotationByType(a.IMAGE)}))}}e.register({text:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>'}}),j([o()],y.prototype,"host",void 0),j([o()],y.prototype,"isInDarkMode",void 0),j([o()],y.prototype,"selectionController",void 0),j([o()],y.prototype,"focusController",void 0);const O=new class{constructor(){this.textNodeElements=new Map}register(t,e){this.textNodeElements.set(t,e)}getTextNodeElements(){return this.textNodeElements}};class R extends h{constructor(t,e){super(),this.isFlushable=!0,this.size=t,this.alt=e}toAnnotation(){return new b(this.size,this.alt)}}export{R as I,O as T,g as V,y as a,x as b}
1
+ import{h as t}from"./p-6b2342e0.js";import{a as e}from"./p-8c9ea6f4.js";import{c as o,V as s}from"./p-6e1ab235.js";import{W as r,X as i,r as n,a as c,Y as l,u as a,y as h}from"./p-39b4c838.js";import{D as u,a as d,P as p,Q as f,f as v}from"./p-3c21b875.js";import{a as m}from"./p-4c192985.js";import{I as b}from"./p-d5d6dae6.js";class w extends r{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new i(this.textColor)}}var C=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class x extends s{constructor({icon:e,tooltip:o,autoFocusOnClick:s=!0}){super(),this.renderBtn=({showArrowIcon:e,iconColor:o}={})=>{var s;return t("vega-tooltip",{text:this.translationSlimmer.t(this.tooltip.text),placement:["bottom","top"]},t("vega-rich-text-editor-toolbar-button",Object.assign({showArrowIcon:e,icon:this.icon,iconColor:o,ref:t=>{u.addUniqueObserverToNode(t,d,(()=>{this.handleClick()}))},selected:this.isSelected(),disabled:this.isDisabled(),hidden:this.isHidden()},this.preventLostFocus()),null===(s=this.renderSlotContent)||void 0===s?void 0:s.call(this)))},this.handleClick=()=>{"function"==typeof this.onClick&&(!this.selectionController.getSelectedNodes().length&&this.autoFocusOnClick?this.focusController.focusOnLastTextNode().then((()=>{this.onClick()})):this.onClick())},this.icon=e,this.tooltip=o,this.autoFocusOnClick=s}setIcon(t){this.icon=t}isHidden(){return!1}render(){return"function"==typeof this.renderBtnWrapper?this.renderBtnWrapper(this.renderBtn):this.renderBtn()}isDisabled(){return this.disabled}preventLostFocus(){return{onMouseDown:t=>t.preventDefault()}}}C([o()],x.prototype,"translationSlimmer",void 0),C([o()],x.prototype,"selectionController",void 0),C([o()],x.prototype,"focusController",void 0),C([o()],x.prototype,"disabled",void 0);class g extends x{constructor(t){super(t)}isHidden(){return this.sourceView}isDisabled(){return super.isDisabled()&&!this.sourceView}}!function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);i>3&&n&&Object.defineProperty(e,o,n)}([o()],g.prototype,"sourceView",void 0);var j=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class y extends g{constructor(){super({icon:"text",tooltip:{text:"Text Color"}}),this.popoverShow=!1,m.registerCustomDarkModeColor(y.formatDarkModeColor())}static formatDarkModeColor(){return n.reduce(((t,e)=>(e.dark&&(t[`rich-text-editor-${e.key}`]=e.dark),t)),{})}renderSlotContent(){return t("div",{class:{"toolbar-btn-color-preview-box":!0,disabled:this.isDisabled()},style:{backgroundColor:this.getCurrentColor()}})}handlePopoverShowChange(){this.popoverShow=!0}handlePopoverHideChange(){this.popoverShow=!1}renderBtnWrapper(e){return t("vega-popover",{placement:"bottom",alignment:"center",ref:t=>{this.popoverRef=t,u.addUniqueObserverToNode(t,p,this.handlePopoverShowChange.bind(this)),u.addUniqueObserverToNode(t,f,this.handlePopoverHideChange.bind(this))}},t("div",{slot:"popover-content"},e({showArrowIcon:!1})),t("div",Object.assign({slot:"popover",style:{userSelect:"none"}},super.preventLostFocus()),this.renderPopoverContent()))}renderPopoverContent(){return t("vega-color-picker",{isInline:!0,colors:n.map((t=>t[this.isInDarkMode?"dark":"light"])),ref:t=>{u.addUniqueObserverToNode(t,v,this.handleChange.bind(this))},value:this.getCurrentColor()})}async handleChange(t){this.popoverShow&&(this.selectionController.getSelectedNodes().length||await this.focusController.focusOnLastTextNode(),this.selectionController.getSelectedNodes().filter((t=>t instanceof c)).forEach((e=>e.apply(new w(this.matchColor(t.detail).key))))),this.popoverRef.hide()}matchColor(t){return n.find((e=>e[this.isInDarkMode?"dark":"light"]===t))}getCurrentColor(){let t=n[0];const e=this.selectionController.getSelectedNodes();return e.length>1&&(t=this.isSelectedSameColor(e)?this.getTextColor(e[0]):null),1===e.length&&(t=this.getTextColor(e[0])),t?t[this.isInDarkMode?"dark":"light"]:null}isSelected(){return!1}isSelectedSameColor(t){return t.every((e=>this.getTextColor(e).key===this.getTextColor(t[0]).key))}getTextColor(t){var e;return(null===(e=t.getAnnotationByType("TEXT_COLOR"))||void 0===e?void 0:e.textColor)||n[0]}isDisabled(){const t=this.selectionController.getSelectedNodes();return super.isDisabled()||t.some((t=>{var e;return t instanceof l||(null===(e=t.getAnnotationByType(a.CODE))||void 0===e?void 0:e.code)||t.getAnnotationByType(a.LINK)||t.getAnnotationByType(a.IMAGE)}))}}e.register({text:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>'}}),j([o()],y.prototype,"host",void 0),j([o()],y.prototype,"isInDarkMode",void 0),j([o()],y.prototype,"selectionController",void 0),j([o()],y.prototype,"focusController",void 0);const O=new class{constructor(){this.textNodeElements=new Map}register(t,e){this.textNodeElements.set(t,e)}getTextNodeElements(){return this.textNodeElements}};class R extends h{constructor(t,e){super(),this.isFlushable=!0,this.size=t,this.alt=e}toAnnotation(){return new b(this.size,this.alt)}}export{R as I,O as T,g as V,y as a,x as b}
@@ -1 +1 @@
1
- import{r as e,h as s,H as t,g as a}from"./p-48a58baf.js";import{s as o}from"./p-519a7d55.js";import{c as r,M as i,V as n,I as l}from"./p-6e1ab235.js";import{V as c,I as f}from"./p-d849e0f5.js";import{C as h}from"./p-2d0d575f.js";import{f as d}from"./p-8a877e12.js";var m=function(e,s,t,a){var o,r=arguments.length,i=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,s,t,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(i=(r<3?o(i):r>3?o(s,t,i):o(s,t))||i);return r>3&&i&&Object.defineProperty(s,t,i),i};class p extends n{handleMessageChange(){this.notifyMessageUpdate()}handleComponentDidLoad(){this.notifyMessageUpdate()}notifyMessageUpdate(){h.notify(d,{host:this.host,message:this.message,isValid:!this.message})}}m([r()],p.prototype,"host",void 0),m([r()],p.prototype,"message",void 0),m([i("watchMessage")],p.prototype,"handleMessageChange",null),m([i("componentDidLoad")],p.prototype,"handleComponentDidLoad",null);var g=function(e,s,t,a){var o,r=arguments.length,i=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,s,t,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(i=(r<3?o(i):r>3?o(s,t,i):o(s,t))||i);return r>3&&i&&Object.defineProperty(s,t,i),i};const u=class{constructor(s){e(this,s),this.globalSlimmers={},this.messageController=new p,this.vegaComponentUsageRuntimeMetricsSlimmer=new c,this.message=""}watchMessage(){}render(){return o(s(t,null,s("slot",null)),this.host)}get host(){return a(this)}static get watchers(){return{message:["watchMessage"]}}};g([f()],u.prototype,"globalSlimmers",void 0),g([l()],u.prototype,"messageController",void 0),g([l()],u.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),u.style=":host{display:block}";export{u as vega_field_error}
1
+ import{r as e,h as s,H as t,g as a}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{c as r,M as i,V as n,I as l}from"./p-6e1ab235.js";import{V as c,I as f}from"./p-d849e0f5.js";import{C as d}from"./p-2d0d575f.js";import{d as h}from"./p-a528714c.js";var m=function(e,s,t,a){var o,r=arguments.length,i=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,s,t,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(i=(r<3?o(i):r>3?o(s,t,i):o(s,t))||i);return r>3&&i&&Object.defineProperty(s,t,i),i};class p extends n{handleMessageChange(){this.notifyMessageUpdate()}handleComponentDidLoad(){this.notifyMessageUpdate()}notifyMessageUpdate(){d.notify(h,{host:this.host,message:this.message,isValid:!this.message})}}m([r()],p.prototype,"host",void 0),m([r()],p.prototype,"message",void 0),m([i("watchMessage")],p.prototype,"handleMessageChange",null),m([i("componentDidLoad")],p.prototype,"handleComponentDidLoad",null);var g=function(e,s,t,a){var o,r=arguments.length,i=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,s,t,a);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(i=(r<3?o(i):r>3?o(s,t,i):o(s,t))||i);return r>3&&i&&Object.defineProperty(s,t,i),i};const u=class{constructor(s){e(this,s),this.globalSlimmers={},this.messageController=new p,this.vegaComponentUsageRuntimeMetricsSlimmer=new c,this.message=""}watchMessage(){}render(){return o(s(t,null,s("slot",null)),this.host)}get host(){return a(this)}static get watchers(){return{message:["watchMessage"]}}};g([f()],u.prototype,"globalSlimmers",void 0),g([l()],u.prototype,"messageController",void 0),g([l()],u.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),u.style=":host{display:block}";export{u as vega_field_error}