@heartlandone/vega 2.74.0 → 2.75.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 (389) hide show
  1. package/dist/cjs/{app-globals-e9f2edcf.js → app-globals-bf183914.js} +8 -8
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-536d29fc.js → child-nodes-event-prevent-slimmer-aca87dac.js} +1 -1
  3. package/dist/cjs/click-outside-only-to-dismiss-strategy-407f6d1e.js +32 -0
  4. package/dist/cjs/{code-block-c8ae7e0a.js → code-block-c1d2e6a8.js} +2 -2
  5. package/dist/cjs/{component-value-history-controller-slimmer.abstract-13968181.js → component-value-history-controller-slimmer.abstract-787c67dc.js} +4 -4
  6. package/dist/cjs/{date-required-rule-99cca681.js → date-required-rule-30ee62d0.js} +1 -1
  7. package/dist/cjs/{design-token-4e23c50a.js → design-token-cbc01283.js} +2 -2
  8. package/dist/cjs/{dom-node-subject-observer-factory-1c8f7880.js → dom-node-subject-observer-factory-b5e71bf6.js} +4 -0
  9. package/dist/cjs/{dto-renderer-manager-ca753971.js → dto-renderer-manager-2fc24151.js} +3 -3
  10. package/dist/cjs/{element-appender-slimmer-dc769946.js → element-appender-slimmer-318d29c7.js} +160 -36
  11. package/dist/cjs/{event-emit-slimmer-6a591353.js → event-emit-slimmer-2dacabbd.js} +2 -2
  12. package/dist/cjs/{form-field-controller-slimmer-6e3e14fd.js → form-field-controller-slimmer-aef2fb1e.js} +2 -2
  13. package/dist/cjs/{function-extension-5972c73c.js → function-extension-ca9aa115.js} +5 -5
  14. package/dist/cjs/{image-annotation-action-92df8979.js → image-annotation-action-e4a35325.js} +3 -3
  15. package/dist/cjs/{index-638a0f0d.js → index-95fca64f.js} +1 -1
  16. package/dist/cjs/index.cjs.js +15 -15
  17. package/dist/cjs/{inject-keyboard-manager-a6101379.js → inject-keyboard-manager-d21b4387.js} +1 -1
  18. package/dist/cjs/{internal-vega-event-manager-d587a33c.js → internal-vega-event-manager-6befeb34.js} +13 -2
  19. package/dist/cjs/{keyboard-manager-d8adb0ed.js → keyboard-manager-3dea6b28.js} +1 -1
  20. package/dist/cjs/{keyboard-manager-slimmer-15e65357.js → keyboard-manager-slimmer-0d45f944.js} +1 -1
  21. package/dist/cjs/{language-extension-d78389f9.js → language-extension-38e4905e.js} +2 -2
  22. package/dist/cjs/loader.cjs.js +11 -11
  23. package/dist/cjs/{month-view-generator-706c5477.js → month-view-generator-49cc5fc2.js} +1 -1
  24. package/dist/cjs/{public-rules-23a86d33.js → public-rules-661823fa.js} +7 -7
  25. package/dist/cjs/{range-80f19554.js → range-79b668e7.js} +1 -1
  26. package/dist/cjs/{responsive-format-facade-8d195366.js → responsive-format-facade-f71d399c.js} +4 -4
  27. package/dist/cjs/{rich-text-editor-required-rule-80304585.js → rich-text-editor-required-rule-d5feeffd.js} +1 -1
  28. package/dist/cjs/sanitize-fb222510.js +131 -0
  29. package/dist/cjs/{string-format-strategy.abstract-a8264fca.js → string-format-strategy.abstract-63514c60.js} +1 -1
  30. package/dist/cjs/{string-input-formatter-slimmer-338bbd73.js → string-input-formatter-slimmer-f3e0bbc7.js} +3 -3
  31. package/dist/cjs/{string-mask-strategy-4e7d3780.js → string-mask-strategy-d23ac21a.js} +2 -2
  32. package/dist/cjs/{style-formatter-dbda894b.js → style-formatter-566df206.js} +2 -2
  33. package/dist/cjs/{sub-state-notify-slimmer-1efa69c4.js → sub-state-notify-slimmer-468e19aa.js} +1 -1
  34. package/dist/cjs/{sub-state-observer-slimmer-6afa62f5.js → sub-state-observer-slimmer-5d0b8ac3.js} +1 -1
  35. package/dist/cjs/{time-required-rule-9d39a620.js → time-required-rule-c96ecdc9.js} +1 -1
  36. package/dist/cjs/{type-guard-69d2cf01.js → type-guard-a0f026d8.js} +12 -0
  37. package/dist/cjs/{valid-credit-card-number-rule-9f40d1d9.js → valid-credit-card-number-rule-c854bed9.js} +1 -1
  38. package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
  39. package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -10
  40. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-box.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  43. package/dist/cjs/vega-button-circle.cjs.entry.js +10 -10
  44. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  45. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-button.cjs.entry.js +9 -9
  47. package/dist/cjs/vega-calendar_4.cjs.entry.js +8 -8
  48. package/dist/cjs/vega-card.cjs.entry.js +8 -8
  49. package/dist/cjs/vega-carousel.cjs.entry.js +8 -8
  50. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  51. package/dist/cjs/vega-chip.cjs.entry.js +10 -10
  52. package/dist/cjs/vega-code-block.cjs.entry.js +10 -10
  53. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  54. package/dist/cjs/vega-combo-box.cjs.entry.js +11 -10
  55. package/dist/cjs/vega-date-picker_2.cjs.entry.js +389 -342
  56. package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -10
  57. package/dist/cjs/vega-divider.cjs.entry.js +8 -8
  58. package/dist/cjs/vega-dropdown_5.cjs.entry.js +36 -18
  59. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  60. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
  62. package/dist/cjs/vega-flag-icon.cjs.entry.js +8 -8
  63. package/dist/cjs/vega-flex.cjs.entry.js +9 -9
  64. package/dist/cjs/vega-font.cjs.entry.js +8 -8
  65. package/dist/cjs/vega-form.cjs.entry.js +8 -8
  66. package/dist/cjs/vega-grid.cjs.entry.js +8 -8
  67. package/dist/cjs/vega-icon.cjs.entry.js +8 -8
  68. package/dist/cjs/vega-image-uploader.cjs.entry.js +11 -11
  69. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-input-numeric.cjs.entry.js +10 -10
  71. package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
  72. package/dist/cjs/vega-input-phone-number.cjs.entry.js +11 -11
  73. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  74. package/dist/cjs/vega-input-select.cjs.entry.js +19 -14
  75. package/dist/cjs/vega-input.cjs.entry.js +339 -98
  76. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-left-nav_5.cjs.entry.js +11 -11
  78. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  79. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  80. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  81. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  82. package/dist/cjs/vega-pagination.cjs.entry.js +9 -9
  83. package/dist/cjs/vega-popover_2.cjs.entry.js +12 -12
  84. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +10 -10
  85. package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
  86. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  87. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +17 -17
  88. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  89. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +12 -12
  90. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  91. package/dist/cjs/vega-sidenav_3.cjs.entry.js +10 -10
  92. package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -11
  93. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  94. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  95. package/dist/cjs/vega-table_11.cjs.entry.js +11 -11
  96. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  97. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -17
  98. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  99. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -10
  100. package/dist/cjs/vega.cjs.js +11 -11
  101. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
  102. package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +1 -1
  103. package/dist/collection/components/vega-calendar/vega-calendar.js +1 -1
  104. package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -1
  105. package/dist/collection/components/vega-date-picker/assets/icons.js +4 -1
  106. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +2 -1
  107. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +2 -2
  108. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +109 -0
  109. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +4 -0
  110. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +42 -70
  111. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +12 -56
  112. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +435 -108
  113. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +5 -0
  114. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +5 -1
  115. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +7 -0
  116. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +3 -2
  117. package/dist/collection/components/vega-dropdown/vega-dropdown.js +19 -4
  118. package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
  119. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.js +51 -0
  120. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +6 -0
  121. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +142 -0
  122. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +12 -1
  123. package/dist/collection/components/vega-input/vega-input.js +200 -3
  124. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +8 -3
  125. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
  126. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +2 -1
  127. package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +2 -1
  128. package/dist/collection/constants/ui.js +2 -0
  129. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +13 -2
  130. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +2 -0
  131. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +3 -1
  132. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +3 -1
  133. package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +60 -32
  134. package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +3 -2
  135. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.js +28 -0
  136. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.js +33 -0
  137. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.js +42 -0
  138. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.js +22 -0
  139. package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.js +1 -0
  140. package/dist/collection/types/test/type-guard.test.js +8 -1
  141. package/dist/collection/types/type-guard.js +11 -0
  142. package/dist/collection/utils/sanitize.js +126 -0
  143. package/dist/collection/utils/test/sanitize.test.js +65 -0
  144. package/dist/esm/{app-globals-9203a3e5.js → app-globals-f3414aca.js} +8 -8
  145. package/dist/esm/{child-nodes-event-prevent-slimmer-e6f98de5.js → child-nodes-event-prevent-slimmer-e662bee2.js} +1 -1
  146. package/dist/esm/click-outside-only-to-dismiss-strategy-3d286c1b.js +30 -0
  147. package/dist/esm/{code-block-4e0d321d.js → code-block-8ee34ab6.js} +2 -2
  148. package/dist/esm/{component-value-history-controller-slimmer.abstract-0ab0d9f0.js → component-value-history-controller-slimmer.abstract-a61bf821.js} +4 -4
  149. package/dist/esm/{date-required-rule-a9980386.js → date-required-rule-47ecc28f.js} +1 -1
  150. package/dist/esm/{design-token-175c4c0c.js → design-token-9b299589.js} +2 -2
  151. package/dist/esm/{dom-node-subject-observer-factory-1aaa1159.js → dom-node-subject-observer-factory-064ee2b2.js} +3 -1
  152. package/dist/esm/{dto-renderer-manager-402e89d0.js → dto-renderer-manager-f07cf2d9.js} +3 -3
  153. package/dist/esm/{element-appender-slimmer-7e7aa230.js → element-appender-slimmer-7cb08343.js} +160 -36
  154. package/dist/esm/{event-emit-slimmer-2d791d0e.js → event-emit-slimmer-09827cec.js} +2 -2
  155. package/dist/esm/{form-field-controller-slimmer-257928c1.js → form-field-controller-slimmer-5d9dc384.js} +2 -2
  156. package/dist/esm/{function-extension-45e413ff.js → function-extension-63028f20.js} +5 -5
  157. package/dist/esm/{image-annotation-action-2cdbbd57.js → image-annotation-action-53529cd9.js} +3 -3
  158. package/dist/esm/{index-0d487fae.js → index-51a7da7f.js} +1 -1
  159. package/dist/esm/index.js +15 -15
  160. package/dist/esm/{inject-keyboard-manager-9241968c.js → inject-keyboard-manager-83d76ff5.js} +1 -1
  161. package/dist/esm/{internal-vega-event-manager-fdee2a0a.js → internal-vega-event-manager-efb6786e.js} +13 -2
  162. package/dist/esm/{keyboard-manager-89acac79.js → keyboard-manager-c92808d8.js} +1 -1
  163. package/dist/esm/{keyboard-manager-slimmer-e303cb7d.js → keyboard-manager-slimmer-79c78ce8.js} +1 -1
  164. package/dist/esm/{language-extension-4bed2436.js → language-extension-c4ff21dd.js} +2 -2
  165. package/dist/esm/loader.js +11 -11
  166. package/dist/esm/{month-view-generator-4bec99fd.js → month-view-generator-16192182.js} +1 -1
  167. package/dist/esm/{public-rules-05e83e40.js → public-rules-6ebdfcf5.js} +7 -7
  168. package/dist/esm/{range-5086f250.js → range-5257c062.js} +1 -1
  169. package/dist/esm/{responsive-format-facade-f995d6de.js → responsive-format-facade-05e53016.js} +4 -4
  170. package/dist/esm/{rich-text-editor-required-rule-0d1147a8.js → rich-text-editor-required-rule-f63a37d1.js} +1 -1
  171. package/dist/esm/sanitize-fd0cb40d.js +129 -0
  172. package/dist/esm/{string-format-strategy.abstract-75540c16.js → string-format-strategy.abstract-fc60db79.js} +1 -1
  173. package/dist/esm/{string-input-formatter-slimmer-3a42d9b8.js → string-input-formatter-slimmer-ee32b1fd.js} +3 -3
  174. package/dist/esm/{string-mask-strategy-4a18ed1a.js → string-mask-strategy-0b0accaa.js} +2 -2
  175. package/dist/esm/{style-formatter-f4067407.js → style-formatter-5f5bd714.js} +2 -2
  176. package/dist/esm/{sub-state-notify-slimmer-71b9bbd5.js → sub-state-notify-slimmer-4453047a.js} +1 -1
  177. package/dist/esm/{sub-state-observer-slimmer-41a1b380.js → sub-state-observer-slimmer-202ec7dc.js} +1 -1
  178. package/dist/esm/{time-required-rule-8ec1faf5.js → time-required-rule-5fa43804.js} +1 -1
  179. package/dist/esm/{type-guard-b48aec98.js → type-guard-c65a227d.js} +12 -1
  180. package/dist/esm/{valid-credit-card-number-rule-96eaf9b1.js → valid-credit-card-number-rule-666c415d.js} +1 -1
  181. package/dist/esm/vega-accordion.entry.js +9 -9
  182. package/dist/esm/vega-app-header-button.entry.js +10 -10
  183. package/dist/esm/vega-banner.entry.js +3 -3
  184. package/dist/esm/vega-box.entry.js +9 -9
  185. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  186. package/dist/esm/vega-button-circle.entry.js +10 -10
  187. package/dist/esm/vega-button-group_2.entry.js +6 -6
  188. package/dist/esm/vega-button-link.entry.js +4 -4
  189. package/dist/esm/vega-button.entry.js +9 -9
  190. package/dist/esm/vega-calendar_4.entry.js +8 -8
  191. package/dist/esm/vega-card.entry.js +8 -8
  192. package/dist/esm/vega-carousel.entry.js +8 -8
  193. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  194. package/dist/esm/vega-chip.entry.js +10 -10
  195. package/dist/esm/vega-code-block.entry.js +10 -10
  196. package/dist/esm/vega-color-picker.entry.js +5 -5
  197. package/dist/esm/vega-combo-box.entry.js +11 -10
  198. package/dist/esm/vega-date-picker_2.entry.js +389 -342
  199. package/dist/esm/vega-dialog_2.entry.js +10 -10
  200. package/dist/esm/vega-divider.entry.js +8 -8
  201. package/dist/esm/vega-dropdown_5.entry.js +36 -18
  202. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  203. package/dist/esm/vega-field-label.entry.js +3 -3
  204. package/dist/esm/vega-file-uploader.entry.js +5 -5
  205. package/dist/esm/vega-flag-icon.entry.js +8 -8
  206. package/dist/esm/vega-flex.entry.js +9 -9
  207. package/dist/esm/vega-font.entry.js +8 -8
  208. package/dist/esm/vega-form.entry.js +8 -8
  209. package/dist/esm/vega-grid.entry.js +8 -8
  210. package/dist/esm/vega-icon.entry.js +8 -8
  211. package/dist/esm/vega-image-uploader.entry.js +11 -11
  212. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  213. package/dist/esm/vega-input-numeric.entry.js +10 -10
  214. package/dist/esm/vega-input-passcode.entry.js +9 -9
  215. package/dist/esm/vega-input-phone-number.entry.js +11 -11
  216. package/dist/esm/vega-input-range.entry.js +6 -6
  217. package/dist/esm/vega-input-select.entry.js +19 -14
  218. package/dist/esm/vega-input.entry.js +340 -99
  219. package/dist/esm/vega-item-toggle.entry.js +3 -3
  220. package/dist/esm/vega-left-nav_5.entry.js +11 -11
  221. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  222. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  223. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  224. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  225. package/dist/esm/vega-pagination.entry.js +9 -9
  226. package/dist/esm/vega-popover_2.entry.js +12 -12
  227. package/dist/esm/vega-progress-tracker_2.entry.js +10 -10
  228. package/dist/esm/vega-radio_2.entry.js +9 -9
  229. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  230. package/dist/esm/vega-rich-text-editor_4.entry.js +17 -17
  231. package/dist/esm/vega-segment-control.entry.js +3 -3
  232. package/dist/esm/vega-selection-chip_2.entry.js +12 -12
  233. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  234. package/dist/esm/vega-sidenav_3.entry.js +10 -10
  235. package/dist/esm/vega-signature-capture.entry.js +11 -11
  236. package/dist/esm/vega-stepper.entry.js +6 -6
  237. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  238. package/dist/esm/vega-table_11.entry.js +11 -11
  239. package/dist/esm/vega-textarea.entry.js +6 -6
  240. package/dist/esm/vega-time-picker_2.entry.js +18 -17
  241. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  242. package/dist/esm/vega-tooltip_2.entry.js +10 -10
  243. package/dist/esm/vega.js +11 -11
  244. package/dist/sri/vega-sri-manifest.json +328 -320
  245. package/dist/types/components/vega-date-picker/assets/icons.d.ts +1 -1
  246. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +20 -0
  247. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -0
  248. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +4 -11
  249. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +4 -9
  250. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +2 -0
  251. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +2 -0
  252. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +7 -2
  253. package/dist/types/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.d.ts +27 -0
  254. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
  255. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.d.ts +40 -0
  256. package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +3 -0
  257. package/dist/types/components/vega-input/types.d.ts +4 -0
  258. package/dist/types/components/vega-input/vega-input.d.ts +55 -1
  259. package/dist/types/components.d.ts +48 -6
  260. package/dist/types/constants/ui.d.ts +1 -1
  261. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
  262. package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +4 -9
  263. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.d.ts +21 -0
  264. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.d.ts +21 -0
  265. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.d.ts +22 -0
  266. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.d.ts +18 -0
  267. package/dist/types/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.d.ts +37 -0
  268. package/dist/types/types/components.type.d.ts +2 -0
  269. package/dist/types/types/type-guard.d.ts +8 -0
  270. package/dist/types/types/ui.type.d.ts +9 -0
  271. package/dist/types/utils/sanitize.d.ts +71 -0
  272. package/dist/types/utils/test/sanitize.test.d.ts +1 -0
  273. package/dist/vega/index.esm.js +1 -1
  274. package/dist/vega/{p-44bc9ea9.entry.js → p-011b94b1.entry.js} +1 -1
  275. package/dist/vega/{p-42b7b5df.js → p-06aaced4.js} +1 -1
  276. package/dist/vega/{p-05feab84.entry.js → p-07d3df01.entry.js} +1 -1
  277. package/dist/vega/{p-5a0c92db.entry.js → p-08f18b22.entry.js} +1 -1
  278. package/dist/vega/{p-3226c208.js → p-1298b126.js} +1 -1
  279. package/dist/vega/{p-9b673fd4.entry.js → p-17c55205.entry.js} +1 -1
  280. package/dist/vega/{p-161b9c5b.js → p-1f83cebf.js} +1 -1
  281. package/dist/vega/{p-f0bde406.js → p-20ad42be.js} +1 -1
  282. package/dist/vega/p-22b2841f.entry.js +1 -0
  283. package/dist/vega/{p-674fe99e.js → p-22c5d83b.js} +1 -1
  284. package/dist/vega/{p-f92752d2.entry.js → p-34246870.entry.js} +1 -1
  285. package/dist/vega/p-35bf5789.entry.js +1 -0
  286. package/dist/vega/{p-9b7daab0.entry.js → p-3bbc0c7d.entry.js} +1 -1
  287. package/dist/vega/{p-59fa3f68.js → p-3bf66be2.js} +1 -1
  288. package/dist/vega/{p-6e84e451.entry.js → p-3c5a28e4.entry.js} +1 -1
  289. package/dist/vega/p-3cfd8616.entry.js +1 -0
  290. package/dist/vega/p-3e5f362f.js +1 -0
  291. package/dist/vega/p-43f585f7.entry.js +1 -0
  292. package/dist/vega/p-476a173a.js +1 -0
  293. package/dist/vega/p-4a537391.entry.js +1 -0
  294. package/dist/vega/{p-82dbff54.entry.js → p-509eb52e.entry.js} +1 -1
  295. package/dist/vega/{p-95b11cdd.entry.js → p-50ab977c.entry.js} +1 -1
  296. package/dist/vega/{p-ca9b4af9.entry.js → p-53a694d1.entry.js} +1 -1
  297. package/dist/vega/p-56e97df8.js +1 -0
  298. package/dist/vega/{p-b19d4e26.entry.js → p-5a27084e.entry.js} +1 -1
  299. package/dist/vega/{p-3398f553.entry.js → p-5df9a856.entry.js} +1 -1
  300. package/dist/vega/{p-94cf46ca.entry.js → p-5ea2e43c.entry.js} +1 -1
  301. package/dist/vega/p-5f377954.js +1 -1
  302. package/dist/vega/p-60274fb1.js +1 -0
  303. package/dist/vega/{p-de70aac1.js → p-60851f9d.js} +1 -1
  304. package/dist/vega/{p-5c492358.entry.js → p-60da99c6.entry.js} +1 -1
  305. package/dist/vega/{p-f2c8c363.js → p-66fa700b.js} +1 -1
  306. package/dist/vega/{p-edbecf19.entry.js → p-67f18b9e.entry.js} +1 -1
  307. package/dist/vega/{p-3b32e75d.entry.js → p-67fcf6f2.entry.js} +1 -1
  308. package/dist/vega/{p-676eaf3f.entry.js → p-6a2205a1.entry.js} +1 -1
  309. package/dist/vega/{p-b007d0d5.entry.js → p-6a4277df.entry.js} +1 -1
  310. package/dist/vega/{p-30e7544c.js → p-6e136980.js} +1 -1
  311. package/dist/vega/p-6f239144.entry.js +1 -0
  312. package/dist/vega/{p-e3fa091a.js → p-6f8be8ea.js} +1 -1
  313. package/dist/vega/p-7045e84c.entry.js +1 -0
  314. package/dist/vega/{p-3566ad76.js → p-7288f8c4.js} +1 -1
  315. package/dist/vega/{p-ba223773.entry.js → p-747d6afc.entry.js} +1 -1
  316. package/dist/vega/{p-1a7e97d2.entry.js → p-75651f32.entry.js} +1 -1
  317. package/dist/vega/{p-5be29f14.js → p-77edf50c.js} +1 -1
  318. package/dist/vega/p-7ae55fd5.js +1 -0
  319. package/dist/vega/{p-9fb71d8c.entry.js → p-81134e9e.entry.js} +1 -1
  320. package/dist/vega/p-8187878e.js +1 -0
  321. package/dist/vega/p-87238c4c.entry.js +1 -0
  322. package/dist/vega/{p-3f56d184.entry.js → p-8a887843.entry.js} +1 -1
  323. package/dist/vega/{p-2ae5ad30.entry.js → p-8c0eb12f.entry.js} +1 -1
  324. package/dist/vega/p-8d0ca805.js +1 -0
  325. package/dist/vega/{p-f6cd7a08.entry.js → p-8e42a14c.entry.js} +1 -1
  326. package/dist/vega/{p-748eb5a2.js → p-91ec2e30.js} +1 -1
  327. package/dist/vega/{p-a8dad05d.js → p-920719ad.js} +1 -1
  328. package/dist/vega/{p-a58bdbad.entry.js → p-94394df7.entry.js} +1 -1
  329. package/dist/vega/p-991008a8.entry.js +1 -0
  330. package/dist/vega/p-a20854d6.entry.js +1 -0
  331. package/dist/vega/{p-a4ec6575.js → p-a2aeb646.js} +1 -1
  332. package/dist/vega/{p-2409a475.entry.js → p-a530797f.entry.js} +1 -1
  333. package/dist/vega/{p-0f601e59.entry.js → p-a5bd3c15.entry.js} +1 -1
  334. package/dist/vega/{p-38b8efe5.entry.js → p-a65941d0.entry.js} +1 -1
  335. package/dist/vega/{p-be0b67b8.entry.js → p-a85ad369.entry.js} +1 -1
  336. package/dist/vega/{p-370ee9e3.entry.js → p-a86010f7.entry.js} +1 -1
  337. package/dist/vega/{p-a7f151fe.entry.js → p-aa10eeb3.entry.js} +1 -1
  338. package/dist/vega/{p-99676172.entry.js → p-ab2f35af.entry.js} +1 -1
  339. package/dist/vega/{p-301096ee.js → p-ac4563d7.js} +1 -1
  340. package/dist/vega/{p-ce2ffff7.js → p-aedf7146.js} +1 -1
  341. package/dist/vega/p-b4ea3fad.js +1 -0
  342. package/dist/vega/{p-d991fb11.js → p-badad9ed.js} +1 -1
  343. package/dist/vega/{p-c7194674.entry.js → p-bb4a558d.entry.js} +1 -1
  344. package/dist/vega/{p-4957f07a.entry.js → p-bb8339ed.entry.js} +1 -1
  345. package/dist/vega/{p-6b9d2996.entry.js → p-be930e85.entry.js} +1 -1
  346. package/dist/vega/{p-398220f5.entry.js → p-bf2bd6d0.entry.js} +1 -1
  347. package/dist/vega/{p-ead1da57.entry.js → p-c379a5a5.entry.js} +1 -1
  348. package/dist/vega/{p-a2d1c2f3.js → p-c8f1b9d5.js} +1 -1
  349. package/dist/vega/{p-184d8443.js → p-c9b6b5a9.js} +1 -1
  350. package/dist/vega/{p-9d8e2939.entry.js → p-ca3472c1.entry.js} +1 -1
  351. package/dist/vega/{p-3a279b71.js → p-cc43bffb.js} +1 -1
  352. package/dist/vega/{p-9ea8eb49.js → p-ce1a2982.js} +1 -1
  353. package/dist/vega/{p-d1d0f08a.js → p-d0e31633.js} +1 -1
  354. package/dist/vega/{p-b18c12cb.entry.js → p-d6ed3d76.entry.js} +1 -1
  355. package/dist/vega/{p-6c1ef2ed.js → p-dd11f735.js} +1 -1
  356. package/dist/vega/{p-071f9d00.entry.js → p-e1610196.entry.js} +1 -1
  357. package/dist/vega/{p-3d85411d.js → p-e16b3adf.js} +1 -1
  358. package/dist/vega/{p-950bf9a9.entry.js → p-e87b0b4a.entry.js} +1 -1
  359. package/dist/vega/{p-a5d4d168.entry.js → p-e9c4fd24.entry.js} +1 -1
  360. package/dist/vega/{p-7a8c4cf8.entry.js → p-eb60cfe1.entry.js} +1 -1
  361. package/dist/vega/{p-f844f3f1.entry.js → p-ef001c70.entry.js} +1 -1
  362. package/dist/vega/{p-73383099.js → p-f383c856.js} +1 -1
  363. package/dist/vega/{p-c7f292dd.entry.js → p-f3c3ff26.entry.js} +1 -1
  364. package/dist/vega/{p-7f9acdf7.entry.js → p-f52a0155.entry.js} +1 -1
  365. package/dist/vega/{p-96797fee.entry.js → p-f8f7cf48.entry.js} +1 -1
  366. package/dist/vega/{p-cadd84ec.entry.js → p-fba14ad2.entry.js} +1 -1
  367. package/dist/vega/{p-c796307d.entry.js → p-fbd64f9c.entry.js} +1 -1
  368. package/dist/vega/{p-bb9db84a.entry.js → p-fdc270b8.entry.js} +1 -1
  369. package/dist/vega/p-fe12eff6.js +1 -0
  370. package/dist/vega/{p-3ebc8b5b.entry.js → p-ffbff9b5.entry.js} +1 -1
  371. package/dist/vega/vega.esm.js +1 -1
  372. package/package.json +1 -1
  373. package/dist/vega/p-207cfa6a.js +0 -1
  374. package/dist/vega/p-29618be2.js +0 -1
  375. package/dist/vega/p-310a6294.entry.js +0 -1
  376. package/dist/vega/p-3162a7fd.entry.js +0 -1
  377. package/dist/vega/p-451ddd84.js +0 -1
  378. package/dist/vega/p-697eb0e1.js +0 -1
  379. package/dist/vega/p-779cd090.entry.js +0 -1
  380. package/dist/vega/p-7c238c19.entry.js +0 -1
  381. package/dist/vega/p-8bd496b4.js +0 -1
  382. package/dist/vega/p-9a83a6b0.js +0 -1
  383. package/dist/vega/p-a6dfef41.entry.js +0 -1
  384. package/dist/vega/p-b0ed81e2.js +0 -1
  385. package/dist/vega/p-b4be03bb.entry.js +0 -1
  386. package/dist/vega/p-c34feecd.entry.js +0 -1
  387. package/dist/vega/p-c4700277.entry.js +0 -1
  388. package/dist/vega/p-f38a4be2.entry.js +0 -1
  389. package/dist/vega/p-fbda4a20.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,b as i}from"./p-6b2342e0.js";import{g as a}from"./p-42b7b5df.js";import"./p-e77a83e4.js";import"./p-6e1ab235.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-73383099.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-d9671d27.js";import"./p-10ac8b57.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-ef9cbad1.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-4866e390.js";import"./p-697eb0e1.js";import"./p-8bd496b4.js";import"./p-262ec334.js";import"./p-451ddd84.js";import"./p-e3fa091a.js";import"./p-5b71c85e.js";import"./p-02841589.js";import"./p-161b9c5b.js";import"./p-d884c644.js";import"./p-f69f84a7.js";import"./p-bf19682d.js";import"./p-8c9ea6f4.js";import"./p-a7b5f497.js";import"./p-5f377954.js";import"./p-5d676a94.js";import"./p-de70aac1.js";import"./p-abd7aeaa.js";import"./p-ce2ffff7.js";import"./p-748eb5a2.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>(a(),i(JSON.parse('[["p-f92752d2",[[1,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[1026,"page-size"],"extensions":[16],"layout":[1],"pageSizeSelectorOptions":[1040],"dropdownProps":[16],"currentBreakpoint":[32],"pageCount":[32]}]]],["p-9d8e2939",[[1,"vega-page-notification",{"notificationTitle":[1,"title"],"message":[1],"type":[1],"duration":[2],"showCloseButton":[4,"show-close-button"],"actionButtons":[16],"close":[64]}],[1,"vega-page-notification-list"]]],["p-f6cd7a08",[[1,"vega-color-picker",{"value":[1537],"hint":[1],"disabled":[516],"required":[516],"label":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"isInline":[4,"is-inline"]}]]],["p-82dbff54",[[1,"vega-stepper",{"stepperId":[513,"id"],"max":[514],"min":[514],"value":[1538],"label":[1],"inputDisabled":[4,"input-disabled"],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"buttonVariant":[1,"button-variant"]}]]],["p-a5d4d168",[[1,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4],"target":[1]}]]],["p-edbecf19",[[1,"vega-chip",{"text":[1],"clickable":[4],"variant":[1],"size":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"statusColor":[1,"status-color"],"chipType":[1,"chip-type"],"showCloseIcon":[4,"show-close-icon"],"icon":[1],"iconAlign":[1,"icon-align"],"currentBreakpoint":[32],"currentSize":[32]}]]],["p-2ae5ad30",[[1,"vega-item-toggle",{"itemToggleStatusMap":[16],"statusMap":[16],"isToggled":[1028,"is-toggled"],"toggleItemStatus":[32]}]]],["p-7f9acdf7",[[1,"vega-checkbox",{"identifier":[1],"value":[1032],"checked":[1028],"disabled":[516],"size":[1],"required":[516],"isValid":[1540,"is-valid"],"groupDisabled":[32],"showError":[32],"setValue":[64]}],[1,"vega-checkbox-group",{"label":[1],"value":[1040],"vegaFlexProp":[16],"disabled":[516],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16]}]]],["p-3ebc8b5b",[[1,"vega-app-header-button",{"dropdown":[16],"size":[1],"label":[1],"showLabel":[4,"show-label"],"avatar":[16],"avatarPosition":[1,"avatar-position"],"showBorder":[4,"show-border"],"showMenuArrowIcon":[4,"show-menu-arrow-icon"],"selected":[4],"isDropdownShow":[32],"currentBreakpoint":[32]}]]],["p-4dd6554e",[[1,"vega-hint"]]],["p-c4700277",[[1,"vega-button-group",{"variant":[1],"size":[1],"iconAlign":[1,"icon-align"],"disabled":[4]}],[1,"vega-button-group-item",{"icon":[1],"label":[1],"iconOnly":[4,"icon-only"],"disabled":[4],"itemKey":[1,"item-key"],"dropdownProps":[16],"dropdownSource":[16],"variant":[32],"size":[32],"iconAlign":[32],"parentDisabled":[32]}]]],["p-370ee9e3",[[1,"vega-carousel",{"perPage":[2,"per-page"],"itemsPerPage":[2,"items-per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"canSwipe":[4,"can-swipe"],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}]]],["p-6e84e451",[[1,"vega-input-credit-card",{"required":[1540],"disabled":[516],"label":[1],"hint":[1],"size":[1],"placeholder":[1],"hideCardNumberOnBlur":[4,"hide-card-number-on-blur"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"isValid":[1540,"is-valid"],"value":[1537]}]]],["p-b4be03bb",[[1,"vega-table",{"columns":[16],"groupColumns":[16],"dataSource":[1040],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"emptyDescription":[1,"empty-description"],"rowKey":[1,"row-key"],"scrollConfig":[16],"sortConfig":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowKey":[32],"currentPage":[32],"pageSize":[32],"editingRows":[32],"isSelectedAll":[32],"isTemplateRenderMode":[32],"columnStructureModel":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64],"startRowEditMode":[64],"stopRowEditMode":[64],"stopAllRowEditMode":[64],"getRowData":[64],"getRowsData":[64],"getFormRef":[64],"addNewRow":[64],"saveEditRow":[64],"saveAllEditRows":[64],"getEditingRowsKey":[64],"removeRow":[64]}],[1,"vega-table-body"],[1,"vega-table-cell",{"textAlign":[1,"text-align"],"breakpoint":[1],"overflow":[1],"width":[1],"currentBreakpoint":[32],"density":[32],"rowDivider":[32],"columnDivider":[32],"clickable":[32],"checked":[32],"striped":[32],"expanded":[32]}],[1,"vega-table-expand-row",{"rowKey":[1,"row-key"],"striped":[4],"currentBreakpoint":[32],"withMultipleSelection":[32],"expanded":[32],"checked":[32],"colSpan":[32]}],[1,"vega-table-foot",{"fixed":[32],"rowDivider":[32]}],[1,"vega-table-foot-cell",{"breakpoint":[1],"textAlign":[1,"text-align"],"width":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-foot-row",{"currentBreakpoint":[32],"expandable":[32],"selectionType":[32],"paddingX":[32],"columnDivider":[32],"density":[32]}],[1,"vega-table-head",{"fixed":[32]}],[1,"vega-table-head-cell",{"breakpoint":[1],"sorter":[1],"sortOrder":[1025,"sort-order"],"textAlign":[1,"text-align"],"width":[1],"sortConfig":[16],"pinned":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-head-row",{"selectAllDisabled":[4,"select-all-disabled"],"hideSelectAll":[4,"hide-select-all"],"currentBreakpoint":[32],"expandable":[32],"selectionType":[32],"paddingX":[32],"checkedAll":[32],"columnDivider":[32],"density":[32],"isEmptyTable":[32],"isTemplateRenderMode":[32]}],[1,"vega-table-row",{"rowKey":[1,"row-key"],"striped":[4],"rowDivider":[4,"row-divider"],"currentBreakpoint":[32],"clicked":[32],"expandable":[32],"clickable":[32],"paddingX":[32],"selectionType":[32],"checked":[32],"expanded":[32],"columnDivider":[32],"density":[32]}]]],["p-950bf9a9",[[1,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"iconPosition":[1,"icon-position"],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["p-ea04a387",[[1,"vega-app-footer",{"content":[1],"termOfUseLabel":[1,"term-of-use-label"],"termOfUseUrl":[1,"term-of-use-url"],"termOfUseUrlTarget":[1,"term-of-use-url-target"],"termOfUseUrlId":[1,"term-of-use-url-id"],"privacyPolicyLabel":[1,"privacy-policy-label"],"privacyPolicyUrl":[1,"privacy-policy-url"],"privacyPolicyUrlTarget":[1,"privacy-policy-url-target"],"privacyPolicyUrlId":[1,"privacy-policy-url-id"],"hideDefaultLinks":[4,"hide-default-links"],"additionalLinks":[16],"showDisclaimer":[4,"show-disclaimer"],"disclaimerUrlTarget":[1,"disclaimer-url-target"],"currentBranding":[32]}]]],["p-671afda4",[[1,"vega-backdrop",{"color":[1],"visible":[4],"duration":[2]}]]],["p-ad2055f4",[[1,"vega-bar-chart",{"options":[16]}]]],["p-2409a475",[[1,"vega-breadcrumb",{"maxItems":[8,"max-items"],"items":[16],"compactOnMobile":[4,"compact-on-mobile"]}]]],["p-b19d4e26",[[1,"vega-card",{"padding":[1],"margin":[1],"variant":[1],"backgroundColor":[1,"background-color"]}]]],["p-f38a4be2",[[1,"vega-combo-box",{"label":[1],"required":[516],"source":[1040],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"disabled":[516],"placeholder":[1],"hint":[1],"size":[1],"vegaDropdownProps":[16],"useDefaultFilter":[4,"use-default-filter"],"close":[64],"open":[64]}]]],["p-e9b86dac",[[1,"vega-counter-badge",{"dot":[4],"color":[1],"count":[2],"offset":[16]}]]],["p-4897bedd",[[1,"vega-field-error",{"message":[1]}]]],["p-071f9d00",[[1,"vega-flag-icon",{"country":[1],"size":[1]}]]],["p-f844f3f1",[[1,"vega-image-uploader",{"value":[1040],"accept":[1],"status":[1537],"showPreviewButton":[4,"show-preview-button"],"showRemoveButton":[4,"show-remove-button"],"showReplaceButton":[4,"show-replace-button"],"disabled":[516],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"label":[1],"hint":[1],"actionTitle":[1,"action-title"],"actionSubTitle":[1,"action-sub-title"],"width":[8],"height":[8],"isInDarkMode":[32],"getContentURL":[64]}]]],["p-0bb3be0b",[[1,"vega-line-chart",{"options":[16],"reRender":[64]}]]],["p-5910be31",[[1,"vega-pie-chart",{"options":[16],"reRender":[64]}]]],["p-c7194674",[[1,"vega-segment-control",{"block":[4],"size":[1],"segments":[16],"selected":[1025],"variant":[1],"isOverflowBlockSegments":[32]}]]],["p-0b38a01f",[[1,"vega-slot-container"]]],["p-a7f151fe",[[1,"vega-font",{"variant":[1],"color":[1],"disableResponsive":[4,"disable-responsive"],"textAlign":[1,"text-align"],"as":[1],"currentBreakpoint":[32]}]]],["p-94cf46ca",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"disableBlurValidation":[1028,"disable-blur-validation"],"useNativeForm":[4,"use-native-form"],"action":[1],"method":[1],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64],"setValidationStates":[64]}]]],["p-1a7e97d2",[[1,"vega-grid",{"column":[8],"row":[8],"gap":[1]}]]],["p-779cd090",[[1,"vega-input-select",{"label":[1],"labelSuffixButtonConfig":[16],"required":[516],"selectedLabel":[16],"selectType":[1,"select-type"],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"size":[1],"sourceLazyLoadCallback":[16],"isDropdownShow":[32],"currentBreakpoint":[32],"isLazyLoading":[32],"selectedItem":[32],"doClose":[64],"doOpen":[64],"doChange":[64]}]]],["p-676eaf3f",[[1,"vega-pagination-page-selector-mobile",{"type":[1],"pageCount":[2,"page-count"],"current":[1538],"total":[2]}]]],["p-44bc9ea9",[[1,"vega-pagination-page-size-selector-mobile",{"type":[1],"pageSize":[1026,"page-size"],"pageSizeSelectorOptions":[1040],"total":[2],"current":[1538],"dropdownProps":[16]}]]],["p-5c492358",[[1,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4],"type":[1],"loading":[4],"currentBreakpoint":[32]}]]],["p-310a6294",[[1,"vega-box",{"padding":[1],"margin":[1],"display":[1],"border":[1],"borderStyle":[1,"border-style"],"shadow":[1],"borderColor":[1,"border-color"],"backgroundColor":[1,"background-color"],"width":[8],"height":[8],"minHeight":[8,"min-height"],"maxHeight":[8,"max-height"],"responsiveClass":[1,"responsive-class"],"corners":[1],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"order":[8],"flex":[8],"alignSelf":[1,"align-self"],"justifySelf":[1,"justify-self"],"gridColumn":[8,"grid-column"],"gridRow":[8,"grid-row"],"gridArea":[8,"grid-area"],"currentBreakpoint":[32]}]]],["p-cadd84ec",[[1,"vega-icon",{"icon":[513],"size":[1],"color":[1]}]]],["p-ba223773",[[1,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4],"type":[1],"iconColor":[1,"icon-color"],"showTooltip":[4,"show-tooltip"],"tooltip":[16]}]]],["p-3162a7fd",[[1,"vega-input",{"label":[1],"labelSuffixButtonProps":[16],"labelSuffixButtonConfig":[16],"value":[1537],"valueUpdateTrigger":[1,"value-update-trigger"],"type":[513],"name":[1],"autocomplete":[1],"inputmode":[1],"prefixIcon":[513,"prefix-icon"],"email":[516],"required":[1540],"min":[514],"max":[514],"minLength":[514,"min-length"],"maxLength":[514,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[516],"hint":[1],"maskConfig":[16],"disableCopyPaste":[4,"disable-copy-paste"],"prefixText":[32],"suffixText":[32],"isCompactInputWidth":[32],"isPasswordDisplay":[32],"doFocus":[64],"doBlur":[64]}]]],["p-ead1da57",[[1,"vega-field-label",{"suffixButtonProps":[16],"suffixButtonConfig":[16],"label":[1025],"isFieldRequired":[4,"is-field-required"],"disabled":[4]}]]],["p-1e0d8228",[[1,"vega-text",{"overflow":[1],"tooltip":[16]}]]],["p-be0b67b8",[[1,"vega-textarea",{"placeholder":[1],"hint":[1],"disabled":[516],"label":[1],"labelSuffixButtonConfig":[16],"showCounter":[4,"show-counter"],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"required":[1540],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"resizable":[4],"rows":[2],"validationRules":[16],"currentCharCount":[32]},[[0,"input","handleValueTextarea"]]]]],["p-9b673fd4",[[1,"vega-toggle-switch",{"checked":[1540],"value":[1540],"size":[1],"label":[1],"required":[516],"disabled":[516],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"]}]]],["p-3398f553",[[1,"vega-loading-indicator",{"shape":[1],"size":[1],"mode":[1],"percent":[2],"label":[1],"hint":[1],"status":[1],"currentBreakpoint":[32]}],[1,"vega-loader-wrapper"]]],["p-7a8c4cf8",[[1,"vega-radio-group",{"label":[1],"value":[1537],"name":[1],"vegaFlexProp":[16],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"disabled":[516],"autoValidation":[516,"auto-validation"],"validationRules":[16]}],[1,"vega-radio",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1],"groupDisabled":[32],"showError":[32]}]]],["p-a6dfef41",[[1,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"prefixIconSlot":[4,"prefix-icon-slot"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"itemDisplayRule":[1,"item-display-rule"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"dynamicOption":[4,"dynamic-option"],"useDefaultFilter":[4,"use-default-filter"],"isLoading":[4,"is-loading"],"placement":[1],"alignment":[1],"isLazyLoading":[4,"is-lazy-loading"],"searchTriggerBy":[1,"search-trigger-by"],"isScreenPosition":[4,"is-screen-position"],"resettable":[4],"virtualizationThreshold":[2,"virtualization-threshold"],"preserveValueIfNotInSource":[4,"preserve-value-if-not-in-source"],"searchNoResultsText":[1,"search-no-results-text"],"searchString":[32],"isDropdownShow":[32],"sourceForRender":[32],"show":[64],"hide":[64],"search":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[1,"vega-dropdown-content-box"],[1,"vega-dropdown-group",{"label":[1],"divide":[4]}],[1,"vega-dropdown-item",{"label":[1],"itemKey":[513,"item-key"],"count":[2],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"height":[2],"danger":[4],"selectType":[32],"prefixIconSlot":[32],"selected":[32],"itemDisplayRule":[32]}],[1,"vega-virtual-scroll",{"source":[16],"approxItemHeight":[2,"approx-item-height"],"viewportMaxHeight":[2,"viewport-max-height"],"isLoading":[4,"is-loading"],"virtualizationThreshold":[2,"virtualization-threshold"],"sourceItemIdentifier":[1,"source-item-identifier"],"renderItem":[16],"positionConfig":[32],"scrollTop":[32],"scrollToIndex":[64]}]]],["p-5a0c92db",[[1,"vega-left-nav",{"open":[1028],"headerConfig":[16],"source":[16],"footnote":[1],"showAsOverlay":[4,"show-as-overlay"],"autoCollapseOnOverlay":[4,"auto-collapse-on-overlay"],"autoCollapseGroups":[8,"auto-collapse-groups"],"currentBranding":[32],"openState":[32],"toggle":[64]}],[1,"vega-left-nav-group",{"icon":[1],"label":[1],"openByDefault":[4,"open-by-default"],"itemKey":[1,"item-key"],"autoCollapseGroups":[32]}],[1,"vega-left-nav-link",{"icon":[1],"selected":[1540],"customSelectionEnabled":[4,"custom-selection-enabled"],"url":[1],"counterBadge":[16],"itemKey":[1,"item-key"],"target":[1]}],[1,"vega-left-nav-section",{"sectionHeader":[16],"itemKey":[1,"item-key"]}],[1,"vega-nav-card",{"source":[16],"maxHeight":[520,"max-height"],"currentMaxHeight":[32]}]]],["p-c7f292dd",[[1,"vega-calendar",{"viewMode":[1025,"view-mode"],"events":[16],"timeFormat":[1,"time-format"],"isDateDisabled":[16],"moreActionDropdownProps":[16],"showEventColorBar":[4,"show-event-color-bar"],"showSwitchView":[4,"show-switch-view"],"enableDateClick":[4,"enable-date-click"],"showWeekends":[4,"show-weekends"],"enabledEventPreview":[4,"enabled-event-preview"],"timezone":[1],"calendarView":[32],"currentPeriod":[32],"postOperationDate":[32],"showAllEventsInDayOrWeekView":[32],"calendarEvents":[32]}],[1,"vega-calendar-event",{"calendarEvent":[16],"timeFormat":[32],"slotMode":[32],"showColorBar":[32]}],[1,"vega-calendar-event-preview",{"previewPayload":[32],"currentEvent":[32]}],[1,"vega-calendar-event-slot",{"eventKey":[513,"event-key"]}]]],["p-ca9b4af9",[[1,"vega-rich-text-editor",{"label":[1],"required":[516],"placeholder":[1],"disabled":[4],"hint":[1],"rows":[2],"value":[1040],"toolbarItems":[16],"allowSourceEdit":[4,"allow-source-edit"],"sourceEditConfig":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"extensions":[16],"richTextContentEditable":[32],"selectionMap":[32],"isInDarkMode":[32],"sourceView":[32]}],[1,"vega-rich-text-editor-toolbar-button",{"disabled":[4],"hidden":[4],"selected":[4],"showArrowIcon":[4,"show-arrow-icon"],"icon":[1],"iconColor":[1,"icon-color"]}],[1,"vega-rich-text-image-editor",{"alt":[513],"size":[1537],"currentPage":[32],"selected":[32]}],[1,"vega-rich-text-link-editor",{"status":[1025],"record":[16],"resetStatusAfterHide":[4,"reset-status-after-hide"],"target":[16],"show":[64]}]]],["p-c34feecd",[[1,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"validationRules":[16],"minDate":[1537,"min-date"],"maxDate":[1537,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"showClearIcon":[4,"show-clear-icon"],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"disabled":[516],"timezone":[1],"isDateDisabled":[16],"isMobileDevice":[32],"isCalendarShow":[32],"doClose":[64],"doOpen":[64]}],[1,"vega-date-picker-calendar",{"size":[1],"mode":[1],"selection":[1025],"format":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"clearButton":[4,"clear-button"],"staticHeight":[4,"static-height"],"timezone":[1],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"yearMonthDropdownProps":[16],"isDateDisabled":[16],"isMobileDevice":[32],"today":[32],"currentPeriod":[32],"hoverDate":[32],"calendarSelection":[32],"maxCalendarDate":[32],"minCalendarDate":[32],"reset":[64],"triggerRepick":[64]}]]],["p-05feab84",[[1,"vega-popover",{"size":[8],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"trigger":[1],"showArrow":[4,"show-arrow"],"isScreenPosition":[4,"is-screen-position"],"padding":[1],"isPopoverShow":[32],"show":[64],"hide":[64]}],[1,"vega-popover-content-box",{"showArrow":[4,"show-arrow"],"padding":[1]}]]],["p-c796307d",[[1,"vega-progress-tracker",{"current":[1026],"direction":[1],"steps":[16],"completedStepArray":[16],"completedSteps":[16],"canClickStep":[4,"can-click-step"],"currentSteps":[32],"currentDirection":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]}],[1,"vega-progress-tracker-step",{"stepKey":[513,"step-key"],"progressStatus":[32],"isCurrent":[32]}]]],["p-7c238c19",[[1,"vega-selection-chip",{"label":[1],"size":[1],"variant":[1],"disabled":[1028],"checked":[1540],"block":[4],"disabledTooltip":[16],"swatchColor":[1,"swatch-color"],"value":[1],"showError":[32],"currentBreakpoint":[32],"selectType":[32]}],[1,"vega-selection-chip-group",{"label":[1],"hint":[1],"selectType":[1,"select-type"],"value":[1025],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-96797fee",[[1,"vega-selection-tile",{"titleText":[1,"title"],"note":[1],"prefixIcon":[1,"prefix-icon"],"disabled":[1028],"checked":[1028],"selectType":[1025,"select-type"],"value":[1],"showError":[32],"distributeEvenly":[32]}],[1,"vega-selection-tile-group",{"label":[1],"hint":[1],"distributeEvenly":[4,"distribute-evenly"],"selectType":[1,"select-type"],"value":[1025],"layout":[1],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-6b9d2996",[[1,"vega-tab-group",{"selectedTabDataTarget":[1025,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[1040],"positionRelativeTo":[1,"position-relative-to"],"variant":[1],"overflow":[1],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]}],[1,"vega-tab-group-panel",{"isActive":[4,"is-active"]}]]],["p-fbda4a20",[[1,"vega-time-picker",{"label":[1],"mode":[1],"required":[516],"placeholder":[1],"increments":[2],"timeFormat":[513,"time-format"],"value":[1537],"size":[1],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"positionRelativeTo":[1,"position-relative-to"],"dropdownSource":[32],"isDropdownShow":[32],"selectedTimeValue":[32]}],[1,"vega-time-picker-dropdown"]]],["p-a58bdbad",[[1,"vega-banner",{"type":[1],"bannerTitle":[1,"banner-title"],"content":[1],"actionButtons":[16],"showCloseButton":[4,"show-close-button"],"isOpen":[4,"is-open"],"doClose":[64]}]]],["p-9fd503e9",[[1,"vega-brand-logo",{"name":[1],"size":[1],"theme":[1],"isInDarkMode":[32]}]]],["p-3b32e75d",[[1,"vega-code-block",{"readOnly":[4,"read-only"],"disabled":[4],"showCopyButton":[4,"show-copy-button"],"showLineNumber":[4,"show-line-number"],"value":[1040],"doFocus":[64]}]]],["p-38b8efe5",[[1,"vega-divider",{"direction":[1],"variant":[1],"margin":[1],"currentBreakpoint":[32]}]]],["p-398220f5",[[1,"vega-file-uploader",{"label":[1],"variant":[1],"hint":[1],"value":[1040],"disabled":[4],"maxCount":[2,"max-count"],"required":[4],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"accept":[1]}]]],["p-b007d0d5",[[1,"vega-input-numeric",{"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"prefixIcon":[1,"prefix-icon"],"value":[1025],"size":[1],"placeholder":[1],"thousandComma":[4,"thousand-comma"],"integerOnly":[4,"integer-only"],"disabled":[4],"minorIncrement":[2,"minor-increment"],"majorIncrement":[2,"major-increment"],"label":[1],"hint":[1],"required":[4],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"isCompactInputWidth":[32]}]]],["p-4957f07a",[[1,"vega-input-passcode",{"label":[1],"disabled":[516],"size":[1],"hint":[1],"length":[2],"inputType":[1,"input-type"],"value":[1537],"required":[1540],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"vegaInputValues":[32]}]]],["p-b18c12cb",[[1,"vega-input-phone-number",{"label":[1],"size":[1],"required":[1540],"disabled":[516],"countryCode":[1537,"country-code"],"allowedCountryCodes":[16],"emptyValueEnabled":[4,"empty-value-enabled"],"value":[1537],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"placeholder":[1],"hint":[1],"phoneNumberInputValue":[32]}]]],["p-9fb71d8c",[[1,"vega-input-range",{"label":[1],"value":[1040],"prefixIcon":[513,"prefix-icon"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"required":[1540],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[16],"disabled":[516],"hint":[1],"stack":[1]}]]],["p-95b11cdd",[[1,"vega-rich-text-content",{"content":[1040],"extensions":[16],"placeholder":[32],"contentEditable":[32],"extensionStyles":[32],"vegaFocus":[64]}]]],["p-fff13ed1",[[1,"vega-section-title",{"titleText":[1,"title"],"description":[1],"icon":[1],"iconAlign":[1,"icon-align"]}]]],["p-0f601e59",[[1,"vega-signature-capture",{"mode":[1],"label":[1],"required":[516],"showClearBtn":[4,"show-clear-btn"],"placeholder":[1],"placeholderIcon":[1,"placeholder-icon"],"disabled":[4],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"height":[8],"currentBreakpoint":[32],"isDrawing":[32],"clear":[64]}]]],["p-e5af5a4d",[[1,"vega-skeleton",{"type":[513],"width":[8],"height":[8],"animated":[4],"corners":[1]}]]],["p-9b7daab0",[[1,"vega-dialog",{"dialogTitle":[1,"dialog-title"],"content":[1],"type":[1],"okButton":[16],"handleOk":[16],"cancelButton":[16],"handleCancel":[16],"showCancel":[4,"show-cancel"],"modalProps":[16],"currentBreakpoint":[32]}],[1,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"isVerticallyCentered":[4,"is-vertically-centered"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[8,"content-max-height"],"handleClose":[16],"currentBreakpoint":[32],"openState":[32],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"],[1,"mousedown","listenMouseDown"],[1,"mouseup","listenMouseUp"]]]]],["p-3f56d184",[[1,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[10,"click","collapseSidenavByBackDropClick"]]],[1,"vega-sidenav-group",{"icon":[1],"label":[1],"openState":[32]}],[1,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"],"openState":[32]}]]],["p-99676172",[[1,"vega-tooltip-content-box",{"text":[1]}],[1,"vega-tooltip",{"size":[8],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"trigger":[1],"content":[1],"text":[1],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"disableInteractive":[4,"disable-interactive"],"isTooltipShow":[32]}]]],["p-bb9db84a",[[1,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexWrap":[1,"flex-wrap"],"flex":[8],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"useNativeFlex":[4,"use-native-flex"],"currentBreakpoint":[32]}]]]]'),e))));
1
+ import{p as e,b as i}from"./p-6b2342e0.js";import{g as a}from"./p-06aaced4.js";import"./p-e77a83e4.js";import"./p-6e1ab235.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-f383c856.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-d9671d27.js";import"./p-10ac8b57.js";import"./p-40f39194.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-ef9cbad1.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-4866e390.js";import"./p-fe12eff6.js";import"./p-8d0ca805.js";import"./p-262ec334.js";import"./p-56e97df8.js";import"./p-6f8be8ea.js";import"./p-5b71c85e.js";import"./p-02841589.js";import"./p-1f83cebf.js";import"./p-d884c644.js";import"./p-f69f84a7.js";import"./p-bf19682d.js";import"./p-8c9ea6f4.js";import"./p-a7b5f497.js";import"./p-5f377954.js";import"./p-5d676a94.js";import"./p-60851f9d.js";import"./p-abd7aeaa.js";import"./p-aedf7146.js";import"./p-91ec2e30.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),e(a)})().then((e=>(a(),i(JSON.parse('[["p-34246870",[[1,"vega-pagination",{"current":[1538],"total":[2],"pageSize":[1026,"page-size"],"extensions":[16],"layout":[1],"pageSizeSelectorOptions":[1040],"dropdownProps":[16],"currentBreakpoint":[32],"pageCount":[32]}]]],["p-ca3472c1",[[1,"vega-page-notification",{"notificationTitle":[1,"title"],"message":[1],"type":[1],"duration":[2],"showCloseButton":[4,"show-close-button"],"actionButtons":[16],"close":[64]}],[1,"vega-page-notification-list"]]],["p-8e42a14c",[[1,"vega-color-picker",{"value":[1537],"hint":[1],"disabled":[516],"required":[516],"label":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"colors":[16],"isInline":[4,"is-inline"]}]]],["p-509eb52e",[[1,"vega-stepper",{"stepperId":[513,"id"],"max":[514],"min":[514],"value":[1538],"label":[1],"inputDisabled":[4,"input-disabled"],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"buttonVariant":[1,"button-variant"]}]]],["p-e9c4fd24",[[1,"vega-button-link",{"link":[1],"size":[1],"icon":[513],"iconType":[1,"icon-type"],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"eventful":[4],"target":[1]}]]],["p-67f18b9e",[[1,"vega-chip",{"text":[1],"clickable":[4],"variant":[1],"size":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"],"statusColor":[1,"status-color"],"chipType":[1,"chip-type"],"showCloseIcon":[4,"show-close-icon"],"icon":[1],"iconAlign":[1,"icon-align"],"currentBreakpoint":[32],"currentSize":[32]}]]],["p-8c0eb12f",[[1,"vega-item-toggle",{"itemToggleStatusMap":[16],"statusMap":[16],"isToggled":[1028,"is-toggled"],"toggleItemStatus":[32]}]]],["p-f52a0155",[[1,"vega-checkbox",{"identifier":[1],"value":[1032],"checked":[1028],"disabled":[516],"size":[1],"required":[516],"isValid":[1540,"is-valid"],"groupDisabled":[32],"showError":[32],"setValue":[64]}],[1,"vega-checkbox-group",{"label":[1],"value":[1040],"vegaFlexProp":[16],"disabled":[516],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16]}]]],["p-ffbff9b5",[[1,"vega-app-header-button",{"dropdown":[16],"size":[1],"label":[1],"showLabel":[4,"show-label"],"avatar":[16],"avatarPosition":[1,"avatar-position"],"showBorder":[4,"show-border"],"showMenuArrowIcon":[4,"show-menu-arrow-icon"],"selected":[4],"isDropdownShow":[32],"currentBreakpoint":[32]}]]],["p-4dd6554e",[[1,"vega-hint"]]],["p-4a537391",[[1,"vega-button-group",{"variant":[1],"size":[1],"iconAlign":[1,"icon-align"],"disabled":[4]}],[1,"vega-button-group-item",{"icon":[1],"label":[1],"iconOnly":[4,"icon-only"],"disabled":[4],"itemKey":[1,"item-key"],"dropdownProps":[16],"dropdownSource":[16],"variant":[32],"size":[32],"iconAlign":[32],"parentDisabled":[32]}]]],["p-a86010f7",[[1,"vega-carousel",{"perPage":[2,"per-page"],"itemsPerPage":[2,"items-per-page"],"showSlider":[4,"show-slider"],"spacing":[1],"canSwipe":[4,"can-swipe"],"page":[32],"totalPages":[32],"nextPage":[64],"prevPage":[64],"goToPage":[64]}]]],["p-3c5a28e4",[[1,"vega-input-credit-card",{"required":[1540],"disabled":[516],"label":[1],"hint":[1],"size":[1],"placeholder":[1],"hideCardNumberOnBlur":[4,"hide-card-number-on-blur"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"isValid":[1540,"is-valid"],"value":[1537]}]]],["p-6f239144",[[1,"vega-table",{"columns":[16],"groupColumns":[16],"dataSource":[1040],"rowSelection":[1040],"rowExpandable":[4,"row-expandable"],"rowClickable":[4,"row-clickable"],"rowDivider":[4,"row-divider"],"columnDivider":[4,"column-divider"],"striped":[4],"density":[1],"paddingX":[16],"showHeader":[4,"show-header"],"pagination":[16],"emptyDescription":[1,"empty-description"],"rowKey":[1,"row-key"],"scrollConfig":[16],"sortConfig":[16],"selectedRowKeySet":[32],"expandedRowKeySet":[32],"currentBreakpoint":[32],"sortersMap":[32],"currentData":[32],"currentClickedRowKey":[32],"currentPage":[32],"pageSize":[32],"editingRows":[32],"isSelectedAll":[32],"isTemplateRenderMode":[32],"columnStructureModel":[32],"openExpandRow":[64],"closeExpandRow":[64],"closeAllExpandRow":[64],"toggleExpandRow":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64],"startRowEditMode":[64],"stopRowEditMode":[64],"stopAllRowEditMode":[64],"getRowData":[64],"getRowsData":[64],"getFormRef":[64],"addNewRow":[64],"saveEditRow":[64],"saveAllEditRows":[64],"getEditingRowsKey":[64],"removeRow":[64]}],[1,"vega-table-body"],[1,"vega-table-cell",{"textAlign":[1,"text-align"],"breakpoint":[1],"overflow":[1],"width":[1],"currentBreakpoint":[32],"density":[32],"rowDivider":[32],"columnDivider":[32],"clickable":[32],"checked":[32],"striped":[32],"expanded":[32]}],[1,"vega-table-expand-row",{"rowKey":[1,"row-key"],"striped":[4],"currentBreakpoint":[32],"withMultipleSelection":[32],"expanded":[32],"checked":[32],"colSpan":[32]}],[1,"vega-table-foot",{"fixed":[32],"rowDivider":[32]}],[1,"vega-table-foot-cell",{"breakpoint":[1],"textAlign":[1,"text-align"],"width":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-foot-row",{"currentBreakpoint":[32],"expandable":[32],"selectionType":[32],"paddingX":[32],"columnDivider":[32],"density":[32]}],[1,"vega-table-head",{"fixed":[32]}],[1,"vega-table-head-cell",{"breakpoint":[1],"sorter":[1],"sortOrder":[1025,"sort-order"],"textAlign":[1,"text-align"],"width":[1],"sortConfig":[16],"pinned":[1],"currentBreakpoint":[32],"density":[32],"columnDivider":[32]}],[1,"vega-table-head-row",{"selectAllDisabled":[4,"select-all-disabled"],"hideSelectAll":[4,"hide-select-all"],"currentBreakpoint":[32],"expandable":[32],"selectionType":[32],"paddingX":[32],"checkedAll":[32],"columnDivider":[32],"density":[32],"isEmptyTable":[32],"isTemplateRenderMode":[32]}],[1,"vega-table-row",{"rowKey":[1,"row-key"],"striped":[4],"rowDivider":[4,"row-divider"],"currentBreakpoint":[32],"clicked":[32],"expandable":[32],"clickable":[32],"paddingX":[32],"selectionType":[32],"checked":[32],"expanded":[32],"columnDivider":[32],"density":[32]}]]],["p-e87b0b4a",[[1,"vega-accordion",{"drawsBackground":[4,"draws-background"],"prefixIcon":[1,"prefix-icon"],"accordionTitle":[1,"accordion-title"],"expandIconAlign":[1,"expand-icon-align"],"expand":[1028],"iconPosition":[1,"icon-position"],"showExpandIcon":[4,"show-expand-icon"],"groupId":[1,"group-id"]}]]],["p-ea04a387",[[1,"vega-app-footer",{"content":[1],"termOfUseLabel":[1,"term-of-use-label"],"termOfUseUrl":[1,"term-of-use-url"],"termOfUseUrlTarget":[1,"term-of-use-url-target"],"termOfUseUrlId":[1,"term-of-use-url-id"],"privacyPolicyLabel":[1,"privacy-policy-label"],"privacyPolicyUrl":[1,"privacy-policy-url"],"privacyPolicyUrlTarget":[1,"privacy-policy-url-target"],"privacyPolicyUrlId":[1,"privacy-policy-url-id"],"hideDefaultLinks":[4,"hide-default-links"],"additionalLinks":[16],"showDisclaimer":[4,"show-disclaimer"],"disclaimerUrlTarget":[1,"disclaimer-url-target"],"currentBranding":[32]}]]],["p-671afda4",[[1,"vega-backdrop",{"color":[1],"visible":[4],"duration":[2]}]]],["p-ad2055f4",[[1,"vega-bar-chart",{"options":[16]}]]],["p-a530797f",[[1,"vega-breadcrumb",{"maxItems":[8,"max-items"],"items":[16],"compactOnMobile":[4,"compact-on-mobile"]}]]],["p-5a27084e",[[1,"vega-card",{"padding":[1],"margin":[1],"variant":[1],"backgroundColor":[1,"background-color"]}]]],["p-43f585f7",[[1,"vega-combo-box",{"label":[1],"required":[516],"source":[1040],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"disabled":[516],"placeholder":[1],"hint":[1],"size":[1],"vegaDropdownProps":[16],"useDefaultFilter":[4,"use-default-filter"],"close":[64],"open":[64]}]]],["p-e9b86dac",[[1,"vega-counter-badge",{"dot":[4],"color":[1],"count":[2],"offset":[16]}]]],["p-4897bedd",[[1,"vega-field-error",{"message":[1]}]]],["p-e1610196",[[1,"vega-flag-icon",{"country":[1],"size":[1]}]]],["p-ef001c70",[[1,"vega-image-uploader",{"value":[1040],"accept":[1],"status":[1537],"showPreviewButton":[4,"show-preview-button"],"showRemoveButton":[4,"show-remove-button"],"showReplaceButton":[4,"show-replace-button"],"disabled":[516],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"label":[1],"hint":[1],"actionTitle":[1,"action-title"],"actionSubTitle":[1,"action-sub-title"],"width":[8],"height":[8],"isInDarkMode":[32],"getContentURL":[64]}]]],["p-0bb3be0b",[[1,"vega-line-chart",{"options":[16],"reRender":[64]}]]],["p-5910be31",[[1,"vega-pie-chart",{"options":[16],"reRender":[64]}]]],["p-bb4a558d",[[1,"vega-segment-control",{"block":[4],"size":[1],"segments":[16],"selected":[1025],"variant":[1],"isOverflowBlockSegments":[32]}]]],["p-0b38a01f",[[1,"vega-slot-container"]]],["p-aa10eeb3",[[1,"vega-font",{"variant":[1],"color":[1],"disableResponsive":[4,"disable-responsive"],"textAlign":[1,"text-align"],"as":[1],"currentBreakpoint":[32]}]]],["p-5ea2e43c",[[1,"vega-form",{"isValid":[1028,"is-valid"],"isTouched":[1028,"is-touched"],"disableBlurValidation":[1028,"disable-blur-validation"],"useNativeForm":[4,"use-native-form"],"action":[1],"method":[1],"valid":[64],"getValue":[64],"setValue":[64],"reset":[64],"setValidationStates":[64]}]]],["p-75651f32",[[1,"vega-grid",{"column":[8],"row":[8],"gap":[1]}]]],["p-35bf5789",[[1,"vega-input-select",{"label":[1],"labelSuffixButtonConfig":[16],"required":[516],"selectedLabel":[16],"selectType":[1,"select-type"],"source":[1040],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[4,"auto-validation"],"validationRules":[16],"prefixIcon":[1,"prefix-icon"],"disabled":[516],"placeholder":[1],"hint":[1],"vegaDropdownProps":[16],"size":[1],"sourceLazyLoadCallback":[16],"isDropdownShow":[32],"currentBreakpoint":[32],"isLazyLoading":[32],"selectedItem":[32],"doClose":[64],"doOpen":[64],"doChange":[64]}]]],["p-6a2205a1",[[1,"vega-pagination-page-selector-mobile",{"type":[1],"pageCount":[2,"page-count"],"current":[1538],"total":[2]}]]],["p-011b94b1",[[1,"vega-pagination-page-size-selector-mobile",{"type":[1],"pageSize":[1026,"page-size"],"pageSizeSelectorOptions":[1040],"total":[2],"current":[1538],"dropdownProps":[16]}]]],["p-60da99c6",[[1,"vega-button",{"size":[1],"variant":[1],"icon":[1],"iconAlign":[1,"icon-align"],"label":[1025],"disabled":[4],"danger":[4],"block":[4],"type":[1],"loading":[4],"currentBreakpoint":[32]}]]],["p-22b2841f",[[1,"vega-box",{"padding":[1],"margin":[1],"display":[1],"border":[1],"borderStyle":[1,"border-style"],"shadow":[1],"borderColor":[1,"border-color"],"backgroundColor":[1,"background-color"],"width":[8],"height":[8],"minHeight":[8,"min-height"],"maxHeight":[8,"max-height"],"responsiveClass":[1,"responsive-class"],"corners":[1],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"order":[8],"flex":[8],"alignSelf":[1,"align-self"],"justifySelf":[1,"justify-self"],"gridColumn":[8,"grid-column"],"gridRow":[8,"grid-row"],"gridArea":[8,"grid-area"],"currentBreakpoint":[32]}]]],["p-fba14ad2",[[1,"vega-icon",{"icon":[513],"size":[1],"color":[1]}]]],["p-747d6afc",[[1,"vega-button-circle",{"size":[1],"variant":[1],"icon":[513],"label":[1],"disabled":[4],"danger":[4],"type":[1],"iconColor":[1,"icon-color"],"showTooltip":[4,"show-tooltip"],"tooltip":[16]}]]],["p-7045e84c",[[1,"vega-input",{"label":[1],"labelSuffixButtonProps":[16],"labelSuffixButtonConfig":[16],"value":[1537],"valueUpdateTrigger":[1,"value-update-trigger"],"type":[513],"name":[1],"autocomplete":[1],"inputmode":[1],"prefixIcon":[513,"prefix-icon"],"email":[516],"required":[1540],"min":[514],"max":[514],"minLength":[514,"min-length"],"maxLength":[514,"max-length"],"showClearIcon":[4,"show-clear-icon"],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[1],"disabled":[516],"hint":[1],"maskConfig":[16],"disableCopyPaste":[4,"disable-copy-paste"],"suggestionsDropdownSource":[16],"prefixText":[32],"suffixText":[32],"isCompactInputWidth":[32],"isPasswordDisplay":[32],"suggestionsDropdownConfig":[32],"doFocus":[64],"doBlur":[64],"showSuggestionsDropdown":[64],"hideSuggestionsDropdown":[64]}]]],["p-c379a5a5",[[1,"vega-field-label",{"suffixButtonProps":[16],"suffixButtonConfig":[16],"label":[1025],"isFieldRequired":[4,"is-field-required"],"disabled":[4]}]]],["p-1e0d8228",[[1,"vega-text",{"overflow":[1],"tooltip":[16]}]]],["p-a85ad369",[[1,"vega-textarea",{"placeholder":[1],"hint":[1],"disabled":[516],"label":[1],"labelSuffixButtonConfig":[16],"showCounter":[4,"show-counter"],"value":[1537],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"required":[1540],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"resizable":[4],"rows":[2],"validationRules":[16],"currentCharCount":[32]},[[0,"input","handleValueTextarea"]]]]],["p-17c55205",[[1,"vega-toggle-switch",{"checked":[1540],"value":[1540],"size":[1],"label":[1],"required":[516],"disabled":[516],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"]}]]],["p-5df9a856",[[1,"vega-loading-indicator",{"shape":[1],"size":[1],"mode":[1],"percent":[2],"label":[1],"hint":[1],"status":[1],"currentBreakpoint":[32]}],[1,"vega-loader-wrapper"]]],["p-eb60cfe1",[[1,"vega-radio-group",{"label":[1],"value":[1537],"name":[1],"vegaFlexProp":[16],"required":[516],"hint":[1],"isValid":[1540,"is-valid"],"disabled":[516],"autoValidation":[516,"auto-validation"],"validationRules":[16]}],[1,"vega-radio",{"value":[1],"name":[1],"checked":[1028],"disabled":[4],"size":[1],"groupDisabled":[32],"showError":[32]}]]],["p-a20854d6",[[1,"vega-dropdown",{"size":[8],"trigger":[1],"translocation":[16],"source":[1040],"positionRelativeTo":[1,"position-relative-to"],"selectType":[1,"select-type"],"selectedSourceKey":[1025,"selected-source-key"],"prefixIconSlot":[4,"prefix-icon-slot"],"maxHeight":[2,"max-height"],"searchable":[4],"matchTargetWidth":[4,"match-target-width"],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"itemDisplayRule":[1,"item-display-rule"],"matchContainerHeight":[4,"match-container-height"],"caseSensitive":[4,"case-sensitive"],"dynamicOption":[4,"dynamic-option"],"useDefaultFilter":[4,"use-default-filter"],"isLoading":[4,"is-loading"],"placement":[1],"alignment":[1],"isLazyLoading":[4,"is-lazy-loading"],"searchTriggerBy":[1,"search-trigger-by"],"isScreenPosition":[4,"is-screen-position"],"resettable":[4],"virtualizationThreshold":[2,"virtualization-threshold"],"preserveValueIfNotInSource":[4,"preserve-value-if-not-in-source"],"searchNoResultsText":[1,"search-no-results-text"],"searchString":[32],"isDropdownShow":[32],"sourceForRender":[32],"show":[64],"hide":[64],"search":[64],"clearSelection":[64],"getSelection":[64],"setSelection":[64]}],[1,"vega-dropdown-content-box"],[1,"vega-dropdown-group",{"label":[1],"divide":[4]}],[1,"vega-dropdown-item",{"label":[1],"itemKey":[513,"item-key"],"count":[2],"prefixIcon":[1,"prefix-icon"],"disabled":[4],"height":[2],"danger":[4],"selectType":[32],"prefixIconSlot":[32],"selected":[32],"itemDisplayRule":[32]}],[1,"vega-virtual-scroll",{"source":[16],"approxItemHeight":[2,"approx-item-height"],"viewportMaxHeight":[2,"viewport-max-height"],"isLoading":[4,"is-loading"],"virtualizationThreshold":[2,"virtualization-threshold"],"sourceItemIdentifier":[1,"source-item-identifier"],"renderItem":[16],"positionConfig":[32],"scrollTop":[32],"scrollToIndex":[64]}]]],["p-08f18b22",[[1,"vega-left-nav",{"open":[1028],"headerConfig":[16],"source":[16],"footnote":[1],"showAsOverlay":[4,"show-as-overlay"],"autoCollapseOnOverlay":[4,"auto-collapse-on-overlay"],"autoCollapseGroups":[8,"auto-collapse-groups"],"currentBranding":[32],"openState":[32],"toggle":[64]}],[1,"vega-left-nav-group",{"icon":[1],"label":[1],"openByDefault":[4,"open-by-default"],"itemKey":[1,"item-key"],"autoCollapseGroups":[32]}],[1,"vega-left-nav-link",{"icon":[1],"selected":[1540],"customSelectionEnabled":[4,"custom-selection-enabled"],"url":[1],"counterBadge":[16],"itemKey":[1,"item-key"],"target":[1]}],[1,"vega-left-nav-section",{"sectionHeader":[16],"itemKey":[1,"item-key"]}],[1,"vega-nav-card",{"source":[16],"maxHeight":[520,"max-height"],"currentMaxHeight":[32]}]]],["p-f3c3ff26",[[1,"vega-calendar",{"viewMode":[1025,"view-mode"],"events":[16],"timeFormat":[1,"time-format"],"isDateDisabled":[16],"moreActionDropdownProps":[16],"showEventColorBar":[4,"show-event-color-bar"],"showSwitchView":[4,"show-switch-view"],"enableDateClick":[4,"enable-date-click"],"showWeekends":[4,"show-weekends"],"enabledEventPreview":[4,"enabled-event-preview"],"timezone":[1],"calendarView":[32],"currentPeriod":[32],"postOperationDate":[32],"showAllEventsInDayOrWeekView":[32],"calendarEvents":[32]}],[1,"vega-calendar-event",{"calendarEvent":[16],"timeFormat":[32],"slotMode":[32],"showColorBar":[32]}],[1,"vega-calendar-event-preview",{"previewPayload":[32],"currentEvent":[32]}],[1,"vega-calendar-event-slot",{"eventKey":[513,"event-key"]}]]],["p-53a694d1",[[1,"vega-rich-text-editor",{"label":[1],"required":[516],"placeholder":[1],"disabled":[4],"hint":[1],"rows":[2],"value":[1040],"toolbarItems":[16],"allowSourceEdit":[4,"allow-source-edit"],"sourceEditConfig":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"extensions":[16],"richTextContentEditable":[32],"selectionMap":[32],"isInDarkMode":[32],"sourceView":[32]}],[1,"vega-rich-text-editor-toolbar-button",{"disabled":[4],"hidden":[4],"selected":[4],"showArrowIcon":[4,"show-arrow-icon"],"icon":[1],"iconColor":[1,"icon-color"]}],[1,"vega-rich-text-image-editor",{"alt":[513],"size":[1537],"currentPage":[32],"selected":[32]}],[1,"vega-rich-text-link-editor",{"status":[1025],"record":[16],"resetStatusAfterHide":[4,"reset-status-after-hide"],"target":[16],"show":[64]}]]],["p-87238c4c",[[1,"vega-date-picker",{"mode":[1],"value":[1537],"label":[1],"required":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"format":[1],"size":[1],"validationRules":[16],"minDate":[1537,"min-date"],"maxDate":[1537,"max-date"],"placeholder":[1],"clearButton":[4,"clear-button"],"readOnly":[4,"read-only"],"allowRepick":[4,"allow-repick"],"dropdownConfig":[16],"showClearIcon":[4,"show-clear-icon"],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"disabled":[516],"timezone":[1],"isDateDisabled":[16],"isMobileDevice":[32],"isCalendarShow":[32],"doClose":[64],"doOpen":[64]}],[1,"vega-date-picker-calendar",{"size":[1],"mode":[1],"selection":[1025],"format":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"clearButton":[4,"clear-button"],"staticHeight":[4,"static-height"],"timezone":[1],"showYearMonthDropdowns":[4,"show-year-month-dropdowns"],"yearMonthDropdownProps":[16],"isDateDisabled":[16],"isMobileDevice":[32],"today":[32],"currentPeriod":[32],"hoverDate":[32],"calendarSelection":[32],"maxCalendarDate":[32],"minCalendarDate":[32],"reset":[64],"triggerRepick":[64]}]]],["p-07d3df01",[[1,"vega-popover",{"size":[8],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"trigger":[1],"showArrow":[4,"show-arrow"],"isScreenPosition":[4,"is-screen-position"],"padding":[1],"isPopoverShow":[32],"show":[64],"hide":[64]}],[1,"vega-popover-content-box",{"showArrow":[4,"show-arrow"],"padding":[1]}]]],["p-fbd64f9c",[[1,"vega-progress-tracker",{"current":[1026],"direction":[1],"steps":[16],"completedStepArray":[16],"completedSteps":[16],"canClickStep":[4,"can-click-step"],"currentSteps":[32],"currentDirection":[32],"nextStep":[64],"prevStep":[64],"setCurrent":[64],"getCurrent":[64]}],[1,"vega-progress-tracker-step",{"stepKey":[513,"step-key"],"progressStatus":[32],"isCurrent":[32]}]]],["p-991008a8",[[1,"vega-selection-chip",{"label":[1],"size":[1],"variant":[1],"disabled":[1028],"checked":[1540],"block":[4],"disabledTooltip":[16],"swatchColor":[1,"swatch-color"],"value":[1],"showError":[32],"currentBreakpoint":[32],"selectType":[32]}],[1,"vega-selection-chip-group",{"label":[1],"hint":[1],"selectType":[1,"select-type"],"value":[1025],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-f8f7cf48",[[1,"vega-selection-tile",{"titleText":[1,"title"],"note":[1],"prefixIcon":[1,"prefix-icon"],"disabled":[1028],"checked":[1028],"selectType":[1025,"select-type"],"value":[1],"showError":[32],"distributeEvenly":[32]}],[1,"vega-selection-tile-group",{"label":[1],"hint":[1],"distributeEvenly":[4,"distribute-evenly"],"selectType":[1,"select-type"],"value":[1025],"layout":[1],"required":[4],"disabled":[4],"validationRules":[16],"isValid":[1540,"is-valid"]}]]],["p-be930e85",[[1,"vega-tab-group",{"selectedTabDataTarget":[1025,"selected-tab-data-target"],"gap":[1],"showCloseButton":[4,"show-close-button"],"tabItems":[1040],"positionRelativeTo":[1,"position-relative-to"],"variant":[1],"overflow":[1],"tabPages":[32],"tabWidthArray":[32],"currentPageIndex":[32]}],[1,"vega-tab-group-panel",{"isActive":[4,"is-active"]}]]],["p-3cfd8616",[[1,"vega-time-picker",{"label":[1],"mode":[1],"required":[516],"placeholder":[1],"increments":[2],"timeFormat":[513,"time-format"],"value":[1537],"size":[1],"disabled":[516],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"positionRelativeTo":[1,"position-relative-to"],"dropdownSource":[32],"isDropdownShow":[32],"selectedTimeValue":[32]}],[1,"vega-time-picker-dropdown"]]],["p-94394df7",[[1,"vega-banner",{"type":[1],"bannerTitle":[1,"banner-title"],"content":[1],"actionButtons":[16],"showCloseButton":[4,"show-close-button"],"isOpen":[4,"is-open"],"doClose":[64]}]]],["p-9fd503e9",[[1,"vega-brand-logo",{"name":[1],"size":[1],"theme":[1],"isInDarkMode":[32]}]]],["p-67fcf6f2",[[1,"vega-code-block",{"readOnly":[4,"read-only"],"disabled":[4],"showCopyButton":[4,"show-copy-button"],"showLineNumber":[4,"show-line-number"],"value":[1040],"doFocus":[64]}]]],["p-a65941d0",[[1,"vega-divider",{"direction":[1],"variant":[1],"margin":[1],"currentBreakpoint":[32]}]]],["p-bf2bd6d0",[[1,"vega-file-uploader",{"label":[1],"variant":[1],"hint":[1],"value":[1040],"disabled":[4],"maxCount":[2,"max-count"],"required":[4],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"accept":[1]}]]],["p-6a4277df",[[1,"vega-input-numeric",{"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"prefixIcon":[1,"prefix-icon"],"value":[1025],"size":[1],"placeholder":[1],"thousandComma":[4,"thousand-comma"],"integerOnly":[4,"integer-only"],"disabled":[4],"minorIncrement":[2,"minor-increment"],"majorIncrement":[2,"major-increment"],"label":[1],"hint":[1],"required":[4],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"isCompactInputWidth":[32]}]]],["p-bb8339ed",[[1,"vega-input-passcode",{"label":[1],"disabled":[516],"size":[1],"hint":[1],"length":[2],"inputType":[1,"input-type"],"value":[1537],"required":[1540],"validationRules":[16],"autoValidation":[516,"auto-validation"],"isValid":[1540,"is-valid"],"vegaInputValues":[32]}]]],["p-d6ed3d76",[[1,"vega-input-phone-number",{"label":[1],"size":[1],"required":[1540],"disabled":[516],"countryCode":[1537,"country-code"],"allowedCountryCodes":[16],"emptyValueEnabled":[4,"empty-value-enabled"],"value":[1537],"validationRules":[16],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"placeholder":[1],"hint":[1],"phoneNumberInputValue":[32]}]]],["p-81134e9e",[[1,"vega-input-range",{"label":[1],"value":[1040],"prefixIcon":[513,"prefix-icon"],"showClearIcon":[4,"show-clear-icon"],"min":[514],"max":[514],"required":[1540],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"size":[1],"placeholder":[16],"disabled":[516],"hint":[1],"stack":[1]}]]],["p-50ab977c",[[1,"vega-rich-text-content",{"content":[1040],"extensions":[16],"placeholder":[32],"contentEditable":[32],"extensionStyles":[32],"vegaFocus":[64]}]]],["p-fff13ed1",[[1,"vega-section-title",{"titleText":[1,"title"],"description":[1],"icon":[1],"iconAlign":[1,"icon-align"]}]]],["p-a5bd3c15",[[1,"vega-signature-capture",{"mode":[1],"label":[1],"required":[516],"showClearBtn":[4,"show-clear-btn"],"placeholder":[1],"placeholderIcon":[1,"placeholder-icon"],"disabled":[4],"value":[1040],"isValid":[1540,"is-valid"],"autoValidation":[516,"auto-validation"],"validationRules":[16],"height":[8],"currentBreakpoint":[32],"isDrawing":[32],"clear":[64]}]]],["p-e5af5a4d",[[1,"vega-skeleton",{"type":[513],"width":[8],"height":[8],"animated":[4],"corners":[1]}]]],["p-3bbc0c7d",[[1,"vega-dialog",{"dialogTitle":[1,"dialog-title"],"content":[1],"type":[1],"okButton":[16],"handleOk":[16],"cancelButton":[16],"handleCancel":[16],"showCancel":[4,"show-cancel"],"modalProps":[16],"currentBreakpoint":[32]}],[1,"vega-modal",{"backdrop":[1],"size":[8],"open":[1028],"animation":[4],"modalTitle":[1,"modal-title"],"backdropColor":[1,"backdrop-color"],"isVerticallyCenter":[4,"is-vertically-center"],"isVerticallyCentered":[4,"is-vertically-centered"],"showCloseButton":[4,"show-close-button"],"padding":[1],"contentMaxHeight":[8,"content-max-height"],"handleClose":[16],"currentBreakpoint":[32],"openState":[32],"modal":[64]},[[10,"click","listenDataTarget"],[0,"click","listenDataDismiss"],[1,"mousedown","listenMouseDown"],[1,"mouseup","listenMouseUp"]]]]],["p-8a887843",[[1,"vega-sidenav",{"source":[16],"footnote":[1],"headerConfig":[16],"openByDefault":[1,"open-by-default"],"openState":[32],"toggle":[64]},[[10,"click","collapseSidenavByBackDropClick"]]],[1,"vega-sidenav-group",{"icon":[1],"label":[1],"openState":[32]}],[1,"vega-sidenav-link",{"icon":[1],"selected":[1540],"url":[1],"showSideBarOnClickLink":[4,"show-side-bar-on-click-link"],"openState":[32]}]]],["p-ab2f35af",[[1,"vega-tooltip-content-box",{"text":[1]}],[1,"vega-tooltip",{"size":[8],"minWidth":[8,"min-width"],"maxWidth":[8,"max-width"],"trigger":[1],"content":[1],"text":[1],"placement":[1],"alignment":[1],"positionRelativeTo":[1,"position-relative-to"],"disableInteractive":[4,"disable-interactive"],"isTooltipShow":[32]}]]],["p-fdc270b8",[[1,"vega-flex",{"gap":[1],"margin":[1],"breakpoint":[1],"direction":[1],"alignItems":[1,"align-items"],"justifyContent":[1,"justify-content"],"flexWrap":[1,"flex-wrap"],"flex":[8],"flexBasis":[1,"flex-basis"],"flexGrow":[8,"flex-grow"],"flexShrink":[8,"flex-shrink"],"useNativeFlex":[4,"use-native-flex"],"currentBreakpoint":[32]}]]]]'),e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heartlandone/vega",
3
- "version": "2.74.0",
3
+ "version": "2.75.0",
4
4
  "description": "Vega - the design system of Heartland Payment Systems",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- import{b as t,e}from"./p-d9671d27.js";import{i as s}from"./p-161b9c5b.js";const i=new class{constructor(){this.listeners=[],this.listenKeyPress()}register(t){t.map((t=>t.eventName||(t.eventName="keyup"))),this.listeners=this.listeners.concat(t)}deregister(t){this.listeners=this.listeners.filter((e=>!t.includes(e)))}listenKeyPress(){document.addEventListener("keydown",(t=>{this.invokeListeners("keydown",t)})),document.addEventListener("keyup",(t=>{this.invokeListeners("keyup",t)}))}invokeListeners(t,e){this.listeners.filter((s=>s.eventName===t&&this.shouldInvokeListener(s,e))).forEach((t=>t.callback(e)))}shouldInvokeListener(i,o){let n="";o.code?n=o.code:o.key&&"Unidentified"!==o.key&&(n=o.key);let r=[],c=[];const d=Array.isArray(i.keyCode)?i.keyCode.includes(n):i.keyCode===n;if(!d)return!1;"function"==typeof i.activeElementInScope?r=i.activeElementInScope():"object"==typeof i.activeElementInScope&&(r=i.activeElementInScope),"function"==typeof i.activeElementOutScope?c=i.activeElementOutScope():"object"==typeof i.activeElementOutScope&&(c=i.activeElementOutScope);const h=!i.activeElementInScope||r.some((s=>t(e(),s)));if(!h)return!1;const u=!i.activeElementOutScope||c.every((s=>!t(e(),s))),f=!s(i.modifierPressed)||i.modifierPressed===this.isModifierPressed(o),p=!s(i.shiftKey)||i.shiftKey===o.shiftKey;return d&&h&&u&&f&&p}isModifierPressed(t){return/Mac|iPhone|iPad/.test(navigator.userAgent)?t.metaKey:t.ctrlKey}};export{i as K}
@@ -1 +0,0 @@
1
- import{c as t,I as e,V as i,L as s,M as o}from"./p-6e1ab235.js";import{f as n,d as h,b as r}from"./p-d9671d27.js";import{n as c}from"./p-73383099.js";import{c as l}from"./p-6a334573.js";import{P as a}from"./p-10ac8b57.js";import{P as d,A as u}from"./p-40f39194.js";import{H as p}from"./p-161b9c5b.js";import{R as f}from"./p-301096ee.js";import{C as v}from"./p-2d0d575f.js";import{S as m}from"./p-a528714c.js";import{O as g}from"./p-331a62d5.js";import{d as b,D as w}from"./p-8bd496b4.js";import{x as R}from"./p-5b71c85e.js";class j{canRetrieve(){return!0}retrieve(){const t=document.body;return this.showConfig.appendableElement.parentElement!==t&&t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],j.prototype,"showConfig",void 0);class y{canRetrieve(){return!this.showConfig.isScreenPosition}}class x extends y{canRetrieve(){return super.canRetrieve()&&!!this.showConfig.positionRelativeTo&&!!document.querySelector(this.showConfig.positionRelativeTo)}retrieve(){const t=document.querySelector(this.showConfig.positionRelativeTo);return this.showConfig.appendableElement.parentElement!==t&&t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],x.prototype,"showConfig",void 0);class C extends y{canRetrieve(){return super.canRetrieve()&&!!n(this.showConfig.target,"vega-modal")}retrieve(){return this.getVegaModalShowConfigContainer()}setElementSlot(t,e){var i;const s=null===(i=Array.from(t.children).find((t=>{const e=t.getAttribute("slot");return e&&["content","modal-content"].includes(e)})))||void 0===i?void 0:i.getAttribute("slot");s&&e.setAttribute("slot",s)}getVegaModalShowConfigContainer(){const t=n(this.showConfig.target,"vega-modal"),e=t.shadowRoot.querySelector(".vega-modal-content-with-scroll"),i=t.shadowRoot.querySelector(".modal-dialog");return this.setElementSlot(t,this.showConfig.appendableElement),t.append(this.showConfig.appendableElement),e||i}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t({writable:!0})],C.prototype,"showConfig",void 0);class O extends y{canRetrieve(){return super.canRetrieve()&&!!n(this.showConfig.target,".vega-popover")}retrieve(){const t=n(this.showConfig.target,".vega-popover");return t.append(this.showConfig.appendableElement),t}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],O.prototype,"showConfig",void 0);var S=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class E extends i{constructor(){super(...arguments),this.positionRelativeToWrapper=new x,this.vegaPopoverWrapper=new O,this.vegaModalWrapper=new C,this.defaultWrapper=new j}setContainer(){this.setContainerRetrievers();for(const t of this.containerRetrievers)if(t.canRetrieve())return void(this.container=t.retrieve())}setContainerRetrievers(){this.containerRetrievers=[this.positionRelativeToWrapper,this.vegaPopoverWrapper,this.vegaModalWrapper,this.defaultWrapper]}}S([t({writable:!0})],E.prototype,"container",void 0),S([t({writable:!0})],E.prototype,"showConfig",void 0),S([e()],E.prototype,"positionRelativeToWrapper",void 0),S([e()],E.prototype,"vegaPopoverWrapper",void 0),S([e()],E.prototype,"vegaModalWrapper",void 0),S([e()],E.prototype,"defaultWrapper",void 0);class A extends i{getPositionBox(t,e){const i=t||this.getPlacements(),s=e||this.getAlignments(),o=this.getTargetBoundBox(),n=this.getElementBoundBox(),h=this.getElementScrollDimension(),r=this.getSuitablePlacement(h,n,o,i),c=this.getSuitableAlignment(h,n,o,r,s),l=this.calculatePosition(n,o,r,c),a=this.getTranslocationBox(r);return l.placement=r,l.alignment=c,l.left+=a.X,l.top+=a.Y,l}getElementBoundBox(){const t=this.showConfig.appendableElement,e=t.classList.contains("vega-force-hidden");e&&t.classList.remove("vega-force-hidden");const i=t.getBoundingClientRect();return e&&t.classList.add("vega-force-hidden"),{width:i.width,height:i.height,left:i.left,top:i.top}}getPlacements(){const t=this.showConfig.placement;if("string"==typeof t){const e=d.filter((e=>e!==t));return[t,...e]}return Array.isArray(t)?t:[...d]}getAlignments(){const t=this.showConfig.alignment;if("string"==typeof t){const e=u.filter((e=>e!==t));return[t,...e]}return Array.isArray(t)?t:[...u]}calculatePosition(t,e,i,s){return{top:this.calculateTop(t,e,i,s),left:this.calculateLeft(t,e,i,s)}}getTranslocationBox(t){const e=Array.isArray(this.showConfig.placement)?this.showConfig.placement[0]:this.showConfig.placement,i=this.getTranslocation(),s={X:0,Y:0};if(p(i)){let o=i.X,n=i.Y;(e&&["left","right"].includes(e)&&["top","bottom"].includes(t)||e&&["top","bottom"].includes(e)&&["left","right"].includes(t))&&(o=i.Y,n=i.X),["bottom","top"].includes(t)&&(s.Y="top"===t?-n:n,s.X=o),["left","right"].includes(t)&&(s.X="left"===t?-o:o,s.Y=n)}return s}calculateLeft(t,e,i,s){switch(i){case"top":case"bottom":return"end"===s?e.left+e.width-t.width:"center"===s?e.left-(t.width-e.width)/2:e.left;case"left":return e.left-t.width;case"right":return e.left+e.width;default:throw new Error(`Unexpected placement: ${i}. Expected values are top, bottom, left, or right.`)}}calculateTop(t,e,i,s){switch(i){case"left":case"right":return"end"===s?e.top+e.height-t.height:"center"===s?e.top-(t.height-e.height)/2:e.top;case"top":return e.top-t.height;case"bottom":return e.top+e.height;default:throw new Error(`Unexpected placement: ${i}. Expected values are top, bottom, left, or right.`)}}getSuitablePlacement(t,e,i,o){const n=o[0];return o.find((s=>this.hasEnoughSpace(t,s,i,e)))||(s.warn(`\n No enough space found for placing element and we will keep using the defined placement:\n ${n}\n `),n)}getSuitableAlignment(t,e,i,o,n){const h=n[0];return n.find((s=>this.hasEnoughAlignmentSpace(t,i,e,o,s)))||(s.warn(`\n No enough space found for placing element and we will keep using the defined alignment:\n ${h}\n `),h)}hasEnoughAlignmentSpace(t,e,i,s,o){if(["top","bottom"].includes(s))switch(o){case"start":return e.left+i.width<=t.width;case"center":return e.left>=(i.width-e.width)/2&&e.left+e.width/2+i.width/2<=t.width;case"end":return e.left+e.width>=i.width}if(["right","left"].includes(s))switch(o){case"start":return e.top+i.height<=t.height;case"center":return e.top>=(i.height-e.height)/2&&e.top+e.height/2+i.height/2<=t.height;case"end":return e.top+e.height>=i.height}return!1}hasEnoughSpace(t,e,i,s){switch(e){case"top":return i.top>=s.height;case"bottom":return t.height-i.top-i.height>=s.height;case"left":return i.left>=s.width;case"right":return t.width-i.left-i.width>=s.width;default:return!1}}getTranslocation(){const t=this.showConfig.translocation;return t&&f.format(t,"translocation")}}var k=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class P extends A{getPosition(){return"relative"!==window.getComputedStyle(this.container).position&&s.warn("Calculate position should make container as 'position: relative', otherwise the result might not be accurate."),this.getPositionBox()}getTargetBoundBox(){const t=this.container.getBoundingClientRect(),e=this.showConfig.target.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top-t.top+this.container.scrollTop,left:e.left-t.left+this.container.scrollLeft}}getElementScrollDimension(){return{width:this.container.scrollWidth,height:this.container.scrollHeight}}}k([t()],P.prototype,"container",void 0),k([t()],P.prototype,"showConfig",void 0);class T extends A{getPosition(t){const e=t?this.getPositionBox([this.previousPositionBox.placement],[this.previousPositionBox.alignment]):this.getPositionBox();return this.previousPositionBox=e,e}getTargetBoundBox(){const t=this.showConfig.target.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,left:t.left}}getElementScrollDimension(){return{width:window.innerWidth,height:window.innerHeight}}}!function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);n>3&&h&&Object.defineProperty(e,i,h)}([t()],T.prototype,"showConfig",void 0);var $=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class D extends i{constructor(){super(...arguments),this.bodyPositionStrategy=new P,this.screenPositionStrategy=new T}setCalculationStrategy(){this.positionStrategy=this.showConfig.isScreenPosition?this.screenPositionStrategy:this.bodyPositionStrategy}adjustPosition(t){this.adjustWidth(),this.adjustHeight(),this.applyPosition(this.positionStrategy.getPosition(t))}applyPosition(t){const e=this.showConfig.appendableElement;this.showConfig.isScreenPosition?e.style.position="fixed":e.classList.contains("date-picker-content-box")&&(e.style.position="absolute"),e.style.left=`${t.left}px`,e.style.top=`${t.top}px`,e.classList.remove("vega-placement-left","vega-placement-right","vega-placement-top","vega-placement-bottom"),e.classList.remove("vega-alignment-start","vega-alignment-center","vega-alignment-end"),e.classList.add(`vega-placement-${t.placement}`),e.classList.add(`vega-alignment-${t.alignment}`)}adjustWidth(){if(this.showConfig.matchTargetWidth){const{width:t}=this.showConfig.target.getBoundingClientRect();this.setRelatedWidth("width",t)}else this.setRelatedWidth("width",this.showConfig.size),this.setRelatedWidth("minWidth",this.showConfig.minWidth),this.setRelatedWidth("maxWidth",this.showConfig.maxWidth)}setRelatedWidth(t,e){if(!e)return;const i=f.format(e,"size");i&&(this.showConfig.appendableElement.style[t]="number"==typeof i?`${i}px`:i)}adjustHeight(){if(this.showConfig.matchContainerHeight&&!this.showConfig.isScreenPosition){const{height:t}=this.showConfig.target.getBoundingClientRect();let e=this.container.scrollHeight-this.showConfig.target.offsetTop-t;this.showConfig.maxHeight&&(e=Math.min(e,this.showConfig.maxHeight)),this.showConfig.appendableElement.style.maxHeight=`${e}px`}else this.showConfig.maxHeight&&(this.showConfig.appendableElement.style.maxHeight=`${this.showConfig.maxHeight}px`)}}$([t()],D.prototype,"container",void 0),$([t()],D.prototype,"showConfig",void 0),$([e()],D.prototype,"bodyPositionStrategy",void 0),$([e()],D.prototype,"screenPositionStrategy",void 0);var B=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class L{constructor(t,e){var i;this.resizeObserverSlimmer=l(L,a,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"},{mapFrom:"disconnectResizeObserver",mapTo:"disconnectResizeObserver"}],[{callback:()=>{h(this.showConfig.target)&&h(this.showConfig.appendableElement)&&this.adjustPosition()},target:()=>[document.body,this.showConfig.appendableElement,this.showConfig.target]}]),this.elementAppenderContainerController=new E,this.positionCalculationController=new D,this.showConfigCallback=t,this.showConfigCallbackTarget=e;const s=this.getShowConfig();this.hideElementAppender(s.appendableElement),null===(i=s.appendableElement)||void 0===i||i.classList.add("vega-element-appender-appendable")}show(){this.setShowConfig(),this.showConfig.target?this.showConfig.appendableElement?(this.prepareShow(),this.adjustPosition(),this.setZIndex(),this.toggleShow(!0),this.connectResizeObserver()):s.error("No appendable element found, please add it at new elementAppender."):s.error("No target element found, please add it at new elementAppender.")}hide(){this.showConfig&&(this.toggleShow(!1),this.resetContainerPosition(),c.removeZIndex(this.showConfig.appendableElement,"base"))}onScroll(){var t;const e=this.showConfig.target.getBoundingClientRect();!this.showConfig.isScreenPosition||e.left===(null===(t=this.previousTargetRect)||void 0===t?void 0:t.left)&&e.top===this.previousTargetRect.top||this.adjustPosition(!0)}destroy(){this.showConfig&&(this.removeVisibleAppendElement(this.showConfig.appendableElement),this.resetContainerPosition(),c.removeZIndex(this.showConfig.appendableElement,"base"),this.showConfig.appendableElement.remove(),this.disconnectResizeObserver())}connectResizeObserver(){}disconnectResizeObserver(){}toggleShow(t){t?(this.showElementAppender(this.showConfig.appendableElement),this.saveVisibleAppendElement(this.showConfig.appendableElement)):(this.hideElementAppender(this.showConfig.appendableElement),this.removeVisibleAppendElement(this.showConfig.appendableElement))}showElementAppender(t){t.classList.contains("date-picker-content-box")?t.style.display="block":t.classList.remove("vega-force-hidden")}hideElementAppender(t){t&&(t.classList.contains("date-picker-content-box")?t.style.display="none":t.classList.add("vega-force-hidden"))}saveVisibleAppendElement(t){const e=L.containerMap.get(this.container);e&&e.visibleAppendElements.add(t)}removeVisibleAppendElement(t){const e=L.containerMap.get(this.container);e&&e.visibleAppendElements.delete(t)}resetContainerPosition(){const t=L.containerMap.get(this.container);if(t){const{visibleAppendElements:e,originPosition:i="static"}=t;0===e.size&&(this.container.style.position=i,L.containerMap.delete(this.container))}}setShowConfig(){this.showConfig=this.getShowConfig(),this.showConfig=Object.assign({matchTargetWidth:!1,matchContainerHeight:!1},this.showConfig),this.showConfig.target&&this.showConfig.appendableElement&&this.elementAppenderContainerController.setContainer()}prepareShow(){this.showConfig.isScreenPosition||this.initVisibleAppendElement(),this.showConfig.appendableElement.style.boxSizing="border-box",this.positionCalculationController.setCalculationStrategy()}initVisibleAppendElement(){const t=window.getComputedStyle(this.container).position;L.containerMap.has(this.container)||L.containerMap.set(this.container,{visibleAppendElements:new Set,originPosition:t}),"static"===t&&(this.container.style.position="relative")}adjustPosition(t){this.positionCalculationController.adjustPosition(t)}setZIndex(){c.setZIndex(this.showConfig.appendableElement,"base")}getShowConfig(){return this.showConfigCallback instanceof Function?this.showConfigCallback(this.showConfigCallbackTarget):this.showConfigCallback}}L.containerMap=new Map,B([e()],L.prototype,"resizeObserverSlimmer",void 0),B([e()],L.prototype,"elementAppenderContainerController",void 0),B([e()],L.prototype,"positionCalculationController",void 0);var W,z=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};!function(t){t.SHOW="show",t.HIDE="hide"}(W||(W={}));class M extends i{constructor(t){super(),this.childrenEA=[],this.currentEA=t}componentDidLoad(){this.register()}onShow(){this.notify(W.SHOW)}onHide(){this.notify(W.HIDE)}getParent(){return this.parentEA}getChildren(){return this.childrenEA}notify(t){const e=n(this.showConfig.target,".vega-element-appender-appendable");e&&v.notify(b.getSubject(e,R),{type:t,child:this.currentEA,callback:t=>{this.parentEA=t}})}register(){this.showConfig&&w.addUniqueObserverToNode(this.showConfig.appendableElement,R,(t=>{t.type===W.SHOW?this.childrenEA.push(t.child):t.type===W.HIDE&&(this.childrenEA=this.childrenEA.filter((e=>e!==t.child))),t.callback(this.currentEA)}))}}z([t()],M.prototype,"showConfig",void 0),z([o("componentDidLoad")],M.prototype,"componentDidLoad",null),z([o("show")],M.prototype,"onShow",null),z([o("hide")],M.prototype,"onHide",null);var H=function(t,e,i,s){var o,n=arguments.length,h=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(h=(n<3?o(h):n>3?o(e,i,h):o(e,i))||h);return n>3&&h&&Object.defineProperty(e,i,h),h};class V extends i{constructor(t,e,i="isDropdownShow",s=(()=>!1)){super(),this.hierarchyTreeManager=new M(this),this.registerElementAppenderListener=()=>{var t,e,i,s,o,n;this.unRegisterElementAppenderListener(),this.showConfig&&(null===(t=this.showConfig.target)||void 0===t||t.addEventListener("click",this.targetClickHandler),null===(e=this.showConfig.target)||void 0===e||e.addEventListener("mouseenter",this.targetMouseEnterHandler),null===(i=this.showConfig.target)||void 0===i||i.addEventListener("mouseleave",this.targetMouseLeaveHandler),null===(s=this.showConfig.target)||void 0===s||s.addEventListener("focusout",this.targetFocusoutHandler),null===(o=this.showConfig.appendableElement)||void 0===o||o.addEventListener("mouseenter",this.elementMouseEnterHandler),null===(n=this.showConfig.appendableElement)||void 0===n||n.addEventListener("mouseleave",this.elementMouseLeaveHandler)),window.addEventListener("mousedown",this.globalMouseDownHandler),document.addEventListener("scroll",this.globalScrollHandler,{capture:!0}),this.listenShadowRootElementScrolling()},this.targetClickHandler=()=>{this.shouldListenerWork("click")&&(this.isShowing()?this.hide():this.show())},this.targetMouseEnterHandler=()=>{this.shouldListenerWork("hover")&&(!1===this.isShowing()&&this.show(),this.clearDelayHideTimer())},this.targetMouseLeaveHandler=()=>{this.shouldListenerWork("hover")&&this.createDelayHideTimer()},this.targetFocusoutHandler=t=>{var e;r(t.relatedTarget,null===(e=this.showConfig)||void 0===e?void 0:e.appendableElement)||this.targetMouseLeaveHandler()},this.elementMouseEnterHandler=()=>{var t;null===(t=this.hierarchyTreeManager.getParent())||void 0===t||t.elementMouseEnterHandler(),this.shouldListenerWork("hover")&&!this.disableInteractiveGetter()&&this.clearDelayHideTimer()},this.elementMouseLeaveHandler=()=>{var t;null===(t=this.hierarchyTreeManager.getParent())||void 0===t||t.elementMouseLeaveHandler(),this.shouldListenerWork("hover")&&!this.disableInteractiveGetter()&&this.createDelayHideTimer()},this.globalMouseDownHandler=t=>{const e=t.composedPath()[0];this.hierarchyTreeManager.getChildren().some((t=>t.isShowing()))||!this.shouldListenerWork("custom")||!this.isShowing()||!this.showConfig||r(e,this.showConfig.appendableElement)||r(e,this.showConfig.target)||!this.showConfig.isScreenPosition&&n(e,"vega-modal")!==n(this.showConfig.target,"vega-modal")||this.hide()},this.globalScrollHandler=()=>{var t;this.showConfig&&this.showConfig.isScreenPosition&&this.isShowing()&&(null===(t=this.elementAppender)||void 0===t||t.onScroll())},this.createDelayHideTimer=()=>{this.delayHideTimer=setTimeout((()=>{this.hide(),clearTimeout(this.delayHideTimer)}),V.DELAY_HIDE_TIME)},this.clearDelayHideTimer=()=>{this.delayHideTimer&&clearTimeout(this.delayHideTimer)},this.shouldListenerWork=t=>{const e=this.getTrigger();switch(t){case"custom":return"none"!==e;case"click":return"click"===e;case"hover":return"hover"===e}throw new Error(`Unexpected trigger: ${t}. Expected values are custom, click, or hover.`)},this.showConfigFactory=t,this.getTrigger=e,this.isDropdownShowName=i,this.disableInteractiveGetter=s}connectedCallback(){null===this.elementAppender&&(this.setElementAppender(),this.registerElementAppenderListener())}disconnectedCallback(){this.unRegisterElementAppenderListener(),this.destroyElementAppender()}componentDidLoad(){this.initElementAppender()}getElementAppender(){return this.elementAppender}show(){this.elementAppender&&this.elementAppender.show(),this[this.isDropdownShowName]=!0}hide(){this.elementAppender&&this.elementAppender.hide(),this[this.isDropdownShowName]=!1,this.hierarchyTreeManager.getChildren().map((t=>{t.hide()}))}destroy(){this.destroyElementAppender(),this[this.isDropdownShowName]=!1}updateShowConfigFactory(t){this.showConfigFactory=t,this.initElementAppender()}destroyElementAppender(){this.elementAppender&&(this.elementAppender.destroy(),this.elementAppender=null)}initElementAppender(){this.setShowConfig(),this.setElementAppender(),this.registerElementAppenderListener()}setElementAppender(){this.elementAppender=new L(this.showConfigFactory,this)}isShowing(){return this[this.isDropdownShowName]}setShowConfig(){this.showConfig=this.showConfigFactory()}unRegisterElementAppenderListener(){var t,e,i,s,o,n;this.showConfig&&(null===(t=this.showConfig.target)||void 0===t||t.removeEventListener("click",this.targetClickHandler),null===(e=this.showConfig.target)||void 0===e||e.removeEventListener("mouseenter",this.targetMouseEnterHandler),null===(i=this.showConfig.target)||void 0===i||i.removeEventListener("mouseleave",this.targetMouseLeaveHandler),null===(s=this.showConfig.target)||void 0===s||s.removeEventListener("focusout",this.targetMouseLeaveHandler),null===(o=this.showConfig.appendableElement)||void 0===o||o.removeEventListener("mouseenter",this.elementMouseEnterHandler),null===(n=this.showConfig.appendableElement)||void 0===n||n.removeEventListener("mouseleave",this.elementMouseLeaveHandler)),window.removeEventListener("mousedown",this.globalMouseDownHandler),document.removeEventListener("scroll",this.globalScrollHandler),this.removeShadowRootElementScrolling()}listenShadowRootElementScrolling(){this.shadowRootElementScrollingObserver=new g(this.canAcceptShadowRootScrollEvent.bind(this),this.globalScrollHandler.bind(this)),v.register(m,this.shadowRootElementScrollingObserver)}canAcceptShadowRootScrollEvent(t){return Boolean(this.showConfig&&r(this.showConfig.target,t.host))}removeShadowRootElementScrolling(){v.unregister(m,this.shadowRootElementScrollingObserver)}}V.DELAY_HIDE_TIME=100,H([e()],V.prototype,"hierarchyTreeManager",void 0),H([o("connectedCallback")],V.prototype,"connectedCallback",null),H([o("disconnectedCallback")],V.prototype,"disconnectedCallback",null),H([o("componentDidLoad")],V.prototype,"componentDidLoad",null);export{V as E}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as e,g as i}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{j as r,f as d,k as l}from"./p-a2d1c2f3.js";import{a as n}from"./p-d9671d27.js";import{c as a,M as h,V as c,I as p}from"./p-6e1ab235.js";import{V as b,I as m}from"./p-d849e0f5.js";import{v}from"./p-4866e390.js";import{R as f}from"./p-301096ee.js";import{P as g}from"./p-10ac8b57.js";import{f as y}from"./p-b0ed81e2.js";import"./p-161b9c5b.js";import"./p-ed45b3b6.js";import"./p-40f39194.js";import"./p-d884c644.js";import"./p-f69f84a7.js";import"./p-2d0d575f.js";import"./p-a528714c.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-73383099.js";import"./p-ef9cbad1.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-697eb0e1.js";import"./p-8bd496b4.js";import"./p-451ddd84.js";import"./p-e3fa091a.js";import"./p-5b71c85e.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-8c9ea6f4.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";var j=function(t,o,e,i){var s,r=arguments.length,d=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,o,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(d=(r<3?s(d):r>3?s(o,e,d):s(o,e))||d);return r>3&&d&&Object.defineProperty(o,e,d),d};class w extends c{componentWillLoad(){this.appendAllStateStyles()}watchBorder(){this.appendStateStyles(this.border,"border"),this.makeBorderColorAfterBorder()}watchShadow(){this.appendStateStyles(this.shadow,"shadow")}watchBorderColor(){this.appendStateStyles(this.borderColor,"borderColor"),this.makeBorderColorAfterBorder()}watchBackgroundColor(){this.appendStateStyles(this.backgroundColor,"backgroundColor")}appendStateStyles(t,o){var e;if(null===(e=this.host.shadowRoot.querySelector(`style#state-styles-${o}`))||void 0===e||e.remove(),r(t,o)){const e=document.createElement("style");e.setAttribute("id",`state-styles-${o}`),v.nonce&&e.setAttribute("nonce",v.nonce),e.innerHTML=r(t,o),this.host.shadowRoot.append(e)}}makeBorderColorAfterBorder(){const t=this.host.shadowRoot.querySelector("style#state-styles-borderColor"),o=this.host.shadowRoot.querySelector("style#state-styles-border");t&&o&&o.after(t)}appendAllStateStyles(){this.appendStateStyles(this.backgroundColor,"backgroundColor"),this.appendStateStyles(this.border,"border"),this.appendStateStyles(this.borderColor,"borderColor"),this.appendStateStyles(this.shadow,"shadow")}}j([a()],w.prototype,"host",void 0),j([a()],w.prototype,"backgroundColor",void 0),j([a()],w.prototype,"borderColor",void 0),j([a()],w.prototype,"border",void 0),j([a()],w.prototype,"shadow",void 0),j([h("componentWillLoad")],w.prototype,"componentWillLoad",null),j([h("watchBorder")],w.prototype,"watchBorder",null),j([h("watchShadow")],w.prototype,"watchShadow",null),j([h("watchBorderColor")],w.prototype,"watchBorderColor",null),j([h("watchBackgroundColor")],w.prototype,"watchBackgroundColor",null);var u=function(t,o,e,i){var s,r=arguments.length,d=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,o,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(d=(r<3?s(d):r>3?s(o,e,d):s(o,e))||d);return r>3&&d&&Object.defineProperty(o,e,d),d};class k extends c{constructor(){super(...arguments),this.paddingStyleRef=null,this.marginStyleRef=null,this.cornersStyleRef=null}setDefaultStyle(){this.generatePaddingStyle(),this.generateMarginStyle(),this.generateCornersStyle()}generatePaddingStyle(){const t=d(this.padding,"paddingStyle");this.attachStyle("padding",t)}generateMarginStyle(){const t=d(this.margin,"marginStyle");this.attachStyle("margin",t)}generateCornersStyle(){const t=d(this.corners,"cornersStyle");this.attachStyle("corners",t)}attachStyle(t,o){if(o){const e=`${t}StyleRef`,i=this.host.shadowRoot;this[e]||(this[e]=document.createElement("style"),v.nonce&&this[e].setAttribute("nonce",v.nonce),i.appendChild(this[e])),this[e].innerHTML=o}}}u([a()],k.prototype,"host",void 0),u([a()],k.prototype,"padding",void 0),u([a()],k.prototype,"margin",void 0),u([a()],k.prototype,"corners",void 0),u([h("componentWillLoad")],k.prototype,"setDefaultStyle",null),u([h("watchPaddingChange")],k.prototype,"generatePaddingStyle",null),u([h("watchMarginChange")],k.prototype,"generateMarginStyle",null),u([h("watchCornersChange")],k.prototype,"generateCornersStyle",null);var C=function(t,o,e,i){var s,r=arguments.length,d=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,o,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(d=(r<3?s(d):r>3?s(o,e,d):s(o,e))||d);return r>3&&d&&Object.defineProperty(o,e,d),d};const S=class{constructor(o){t(this,o),this.globalSlimmers={},this.pageResizeSlimmer=new g,this.stateStyleController=new w,this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.responsiveStyleController=new k}watchPaddingChange(){}watchMarginChange(){}watchBorder(){}watchShadow(){}watchBorderColor(){}watchBackgroundColor(){}watchCornersChange(){}render(){const t=[d(this.padding,"padding"),d(this.margin,"margin"),d(this.display,"boxDisplay"),d(this.corners,"corners"),l(this.borderStyle),f.formatCustom(this.responsiveClass)],i=Object.assign({width:d(this.width,"widthAndHeight"),height:d(this.height,"widthAndHeight"),minHeight:d(this.minHeight,"widthAndHeight"),maxHeight:d(this.maxHeight,"widthAndHeight"),order:this.order&&`${f.formatCustom(this.order)}`,alignSelf:this.alignSelf&&`${f.formatCustom(this.alignSelf)}`,justifySelf:this.justifySelf&&`${f.formatCustom(this.justifySelf)}`},y(this.flex,this.flexGrow,this.flexShrink,this.flexBasis));return this.gridArea?i.gridArea=`${f.formatCustom(this.gridArea)}`:(i.gridColumn=this.gridColumn&&`${f.formatCustom(this.gridColumn)}`,i.gridRow=this.gridRow&&`${f.formatCustom(this.gridRow)}`),s(o(e,{style:i,class:n(t)},o("slot",null)),this.host)}get host(){return i(this)}static get watchers(){return{padding:["watchPaddingChange"],margin:["watchMarginChange"],border:["watchBorder"],shadow:["watchShadow"],borderColor:["watchBorderColor"],backgroundColor:["watchBackgroundColor"],corners:["watchCornersChange"]}}};C([m()],S.prototype,"globalSlimmers",void 0),C([p()],S.prototype,"pageResizeSlimmer",void 0),C([p()],S.prototype,"stateStyleController",void 0),C([p()],S.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),C([p()],S.prototype,"responsiveStyleController",void 0),S.style=":host(.v-block),.v-block{display:block}:host(.v-inline-block),.v-inline-block{display:inline-block}:host(.v-hidden),.v-hidden{display:none}@media (min-width: 320px){:host(.S\\:v-block),.S\\:v-block{display:block}:host(.S\\:v-inline-block),.S\\:v-inline-block{display:inline-block}:host(.S\\:v-hidden),.S\\:v-hidden{display:none}}@media (min-width: 768px){:host(.M\\:v-block),.M\\:v-block{display:block}:host(.M\\:v-inline-block),.M\\:v-inline-block{display:inline-block}:host(.M\\:v-hidden),.M\\:v-hidden{display:none}}@media (min-width: 1024px){:host(.L\\:v-block),.L\\:v-block{display:block}:host(.L\\:v-inline-block),.L\\:v-inline-block{display:inline-block}:host(.L\\:v-hidden),.L\\:v-hidden{display:none}}@media (min-width: 1440px){:host(.XL\\:v-block),.XL\\:v-block{display:block}:host(.XL\\:v-inline-block),.XL\\:v-inline-block{display:inline-block}:host(.XL\\:v-hidden),.XL\\:v-hidden{display:none}}:host(.v-border-solid),.v-border-solid{border-style:solid}:host(.v-border-dashed),.v-border-dashed{border-style:dashed}:host(.v-border-dotted),.v-border-dotted{border-style:dotted}:host(.v-border-double),.v-border-double{border-style:double}:host(.v-border-none),.v-border-none{border-style:none}:host{display:block}";export{S as vega_box}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as i,H as n,g as a}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as s,a as r}from"./p-f0ff4463.js";import{M as p,a as l}from"./p-cdbbdcc2.js";import{R as c}from"./p-280cbcdb.js";import{s as h}from"./p-519a7d55.js";import{C as d}from"./p-75b58efe.js";import{c as u,V as f,M as v,I as x}from"./p-6e1ab235.js";import{s as g}from"./p-6bd5c49b.js";import{V as m,I as b}from"./p-d849e0f5.js";import{F as w}from"./p-30e7544c.js";import{c as y}from"./p-f2c8c363.js";import{D as C,a as j,d as k,w as I,g as R,F as z,G as S,H as E}from"./p-8bd496b4.js";import{S as O}from"./p-6c1ef2ed.js";import{S as T}from"./p-d991fb11.js";import{i as F}from"./p-161b9c5b.js";import{S as N}from"./p-3566ad76.js";import{i as V}from"./p-d27ae9ff.js";import{d as L}from"./p-bf19682d.js";import{m as M,n as P,o as A}from"./p-5b71c85e.js";import{P as D}from"./p-10ac8b57.js";import{S as $}from"./p-59fa3f68.js";import{a as B}from"./p-8c9ea6f4.js";import{c as _}from"./p-86194314.js";import{C as U}from"./p-2d0d575f.js";import{F as W}from"./p-a528714c.js";import"./p-262ec334.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-d9671d27.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-f69f84a7.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-697eb0e1.js";import"./p-b75ee3ba.js";import"./p-ed45b3b6.js";import"./p-40f39194.js";import"./p-d884c644.js";import"./p-ce2ffff7.js";import"./p-5d676a94.js";const K=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class q extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=K.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class G extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);o>3&&s&&Object.defineProperty(e,i,s)}([u()],G.prototype,"disableCopyPaste",void 0);var H=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class J extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}H([u()],J.prototype,"host",void 0),H([u()],J.prototype,"prefixIcon",void 0);class Q extends T{format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),a=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((a.match(/,/g)||[]).length-o)}}class X extends T{constructor(t){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(F(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class Y extends T{constructor(t,e=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(F(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class Z extends X{constructor(t){super(t)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),a=t.substring(0,e),o=n.substring(0,e),s=(a.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-s)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",a=Number(e.split(".")[0]);return!isNaN(a)&&a<=Number.MAX_SAFE_INTEGER?a.toLocaleString("en-US")+n:e}}var tt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class et extends N{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=O.PHONE_MASK;break;case"taxId":i=O.TAX_ID_MASK;break;case"zipcode":i=O.ZIPCODE_MASK;break;case"thousand-comma":i=new Q;break;case"number":i=this.getNumberTypeMaskStrategy(e.options);break;case"custom":i=e.strategy?e.strategy():new O(e.options);break;case"custom-formatter":i=new Y(e.formatter,e.resetCaretPosition)}return"number"!==this.type||"input"!==t||e||(i=new X),i}getNumberTypeMaskStrategy(t){return t&&t.thousandComma?new Z(t):new X(t)}isBlurModeMaskConfig(t){return"custom"===t.type&&"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return V(i,n,!0,((t,e)=>L(t,e)?0:-1))}initSetupMaskConfigObserver(){C.addUniqueObserverToNode(this.host,M,this.setup.bind(this))}removeSetupMaskConfigObserver(){C.removeUniqueObserverFromNode(this.host,M)}}tt([u()],et.prototype,"maskConfig",void 0),tt([u()],et.prototype,"disableCopyPaste",void 0),tt([u()],et.prototype,"type",void 0),tt([u()],et.prototype,"inputRenderer",void 0),tt([v("connectedCallback")],et.prototype,"connectedCallback",null),tt([v("disconnectedCallback")],et.prototype,"disconnectedCallback",null),tt([v("watchValue")],et.prototype,"watchValue",null),tt([v("watchMaskChange")],et.prototype,"watchMaskChange",null),tt([v("watchTypeChange")],et.prototype,"watchTypeChange",null);const it=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var nt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class at extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}nt([u()],at.prototype,"host",void 0),nt([u()],at.prototype,"value",void 0),nt([u()],at.prototype,"placeholder",void 0),nt([u()],at.prototype,"isCompactInputWidth",void 0),nt([u()],at.prototype,"suffixText",void 0),nt([v("componentDidLoad")],at.prototype,"componentDidLoad",null),nt([v("watchValue")],at.prototype,"watchValue",null),nt([v("watchSuffixText")],at.prototype,"watchSuffixText",null);var ot=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class st extends ${constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ot([u()],st.prototype,"host",void 0),ot([u({writable:!0})],st.prototype,"prefixText",void 0),ot([u({writable:!0})],st.prototype,"suffixText",void 0),ot([u({writable:!0})],st.prototype,"isCompactInputWidth",void 0);var rt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class pt extends f{render(){return t("vega-button-circle",{icon:B.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){C.addUniqueObserverToNode(t,j,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}B.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),rt([u()],pt.prototype,"host",void 0),rt([u({writable:!0})],pt.prototype,"isPasswordDisplay",void 0),rt([u()],pt.prototype,"type",void 0);var lt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class ct extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{U.notify(k.getSubject(this.host,P),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{U.notify(k.getSubject(this.host,A),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-label":"input container","aria-disabled":`${this.disabled}`,role:"textbox",tabIndex:this.disabled?null:-1,onKeyDown:_()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:_(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}lt([u()],ct.prototype,"host",void 0),lt([u()],ct.prototype,"value",void 0),lt([u()],ct.prototype,"size",void 0),lt([u()],ct.prototype,"disabled",void 0),lt([u()],ct.prototype,"type",void 0),lt([u()],ct.prototype,"showClearIcon",void 0),lt([u()],ct.prototype,"prefixText",void 0),lt([u()],ct.prototype,"suffixText",void 0),lt([u()],ct.prototype,"isCompactInputWidth",void 0),lt([u()],ct.prototype,"prefixSlotRenderer",void 0),lt([u()],ct.prototype,"passwordEyeRenderer",void 0),lt([u()],ct.prototype,"inputRenderer",void 0);var ht=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class dt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,"aria-label":this.label||"No label defined",minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){U.notify(k.getSubject(this.host,P),this.inputRef.value)}notifySetupMaskConfig(){U.notify(k.getSubject(this.host,M),{})}initInputFocusObserver(){C.addUniqueObserverToNode(this.host,A,this.focusInput.bind(this))}removeInputFocusObserver(){C.removeUniqueObserverFromNode(this.host,A)}focusInput(){this.inputRef.focus()}}ht([u()],dt.prototype,"host",void 0),ht([u()],dt.prototype,"value",void 0),ht([u()],dt.prototype,"disabled",void 0),ht([u()],dt.prototype,"type",void 0),ht([u()],dt.prototype,"label",void 0),ht([u()],dt.prototype,"name",void 0),ht([u()],dt.prototype,"autocomplete",void 0),ht([u()],dt.prototype,"inputmode",void 0),ht([u()],dt.prototype,"placeholder",void 0),ht([u()],dt.prototype,"minLength",void 0),ht([u()],dt.prototype,"maxLength",void 0),ht([u()],dt.prototype,"isPasswordDisplay",void 0),ht([u()],dt.prototype,"valueUpdateTrigger",void 0),ht([u()],dt.prototype,"focusEventEmitter",void 0),ht([u()],dt.prototype,"blurEventEmitter",void 0),ht([u()],dt.prototype,"pasteEventEmitter",void 0),ht([u()],dt.prototype,"copyPasteController",void 0),ht([v("connectedCallback")],dt.prototype,"connectedCallback",null),ht([v("disconnectedCallback")],dt.prototype,"disconnectedCallback",null),ht([v("doFocus")],dt.prototype,"doFocus",null),ht([v("doBlur")],dt.prototype,"doBlur",null);var ut=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class ft extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{U.notify(k.getSubject(this.host,A),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.inputContainerRenderer.render(),this.renderHintDom())}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{C.addUniqueObserverToNode(t,I,this.handleLabelButtonClick),C.addUniqueObserverToNode(t,j,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}ut([u()],ft.prototype,"host",void 0),ut([u()],ft.prototype,"disabled",void 0),ut([u()],ft.prototype,"required",void 0),ut([u()],ft.prototype,"label",void 0),ut([u()],ft.prototype,"hint",void 0),ut([u()],ft.prototype,"labelSuffixButtonProps",void 0),ut([u()],ft.prototype,"labelSuffixButtonConfig",void 0),ut([u()],ft.prototype,"labelButtonClickEventEmitter",void 0),ut([u()],ft.prototype,"inputContainerRenderer",void 0);var vt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class xt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),U.notify(W,{host:this.host,detail:this.value})}initValueUpdateObserver(){C.addUniqueObserverToNode(this.host,P,this.setValue.bind(this))}removeValueUpdateObserver(){C.removeUniqueObserverFromNode(this.host,P)}setValue(t){this.value=t}}vt([u()],xt.prototype,"host",void 0),vt([u({writable:!0})],xt.prototype,"value",void 0),vt([u()],xt.prototype,"changeEventEmitter",void 0),vt([u()],xt.prototype,"inputRenderer",void 0),vt([v("connectedCallback")],xt.prototype,"connectedCallback",null),vt([v("disconnectedCallback")],xt.prototype,"disconnectedCallback",null),vt([v("watchValue")],xt.prototype,"watchValue",null);var gt=function(t,e,i,n){var a,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const mt=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.globalSlimmers={},this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new s({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new p({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new l({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new q:null},{propertyName:"type",ruleFactory:t=>"email"===t?new q:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new D({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.copyPasteController=new G,this.compactWidthController=new at,this.stateController=new st,this.maskConfigController=new et,this.valueController=new xt,this.prefixSlotRenderer=new J,this.renderer=new ft,this.inputContainerRenderer=new ct,this.inputRenderer=new dt,this.changeEventEmitter=y(mt,R),this.focusEventEmitter=y(mt,z),this.blurEventEmitter=y(mt,S),this.labelButtonClickEventEmitter=y(mt,I),this.pasteEventEmitter=y(mt,E),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(it),this.passwordEyeRenderer=new pt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.email=!1,this.required=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}async doFocus(){}async doBlur(){}render(){return g(t("slot",null)),h(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"]}}};gt([b()],mt.prototype,"globalSlimmers",void 0),gt([x()],mt.prototype,"formFieldController",void 0),gt([x()],mt.prototype,"pageResizeObserverSlimmer",void 0),gt([x()],mt.prototype,"copyPasteController",void 0),gt([x()],mt.prototype,"compactWidthController",void 0),gt([x()],mt.prototype,"stateController",void 0),gt([x()],mt.prototype,"maskConfigController",void 0),gt([x()],mt.prototype,"valueController",void 0),gt([x()],mt.prototype,"prefixSlotRenderer",void 0),gt([x()],mt.prototype,"renderer",void 0),gt([x()],mt.prototype,"inputContainerRenderer",void 0),gt([x()],mt.prototype,"inputRenderer",void 0),gt([x()],mt.prototype,"changeEventEmitter",void 0),gt([x()],mt.prototype,"focusEventEmitter",void 0),gt([x()],mt.prototype,"blurEventEmitter",void 0),gt([x()],mt.prototype,"labelButtonClickEventEmitter",void 0),gt([x()],mt.prototype,"pasteEventEmitter",void 0),gt([x()],mt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gt([x()],mt.prototype,"passwordEyeRenderer",void 0),gt([d()],mt.prototype,"watchMaskChange",null),mt.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{mt as vega_input}
@@ -1 +0,0 @@
1
- import{d as t,e,b as n,h as s,A as r,T as o,B as i,H as a,l,c,m as d,n as h,o as u,p as m,q as T,I as w,r as p,S as E,j as g,t as R,u as k,f,v as B,w as I,C as b,x,s as O,N as L,y,z as N,D as A,E as C,F as j,G as H,M as S,J as v,K as D,U as M,L as P,O as V,P as F,R as U}from"./p-e3fa091a.js";import{g as z}from"./p-a4670e23.js";import{i as $}from"./p-161b9c5b.js";import{C as G}from"./p-2d0d575f.js";import{d as J}from"./p-8bd496b4.js";import{a as W,b as K}from"./p-5b71c85e.js";import{d as X}from"./p-02841589.js";import{r as Y,i as Z}from"./p-d9671d27.js";import{c as _}from"./p-bf19682d.js";import{L as Q}from"./p-6e1ab235.js";class RTEListItemBlock extends e{constructor(t,e,n){super(t,"list-item",n),this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new RTEListItemBlock(t.id,void 0,e);s.children=t.nodes.map((t=>n.from(t,s,e))),t.children&&(s.nestList=t.children.map((t=>{const e=RTEListBlock.from(t);return e.parent=s,e})));const{annotations:r}=t;return r&&Object.entries(r).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);$(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(){return[`<li${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),"</li>"].join("")}cloneWithNodes(t){const e=new RTEListItemBlock(z());return e.children=[],e.apply(new s(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}createNewListItem(){return new RTEListItemBlock(z())}clone(t){var e;const n=new RTEListItemBlock(this.id);return n.children=this.children.map((t=>t.clone(n))),n.annotationMap=super.cloneAnnotations(),n.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(n))),n.parent=t,n}}r.register(o.name,RTEListItemBlock.name,new i),r.register(a.name,RTEListItemBlock.name,new l),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEListItemBlock.name,new d),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEListItemBlock.name,new h),r.register(c.DELETE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEListItemBlock.name,new u),r.register(c.REPLACE_CHILD_NODES,RTEListItemBlock.name,new m),r.register(c.REPLACE_NEST_LIST,RTEListItemBlock.name,new class extends t{handleAction(t,e){t.newList.forEach((t=>{t.parent=e})),e.nestList=t.newList}}),r.register(c.MERGE_TWO_BLOCKS_NODES,RTEListItemBlock.name,new T),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListItemBlock.name,new class extends t{handleAction(t,e){e.parent.apply(t)}});class q extends R{constructor(){super(...arguments),this.type=k.LIST}renderStyle(t){return(null==t?void 0:t.standalone)?{paddingLeft:"8px",marginLeft:"16px"}:null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new q}toJSON(){}}class RTEListBlock extends f{constructor(t,e,n){super(t),this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&this.annotationMap.set(k.LIST,new q)}static from(t,e={autoMatchFormat:!0}){const n=new RTEListBlock(t.id,t.type,e),{annotations:s}=t;return s&&Object.entries(s).forEach((([t,e])=>{const s=this.createAnnotationEntity(t,e);$(s)&&n.annotationMap.set(...s)})),n.children=t.blocks.map((t=>{const s=RTEListItemBlock.from(t,e);return s.parent=n,s})),n}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return b.from(e);case"customClass":return I.from(e);case"customStyle":return B.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(){const t=this.getBlockTag();return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new RTEListBlock(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"}}r.register(c.TRANSFORM_LIST_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,r=e.parent.createList(t.listType);if(n.every((t=>t.parent===e)))r.apply(new s(e.children)),e.parent.apply(new w(e,r)),e.parent.apply(new p(e)),n.forEach((t=>t.children.map((t=>t.apply(new E)))));else{const n=t.selectedBlocks.map((t=>e.parent.toListItem(t)));r.apply(new s(n)),e.parent.apply(new w(e,r)),t.selectedBlocks.forEach((t=>{t.parent.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}}}),r.register(c.TRANSFORM_PARAGRAPH_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){let n=!1,r=!1;const o=t.selectedBlocks,i=o.map((t=>(t.children.map((t=>t.apply(new E))),t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),this.toParagraph(t))));if(n)e.parent.apply(new g(e,...i));else if(r)e.parent.apply(new w(e,...i));else{const t=e.children.indexOf(o[0]),n=e.children.indexOf(o[o.length-1]),r=e.parent.createList(e.type);r.apply(new s(e.children.slice(0,t)));const a=e.parent.createList(e.type);a.apply(new s(e.children.slice(n+1))),e.parent.apply(new g(e,r,...i,a)),e.parent.apply(new p(e))}o.map((t=>{e.apply(new p(t))})),0===e.children.length&&e.parent.apply(new p(e))}toParagraph(t){const n=new e(z(),"paragraph");return n.apply(new s(t.children)),n.annotationMap=t.annotationMap,n}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEListBlock.name,new class extends t{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new w(e,t.imageBlockToBeInserted):t)}});class tt{}class et{constructor(t,e){this.childrenOutput=[],this.currentStrategy=t,this.currentElements=e}setChildrenOutput(t){this.childrenOutput=t}toDto(t={autoMatchFormat:!0,skipCustomAnnotations:!0}){const e=this.currentStrategy.handle(this.currentElements,t);return this.childrenOutput.length>0&&e&&this.currentStrategy.appendChildBlocks(e,this.childrenOutput.map((e=>e.toDto(t))).filter($)),e}}const nt=new class{constructor(){this.elementToBlockStrategies=[],this.elementToNodeStrategies=[]}registerElementToBlockStrategy(t){this.hasDuplicateStrategy(t,this.elementToBlockStrategies)||this.elementToBlockStrategies.unshift(t)}registerElementToNodeStrategy(t){this.hasDuplicateStrategy(t,this.elementToNodeStrategies)||this.elementToNodeStrategies.unshift(t)}getElementToBlockStrategies(){return this.elementToBlockStrategies}getElementToNodeStrategies(){return this.elementToNodeStrategies}hasDuplicateStrategy(t,e){return e.includes(t)}},st=new class{process(t,e={autoMatchFormat:!0,skipCustomAnnotations:!0}){const n=this.getElementToBlockStrategies(),s=[];for(let r=0;r<t.length;r++){if(this.isInvalidElement(t[r]))continue;let o=0;for(const i of n)if(o=i.canHandle(t,r,e),o>0){const n=t.slice(r,r+o),a=new et(i,n);1===o&&i.shouldProceedToElementChildren()&&a.setChildrenOutput(this.process(Array.from(n[0].childNodes),e)),s.push(a),r+=o-1;break}if(0===o&&r<t.length){const n=Array.from(t[r].childNodes),o=this.process(Array.from(n),e);o.length>0&&s.push(...o)}}return s}isInvalidElement(t){return t.nodeType===Node.COMMENT_NODE||["META","STYLE"].includes(t.nodeName)}getElementToBlockStrategies(){return nt.getElementToBlockStrategies()}};class rt extends t{handleAction(t,e){const n=t.entityToBeAppended;e.children&&(n.forEach((t=>{t.parent=e})),e.children=e.children.concat(n))}}class ot extends t{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[...t.childrenToBeInserted,t.referChildren])}replaceElementWithElements(t,e,n){t.children&&(n.forEach((e=>{e.parent=t})),t.children=t.children.flatMap((t=>t===e?n:t)))}}class it extends ot{handleAction(t,e){this.replaceElementWithElements(e,t.referChildren,[t.referChildren,...t.childrenToBeInserted])}}class at extends L{constructor(t,e){super(),this.type=y.IMAGE,this.size=t,this.alt=e}static from(t,e){return[y.IMAGE,new at(t,e)]}toJSON(){return $(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}clone(){return new at(this.size,this.alt)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.size?`v-rte--image-size-${this.size}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={verticalAlign:"bottom"};switch(this.size){case"sm":return Object.assign(Object.assign({},e),{width:"25%"});case"md":return Object.assign(Object.assign({},e),{width:"50%"});case"lg":return Object.assign(Object.assign({},e),{width:"100%"})}}}class RTEImageNode extends N{constructor(t,e,n,s){super(t,s),this.type=A.IMAGE,this.url=e,this.parent=n}static from(t,e,n={autoMatchFormat:!0}){const s=new RTEImageNode(t.id,t.url,e),r=!!n.autoMatchFormat,o=Object.assign({},t.annotations),{size:i}=o,a=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(t);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(n[s[r]]=t[s[r]])}return n}(o,["size"]),l=Object.assign(Object.assign({},a),{size:null!=i?i:r?"md":void 0});return s.annotationMap=new Map(Object.keys(l).map((t=>"size"===t||"alt"===t?at.from(l.size,l.alt):this.createAnnotationEntity(t,l[t]))).filter($)),s}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof at||t instanceof C)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return""==t.alt&&delete t.alt,Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"image",url:this.url})}clone(t){return new RTEImageNode(this.id,this.url,t,super.cloneAnnotations())}toHtml(){const t=this.getAnnotationByType(y.IMAGE);return`<img${super.generateAttributeString(...[t&&t.alt?`alt="${t.alt}"`:null,`src="${this.url}"`,t&&t.size?`data-size="${t.size}"`:null].filter($))}>`}doAnnotationActionApply(t){const e=r.get(j.name,RTEImageNode.name);e&&e.execute(t,this)}doModifyActionApply(t){r.executeTheStrategy(t,this)}}r.register(c.UPDATE_IMAGE_NODE_URL,RTEImageNode.name,new class extends t{handleAction(t,e){e.url=t.url}}),r.register(j.name,RTEImageNode.name,new class extends t{handleAction(t,e){const n=t.toAnnotation();e.annotationMap.set(n.type,n)}});class lt extends S{constructor(t,e){super(),this.type=c.INSERT_NEW_PARAGRAPH,this.startContainerNode=t,this.startOffset=e}}class RTEImageBlock extends f{constructor(t){super(t),this.type="image",this.children=[]}static from(t,e={autoMatchFormat:!0}){const n=new RTEImageBlock(t.id),{annotations:s}=t;return n.children=t.nodes.map((t=>RTEImageNode.from(t,n,e))),s&&super.convertAnnotationsToMap(n.annotationMap,s),n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.children.map((t=>t.toJSON()))})}toHtml(){const t=super.generateAttributeString(),e=this.children.map((t=>t.toHtml())).join("");return super.shouldRenderAsInternalWrapper()?e:[`<div${t}>`,e,"</div>"].join("")}isNotEmpty(){return this.children.length>0&&this.children.some((t=>t.url.length>0))}getLastNode(){return this.children[this.children.length-1]}createNewImageBlock(){return new RTEImageBlock(z())}clone(t){const e=new RTEImageBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}}r.register(c.MERGE_TWO_BLOCKS_NODES,RTEImageBlock.name,new T),r.register(c.REPLACE_CHILD_NODES,RTEImageBlock.name,new m),r.register(c.SPLIT_BLOCK_WITH_NODE,RTEImageBlock.name,new class extends t{handleAction(t,e){t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode,e)}splitImageNodes(t,e,n){const s=n.children.indexOf(t);if(s>-1){const t=n.children.slice(0,s+e),r=n.children.slice(s+e);n.apply(new H(t));const o=this.cloneWithNodes(r,n);return n.parent.apply(new w(n,o)),o}}cloneWithNodes(t,e){const n=e.createNewImageBlock();return n.children=[],n.apply(new s(t)),n}}),r.register(c.LINE_BREAK_SINGLE_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=new lt(t.startContainerNode,t.startOffset);e.apply(n);const s=n.newBlock;s&&(t.lineBreakNode=s.children[0])}}),r.register(c.LINE_BREAK_MULTIPLE_BLOCKS,RTEImageBlock.name,new class extends t{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,r){const o=e.from({id:z(),type:"paragraph",nodes:[{id:z(),type:"text",text:"\n"}]});r.parent.apply(new w(r,o));const i=this.concatBlocksNodes(t.slice(1));return(0===i.length||i[0]&&""===i[0].text)&&i.push(new n(z(),"\n",o)),o.apply(new s(i)),o.children[0]}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new p(t)))})),e}}),r.register(c.INSERT_IMAGE_TO_BLOCK,RTEImageBlock.name,new class extends t{handleAction(t,e){const n=t.splitPointNode,r=t.startOffsetOfNode,o=t.imageBlockToBeInserted;e.children.length<1?e.apply(new s(o.children)):this.isCaretPositionAtBlockEnd(e,n,r)?e.parent.apply(new w(e,o)):this.isCaretPositionAtBlockStart(e,n,r)?e.parent.apply(new g(e,o)):(e.apply(new v(n,r)),e.parent.apply(new w(e,o)))}}),r.register(a.name,RTEImageBlock.name,new l);class RTEHtmlBlock extends f{constructor(t,e){super(t),this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const n=new RTEHtmlBlock(t.id,t.htmlTag),{annotations:s}=t;return s&&super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTEHtmlBlock(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 this.children.length>0}toHtml(){const t=this.htmlTag;return[`<${t}${super.generateAttributeString()}>`,this.children.map((t=>t.toHtml())).join(""),`</${t}>`].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()))})}}class ct extends S{constructor(t){super(),this.type=c.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class dt extends D{handleAction(t,e){const{startContainerNode:n}=t;n.isContentEditable()?n.isTextNode()&&this.deleteTextNodeContent(t,e):this.deleteDecoratorNodeContent(t,e);const s=e.parent;s&&e.isListItemBlock()&&0===s.children.length&&s.parent.apply(new p(s))}deleteTextNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;if(0!==s&&!n.isEmpty()){const r=n.text.slice(0,s-1)+n.text.slice(s);if(n.apply(new M(r)),r)return void(t.previousNode=n);{const s=this.getPreviousNode(n);return s&&s.parent===e&&"\n"===s.text||1===e.children.length?void(t.previousNode=n):(e.apply(new p(n)),void(t.previousNode=s))}}{let s=this.getPreviousNode(n),r=null;const o=n.isEmpty();if(e.children.length&&s&&s.parent!==e)o&&e.apply(new p(n)),e.type===s.parent.type&&s.parent.apply(new ct(e));else if(this.isContentFirstNode(n)&&o&&(r=this.getNextNode(n)),o&&e.apply(new p(n)),s&&s.isTextNode()&&(s.isEmpty()||!s.isContentEditable()&&s.parent===e)){const t=s;s=this.getPreviousNode(s),t.parent.apply(new p(t)),s||o||(r=n)}0===e.children.length&&e.parent.apply(new p(e)),s?t.previousNode=s:r&&(t.nextNode=r)}}deleteDecoratorNodeContent(t,e){const n=t.startContainerNode,s=t.startOffset;let r=this.getPreviousNode(n),o=null;if(0!==s){const t=e;this.isContentFirstNode(n)&&(o=this.getNextNode(n)),1===t.children.length?t.parent.apply(new p(t)):t.apply(new p(n))}else{const e=r;e&&!e.isContentEditable()&&(r=this.getPreviousNode(e),e.parent.apply(new p(e)),r||(t.nextNode=n))}r?t.previousNode=r:o&&(t.nextNode=o)}}class ht extends t{handleAction(t,e){const{startContainerNode:n}=t;t.newBlock=this.breakSingleBlock(n,t.startOffset,e)}breakSingleBlock(t,e,n){const s=this.getNewParagraph(t);if(s){if(this.isCaretPositionAtBlockEnd(n,t,e))n.parent.apply(new w(n,s));else{if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}n.parent.apply(new g(n,s))}return s}}getNewParagraph(t){const e=this.createNewParagraph("");if(e){let n=e.children[0];return t.isTextNode()&&t.isContentEditable()&&(e.children=[],n=t.cloneWithText(""),n.annotationMap.delete(y.LINK),e.apply(new s([n]))),e}}}class ut extends S{constructor(t,e,n=!1){super(),this.isFlushable=!0,this.type=c.UPDATE_CURSOR_POSITION,this.immediatelyRun=!1,this.nextFocusNode=t,this.offset=e,this.immediatelyRun=n,this.immediatelyRun&&(this.isFlushable=!1)}}class mt extends t{handleAction(t,e){const{rteRange:n,nodeToBeInserted:s}=t,{startNode:r,startOffset:o}=n;if(r){const t=e;if(r.isContentEditable()&&r.isTextNode())if("\n"!==r.text&&r.text&&0!==o){const e=r.text.substring(0,o),n=r.text.substring(o),i=r.cloneWithText(e),a=r.cloneWithText(n),l=[i,s];n&&l.push(a),t.apply(new g(r,...l)),t.apply(new p(r))}else t.apply(new g(r,s));else t.apply(0!==o?new w(r,s):new g(r,s));this.updateCursorPosition(s)}}updateCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class Tt extends t{handleAction(t,e){const{text:n,offset:s,decoratorNode:r}=t,o=this.createNewParagraph(n);if(o){const t=o.children[0];e.apply(0!==s?new w(r,t):new g(r,t)),this.setTheCursorPosition(t)}}setTheCursorPosition(t){const e=this.getRootContent(t.parent);e&&e.apply(new ut(t))}}class wt extends t{handleAction(t,e){t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset,e)}breakSingleListItemBlock(t,e,n){const r=n.createNewListItem(),o=this.copyInlineStyleToNewNode(t);if(r.apply(new s([o])),this.isCaretPositionAtBlockEnd(n,t,e))return this.breakListItemAtEnd(r,n);if(!this.isCaretPositionAtBlockStart(n,t,e)){const s=new v(t,e);return n.apply(s),s.newBlock}return n.parent.apply(new g(n,r)),r}breakListItemAtEnd(t,n){const r=n.parent.children[n.parent.children.length-1],o=1===n.children.length&&n.children[0].isEmpty();if(n===r&&o){const r=n.parent.parent;if("list-item"!==r.type){const o=e.from({id:z(),type:"paragraph",nodes:[]});return o.apply(new s(t.children)),r.apply(new w(n.parent,o)),n.parent.apply(new p(n)),o}r.parent.apply(new w(r,t)),n.parent.apply(new p(n))}else n.parent.apply(new w(n,t));return t}copyInlineStyleToNewNode(t){const e=t.cloneWithText("");return e.annotationMap.delete(y.LINK),e}}class pt extends S{constructor(t){super(),this.type=c.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class Et extends P{handleAction(t,e){super.handleAction(t,e);const n=e.parent;0===e.children.length&&n&&n.apply("list-item"===n.type?new pt(e):new p(e))}}class gt extends t{handleAction(t,e){if(e.parent){const{blocksToBeInserted:n,startNode:s,startOffset:r}=t;let o=e;if(s===e.children[0]&&0===r)e.parent.apply(new g(e,...n));else{const t=new v(s,r);e.apply(t),e.parent.apply(new w(e,...n)),o=t.newBlock}t.futureFocusBlock=o}}}const Rt=new class{registerBlockBasicStrategies(t){r.register(c.DELETE_CHILDREN,t,t===RTEListBlock.name?new Et:new P),r.register(c.APPEND_CHILDREN,t,new rt),r.register(c.INSERT_CHILDREN_BEFORE,t,new ot),r.register(c.INSERT_CHILDREN_AFTER,t,new it),r.register(c.DELETE_BLOCK_CONTENT,t,new dt),r.register(c.INSERT_NEW_PARAGRAPH,t,t===RTEListItemBlock.name?new wt:new ht),r.register(c.INSERT_TEXT_TO_DECORATOR_NODE,t,new Tt),r.register(c.INSERT_NODE_TO_NEAREST_ROOT,t,new mt),r.register(c.PASTE_CONTENT,t,new gt)}};class kt{}class ft extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isBold(t)||e.bold?{bold:!0}:{}}isBold(t){return"STRONG"===t.nodeName||"B"===t.nodeName||"bold"===t.style.fontWeight||"700"===t.style.fontWeight||t.classList.contains("v-rte--bold")}}class Bt extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getAttributes(t);return Object.keys(e).length>0?{customAttribute:e}:{}}getAttributes(t){return t.getAttributeNames().filter((t=>"style"!==t&&"class"!==t&&this.isValidAttr(t))).reduce(((e,n)=>(e[n]=t.getAttribute(n),e)),{})}isValidAttr(t){return/^[a-zA-Z_][\w-]*$/.test(t)}}class It extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.getCustomClass(t);return e.length>0?{customClass:e}:{}}getCustomClass(t){return t.classList.toString().split(" ").filter((t=>!t.includes("v-rte")&&""!==t))}}class bt extends kt{canHandle(t,e){return!e.skipCustomAnnotations&&!!t}handle(t){const e=this.generateCustomStyleAnnotations(t);return Object.keys(e).length>0?{customStyle:e}:{}}generateCustomStyleAnnotations(t){const e=t.getAttribute("style");return e?e.split(";").filter(Boolean).filter((t=>" "!==t)).map((t=>{const e=t.replace(/(['"])(.*?)\1/g,"$2").split(":");return{[X(e[0].trim())]:e[1].trim().replace(";","")}})).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{}):{}}}class xt extends kt{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getIndent(t);return e?{indent:e}:{}}getIndent(t){const e=t.style;let n;if(e.marginLeft)n=e.marginLeft;else{if(!e.margin)return null;{const t=e.margin.split(" ");switch(t.length){case 4:n=t[3];break;case 2:case 3:n=t[1];break;default:n=t[0]}}}const s=Number(n.replace("px",""));return s&&s>=0?Math.floor(s/16):null}}class Ot extends kt{canHandle(t){return["RTETextBlock","RTEListItemBlock","RTEListBlock"].includes(t.name)}handle(t){const e=this.getTextAlign(t);return e?{textAlign:e}:{}}getTextAlign(t){const e=t.classList;if(e.contains("v-rte--horizontal-alignment-left"))return"left";if(e.contains("v-rte--horizontal-alignment-center"))return"center";if(e.contains("v-rte--horizontal-alignment-right"))return"right";if(e.contains("v-rte--horizontal-alignment-justify"))return"justify";switch(t.style.textAlign){case"center":return"center";case"right":return"right";case"justify":return"justify";case"left":return"left";default:return null}}}class Lt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isCode(t)||e.code?{code:!0}:{}}isCode(t){return t.classList.contains("v-rte--code")||"CODE"===t.nodeName||"PRE"===t.nodeName||"monospace"===t.style.fontFamily||"Roboto Mono"===t.style.fontFamily.replace(/["']/g,"")}}class yt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){const n=this.getColor(t)||e.textColor;return n?{textColor:n}:{}}getColor(t){var e;const n=null===(e=Y(t.style.color))||void 0===e?void 0:e.toUpperCase();if(n){const t=V.filter((t=>t.key!==F.key)).find((t=>t.light===n||t.dark===n));return t?t.key:null}for(const e of V)if(t.style.color.includes(e.key))return e.key;return null}}class Nt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isItalic(t)||e.italic?{italic:!0}:{}}isItalic(t){return"I"===t.nodeName||"italic"===t.style.fontStyle||"EM"===t.nodeName||t.classList.contains("v-rte--italic")}}class At extends kt{constructor(){super(...arguments),this.handlers=[new Bt,new It,new bt]}canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return e.link?{link:e.link}:"A"===t.tagName?{link:this.generateLinkAnnotations(t)}:{}}generateLinkAnnotations(t){const e={href:t.getAttribute("href")||"",groupKey:z()};return this.handlers.forEach((n=>{Object.assign(e,n.handle(t))})),e}}class Ct extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isStrikethrough(t)||e.strikethrough?{strikethrough:!0}:{}}isStrikethrough(t){return t.style.textDecoration.includes("line-through")||"S"===t.nodeName||"DEL"===t.nodeName||t.classList.contains("v-rte--strikethrough")}}class jt extends kt{canHandle(t){return"RTETextNode"===t.name}handle(t,e={}){return this.isUnderline(t)||e.underline?{underline:!0}:{}}isUnderline(t){return t.style.textDecoration.includes("underline")||"U"===t.nodeName||"INS"===t.nodeName||t.classList.contains("v-rte--underline")}}class Ht extends kt{canHandle(t,e){return!!e.autoMatchFormat&&"RTETextBlock"===t.name}handle(t){const e=this.getTextStyle(t);return e?{textStyle:e}:{}}getTextStyle(t){const e=this.getElementTypeByDataType(t);if(e)return e;const n=this.getElementTypeByNodeName(t);if(n)return n;const s=this.getElementTypeByFontSize(t);if(s)return s;return this.getElementTypeByClassName(t)||null}getElementTypeByDataType(t){return t.nodeType!==Node.TEXT_NODE&&t.hasAttribute("data-type")?t.getAttribute("data-type"):null}getElementTypeByFontSize(t){var e;switch(null===(e=t.style)||void 0===e?void 0:e.fontSize){case"36px":return"title";case"28px":return"subtitle";case"22px":return"heading-1";case"20px":return"heading-2";case"18px":return"heading-3";default:return null}}getElementTypeByNodeName(t){switch(t.nodeName){case"H1":return"heading-1";case"H2":return"heading-2";case"H3":return"heading-3";case"H4":return"heading-4";case"H5":return"heading-5";case"H6":return"heading-6";default:return null}}getElementTypeByClassName(t){if(t.className){const e=/\bv-rte--text-style-(title|subtitle|heading-1|heading-2|heading-3|paragraph)\b/.exec(t.className);if(e)return e[1]}return null}}class St extends kt{canHandle(t){return"RTEImageNode"===t.name}handle(t){const e=this.getImageSize(t);return e?{size:e}:{}}getImageSize(t){return t.getAttribute("data-size")?t.getAttribute("data-size"):null}}class vt extends kt{canHandle(t){return"RTEImageNode"===t.name}handle(t){return t.hasAttribute("alt")?{alt:t.getAttribute("alt")}:{}}}class Dt extends kt{constructor(){super(...arguments),this.customAttributeHandler=new Bt,this.customStyleAnnotationHandler=new bt,this.customClassAnnotationHandler=new It}canHandle(t,e){return"RTETextNode"===t.name&&!1===e.autoMatchFormat}handle(t,e){if(Dt.canHandleTags.includes(t.nodeName)){const n=this.generateInlineHtmlAnnotation(t,Object.assign({},e));if(n)return{inlineHtml:n}}return{}}generateInlineHtmlAnnotation(t,e){let{inlineHtml:s}=e;if(!n.supportsHtmlTag(t.nodeName.toLowerCase())||1===t.childNodes.length&&t.childNodes[0].nodeType!==Node.TEXT_NODE){const e={htmlTag:t.nodeName.toLowerCase(),customAttribute:this.customAttributeHandler.handle(t).customAttribute,customStyle:this.customStyleAnnotationHandler.handle(t).customStyle,customClass:this.customClassAnnotationHandler.handle(t).customClass};if(s){let n=s;for(;n.child&&t.parentNode&&n.child.htmlTag===t.parentNode.nodeName.toLowerCase();)n=n.child;n.child=e}else s=e}return s?Object.assign({},s):null}}Dt.canHandleTags=["A","ABBR","AUDIO","B","BDI","BDO","CITE","CODE","DEL","DFN","EMBED","EM","I","INS","KBD","MARK","METER","OUTPUT","PROGRESS","Q","S","SMALL","SPAN","STRONG","SUB","SUP","TIME","U","VAR","VIDEO"];const Mt=new class{constructor(){this.handlers=[new Ot,new xt,new ft,new Nt,new jt,new Ct,new yt,new At,new Lt,new St,new vt,new Bt,new It,new bt,new At,new Ht,new Dt]}generate(t,e,n={autoMatchFormat:!0}){const s="A"===e.tagName;return this.handlers.filter((t=>!(!n.autoMatchFormat&&s)||t instanceof At)).filter((r=>e.nodeType!==Node.TEXT_NODE&&r.canHandle(t,{skipCustomAnnotations:n.skipCustomAnnotations||s,autoMatchFormat:n.autoMatchFormat}))).reduce(((t,s)=>{const r=s.handle(e,n.parentAnnotations);return Object.assign(Object.assign({},t),r)}),{})}};class Pt extends tt{constructor(){super(...arguments),this.annotationHandler=new Ht}generateChildNodes(t,e,s){const r=[],o=!(!s||!1!==s.autoMatchFormat),i=Object.assign({},e);return t.forEach((t=>{const a=nt.getElementToNodeStrategies().find((e=>e.canHandle([t],0,s)>0));let l=null;if(a&&(l=a.handle([t],s,i)),l)r.push(l);else if(Z(t)&&t.childNodes.length>0){const a=Mt.generate(n,t,Object.assign({parentAnnotations:o?{inlineHtml:i.inlineHtml,link:i.link,code:i.code}:e},s));r.push(...this.generateChildNodes(Array.from(t.childNodes),a,s))}})),r}matchTextBlockType(t){var e;return null!==(e=this.annotationHandler.handle(t).textStyle)&&void 0!==e?e:"paragraph"}}class Vt extends Pt{canHandle(t,e,n){const s=t[e];return!n.autoMatchFormat&&("DIV"!==s.nodeName||s.childNodes.length>0&&"IMG"!==s.childNodes[0].nodeName)&&Vt.canHandleTags.includes(t[e].nodeName)?1:0}handle(t,e){return RTEHtmlBlock.from(this.generateHtmlBlock(t[0],e),e)}appendChildBlocks(t,e){t.children=e.map((e=>(e.parent=t,e)))}shouldProceedToElementChildren(){return!0}generateHtmlBlock(t,e){return{id:z(),type:"html-block",htmlTag:t.nodeName.toLowerCase(),annotations:Mt.generate(RTEHtmlBlock,t,e),children:[]}}}Vt.canHandleTags=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","BUTTON","CAPTION","COL","COLGROUP","DIV","DD","DETAILS","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","HEADER","HR","HX","INPUT","LEGEND","MAIN","NAV","PRE","SECTION","SUMMARY","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR"];class Ft extends Pt{canHandle(t,e){return"PRE"!==t[e].tagName&&"CODE"!==t[e].tagName||!t[e].hasAttribute("data-language")?0:1}handle(t){const e=t[0];if(e){const t=e.textContent,n=e.dataset.language;return x.from({id:z(),type:"code-block",content:t,language:n})}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}class Ut extends Pt{createRTEImageBlock(t,e){const n=!(e&&e.autoMatchFormat||!t.parentNode||"DIV"===t.parentNode.nodeName);return RTEImageBlock.from({id:z(),type:"image",nodes:[{id:z(),type:"image",url:t.src,annotations:Mt.generate(RTEImageNode,t,e)}],annotations:Object.assign(Object.assign({},Mt.generate(RTEImageBlock,t.parentElement,e)),{internalWrapper:n})},e)}}class zt extends Pt{canHandle(t,e){let n=0;for(let s=e;s<t.length;s++){const e=t[s];if(e.nodeType!==Node.TEXT_NODE&&(!zt.canHandleTags.includes(e.nodeName)||""===e.textContent&&e.querySelector("IMG")))break;n++}return n}handle(t,s){const r=t[0].parentElement,o=s&&s.autoMatchFormat,i=this.generateChildNodes(t,o?Mt.generate(n,r,Object.assign(Object.assign({},s),{skipCustomAnnotations:!0})):{},s),a=o?super.matchTextBlockType(r):this.matchTextBlockTypeByTagName(r),l=!o&&!a;return e.from(Object.assign({id:z(),type:a||"paragraph",nodes:i},l?{annotations:{internalWrapper:l}}:{annotations:Mt.generate(e,r,s)}),s)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}matchTextBlockTypeByTagName(t){switch(t.nodeName){case"P":return"paragraph";default:return null}}}zt.canHandleTags=[...Dt.canHandleTags,"CODE","A","VEGA-RICH-TEXT-LINK-EDITOR","BR"];class $t extends tt{shouldProceedToElementChildren(){return!1}appendChildBlocks(){}generateTextNode(t,e){return{id:z(),type:"text",text:t,annotations:e}}}U.registerRTEDTOClass("paragraph",e),U.registerRTEDTOClass("title",e),U.registerRTEDTOClass("subtitle",e),U.registerRTEDTOClass("heading-1",e),U.registerRTEDTOClass("heading-2",e),U.registerRTEDTOClass("heading-3",e),U.registerRTEDTOClass("heading-4",e),U.registerRTEDTOClass("heading-5",e),U.registerRTEDTOClass("heading-6",e),U.registerRTEDTOClass("heading-6",e),U.registerRTEDTOClass("list-item",RTEListItemBlock),U.registerRTEDTOClass("bullet-list",RTEListBlock),U.registerRTEDTOClass("number-list",RTEListBlock),U.registerRTEDTOClass("image",RTEImageBlock),U.registerRTEDTOClass("code-block",x),U.registerRTEDTOClass("html-block",RTEHtmlBlock),U.registerRTEDTOClass("text",n),U.registerRTEDTOClass("image",RTEImageNode),Rt.registerBlockBasicStrategies(e.name),Rt.registerBlockBasicStrategies(RTEListBlock.name),Rt.registerBlockBasicStrategies(RTEListItemBlock.name),Rt.registerBlockBasicStrategies(RTEImageBlock.name),Rt.registerBlockBasicStrategies(RTEHtmlBlock.name),nt.registerElementToBlockStrategy(new zt),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){const n=t[e];return n.nodeType===Node.ELEMENT_NODE&&""===n.textContent&&n.querySelector("img")?1:0}handle(t,e){const n=t[0].querySelector("img");return this.createRTEImageBlock(n,e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){return"VEGA-RICH-TEXT-IMAGE-EDITOR"===t[e].tagName?1:0}handle(t,e){const n=t[0],s=n.querySelector("img");if($(s))return RTEImageBlock.from({id:z(),type:"image",nodes:[{id:z(),type:"image",url:s.src,annotations:Mt.generate(RTEImageNode,n,e)}],annotations:Mt.generate(RTEImageBlock,n.parentElement,e)},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Ut{canHandle(t,e){return"IMG"===t[e].tagName?1:0}handle(t,e){return this.createRTEImageBlock(t[0],e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return["heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","title","subtitle"].includes(super.matchTextBlockType(t[e]))?1:0}handle(t,n){const s=this.generateChildNodes(Array.from(t[0].childNodes),{},n);return 0===s.length?null:e.from({id:z(),type:super.matchTextBlockType(t[0]),nodes:s,annotations:Mt.generate(e,t[0],n)},n)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new Ft),nt.registerElementToBlockStrategy(new class extends Ft{canHandle(t,e){return"VEGA-CODE-BLOCK"===t[e].tagName&&0==!!t[e].querySelector("vega-code-block")||this.isCodeBlockContainer(t[e])?1:0}handle(t){const e=this.isCodeBlockContainer(t[0])?t[0].querySelector("vega-code-block"):t[0],n=e.querySelector("code");if(n)return super.handle([n]);if(e.hasAttribute("data-content")){const t=document.createElement("code");return t.textContent=e.dataset.content,t.dataset.language=e.dataset.language,super.handle([t])}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isCodeBlockContainer(t){return"PRE"===t.tagName&&t.classList.contains("code-block-container")&&1===t.querySelectorAll("vega-code-block").length}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){if(!["UL","OL"].includes(t[e].parentElement.nodeName)&&t.some((t=>"LI"===t.nodeName))){let n=0;for(let s=e;s<t.length&&"LI"===t[s].nodeName;s++)n++;return n}return"LI"===t[e].tagName?1:0}handle(t,e){const n=t[0];return["UL","OL"].includes(n.parentElement.nodeName)?RTEListItemBlock.from(this.generateListItemBlockDTO(n,e),e):this.generateWithListBlock(t,e)}appendChildBlocks(t,e){t.nestList=e.filter((t=>["bullet-list","number-list"].includes(t.type)))}shouldProceedToElementChildren(){return!0}generateWithListBlock(t,e){return RTEListBlock.from({id:z(),type:"bullet-list",blocks:t.map((t=>this.generateListItemBlockDTO(t,e)))},e)}generateListItemBlockDTO(t,e){return{id:z(),type:"list-item",annotations:Mt.generate(RTEListItemBlock,t,e),nodes:this.generateChildNodes(Array.from(t.childNodes.length?t.childNodes:[t]).filter((t=>!["UL","OL"].includes(t.nodeName))),Mt.generate(n,t,Object.assign(Object.assign({},e),{skipCustomAnnotations:!0})),e)}}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){const n=t[e],s=n.parentElement,r="LI"!==n.nodeName,o=n.nodeType===Node.TEXT_NODE&&""===n.textContent.trim(),i=$(s)&&["UL","OL"].includes(s.nodeName);return r&&!o&&i?1:0}handle(t,e){const n=this.generateChildNodes(t,{},e);return RTEListItemBlock.from({id:z(),type:"list-item",nodes:n,annotations:{}},e)}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"OL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:z(),type:"number-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new class extends Pt{canHandle(t,e){return"UL"===t[e].tagName?1:0}handle(t,e){return 0===t[0].childNodes.length?null:RTEListBlock.from({id:z(),type:"bullet-list",blocks:[],annotations:Mt.generate(RTEListBlock,t[0],e)},e)}appendChildBlocks(t,e){t.children=e.filter((t=>t instanceof RTEListItemBlock)),e.forEach((e=>e.parent=t))}shouldProceedToElementChildren(){return!0}}),nt.registerElementToBlockStrategy(new Vt),nt.registerElementToNodeStrategy(new class extends $t{canHandle(t,e){const n=t[e];return!Z(n)||"BR"!==n.nodeName&&0!==n.childNodes.length?0:1}handle(t,e,s){const r=!(!e||!1!==e.autoMatchFormat),o=Object.assign({},s),i=t[0],a=Mt.generate(n,i,Object.assign({parentAnnotations:r?{inlineHtml:o.inlineHtml,link:o.link,code:o.code}:s},e));if("BR"===i.nodeName)return this.generateTextNode("\n",a);if(0===i.childNodes.length){const t=r?_(Object.assign(Object.assign({},n.supportsHtmlTag(i.nodeName.toLowerCase())?a:{}),{inlineHtml:a.inlineHtml,plainText:$(a.inlineHtml)})):a;return Object.assign({},this.generateTextNode("",t))}}}),nt.registerElementToNodeStrategy(new class extends $t{canHandle(t,e){return t[e].nodeType===Node.TEXT_NODE?1:0}handle(t,e,s){const r=Object.assign({},s),o=!(!e||!1!==e.autoMatchFormat),i=t[0],a=i.parentNode.nodeName.toLowerCase(),l=o&&!n.supportsHtmlTag(a),c=this.generateTextNode(String(i.textContent),o?_(Object.assign(Object.assign({},"span"===a?r:{link:r.link,code:"code"===a?r.code:void 0}),{inlineHtml:r.inlineHtml,plainText:l||void 0})):r);return Object.assign({},c)}});class Gt{static preserve(t){const e=t.replace(/\s+style=/g," data-style=");return new Jt(e)}}class Jt{constructor(t){this.processedHtml=t}getProcessedHtml(){return this.processedHtml}restore(t){this.walkNodes(t)}walkNodes(t){t.forEach((t=>{if(Z(t)){const e=t.getAttribute("data-style");e&&(t.style.cssText=e,t.removeAttribute("data-style")),t.children.length>0&&this.walkNodes(Array.from(t.children))}}))}}class VegaRTEContent{constructor(t){t.forEach((t=>{t.parent=this})),this.children=t}static fromJSON(t,e={autoMatchFormat:!0}){const n=t.map((t=>{const n=U.getRTEBlockClass(t.type);if(n)return n.from(t,e);throw new Error(`[Vega] Unknown block type: ${t.type}`)}));return new VegaRTEContent(n)}static createEmptyContent(t={autoMatchFormat:!0}){return VegaRTEContent.fromJSON([{id:z(),type:"paragraph",annotations:{internalWrapper:!t.autoMatchFormat},nodes:[{id:z(),annotations:{plainText:!t.autoMatchFormat},type:"text",text:""}]}],t)}static fromHtml(t,e={autoMatchFormat:!0,skipCustomAnnotations:!1}){const n=t.replace(/>\s+<\/?/g,(t=>t.endsWith("</")?t:"><")).replace(/(>)[\n\t]+(?=[a-zA-Z0-9_\W])/g,"$1").replace(/([a-zA-Z0-9_\W])[\n\t]+(?=<)/g,"$1"),s=Gt.preserve(n),r=s.getProcessedHtml(),o=(new DOMParser).parseFromString(r,"text/html").body,i=Array.from(o.childNodes);s.restore(i);const a=st.process(i,e).filter($).map((t=>t.toDto(e))).filter($);return new VegaRTEContent(a)}clone(t=!1){return new VegaRTEContent(t?this.children.map((t=>t.clone(this))):[...this.children])}toJSON(){return this.children.map((t=>t.toJSON()))}toHtml(t){return t&&Q.warn("The 'options' parameter in toHtml method is deprecated and will be removed in the future."),this.isEmpty()?"":this.children.map((t=>t.toHtml())).join("")}isEmpty(){return 0===this.children.length||1===this.children.length&&!this.children[0].isNotEmpty()}apply(t){if(r.executeTheStrategy(t,this),t.executedFlag&&t.isFlushable){const t=O.getDOMByEntity(this);t&&G.notify(J.getSubject(t,K),{})}}getLastNode(){return 0===this.children.length?null:this.children[this.children.length-1].getLastNode()}toListItem(t){t.children.map((t=>t.apply(new E)));const e=new RTEListItemBlock(z());return e.apply(new s(t.children)),e.annotationMap=t.annotationMap,e}createList(t){return new RTEListBlock(z(),t)}findNodeById(t){return this.findNodeInBlocksById(t,this.children)}findNodeInBlocksById(t,e){for(const n of e){if("children"in n)for(const e of n.children)if(e.id===t)return e;if(n instanceof RTEListItemBlock&&n.nestList)for(const e of n.nestList){const n=this.findNodeInBlocksById(t,e.children);if(n)return n}if(n instanceof RTEListBlock&&n.children){const e=this.findNodeInBlocksById(t,n.children);if(e)return e}}return null}}r.register(c.DELETE_CHILDREN,VegaRTEContent.name,new P),r.register(c.APPEND_CHILDREN,VegaRTEContent.name,new rt),r.register(c.INSERT_CHILDREN_BEFORE,VegaRTEContent.name,new ot),r.register(c.INSERT_CHILDREN_AFTER,VegaRTEContent.name,new it),r.register(c.TRANSFORM_TO_CODE_BLOCK,VegaRTEContent.name,new class extends t{handleAction(t,e){const n=t.selectedBlocks,s=new x(z(),this.getCodeContent(n),"plainText");e.apply(new g(n[0],s)),t.newCodeBlock=s,this.removeSelectBlocks(n,e)}getCodeContent(t){return t.filter((t=>"image"!==t.type&&"list-item"!==t.type)).map((t=>t.children.map((t=>t.text)).join(""))).join("\n")}removeSelectBlocks(t,e){for(let n=0;n<t.length;n++)e.apply(new p(t[n]))}}),r.register(c.UPDATE_CURSOR_POSITION,VegaRTEContent.name,new class extends t{handleAction(t,e){const{offset:n,nextFocusNode:s,immediatelyRun:r}=t,o=O.getDOMByEntity(e);o&&G.notify(J.getSubject(o,W),{node:s,offset:n,updateDirectly:r})}});const Wt=new class{constructor(){this.RTE_DTO_RENDERER_MAP=new Map,this.RTE_TOOLBAR_BUTTON_RENDERER_MAP=new Map}registerRTEDTORenderer(t,e){const n=this.RTE_DTO_RENDERER_MAP.get(t);if(e&&n&&n.constructor.name!==e.constructor.name)throw new Error(`Renderer for type ${t} is already registered with a different class(${n.constructor.name}).`);this.RTE_DTO_RENDERER_MAP.set(t,e)}registerRTEToolbarButtonRenderer(t,e){this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.set(t,e)}getRTERenderer(t){return this.RTE_DTO_RENDERER_MAP.get(t)}getRTEToolbarButtonRenderer(t){return this.RTE_TOOLBAR_BUTTON_RENDERER_MAP.get(t)}};export{Pt as B,nt as E,lt as I,ct as M,Wt as R,Gt as S,ut as U,VegaRTEContent as V,Rt as a,tt as b,RTEListItemBlock as c,RTEImageBlock as d,RTEListBlock as e,RTEImageNode as f,at as g,Mt as h,st as i}
@@ -1 +0,0 @@
1
- import{b as e,a as t,V as a,c as s,e as n,f as r,g as c,h as o,i,j as g,k as v,l as u,m as l,n as h,o as p,p as d,q as b,r as m,s as w,t as x,u as k,v as f,w as E,x as y,y as S,z as T,A as j,B as A,C as M,E as I,F as O,G as B,H as C,I as N,J as R,K as $,L as D,M as F,N as G,O as H,P as L,Q as q,R as z,S as J,T as K,U as P,W as Q,X as U,Y as V,Z as W,_ as X,$ as Y,a0 as Z,a1 as _}from"./p-8bd496b4.js";import{L as ee}from"./p-6e1ab235.js";const te=new Map([["vega-accordion",[e]],["vega-app-header-button",[t,a,s]],["vega-banner",[n,r]],["vega-breadcrumb",[t]],["vega-button",[t]],["vega-button-circle",[t]],["vega-button-group",[t]],["vega-button-link",[t]],["vega-calendar",[c,o,i,g,v]],["vega-carousel",[u]],["vega-checkbox",[c]],["vega-checkbox-group",[c]],["vega-chip",[n,t]],["vega-code-block",[c,l]],["vega-color-picker",[c]],["vega-combo-box",[c,h,p]],["vega-date-picker",[c,d]],["vega-date-picker-calendar",[b,d,m]],["vega-dropdown",[w,x,a,s,h,k,f]],["vega-dropdown-item",[t]],["vega-field-label",[t,E]],["vega-file-uploader",[c,y,l,S,T]],["vega-form",[j,A,M]],["vega-image-uploader",[c,l,I]],["vega-input",[c,O,B,E,C]],["vega-input-credit-card",[c,B,O]],["vega-input-numeric",[c]],["vega-input-passcode",[c,N]],["vega-input-phone-number",[c,R]],["vega-input-range",[c]],["vega-input-select",[c,p,f,$,D,E]],["vega-item-toggle",[F]],["vega-modal",[G,n]],["vega-left-nav",[H]],["vega-left-nav-group",[L]],["vega-left-nav-link",[q]],["vega-left-nav-section",[z]],["vega-pagination",[c,J]],["vega-popover",[K,P]],["vega-progress-tracker",[Q]],["vega-radio",[c,O,B]],["vega-radio-group",[c]],["vega-rich-text-editor",[c,U]],["vega-rich-text-editor-toolbar-button",[t]],["vega-rich-text-image-editor",[c]],["vega-rich-text-link-editor",[c]],["vega-segment-control",[c]],["vega-selection-chip",[c]],["vega-selection-chip-group",[c]],["vega-selection-tile",[c]],["vega-selection-tile-group",[c]],["vega-sidenav",[H]],["vega-sidenav-link",[t]],["vega-signature-capture",[c]],["vega-stepper",[c]],["vega-tab-group",[t]],["vega-table",[c,V,W,X,Y,Z,_]],["vega-table-head-cell",[t]],["vega-table-row",[t,e]],["vega-textarea",[c,B,E]],["vega-time-picker",[c]],["vega-toggle-switch",[c]]]);class ae{getHostName(){return this.vegaComponentName}getEventName(){return this.eventName}handle(e,t){const a=this.createEventTarget(e);a.style.display="none",e.appendChild(a);const s=this.createEvent(this.eventName);return t&&Object.defineProperty(s,"detail",{configurable:!0,value:t}),a.dispatchEvent(s),a.remove(),s}copyAttributesToTarget(e,t){e&&t&&Array.from(e.attributes).filter((e=>!e.name.startsWith("on"))).forEach((a=>{try{t.setAttribute(a.name,a.value)}catch(t){ee.error(`Delegated strategy copy ${e.tagName} attribute '${a.name}' error.`)}}))}createEvent(e){let t=new Event(e,{bubbles:!0,cancelable:!0});return"click"===e&&(t=new MouseEvent(e,{bubbles:!0,cancelable:!0})),t}}class se extends ae{constructor(){super(...arguments),this.eventName="click",this.vegaComponentName="vega-button"}createEventTarget(e){const t=document.createElement("button");return this.copyAttributesToTarget(e,t),t.type=e.type,t}}class ne extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-checkbox"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="checkbox",t.checked=e.checked,t}}class re extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-input-select"}createEventTarget(e){const t=document.createElement("select");return this.copyAttributesToTarget(e,t),e.value&&(t.value=e.value.toString()),t}}class ce extends ae{constructor(e){super(),this.vegaComponentName="vega-input",this.eventName=e}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type=e.type,t.value=e.value,t}}class oe extends ae{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-radio"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="radio",t.checked=e.checked,t}}class ie extends ae{constructor(){super(...arguments),this.vegaComponentName="vega-textarea",this.eventName="change"}createEventTarget(e){const t=document.createElement("textarea");return this.copyAttributesToTarget(e,t),t.value=e.value,t}}const ge=new class{constructor(){this.strategyRegistry=new Map,this.updateStrategyRegistry([new se,new ce("change"),new ce("focus"),new ce("blur"),new re,new ie,new ne,new oe])}isSupportDelegated(e,t){let a=!1;const s=e.tagName.toLowerCase();return this.strategyRegistry.get(s)&&this.strategyRegistry.get(s).get(t.getNativeName())&&(a=!0),a}updateRegistryFromEventSemantics(e){let t=[];const{global:a,components:s}=e;if(a&&Array.isArray(a.jqueryDelegatedEvent)&&(t=t.concat(a.jqueryDelegatedEvent)),s)for(const e in s)Array.isArray(s[e].jqueryDelegatedEvent)&&(t=t.concat(s[e].jqueryDelegatedEvent));t.length&&this.updateStrategyRegistry(t)}getStrategy(e,t){const a=e.tagName.toLowerCase();if(this.strategyRegistry&&this.strategyRegistry.get(a))return this.strategyRegistry.get(a).get(t.getNativeName())}updateStrategyRegistry(e){e.forEach((e=>{const t=e.getHostName(),a=e.getEventName();if(this.strategyRegistry.get(t))this.strategyRegistry.get(t).set(a,e);else{const s=new Map;s.set(a,e),this.strategyRegistry.set(t,s)}}))}},ve=new class{constructor(){this.config={},this.defaultEventSemantics={namespace:"vega"}}setSemantics(e){this.config=e,ge.updateRegistryFromEventSemantics(e)}getSemantics(e){return Object.assign({},this.defaultEventSemantics,this.getSemanticsInGlobal(),this.getSemanticsInComponents(e))}getEnabledEventIdsByComponent(e){return te.get(e)}getSemanticsInGlobal(){return this.config.global}getSemanticsInComponents(e){const t=e.tagName.toLocaleLowerCase();return this.config.components&&Object.prototype.hasOwnProperty.call(this.config.components,t)?this.config.components[t]:null}};export{ae as B,ve as i,ge as j}