@globalpayments/vega 2.96.0 → 2.97.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 (426) hide show
  1. package/dist/cjs/{app-globals-38afea36.js → app-globals-3f57f7b9.js} +10 -10
  2. package/dist/cjs/{code-block-4126dc3b.js → code-block-28a7732e.js} +7 -1
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-38ba956e.js → component-value-history-controller-slimmer.abstract-50cdba6e.js} +3 -3
  4. package/dist/cjs/{content-state-50e8a03c.js → content-state-e2ab0f06.js} +2 -2
  5. package/dist/cjs/{date-required-rule-4ab06a82.js → date-required-rule-5250f26d.js} +1 -1
  6. package/dist/cjs/{design-token-d3d12fa0.js → design-token-74674ee7.js} +3 -3
  7. package/dist/cjs/{element-appender-slimmer-7773fdab.js → element-appender-slimmer-ccb2e3c2.js} +2 -2
  8. package/dist/cjs/{form-field-controller-slimmer-d638ba12.js → form-field-controller-slimmer-58621b5e.js} +5 -14
  9. package/dist/cjs/form-field-key-8d5edf75.js +25 -0
  10. package/dist/cjs/{image-annotation-action-89363de8.js → image-annotation-action-b54dc669.js} +2 -2
  11. package/dist/cjs/{image-extension-c881c454.js → image-extension-1e3eeaa3.js} +2 -2
  12. package/dist/cjs/index.cjs.js +17 -17
  13. package/dist/cjs/{inject-keyboard-manager-5a105612.js → inject-keyboard-manager-6a6f5c9f.js} +1 -1
  14. package/dist/cjs/{internal-calendar-period-factory-b76006f7.js → internal-calendar-period-factory-dfcdd3f6.js} +1 -1
  15. package/dist/cjs/{internal-translation-controller-eb02c3b1.js → internal-translation-controller-1dac2df8.js} +7 -0
  16. package/dist/cjs/{keyboard-manager-ca76d4dc.js → keyboard-manager-c56033b1.js} +1 -1
  17. package/dist/cjs/{keyboard-manager-slimmer-a1223714.js → keyboard-manager-slimmer-7043a106.js} +1 -1
  18. package/dist/cjs/{link-extension-b7f99a52.js → link-extension-71c27ff3.js} +3 -3
  19. package/dist/cjs/loader.cjs.js +12 -12
  20. package/dist/cjs/{month-view-generator-876c50d4.js → month-view-generator-7b704a80.js} +1 -1
  21. package/dist/cjs/{public-rules-72894208.js → public-rules-55e34d2e.js} +7 -7
  22. package/dist/cjs/{range-95d41dea.js → range-eebe0e3c.js} +1 -1
  23. package/dist/cjs/{responsive-format-facade-25e9f30d.js → responsive-format-facade-493d1763.js} +1 -1
  24. package/dist/cjs/{rich-text-editor-required-rule-4d6d2493.js → rich-text-editor-required-rule-4fdee376.js} +1 -1
  25. package/dist/cjs/{split-cell-operation-70be116d.js → split-cell-operation-51097409.js} +3 -3
  26. package/dist/cjs/{state-border-formatter-f1ce0f3b.js → state-border-formatter-711c7aaa.js} +1 -1
  27. package/dist/cjs/{string-format-strategy.abstract-b22f7754.js → string-format-strategy.abstract-b61bdcbd.js} +1 -1
  28. package/dist/cjs/{string-input-formatter-slimmer-d2c248f7.js → string-input-formatter-slimmer-18d45942.js} +1 -1
  29. package/dist/cjs/{string-mask-strategy-fc01a500.js → string-mask-strategy-ad3fa0ac.js} +2 -2
  30. package/dist/cjs/{style-formatter-73205450.js → style-formatter-8f711cb0.js} +2 -2
  31. package/dist/cjs/{time-required-rule-12d2f394.js → time-required-rule-87417359.js} +1 -1
  32. package/dist/cjs/{token-extension-eb828948.js → token-extension-608bbf7b.js} +8 -8
  33. package/dist/cjs/{translation-slimmer-9099f56c.js → translation-slimmer-77c7f37d.js} +1 -1
  34. package/dist/cjs/{type-guard-f354af8b.js → type-guard-a57ef3ac.js} +1 -1
  35. package/dist/cjs/{valid-credit-card-number-rule-8d370163.js → valid-credit-card-number-rule-4c0a3040.js} +1 -1
  36. package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
  37. package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
  38. package/dist/cjs/vega-backdrop.cjs.entry.js +63 -8
  39. package/dist/cjs/vega-box.cjs.entry.js +6 -6
  40. package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
  41. package/dist/cjs/vega-button.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-calendar_5.cjs.entry.js +7 -7
  43. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  44. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  45. package/dist/cjs/vega-checkbox_2.cjs.entry.js +20 -3
  46. package/dist/cjs/vega-chip.cjs.entry.js +5 -5
  47. package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
  48. package/dist/cjs/vega-color-picker.cjs.entry.js +11 -2
  49. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +12 -3
  50. package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
  51. package/dist/cjs/vega-combo-box.cjs.entry.js +17 -8
  52. package/dist/cjs/vega-date-picker_2.cjs.entry.js +22 -13
  53. package/dist/cjs/vega-dialog_2.cjs.entry.js +3 -3
  54. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  55. package/dist/cjs/vega-dropdown_5.cjs.entry.js +7 -7
  56. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  57. package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
  58. package/dist/cjs/vega-file-uploader.cjs.entry.js +12 -3
  59. package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
  60. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  61. package/dist/cjs/vega-font.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-form.cjs.entry.js +28 -25
  63. package/dist/cjs/vega-grid.cjs.entry.js +5 -5
  64. package/dist/cjs/vega-icon.cjs.entry.js +5 -5
  65. package/dist/cjs/vega-image-uploader.cjs.entry.js +14 -5
  66. package/dist/cjs/vega-input-credit-card.cjs.entry.js +16 -7
  67. package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -5
  68. package/dist/cjs/vega-input-passcode.cjs.entry.js +14 -5
  69. package/dist/cjs/vega-input-phone-number.cjs.entry.js +13 -4
  70. package/dist/cjs/vega-input-range.cjs.entry.js +12 -3
  71. package/dist/cjs/vega-input-select.cjs.entry.js +14 -5
  72. package/dist/cjs/vega-input.cjs.entry.js +9 -7
  73. package/dist/cjs/vega-left-nav_5.cjs.entry.js +71 -11
  74. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
  76. package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
  77. package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
  79. package/dist/cjs/vega-radio_2.cjs.entry.js +17 -5
  80. package/dist/cjs/vega-rich-text-content.cjs.entry.js +32 -9
  81. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +1581 -428
  82. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
  83. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
  84. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +8 -8
  85. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +13 -4
  86. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +11 -2
  87. package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
  88. package/dist/cjs/vega-signature-capture.cjs.entry.js +16 -7
  89. package/dist/cjs/vega-stepper.cjs.entry.js +12 -3
  90. package/dist/cjs/vega-table_11.cjs.entry.js +4 -4
  91. package/dist/cjs/vega-textarea.cjs.entry.js +12 -3
  92. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -9
  93. package/dist/cjs/vega-toggle-switch.cjs.entry.js +12 -3
  94. package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
  95. package/dist/cjs/vega.cjs.js +12 -12
  96. package/dist/collection/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.js +63 -8
  97. package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +33 -1
  98. package/dist/collection/components/vega-checkbox/vega-checkbox.js +34 -2
  99. package/dist/collection/components/vega-color-picker/vega-color-picker.js +33 -1
  100. package/dist/collection/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.js +33 -1
  101. package/dist/collection/components/vega-combo-box/vega-combo-box.js +33 -1
  102. package/dist/collection/components/vega-date-picker/vega-date-picker.js +33 -1
  103. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +33 -1
  104. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-controller.js +9 -9
  105. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-validation-state-controller.js +5 -5
  106. package/dist/collection/components/vega-form/slimmers/renderers/native-form-renderer.js +4 -1
  107. package/dist/collection/components/vega-form/vega-form.js +32 -0
  108. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +33 -1
  109. package/dist/collection/components/vega-input/vega-input.js +5 -4
  110. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +34 -2
  111. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +33 -1
  112. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +33 -1
  113. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +33 -1
  114. package/dist/collection/components/vega-input-range/vega-input-range.js +33 -1
  115. package/dist/collection/components/vega-input-select/vega-input-select.js +33 -1
  116. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.js +17 -1
  117. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +48 -5
  118. package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +18 -3
  119. package/dist/collection/components/vega-rich-text-editor/constants/constant.js +3 -0
  120. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +26 -3
  121. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +1 -1
  122. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/keyboard-link-handler.js +297 -0
  123. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +13 -0
  124. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +8 -2
  125. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +33 -1
  126. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.js +398 -0
  127. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-state-manager.js +111 -0
  128. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.js +173 -0
  129. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/link-type-handler.js +49 -0
  130. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +114 -106
  131. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/utils/link-url-normalizer.js +80 -0
  132. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +44 -1
  133. package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.js +33 -1
  134. package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +33 -1
  135. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +33 -1
  136. package/dist/collection/components/vega-stepper/vega-stepper.js +34 -2
  137. package/dist/collection/components/vega-textarea/vega-textarea.js +34 -2
  138. package/dist/collection/components/vega-time-picker/vega-time-picker.js +33 -1
  139. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +34 -2
  140. package/dist/collection/helpers/slimmers/{field-error-controller-silmmer.js → form/field-error-controller-silmmer.js} +3 -3
  141. package/dist/collection/helpers/slimmers/{field-error-ui-controller-slimmer.js → form/field-error-ui-controller-slimmer.js} +9 -9
  142. package/dist/collection/helpers/slimmers/{form-field-controller-slimmer.js → form/form-field-controller-slimmer.js} +9 -18
  143. package/dist/collection/helpers/slimmers/{form-field-message-translator.js → form/form-field-message-translator.js} +1 -1
  144. package/dist/collection/helpers/slimmers/{form-field-state-controller-slimmer.js → form/form-field-state-controller-slimmer.js} +1 -1
  145. package/dist/collection/helpers/slimmers/{form-field-valid-invoke-slimmer.js → form/form-field-valid-invoke-slimmer.js} +2 -2
  146. package/dist/collection/helpers/slimmers/form/utils/form-field-key.js +20 -0
  147. package/dist/collection/helpers/translation/locales/en.js +7 -0
  148. package/dist/collection/helpers/validator/form-field-controller.js +5 -4
  149. package/dist/esm/{app-globals-d7b651c1.js → app-globals-d3991e53.js} +10 -10
  150. package/dist/esm/{code-block-0a88b481.js → code-block-8df86434.js} +5 -2
  151. package/dist/esm/{component-value-history-controller-slimmer.abstract-6846edfa.js → component-value-history-controller-slimmer.abstract-e4b95997.js} +3 -3
  152. package/dist/esm/{content-state-79ca99e5.js → content-state-c63fbeda.js} +2 -2
  153. package/dist/esm/{date-required-rule-b88e1650.js → date-required-rule-85334d0c.js} +1 -1
  154. package/dist/esm/{design-token-76bd217c.js → design-token-10ff79b5.js} +3 -3
  155. package/dist/esm/{element-appender-slimmer-73ad10ae.js → element-appender-slimmer-24be8e94.js} +2 -2
  156. package/dist/esm/{form-field-controller-slimmer-395c23e3.js → form-field-controller-slimmer-d8628837.js} +5 -14
  157. package/dist/esm/form-field-key-44ab39d0.js +22 -0
  158. package/dist/esm/{image-annotation-action-bb299ef1.js → image-annotation-action-fcceff95.js} +2 -2
  159. package/dist/esm/{image-extension-48a96f98.js → image-extension-3280bdb0.js} +2 -2
  160. package/dist/esm/index.js +17 -17
  161. package/dist/esm/{inject-keyboard-manager-86126b5b.js → inject-keyboard-manager-ea1aad5b.js} +1 -1
  162. package/dist/esm/{internal-calendar-period-factory-3a07dba0.js → internal-calendar-period-factory-7b294fb6.js} +1 -1
  163. package/dist/esm/{internal-translation-controller-16709132.js → internal-translation-controller-fac22598.js} +7 -0
  164. package/dist/esm/{keyboard-manager-a0c3e1cf.js → keyboard-manager-50da85d7.js} +1 -1
  165. package/dist/esm/{keyboard-manager-slimmer-f3f66c15.js → keyboard-manager-slimmer-1f7c8bfb.js} +1 -1
  166. package/dist/esm/{link-extension-09534514.js → link-extension-f92c06ef.js} +3 -3
  167. package/dist/esm/loader.js +12 -12
  168. package/dist/esm/{month-view-generator-fd0e1856.js → month-view-generator-a1a9a4ec.js} +1 -1
  169. package/dist/esm/{public-rules-5eb03ef0.js → public-rules-3695aaf7.js} +7 -7
  170. package/dist/esm/{range-d4deb7df.js → range-717d552d.js} +1 -1
  171. package/dist/esm/{responsive-format-facade-ced96b0b.js → responsive-format-facade-f19b601c.js} +1 -1
  172. package/dist/esm/{rich-text-editor-required-rule-5bbbce23.js → rich-text-editor-required-rule-2e39264a.js} +1 -1
  173. package/dist/esm/{split-cell-operation-7f3058ad.js → split-cell-operation-6c26af91.js} +3 -3
  174. package/dist/esm/{state-border-formatter-b680e922.js → state-border-formatter-bfda33aa.js} +1 -1
  175. package/dist/esm/{string-format-strategy.abstract-23faab71.js → string-format-strategy.abstract-1f4ff1b3.js} +1 -1
  176. package/dist/esm/{string-input-formatter-slimmer-4b4866a6.js → string-input-formatter-slimmer-68b2af39.js} +1 -1
  177. package/dist/esm/{string-mask-strategy-66586cd8.js → string-mask-strategy-bbbcdbef.js} +2 -2
  178. package/dist/esm/{style-formatter-f4e16af5.js → style-formatter-e9adc8f4.js} +2 -2
  179. package/dist/esm/{time-required-rule-6e80a9ab.js → time-required-rule-1ce2d0a0.js} +1 -1
  180. package/dist/esm/{token-extension-40c32bcc.js → token-extension-5082a4d2.js} +8 -8
  181. package/dist/esm/{translation-slimmer-21748a0e.js → translation-slimmer-ee0f0e76.js} +1 -1
  182. package/dist/esm/{type-guard-ec5e8628.js → type-guard-f2624334.js} +1 -1
  183. package/dist/esm/{valid-credit-card-number-rule-ca5a47d6.js → valid-credit-card-number-rule-60212b1d.js} +1 -1
  184. package/dist/esm/vega-accordion.entry.js +6 -6
  185. package/dist/esm/vega-app-header-button.entry.js +5 -5
  186. package/dist/esm/vega-backdrop.entry.js +63 -8
  187. package/dist/esm/vega-box.entry.js +6 -6
  188. package/dist/esm/vega-button-circle.entry.js +5 -5
  189. package/dist/esm/vega-button.entry.js +3 -3
  190. package/dist/esm/vega-calendar_5.entry.js +7 -7
  191. package/dist/esm/vega-card.entry.js +5 -5
  192. package/dist/esm/vega-carousel.entry.js +3 -3
  193. package/dist/esm/vega-checkbox_2.entry.js +20 -3
  194. package/dist/esm/vega-chip.entry.js +5 -5
  195. package/dist/esm/vega-code-block.entry.js +8 -8
  196. package/dist/esm/vega-color-picker.entry.js +11 -2
  197. package/dist/esm/vega-color-swatch-picker.entry.js +12 -3
  198. package/dist/esm/vega-color-swatch.entry.js +2 -2
  199. package/dist/esm/vega-combo-box.entry.js +17 -8
  200. package/dist/esm/vega-date-picker_2.entry.js +22 -13
  201. package/dist/esm/vega-dialog_2.entry.js +3 -3
  202. package/dist/esm/vega-divider.entry.js +5 -5
  203. package/dist/esm/vega-dropdown_5.entry.js +7 -7
  204. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  205. package/dist/esm/vega-field-label.entry.js +2 -2
  206. package/dist/esm/vega-file-uploader.entry.js +12 -3
  207. package/dist/esm/vega-flag-icon.entry.js +5 -5
  208. package/dist/esm/vega-flex.entry.js +6 -6
  209. package/dist/esm/vega-font.entry.js +5 -5
  210. package/dist/esm/vega-form.entry.js +28 -25
  211. package/dist/esm/vega-grid.entry.js +5 -5
  212. package/dist/esm/vega-icon.entry.js +5 -5
  213. package/dist/esm/vega-image-uploader.entry.js +14 -5
  214. package/dist/esm/vega-input-credit-card.entry.js +16 -7
  215. package/dist/esm/vega-input-numeric.entry.js +14 -5
  216. package/dist/esm/vega-input-passcode.entry.js +14 -5
  217. package/dist/esm/vega-input-phone-number.entry.js +13 -4
  218. package/dist/esm/vega-input-range.entry.js +12 -3
  219. package/dist/esm/vega-input-select.entry.js +14 -5
  220. package/dist/esm/vega-input.entry.js +9 -7
  221. package/dist/esm/vega-left-nav_5.entry.js +71 -11
  222. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  223. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  224. package/dist/esm/vega-pagination.entry.js +4 -4
  225. package/dist/esm/vega-popover_2.entry.js +8 -8
  226. package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
  227. package/dist/esm/vega-radio_2.entry.js +17 -5
  228. package/dist/esm/vega-rich-text-content.entry.js +32 -9
  229. package/dist/esm/vega-rich-text-editor_4.entry.js +1581 -428
  230. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
  231. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
  232. package/dist/esm/vega-rich-text-table-properties_3.entry.js +8 -8
  233. package/dist/esm/vega-selection-chip_2.entry.js +13 -4
  234. package/dist/esm/vega-selection-tile_2.entry.js +11 -2
  235. package/dist/esm/vega-sidenav_3.entry.js +3 -3
  236. package/dist/esm/vega-signature-capture.entry.js +16 -7
  237. package/dist/esm/vega-stepper.entry.js +12 -3
  238. package/dist/esm/vega-table_11.entry.js +4 -4
  239. package/dist/esm/vega-textarea.entry.js +12 -3
  240. package/dist/esm/vega-time-picker_2.entry.js +18 -9
  241. package/dist/esm/vega-toggle-switch.entry.js +12 -3
  242. package/dist/esm/vega-tooltip_2.entry.js +6 -6
  243. package/dist/esm/vega.js +12 -12
  244. package/dist/sri/vega-sri-manifest.json +314 -310
  245. package/dist/types/components/vega-backdrop/slimmers/controller/vega-backdrop-visible-controller.d.ts +21 -0
  246. package/dist/types/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.d.ts +9 -1
  247. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +9 -1
  248. package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +9 -1
  249. package/dist/types/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.d.ts +9 -1
  250. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +9 -1
  251. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +9 -1
  252. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +9 -1
  253. package/dist/types/components/vega-form/slimmers/controllers/vega-form-field-controller.d.ts +3 -2
  254. package/dist/types/components/vega-form/slimmers/renderers/native-form-renderer.d.ts +1 -0
  255. package/dist/types/components/vega-form/vega-form.d.ts +8 -0
  256. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +9 -1
  257. package/dist/types/components/vega-input/vega-input.d.ts +3 -2
  258. package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +9 -1
  259. package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +9 -1
  260. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +9 -1
  261. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +9 -1
  262. package/dist/types/components/vega-input-range/vega-input-range.d.ts +9 -1
  263. package/dist/types/components/vega-input-select/vega-input-select.d.ts +9 -1
  264. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.d.ts +7 -0
  265. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +17 -0
  266. package/dist/types/components/vega-radio/vega-radio-group/vega-radio-group.d.ts +5 -1
  267. package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +3 -0
  268. package/dist/types/components/vega-rich-text-editor/extensions/link/type.d.ts +34 -0
  269. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.d.ts +4 -4
  270. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/keyboard-link-handler.d.ts +111 -0
  271. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +7 -0
  272. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +9 -1
  273. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.d.ts +149 -0
  274. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-state-manager.d.ts +84 -0
  275. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.d.ts +82 -0
  276. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/link-type-handler.d.ts +33 -0
  277. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +24 -17
  278. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/utils/link-url-normalizer.d.ts +37 -0
  279. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +4 -0
  280. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +12 -0
  281. package/dist/types/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.d.ts +9 -1
  282. package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +9 -1
  283. package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +9 -1
  284. package/dist/types/components/vega-stepper/vega-stepper.d.ts +9 -1
  285. package/dist/types/components/vega-textarea/vega-textarea.d.ts +9 -1
  286. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +9 -1
  287. package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +9 -1
  288. package/dist/types/components.d.ts +287 -4
  289. package/dist/types/helpers/slimmers/{field-error-controller-silmmer.d.ts → form/field-error-controller-silmmer.d.ts} +1 -1
  290. package/dist/types/helpers/slimmers/{field-error-ui-controller-slimmer.d.ts → form/field-error-ui-controller-slimmer.d.ts} +2 -2
  291. package/dist/types/helpers/slimmers/{form-field-controller-slimmer.d.ts → form/form-field-controller-slimmer.d.ts} +6 -14
  292. package/dist/types/helpers/slimmers/{form-field-message-translator.d.ts → form/form-field-message-translator.d.ts} +2 -2
  293. package/dist/types/helpers/slimmers/{form-field-state-controller-slimmer.d.ts → form/form-field-state-controller-slimmer.d.ts} +2 -2
  294. package/dist/types/helpers/slimmers/{form-field-valid-invoke-slimmer.d.ts → form/form-field-valid-invoke-slimmer.d.ts} +3 -3
  295. package/dist/types/helpers/slimmers/form/utils/form-field-key.d.ts +17 -0
  296. package/dist/types/helpers/translation/interface.d.ts +7 -0
  297. package/dist/types/helpers/validator/form-field-controller.d.ts +3 -3
  298. package/dist/vega/index.esm.js +1 -1
  299. package/dist/vega/p-040ea356.entry.js +1 -0
  300. package/dist/vega/p-046203cb.entry.js +1 -0
  301. package/dist/vega/p-0499e65a.entry.js +1 -0
  302. package/dist/vega/p-0809c651.js +1 -0
  303. package/dist/vega/{p-3c23ec90.js → p-09524fec.js} +1 -1
  304. package/dist/vega/{p-74f86ff9.entry.js → p-0cf3b5c1.entry.js} +1 -1
  305. package/dist/vega/p-10d43a80.entry.js +1 -0
  306. package/dist/vega/{p-3d6f761a.entry.js → p-1132a74e.entry.js} +1 -1
  307. package/dist/vega/{p-ba662fe5.js → p-12e8a1b2.js} +1 -1
  308. package/dist/vega/{p-55e0014a.js → p-1d5e05d9.js} +1 -1
  309. package/dist/vega/{p-3dee1e55.js → p-1e0a8fd3.js} +1 -1
  310. package/dist/vega/{p-919cddc3.js → p-1ea9ad9a.js} +1 -1
  311. package/dist/vega/p-21626b93.entry.js +1 -0
  312. package/dist/vega/p-21f608e8.entry.js +1 -0
  313. package/dist/vega/p-2540fd1c.entry.js +1 -0
  314. package/dist/vega/{p-9f201152.entry.js → p-26760c66.entry.js} +1 -1
  315. package/dist/vega/{p-892edf88.entry.js → p-2acf9b42.entry.js} +1 -1
  316. package/dist/vega/p-2bb60f89.js +1 -0
  317. package/dist/vega/{p-b1eb9ff0.js → p-2c2e8615.js} +1 -1
  318. package/dist/vega/p-2d158cbd.js +1 -0
  319. package/dist/vega/p-2d7388c9.entry.js +1 -0
  320. package/dist/vega/{p-b3a2ce06.entry.js → p-2eb8e167.entry.js} +1 -1
  321. package/dist/vega/{p-6a51d720.js → p-2ff4ae1c.js} +1 -1
  322. package/dist/vega/p-3488a3f1.entry.js +1 -0
  323. package/dist/vega/p-363ee8a5.entry.js +1 -0
  324. package/dist/vega/p-36c89520.entry.js +1 -0
  325. package/dist/vega/{p-e1737c8e.entry.js → p-3980dfa8.entry.js} +1 -1
  326. package/dist/vega/{p-14baa886.js → p-39c5054b.js} +1 -1
  327. package/dist/vega/p-3af5e87b.entry.js +1 -0
  328. package/dist/vega/{p-8db904dc.js → p-456f678b.js} +1 -1
  329. package/dist/vega/{p-6c9c2f8c.entry.js → p-461100b8.entry.js} +1 -1
  330. package/dist/vega/p-4c3a08be.entry.js +1 -0
  331. package/dist/vega/p-53fd3c41.entry.js +1 -0
  332. package/dist/vega/{p-6fcec7c7.entry.js → p-56417ec5.entry.js} +1 -1
  333. package/dist/vega/{p-9f11b579.js → p-5e37b041.js} +1 -1
  334. package/dist/vega/p-5f377954.js +1 -1
  335. package/dist/vega/{p-a0a58295.entry.js → p-5f96e741.entry.js} +1 -1
  336. package/dist/vega/p-6b76b572.entry.js +1 -0
  337. package/dist/vega/{p-75e33859.js → p-6c95a6a3.js} +1 -1
  338. package/dist/vega/p-703ac992.entry.js +1 -0
  339. package/dist/vega/p-71909102.js +1 -0
  340. package/dist/vega/{p-e1b57e8f.entry.js → p-72ab5cd5.entry.js} +1 -1
  341. package/dist/vega/{p-8720816e.js → p-781b7a54.js} +1 -1
  342. package/dist/vega/{p-7950f3e2.entry.js → p-81d4dfcb.entry.js} +1 -1
  343. package/dist/vega/p-8611465f.entry.js +1 -0
  344. package/dist/vega/{p-0d18368b.js → p-874e5624.js} +1 -1
  345. package/dist/vega/{p-c4564904.js → p-8e7932bc.js} +1 -1
  346. package/dist/vega/p-8ed3b2b6.entry.js +1 -0
  347. package/dist/vega/{p-1dfbc542.entry.js → p-8ff92914.entry.js} +1 -1
  348. package/dist/vega/{p-9bdc6e11.entry.js → p-92528dc9.entry.js} +1 -1
  349. package/dist/vega/p-9664e914.entry.js +1 -0
  350. package/dist/vega/p-98fc5821.entry.js +1 -0
  351. package/dist/vega/{p-6c7b6d45.js → p-9be02fa5.js} +1 -1
  352. package/dist/vega/p-9c4c474e.entry.js +1 -0
  353. package/dist/vega/{p-8354cff0.entry.js → p-a034dfc0.entry.js} +1 -1
  354. package/dist/vega/{p-e48a870f.entry.js → p-a484e32d.entry.js} +1 -1
  355. package/dist/vega/{p-b9e72de2.entry.js → p-a8174ad8.entry.js} +1 -1
  356. package/dist/vega/{p-49e1cf4d.entry.js → p-a91927eb.entry.js} +1 -1
  357. package/dist/vega/{p-2df5d59b.entry.js → p-abbceebf.entry.js} +1 -1
  358. package/dist/vega/{p-e4266b45.entry.js → p-ac94ba1b.entry.js} +1 -1
  359. package/dist/vega/{p-b775e51f.js → p-ae2abdfa.js} +1 -1
  360. package/dist/vega/{p-bb60e381.entry.js → p-aeb50cad.entry.js} +1 -1
  361. package/dist/vega/{p-a890d60b.entry.js → p-b00ec194.entry.js} +1 -1
  362. package/dist/vega/{p-f78944d7.entry.js → p-b3733762.entry.js} +1 -1
  363. package/dist/vega/p-b594a11c.entry.js +1 -0
  364. package/dist/vega/{p-b4e7c967.js → p-b622c455.js} +1 -1
  365. package/dist/vega/{p-1232b553.entry.js → p-b98ead05.entry.js} +1 -1
  366. package/dist/vega/{p-e5ff77f7.entry.js → p-c2277448.entry.js} +1 -1
  367. package/dist/vega/{p-ec5dee32.js → p-c29934ef.js} +1 -1
  368. package/dist/vega/p-c3646101.entry.js +1 -0
  369. package/dist/vega/p-ca270da3.entry.js +1 -0
  370. package/dist/vega/{p-b4c26035.entry.js → p-ccbe3f1b.entry.js} +1 -1
  371. package/dist/vega/{p-6cde45fc.js → p-cd69aeae.js} +1 -1
  372. package/dist/vega/{p-84b7a775.js → p-d25c1a48.js} +1 -1
  373. package/dist/vega/{p-5924adae.entry.js → p-d2cbcf5e.entry.js} +1 -1
  374. package/dist/vega/{p-96da7d30.entry.js → p-d3413a78.entry.js} +1 -1
  375. package/dist/vega/{p-f1974321.js → p-d609c3fd.js} +1 -1
  376. package/dist/vega/{p-3345d903.js → p-dad7d2ac.js} +1 -1
  377. package/dist/vega/{p-61ce8029.js → p-dbb4b1d1.js} +1 -1
  378. package/dist/vega/p-dcd3e3a7.js +1 -0
  379. package/dist/vega/p-de8f0d98.js +1 -0
  380. package/dist/vega/{p-22cc174e.entry.js → p-deaf037a.entry.js} +1 -1
  381. package/dist/vega/p-e1029acc.js +1 -0
  382. package/dist/vega/p-e18c0656.entry.js +1 -0
  383. package/dist/vega/p-e3fdb65c.entry.js +1 -0
  384. package/dist/vega/p-e7e963ba.entry.js +1 -0
  385. package/dist/vega/{p-312d8205.js → p-e9b005df.js} +1 -1
  386. package/dist/vega/{p-9d3f69cb.js → p-e9d09211.js} +1 -1
  387. package/dist/vega/{p-3c309a38.js → p-f1078e63.js} +1 -1
  388. package/dist/vega/{p-595998d9.entry.js → p-f29ea345.entry.js} +1 -1
  389. package/dist/vega/p-f5095035.entry.js +1 -0
  390. package/dist/vega/{p-f29d9707.entry.js → p-f95d8d10.entry.js} +1 -1
  391. package/dist/vega/vega.esm.js +1 -1
  392. package/package.json +1 -1
  393. package/dist/vega/p-0512308f.entry.js +0 -1
  394. package/dist/vega/p-1d8312d3.entry.js +0 -1
  395. package/dist/vega/p-2d77ae73.entry.js +0 -1
  396. package/dist/vega/p-2d8d4d5b.entry.js +0 -1
  397. package/dist/vega/p-320091b7.js +0 -1
  398. package/dist/vega/p-36949349.js +0 -1
  399. package/dist/vega/p-4151f53a.entry.js +0 -1
  400. package/dist/vega/p-4ff48b84.js +0 -1
  401. package/dist/vega/p-5e4517eb.entry.js +0 -1
  402. package/dist/vega/p-6680ba17.entry.js +0 -1
  403. package/dist/vega/p-80b7945a.entry.js +0 -1
  404. package/dist/vega/p-841b3281.entry.js +0 -1
  405. package/dist/vega/p-87e5cb56.entry.js +0 -1
  406. package/dist/vega/p-91303402.entry.js +0 -1
  407. package/dist/vega/p-97215133.js +0 -1
  408. package/dist/vega/p-9d96d83f.entry.js +0 -1
  409. package/dist/vega/p-a05a2f1e.entry.js +0 -1
  410. package/dist/vega/p-a775825e.entry.js +0 -1
  411. package/dist/vega/p-acaff62d.entry.js +0 -1
  412. package/dist/vega/p-ae146458.entry.js +0 -1
  413. package/dist/vega/p-b63319e9.entry.js +0 -1
  414. package/dist/vega/p-b660f38c.entry.js +0 -1
  415. package/dist/vega/p-b8c13ac9.entry.js +0 -1
  416. package/dist/vega/p-b8ffa42f.entry.js +0 -1
  417. package/dist/vega/p-bbad318e.entry.js +0 -1
  418. package/dist/vega/p-c0e42c03.entry.js +0 -1
  419. package/dist/vega/p-c41f5684.entry.js +0 -1
  420. package/dist/vega/p-c54b5a8f.entry.js +0 -1
  421. package/dist/vega/p-cd1e976c.entry.js +0 -1
  422. package/dist/vega/p-d9158512.js +0 -1
  423. package/dist/vega/p-e62d41ee.js +0 -1
  424. package/dist/vega/p-ebe32b25.entry.js +0 -1
  425. package/dist/vega/p-ec162599.entry.js +0 -1
  426. package/dist/vega/p-fc7e4c8a.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{h as t,f as e,r as i,c as o,H as s,g as r}from"./p-6b2342e0.js";import{V as a,I as l}from"./p-8ce9e214.js";import{R as n}from"./p-8bc15ed0.js";import{c,V as h,M as p,I as d}from"./p-6e1ab235.js";import{s as f}from"./p-519a7d55.js";import{F as u}from"./p-320091b7.js";import{D as v}from"./p-526e3634.js";import{c as m,b as g,a as w,d as b,M as j}from"./p-5447a8e8.js";import{c as x}from"./p-66647244.js";import{V as C}from"./p-6031bed1.js";import{F as R}from"./p-cb378636.js";import{C as y}from"./p-2d0d575f.js";import{T as F}from"./p-6cde45fc.js";import{C as S}from"./p-2c737fc8.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-3a68b729.js";import"./p-0d18368b.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-8c30a60d.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-5f377954.js";var k=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class I extends h{constructor(){super(...arguments),this.handlePopoverShow=()=>{v.addUniqueObserverToNode(this.popoverRef,m,(()=>{this.isPopoverOpen=!0,this.internalColor!==this.value&&this.colorSwatchPickerValueController.updateInternalColor(this.value)}))},this.handlePopoverHide=()=>{v.addUniqueObserverToNode(this.popoverRef,g,(()=>{this.isPopoverOpen=!1}))},this.registerButtonClickHandler=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.popoverRef&&this.popoverRef.hide(),this.colorSwatchPickerValueController.updateValue("clear"===t.dataset.actionType?"":this.internalColor)}))}}hidePopover(){this.popoverRef&&this.popoverRef.hide()}getContainerRef(){return this.containerRef}getLeftContainerRef(){return this.leftContainerRef}render(){const e=this.leftSlotProjection.hasSlot();return t("div",{ref:t=>this.containerRef=t,class:"swatch-picker-container"},t("vega-popover",{ref:t=>{this.popoverRef=t,this.handlePopoverShow(),this.handlePopoverHide()},class:"swatch-popover",alignment:"center",isScreenPosition:!0,trigger:"click"},t("div",{slot:"popover-content"},t("vega-color-swatch",{class:"swatch-picker-trigger","aria-expanded":this.isPopoverOpen?"true":"false","aria-haspopup":"dialog",disabled:this.disabled,color:this.value,size:"small"})),t("vega-box",{slot:"popover",class:"swatch-popover-content",width:"min-content"},t("vega-flex",{gap:"size-16"},e&&t("div",{ref:t=>this.leftContainerRef=t}),e&&t("div",null,t("vega-divider",{direction:"vertical"})),t("div",null,this.colorSwatchInputRenderer.render(),this.colorSwatchGridRenderer.render(),this.renderButtonGroup())))),t("vega-field-label",{label:this.label,disabled:this.disabled,isFieldRequired:this.required}))}renderButtonGroup(){return t("vega-flex",{gap:"size-8",justifyContent:"end",margin:{top:"size-16"}},this.showClearButton&&t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"clear",label:this.translationSlimmer.t("Clear"),size:"small"}),t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"apply",label:this.translationSlimmer.t("Apply"),size:"small"}))}}k([c()],I.prototype,"host",void 0),k([c()],I.prototype,"value",void 0),k([c()],I.prototype,"internalColor",void 0),k([c()],I.prototype,"label",void 0),k([c()],I.prototype,"required",void 0),k([c({writable:!0})],I.prototype,"isPopoverOpen",void 0),k([c()],I.prototype,"disabled",void 0),k([c()],I.prototype,"showClearButton",void 0),k([c()],I.prototype,"colorSwatchGridRenderer",void 0),k([c()],I.prototype,"colorSwatchInputRenderer",void 0),k([c()],I.prototype,"colorSwatchPickerValueController",void 0),k([c()],I.prototype,"translationSlimmer",void 0),k([c()],I.prototype,"leftSlotProjection",void 0);var z=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class V extends h{constructor(){super(...arguments),this.handleColorSwatchClick=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.colorSwatchPickerValueController.updateInternalColor(t.color)}))}}render(){return t("vega-grid",{column:this.swatchGridColumns,justifyItems:"start",gap:"size-8",style:{width:"max-content"}},this.colors.map((e=>t("vega-color-swatch",{ref:this.handleColorSwatchClick,selected:this.isColorMatched(this.internalColor,e),color:e,size:"extra-small"}))))}isColorMatched(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}}z([c()],V.prototype,"colors",void 0),z([c()],V.prototype,"internalColor",void 0),z([c()],V.prototype,"swatchGridColumns",void 0),z([c()],V.prototype,"colorSwatchPickerValueController",void 0);var O=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class P extends h{constructor(){super(...arguments),this.handleInputEvent=t=>{v.addUniqueObserverToNode(t,b,(()=>{const e=this.colorSwatchPickerColorFormatController.formatColor("output",t.value);e&&!this.isValidColor(e)||this.colorSwatchPickerValueController.updateInternalColor(e)})),v.addUniqueObserverToNode(t,j,(()=>{t.value&&!this.isValidColor(t.value)&&(t.value=this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor))}))}}render(){return this.showInput?t("vega-flex",{gap:"size-8",alignItems:"center",margin:{bottom:"size-16"}},t("vega-color-swatch",{color:this.internalColor,size:"extra-small"}),t("vega-input",{ref:this.handleInputEvent,size:"small",value:this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor),placeholder:this.inputPlaceholder||this.translationSlimmer.t("Enter color"),prefixIcon:this.inputPrefixIcon===P.DEFAULT_INPUT_ICON?C.getIconKey("hashtag"):this.inputPrefixIcon})):null}isValidColor(t){let e=!0;return globalThis.CSS&&"function"==typeof globalThis.CSS.supports&&(e=globalThis.CSS.supports("color",t)),e}}C.register({hashtag:{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="M188.7 32.5c13 2.6 21.4 15.2 18.8 28.2L192.5 136h111l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8s21.4 15.2 18.8 28.2L352.5 136H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H342.9L314.1 328H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H304.5l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L255.5 376h-111l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L95.5 376H24c-13.3 0-24-10.7-24-24s10.7-24 24-24h81.1l28.8-144H56c-13.3 0-24-10.7-24-24s10.7-24 24-24h87.5l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8zM182.9 184L154.1 328h111l28.8-144h-111z"/></svg>'}}),P.DEFAULT_INPUT_ICON="hexColorIcon",O([c()],P.prototype,"internalColor",void 0),O([c()],P.prototype,"showInput",void 0),O([c()],P.prototype,"inputPlaceholder",void 0),O([c()],P.prototype,"inputPrefixIcon",void 0),O([c()],P.prototype,"colorSwatchPickerValueController",void 0),O([c()],P.prototype,"colorSwatchPickerColorFormatController",void 0),O([c()],P.prototype,"translationSlimmer",void 0);var L=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class H extends h{updateValue(t){this.value=t}updateInternalColor(t){this.internalColor=t}initializeInternalColor(){this.internalColor=this.value}listenToValueChange(){this.internalColor=this.value,this.changeEventEmitter.emit(this.value),y.notify(R,{host:this.host,detail:this.value})}}L([c()],H.prototype,"host",void 0),L([c({writable:!0})],H.prototype,"value",void 0),L([c({writable:!0})],H.prototype,"internalColor",void 0),L([c()],H.prototype,"changeEventEmitter",void 0),L([p("componentWillLoad")],H.prototype,"initializeInternalColor",null),L([p("watchValue")],H.prototype,"listenToValueChange",null);var M=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class T extends h{updateTheColor(){this.internalColor&&this.colorSwatchPickerValueController.updateInternalColor(this.formatColor("input",this.internalColor))}formatColor(t,e){return this.inputFormatter===T.DEFAULT_INPUT_FORMATTER?this.handleHexFormat(t,e):"function"==typeof this.inputFormatter?this.inputFormatter(t,e):e}handleHexFormat(t,e){return"input"===t?e.startsWith("#")?e.slice(1):e:e.startsWith("#")?e:e?`#${e}`:e}}T.DEFAULT_INPUT_FORMATTER="hexColorFormatter",M([c()],T.prototype,"inputFormatter",void 0),M([c()],T.prototype,"internalColor",void 0),M([c()],T.prototype,"colorSwatchPickerValueController",void 0),M([p("watchInputFormatter")],T.prototype,"updateTheColor",null);var D=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class E extends h{constructor(t,i){super(),this.slotElement=null,this.syncSlotElementFromHost=()=>{var t;const i=this.host.querySelector(this.slotSelector());i&&(this.slotElement=i,null===(t=this.getContainerRef())||void 0===t||t.replaceChildren(i),e(this.host))},this.syncRemovedSlotElement=()=>{this.slotElement&&!this.slotElement.isConnected&&(this.slotElement=null,e(this.host))},this.slotName=t,this.getContainerRef=i}hasSlot(){return!!this.slotElement}detectSlot(){this.slotElement=this.host.querySelector(this.slotSelector()),this.hostMutationObserver=new MutationObserver(this.syncSlotElementFromHost),this.hostMutationObserver.observe(this.host,{childList:!0}),this.containerMutationObserver=new MutationObserver(this.syncRemovedSlotElement)}appendSlotContent(){const t=this.getContainerRef();t&&this.containerMutationObserver.observe(t,{childList:!0}),this.slotElement&&t&&this.slotElement.parentElement!==t&&t.appendChild(this.slotElement)}cleanup(){this.hostMutationObserver&&this.hostMutationObserver.disconnect(),this.containerMutationObserver&&this.containerMutationObserver.disconnect()}slotSelector(){return`[slot="${this.slotName}"]`}}D([c()],E.prototype,"host",void 0),D([p("componentWillLoad")],E.prototype,"detectSlot",null),D([p("componentDidRender")],E.prototype,"appendSlotContent",null),D([p("disconnectedCallback")],E.prototype,"cleanup",null);var G=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const B=class{constructor(t){i(this,t),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.formFieldController=new u({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new n:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.colorSwatchPickerRenderer.getContainerRef(),touchableAreaGetter:()=>[]}),this.translationSlimmer=new F,this.leftSlotProjection=new E("swatch-picker-left",(()=>this.colorSwatchPickerRenderer.getLeftContainerRef())),this.colorSwatchPickerRenderer=new I,this.colorSwatchGridRenderer=new V,this.colorSwatchInputRenderer=new P,this.colorSwatchPickerValueController=new H,this.colorSwatchPickerColorFormatController=new T,this.childNodeEventPreventSlimmer=new S([b],(()=>this.colorSwatchPickerRenderer.getContainerRef())),this.changeEventEmitter=x(B,b),this.internalColor="",this.isPopoverOpen=!1,this.value="",this.label="",this.disabled=!1,this.required=!1,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.swatchGridColumns=8,this.showInput=!0,this.inputPlaceholder="",this.inputPrefixIcon=P.DEFAULT_INPUT_ICON,this.showClearButton=!1,this.inputFormatter=T.DEFAULT_INPUT_FORMATTER}watchValue(){}watchDisabled(){this.disabled&&this.colorSwatchPickerRenderer.hidePopover()}watchValidationRules(){}watchInputFormatter(){}render(){return f(t(s,{class:{disabled:this.disabled}},this.colorSwatchPickerRenderer.render(),t("div",{class:"vega-error vega-hidden",part:"field-error-message"})),this.host)}get host(){return r(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"],inputFormatter:["watchInputFormatter"]}}};G([l()],B.prototype,"globalSlimmers",void 0),G([d()],B.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),G([d()],B.prototype,"formFieldController",void 0),G([d()],B.prototype,"translationSlimmer",void 0),G([d()],B.prototype,"leftSlotProjection",void 0),G([d()],B.prototype,"colorSwatchPickerRenderer",void 0),G([d()],B.prototype,"colorSwatchGridRenderer",void 0),G([d()],B.prototype,"colorSwatchInputRenderer",void 0),G([d()],B.prototype,"colorSwatchPickerValueController",void 0),G([d()],B.prototype,"colorSwatchPickerColorFormatController",void 0),G([d()],B.prototype,"childNodeEventPreventSlimmer",void 0),G([d()],B.prototype,"changeEventEmitter",void 0),B.style=':host{display:inline-block}.swatch-picker-container{display:flex;flex-direction:row;align-items:center;gap:8px}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch){border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch-container):focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}';export{B as vega_color_swatch_picker}
@@ -1 +0,0 @@
1
- import{h as e,F as t,r as i,c as o,H as n,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as r,M as l,V as c,I as d}from"./p-6e1ab235.js";import{s as p}from"./p-6bd5c49b.js";import{V as h,I as f}from"./p-8ce9e214.js";import{P as v}from"./p-81dd00d0.js";import{e as u}from"./p-272440e8.js";import{F as g}from"./p-87a4d75f.js";import{j as m,k as x,f as b}from"./p-528748fa.js";import{g as C}from"./p-49a2e141.js";import{V as w}from"./p-6031bed1.js";import{I as y}from"./p-781fd6e0.js";import{S as j}from"./p-31216140.js";import{I as k}from"./p-36949349.js";import{c as O}from"./p-66647244.js";import{W as R,X as S,Y as L,a as H,Z as I}from"./p-5447a8e8.js";import{C as A}from"./p-2bb5a232.js";import{D as z,d as M}from"./p-526e3634.js";import{J as V,K as E,L as N,M as _,N as G}from"./p-3a68b729.js";import{c as D}from"./p-3f183b52.js";import{B as W}from"./p-b3420fcf.js";import{V as B}from"./p-3e09aeed.js";import{c as U}from"./p-1ec763ab.js";import{c as Z}from"./p-613ddaab.js";import{C as T}from"./p-2d0d575f.js";import{O as F}from"./p-331a62d5.js";import{S as K}from"./p-29e3eb12.js";import{c as P}from"./p-2a9960c9.js";import{f as X}from"./p-8720816e.js";import"./p-b75ee3ba.js";import"./p-982747ef.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-262ec334.js";import"./p-75e33859.js";import"./p-8db904dc.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-cb378636.js";import"./p-8c30a60d.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-fb5ea4b2.js";import"./p-a841cf13.js";import"./p-3dee1e55.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-4ff48b84.js";var $=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class J extends v{constructor(){super({callback:()=>{this.showAsOverlay||(this.updateMainContentUI(this.openState),this.backdropManager.watchOpenState(this.openState))}}),this.isVoiceOverClick=!1,this.triggerElement=null,this.handleClickEvent=e=>{this.isVoiceOverClick=m(e)}}componentDidLoad(){!0===this.open?(this.openState="open",g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.add("disableAnimation")):this.openState="close",window.addEventListener("click",this.handleClickEvent,{capture:!0})}componentDidRender(){}async toggle(){"close"===this.openState?(this.triggerElement=document.activeElement,this.openState="open"):this.openState="close"}watchOpen(e){this.openState=e?"open":"close"}watchOpenState(e){this.backdropManager.watchOpenState(e),this.updateMainContentUI(e),"open"===e?this.open=!0:(this.open=!1,g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.contains("disableAnimation")&&this.host.classList.remove("disableAnimation")),this.stateUpdateEventEmitter.emit(this.openState),"open"===e?this.focusFirstFocusableInDialog():this.focusFirstFocusableOutsideDialog()}watchShowAsOverlay(){this.backdropManager.watchShowAsOverlay(),this.updateMainContentUI(this.openState)}setOpenState(e){this.openState=e}focusFirstFocusableInDialog(){if(!this.isVoiceOverClick)return;const e=this.host,t=x(e);t&&u((()=>t.focus()),e,300)}focusFirstFocusableOutsideDialog(){var e;const t=this.triggerElement;this.triggerElement=null;const i=this.host;if(t&&t.isConnected)return void(null!==(e=x(t))&&void 0!==e?e:t).focus();const o=this.findFirstFocusableOutside(i);o&&o.focus()}findFirstFocusableOutside(e){const t=i=>{const o=Array.from(i.children);for(const i of o){if(i===e||e.contains(i))continue;if(i.contains(e)){const e=t(i);if(e)return e;continue}const o=x(i);if(o)return o}return null};return t(document.body)}updateMainContentUI(e){const t=document.querySelector("body"),i=document.querySelector("vega-left-nav + .vega-left-nav-content");"open"===e?(this.host.style.display="flex",setTimeout((()=>{this.host.classList.add("open"),i&&!this.shouldShowBackdrop()?(null==t||t.classList.remove("vega-overflow-hidden"),i.classList.add("open")):(null==t||t.classList.add("vega-overflow-hidden"),i&&i.classList.remove("open"))}))):(this.host.classList.remove("open"),null==t||t.classList.remove("vega-overflow-hidden"),i&&i.classList.remove("open"),u((()=>{this.open||(this.host.style.display="none")}),this.host))}shouldShowBackdrop(){const e=C();return this.showAsOverlay||"L"!==e&&"XL"!==e}}$([r()],J.prototype,"host",void 0),$([r({writable:!0})],J.prototype,"open",void 0),$([r({writable:!0})],J.prototype,"openState",void 0),$([r()],J.prototype,"stateUpdateEventEmitter",void 0),$([r()],J.prototype,"showAsOverlay",void 0),$([r()],J.prototype,"backdropManager",void 0),$([l("componentDidLoad")],J.prototype,"componentDidLoad",null),$([l("componentDidRender")],J.prototype,"componentDidRender",null),$([l("toggle")],J.prototype,"toggle",null),$([l("watchOpen")],J.prototype,"watchOpen",null),$([l("watchOpenState")],J.prototype,"watchOpenState",null),$([l("watchShowAsOverlay")],J.prototype,"watchShowAsOverlay",null);const Y=()=>e("div",{class:"header-footer-separator-container"},e("div",{class:"header-footer-separator"}));var q=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Q extends c{componentWillLoad(){this.hasHeaderSlot=!!this.host.querySelector('[slot="header-slot"]')}render(){return this.renderHeader()}renderHeader(){const{title:i,subtitle:o}=this.headerConfig;return e(t,null,e("div",{class:"header-container"},this.hasHeaderSlot?e("slot",{name:"header-slot"}):i?e("div",{class:"header-title"},i):this.renderHeaderLogo(),o&&e("div",{class:"header-subtitle"},o)),e(Y,null))}renderHeaderLogo(){return"gp"===this.currentBranding?e("vega-brand-logo",{name:"global-payments",size:"small"}):"genius"===this.currentBranding?e("vega-brand-logo",{name:"genius",size:"small"}):e("vega-icon",{icon:w.getIconKey("heartland-logo")})}}w.register({"heartland-logo":{icon:'<svg width="142" height="26" viewBox="0 0 142 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H5.38012V9.88886H14.7732V0H20.2857V24.7222H14.9056V13.9144H5.42422V24.7659H0V0ZM81.3186 0H86.4784V24.7222H81.3186V0ZM141.868 0.0435179H136.708C136.708 3.19395 136.708 6.38814 136.664 9.58233C135.959 8.53217 134.856 7.78833 133.666 7.48204C131.461 6.86946 129.079 7.35077 127.227 8.70716C125.727 9.97612 124.669 11.7264 124.317 13.6516C123.92 15.4894 123.92 17.4147 124.317 19.2962C124.669 21.1339 125.684 22.7966 127.182 23.8906C128.77 24.8969 130.667 25.2907 132.519 25.0282C134.283 24.8531 135.826 23.8468 136.664 22.2716C136.664 22.824 136.703 23.3764 136.742 23.9288C136.762 24.2077 136.782 24.4867 136.796 24.7656H142C141.912 23.5843 141.868 22.3591 141.868 21.1777V0.0435179ZM129.784 13.039C130.137 11.9889 130.976 10.9388 132.166 10.6762C133.357 10.3262 134.636 10.6762 135.518 11.5514C136.444 12.4702 136.753 13.8267 136.841 15.0956C136.885 16.7583 136.753 18.4648 135.959 19.9525C135.076 21.4839 132.916 22.2716 131.284 21.3964C130.094 20.7401 129.609 19.3399 129.388 18.071C129.124 16.3645 129.256 14.6581 129.784 13.039ZM70.3382 4.15601L75.4537 2.31827V7.52523H79.5991V10.9382H75.4537V17.1515C75.4096 18.1142 75.4537 19.0768 75.5859 20.0394C75.6742 20.5645 76.1152 21.0021 76.6443 21.1334C77.6146 21.3084 78.5847 21.3084 79.5549 21.1771V24.5026C77.7469 25.0276 75.8506 25.1589 73.9984 24.9401C72.94 24.8088 71.9258 24.3276 71.2202 23.5399C70.6028 22.7085 70.3382 21.7021 70.3823 20.6958C70.3382 15.1826 70.3382 9.66925 70.3382 4.15601ZM35.5 8.2703C33.6037 7.04514 31.3106 6.56382 29.1056 7.00138C26.9889 7.35143 25.1367 8.48907 23.946 10.2831C22.4907 12.3396 22.1379 14.9212 22.2261 17.3716C22.3584 19.4718 22.9758 21.7909 24.4752 23.3224C25.9746 24.8538 28.1795 25.3789 30.2522 25.4664C32.0603 25.5539 33.9124 25.1601 35.5441 24.3725C37.264 23.4099 38.3665 21.6158 38.4546 19.6469H33.7361C33.6037 20.2595 33.2509 20.8283 32.81 21.3095C32.2808 21.7471 31.6193 22.0097 30.9577 22.0097C29.8553 22.1409 28.7969 21.7471 28.0473 20.9158C27.2534 19.9094 27.077 18.5967 27.1211 17.4153H38.8515C38.9838 15.7963 38.8075 14.1774 38.4106 12.6021C37.9696 10.8519 36.9553 9.32044 35.5 8.2703ZM27.2975 14.1774C27.2975 13.1272 27.6503 12.1208 28.3118 11.2895C29.5025 9.93302 32.0603 10.0205 32.9864 11.5958C33.4274 12.3833 33.6037 13.3022 33.6037 14.1774H27.2975ZM42.5126 8.75203C44.056 7.39558 46.2169 7.00178 48.2014 6.95802C50.1859 6.91427 52.3908 7.30807 54.0225 8.62074C55.2131 9.5834 55.6983 11.1586 55.7865 12.6463C55.8368 13.696 55.8297 14.7314 55.8225 15.7689V15.769C55.8171 16.5478 55.8117 17.3278 55.8306 18.1158C55.8389 18.5271 55.8425 18.9415 55.8461 19.3576V19.3576C55.8618 21.1545 55.8777 22.982 56.2715 24.723H51.553C51.4206 23.9791 51.3766 23.1915 51.3766 22.4039C50.4504 23.8478 48.9069 24.8105 47.1871 25.0293C45.776 25.2043 44.3207 25.0293 42.9536 24.5042C41.7629 23.9353 40.8368 22.8852 40.484 21.5725C39.9548 19.8661 40.2635 18.0283 41.2778 16.5844C42.2921 15.3154 43.6592 14.4403 45.2468 14.0465C46.9417 13.606 48.6735 13.5686 50.3747 13.5319C50.5325 13.5285 50.6901 13.5251 50.8474 13.5214C50.8474 13.4493 50.8477 13.377 50.848 13.3045V13.3038V13.3032V13.3026C50.8514 12.4946 50.8548 11.662 50.4504 10.9399C49.6567 9.80219 48.1132 9.53961 46.9666 10.3273C46.8343 10.4148 46.7461 10.5023 46.6579 10.5898C46.2169 11.0711 45.9964 11.7274 46.0847 12.3838H41.0132C40.9691 11.0711 41.4983 9.71469 42.5126 8.75203ZM47.0989 17.0657C46.4374 17.2844 45.8641 17.7657 45.5113 18.3783C45.0263 19.4285 45.3349 20.6536 46.261 21.3537C47.5399 22.1851 49.2598 21.8351 50.0977 20.5661C50.8914 19.3847 50.8914 17.9408 50.8914 16.5844C49.6126 16.4531 48.2896 16.5844 47.0989 17.0657ZM96.1373 6.95649C94.1088 6.95649 91.9474 7.35029 90.4039 8.70676C89.3901 9.66934 88.8168 11.0258 88.8605 12.426H93.9322C93.844 11.7259 94.1525 10.982 94.6821 10.5007C95.7405 9.66934 97.2394 9.80063 98.1658 10.7633C98.7448 11.5023 98.742 12.5111 98.7395 13.428C98.7393 13.4882 98.7392 13.5481 98.7392 13.6074C96.7543 13.6074 94.7704 13.6511 92.8738 14.1762C91.3741 14.5701 90.0071 15.4451 89.0816 16.7141C87.9786 18.3331 87.8021 20.3458 88.5519 22.1398C89.037 23.3212 89.9634 24.2401 91.1538 24.6777C92.477 25.0714 93.844 25.2027 95.2109 25.0277C96.8863 24.8527 98.3424 23.7151 99.2679 22.4023C99.2679 23.19 99.3125 23.9338 99.4445 24.7214H104.119C103.671 22.7031 103.674 20.573 103.678 18.5029V18.5028V18.5016V18.5003C103.678 18.3274 103.678 18.1549 103.678 17.983C103.678 16.189 103.678 14.3513 103.634 12.5135C103.502 11.1133 103.061 9.58184 101.914 8.66297C100.326 7.35029 98.1658 6.95649 96.1373 6.95649ZM93.5354 18.1143C93.9322 17.5455 94.5493 17.1516 95.2554 16.9329C96.4013 16.5828 97.5925 16.4953 98.7392 16.5828L98.7394 16.7751C98.7413 18.0786 98.7434 19.4825 97.9447 20.6084C97.1074 21.8335 95.4311 22.1835 94.1525 21.396C93.0941 20.6521 92.8293 19.2081 93.5354 18.1143ZM112.982 7.74535C114.526 6.95774 116.334 6.73897 118.01 7.13276C119.641 7.43906 121.009 8.53297 121.671 10.0644C122.123 11.1017 122.163 12.221 122.204 13.3359L122.204 13.3364C122.214 13.6322 122.225 13.9276 122.243 14.2212V24.7226H116.952V13.2148C116.952 12.2522 116.379 11.3771 115.496 10.8958C113.953 10.1957 112.145 10.8083 111.351 12.2959C110.93 13.169 110.941 14.1409 110.951 15.0687V15.0698C110.952 15.2111 110.954 15.3514 110.954 15.4901V24.6789H105.75V13.4336C105.75 13.0309 105.752 12.6264 105.754 12.2206C105.761 10.5979 105.768 8.95287 105.662 7.30779H110.602L110.63 7.84104C110.664 8.49637 110.699 9.15749 110.734 9.84562C111.263 9.01425 112.057 8.27042 112.982 7.74535ZM68.8393 7.35106C67.5163 7.21979 66.1933 7.48232 65.0026 8.09491C64.0325 8.7075 63.3268 9.58258 62.8859 10.7202C62.8859 9.6286 62.8419 8.53696 62.798 7.44526L62.7977 7.43857H57.9467C58.1672 9.58258 58.2554 11.7704 58.2114 13.9144C58.2114 15.125 58.2065 16.3356 58.2016 17.5462C58.1918 19.9674 58.1819 22.3886 58.2114 24.8097H63.3268V15.8398C63.3268 14.7021 63.5915 13.3894 64.5617 12.6893C65.7965 11.8142 67.384 11.8142 68.8393 11.9454V7.35106Z" fill="#596063" /></svg>',autoSize:!0}}),q([r()],Q.prototype,"host",void 0),q([r()],Q.prototype,"headerConfig",void 0),q([r()],Q.prototype,"currentBranding",void 0),q([l("componentWillLoad")],Q.prototype,"componentWillLoad",null);var ee=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class te extends c{componentWillLoad(){this.hasFooterSlot=!!this.host.querySelector('[slot="footer-slot"]')}render(){return this.renderFooter()}renderFooter(){return(this.footnote||this.hasFooterSlot)&&e(t,null,e(Y,null),e("div",{class:"footer-container"},this.hasFooterSlot?e("slot",{name:"footer-slot"}):e("div",{class:"footer-footnote"},this.footnote)))}}ee([r()],te.prototype,"host",void 0),ee([r()],te.prototype,"footnote",void 0),ee([l("componentWillLoad")],te.prototype,"componentWillLoad",null);var ie=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class oe extends c{watchOpenState(){this.updateZIndex()}updateZIndex(){const e=this.backdropManager.getBackdrop();"open"==this.openState?(e&&y.setZIndex(e,"base"),y.setZIndex(this.host,"base")):u((()=>{e&&y.removeZIndex(e,"base"),y.removeZIndex(this.host,"base")}),this.host,300)}}ie([r()],oe.prototype,"host",void 0),ie([r()],oe.prototype,"openState",void 0),ie([r()],oe.prototype,"backdropManager",void 0),ie([l("watchOpenState")],oe.prototype,"watchOpenState",null);var ne=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ae extends j{watchOpenState(e){const t="open"===e&&this.shouldShowBackdrop();this.setVisibilityIntent(t)}watchShowAsOverlay(){this.watchOpenState(this.openState)}createBackdrop(e){const t=e.createElement("vega-backdrop");return t.classList.add(ae.backdropClassName),t.duration=150,t.visible=!1,e.body.append(t),t}shouldShowBackdrop(){return this.showAsOverlay||!this.isLargeScreen()}isLargeScreen(){const e=C();return"L"===e||"XL"===e}}ae.backdropClassName="vega-left-nav-backdrop",ne([r()],ae.prototype,"openState",void 0),ne([r()],ae.prototype,"showAsOverlay",void 0),ne([l("watchOpenState")],ae.prototype,"watchOpenState",null),ne([l("watchShowAsOverlay")],ae.prototype,"watchShowAsOverlay",null);var se=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class re{constructor(){this.handleBackdropClick=()=>{this.openStateController.setOpenState("close")}}connectedCallback(){this.attachBackdropClickEvent()}disconnectedCallback(){this.detachBackdropClickEvent()}attachBackdropClickEvent(){const e=this.backdropManager.getBackdrop();e&&(e.removeEventListener("vegaClick",this.handleBackdropClick),e.addEventListener("vegaClick",this.handleBackdropClick))}detachBackdropClickEvent(){const e=this.backdropManager.getBackdrop();e&&e.removeEventListener("vegaClick",this.handleBackdropClick)}}se([r()],re.prototype,"openStateController",void 0),se([r()],re.prototype,"backdropManager",void 0),se([l("connectedCallback")],re.prototype,"connectedCallback",null),se([l("disconnectedCallback")],re.prototype,"disconnectedCallback",null);class le extends c{render(){var t;return e("div",{class:"vega-nav-list-container"},(null===(t=this.source)||void 0===t?void 0:t.length)?this.renderListBySource():e("slot",null))}renderListBySource(){return e(t,null,this.source.map((i=>e(t,null,this.renderLeftNavSourceItem(i)))))}renderLeftNavSourceItem(e){return"section"==e.type?this.renderSection(e):"group"==e.type?this.renderGroup(e):this.renderLink(e)}renderSection(t){var i;return e("vega-left-nav-section",{itemKey:t.key,sectionHeader:t.sectionHeader},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderGroup(t){var i;return e("vega-left-nav-group",{itemKey:t.key,key:t.key||t.name,icon:t.icon,label:t.name,"open-by-default":t.openByDefault},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderLink(t){return e("vega-left-nav-link",{itemKey:t.key,key:t.key||t.name,icon:t.icon,url:t.url,target:t.target,selected:t.selected,counterBadge:t.counterBadge},t.name)}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],le.prototype,"source",void 0);var ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class de extends c{registerMenuClickObserver(){z.addUniqueObserverToNode(this.host,V,(()=>{this.shouldAutoCollapse()&&this.openStateController.setOpenState("close")}))}unregisterMenuClickObserver(){z.removeUniqueObserverFromNode(this.host,V)}shouldAutoCollapse(){const e=C();return this.autoCollapseOnOverlay&&(this.showAsOverlay||"L"!==e&&"XL"!==e)&&"open"===this.openState}}ce([r()],de.prototype,"host",void 0),ce([r()],de.prototype,"openState",void 0),ce([r()],de.prototype,"autoCollapseOnOverlay",void 0),ce([r()],de.prototype,"showAsOverlay",void 0),ce([r()],de.prototype,"openStateController",void 0),ce([l("connectedCallback")],de.prototype,"registerMenuClickObserver",null),ce([l("disconnectedCallback")],de.prototype,"unregisterMenuClickObserver",null);const pe=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!!e.source&&e.source.length>0}];var he=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const fe=class{constructor(e){i(this,e),this.vegaStateUpdate=o(this,"vegaStateUpdate",7),this.stateUpdate=o(this,"stateUpdate",7),this.globalSlimmers={},this.headerRenderer=new Q,this.footerRenderer=new te,this.openStateController=new J,this.backdropManager=new ae,this.backdropController=new re,this.zIndexController=new oe,this.listRenderer=new le,this.vegaLeftNavAutoCollapseController=new de,this.stateUpdateEventEmitter=O(fe,R),this.componentGlobalStyleSlimmer=new A(".vega-left-nav-content{transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:200ms;transition-property:margin}vega-left-nav.disableAnimation+.vega-left-nav-content.open{transition-duration:0s}.vega-left-nav-content.open{margin-left:300px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(pe),this.autoCollapseGroupsNotifySlimmer=D(fe,"autoCollapseGroups","watchAutoCollapseGroups"),this.brandSwitchControllerSlimmer=new W,this.currentBranding=B.getBranding(),this.openState="close",this.open=!1,this.headerConfig={},this.footnote="",this.showAsOverlay=!0,this.autoCollapseOnOverlay=!1,this.autoCollapseGroups=!1}watchOpenState(){}watchOpen(){}watchShowAsOverlay(){}watchAutoCollapseGroups(){}componentWillLoad(){"string"==typeof this.autoCollapseGroups&&(this.autoCollapseGroups.includes("true")?this.autoCollapseGroups=!0:this.autoCollapseGroups.includes("false")&&(this.autoCollapseGroups=!1))}async toggle(){}render(){return p(e("slot",null)),s(e(n,null,this.headerRenderer.render(),this.listRenderer.render(),this.footerRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{openState:["watchOpenState"],open:["watchOpen"],showAsOverlay:["watchShowAsOverlay"],autoCollapseGroups:["watchAutoCollapseGroups"]}}};he([f()],fe.prototype,"globalSlimmers",void 0),he([d()],fe.prototype,"headerRenderer",void 0),he([d()],fe.prototype,"footerRenderer",void 0),he([d()],fe.prototype,"openStateController",void 0),he([d()],fe.prototype,"backdropManager",void 0),he([d()],fe.prototype,"backdropController",void 0),he([d()],fe.prototype,"zIndexController",void 0),he([d()],fe.prototype,"listRenderer",void 0),he([d()],fe.prototype,"vegaLeftNavAutoCollapseController",void 0),he([d()],fe.prototype,"stateUpdateEventEmitter",void 0),he([d()],fe.prototype,"componentGlobalStyleSlimmer",void 0),he([d()],fe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),he([d()],fe.prototype,"autoCollapseGroupsNotifySlimmer",void 0),he([d()],fe.prototype,"brandSwitchControllerSlimmer",void 0),he([k((e=>[{keyCode:"Escape",activeElementInScope:()=>{const t=e.backdropManager.getBackdrop();return t&&t.visible?[document.body]:[e.host]},callback:()=>{const t=e.backdropManager.getBackdrop();t&&t.visible&&e.openStateController.setOpenState("close")}}]))],fe.prototype,"host",void 0),fe.style=':host{display:none;flex-direction:column;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:fixed;top:0px;right:0px;bottom:0px;left:0px;text-align:left;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);width:300px;transition-duration:200ms;transition-property:transform;transform:translateX(-320px)}:host(.open.disableAnimation){transition-duration:0s}:host(.open){transform:translateX(0px)}.header-container{padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:16px}.header-container .header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:28px;font-weight:700;line-height:36px;letter-spacing:0px}}.header-container .header-subtitle{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;margin-top:2px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}.header-footer-separator-container{padding-left:12px;padding-right:12px}.header-footer-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.vega-nav-list-container{flex-grow:1;padding-left:12px;padding-right:12px;padding-top:12px;overflow-y:auto;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.footer-container{padding-top:16px;padding-bottom:16px;padding-left:24px;padding-right:24px}.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}body.vega-overflow-hidden{overflow:hidden}.header-container vega-icon[icon="v-internal-icon heartland-logo"]+.header-subtitle{margin-top:8px}';var ve=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ue extends c{constructor(){super(...arguments),this.handleClick=e=>{const t=e.currentTarget;if(t&&"$1"===t.dataset.root){e.preventDefault(),this.vegaLeftNavGroupOpenStateController.toggle();const t=this.vegaLeftNavGroupOpenStateController.isOpen();this.groupClickEventEmitter.emit(t?"EXPAND":"COLLAPSE"),this.notifyOtherGroup()}}}getGroupContainer(){return this.groupContainer}render(){return e("div",{class:"vega-li-main "+(this.openByDefault?"open":""),ref:e=>this.groupContainer=e},e("a",{href:`#${this.label}`,role:"button",tabIndex:0,"data-root":"$1",onClick:this.handleClick,"aria-label":this.label||"No label defined"},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},this.label),e("div",{class:"suffix-icons"},e("vega-icon",{icon:w.getIconKey("chevron-down"),size:"size-12"}),e("vega-icon",{icon:w.getIconKey("chevron-up"),size:"size-12"}))),e("div",{class:"vega-nav-list-sub"},e("slot",null)))}notifyOtherGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(M.getSubject(e,E),{host:this.host})}}w.register({"chevron-up":U,"chevron-down":Z}),ve([r()],ue.prototype,"host",void 0),ve([r()],ue.prototype,"autoCollapseGroups",void 0),ve([r()],ue.prototype,"icon",void 0),ve([r()],ue.prototype,"label",void 0),ve([r()],ue.prototype,"groupClickEventEmitter",void 0),ve([r()],ue.prototype,"vegaLeftNavHierarchyController",void 0),ve([r()],ue.prototype,"openByDefault",void 0),ve([r()],ue.prototype,"itemKey",void 0),ve([r()],ue.prototype,"vegaLeftNavGroupOpenStateController",void 0);var ge=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class me extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(M.getSubject(e,N),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new F(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(M.getSubject(e,N),this.observer))}isAcceptableObserver(e){return!this.host.contains(e.host)}shouldCollapse(){return"on-link-click"===this.autoCollapseGroups||!0===this.autoCollapseGroups||!1===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}ge([r()],me.prototype,"host",void 0),ge([r()],me.prototype,"autoCollapseGroups",void 0),ge([r()],me.prototype,"vegaLeftNavGroupOpenStateController",void 0),ge([r()],me.prototype,"vegaLeftNavHierarchyController",void 0),ge([r()],me.prototype,"openByDefault",void 0),ge([l("disconnectedCallback")],me.prototype,"disconnectedCallback",null),ge([l("componentWillLoad")],me.prototype,"componentWillLoad",null);var xe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class be extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(M.getSubject(e,E),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new F(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(M.getSubject(e,E),this.observer))}isAcceptableObserver(e){return e.host!==this.host&&!this.host.contains(e.host)}shouldCollapse(){return 1==this.autoCollapseGroups||"on-group-click"===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}xe([r()],be.prototype,"host",void 0),xe([r()],be.prototype,"autoCollapseGroups",void 0),xe([r()],be.prototype,"vegaLeftNavGroupOpenStateController",void 0),xe([r()],be.prototype,"vegaLeftNavHierarchyController",void 0),xe([l("disconnectedCallback")],be.prototype,"disconnectedCallback",null),xe([l("componentWillLoad")],be.prototype,"componentWillLoad",null);var Ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class we extends K{constructor(){super({parent:"vega-left-nav",subStates:[{subStateName:"autoCollapseGroups",parentStateName:"autoCollapseGroups"}]})}}Ce([r()],we.prototype,"host",void 0),Ce([r({writable:!0})],we.prototype,"autoCollapseGroups",void 0);class ye extends c{isOpen(){return this.renderer.getGroupContainer().classList.contains("open")}open(){this.renderer.getGroupContainer().classList.add("open")}close(){this.renderer.getGroupContainer().classList.remove("open")}toggle(){this.isOpen()?this.close():this.open()}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],ye.prototype,"renderer",void 0);var je=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ke extends c{componentWillLoad(){const e=b(this.host,"vega-left-nav"),t=b(this.host,"vega-nav-card");(e||t)&&(this.parent=e||t)}getTopParent(){return this.parent}}je([r()],ke.prototype,"host",void 0),je([l("componentWillLoad")],ke.prototype,"componentWillLoad",null);var Oe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Re extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(M.getSubject(e,_),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&!this.openByDefault&&(this.observer=new F(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(M.getSubject(e,_),this.observer))}isAcceptableObserver(e){return this.host.contains(e.host)}observerListener(){this.vegaLeftNavGroupOpenStateController.open()}}Oe([r()],Re.prototype,"host",void 0),Oe([r()],Re.prototype,"vegaLeftNavGroupOpenStateController",void 0),Oe([r()],Re.prototype,"vegaLeftNavHierarchyController",void 0),Oe([r()],Re.prototype,"openByDefault",void 0),Oe([l("disconnectedCallback")],Re.prototype,"disconnectedCallback",null),Oe([l("componentWillLoad")],Re.prototype,"componentWillLoad",null);var Se=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Le=class{constructor(e){i(this,e),this.vegaGroupClick=o(this,"vegaGroupClick",7),this.groupClick=o(this,"groupClick",7),this.globalSlimmers={},this.renderer=new ue,this.vegaLeftNavHierarchyController=new ke,this.linkClickObserverController=new me,this.otherGroupsClickObserverController=new be,this.groupClickEventEmitter=O(Le,S),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.vegaLeftNavGroupStateController=new we,this.vegaLeftNavGroupOpenStateController=new ye,this.vegaLeftNavGroupForInitializeSelectedController=new Re,this.autoCollapseGroups=!1,this.label="",this.openByDefault=!1}render(){return p(e("slot",null)),e(n,{"data-key":this.itemKey},s(this.renderer.render(),this.host))}get host(){return a(this)}};Se([f()],Le.prototype,"globalSlimmers",void 0),Se([d()],Le.prototype,"renderer",void 0),Se([d()],Le.prototype,"vegaLeftNavHierarchyController",void 0),Se([d()],Le.prototype,"linkClickObserverController",void 0),Se([d()],Le.prototype,"otherGroupsClickObserverController",void 0),Se([d()],Le.prototype,"groupClickEventEmitter",void 0),Se([d()],Le.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Se([d()],Le.prototype,"vegaLeftNavGroupStateController",void 0),Se([d()],Le.prototype,"vegaLeftNavGroupOpenStateController",void 0),Se([d()],Le.prototype,"vegaLeftNavGroupForInitializeSelectedController",void 0),Le.style=':host{display:block}.suffix-icons{padding-left:8px}.suffix-icons vega-icon,.vega-li-main.open>a>.suffix-icons vega-icon:first-of-type{display:none}.suffix-icons vega-icon:first-of-type,.vega-li-main.open>a>.suffix-icons vega-icon:last-of-type{display:inline-flex}.vega-nav-list-sub{display:none}.vega-li-main.open>.vega-nav-list-sub{display:block}.vega-li-main>a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}.vega-li-main>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.vega-li-main>a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}.vega-li-main>a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}.vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}::slotted(vega-left-nav-group){padding-left:32px}::slotted(vega-left-nav-link){padding-left:32px}';var He=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ie extends c{constructor(){super(...arguments),this.handleClick=()=>{this.selected||this.customSelectionEnabled||this.controller.setSelected(!0),this.menuClickEventEmitter.emit(),this.notifyVegaLeftNav(),this.notifyVegaLeftGroup()}}render(){return e(n,{class:!0===this.selected?"selected":"","data-key":this.itemKey},e("a",{href:this.url||"javascript:void(0);",target:this.target,onClick:this.handleClick},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},e("slot",null)),!!this.deprecatedPropertySlimmer.getValue()&&e("div",{class:"vega-counter-badge"},e("vega-counter-badge",{count:this.deprecatedPropertySlimmer.getValue(),color:this.counterBadge.color}))))}notifyVegaLeftNav(){const e=b(this.host,"vega-left-nav");e&&T.notify(M.getSubject(e,V),{host:this.host})}notifyVegaLeftGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(M.getSubject(e,N),{host:this.host})}}He([r()],Ie.prototype,"host",void 0),He([r()],Ie.prototype,"selected",void 0),He([r()],Ie.prototype,"url",void 0),He([r()],Ie.prototype,"counterBadge",void 0),He([r()],Ie.prototype,"icon",void 0),He([r()],Ie.prototype,"menuClickEventEmitter",void 0),He([r()],Ie.prototype,"controller",void 0),He([r()],Ie.prototype,"deprecatedPropertySlimmer",void 0),He([r()],Ie.prototype,"customSelectionEnabled",void 0),He([r()],Ie.prototype,"itemKey",void 0),He([r()],Ie.prototype,"target",void 0),He([r()],Ie.prototype,"vegaLeftNavHierarchyController",void 0);var Ae=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ze extends c{disconnectedCallback(){const e=this.getObserverSubject();e&&T.unregister(e,this.observer)}componentWillLoad(){this.observer=new F(this.isAcceptableNavListObserver.bind(this),this.observerListener.bind(this));const e=this.getObserverSubject();e&&T.register(e,this.observer)}isAcceptableNavListObserver(e){return e instanceof HTMLElement&&b(this.host,".vega-nav-list-container")===b(e,".vega-nav-list-container")}}Ae([l("disconnectedCallback")],ze.prototype,"disconnectedCallback",null),Ae([l("componentWillLoad")],ze.prototype,"componentWillLoad",null);var Me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ve extends ze{componentWillRender(){if(this.selected){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(M.getSubject(e,_),{host:this.host})}}componentDidRender(){if(this.selected){const e=this.getObserverSubject();e&&T.notify(e,this.host)}}setSelected(e){this.customSelectionEnabled||(this.selected=e)}observerListener(e){e!==this.host&&this.setSelected(!1)}getObserverSubject(){const e=this.vegaLeftNavHierarchyController.getTopParent();return e?M.getSubject(e,G):null}}Me([r()],Ve.prototype,"host",void 0),Me([r({writable:!0})],Ve.prototype,"selected",void 0),Me([r()],Ve.prototype,"customSelectionEnabled",void 0),Me([r()],Ve.prototype,"vegaLeftNavHierarchyController",void 0),Me([l("componentWillRender")],Ve.prototype,"componentWillRender",null),Me([l("componentDidRender")],Ve.prototype,"componentDidRender",null);var Ee=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Ne=class{constructor(e){i(this,e),this.vegaMenuClick=o(this,"vegaMenuClick",7),this.menuClick=o(this,"menuClick",7),this.globalSlimmers={},this.renderer=new Ie,this.vegaLeftNavHierarchyController=new ke,this.controller=new Ve,this.menuClickEventEmitter=O(Ne,L),this.deprecatedPropertySlimmer=P(Ne,"counterBadge.count","counterBadge.counter",void 0),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.selected=!1,this.customSelectionEnabled=!1,this.target="_self"}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};Ee([f()],Ne.prototype,"globalSlimmers",void 0),Ee([d()],Ne.prototype,"renderer",void 0),Ee([d()],Ne.prototype,"vegaLeftNavHierarchyController",void 0),Ee([d()],Ne.prototype,"controller",void 0),Ee([d()],Ne.prototype,"menuClickEventEmitter",void 0),Ee([d()],Ne.prototype,"deprecatedPropertySlimmer",void 0),Ee([d()],Ne.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ne.style=':host{display:block}:host(.selected) .vega-links-icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.selected) a{background-color:rgba(var(--v-bg-selected, 0, 151, 255, 0.3))}:host .vega-counter-badge{position:relative;width:32px;height:20px}:host vega-counter-badge{position:absolute;top:10px;left:18px}:host a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}:host a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}:host .vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}:host .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}:host(:not(.selected)) a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}:host>a:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}';var _e=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ge extends c{render(){return e(n,{"data-key":this.itemKey},this.renderSectionHeader(),e("slot",null),this.renderListSeparator())}renderListSeparator(){return e("div",{class:"list-separator-container"},e("div",{class:"list-separator"}))}renderSectionHeader(){var t;return(null===(t=this.sectionHeader)||void 0===t?void 0:t.title)&&e("div",{class:"section-header"},e("div",{class:"section-header-title"},this.sectionHeader.title),this.sectionHeader.actionTitle&&e("vega-button-link",{label:this.sectionHeader.actionTitle,size:"small",link:this.sectionHeader.actionLink,eventful:this.sectionHeader.actionEventful,ref:e=>{z.addUniqueObserverToNode(e,H,(()=>{this.actionClickEventEmitter.emit()}))}}))}}_e([r()],Ge.prototype,"sectionHeader",void 0),_e([r()],Ge.prototype,"actionClickEventEmitter",void 0),_e([r()],Ge.prototype,"itemKey",void 0);var De=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const We=class{constructor(e){i(this,e),this.vegaActionClick=o(this,"vegaActionClick",7),this.actionClick=o(this,"actionClick",7),this.globalSlimmers={},this.renderer=new Ge,this.actionClickEventEmitter=O(We,I),this.vegaComponentUsageRuntimeMetricsSlimmer=new h}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};De([f()],We.prototype,"globalSlimmers",void 0),De([d()],We.prototype,"renderer",void 0),De([d()],We.prototype,"actionClickEventEmitter",void 0),De([d()],We.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),We.style=':host{display:block}:host(:last-child) .list-separator-container{display:none}.list-separator-container{padding-left:12px;padding-right:12px;padding-top:20px;padding-bottom:20px}.list-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.section-header{display:flex;align-items:center;gap:12px;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:4px}.section-header>.section-header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;flex:1 1 0%;overflow:hidden;text-transform:uppercase}@media screen and (min-width: 768px) and (max-width: 1023px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}.section-header>vega-button-link{flex-basis:0}';var Be=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ue extends v{constructor(){super({callback:()=>{this.updateMaxHeight()}})}watchMaxHeight(){this.updateMaxHeight()}updateMaxHeight(){const e=X(this.maxHeight,"widthAndHeight");this.currentMaxHeight=e}}Be([r()],Ue.prototype,"maxHeight",void 0),Be([r({writable:!0})],Ue.prototype,"currentMaxHeight",void 0),Be([l("watchMaxHeight")],Ue.prototype,"watchMaxHeight",null);const Ze=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!!e.source&&e.source.length>0}];var Te=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Fe=class{constructor(e){i(this,e),this.globalSlimmers={},this.listRenderer=new le,this.maxHeightController=new Ue,this.vegaComponentUsageRuntimeMetricsSlimmer=new h(Ze)}watchMaxHeight(){}render(){return p(e("slot",null)),s(e(n,{style:{maxHeight:this.currentMaxHeight}},this.listRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{maxHeight:["watchMaxHeight"]}}};Te([f()],Fe.prototype,"globalSlimmers",void 0),Te([d()],Fe.prototype,"listRenderer",void 0),Te([d()],Fe.prototype,"maxHeightController",void 0),Te([d()],Fe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Fe.style=":host{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));text-align:left;overflow-y:auto;width:300px}.vega-nav-list-container{padding:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}";export{fe as vega_left_nav,Le as vega_left_nav_group,Ne as vega_left_nav_link,We as vega_left_nav_section,Fe as vega_nav_card}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i,H as r,g as s}from"./p-6b2342e0.js";import{R as o}from"./p-8bc15ed0.js";import{c as a}from"./p-3a620268.js";import{s as n}from"./p-519a7d55.js";import{a as p,h as l,c as h}from"./p-528748fa.js";import{F as d}from"./p-320091b7.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-8ce9e214.js";import{F as g}from"./p-cb378636.js";import{c as x}from"./p-66647244.js";import{C as b}from"./p-2d0d575f.js";import{d as v}from"./p-5447a8e8.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-526e3634.js";import"./p-3a68b729.js";import"./p-0d18368b.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-8c30a60d.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!1===e.autoValidation}];var w=function(e,t,i,r){var s,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const j=class{constructor(r){e(this,r),this.vegaChange=t(this,"vegaChange",7),this.change=t(this,"change",7),this.globalSlimmers={},this.formFieldController=new d({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new o:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=x(j,v),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(u),this.value="",this.hint="",this.disabled=!1,this.required=!1,this.optional=!1,this.label="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.isInline=!1,this.columns=8,this.renderColorPickerContainer=()=>{const e=this.getValidColumns();return i("div",{class:p([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8",alignItems:"center",style:{maxWidth:34*e-8+"px"}},this.colors.map((e=>{const t=this.value===e;return i("div",{id:e,class:{"color-picker-inline-items":!0,selected:t},ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:a()},t?i("vega-icon",{icon:"checkmark",size:"size-16",class:{"v-text-black":this.isDarkColorCheckmark(this.value),"v-text-white":!this.isDarkColorCheckmark(this.value)}}):null)}))))},this.renderHintMessage=()=>i("vega-text",{text:this.hint}),this.updateValueProp=async e=>{this.disabled||(this.value=String(e.currentTarget.getAttribute("id")))}}watchValue(){this.resetValueIfInvalid(),this.changeEventEmitter.emit(this.value),b.notify(g,{host:this.host,detail:this.value})}watchValidationRules(){}connectedCallback(){this.resetValueIfInvalid()}render(){return n(i(r,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderColorPickerContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{"is-field-required":this.required,optional:this.optional,disabled:this.disabled,label:this.label})}getValidColumns(){const e=Math.floor(this.columns);return Number.isFinite(e)&&e>0?e:1}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),s=this.getLuminance(t),o=this.getLuminance(i);return r>Math.sqrt((s+.05)*(o+.05))-.05}getLuminance(e){const t=[l(e).r/255,l(e).g/255,l(e).b/255].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*t[0]+.7152*t[1]+.0722*t[2]}resetValueIfInvalid(){this.colors.some((e=>h(e).toUpperCase()==h(this.value).toUpperCase()))||(this.value="")}get host(){return s(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};w([f()],j.prototype,"globalSlimmers",void 0),w([c()],j.prototype,"formFieldController",void 0),w([c()],j.prototype,"changeEventEmitter",void 0),w([c()],j.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),j.style=':host{display:inline-block;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host(.disabled) .color-picker-inline{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .color-picker-inline-items:hover{box-shadow:none}:host(.disabled) .color-picker-inline-items:focus-within{box-shadow:none}:host .color-picker-inline{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding:12px;max-width:max-content}:host .color-picker-inline-items{display:flex;border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1));border-radius:4px;width:24px;height:24px;cursor:pointer;align-items:center;justify-content:center}:host .color-picker-inline-items.selected{border-color:rgba(var(--v-bg-inverted-primary, 4, 4, 28, 1))}:host .color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .color-picker-inline-items:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));box-shadow:0px 0px 0px 1px rgba(var(--v-bg-primary, 252, 252, 252, 1)) inset;border:1px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host .checkmark-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host .checkmark-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host vega-text{padding-left:8px;padding-right:8px;padding-top:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .color-picker-inline.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-hidden{display:none}:host vega-flex{flex-wrap:wrap}';export{j as vega_color_picker}
@@ -1 +0,0 @@
1
- import{h as e,F as t,r as o,c as r,H as i,g as a}from"./p-6b2342e0.js";import{s as l}from"./p-519a7d55.js";import{c as s,V as n,M as d,I as c}from"./p-6e1ab235.js";import{V as v,I as p}from"./p-8ce9e214.js";import{V as h}from"./p-6031bed1.js";import{D as f}from"./p-526e3634.js";import{a as g,d as u,D as b,r as m,E as x,F as w}from"./p-5447a8e8.js";import{g as C}from"./p-8b5d3a52.js";import{c as y}from"./p-3a620268.js";import{t as j}from"./p-aacf6920.js";import{c as F}from"./p-66647244.js";import{C as R}from"./p-2d0d575f.js";import{F as L}from"./p-cb378636.js";import{F as k}from"./p-320091b7.js";import{F as z}from"./p-fd70418f.js";import{D as E}from"./p-b19b1c08.js";import{T as M}from"./p-6cde45fc.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-6a334573.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-02841589.js";import"./p-3a68b729.js";import"./p-0d18368b.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-8bc15ed0.js";import"./p-87a4d75f.js";import"./p-982747ef.js";var V=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};class I extends n{render(){return e(t,null,e("vega-field-label",{isFieldRequired:this.required,disabled:this.disabled,optional:this.optional,label:this.label}),this.vegaFileUploaderContainerRenderer.render(),this.hint?e("vega-hint",null,this.hint):null,this.vegaFileUploaderFileListRenderer.render())}}V([s()],I.prototype,"required",void 0),V([s()],I.prototype,"optional",void 0),V([s()],I.prototype,"disabled",void 0),V([s()],I.prototype,"label",void 0),V([s()],I.prototype,"hint",void 0),V([s()],I.prototype,"vegaFileUploaderContainerRenderer",void 0),V([s()],I.prototype,"vegaFileUploaderFileListRenderer",void 0);var U=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};class O extends n{constructor(){super(...arguments),this.handleDropAreaClick=e=>{e.stopPropagation(),this.shouldDisableUploadButton()||this.triggerFileInputClick()},this.triggerFileInputClick=()=>{this.inputElementRef.click()},this.inputChangeHandler=e=>{e.stopPropagation();const t=this.getVegaFilesFromFileList(e.target.files);this.selectFileChangeEventEmitHandler(this.filterExceedLimitFiles(t)),this.inputElementRef.value=""},this.dropHandler=e=>{var t;if(e.preventDefault(),!this.shouldDisableUploadButton()){const o=this.getVegaFilesFromFileList(this.dropFileFilterController.process(null===(t=e.dataTransfer)||void 0===t?void 0:t.files));this.selectFileChangeEventEmitHandler(this.filterExceedLimitFiles(o))}}}getUploaderContainerRef(){return this.uploaderContainerRef}render(){return e("div",{class:"vega-file-uploader-container",ref:e=>this.uploaderContainerRef=e},e("input",{onChange:this.inputChangeHandler,type:"file",multiple:!this.fileLimitController.isSingleMode(),accept:this.accept,style:{display:"none"},ref:e=>this.inputElementRef=e}),"uploadButton"===this.variant?this.renderUploadButton():this.renderUploadDropArea())}renderUploadButton(){return e("vega-button",{label:"Upload Document",icon:h.getIconKey("arrow-up-from-line"),variant:"secondary",size:"small",disabled:this.shouldDisableUploadButton(),ref:e=>{f.addUniqueObserverToNode(e,g,this.triggerFileInputClick)}})}renderUploadDropArea(){return e("vega-box",{class:{"vega-file-upload-area":!0,disabled:this.shouldDisableUploadButton()},padding:"size-24",border:"border-input-field",borderStyle:"dashed",backgroundColor:"bg-tertiary",corners:"rounded-8",tabIndex:0,onDrop:this.dropHandler,onDragEnter:this.preventDefaultBehavior,onDragOver:this.preventDefaultBehavior,onClick:this.handleDropAreaClick,onKeyDown:y()},e("vega-flex",{gap:"size-8",alignItems:"center",justifyContent:"center"},e("vega-icon",{color:"text-link",icon:h.getIconKey("arrow-up-from-line")}),e("vega-font",{color:"text-link",variant:"font-btn-label"},this.translationSlimmer.t("Select or drop your file here"))))}preventDefaultBehavior(e){e.preventDefault()}selectFileChangeEventEmitHandler(e){e&&e.length&&(this.selectFileChangeEventEmitter.emit(e).defaultPrevented||this.vegaFileUploaderValueController.setValue(this.value&&this.value.length?(new Array).concat(this.value,e):e))}getVegaFilesFromFileList(e){const t=[];return e&&e.length&&Array.from(e).map((e=>{t.push({key:C(),name:e.name,url:e})})),t}shouldDisableUploadButton(){return this.disabled||!!(this.value&&this.maxCount&&this.value.length>=this.maxCount)}filterExceedLimitFiles(e){const t=Number(this.maxCount);if(!isNaN(t)&&t&&e.length){const o=Math.max(0,t-(this.value?this.value.length:0));return e.slice(0,o)}return e}}h.register({"arrow-up-from-line":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 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="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.3V208 320c0 17.7 14.3 32 32 32s32-14.3 32-32V208 141.3l73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128zM32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32H352c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"/></svg>'}}),U([s()],O.prototype,"variant",void 0),U([s()],O.prototype,"accept",void 0),U([s()],O.prototype,"disabled",void 0),U([s()],O.prototype,"value",void 0),U([s()],O.prototype,"selectFileChangeEventEmitter",void 0),U([s()],O.prototype,"vegaFileUploaderValueController",void 0),U([s()],O.prototype,"dropFileFilterController",void 0),U([s()],O.prototype,"translationSlimmer",void 0),U([s()],O.prototype,"fileLimitController",void 0),U([s()],O.prototype,"maxCount",void 0);var D=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};class A extends n{constructor(){super(...arguments),this.fileRemoveHandler=e=>{this.removeEventEmitter.emit(e).defaultPrevented||this.vegaFileUploaderValueController.setValue(this.value.filter((t=>t!==e)))},this.fileReUploadHandler=e=>{this.retryEventEmitter.emit(e)},this.filePreviewHandler=e=>{this.previewEventEmitter.emit(e)}}render(){const t=!this.value||this.value.length<1;return e("div",{class:{"vega-file-uploader-file-list":!0,"vega-file-list-hidden":t}},!t&&this.value.map((t=>e("vega-box",{key:t.key,class:"vega-file-uploader-file",padding:"size-8",corners:"rounded-8"},e("vega-flex",{alignItems:"start",justifyContent:"space-between"},e("vega-flex",{class:"vega-file-status-and-name",gap:"size-8",alignItems:"start"},e("div",{style:{paddingTop:"3px"}},this.vegaFileUploaderFileStatusRenderer.render(t.status,t.uploadingPercent)),e("vega-flex",{gap:"size-4",direction:"col"},e("vega-font",{color:"done"===t.status||"error"===t.status?"text-primary":"text-secondary",variant:"font-field-label"},t.name),"error"===t.status&&t.errorMessage&&e("vega-font",{color:"text-error",variant:"font-footnote1-short"},t.errorMessage))),e("vega-flex",{gap:"size-4",class:"vega-file-list-buttons",justifyContent:"end"},t.previewable&&e("vega-button-circle",{class:"vega-file-preview-button",variant:"icon-only",size:"small",icon:"zoom-in",iconColor:"text-secondary",label:"Preview",tooltip:{disableInteractive:!0},ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.filePreviewHandler(t)}))}}),"error"===t.status&&e("vega-button-circle",{variant:"icon-only",size:"small",icon:h.getIconKey("arrow-rotate-right"),iconColor:"text-secondary",label:"Retry",tooltip:{disableInteractive:!0},disabled:this.disabled,ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.fileReUploadHandler(t)}))}}),e("vega-button-circle",{variant:"icon-only",size:"small",icon:h.getIconKey("trash-can"),iconColor:"text-secondary",label:"Delete",tooltip:{disableInteractive:!0},disabled:this.disabled,ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.fileRemoveHandler(t)}))}})))))))}}h.register({"trash-can":j,"arrow-rotate-right":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M456 224c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24s-24 10.7-24 24v80.1l-20-23.5C371 63.4 309.1 32 240 32C116.3 32 16 132.3 16 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C316.2 418.9 279.7 432 240 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2 0 0L402.9 176H312c-13.3 0-24 10.7-24 24s10.7 24 24 24H456z"/></svg>'}}),D([s()],A.prototype,"value",void 0),D([s()],A.prototype,"disabled",void 0),D([s()],A.prototype,"vegaFileUploaderFileStatusRenderer",void 0),D([s()],A.prototype,"removeEventEmitter",void 0),D([s()],A.prototype,"vegaFileUploaderValueController",void 0),D([s()],A.prototype,"retryEventEmitter",void 0),D([s()],A.prototype,"previewEventEmitter",void 0);class S extends n{render(t,o){switch(t){case"uploading":return e("vega-loading-indicator",Object.assign({class:"vega-file-list-status",mode:o?"determinate":"indeterminate",size:"micro"},o?{percent:o}:{}));case"done":return e("vega-icon",{class:"vega-file-list-status",color:"text-success",icon:h.getIconKey("circle-check-regular")});case"error":return e("vega-icon",{class:"vega-file-list-status",color:"text-error",icon:h.getIconKey("circle-xmark")});default:return e("vega-loading-indicator",{class:"vega-file-list-status",mode:"determinate",size:"micro"})}}}h.register({"circle-check-regular":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M243.8 339.8C232.9 350.7 215.1 350.7 204.2 339.8L140.2 275.8C129.3 264.9 129.3 247.1 140.2 236.2C151.1 225.3 168.9 225.3 179.8 236.2L224 280.4L332.2 172.2C343.1 161.3 360.9 161.3 371.8 172.2C382.7 183.1 382.7 200.9 371.8 211.8L243.8 339.8zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/></svg>'},"circle-xmark":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/></svg>'}});var B=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};class H extends n{valueChangeHandler(e){!e||Array.isArray(e)?(this.changeEventEmitter.emit(e),R.notify(L,{host:this.host,detail:this.value})):e&&!Array.isArray(e)&&this.setValue(null)}setValue(e){this.value=e}}B([s()],H.prototype,"host",void 0),B([s({writable:!0})],H.prototype,"value",void 0),B([s()],H.prototype,"changeEventEmitter",void 0),B([d("watchValue")],H.prototype,"valueChangeHandler",null);var N=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};class P extends n{isSingleMode(){return 1===Number(this.maxCount)}checkMaxCount(){null!==this.maxCount&&this.maxCount<1&&(this.maxCount=null)}}N([s({writable:!0})],P.prototype,"maxCount",void 0),N([d("componentDidLoad"),d("watchMaxCount")],P.prototype,"checkMaxCount",null);var q=function(e,t,o,r){var i,a=arguments.length,l=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,o,l):i(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l};const G=class{constructor(e){o(this,e),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.vegaSelectedFileChange=r(this,"vegaSelectedFileChange",7),this.selectedFileChange=r(this,"selectedFileChange",7),this.vegaRemove=r(this,"vegaRemove",7),this.remove=r(this,"remove",7),this.vegaRetry=r(this,"vegaRetry",7),this.retry=r(this,"retry",7),this.vegaPreview=r(this,"vegaPreview",7),this.preview=r(this,"preview",7),this.globalSlimmers={},this.translationSlimmer=new M,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.formFieldController=new k({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new z:null}],validationRulesName:"validationRules",defaultValue:[],attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaFileUploaderContainerRenderer.getUploaderContainerRef(),touchableAreaGetter:()=>[this.vegaFileUploaderContainerRenderer.getUploaderContainerRef()]}),this.vegaFileUploaderRenderer=new I,this.vegaFileUploaderContainerRenderer=new O,this.vegaFileUploaderFileListRenderer=new A,this.vegaFileUploaderFileStatusRenderer=new S,this.vegaFileUploaderValueController=new H,this.dropFileFilterController=new E,this.fileLimitController=new P,this.changeEventEmitter=F(G,u),this.selectFileChangeEventEmitter=F(G,b),this.removeEventEmitter=F(G,m),this.retryEventEmitter=F(G,x),this.previewEventEmitter=F(G,w),this.label="",this.variant="uploadArea",this.hint="",this.value=[],this.disabled=!1,this.maxCount=null,this.required=!1,this.optional=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null}watchValue(e){}watchMaxCount(){}watchValidationRules(){}render(){return l(e(i,null,this.vegaFileUploaderRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{value:["watchValue"],maxCount:["watchMaxCount"],validationRules:["watchValidationRules"]}}};q([p()],G.prototype,"globalSlimmers",void 0),q([c()],G.prototype,"translationSlimmer",void 0),q([c()],G.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),q([c()],G.prototype,"formFieldController",void 0),q([c()],G.prototype,"vegaFileUploaderRenderer",void 0),q([c()],G.prototype,"vegaFileUploaderContainerRenderer",void 0),q([c()],G.prototype,"vegaFileUploaderFileListRenderer",void 0),q([c()],G.prototype,"vegaFileUploaderFileStatusRenderer",void 0),q([c()],G.prototype,"vegaFileUploaderValueController",void 0),q([c()],G.prototype,"dropFileFilterController",void 0),q([c()],G.prototype,"fileLimitController",void 0),q([c()],G.prototype,"changeEventEmitter",void 0),q([c()],G.prototype,"selectFileChangeEventEmitter",void 0),q([c()],G.prototype,"removeEventEmitter",void 0),q([c()],G.prototype,"retryEventEmitter",void 0),q([c()],G.prototype,"previewEventEmitter",void 0),G.style=':host{display:inline-block;text-align:left;width:100%;line-height:normal}:host .vega-file-uploader-container .vega-file-upload-area{text-align:center}:host .vega-file-uploader-container .vega-file-upload-area:hover{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border-color:rgba(var(--v-border-color-input-field-hover, 115, 160, 190, 1))}:host .vega-file-uploader-container .vega-file-upload-area:hover vega-icon,:host .vega-file-uploader-container .vega-file-upload-area:hover vega-font{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .vega-file-uploader-container .vega-file-upload-area:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}:host .vega-file-uploader-container .vega-file-upload-area:active{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host .vega-file-uploader-container .vega-file-upload-area:active vega-icon,:host .vega-file-uploader-container .vega-file-upload-area:active vega-font{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host .vega-file-uploader-container .vega-file-upload-area.disabled{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1));background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1));outline:none}:host .vega-file-uploader-container .vega-file-upload-area.disabled vega-icon,:host .vega-file-uploader-container .vega-file-upload-area.disabled vega-font{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-file-uploader-container vega-button::part(button):focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;box-shadow:0 0 0}:host .vega-file-uploader-container.error .vega-file-upload-area{border-color:rgba(var(--v-border-color-input-field-danger, 230, 50, 87, 1))}:host .vega-file-uploader-container.error .vega-file-upload-area:hover{border-color:rgba(var(--v-border-color-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-file-uploader-container.error .vega-file-upload-area:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}:host .vega-file-uploader-container.error .vega-file-upload-area:active{border-color:rgba(var(--v-border-color-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-file-uploader-container.error vega-button::part(button),:host .vega-file-uploader-container.error vega-button::part(button):hover{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1));border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1))}:host .vega-file-uploader-container.error vega-button::part(button):hover{background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host .vega-file-uploader-container.error vega-button::part(button):focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px;box-shadow:0 0 0}:host .vega-file-uploader-container.error vega-button::part(button):active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1));border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2))}:host .vega-file-uploader-file-list .vega-file-uploader-file .vega-file-preview-button{visibility:hidden}:host .vega-file-uploader-file-list .vega-file-uploader-file:hover{background-color:rgba(var(--v-bg-action-tertiary-hover, 4, 4, 28, 0.05))}:host .vega-file-uploader-file-list .vega-file-uploader-file:hover .vega-file-preview-button{visibility:visible}:host .vega-file-uploader-file-list .vega-file-list-buttons{margin-left:8px;flex-shrink:0}:host .vega-file-uploader-file-list .vega-file-list-status svg{width:16px;height:16px}:host .vega-file-uploader-file-list .vega-file-status-and-name{padding-top:5px}:host .vega-file-uploader-file-list .vega-file-status-and-name vega-font{word-break:break-word}:host vega-field-label{margin-bottom:8px}:host .vega-file-uploader-file-list{margin-top:8px}:host .vega-file-uploader-file-list.vega-file-list-hidden{display:none}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}';export{G as vega_file_uploader}
@@ -1 +0,0 @@
1
- import{h as e,H as t,r as i,c as o,g as a}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as s,M as l,V as n,I as d,L as c}from"./p-6e1ab235.js";import{V as h,I as p}from"./p-8ce9e214.js";import{R as v}from"./p-3dee1e55.js";import{c as g}from"./p-3a620268.js";import{S as b}from"./p-29e3eb12.js";import{O as f}from"./p-331a62d5.js";import{d as m}from"./p-526e3634.js";import{i as u}from"./p-3a68b729.js";import{f as x}from"./p-528748fa.js";import{C as w}from"./p-2d0d575f.js";import{P as j}from"./p-81dd00d0.js";import{g as y}from"./p-49a2e141.js";import{d as k}from"./p-5447a8e8.js";import{c as C}from"./p-66647244.js";import{F as R}from"./p-cb378636.js";import{M as z}from"./p-78a57a17.js";import{a as S}from"./p-52b8f2d2.js";import{i as O}from"./p-d27ae9ff.js";import{c as E}from"./p-3f183b52.js";import{C as T}from"./p-2c737fc8.js";import{F as I}from"./p-320091b7.js";import{R as V}from"./p-8bc15ed0.js";import"./p-8db904dc.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-b75ee3ba.js";import"./p-6a334573.js";import"./p-8c30a60d.js";import"./p-5f377954.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-f0e828d8.js";import"./p-abd7aeaa.js";var N=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class L extends n{componentWillRender(){this.currentSize=v.formatCustom(this.size)}render(){return e(t,{class:{block:this.block}},this.renderTooltip())}renderTooltip(){return e("vega-tooltip",Object.assign({trigger:this.disabled&&this.disabledTooltip?"hover":"none",alignment:"center"},this.disabledTooltip),this.renderSelectionChip())}renderSelectionChip(){return e("vega-box",{corners:"rounded-full",class:{"vega-selection-chip":!0,[`size-${this.currentSize}`]:!0,[`variant-${this.variant||"text"}`]:!0,checked:this.checked,error:this.showError,disabled:this.disabled},"aria-label":this.label||"No label defined",onClick:()=>{"radio"===this.selectType&&this.checked||this.checkedController.onCheck(!this.checked)},onKeyDown:g(),tabIndex:this.disabled?-1:0},this.renderContent())}renderContent(){return e("vega-flex",{gap:L.gapSizeMap[this.currentSize],"align-items":"center","justify-content":"text"===this.variant?"center":"start"},"swatch"===this.variant&&this.renderSwatch(),this.renderLabel())}renderLabel(){return e("vega-font",{color:"text-primary",class:"label vega-flex-grow",variant:L.labelFontMap[this.currentSize]},this.label)}renderSwatch(){return e("vega-box",{"background-color":"bg-primary",corners:"rounded-full",class:"swatch vega-flex-shrink-0"},e("vega-box",{"background-color":this.swatchColor,corners:"rounded-full"}))}}L.gapSizeMap={"extra-small":"size-4",small:"size-4",medium:"size-8",large:"size-8"},L.labelFontMap={"extra-small":"font-field-label-xs",small:"font-field-label-sm",medium:"font-field-label",large:"font-field-label-lg"},N([s()],L.prototype,"host",void 0),N([s()],L.prototype,"label",void 0),N([s()],L.prototype,"block",void 0),N([s()],L.prototype,"size",void 0),N([s()],L.prototype,"variant",void 0),N([s()],L.prototype,"swatchColor",void 0),N([s()],L.prototype,"disabledTooltip",void 0),N([s()],L.prototype,"disabled",void 0),N([s()],L.prototype,"selectType",void 0),N([s()],L.prototype,"checked",void 0),N([s()],L.prototype,"checkedController",void 0),N([s()],L.prototype,"showError",void 0),N([l("componentWillRender")],L.prototype,"componentWillRender",null);var A=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class F extends n{setChecked(e){this.checked=e}onCheck(e){const t=e?this.value:"";this.setChecked(e),this.changeEventEmitter.emit(t)}}A([s()],F.prototype,"host",void 0),A([s({writable:!0})],F.prototype,"checked",void 0),A([s()],F.prototype,"changeEventEmitter",void 0),A([s()],F.prototype,"value",void 0);var D=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class G extends b{constructor(){super({parent:"vega-selection-chip-group",subStates:[{subStateName:"disabled",parentStateName:"disabled",callback:e=>{"boolean"==typeof e&&(this.disabled=e)}},{subStateName:"selectType",parentStateName:"selectType",callback:e=>{this.selectType="checkbox"===e?"checkbox":"radio"}},{subStateName:"checked",parentStateName:"value",callback:e=>{this.checkedController.setChecked(Array.isArray(e)?e.includes(this.value):e===this.value)}}]})}}D([s()],G.prototype,"host",void 0),D([s({writable:!0})],G.prototype,"disabled",void 0),D([s({writable:!0})],G.prototype,"selectType",void 0),D([s()],G.prototype,"value",void 0),D([s()],G.prototype,"checkedController",void 0);var W=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class M extends n{connectedCallback(){this.selectionChipGroup=x(this.host,"vega-selection-chip-group"),this.selectionChipGroup&&(this.fieldErrorObserver=new f(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),w.register(m.getSubject(this.selectionChipGroup,u),this.fieldErrorObserver))}disconnectedCallback(){this.selectionChipGroup&&w.unregister(m.getSubject(this.selectionChipGroup,u),this.fieldErrorObserver)}canAcceptFieldErrorObserver(){return!0}fieldErrorObserverListener(e){this.showError=e.showError}}W([s({writable:!0})],M.prototype,"showError",void 0),W([s()],M.prototype,"host",void 0),W([l("connectedCallback")],M.prototype,"connectedCallback",null),W([l("disconnectedCallback")],M.prototype,"disconnectedCallback",null);var _=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const H=class{constructor(e){i(this,e),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.globalSlimmers={},this.renderer=new L,this.checkedController=new F,this.stateController=new G,this.showErrorController=new M,this.pageResizeObserverSlimmer=new j,this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.changeEventEmitter=C(H,k),this.showError=!1,this.currentBreakpoint=y(),this.label="",this.size="medium",this.variant="text",this.disabled=!1,this.block=!1,this.swatchColor="bg-status-info"}watchSize(){}componentWillRender(){}render(){return r(this.renderer.render(),this.host)}get host(){return a(this)}static get watchers(){return{size:["watchSize"]}}};_([p()],H.prototype,"globalSlimmers",void 0),_([d()],H.prototype,"renderer",void 0),_([d()],H.prototype,"checkedController",void 0),_([d()],H.prototype,"stateController",void 0),_([d()],H.prototype,"showErrorController",void 0),_([d()],H.prototype,"pageResizeObserverSlimmer",void 0),_([d()],H.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_([d()],H.prototype,"changeEventEmitter",void 0),H.style=":host(.block){display:block}:host(.block) vega-tooltip{display:block}:host{max-width:100%;display:inline-block;vertical-align:middle;line-height:0}:host vega-tooltip{max-width:100%}:host .swatch{margin:2px;padding:1px;box-sizing:border-box}:host .swatch vega-box{width:100%;height:100%}:host .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .vega-selection-chip{background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));cursor:pointer;margin:1px}:host .variant-text .label{text-align:center}:host .size-extra-small.variant-swatch.vega-selection-chip{padding-top:2px;padding-bottom:2px;padding-left:2px;padding-right:12px}:host .size-extra-small.variant-text.vega-selection-chip{padding-left:12px;padding-right:12px;padding-top:2px;padding-bottom:2px}:host .size-extra-small vega-flex{height:16px}:host .size-extra-small .swatch{width:12px;height:12px}:host .size-small.variant-swatch.vega-selection-chip{padding-top:4px;padding-bottom:4px;padding-left:4px;padding-right:12px}:host .size-small.variant-text.vega-selection-chip{padding-left:12px;padding-right:12px;padding-top:4px;padding-bottom:4px}:host .size-small vega-flex{height:24px}:host .size-small .swatch{width:20px;height:20px}:host .size-medium.variant-swatch.vega-selection-chip{padding-top:4px;padding-bottom:4px;padding-left:4px;padding-right:16px}:host .size-medium.variant-text.vega-selection-chip{padding-left:16px;padding-right:16px;padding-top:4px;padding-bottom:4px}:host .size-medium vega-flex{height:32px}:host .size-medium .swatch{width:28px;height:28px}:host .size-large.variant-swatch.vega-selection-chip{padding-top:4px;padding-bottom:4px;padding-left:4px;padding-right:20px}:host .size-large.variant-text.vega-selection-chip{padding-left:20px;padding-right:20px;padding-top:4px;padding-bottom:4px}:host .size-large vega-flex{height:40px}:host .size-large .swatch{width:36px;height:36px}:host .vega-selection-chip:not(.disabled){background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-tile, 171, 198, 216, 1))}:host .vega-selection-chip:not(.disabled):hover{background-color:rgba(var(--v-bg-tile-hover, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-tile-hover, 115, 160, 190, 1))}:host .vega-selection-chip:not(.disabled):focus-visible{background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border:1px solid rgba(var(--v-border-tile-focus, 19, 98, 226, 1))}:host .vega-selection-chip:not(.disabled).checked{background-color:rgba(var(--v-bg-tile-selected, 242, 247, 255, 1));border:2px solid rgba(var(--v-border-tile-selected, 19, 98, 226, 1));margin:0px}:host .vega-selection-chip:not(.disabled).checked:hover{background-color:rgba(var(--v-bg-tile-selected-hover, 229, 239, 255, 1));border:2px solid rgba(var(--v-border-tile-selected-hover, 4, 112, 236, 1))}:host .vega-selection-chip:not(.disabled).checked:focus-visible{background-color:rgba(var(--v-bg-tile-selected, 242, 247, 255, 1));border:2px solid rgba(var(--v-border-tile-selected-focus, 19, 98, 226, 1))}:host .vega-selection-chip:not(.disabled).error{background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-selection-chip:not(.disabled).error:hover{background-color:rgba(var(--v-bg-tile-hover, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-selection-chip:not(.disabled).error:focus-visible{background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px;border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1))}:host .vega-selection-chip.disabled{background-color:rgba(var(--v-bg-tile, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));pointer-events:none;color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-selection-chip.disabled:focus-visible{outline:none}:host .vega-selection-chip.disabled vega-font{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-selection-chip.disabled .swatch{opacity:0.5}";var P=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class $ extends n{getGroupContainerRef(){return this.groupContainerRef}render(){return e("div",null,this.renderLabel(),this.renderContainer(),this.renderHint())}renderLabel(){return e("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,optional:this.optional,label:this.label})}renderContainer(){return e("div",{class:"container",ref:e=>this.groupContainerRef=e},e("slot",null))}renderHint(){return this.hint&&e("div",{class:"vega-hint"},e("label",null,this.hint))}}P([s()],$.prototype,"host",void 0),P([s()],$.prototype,"label",void 0),P([s()],$.prototype,"required",void 0),P([s()],$.prototype,"optional",void 0),P([s()],$.prototype,"hint",void 0),P([s()],$.prototype,"disabled",void 0);var q=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class U extends n{watchValue(){this.changeEventEmitter.emit(this.value),w.notify(R,{host:this.host,detail:this.value})}setValue(e){this.valueGuard(e)&&(this.value=e)}valueGuard(e){switch(this.selectType){case"radio":return"string"==typeof e;case"checkbox":return Array.isArray(e)&&e.every((e=>"string"==typeof e));default:return c.warn(`Invalid selection chip group value ${e} for ${this.selectType} mode`),!1}}}q([s()],U.prototype,"host",void 0),q([s({writable:!0})],U.prototype,"value",void 0),q([s()],U.prototype,"changeEventEmitter",void 0),q([s()],U.prototype,"selectType",void 0),q([l("watchValue")],U.prototype,"watchValue",null);var K=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class B extends n{constructor(){super(...arguments),this.mutationObserver=new z({target:()=>this.host,options:{childList:!0,subtree:!0,attributes:!0,attributeFilter:["checked"]},mutationFilter:S("VEGA-SELECTION-CHIP"),callback:this.syncChipArrayAndValue.bind(this)}),this.selectionChipArray=[]}disconnectedCallback(){}componentWillLoad(){this.value&&0!==this.value.length||this.syncChipArrayAndValue()}componentDidLoad(){}watchSelectType(){this.syncChipArrayAndValue()}getSelectionChipArray(){return this.selectionChipArray}syncChipArrayAndValue(e){this.selectionChipArray=Array.from(this.host.querySelectorAll("vega-selection-chip")),"checkbox"===this.selectType?this.setValueFromCheckboxItems():this.setValueFromRadioItems(e)}setValueFromCheckboxItems(){const e=this.selectionChipArray.filter((e=>e.checked)).map((e=>e.value));O(this.value,e,!0)||this.valueController.setValue(e)}setValueFromRadioItems(e){const t=this.findAttributeMutation(e);if(t){const e=this.getCurrentChip(t);e&&e.checked&&this.valueController.setValue(e.value)}else{const e=this.getFirstCheckedChip();this.valueController.setValue(e?e.value:"")}}findAttributeMutation(e){return e&&e.find((e=>e.attributeName))}getCurrentChip(e){if(e&&"VEGA-SELECTION-CHIP"===e.target.tagName&&"checked"===e.attributeName)return e.target}getFirstCheckedChip(){return this.selectionChipArray.find((e=>e.checked))}}K([s()],B.prototype,"host",void 0),K([s()],B.prototype,"selectType",void 0),K([s()],B.prototype,"valueController",void 0),K([s()],B.prototype,"value",void 0),K([d()],B.prototype,"mutationObserver",void 0),K([l("disconnectedCallback")],B.prototype,"disconnectedCallback",null),K([l("componentWillLoad")],B.prototype,"componentWillLoad",null),K([l("componentDidLoad")],B.prototype,"componentDidLoad",null),K([l("watchSelectType")],B.prototype,"watchSelectType",null);var J=function(e,t,i,o){var a,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const Q=class{constructor(e){i(this,e),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.globalSlimmers={},this.renderer=new $,this.itemsController=new B,this.valueController=new U,this.formFieldController=new I({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new V:null}],validationRulesName:"validationRules",inputContainerGetter:()=>this.renderer.getGroupContainerRef(),touchableAreaGetter:()=>this.itemsController.getSelectionChipArray(),defaultValue:e=>"checkbox"===e.selectType?[]:"",attributeGetter:e=>this[e]}),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.changeEventEmitter=C(Q,k),this.valueNotifySlimmer=E(Q,"value","watchValue"),this.disabledNotifySlimmer=E(Q,"disabled","watchDisabled"),this.selectTypeNotifySlimmer=E(Q,"selectType","watchSelectType"),this.changeEventPrevent=new T([k],(()=>this.host),!0),this.label="",this.selectType="radio",this.value="checkbox"===this.selectType?[]:"",this.optional=!1,this.validationRules=[],this.isValid=null}watchSelectType(){}watchValue(){}watchDisabled(){}watchValidationRules(){}render(){return r(e(t,null,this.renderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{selectType:["watchSelectType"],value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};J([p()],Q.prototype,"globalSlimmers",void 0),J([d()],Q.prototype,"renderer",void 0),J([d()],Q.prototype,"itemsController",void 0),J([d()],Q.prototype,"valueController",void 0),J([d()],Q.prototype,"formFieldController",void 0),J([d()],Q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),J([d()],Q.prototype,"changeEventEmitter",void 0),J([d()],Q.prototype,"valueNotifySlimmer",void 0),J([d()],Q.prototype,"disabledNotifySlimmer",void 0),J([d()],Q.prototype,"selectTypeNotifySlimmer",void 0),J([d()],Q.prototype,"changeEventPrevent",void 0),Q.style=':host{display:block}:host vega-field-label{margin-bottom:8px}:host .vega-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-top:4px;padding-left:8px;padding-right:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-hint{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-error{display:block;margin-top:12px;margin-left:8px;margin-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}';export{H as vega_selection_chip,Q as vega_selection_chip_group}
@@ -1 +0,0 @@
1
- import{M as s,i as t}from"./p-e62d41ee.js";import{b as e}from"./p-312d8205.js";class r extends s{constructor(s,e){super(),this.type=t.REPLACE_SELECTED_TEXT,this.textToBeInsert="",this.textToBeInsert=s,this.currentRange=e}}class o extends e{constructor(s={}){super(),this.config=s}prepareBeforeLoad(s){o.configStore.set(s,this.config)}destroyExtension(){var s;(null===(s=this.extensionContext)||void 0===s?void 0:s.host)&&o.configStore.delete(this.extensionContext.host)}}o.configStore=o.createStateStore();export{r as R,o as V}
@@ -1 +0,0 @@
1
- import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-526e3634.js";import{e as s,f as n}from"./p-3a68b729.js";import{d as r,c as i}from"./p-02841589.js";import{L as o}from"./p-6e1ab235.js";import{i as c}from"./p-8db904dc.js";import{T as a}from"./p-b438e68b.js";import{g as l}from"./p-8b5d3a52.js";import{V as h}from"./p-3e09aeed.js";import{c as u}from"./p-a841cf13.js";import{f as d}from"./p-528748fa.js";var f,p;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(f||(f={}));class w{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(p||(p={}));class g extends w{}const m=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.dtoName}};var x,S,A,y;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.NEST_LIST_ITEMS="NEST_LIST_ITEMS",t.UNNEST_LIST_ITEMS="UNNEST_LIST_ITEMS",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT",t.DELETE_SELECTED_CONTENT="DELETE_SELECTED_CONTENT"}(x||(x={}));class O{constructor(){this.isFlushable=!1}}function E(t){const e={},s=t.getAttribute("style");if(!s)return e;const n=function(t){const e=[];let s="",n=0;for(let r=0;r<t.length;r++){const i=t[r];"("===i?(n++,s+=i):")"===i?(n--,s+=i):";"===i&&0===n?(e.push(s),s=""):s+=i}return s&&e.push(s),e}(s);for(const t of n){const s=t.trim(),n=s.indexOf(":"),i=s.substring(0,n).trim(),o=s.substring(n+1).trim();e[r(i)]=o}return e}function T(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function v(t){return t.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]+|#[0-9]+|#x[a-fA-F0-9]+);)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}class N{constructor(){this.classNameToBeAdded=""}filterAnnotations(t){const e=t.customStyle;return e?(this.extractAndDeleteMatchedStyles(e),0===Object.keys(e).length&&delete t.customStyle,t):t}filterAndDeleteStyles(t,e){const s=new Set(e);return this.extractAndDeleteMatchedStyles(t)&&this.classNameToBeAdded&&s.add(this.classNameToBeAdded),{styles:t,classNames:Array.from(s)}}refillStyles(t){this.classNameToBeAdded&&t.classList.remove(this.classNameToBeAdded);const e=E(t),s=Object.assign(Object.assign({},this.stylesToBeFiltered),e),n=Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("");t.setAttribute("style",n)}canFilter(t){return!1}canRefill(t,e){return!1}toCssText(){return""}get alwaysFilter(){return!1}extractAndDeleteMatchedStyles(t){let e=!1;const s=this.stylesToBeFiltered;if(t&&s){const n=Object.keys(s);for(const r of n)t[r]===s[r]&&(delete t[r],e=!0)}return e}buildCssTextForStyles(t,e){return`${`.${N.RTE_CONTENT_CONTAINER_CLASS_NAME}`+(e?` .${e}`:` ${t}`)} { ${Object.entries(this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")} }`}convertStylesMapToCssText(t){return Object.entries(t||this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}isBlockOrNodeStylesMatchFilterStyles(t,e){const s=t.getStyles({standalone:!0});return this.isMatchFilterStyles(s,e)}isMatchFilterStyles(t,e){return(e&&e.length>0?e:Object.keys(this.stylesToBeFiltered)).every((e=>t[e]===this.stylesToBeFiltered[e]))}}N.RTE_CONTENT_CONTAINER_CLASS_NAME="vega-rte-content",function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(S||(S={}));class b extends w{}class C{static isTextBlock(t){return t===this.RTE_TEXT_BLOCK_CLASS_NAME}static isCodeBlock(t){return"RTECodeBlock"===t}static isListBlock(t){return"RTEListBlock"===t}static isListItemBlock(t){return"RTEListItemBlock"===t}static isTextNode(t){return t===this.RTE_TEXT_NODE_CLASS_NAME}static isLinkNode(t){return this.isTextNode(t.dtoName)&&!!t.getAnnotationByType(S.LINK)}static isCodeNode(t){if(this.isTextNode(t.dtoName)){const e=t.getAnnotationByType(S.CODE);return!!e&&e.code}return!1}static isImageNode(t){return"RTEImageNode"===t.dtoName}static isCodeBlockNode(t){return"RTECodeBlockNode"===t.dtoName}}C.RTE_TEXT_NODE_CLASS_NAME="RTETextNode",C.RTE_TEXT_BLOCK_CLASS_NAME="RTETextBlock";class L extends N{constructor(){super(...arguments),this.stylesToBeFiltered=R.getDefaultStyles(),this.elementTagName="a"}filterAnnotations(t){const e=t.link;return(null==e?void 0:e.customStyle)?(this.extractAndDeleteMatchedStyles(e.customStyle),0===Object.keys(e.customStyle).length&&delete e.customStyle,t):t}canFilter(t){return C.isLinkNode(t)}canRefill(t,e){return"RTETextNode"===t&&e.matches(this.elementTagName)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}filterLinkGroupInlineStyles(t){const e=t.style,s=t.class?t.class.split(" "):[],n=this.filterAndDeleteStyles(e,s);return n.styles&&Object.keys(n.styles).length>0&&(t.style=n.styles),n.classNames&&n.classNames.length>0&&(t.class=n.classNames.join(" ")),t.style&&0===Object.keys(t.style).length&&delete t.style,t}}class R extends w{constructor(t){super(),this.type=f.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}static getDefaultStyles(){return{color:"rgba(var(--v-text-link, 19, 98, 226, 1))"}}clone(){const t=new R("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){let s=this.toJsx(t,e);return(null==e?void 0:e.filterInlineStyles)&&(s=R.linkGroupFilterStylesStrategy.filterLinkGroupInlineStyles(s)),Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${i(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&Object.assign(s,R.getDefaultStyles()),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}}R.linkGroupFilterStylesStrategy=new L;class k extends g{constructor(t){super(),this.type=p.ALIGNMENT,this.textAlign=t}static from(t){return[p.ALIGNMENT,new k(t)]}static getDefaultStyles(t){switch(t){case"right":case"center":case"justify":return{textAlign:t};case"left":default:return{textAlign:"left"}}}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new k(this.textAlign)}renderStyle(t){return(null==t?void 0:t.standalone)?k.getDefaultStyles(this.textAlign):null}}class j extends g{constructor(t){super(),this.type=p.INDENT,this.indent=Math.max(0,t)}static from(t){return[p.INDENT,new j(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new j(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class _{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof O?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}_.registry=new Map;class ${static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=_.get(t,e),n=()=>{const s=t instanceof O?t.type:t.constructor.name,n=$.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);o.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!$.get(t,e.constructor.name)}}$.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(A||(A={}));class I extends w{}class B extends I{constructor(t){super(),this.type=A.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[A.CUSTOM_ATTRIBUTE,new B(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new B(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(c)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class D extends I{constructor(t){super(),this.type=A.CUSTOM_CLASS,this.customClass=t}static from(t){return[A.CUSTOM_CLASS,new D(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new D(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class M extends I{constructor(t){super(),this.type=A.CUSTOM_STYLE,this.customStyle=t}static from(t){return[A.CUSTOM_STYLE,new M(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new M(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${v(Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" "))}"`}}class F extends g{constructor(t){super(),this.type=p.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[p.INTERNAL_WRAPPER,new F(t)]}clone(){return new F(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class H{constructor(t){this.dtoName=t instanceof U?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof M)).map((e=>e.renderStyle(t))).filter(c);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoName?t instanceof g:t instanceof b}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}class P{static register(t,e){var s;const n=null!==(s=this.registry.get(t))&&void 0!==s?s:new Set;n.add(e),this.registry.set(t,n)}static getStrategies(t){var e;return Array.from(null!==(e=this.registry.get(t))&&void 0!==e?e:[])}static executeTheStrategyFilterAction(t,e,s){return this.getStrategies(t.dtoName).filter((e=>e.canFilter(t))).reduce(((t,e)=>e.filterAndDeleteStyles(t.styles,t.classNames)),{styles:e,classNames:s})}static executeTheStrategyRefillAction(t,e){this.getStrategies(t).filter((s=>s.canRefill(t,e))).forEach((t=>{t.refillStyles(e)}))}static generateAllStylesContent(t=!1){const e=[];return t&&(e.push("/* Font-face imports begin */\n"),e.push(Object.keys(a).map((t=>`@import url('${a[t].url}');\n`)).join(" ")),e.push("/* Font-face imports end */\n")),this.registry.forEach((t=>{t.forEach((t=>{const s=t.toCssText();s&&!e.includes(s)&&e.push(s)}))})),e.join(" ")}}P.registry=new Map,function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(y||(y={}));class J{constructor(t,e){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new H(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof D)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getElementRef(){return m.getDOMByEntity(this)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0},["textDecoration"]),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=P.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${v(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const K=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof U)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof J))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class U{constructor(t){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=K.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(c)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return k.from(e);case"indent":return j.from(e);case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e);case"internalWrapper":return F.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);c(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(p.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof R||t instanceof F))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof I)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof U?t.getFirstNode():t}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new H(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof D)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0}),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=P.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${v(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?$.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();if(e instanceof R||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply)this.doAnnotationActionApply(t);else{const e=$.get(t.constructor.name,this.constructor.name);e&&e.execute(t,this)}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class W{}class G extends W{constructor(){super(...arguments),this.doSplit=!0}}class z extends w{constructor(t){super(),this.type=f.SELECTION_RANGE,this.range=t}clone(){return new z(this.range)}}const V="700",X="bold",q="italic",Y="underline",Z="line-through";class Q extends b{constructor(t){super(),this.type=S.STRIKETHROUGH,this.strikethrough=t}static from(t){return[S.STRIKETHROUGH,new Q(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new Q(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class tt extends b{constructor(t){super(),this.type=S.UNDERLINE,this.underline=t}static from(t){return[S.UNDERLINE,new tt(t)]}toJSON(){return{underline:this.underline}}clone(){return new tt(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class et extends b{constructor(t){super(),this.type=S.ITALIC,this.italic=t}static from(t){return[S.ITALIC,new et(t)]}toJSON(){return{italic:this.italic}}clone(){return new et(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class st extends b{constructor(t){super(),this.type=S.BOLD,this.bold=t}static from(t){return[S.BOLD,new st(t)]}toJSON(){return{bold:this.bold}}clone(){return new st(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class nt extends b{constructor(t,e=!0){super(),this.type=S.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[S.CODE,new nt(t,e)]}static getDefaultStyles(){return{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}}toJSON(){return{code:this.code}}clone(){return new nt(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?nt.getDefaultStyles():null}}const rt={key:"black",light:"#111128",dark:"#E3E3E8"},it=[rt,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],ot="​",ct=[{key:"title"},{key:"subtitle"},{key:"heading-1"},{key:"heading-2"},{key:"heading-3"},{key:"paragraph"}],at=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]],lt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),ht=22;class ut extends b{constructor(t){super(),this.type=S.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[S.TEXT_COLOR,new ut(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new ut(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:h.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return it.find((e=>e.key===t))||it[0]}}class dt extends b{constructor(t,e=!0){super(),this.type=S.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[S.LINK,new dt(t,e)]}toJSON(){return{link:this.link}}clone(){return new dt(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class ft extends W{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new R(this.groupKey)}}class pt extends W{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class wt{execute(t,e){return o.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(A.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new M(s.removeStyles(e)))}createNewParagraph(t){const e=K.getRTEBlockClass("paragraph");if(e)return e.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.dtoName?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}getDOMByEntity(t){return m.getDOMByEntity(t)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class gt extends O{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class mt extends wt{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(f.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof G&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new gt(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,c=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},a=i&&m.getEntityByDOM(i),l=o&&m.getEntityByDOM(o);if(a&&a.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,a,l]=c(e.text,r,i);return this.setApplyTargetNode(a),[o,a,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=c(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class xt extends G{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new st(this.bold)}}class St extends w{constructor(){super(...arguments),this.type=f.CLEAR_FORMATTING,this.items=[S.BOLD,S.ITALIC,S.UNDERLINE,S.STRIKETHROUGH,S.TEXT_COLOR,S.CODE,A.CUSTOM_STYLE]}}class At extends G{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new St}}class yt extends G{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new nt(this.code)}}class Ot extends W{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class Et extends G{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new et(this.italic)}}class Tt extends G{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,c(n)&&(this.doSplit=n)}toAnnotation(){return new dt(this.link)}}class vt extends G{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new Q(this.strikethrough)}}class Nt extends G{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new tt(this.underline)}}class bt extends wt{handleAction(t,e){const s=t.toAnnotation();if(t instanceof Ot)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof St))return s instanceof b||s instanceof z?(t instanceof Tt&&(c(t.newText)&&(e.text=t.newText),e.parent.apply(new ft(t.link.groupKey,[e],t.type))),t instanceof yt&&this.handleAction(new At,e),t instanceof xt&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof Et&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof Nt||t instanceof vt)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class Ct extends O{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class Lt extends wt{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new Ct)}}class Rt extends O{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class kt extends wt{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let c=s.text;if(n===r&&i===o&&t)c=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,a=r.parentElement,l=e&&m.getEntityByDOM(e),h=a&&m.getEntityByDOM(a);let u=0,d=s.text.length;l&&l===s?(u=i,d=n===r?o:d):h&&h===s&&(d=o),c=s.text.slice(0,u)+t+s.text.slice(d)}s.apply(new Rt(c))}}}class jt extends w{constructor(t){super(),this.type=S.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new jt(e);return o.groupId=t.groupId,o.child=s?jt.from(s)[1]:void 0,o.customAttribute=i?B.from(i)[1]:void 0,o.customClass=r?D.from(r)[1]:void 0,o.customStyle=n?M.from(n)[1]:void 0,[S.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new jt(this.htmlTag);return r.groupId=this.groupId,r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}renderProps(){var t,e,s;return Object.assign(Object.assign({},null===(t=this.customAttribute)||void 0===t?void 0:t.render()),{style:null===(e=this.customStyle)||void 0===e?void 0:e.renderStyle(),class:null===(s=this.customClass)||void 0===s?void 0:s.renderClass().join(" ")})}toJSON(){var t,e,s,n;return{inlineHtml:u({htmlTag:this.htmlTag,groupId:this.groupId,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class _t extends wt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class $t extends wt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const t=e.annotationMap.get(S.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(f.LINK_GROUP)}}e.annotationMap.delete(S.LINK)}}class It extends b{constructor(t){super(),this.type=S.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[S.PLAIN_TEXT,new It(t)]}clone(){return new It(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return this.plainText?{plainText:this.plainText}:void 0}}class Bt extends G{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new ut(this.textColor)}}class Dt extends J{constructor(t,e,s,n){super(t,n),this.dtoName=Dt.dtoName,this.type=y.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new Dt(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new ft(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(c))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return st.from(e);case"italic":return et.from(e);case"underline":return tt.from(e);case"strikethrough":return Q.from(e);case"code":return nt.from(e,n);case"textColor":return ut.from(e);case"link":return dt.from(e,n);case"inlineHtml":return jt.from(e);case"plainText":return It.from(e)}return J.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof b||t instanceof I||t instanceof jt)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(t){const e=this.getAnnotationByType(S.INLINE_HTML);return e?this.renderWithWrapperStr(e,t):this.renderTextStr(t)}cloneWithText(t){return new Dt(l(),t,this.parent,super.cloneAnnotations())}clone(t){return new Dt(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!(this.getAnnotationByType(S.INLINE_HTML)||this.text&&"​"!==this.text&&"\n"!==this.text)}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}getInlineHtmlTagAtDepth(t){const e=this.getInlineHtmlAnnotationAtDepth(t);return e?lt.has(e.htmlTag)?null:{htmlTag:e.htmlTag,attrStr:this.annotationAttrStr(e),groupId:e.groupId,annotation:e}:null}renderHtmlFromDepth(t,e){if(0===t)return this.toHtml(e);const s=this.getInlineHtmlAnnotationAtDepth(t);return s?this.renderWithWrapperStr(s,e):this.renderTextStr(e)}getInlineHtmlAnnotationAtDepth(t){let e=this.getAnnotationByType(S.INLINE_HTML);for(let s=0;s<t&&e;s++)e=e.child;return e}registerModifyStrategy(){const t=this.constructor.name;Dt.registerActionStrategyStatus[t]||(this.isContentEditable()&&($.register(x.UPDATE_TEXT,t,new Lt),$.register(x.REPLACE_SELECTED_TEXT,t,new kt),$.register(x.LINK_GROUP_NODE_SPLIT,t,new _t),$.register(Tt.name,t,new bt)),$.register(G.name,t,new mt),$.register(x.DELETE_LINK_GROUP,t,new $t),$.register(xt.name,t,new bt),$.register(At.name,t,new bt),$.register(Et.name,t,new bt),$.register(Nt.name,t,new bt),$.register(Bt.name,t,new bt),$.register(vt.name,t,new bt),$.register(yt.name,t,new bt),$.register(W.name,t,new bt),Dt.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(f.SELECTION_RANGE);if(t instanceof G&&t.doSplit&&e){const e=$.get(G.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){$.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof pt)return void this.syncUpSelectedNodes(t);s instanceof z||this.syncUpSelectedNodes(t);const n=$.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=$.get(W.name,Dt.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t,e){const{htmlTag:s,child:n}=t,r=this.annotationAttrStr(t);return n?`<${s}${r}>${this.renderWithWrapperStr(n,e)}</${s}>`:lt.has(s)?`<${s}${r}>`:this.text?`<${s}${r}>${this.renderTextStr(e)}</${s}>`:`<${s}${r}></${s}>`}annotationAttrStr(t){const{customAttribute:e,customClass:s,customStyle:n}=t,r=[...(null==e?void 0:e.toString())||[],null==s?void 0:s.toString(),null==n?void 0:n.toString()].filter(c);return r.length>0?` ${r.join(" ")}`:""}renderTextStr(t){var e;const s=(null===(e=this.getAnnotationByType(S.CODE))||void 0===e?void 0:e.code)?"code":"span",n=super.generateAttributeString(t);return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${s}${n}>${"code"===s?T(this.text):this.text}</${s}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(S.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof b&&!(t instanceof dt)&&!(t instanceof It)||t instanceof I)).length}}Dt.registerActionStrategyStatus={},Dt.htmlTag="span",Dt.dtoName="RTETextNode";class Mt extends O{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}const Ft={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},Ht=Object.assign(Object.assign({},Ft),{marginTop:"0px",marginBottom:"0px"}),Pt={paragraph:Ht,title:Object.assign(Object.assign({},Ft),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"}),subtitle:Object.assign(Object.assign({},Ft),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"}),"heading-1":Object.assign(Object.assign({},Ht),{fontSize:"22px",lineHeight:"24px",minHeight:"24px"}),"heading-2":Object.assign(Object.assign({},Ht),{fontSize:"20px",lineHeight:"24px",minHeight:"24px"}),"heading-3":Object.assign(Object.assign({},Ht),{fontSize:"18px"}),"heading-4":Object.assign({},Ht),"heading-5":Object.assign(Object.assign({},Ht),{fontSize:"14px"}),"heading-6":Object.assign(Object.assign({},Ht),{fontSize:"12px"})};class Jt extends g{constructor(t){super(),this.type=p.TEXT_STYLE,this.textStyle=t}static from(t){return[p.TEXT_STYLE,new Jt(t)]}static getDefaultStyles(t){return t?Pt[t]:null}toJSON(){return{textStyle:this.textStyle}}clone(){return new Jt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.textStyle?Jt.getDefaultStyles(this.textStyle):null}}class Kt extends W{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Jt(this.textStyle)}}class Ut extends wt{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new xt(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new Ot(S.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class Wt extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class Gt extends O{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class zt extends wt{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const o=s.children.slice(0,i),c=s.children.slice(i+1);t.isContentEditable()?(n&&o.push(t.cloneWithText(n)),r&&c.unshift(t.cloneWithText(r))):e>0?o.push(t):c.unshift(t),s.apply(new Gt(o));const a=s.cloneWithNodes(c);return s.parent.apply(new Wt(s,a)),a}}}}class Vt extends wt{handleAction(t,e){e.children=[],e.apply(new Mt(t.newChildNodes))}}class Xt extends O{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class qt extends wt{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new Mt(t)),"image"!==e.type&&this.transferLinkGroups(t,e),s.parent.apply(new Xt(s))}}transferLinkGroups(t,e){t.forEach((t=>{if(!(t instanceof Dt))return;const s=t.getAnnotationByType(S.LINK);s&&e.apply(new ft(s.link.groupKey,[t],"link"))}))}}class Yt extends wt{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new Dt(l(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const c=s.children.slice(0,o),a=s.children.slice(o+1);t.isContentEditable()?(r&&c.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i))):e>0?c.push(t):a.unshift(t),this.mergeLineBreakNodes(c,n,a,s)}return n}}mergeLineBreakNodes(t,e,s,n){if(0===s.length||s[0]&&""===s[0].text){const e=t[t.length-1];s.push(new Dt(l(),"\n",n,e&&new Map(e.annotationMap)))}n.apply(new Gt([...t,e,...s]))}}class Zt extends wt{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new Dt(l(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Xt(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new Dt(l(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new Gt([...t,e,...s]))}}class Qt extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class te extends O{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}function ee(t,e){const s=new Set(t.filter((t=>"RTEListItemBlock"===t.dtoName)));return t.filter((t=>{if("RTEListItemBlock"!==t.dtoName)return!0;let n=t.parent;for(;n.parent&&"RTEListItemBlock"===n.parent.dtoName;){const r=n.parent;if(s.has(r))return t.parent.type=e,!1;n=r.parent}return!0}))}class se extends W{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new k(this.textAlign)}}class ne extends wt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class re extends W{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new j(this.indent)}}class ie extends U{constructor(t,e,s){super(t),this.dtoName=ie.dtoName,this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=ie.isAcceptableTextStyle(e)?new Map([Jt.from(e)]):new Map([Jt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new ie(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const s=K.getRTENodeClass(t.type);if(s)return s.from(t,r,e)})).filter(c),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?Jt.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof Tt&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(S.LINK),r=s.getAnnotationByType(S.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),s=super.generateAttributeString(t),n=this.getChildrenHtml(t);return super.shouldRenderAsInternalWrapper()?n:[`<${e}${s}>`,n,`</${e}>`].join("")}cloneWithNodes(t){const e=new ie(l(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new Mt(t)),e}clone(t){const e=new ie(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(t){const e=this.getAnnotationByType(f.LINK_GROUP);let s=this.renderGroupedNodesAtDepth(this.children,0,t);return e&&this.children.length>0&&(s=this.generateLinkHtml(e,s,t)),s}doAnnotationActionApply(t){const e=$.get(t.constructor.name,ie.name);e&&e.execute(t,this)}renderGroupedNodesAtDepth(t,e,s){var n;let r="",i=0;for(;i<t.length;){const o=t[i].getInlineHtmlTagAtDepth(e);if(!(null==o?void 0:o.groupId)){r+=t[i].renderHtmlFromDepth(e,s),i++;continue}let c=i+1;for(;c<t.length&&(null===(n=t[c].getInlineHtmlTagAtDepth(e))||void 0===n?void 0:n.groupId)===o.groupId;)c++;if(c===i+1)r+=t[i].renderHtmlFromDepth(e,s);else{const n=this.renderGroupedNodesAtDepth(t.slice(i,c),e+1,s);r+=`<${o.htmlTag}${o.attrStr}>${n}</${o.htmlTag}>`}i=c}return r}generateLinkHtml(t,e,s){e="";let n=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(S.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(S.LINK):null;if(i){if(n.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,filterInlineStyles:null==s?void 0:s.filterInlineStyles});e+=[`<a${r?` ${r}`:""}>`,this.renderGroupedNodesAtDepth(n,0,s),"</a>"].join(""),n=[]}}else e+=this.children[r].toHtml(s)}return e}}$.register(Kt.name,ie.name,new Ut),$.register(se.name,ie.name,new ne),$.register(re.name,ie.name,new class extends wt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),$.register(ft.name,ie.name,new class extends wt{handleAction(t,e){let s=e.getAnnotationByType(f.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(f.LINK_GROUP,s)}}}),$.register(x.UNLINK_LINK_GROUP,ie.name,new class extends wt{handleAction(t,e){const s=e.getAnnotationByType(f.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(f.LINK_GROUP))}}),$.register(x.SPLIT_BLOCK_WITH_NODE,ie.name,new zt),$.register(x.REPLACE_CHILD_NODES,ie.name,new Vt),$.register(x.MERGE_TWO_BLOCKS_NODES,ie.name,new qt),$.register(x.LINE_BREAK_SINGLE_BLOCK,ie.name,new Yt),$.register(x.LINE_BREAK_MULTIPLE_BLOCKS,ie.name,new Zt),$.register(x.INSERT_IMAGE_TO_BLOCK,ie.name,new class extends wt{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new Wt(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new Qt(e,r));else{const t=new te(s,n);e.apply(t),e.parent.apply(new Wt(e,r))}}}),$.register(x.TRANSFORM_LIST_BLOCK,ie.name,new class extends wt{handleAction(t,e){const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=s.createList(t.listType),i=ee(t.selectedBlocks,t.listType),o=i.map((t=>s.toListItem(t)));r.apply(new Mt(o)),n.apply(new Wt(t.selectedBlocks[0],r)),i.forEach((t=>{t.parent.apply(new Xt(t))}))}}),ie.dtoName="RTETextBlock";class oe extends wt{copyListAnnotations(t,e){t.annotationMap.forEach(((t,s)=>{e.annotationMap.set(s,t.clone())}))}haveSameListAnnotations(t,e){var s,n;const r=Array.from(t.annotationMap.keys()).sort(),i=Array.from(e.annotationMap.keys()).sort();return JSON.stringify(r)===JSON.stringify(i)&&JSON.stringify(this.normalizeAnnotationValue(null!==(s=t.toJSON().annotations)&&void 0!==s?s:{}))===JSON.stringify(this.normalizeAnnotationValue(null!==(n=e.toJSON().annotations)&&void 0!==n?n:{}))}normalizeAnnotationValue(t){if(Array.isArray(t))return t.map((t=>this.normalizeAnnotationValue(t)));if(t&&"object"==typeof t){const e=t;return Object.keys(e).sort().reduce(((t,s)=>(t[s]=this.normalizeAnnotationValue(e[s]),t)),{})}return t}}class ce extends ie{constructor(t,e,s){super(t,"list-item",s),this.dtoName=ce.dtoName,this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new ce(t.id,void 0,e);s.children=t.nodes.map((t=>Dt.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const n=pe.from(t,e);return n.parent=s,n})));const{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){var e;const s=super.generateAttributeString(t),n=(null===(e=this.nestList)||void 0===e?void 0:e.length)?this.nestList.map((e=>e.toHtml(t))).join(""):"";return[`<li${s}>`,this.getChildrenHtml(t),n,"</li>"].join("")}cloneWithNodes(t){const e=new ce(l());return e.children=[],e.apply(new Mt(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new ce(l())}clone(t){var e;const s=new ce(this.id);return s.children=this.children.map((t=>t.clone(s))),s.annotationMap=super.cloneAnnotations(),s.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(s))),s.parent=t,s}}$.register(Kt.name,ce.name,new Ut),$.register(se.name,ce.name,new ne),$.register(x.LINE_BREAK_SINGLE_BLOCK,ce.name,new Yt),$.register(x.LINE_BREAK_MULTIPLE_BLOCKS,ce.name,new Zt),$.register(x.DELETE_NEST_LIST,ce.name,new class extends wt{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),$.register(x.SPLIT_BLOCK_WITH_NODE,ce.name,new zt),$.register(x.REPLACE_CHILD_NODES,ce.name,new Vt),$.register(x.REPLACE_NEST_LIST,ce.name,new class extends oe{handleAction(t,e){const s=this.mergeAdjacentSameType(t.newList);s.forEach((t=>{t.parent=e})),e.nestList=s}mergeAdjacentSameType(t){if(t.length<=1)return t;const e=[t[0]];for(let s=1;s<t.length;s++){const n=e[e.length-1],r=t[s];n.type===r.type&&this.haveSameListAnnotations(n,r)?(r.children.forEach((t=>{t.parent=n})),n.children=n.children.concat(r.children)):e.push(r)}return e}}),$.register(x.MERGE_TWO_BLOCKS_NODES,ce.name,new qt),$.register(x.INSERT_IMAGE_TO_BLOCK,ce.name,new class extends wt{handleAction(t,e){e.parent.apply(t)}}),ce.dtoName="RTEListItemBlock";class ae extends O{constructor(t){super(),this.type=x.REPLACE_NEST_LIST,this.newList=t}}class le extends O{constructor(t){super(),this.type=x.TRANSFORM_PARAGRAPH_BLOCK,this.isFlushable=!0,this.selectedBlocks=t}}class he extends U{constructor(t,e){super(t),this.dtoName=he.dtoName,this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const s=new he(t.id,t.htmlTag),{annotations:n}=t;return n&&super.convertAnnotationsToMap(s.annotationMap,n),s.children=this.generateBlockChildren(t.children,e,s),s}clone(t){const e=new he(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,s=super.generateAttributeString(t);return lt.has(this.htmlTag)?`<${e}${s}>`:[`<${e}${s}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}he.dtoName="RTEHtmlBlock";class ue extends wt{getOrderedContiguousItems(t,e){const s=[...e].sort(((e,s)=>t.children.indexOf(e)-t.children.indexOf(s))),n=t.children.indexOf(s[0]);return n<0?[]:t.children.slice(n,n+s.length).every(((t,e)=>t===s[e]))?s:[]}}class de extends O{constructor(t){super(),this.type=x.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class fe extends g{constructor(){super(...arguments),this.type=p.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}static getDefaultMarkerStyles(){return{fontSize:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?fe.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new fe}toJSON(){}}class pe extends U{constructor(t,e,s){super(t),this.dtoName=pe.dtoName,this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&this.annotationMap.set(p.LIST,new fe)}static from(t,e={autoMatchFormat:!0}){const s=new pe(t.id,t.type,e),{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s.children=t.blocks.map((t=>{const n=ce.from(t,e);return n.parent=s,n})),s}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return B.from(e);case"customClass":return D.from(e);case"customStyle":return M.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new pe(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}$.register(x.TRANSFORM_LIST_BLOCK,pe.name,new class extends oe{handleAction(t,e){var s;const n=t.selectedBlocks,r=n.every((t=>t.parent===e)),i=this.getRootContent(e);if(!i)return;if(e.parent instanceof ce){if(r){const r=this.createListFromSource(i,e,t.listType);r.apply(new Mt(e.children));const o=e.parent,c=(null!==(s=o.nestList)&&void 0!==s?s:[]).map((t=>t===e?r:t));o.apply(new ae(c)),n.forEach((t=>t.children.map((t=>t.apply(new pt)))))}else this.handleCrossListTransform(t,e);return}if(!r&&n.every((t=>t instanceof ce))){const e=new Set(n.map((t=>t.parent))),s=new Set;e.forEach((e=>{e.type!==t.listType&&this.convertListTypeInPlace(e,t.listType)}));const r=new Set;return n.forEach((t=>{const e=t.parent;e.parent instanceof ce||(s.add(e),r.add(e.parent))})),r.forEach((t=>{for(let e=0;e<t.children.length-1;){const n=t.children[e],r=t.children[e+1];n instanceof pe&&r instanceof pe&&n.type===r.type&&this.haveSameListAnnotations(n,r)&&s.has(n)&&s.has(r)?(n.apply(new Mt([...r.children])),t.apply(new Xt(r)),s.delete(r)):e++}})),void n.forEach((t=>t.children.map((t=>t.apply(new pt)))))}const o=this.createListFromSource(i,e,t.listType),c=e.parent;if(r)o.apply(new Mt(e.children)),c.apply(new Wt(e,o)),c.apply(new Xt(e)),n.forEach((t=>t.children.map((t=>t.apply(new pt)))));else{const s=ee(t.selectedBlocks,t.listType),n=s.map((t=>i.toListItem(t)));o.apply(new Mt(n)),c.apply(new Wt(e,o)),s.forEach((t=>{t.parent.apply(new Xt(t))})),0===e.children.length&&c.apply(new Xt(e))}}convertListTypeInPlace(t,e){var s;const n=this.getRootContent(t);if(!n)return;const r=t.parent,i=this.createListFromSource(n,t,e);if(i.apply(new Mt([...t.children])),r instanceof ce){const e=(null!==(s=r.nestList)&&void 0!==s?s:[]).map((e=>e===t?i:e));r.apply(new ae(e))}else r.apply(new Wt(t,i)),r.apply(new Xt(t))}handleCrossListTransform(t,e){if(!(e.parent instanceof ce))return;const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=n.nestList,i=new Set(t.selectedBlocks.filter((t=>t instanceof ce)).map((t=>t.parent)).filter((t=>r.includes(t))));if(!i.size)return;const o=r.map((e=>{if(!i.has(e))return e;const n=this.createListFromSource(s,e,t.listType);return n.apply(new Mt(e.children)),n}));n.apply(new ae(o)),t.selectedBlocks.forEach((t=>t.children.map((t=>t.apply(new pt)))))}createListFromSource(t,e,s){const n=t.createList(s);return this.copyListAnnotations(e,n),n}}),$.register(x.TRANSFORM_PARAGRAPH_BLOCK,pe.name,new class extends oe{handleAction(t,e){const s=this.getSelectedSegments(t.selectedBlocks);0!==s.length&&this.hasConsistentTargetAndRoot(s,e)&&(this.syncSelection(s),[...s].reverse().forEach((t=>this.transformSegment(t))))}hasConsistentTargetAndRoot(t,e){if(t[0][0].parent!==e)return!1;const s=this.getRootContent(e);return Boolean(s&&t.every((t=>t.every((t=>this.getRootContent(t)===s)))))}syncSelection(t){t.forEach((t=>{t.forEach((t=>{t.children.forEach((t=>t.apply(new pt)))}))}))}transformSegment(t){const e=t[0].parent,s=new le(t);e.parent instanceof ce?this.handleNestedListCase(s,e):this.handleRootListCase(s,e)}handleRootListCase(t,e){const s=this.getRootContent(e);let n=!1,r=!1;const i=t.selectedBlocks,o=[];if(i.forEach((t=>{var s;t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),o.push(this.toParagraph(t));for(const e of null!==(s=t.nestList)&&void 0!==s?s:[])this.appendListBlock(o,e)})),n)e.parent.apply(new Qt(e,...o));else if(r)e.parent.apply(new Wt(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=this.createListFromSource(s,e);r.apply(new Mt(e.children.slice(0,t)));const c=this.createListFromSource(s,e);c.apply(new Mt(e.children.slice(n+1)));const a=o[o.length-1];a instanceof pe&&c.children.length>0&&a.type===c.type&&this.haveSameListAnnotations(a,c)?(a.apply(new Mt(c.children)),e.parent.apply(new Qt(e,r,...o))):e.parent.apply(new Qt(e,r,...o,c)),e.parent.apply(new Xt(e))}if(i.map((t=>{t.nestList=[],e.apply(new Xt(t))})),0===e.children.length)e.parent.apply(new Xt(e));else if(n){const t=o[o.length-1];t instanceof pe&&t.type===e.type&&this.haveSameListAnnotations(t,e)&&(t.apply(new Mt([...e.children])),e.parent.apply(new Xt(e)))}}handleNestedListCase(t,e){const s=t.selectedBlocks,n=this.getRootContent(e),r=e.children.indexOf(s[0]),i=[];s.forEach((t=>{var e;i.push(this.toParagraph(t));for(const s of null!==(e=t.nestList)&&void 0!==e?e:[])this.appendListBlock(i,s)}));const o=e.children.indexOf(s[s.length-1]),c=e.children.slice(o+1),a=[];let l=e;for(;l.parent instanceof ce;){const t=l.parent,e=t.parent,s=e.children.indexOf(t),n=t.nestList,r=n.indexOf(l),i=n.slice(r+1);a.push({list:e,ancestorIndex:s,trailingNestLists:i}),l=e}const h=l,u=h.parent,d=[];c.length>0&&d.push({items:c,sourceList:e});for(const t of a){for(const e of t.trailingNestLists)e.children.length>0&&d.push({items:[...e.children],sourceList:e});const e=t.list.children.slice(t.ancestorIndex+1);e.length>0&&d.push({items:e,sourceList:t.list})}const f=[];for(const t of d){const e=f[f.length-1];e&&e.sourceList.type===t.sourceList.type&&this.haveSameListAnnotations(e.sourceList,t.sourceList)?e.items.push(...t.items):f.push({items:[...t.items],sourceList:t.sourceList})}f.map((t=>{const e=this.createListFromSource(n,t.sourceList);return e.apply(new Mt(t.items)),e})).forEach((t=>this.appendListBlock(i,t))),e.children=e.children.slice(0,r);const p=e.parent,w=p.nestList,g=w.indexOf(e);let m=w.slice(0,g+1);0===e.children.length&&(m=m.filter((t=>t!==e))),p.apply(new ae(m));for(const t of a)if(t.list.children=t.list.children.slice(0,t.ancestorIndex+1),t.trailingNestLists.length>0){const e=t.list.children[t.ancestorIndex],s=e.nestList,n=s.indexOf(t.trailingNestLists[0]);if(n>=0){const t=s.slice(0,n);e.apply(new ae(t))}}u.apply(new Wt(h,...i))}getSelectedSegments(t){const e=Array.from(new Set(t.filter((t=>t instanceof ce)))).map((t=>({item:t,path:this.getStructuralPath(t)}))).filter((t=>null!==t.path)).sort(((t,e)=>this.compareStructuralPaths(t.path,e.path))).map((t=>t.item)),s=[];for(const t of e){const e=s[s.length-1],n=null==e?void 0:e[e.length-1];(null==n?void 0:n.parent)===t.parent&&t.parent.children.indexOf(t)-t.parent.children.indexOf(n)==1?e.push(t):s.push([t])}return s}getStructuralPath(t){var e;const s=[],n=new Set;let r=t,i=t.parent;for(;!n.has(i);){n.add(i);const t=i.children.indexOf(r);if(t<0)return null;if(s.unshift(t),"VegaRTEContent"===i.parent.dtoName||"RTEHtmlBlock"===i.parent.dtoName){const t=this.getContainerPath(i);return t?[...t,...s]:null}if(!(i.parent instanceof ce))return null;const o=i.parent,c=(null!==(e=o.nestList)&&void 0!==e?e:[]).indexOf(i);if(c<0)return null;s.unshift(c),r=o,i=o.parent}return null}getContainerPath(t){const e=[],s=new Set;let n=t,r=t.parent;for(;r instanceof he;){if(s.has(r))return null;s.add(r);const t=r.children.indexOf(n);if(t<0)return null;e.unshift(t),n=r,r=r.parent}const i=r.children.indexOf(n);return i<0?null:(e.unshift(i),e)}compareStructuralPaths(t,e){const s=Math.min(t.length,e.length);for(let n=0;n<s;n++)if(t[n]!==e[n])return t[n]-e[n];return t.length-e.length}appendListBlock(t,e){const s=t[t.length-1];s instanceof pe&&s.type===e.type&&this.haveSameListAnnotations(s,e)?s.apply(new Mt([...e.children])):t.push(e)}createListFromSource(t,e){const s=t.createList(e.type);return this.copyListAnnotations(e,s),s}toParagraph(t){const e=new ie(l(),"paragraph");return e.apply(new Mt(t.children)),e.annotationMap=t.annotationMap,e}}),$.register(x.INSERT_IMAGE_TO_BLOCK,pe.name,new class extends wt{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new Wt(e,t.imageBlockToBeInserted):t)}}),$.register(x.NEST_LIST_ITEMS,pe.name,new class extends ue{handleAction(t,e){var s,n;const r=this.getOrderedContiguousItems(e,t.selectedBlocks);if(!r.length)return;const i=e.children.indexOf(r[0]);if(i<=0)return;const o=e.children[i-1],c=new Set(r);let a=null===(s=o.nestList)||void 0===s?void 0:s[o.nestList.length-1];a||(a=new pe(l(),e.type),o.apply(new ae([...null!==(n=o.nestList)&&void 0!==n?n:[],a]))),e.children=e.children.filter((t=>!c.has(t))),a.children=a.children.concat(r),r.forEach((t=>{var e;t.parent=a,(null===(e=t.nestList)||void 0===e?void 0:e.length)&&this.unifyDescendantNestLists(t,t.nestList[0].type),t.children.forEach((t=>t.apply(new pt)))}))}unifyDescendantNestLists(t,e){var s;if(!(null===(s=t.nestList)||void 0===s?void 0:s.length))return;let n=!1;for(const s of t.nestList){s.type!==e&&(s.type=e,n=!0);for(const t of s.children)this.unifyDescendantNestLists(t,e)}n&&t.apply(new ae([...t.nestList]))}}),$.register(x.UNNEST_LIST_ITEMS,pe.name,new class extends ue{handleAction(t,e){var s;const n=this.getOrderedContiguousItems(e,t.selectedBlocks),r=e.parent;if(!(n.length&&r instanceof ce))return;const i=e.children.indexOf(n[0]),o=e.children.indexOf(n[n.length-1]);if(i<0||o<i)return;const c=r,a=c.parent,h=a.children.indexOf(c);if(h<0)return;const u=e.children.slice(o+1),d=new Set(n);if(e.children=e.children.filter((t=>!d.has(t))),a.children=[...a.children.slice(0,h+1),...n,...a.children.slice(h+1)],n.forEach((t=>{t.parent=a,t.children.forEach((t=>t.apply(new pt)))})),u.length>0){const t=new Set(u);e.children=e.children.filter((e=>!t.has(e)));const r=n[n.length-1];let i=null===(s=r.nestList)||void 0===s?void 0:s[r.nestList.length-1];if(i&&i.type!==e.type&&(i=null),!i){i=new pe(l(),e.type);const t=Array.isArray(r.nestList)?r.nestList:[];r.apply(new ae([...t,i]))}i.children=i.children.concat(u),u.forEach((t=>{t.parent=i}))}const f=this.collectTrailingNestLists(c,e);if(f.length>0){const t=n[n.length-1],e=Array.isArray(t.nestList)?t.nestList:[];t.apply(new ae([...e,...f]))}0===e.children.length&&c.apply(new de(e))}collectTrailingNestLists(t,e){var s;const n=null!==(s=t.nestList)&&void 0!==s?s:[],r=n.indexOf(e);if(r<0||r>=n.length-1)return[];const i=n.slice(r+1);return t.apply(new ae(n.slice(0,r+1))),i}}),pe.dtoName="RTEListBlock";class we extends wt{getPreviousNode(t){var e;const s=t.parent,n=s.children.indexOf(t);if(n>0)return s.children[n-1];if(s.parent){if(s.isListItemBlock()&&0===s.parent.children.indexOf(s)&&s.parent.parent instanceof ce){const t=s.parent.parent;if(0!==(null!==(e=t.nestList)&&void 0!==e?e:[]).indexOf(s.parent)){const t=this.getPreviousBlock(s);return t?this.getBlockLastNode(t):null}const n=t.children;return n.length>0?n[n.length-1]:null}const t=this.getPreviousBlock(s);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){var e;if(t.parent instanceof ce){const s=null!==(e=t.parent.nestList)&&void 0!==e?e:[],n=s.indexOf(t);if(n>0)return s[n-1];if(0===n)return t.parent}if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.dtoName}}class ge extends O{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class me extends W{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new z(this.range)}}class xe extends J{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(xe.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${xe.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return d(t,`.${xe.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}xe.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",xe.DECORATOR_NODE_CLASS="v-internal-decorator-node";class Se extends N{constructor(){super(...arguments),this.stylesToBeFiltered=Se.STYLES,this.elementTagName="pre code"}canFilter(t){return C.isCodeBlockNode(t)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Se.STYLES={boxSizing:"border-box",color:"rgba(var(--v-text-primary, 32, 54, 69, 1))",textAlign:"left",fontFamily:"'Roboto Mono'",fontWeight:"400",lineHeight:"22px",fontSize:"16px",whiteSpace:"pre-wrap",minHeight:"22px",tabSize:"2px"};class Ae extends xe{constructor(t,e,s,n){super(t),this.dtoName=Ae.dtoName,this.type=y.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s,this.annotationMap.set(A.CUSTOM_STYLE,new M(Se.STYLES))}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(t){return`<code${this.generateAttributeString(t)}>${this.text}</code>`}clone(t){return new Ae(this.id,this.text,this.language,t)}doAnnotationActionApply(t){$.executeTheStrategy(t,this)}doModifyActionApply(t){$.executeTheStrategy(t,this)}}$.register(x.UPDATE_CODE_BLOCK,Ae.name,new class extends wt{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),$.register(me.name,Ae.name,new class extends wt{handleAction(t,e){e.annotationMap.set(f.SELECTION_RANGE,t.toAnnotation())}}),Ae.dtoName="RTECodeBlockNode";var ye;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(ye||(ye={}));class Oe extends wt{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 Xt(e)))}}class Ee extends N{constructor(){super(...arguments),this.stylesToBeFiltered=Ee.STYLES,this.elementTagName="pre"}canFilter(t){return C.isCodeBlock(t.dtoName)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Ee.STYLES={backgroundColor:"rgba(var(--v-bg-secondary, 245, 247, 247, 1))",padding:"12px"};class Te extends U{constructor(t,e,s){super(t),this.dtoName=Te.dtoName,this.type="code-block",this.annotationMap=new Map([M.from(Ee.STYLES)]),this.children=[new Ae(`${t}-1`,e,s,this)]}static from(t){return new Te(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(t){const{language:e=ye["Plain Text"]}=this.children[0];return`<pre data-language="${e}"${super.generateAttributeString(t)}>${this.children.map((e=>e.toHtml(t)))}</pre>`}clone(t){const e=Te.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof O&&$.executeTheStrategy(n,this),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(f.SELECTION_RANGE)}}$.register(x.DELETE_CODE_BLOCK,Te.name,new class extends we{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new Xt(e));const i=t?m.getDOMByEntity(t):null;if(0===n.children.length){const s=ie.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:""}]});e.parent.apply(new Mt([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const c=m.getDOMByEntity(o);if(c){const o=e.getSubjectFromParentNodeByEventId(c,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),$.register(x.DELETE_CHILDREN,Te.name,new Oe),$.register(x.SWITCH_OUT_FROM_CODE_BLOCK,Te.name,new class extends wt{handleAction(s,r){const{content:i,language:o}=s,c=i.split("\n"),a=new ge(c.slice(0,c.length-2).join("\n"),o);a.isFlushable=!1,r.children[0].apply(a);const h=ie.from({id:l(),type:"paragraph",nodes:[{id:l(),text:"",type:"text"}]});r.parent.apply(new Wt(r,h));const u=m.getDOMByEntity(r);if(u){const s=e.getSubjectFromParentNodeByEventId(u,n);s&&t.notify(s,{node:h.children[0]})}}}),$.register(x.INSERT_IMAGE_TO_BLOCK,Te.name,new class extends wt{handleAction(t,e){e.parent.apply(new Wt(e,t.imageBlockToBeInserted))}}),Te.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element",Te.dtoName="RTECodeBlock";export{he as $,$ as A,g as B,A as C,Vt as D,ne as E,we as F,Oe as G,se as H,Wt as I,de as J,ae as K,pe as L,O as M,S as N,X as O,V as P,E as Q,Dt as R,te as S,it as T,Rt as U,at as V,rt as W,q as X,Z as Y,Y as Z,Jt as _,U as a,C as a0,fe as a1,k as a2,nt as a3,L as a4,Ee as a5,Se as a6,pt as a7,_ as a8,ye as a9,D as aa,ct as ab,ot as ac,Tt as ad,ge as ae,me as af,Bt as ag,ht as ah,xt as ai,Et as aj,Nt as ak,Kt as al,st as am,p as an,At as ao,yt as ap,vt as aq,re as ar,le as as,T as at,ie as b,H as c,wt as d,Mt as e,J as f,Qt as g,f as h,x as i,W as j,Xt as k,B as l,K as m,N as n,xe as o,Te as p,ce as q,Ae as r,m as s,M as t,P as u,b as v,y as w,I as x,Gt as y,qt as z}
@@ -1 +0,0 @@
1
- import{h as e,H as t,r as i,c as r,g as n}from"./p-6b2342e0.js";import{c as o,V as s,M as a,I as l}from"./p-6e1ab235.js";import{V as d,I as c}from"./p-8ce9e214.js";import{V as p}from"./p-6031bed1.js";import{s as h}from"./p-519a7d55.js";import{D as u}from"./p-526e3634.js";import{a as f,d as g}from"./p-5447a8e8.js";import{f as m}from"./p-8720816e.js";import{F as v}from"./p-cb378636.js";import{C as b}from"./p-2d0d575f.js";import{d as w}from"./p-a841cf13.js";import{h as x,e as j}from"./p-f0e828d8.js";import{c as y}from"./p-66647244.js";import{F as R}from"./p-320091b7.js";import{R as C}from"./p-8bc15ed0.js";import{P as z}from"./p-81dd00d0.js";import{g as I}from"./p-49a2e141.js";import{T as V}from"./p-6cde45fc.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8db904dc.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-3dee1e55.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-4ff48b84.js";import"./p-b75ee3ba.js";import"./p-8c30a60d.js";import"./p-02841589.js";import"./p-3a68b729.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-29e3eb12.js";var S=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class k extends s{render(){return e(t,null,"written"===this.mode&&this.writtenModeRenderer.render())}}S([o()],k.prototype,"mode",void 0),S([o()],k.prototype,"writtenModeRenderer",void 0);var L=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class M extends s{constructor(){super(...arguments),this.signatureCaptureFocus=()=>{this.signatureCaptureContainerRef.focus()}}getSignatureCaptureContainer(){return this.signatureCaptureContainerRef}render(){return e("vega-flex",{direction:"col",gap:"size-8"},this.renderLabel(),this.renderContainer(),this.renderFooter())}renderLabel(){return this.label&&e("vega-field-label",{onClick:this.signatureCaptureFocus,isFieldRequired:this.required,label:this.label,disabled:this.disabled,optional:this.optional})}renderContainer(){return e("div",{class:{"signature-capture-written-container":!0,disabled:this.disabled},"aria-label":"Please sign here",role:"textbox",tabIndex:this.disabled?-1:0,ref:e=>this.signatureCaptureContainerRef=e},this.renderPlaceholder(),this.renderSignaturePad())}renderPlaceholder(){if(!this.isDrawing&&!this.value)return this.placeholder&&e("vega-flex",{class:"placeholder-container",gap:"size-8",justifyContent:"center",alignItems:"center",margin:{left:"size-24",right:"size-24"}},this.placeholderIcon&&e("vega-icon",{class:"placeholder-container-icon",size:"size-20",color:"text-secondary",icon:this.placeholderIcon}),e("div",{class:"placeholder-container-content"},this.translationSlimmer.t(this.placeholder)))}renderSignaturePad(){return e("svg",{width:"100%",height:m(this.height,"widthAndHeight"),"touch-action":"none",ref:e=>this.writtenModeSvgController.setSignatureContainerRef(e)})}renderFooter(){return this.showClearBtn&&e("vega-flex",{class:"signature-capture-written-footer",justifyContent:"space-between"},e("div",{class:"vega-error vega-hidden vega-error-content"}),this.renderClearBtn())}renderClearBtn(){return e("div",{class:"clear-button"},e("vega-button-link",{size:"small",disabled:this.disabled,ref:e=>{u.addUniqueObserverToNode(e,f,(()=>{this.writtenModeSvgController.clear()}))},label:this.translationSlimmer.t("Clear Signature")}))}}p.register({signature:{icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M176 128c0-26.5 21.5-48 48-48s48 21.5 48 48v7.9c0 27.5-2.3 55-7 82.1L158 251.1c-36.9 11.4-62 45.5-62 84.1V410c0 38.6 31.3 70 70 70c24.6 0 47.4-12.9 60-34l15.9-26.4c29.6-49.4 51.1-103.3 63.6-159.5l1-4.7 110.8-34.3-23.9 66.8c-2.6 7.4-1.5 15.5 3 21.9s11.8 10.2 19.6 10.2H552c13.3 0 24-10.7 24-24s-10.7-24-24-24H450.1l28.5-79.9c3.1-8.6 1-18.1-5.3-24.7s-15.7-9-24.4-6.3l-133 41.2c2.7-22 4.1-44.2 4.1-66.4V128c0-53-43-96-96-96s-96 43-96 96v40c0 13.3 10.7 24 24 24s24-10.7 24-24V128zm-3.8 169l80.9-25c-11.7 43.2-29.4 84.5-52.4 123l-15.9 26.4c-4 6.6-11.1 10.7-18.8 10.7c-12.1 0-22-9.8-22-22V335.2c0-17.5 11.4-33 28.2-38.2zM64 368H24c-13.3 0-24 10.7-24 24s10.7 24 24 24H64.2c-.1-2-.2-4-.2-6V368zm216.8 48H616c13.3 0 24-10.7 24-24s-10.7-24-24-24H304.1c-7 16.3-14.8 32.4-23.3 48z"/></svg>'}}),L([o()],M.prototype,"label",void 0),L([o()],M.prototype,"required",void 0),L([o()],M.prototype,"optional",void 0),L([o()],M.prototype,"showClearBtn",void 0),L([o()],M.prototype,"placeholder",void 0),L([o()],M.prototype,"placeholderIcon",void 0),L([o()],M.prototype,"disabled",void 0),L([o()],M.prototype,"value",void 0),L([o()],M.prototype,"isDrawing",void 0),L([o()],M.prototype,"height",void 0),L([o()],M.prototype,"writtenModeSvgController",void 0),L([o()],M.prototype,"translationSlimmer",void 0);var O=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class D extends s{constructor(){super(...arguments),this.penWidth="4px",this.clear=()=>{this.signatureContainerRef.innerHTML=x.sanitize("",j),this.value=null},this.startDrawing=e=>{if(this.disabled)return;this.isDrawing=!0;const{x:t,y:i}=this.getPoint(e);this.currentPath=document.createElementNS("http://www.w3.org/2000/svg","path"),this.currentPath.setAttribute("d",`M ${t} ${i}`),this.currentPath.setAttribute("stroke","rgba(4, 4, 28, 1)"),this.currentPath.setAttribute("stroke-width",this.penWidth),this.currentPath.setAttribute("fill","none"),this.currentPath.setAttribute("stroke-linecap","round"),this.currentPath.setAttribute("stroke-linejoin","round"),this.signatureContainerRef.appendChild(this.currentPath)},this.getPoint=e=>{var t,i;const r=this.signatureContainerRef.getBoundingClientRect(),n=null!==(t=e.clientX)&&void 0!==t?t:e.touches[0].clientX,o=null!==(i=e.clientY)&&void 0!==i?i:e.touches[0].clientY;return{x:n-r.left,y:o-r.top}},this.draw=e=>{if(!this.isDrawing)return;const{x:t,y:i}=this.getPoint(e),r=this.currentPath.getAttribute("d");this.currentPath.setAttribute("d",`${r} L ${t} ${i}`)},this.stopDrawing=()=>{this.isDrawing&&(this.isDrawing=!1,this.value={type:"written",img:this.generateSignatureImage()})}}componentDidLoad(){this.setupListeners(),this.fillSignature(this.value)}handleClear(){this.clear()}watchValue(e,t){w(e,t)||(this.changeEventEmitter.emit(e),this.fillSignature(e),b.notify(v,{host:this.host,detail:e}))}setSignatureContainerRef(e){this.signatureContainerRef=e}setupListeners(){const e=this.signatureContainerRef;e.addEventListener("mousedown",this.startDrawing),e.addEventListener("mousemove",this.draw),e.addEventListener("mouseup",this.stopDrawing),e.addEventListener("mouseleave",this.stopDrawing),e.addEventListener("touchstart",this.startDrawing),e.addEventListener("touchmove",this.draw),e.addEventListener("touchend",this.stopDrawing)}generateSignatureImage(){const e=(new XMLSerializer).serializeToString(this.signatureContainerRef);return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(e)))}`}fromDataURL(e){if(!e||!e.img)return;const t=this.value.img.replace("data:image/svg+xml;base64,","");return(new DOMParser).parseFromString(atob(t),"image/svg+xml").documentElement}fillSignature(e){this.signatureContainerRef.replaceChildren();const t=this.fromDataURL(e);if(t){const e=Array.from(t.childNodes);this.signatureContainerRef.append(...e)}}}O([o()],D.prototype,"changeEventEmitter",void 0),O([o()],D.prototype,"host",void 0),O([o({writable:!0})],D.prototype,"value",void 0),O([o({writable:!0})],D.prototype,"isDrawing",void 0),O([o()],D.prototype,"disabled",void 0),O([a("componentDidLoad")],D.prototype,"componentDidLoad",null),O([a("clear")],D.prototype,"handleClear",null),O([a("watchValue")],D.prototype,"watchValue",null);var F=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const H=class{constructor(e){i(this,e),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.vegaSignatureCaptureRenderer=new k,this.writtenModeRenderer=new M,this.writtenModeSvgController=new D,this.changeEventEmitter=y(H,g),this.formFieldController=new R({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new C:null}],validationRulesName:"validationRules",defaultValue:null,attributeGetter:e=>this[e],inputContainerGetter:()=>this.writtenModeRenderer.getSignatureCaptureContainer(),touchableAreaGetter:()=>[this.writtenModeRenderer.getSignatureCaptureContainer()]}),this.pageResizeSlimmer=new z,this.currentBreakpoint=I(),this.isDrawing=!1,this.mode="written",this.label="",this.required=!1,this.optional=!1,this.showClearBtn=!0,this.placeholder="Please sign here",this.placeholderIcon=p.getIconKey("signature"),this.disabled=!1,this.value=null,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.height="320px"}watchValue(e,t){}watchValidationRules(){}async clear(){}render(){return h(this.vegaSignatureCaptureRenderer.render(),this.host)}get host(){return n(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};F([c()],H.prototype,"globalSlimmers",void 0),F([l()],H.prototype,"translationSlimmer",void 0),F([l()],H.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),F([l()],H.prototype,"vegaSignatureCaptureRenderer",void 0),F([l()],H.prototype,"writtenModeRenderer",void 0),F([l()],H.prototype,"writtenModeSvgController",void 0),F([l()],H.prototype,"changeEventEmitter",void 0),F([l()],H.prototype,"formFieldController",void 0),F([l()],H.prototype,"pageResizeSlimmer",void 0),H.style=':host{display:block}.signature-capture-written-container{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;width:100%;position:relative;background-color:rgb(252, 252, 252)}.signature-capture-written-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.signature-capture-written-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}.signature-capture-written-container .placeholder-container{height:100%;position:absolute;top:0px;right:0px;bottom:0px;left:0px;pointer-events:none}.signature-capture-written-container .placeholder-container-content{font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:28px;letter-spacing:0px;color:rgba(4, 4, 28, 0.64)}@media screen and (min-width: 768px) and (max-width: 1023px){.signature-capture-written-container .placeholder-container-content{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.signature-capture-written-container .placeholder-container-content{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.signature-capture-written-container .placeholder-container-content{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}.signature-capture-written-container .placeholder-container-icon{flex-shrink:0;color:rgba(4, 4, 28, 0.64)}.signature-capture-written-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.signature-capture-written-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.signature-capture-written-container.error:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1))}.signature-capture-written-container.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.signature-capture-written-container.disabled:hover,.signature-capture-written-container.disabled:focus-within{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.signature-capture-written-container.disabled:focus-within{outline:none}.signature-capture-written-container.disabled .placeholder-container-content,.signature-capture-written-container.disabled .placeholder-container-icon{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.signature-capture-written-footer .clear-button{flex-grow:1;padding-right:8px;text-align:right}.signature-capture-written-footer .vega-error-content{padding-top:0px;padding-right:0px;flex-grow:1}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}';export{H as vega_signature_capture}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as i,H as s,g as o}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as a,V as p,M as n,I as l}from"./p-6e1ab235.js";import{V as h,I as m}from"./p-8ce9e214.js";import{D as c}from"./p-526e3634.js";import{d as f,M as u}from"./p-5447a8e8.js";import{n as d,c as v,b as j}from"./p-262ec334.js";import{C as b}from"./p-2c737fc8.js";import{c as w}from"./p-66647244.js";import{F as x}from"./p-cb378636.js";import{C as y}from"./p-2d0d575f.js";import{K as R}from"./p-f1974321.js";import{F as C}from"./p-320091b7.js";import{R as g}from"./p-8bc15ed0.js";import{c as I}from"./p-3f183b52.js";import{M as V,a as N}from"./p-f0ff4463.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8c30a60d.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-75e33859.js";import"./p-8db904dc.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-0d18368b.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-3a68b729.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-29e3eb12.js";var T=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class S extends p{constructor(){super(...arguments),this.onInputChange=t=>{this.valueController.updateValue(t.detail)},this.onInputBlur=t=>{const e=t.host.value.replace(/,/g,"");if(""!==e&&!isNaN(e)){let t=d(Number(e),this.min,this.max);this.integerOnly&&(t===this.min?t=Math.ceil(this.min):t===this.max&&(t=Math.floor(this.max))),t!==Number(e)&&this.valueController.updateValue(t.toString())}}}getInputRef(){return this.vegaInputRef.shadowRoot.querySelector("input")}getContainerRef(){return this.vegaInputRef.shadowRoot.querySelector(".vega-input-container")}render(){const e={thousandComma:this.thousandComma};return this.integerOnly&&(e.precision=0),t("vega-input",{value:this.value||"",showClearIcon:this.showClearIcon,disabled:this.disabled,label:this.label,hint:this.hint,required:this.required,optional:this.optional,type:"number",placeholder:this.placeholder,size:"small"===this.size?"small":"default",prefixIcon:this.prefixIcon,ref:t=>{this.vegaInputRef=t,c.addUniqueObserverToNode(t,f,(t=>this.onInputChange(t))),c.addUniqueObserverToNode(t,u,(t=>this.onInputBlur(t)))},maskConfig:{type:"number",options:e}})}}T([a()],S.prototype,"prefixIcon",void 0),T([a()],S.prototype,"showClearIcon",void 0),T([a()],S.prototype,"value",void 0),T([a()],S.prototype,"size",void 0),T([a()],S.prototype,"disabled",void 0),T([a()],S.prototype,"placeholder",void 0),T([a()],S.prototype,"label",void 0),T([a()],S.prototype,"optional",void 0),T([a()],S.prototype,"hint",void 0),T([a()],S.prototype,"required",void 0),T([a()],S.prototype,"thousandComma",void 0),T([a()],S.prototype,"integerOnly",void 0),T([a()],S.prototype,"min",void 0),T([a()],S.prototype,"max",void 0),T([a()],S.prototype,"valueController",void 0);var O=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class k extends p{watchValue(){this.changeEventEmitter.emit(this.value),y.notify(x,{host:this.host,detail:this.value})}updateValue(t){this.value=t}}O([a()],k.prototype,"host",void 0),O([a({writable:!0})],k.prototype,"value",void 0),O([a()],k.prototype,"changeEventEmitter",void 0),O([n("watchValue")],k.prototype,"watchValue",null);var E=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class M extends R{constructor(){super((t=>[{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[t.host],callback:t.onArrowUpOrDown},{keyCode:["ArrowUp"],eventName:"keydown",activeElementInScope:[t.host],callback:t=>{t.preventDefault()}}])),this.onArrowUpOrDown=t=>{const e=t.shiftKey?this.majorIncrement:this.minorIncrement,i=v(this.value.replace(/,/g,""))||0,s=Math.max(j(i),j(e));"ArrowUp"===t.code?this.valueController.updateValue(`${(i+e).toFixed(s)}`):"ArrowDown"===t.code&&this.valueController.updateValue(`${(i-e).toFixed(s)}`)}}}E([a()],M.prototype,"host",void 0),E([a()],M.prototype,"value",void 0),E([a()],M.prototype,"minorIncrement",void 0),E([a()],M.prototype,"majorIncrement",void 0),E([a()],M.prototype,"valueController",void 0);var A=function(t,e,i,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,s);else for(var p=t.length-1;p>=0;p--)(o=t[p])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const F=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.valueController=new k,this.keyboardController=new M,this.renderer=new S,this.changeEventEmitter=w(F,f),this.inputEventPrevent=new b([f],(()=>this.host),{useCapture:!0}),this.formFieldController=new C({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new g:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new V({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new N({maxValue:t}):null}],validationRulesName:"validationRules",inputContainerGetter:()=>this.renderer.getContainerRef(),touchableAreaGetter:()=>[this.renderer.getInputRef()],defaultValue:"",attributeGetter:t=>this[t]}),this.prefixTextNotifySlimmer=I(F,"prefixText","watchPrefixText"),this.suffixTextNotifySlimmer=I(F,"suffixText","watchSuffixText"),this.isCompactInputWidthNotifySlimmer=I(F,"isCompactInputWidth"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.isCompactInputWidth=!0,this.prefixText="",this.value="",this.size="medium",this.thousandComma=!1,this.integerOnly=!1,this.disabled=!1,this.minorIncrement=1,this.majorIncrement=10,this.label="",this.optional=!1,this.validationRules=[],this.isValid=null,this.autoValidation=!0,this.showClearIcon=!0,this.min=null,this.max=null}watchPrefixText(){}watchSuffixText(){}watchValue(){}watchValidationRules(){}render(){return r(t(s,null,this.renderer.render()),this.host)}get host(){return o(this)}static get watchers(){return{prefixText:["watchPrefixText"],suffixText:["watchSuffixText"],value:["watchValue"],validationRules:["watchValidationRules"]}}};A([m()],F.prototype,"globalSlimmers",void 0),A([l()],F.prototype,"valueController",void 0),A([l()],F.prototype,"keyboardController",void 0),A([l()],F.prototype,"renderer",void 0),A([l()],F.prototype,"changeEventEmitter",void 0),A([l()],F.prototype,"inputEventPrevent",void 0),A([l()],F.prototype,"formFieldController",void 0),A([l()],F.prototype,"prefixTextNotifySlimmer",void 0),A([l()],F.prototype,"suffixTextNotifySlimmer",void 0),A([l()],F.prototype,"isCompactInputWidthNotifySlimmer",void 0),A([l()],F.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),F.style=":host{display:inline-block;width:100%}";export{F as vega_input_numeric}