@globalpayments/vega 2.65.0 → 2.66.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 (361) hide show
  1. package/dist/cjs/{app-globals-681a0ed4.js → app-globals-ab28f910.js} +6 -6
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-feb072c4.js → child-nodes-event-prevent-slimmer-eb803b14.js} +1 -1
  3. package/dist/cjs/{code-block-961d54e8.js → code-block-ab97a0a0.js} +12 -15
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-c5b8b47b.js → component-value-history-controller-slimmer.abstract-5630341e.js} +4 -4
  5. package/dist/cjs/{design-token-98652b67.js → design-token-847739f1.js} +1 -1
  6. package/dist/cjs/{dom-node-subject-observer-factory-56609e5a.js → dom-node-subject-observer-factory-f040608b.js} +5 -1
  7. package/dist/cjs/{dto-renderer-manager-4b9d2560.js → dto-renderer-manager-d0f0f2c0.js} +18 -33
  8. package/dist/cjs/{element-appender-slimmer-1f46981b.js → element-appender-slimmer-aead9bbb.js} +3 -3
  9. package/dist/cjs/{event-emit-slimmer-3cefb326.js → event-emit-slimmer-d21a0935.js} +2 -2
  10. package/dist/cjs/{form-field-controller-slimmer-1e1123ea.js → form-field-controller-slimmer-2a091912.js} +2 -2
  11. package/dist/cjs/{image-annotation-action-03b36f68.js → image-annotation-action-d84de785.js} +3 -3
  12. package/dist/cjs/{index-f2fe26a0.js → index-4b896e76.js} +1 -1
  13. package/dist/cjs/index-58ea899e.js +4 -0
  14. package/dist/cjs/index.cjs.js +11 -11
  15. package/dist/cjs/{inject-keyboard-manager-51033b3f.js → inject-keyboard-manager-13c66257.js} +1 -1
  16. package/dist/cjs/{internal-vega-event-manager-9b503f1a.js → internal-vega-event-manager-4d1ce667.js} +3 -2
  17. package/dist/cjs/{keyboard-manager-144907d7.js → keyboard-manager-af0d08a6.js} +7 -1
  18. package/dist/cjs/{keyboard-manager-slimmer-04c48756.js → keyboard-manager-slimmer-62f072cd.js} +1 -1
  19. package/dist/cjs/{language-extension-059d62f6.js → language-extension-d257e65d.js} +2 -2
  20. package/dist/cjs/loader.cjs.js +9 -9
  21. package/dist/cjs/{public-rules-58e0218b.js → public-rules-d2b9b8f0.js} +4 -4
  22. package/dist/cjs/{range-42732973.js → range-d610028e.js} +1 -1
  23. package/dist/cjs/{responsive-format-facade-29070d00.js → responsive-format-facade-71e7b74c.js} +3 -3
  24. package/dist/cjs/{rich-text-editor-required-rule-ce4dd5fb.js → rich-text-editor-required-rule-a8fe5f50.js} +1 -1
  25. package/dist/cjs/{string-input-formatter-slimmer-0d69ea76.js → string-input-formatter-slimmer-8236b5e1.js} +2 -2
  26. package/dist/cjs/{style-formatter-f6723cb3.js → style-formatter-6facb42b.js} +1 -1
  27. package/dist/cjs/{sub-state-notify-slimmer-066f2aa9.js → sub-state-notify-slimmer-78682046.js} +1 -1
  28. package/dist/cjs/{sub-state-observer-slimmer-569e3297.js → sub-state-observer-slimmer-73aecfff.js} +1 -1
  29. package/dist/cjs/{token-extension-260adb8a.js → token-extension-aa8d5cce.js} +7 -6
  30. package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
  31. package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
  32. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  33. package/dist/cjs/vega-box.cjs.entry.js +8 -8
  34. package/dist/cjs/vega-breadcrumb.cjs.entry.js +29 -14
  35. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  36. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  37. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  38. package/dist/cjs/vega-button.cjs.entry.js +8 -8
  39. package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
  40. package/dist/cjs/vega-card.cjs.entry.js +7 -7
  41. package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
  42. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  43. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  44. package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
  45. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  46. package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
  47. package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
  48. package/dist/cjs/vega-dialog_2.cjs.entry.js +9 -9
  49. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-dropdown_5.cjs.entry.js +13 -13
  51. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  52. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
  54. package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
  55. package/dist/cjs/vega-flex.cjs.entry.js +8 -8
  56. package/dist/cjs/vega-font.cjs.entry.js +7 -7
  57. package/dist/cjs/vega-form.cjs.entry.js +70 -12
  58. package/dist/cjs/vega-grid.cjs.entry.js +7 -7
  59. package/dist/cjs/vega-icon.cjs.entry.js +7 -7
  60. package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
  61. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  62. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  63. package/dist/cjs/vega-input-passcode.cjs.entry.js +724 -0
  64. package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
  65. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  66. package/dist/cjs/vega-input-select.cjs.entry.js +10 -10
  67. package/dist/cjs/vega-input.cjs.entry.js +23 -8
  68. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  69. package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
  71. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  72. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  73. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  74. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  75. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  76. package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-radio_2.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
  79. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +16 -16
  80. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  81. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -11
  82. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  83. package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
  84. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  85. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  86. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  87. package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
  88. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  89. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  90. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  91. package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
  92. package/dist/cjs/vega.cjs.js +9 -9
  93. package/dist/collection/collection-manifest.json +6 -0
  94. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +1 -1
  95. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +12 -8
  96. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +6 -6
  97. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +32 -0
  98. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-submit-controller.js +62 -5
  99. package/dist/collection/components/vega-input/vega-input.js +72 -5
  100. package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.js +101 -0
  101. package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.js +115 -0
  102. package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +166 -0
  103. package/dist/collection/components/vega-input-passcode/vega-input-passcode.css +90 -0
  104. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +513 -0
  105. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +1 -1
  106. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -2
  107. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +3 -2
  108. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +3 -7
  109. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +3 -7
  110. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +4 -12
  111. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -7
  112. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +1 -1
  113. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +3 -2
  114. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
  115. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -2
  116. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +3 -2
  117. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +2 -2
  118. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +4 -0
  119. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +1 -1
  120. package/dist/collection/constants/ui.js +2 -0
  121. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -2
  122. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +3 -1
  123. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +2 -1
  124. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
  125. package/dist/collection/helpers/immutable/immutable-array.js +133 -0
  126. package/dist/collection/helpers/immutable/test/immutable-array.test.js +78 -0
  127. package/dist/collection/helpers/keyboard/keyboard-manager.js +7 -1
  128. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +4 -0
  129. package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
  130. package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
  131. package/dist/esm/{app-globals-1bacb762.js → app-globals-37a60cc1.js} +6 -6
  132. package/dist/esm/{child-nodes-event-prevent-slimmer-f32efdee.js → child-nodes-event-prevent-slimmer-735cb880.js} +1 -1
  133. package/dist/esm/{code-block-cb657afd.js → code-block-11b2bc1c.js} +12 -15
  134. package/dist/esm/{component-value-history-controller-slimmer.abstract-65a83eaf.js → component-value-history-controller-slimmer.abstract-16c5cb96.js} +4 -4
  135. package/dist/esm/{design-token-3889675a.js → design-token-297dc528.js} +1 -1
  136. package/dist/esm/{dom-node-subject-observer-factory-ed4b89f4.js → dom-node-subject-observer-factory-dca87b70.js} +4 -2
  137. package/dist/esm/{dto-renderer-manager-8cac8f0f.js → dto-renderer-manager-a1a3b6d2.js} +18 -33
  138. package/dist/esm/{element-appender-slimmer-31b21e1b.js → element-appender-slimmer-f7233708.js} +3 -3
  139. package/dist/esm/{event-emit-slimmer-000ca6a7.js → event-emit-slimmer-28fd360c.js} +2 -2
  140. package/dist/esm/{form-field-controller-slimmer-24dbc255.js → form-field-controller-slimmer-b23d9ff3.js} +2 -2
  141. package/dist/esm/{image-annotation-action-59ea166c.js → image-annotation-action-fc46c920.js} +3 -3
  142. package/dist/esm/index-090d31ca.js +4 -0
  143. package/dist/esm/{index-50b32f3d.js → index-c943d263.js} +1 -1
  144. package/dist/esm/index.js +11 -11
  145. package/dist/esm/{inject-keyboard-manager-f7d92809.js → inject-keyboard-manager-ffd351b9.js} +1 -1
  146. package/dist/esm/{internal-vega-event-manager-13e3ed3d.js → internal-vega-event-manager-a5a5938d.js} +3 -2
  147. package/dist/esm/{keyboard-manager-f4bbc452.js → keyboard-manager-5d8f3582.js} +7 -1
  148. package/dist/esm/{keyboard-manager-slimmer-a02cbc5f.js → keyboard-manager-slimmer-f39214e4.js} +1 -1
  149. package/dist/esm/{language-extension-038014ac.js → language-extension-314a2b18.js} +2 -2
  150. package/dist/esm/loader.js +9 -9
  151. package/dist/esm/{public-rules-a42e6f59.js → public-rules-c6a6946d.js} +4 -4
  152. package/dist/esm/{range-c08d8de1.js → range-b78254de.js} +1 -1
  153. package/dist/esm/{responsive-format-facade-d8ccc742.js → responsive-format-facade-a41e1be7.js} +3 -3
  154. package/dist/esm/{rich-text-editor-required-rule-3a8f319c.js → rich-text-editor-required-rule-d50c24da.js} +1 -1
  155. package/dist/esm/{string-input-formatter-slimmer-c64c7855.js → string-input-formatter-slimmer-3acd240c.js} +2 -2
  156. package/dist/esm/{style-formatter-ab6a9248.js → style-formatter-f7effaac.js} +1 -1
  157. package/dist/esm/{sub-state-notify-slimmer-8b3b15ee.js → sub-state-notify-slimmer-56380f02.js} +1 -1
  158. package/dist/esm/{sub-state-observer-slimmer-2b98e2c9.js → sub-state-observer-slimmer-3504e2f2.js} +1 -1
  159. package/dist/esm/{token-extension-f5bf06a5.js → token-extension-b690953f.js} +7 -6
  160. package/dist/esm/vega-accordion.entry.js +8 -8
  161. package/dist/esm/vega-app-header-button.entry.js +9 -9
  162. package/dist/esm/vega-banner.entry.js +3 -3
  163. package/dist/esm/vega-box.entry.js +8 -8
  164. package/dist/esm/vega-breadcrumb.entry.js +29 -14
  165. package/dist/esm/vega-button-circle.entry.js +9 -9
  166. package/dist/esm/vega-button-group_2.entry.js +6 -6
  167. package/dist/esm/vega-button-link.entry.js +4 -4
  168. package/dist/esm/vega-button.entry.js +8 -8
  169. package/dist/esm/vega-calendar_4.entry.js +6 -6
  170. package/dist/esm/vega-card.entry.js +7 -7
  171. package/dist/esm/vega-carousel.entry.js +7 -7
  172. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  173. package/dist/esm/vega-chip.entry.js +9 -9
  174. package/dist/esm/vega-code-block.entry.js +9 -9
  175. package/dist/esm/vega-color-picker.entry.js +5 -5
  176. package/dist/esm/vega-combo-box.entry.js +8 -8
  177. package/dist/esm/vega-date-picker_2.entry.js +15 -15
  178. package/dist/esm/vega-dialog_2.entry.js +9 -9
  179. package/dist/esm/vega-divider.entry.js +7 -7
  180. package/dist/esm/vega-dropdown_5.entry.js +13 -13
  181. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  182. package/dist/esm/vega-field-label.entry.js +3 -3
  183. package/dist/esm/vega-file-uploader.entry.js +5 -5
  184. package/dist/esm/vega-flag-icon.entry.js +7 -7
  185. package/dist/esm/vega-flex.entry.js +8 -8
  186. package/dist/esm/vega-font.entry.js +7 -7
  187. package/dist/esm/vega-form.entry.js +70 -12
  188. package/dist/esm/vega-grid.entry.js +7 -7
  189. package/dist/esm/vega-icon.entry.js +7 -7
  190. package/dist/esm/vega-image-uploader.entry.js +10 -10
  191. package/dist/esm/vega-input-credit-card.entry.js +6 -6
  192. package/dist/esm/vega-input-numeric.entry.js +9 -9
  193. package/dist/esm/vega-input-passcode.entry.js +720 -0
  194. package/dist/esm/vega-input-phone-number.entry.js +9 -9
  195. package/dist/esm/vega-input-range.entry.js +6 -6
  196. package/dist/esm/vega-input-select.entry.js +10 -10
  197. package/dist/esm/vega-input.entry.js +23 -8
  198. package/dist/esm/vega-item-toggle.entry.js +3 -3
  199. package/dist/esm/vega-left-nav_5.entry.js +10 -10
  200. package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
  201. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  202. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  203. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  204. package/dist/esm/vega-pagination.entry.js +8 -8
  205. package/dist/esm/vega-popover_2.entry.js +11 -11
  206. package/dist/esm/vega-progress-tracker.entry.js +3 -3
  207. package/dist/esm/vega-radio_2.entry.js +8 -8
  208. package/dist/esm/vega-rich-text-content.entry.js +6 -6
  209. package/dist/esm/vega-rich-text-editor_4.entry.js +16 -16
  210. package/dist/esm/vega-segment-control.entry.js +3 -3
  211. package/dist/esm/vega-selection-chip_2.entry.js +11 -11
  212. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  213. package/dist/esm/vega-sidenav_3.entry.js +9 -9
  214. package/dist/esm/vega-signature-capture.entry.js +10 -10
  215. package/dist/esm/vega-stepper.entry.js +6 -6
  216. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  217. package/dist/esm/vega-table_8.entry.js +10 -10
  218. package/dist/esm/vega-textarea.entry.js +6 -6
  219. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  220. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  221. package/dist/esm/vega-tooltip_2.entry.js +9 -9
  222. package/dist/esm/vega.js +9 -9
  223. package/dist/sri/vega-sri-manifest.json +298 -294
  224. package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +2 -1
  225. package/dist/types/components/vega-breadcrumb/types.d.ts +1 -1
  226. package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +11 -0
  227. package/dist/types/components/vega-form/slimmers/controllers/vega-form-submit-controller.d.ts +17 -0
  228. package/dist/types/components/vega-input/types.d.ts +65 -0
  229. package/dist/types/components/vega-input/vega-input.d.ts +17 -2
  230. package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.d.ts +25 -0
  231. package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.d.ts +47 -0
  232. package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +29 -0
  233. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +135 -0
  234. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -1
  235. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -1
  236. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -1
  237. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -1
  238. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -1
  239. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -1
  240. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -1
  241. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -1
  242. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -1
  243. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +2 -1
  244. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +1 -1
  245. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -1
  246. package/dist/types/components.d.ts +173 -3
  247. package/dist/types/constants/ui.d.ts +1 -1
  248. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
  249. package/dist/types/helpers/immutable/immutable-array.d.ts +86 -0
  250. package/dist/types/helpers/immutable/immutable-map.d.ts +1 -1
  251. package/dist/types/helpers/immutable/immutable.d.ts +1 -0
  252. package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +1 -0
  253. package/dist/types/types/components.type.d.ts +7 -1
  254. package/dist/vega/index.esm.js +1 -1
  255. package/dist/vega/{p-6a4db686.entry.js → p-00071542.entry.js} +1 -1
  256. package/dist/vega/p-0113a83c.entry.js +1 -0
  257. package/dist/vega/{p-5e1c913d.entry.js → p-015cdbe7.entry.js} +1 -1
  258. package/dist/vega/p-019f7f95.js +1 -0
  259. package/dist/vega/{p-c12000ee.entry.js → p-03a1e82e.entry.js} +1 -1
  260. package/dist/vega/p-0d1eca78.entry.js +1 -0
  261. package/dist/vega/{p-74e684fc.entry.js → p-0ed53cce.entry.js} +1 -1
  262. package/dist/vega/{p-bc9484a6.js → p-129c0ce1.js} +1 -1
  263. package/dist/vega/p-16370cfb.js +1 -0
  264. package/dist/vega/p-19522949.js +1 -0
  265. package/dist/vega/{p-1f061725.entry.js → p-1a3cb65e.entry.js} +1 -1
  266. package/dist/vega/{p-85ad1c21.entry.js → p-2553031f.entry.js} +1 -1
  267. package/dist/vega/{p-c1fa6088.entry.js → p-276b1163.entry.js} +1 -1
  268. package/dist/vega/{p-9e6db93d.entry.js → p-2d430dc4.entry.js} +1 -1
  269. package/dist/vega/{p-299e14b4.entry.js → p-3288a65b.entry.js} +1 -1
  270. package/dist/vega/p-34800282.entry.js +1 -0
  271. package/dist/vega/{p-ebfc4323.entry.js → p-358e9800.entry.js} +1 -1
  272. package/dist/vega/{p-b4c25109.js → p-3925c16b.js} +1 -1
  273. package/dist/vega/{p-3b953a24.entry.js → p-39b9c57b.entry.js} +1 -1
  274. package/dist/vega/{p-63596567.entry.js → p-3a7f177a.entry.js} +1 -1
  275. package/dist/vega/p-41c3fcb4.js +1 -0
  276. package/dist/vega/p-447c7590.js +1 -0
  277. package/dist/vega/p-46830028.entry.js +1 -0
  278. package/dist/vega/p-47cae62d.entry.js +1 -0
  279. package/dist/vega/{p-228de113.js → p-47fa359b.js} +1 -1
  280. package/dist/vega/{p-c8a3fb7f.entry.js → p-4e33fff6.entry.js} +1 -1
  281. package/dist/vega/{p-63a5bbf4.entry.js → p-524693d8.entry.js} +1 -1
  282. package/dist/vega/{p-378e5881.js → p-54b62ecf.js} +1 -1
  283. package/dist/vega/{p-5cdcd08f.entry.js → p-59298f5e.entry.js} +1 -1
  284. package/dist/vega/{p-6f96dd01.entry.js → p-5a0524ab.entry.js} +1 -1
  285. package/dist/vega/{p-185dfdd4.entry.js → p-5e32866d.entry.js} +1 -1
  286. package/dist/vega/p-5f377954.js +1 -1
  287. package/dist/vega/{p-6d371296.entry.js → p-5f58d1da.entry.js} +1 -1
  288. package/dist/vega/{p-8a5c123f.entry.js → p-616cd622.entry.js} +1 -1
  289. package/dist/vega/{p-b68a13df.entry.js → p-65693321.entry.js} +1 -1
  290. package/dist/vega/p-67f159c3.js +1 -0
  291. package/dist/vega/{p-2f4f3744.entry.js → p-6f6ccf67.entry.js} +1 -1
  292. package/dist/vega/{p-ae598946.entry.js → p-6f7d42a0.entry.js} +1 -1
  293. package/dist/vega/{p-2033f86e.js → p-725f0a2c.js} +1 -1
  294. package/dist/vega/{p-833d81d0.entry.js → p-74d61782.entry.js} +1 -1
  295. package/dist/vega/{p-053eb64a.js → p-7b145620.js} +1 -1
  296. package/dist/vega/{p-5d36cc3f.entry.js → p-7c1d08db.entry.js} +1 -1
  297. package/dist/vega/{p-33c6fb3f.entry.js → p-7efb5ebe.entry.js} +1 -1
  298. package/dist/vega/{p-fee972e6.entry.js → p-7f69081b.entry.js} +1 -1
  299. package/dist/vega/{p-12d4488b.entry.js → p-7f9ec104.entry.js} +1 -1
  300. package/dist/vega/p-81105691.entry.js +1 -0
  301. package/dist/vega/p-822c6092.js +1 -0
  302. package/dist/vega/{p-7c594a9f.js → p-8350506e.js} +1 -1
  303. package/dist/vega/{p-99b1492c.js → p-85f9a980.js} +1 -1
  304. package/dist/vega/{p-d418ecc1.entry.js → p-892cbe7c.entry.js} +1 -1
  305. package/dist/vega/{p-78d607ca.entry.js → p-8d096fea.entry.js} +1 -1
  306. package/dist/vega/{p-fbc85265.entry.js → p-8d574fbd.entry.js} +1 -1
  307. package/dist/vega/{p-1eb5b772.entry.js → p-8d655fd2.entry.js} +1 -1
  308. package/dist/vega/p-8edf3513.js +1 -0
  309. package/dist/vega/{p-5f854901.entry.js → p-92a22562.entry.js} +1 -1
  310. package/dist/vega/{p-43257678.js → p-9fb6fbcc.js} +1 -1
  311. package/dist/vega/{p-cef9f638.js → p-a0467b83.js} +1 -1
  312. package/dist/vega/{p-3494a5f1.entry.js → p-a1b7a179.entry.js} +1 -1
  313. package/dist/vega/{p-c241f615.js → p-a7631c6b.js} +1 -1
  314. package/dist/vega/{p-0685cba6.entry.js → p-ab1001f5.entry.js} +1 -1
  315. package/dist/vega/{p-1f43f551.entry.js → p-ab8f99e9.entry.js} +1 -1
  316. package/dist/vega/{p-9439077d.entry.js → p-ad5393f0.entry.js} +1 -1
  317. package/dist/vega/{p-840c09c7.js → p-af5bfe34.js} +1 -1
  318. package/dist/vega/{p-ab3c4b43.entry.js → p-b2aaab66.entry.js} +1 -1
  319. package/dist/vega/{p-a69c9e42.entry.js → p-b431f9d5.entry.js} +1 -1
  320. package/dist/vega/{p-cf211582.entry.js → p-b82d3915.entry.js} +1 -1
  321. package/dist/vega/p-bee1cc34.entry.js +1 -0
  322. package/dist/vega/{p-901ff5d3.js → p-bf7f755b.js} +1 -1
  323. package/dist/vega/p-bf9476cd.entry.js +1 -0
  324. package/dist/vega/{p-676bee73.entry.js → p-c1da8328.entry.js} +1 -1
  325. package/dist/vega/{p-45ead9fe.js → p-c6ce2869.js} +1 -1
  326. package/dist/vega/{p-59d70a67.entry.js → p-cc519f53.entry.js} +1 -1
  327. package/dist/vega/{p-c96d28dc.entry.js → p-d006e732.entry.js} +1 -1
  328. package/dist/vega/p-d0e6454e.entry.js +1 -0
  329. package/dist/vega/{p-f83739d0.entry.js → p-d1dacaeb.entry.js} +1 -1
  330. package/dist/vega/{p-13c6a04c.entry.js → p-d4452dbc.entry.js} +1 -1
  331. package/dist/vega/{p-dabba918.entry.js → p-d5761532.entry.js} +1 -1
  332. package/dist/vega/{p-199dc74b.js → p-d88e88a7.js} +1 -1
  333. package/dist/vega/{p-303efbfe.entry.js → p-de624f7d.entry.js} +1 -1
  334. package/dist/vega/{p-dc92fec6.js → p-e6cccee4.js} +1 -1
  335. package/dist/vega/{p-9d492a46.entry.js → p-ea05a2fc.entry.js} +1 -1
  336. package/dist/vega/p-ed8bc4f0.entry.js +1 -0
  337. package/dist/vega/{p-64c3d021.js → p-f360c9ba.js} +1 -1
  338. package/dist/vega/{p-c682d53c.entry.js → p-fc8c5869.entry.js} +1 -1
  339. package/dist/vega/{p-fddca002.js → p-fde50319.js} +1 -1
  340. package/dist/vega/{p-ba24f7b9.entry.js → p-fe2e859f.entry.js} +1 -1
  341. package/dist/vega/{p-a61e2108.entry.js → p-fef846d5.entry.js} +1 -1
  342. package/dist/vega/{p-d3137a6e.entry.js → p-ff3bb4e2.entry.js} +1 -1
  343. package/dist/vega/vega.esm.js +1 -1
  344. package/package.json +1 -1
  345. package/dist/vega/p-050bb2ad.entry.js +0 -1
  346. package/dist/vega/p-1bd5d806.entry.js +0 -1
  347. package/dist/vega/p-24cb0a7e.js +0 -1
  348. package/dist/vega/p-2d91799a.entry.js +0 -1
  349. package/dist/vega/p-33837794.entry.js +0 -1
  350. package/dist/vega/p-39b4c838.js +0 -1
  351. package/dist/vega/p-3c21b875.js +0 -1
  352. package/dist/vega/p-5e2ef0b8.entry.js +0 -1
  353. package/dist/vega/p-5fec05a2.js +0 -1
  354. package/dist/vega/p-651fe4fc.js +0 -1
  355. package/dist/vega/p-852fa2d2.entry.js +0 -1
  356. package/dist/vega/p-a082d41b.entry.js +0 -1
  357. package/dist/vega/p-a4912b85.js +0 -1
  358. package/dist/vega/p-b510e4d7.js +0 -1
  359. package/dist/vega/p-d5d6dae6.js +0 -1
  360. package/dist/vega/p-e853105a.entry.js +0 -1
  361. package/dist/vega/p-fbd38139.entry.js +0 -1
@@ -35,7 +35,7 @@ import { VegaCountryCode } from "./types/flag.type";
35
35
  import { VegaFontAs } from "./components/vega-font/types";
36
36
  import { FormControlOption, FormValidateResult, VegaFormFieldValidationState } from "./components/vega-form/types";
37
37
  import { VegaFile, VegaFileOptional, VegaImageUploaderStatus } from "./components/vega-image-uploader/types";
38
- import { InputType, InputValueUpdateTriggeredBy, MaskConfigType } from "./components/vega-input/types";
38
+ import { DataTransferType, InputAutocompleteTypes, InputType, InputValueUpdateTriggeredBy, MaskConfigType } from "./components/vega-input/types";
39
39
  import { FormFieldValidationRule as FormFieldValidationRule1 } from "./types/components.type";
40
40
  import { VegaCountryType } from "./components/vega-input-phone-number/types";
41
41
  import { InputRangeStackType, InputRangeValueType } from "./components/vega-input-range/types";
@@ -435,6 +435,11 @@ export namespace Components {
435
435
  "theme": 'auto' | 'light' | 'dark';
436
436
  }
437
437
  interface VegaBreadcrumb {
438
+ /**
439
+ * Compact mode toggle for mobile viewport. When `true` (default), the breadcrumb displays only the last clickable item on mobile devices to save horizontal space. When `false`, the full multi-item layout is shown on mobile, identical to desktop behavior (still subject to collapsing based on `maxItems`).
440
+ * @vegaVersion 2.66.0
441
+ */
442
+ "compactOnMobile": boolean;
438
443
  /**
439
444
  * Represents the individual elements within the `vega-breadcrumb` component.
440
445
  * @vegaVersion 1.41.0
@@ -1926,7 +1931,7 @@ export namespace Components {
1926
1931
  * Controls the autofill behavior and specifies whether the input should receive automated suggestions or previously entered values.
1927
1932
  * @vegaVersion 1.0.5
1928
1933
  */
1929
- "autocomplete": 'on' | 'off';
1934
+ "autocomplete": InputAutocompleteTypes;
1930
1935
  /**
1931
1936
  * Controls whether copying or pasting is enabled for the input.
1932
1937
  * @vegaVersion 2.1.0
@@ -2208,6 +2213,63 @@ export namespace Components {
2208
2213
  */
2209
2214
  "value": string;
2210
2215
  }
2216
+ interface VegaInputPasscode {
2217
+ /**
2218
+ * Determines whether the input passcode should undergo automatic validation during the user's input.
2219
+ * @vegaVersion 2.66.0
2220
+ */
2221
+ "autoValidation": boolean;
2222
+ /**
2223
+ * Determines whether the input passcode is disabled.
2224
+ * @vegaVersion 2.66.0
2225
+ */
2226
+ "disabled": boolean;
2227
+ /**
2228
+ * Provides a supplementary prompt message that assists users in understanding the expected value for the input passcode.
2229
+ * @vegaVersion 2.66.0
2230
+ */
2231
+ "hint": string;
2232
+ /**
2233
+ * Specifies the input type of the input passcode Numeric type: only 0-9 are accepted Text type: any non-space character is accepted Spaces are rejected for all types
2234
+ * @vegaVersion 2.66.0
2235
+ */
2236
+ "inputType": 'numeric' | 'text';
2237
+ /**
2238
+ * Specifies the validation status of the input passcode.
2239
+ * @vegaVersion 2.66.0
2240
+ */
2241
+ "isValid": boolean | null;
2242
+ /**
2243
+ * Specifies the label or title for the input passcode. It provides descriptive text that helps identify the purpose or content expected in the input passcode.
2244
+ * @vegaVersion 2.66.0
2245
+ */
2246
+ "label": string;
2247
+ /**
2248
+ * Specifies the number of input boxes to display.
2249
+ * @vegaVersion 2.66.0
2250
+ */
2251
+ "length": number;
2252
+ /**
2253
+ * Determines whether the input passcode field is required.
2254
+ * @vegaVersion 2.66.0
2255
+ */
2256
+ "required": boolean;
2257
+ /**
2258
+ * Defines the size of the input passcode, specifying its width or length.
2259
+ * @vegaVersion 2.66.0
2260
+ */
2261
+ "size": 'medium' | 'small';
2262
+ /**
2263
+ * Defines custom validation rules for the input passcode.
2264
+ * @vegaVersion 2.66.0
2265
+ */
2266
+ "validationRules": FormFieldValidationRule<unknown>[];
2267
+ /**
2268
+ * Specifies the value of the input passcode.
2269
+ * @vegaVersion 2.66.0
2270
+ */
2271
+ "value": string;
2272
+ }
2211
2273
  interface VegaInputPhoneNumber {
2212
2274
  /**
2213
2275
  * Specifies the countries available for selection. Note: By default, 245 codes are provided, but loading all of them may take time. To improve performance, it is recommended to include only the necessary codes.
@@ -4420,6 +4482,10 @@ export interface VegaInputNumericCustomEvent<T> extends CustomEvent<T> {
4420
4482
  detail: T;
4421
4483
  target: HTMLVegaInputNumericElement;
4422
4484
  }
4485
+ export interface VegaInputPasscodeCustomEvent<T> extends CustomEvent<T> {
4486
+ detail: T;
4487
+ target: HTMLVegaInputPasscodeElement;
4488
+ }
4423
4489
  export interface VegaInputPhoneNumberCustomEvent<T> extends CustomEvent<T> {
4424
4490
  detail: T;
4425
4491
  target: HTMLVegaInputPhoneNumberElement;
@@ -4851,6 +4917,12 @@ declare global {
4851
4917
  prototype: HTMLVegaInputNumericElement;
4852
4918
  new (): HTMLVegaInputNumericElement;
4853
4919
  };
4920
+ interface HTMLVegaInputPasscodeElement extends Components.VegaInputPasscode, HTMLStencilElement {
4921
+ }
4922
+ var HTMLVegaInputPasscodeElement: {
4923
+ prototype: HTMLVegaInputPasscodeElement;
4924
+ new (): HTMLVegaInputPasscodeElement;
4925
+ };
4854
4926
  interface HTMLVegaInputPhoneNumberElement extends Components.VegaInputPhoneNumber, HTMLStencilElement {
4855
4927
  }
4856
4928
  var HTMLVegaInputPhoneNumberElement: {
@@ -5261,6 +5333,7 @@ declare global {
5261
5333
  "vega-input": HTMLVegaInputElement;
5262
5334
  "vega-input-credit-card": HTMLVegaInputCreditCardElement;
5263
5335
  "vega-input-numeric": HTMLVegaInputNumericElement;
5336
+ "vega-input-passcode": HTMLVegaInputPasscodeElement;
5264
5337
  "vega-input-phone-number": HTMLVegaInputPhoneNumberElement;
5265
5338
  "vega-input-range": HTMLVegaInputRangeElement;
5266
5339
  "vega-input-select": HTMLVegaInputSelectElement;
@@ -5749,6 +5822,11 @@ declare namespace LocalJSX {
5749
5822
  "theme"?: 'auto' | 'light' | 'dark';
5750
5823
  }
5751
5824
  interface VegaBreadcrumb {
5825
+ /**
5826
+ * Compact mode toggle for mobile viewport. When `true` (default), the breadcrumb displays only the last clickable item on mobile devices to save horizontal space. When `false`, the full multi-item layout is shown on mobile, identical to desktop behavior (still subject to collapsing based on `maxItems`).
5827
+ * @vegaVersion 2.66.0
5828
+ */
5829
+ "compactOnMobile"?: boolean;
5752
5830
  /**
5753
5831
  * Represents the individual elements within the `vega-breadcrumb` component.
5754
5832
  * @vegaVersion 1.41.0
@@ -7599,7 +7677,7 @@ declare namespace LocalJSX {
7599
7677
  * Controls the autofill behavior and specifies whether the input should receive automated suggestions or previously entered values.
7600
7678
  * @vegaVersion 1.0.5
7601
7679
  */
7602
- "autocomplete"?: 'on' | 'off';
7680
+ "autocomplete"?: InputAutocompleteTypes;
7603
7681
  /**
7604
7682
  * Controls whether copying or pasting is enabled for the input.
7605
7683
  * @vegaVersion 2.1.0
@@ -7690,6 +7768,12 @@ declare namespace LocalJSX {
7690
7768
  * @vegaVersion 2.25.0
7691
7769
  */
7692
7770
  "onLabelButtonClick"?: (event: VegaInputCustomEvent<any>) => void;
7771
+ /**
7772
+ * An event emitter notifying the paste of the inner input element.
7773
+ * @eventSemantics namespace:native
7774
+ * @vegaVersion 2.66.0
7775
+ */
7776
+ "onPaste"?: (event: VegaInputCustomEvent<DataTransferType>) => void;
7693
7777
  /**
7694
7778
  * An event emitter notifying the blur of the inner input element.
7695
7779
  * @vegaVersion 1.3.0
@@ -7710,6 +7794,11 @@ declare namespace LocalJSX {
7710
7794
  * @vegaVersion 2.25.0
7711
7795
  */
7712
7796
  "onVegaLabelButtonClick"?: (event: VegaInputCustomEvent<any>) => void;
7797
+ /**
7798
+ * An event emitter notifying the paste of the inner input element.
7799
+ * @vegaVersion 2.66.0
7800
+ */
7801
+ "onVegaPaste"?: (event: VegaInputCustomEvent<DataTransferType>) => void;
7713
7802
  /**
7714
7803
  * Specifies a placeholder string that displays as a temporary hint or example inside the input field. It indicates the expected format or pattern of the input.
7715
7804
  * @vegaVersion 1.3.0
@@ -7959,6 +8048,85 @@ declare namespace LocalJSX {
7959
8048
  */
7960
8049
  "value"?: string;
7961
8050
  }
8051
+ interface VegaInputPasscode {
8052
+ /**
8053
+ * Determines whether the input passcode should undergo automatic validation during the user's input.
8054
+ * @vegaVersion 2.66.0
8055
+ */
8056
+ "autoValidation"?: boolean;
8057
+ /**
8058
+ * Determines whether the input passcode is disabled.
8059
+ * @vegaVersion 2.66.0
8060
+ */
8061
+ "disabled"?: boolean;
8062
+ /**
8063
+ * Provides a supplementary prompt message that assists users in understanding the expected value for the input passcode.
8064
+ * @vegaVersion 2.66.0
8065
+ */
8066
+ "hint"?: string;
8067
+ /**
8068
+ * Specifies the input type of the input passcode Numeric type: only 0-9 are accepted Text type: any non-space character is accepted Spaces are rejected for all types
8069
+ * @vegaVersion 2.66.0
8070
+ */
8071
+ "inputType"?: 'numeric' | 'text';
8072
+ /**
8073
+ * Specifies the validation status of the input passcode.
8074
+ * @vegaVersion 2.66.0
8075
+ */
8076
+ "isValid"?: boolean | null;
8077
+ /**
8078
+ * Specifies the label or title for the input passcode. It provides descriptive text that helps identify the purpose or content expected in the input passcode.
8079
+ * @vegaVersion 2.66.0
8080
+ */
8081
+ "label"?: string;
8082
+ /**
8083
+ * Specifies the number of input boxes to display.
8084
+ * @vegaVersion 2.66.0
8085
+ */
8086
+ "length"?: number;
8087
+ /**
8088
+ * An event emitter notifying the change of the value in the input passcode, whether triggered programmatically or through user interaction.
8089
+ * @eventSemantics namespace:native
8090
+ * @vegaVersion 2.66.0
8091
+ */
8092
+ "onChange"?: (event: VegaInputPasscodeCustomEvent<string>) => void;
8093
+ /**
8094
+ * An event emitter notifying the completion of all input passcode boxes. whether triggered programmatically or through user interaction.
8095
+ * @eventSemantics namespace:native
8096
+ * @vegaVersion 2.66.0
8097
+ */
8098
+ "onComplete"?: (event: VegaInputPasscodeCustomEvent<string>) => void;
8099
+ /**
8100
+ * An event emitter notifying the change of the value in the input passcode, whether triggered programmatically or through user interaction.
8101
+ * @vegaVersion 2.66.0
8102
+ */
8103
+ "onVegaChange"?: (event: VegaInputPasscodeCustomEvent<string>) => void;
8104
+ /**
8105
+ * An event emitter notifying the completion of all input passcode boxes. whether triggered programmatically or through user interaction.
8106
+ * @vegaVersion 2.66.0
8107
+ */
8108
+ "onVegaComplete"?: (event: VegaInputPasscodeCustomEvent<string>) => void;
8109
+ /**
8110
+ * Determines whether the input passcode field is required.
8111
+ * @vegaVersion 2.66.0
8112
+ */
8113
+ "required"?: boolean;
8114
+ /**
8115
+ * Defines the size of the input passcode, specifying its width or length.
8116
+ * @vegaVersion 2.66.0
8117
+ */
8118
+ "size"?: 'medium' | 'small';
8119
+ /**
8120
+ * Defines custom validation rules for the input passcode.
8121
+ * @vegaVersion 2.66.0
8122
+ */
8123
+ "validationRules"?: FormFieldValidationRule<unknown>[];
8124
+ /**
8125
+ * Specifies the value of the input passcode.
8126
+ * @vegaVersion 2.66.0
8127
+ */
8128
+ "value"?: string;
8129
+ }
7962
8130
  interface VegaInputPhoneNumber {
7963
8131
  /**
7964
8132
  * Specifies the countries available for selection. Note: By default, 245 codes are provided, but loading all of them may take time. To improve performance, it is recommended to include only the necessary codes.
@@ -10476,6 +10644,7 @@ declare namespace LocalJSX {
10476
10644
  "vega-input": VegaInput;
10477
10645
  "vega-input-credit-card": VegaInputCreditCard;
10478
10646
  "vega-input-numeric": VegaInputNumeric;
10647
+ "vega-input-passcode": VegaInputPasscode;
10479
10648
  "vega-input-phone-number": VegaInputPhoneNumber;
10480
10649
  "vega-input-range": VegaInputRange;
10481
10650
  "vega-input-select": VegaInputSelect;
@@ -10591,6 +10760,7 @@ declare module "@stencil/core" {
10591
10760
  "vega-input": LocalJSX.VegaInput & JSXBase.HTMLAttributes<HTMLVegaInputElement>;
10592
10761
  "vega-input-credit-card": LocalJSX.VegaInputCreditCard & JSXBase.HTMLAttributes<HTMLVegaInputCreditCardElement>;
10593
10762
  "vega-input-numeric": LocalJSX.VegaInputNumeric & JSXBase.HTMLAttributes<HTMLVegaInputNumericElement>;
10763
+ "vega-input-passcode": LocalJSX.VegaInputPasscode & JSXBase.HTMLAttributes<HTMLVegaInputPasscodeElement>;
10594
10764
  "vega-input-phone-number": LocalJSX.VegaInputPhoneNumber & JSXBase.HTMLAttributes<HTMLVegaInputPhoneNumberElement>;
10595
10765
  "vega-input-range": LocalJSX.VegaInputRange & JSXBase.HTMLAttributes<HTMLVegaInputRangeElement>;
10596
10766
  "vega-input-select": LocalJSX.VegaInputSelect & JSXBase.HTMLAttributes<HTMLVegaInputSelectElement>;
@@ -12,5 +12,5 @@ export declare const FlexWrap: readonly ["nowrap", "wrap", "wrap-reverse"];
12
12
  export declare const BoxDisplay: readonly ["block", "inline-block", "none"];
13
13
  export declare const BorderStyle: readonly ["solid", "dashed", "dotted", "double", "none"];
14
14
  export declare const TextAlign: readonly ["start", "end", "left", "right", "center", "justify"];
15
- export declare const VegaNativeEventName: readonly ["change", "click", "focus", "blur", "close", "modalOpen", "validate", "formSubmit", "formReset", "rowClick", "rowExpand", "selectChange", "selectAllChange", "pageSizeChange", "dropdownClick", "create", "search", "searchTrigger", "hide", "show", "popoverShow", "popoverHide", "cancel", "remove", "pageUpdate", "currentStepUpdate", "toggleStatus", "stateUpdate", "groupClick", "menuClick", "accordionExpand", "dropdownShow", "dropdownHide", "dropdownSearch", "actionClick", "eventClick", "dateDblClick", "dateClick", "countryChange", "actionButtonClick", "moreActionClick", "expand", "rowSelect", "rowSelectAll", "retry", "selectedFileChange", "preview", "labelButtonClick", "imageInserted", "reset", "eventPreviewShow", "monthYearChange"];
15
+ export declare const VegaNativeEventName: readonly ["change", "click", "focus", "blur", "close", "modalOpen", "validate", "formSubmit", "formReset", "rowClick", "rowExpand", "selectChange", "selectAllChange", "pageSizeChange", "dropdownClick", "create", "search", "searchTrigger", "hide", "show", "popoverShow", "popoverHide", "cancel", "remove", "pageUpdate", "currentStepUpdate", "toggleStatus", "stateUpdate", "groupClick", "menuClick", "accordionExpand", "dropdownShow", "dropdownHide", "dropdownSearch", "actionClick", "eventClick", "dateDblClick", "dateClick", "countryChange", "actionButtonClick", "moreActionClick", "expand", "rowSelect", "rowSelectAll", "retry", "selectedFileChange", "preview", "labelButtonClick", "imageInserted", "reset", "eventPreviewShow", "monthYearChange", "complete", "paste"];
16
16
  export declare const CssStates: readonly ["default", "hover", "active", "focus-visible"];
@@ -94,4 +94,6 @@ export declare const VegaPreview: VegaEventID;
94
94
  export declare const VegaLabelButtonClick: VegaEventID;
95
95
  export declare const VegaReset: VegaEventID;
96
96
  export declare const VegaMonthYearChange: VegaEventID;
97
+ export declare const VegaComplete: VegaEventID;
98
+ export declare const VegaPaste: VegaEventID;
97
99
  export declare const HTMLNativeEventIds: VegaEventID[];
@@ -0,0 +1,86 @@
1
+ import { Immutable } from './immutable';
2
+ /**
3
+ * Immutable Array cannot be changed once created
4
+ */
5
+ export declare class ImmutableArray<T> implements Immutable<T[]> {
6
+ length: number;
7
+ private readonly array;
8
+ /**
9
+ * The constructor of ImmutableArray
10
+ *
11
+ * @typedef T generic type parameter
12
+ * @param {T[]} initialArray - Optional initial array
13
+ * @param {() => void} onMutate - Optional callback invoked with the new ImmutableArray whenever a mutation is performed
14
+ */
15
+ constructor(initialArray?: T[], onMutate?: (newArr: ImmutableArray<T>) => void);
16
+ /**
17
+ * The function is called when the array is mutated
18
+ *
19
+ * @typedef T generic type parameter
20
+ * @param {ImmutableArray<T>} _newArr - The new array that was created.
21
+ */
22
+ onMutate(_newArr: ImmutableArray<T>): void;
23
+ /**
24
+ * Append items to the array and return a new ImmutableArray
25
+ *
26
+ * @param {T[]} items - The items to be appended to the array
27
+ * @returns {ImmutableArray<T>} - a new ImmutableArray with new items pushed.
28
+ */
29
+ push(...items: T[]): ImmutableArray<T>;
30
+ /**
31
+ * Remove the last item from the array and return a new ImmutableArray.
32
+ * If the array is empty, a new ImmutableArray with the same (empty) contents is returned.
33
+ *
34
+ * @returns {ImmutableArray<T>} - a new ImmutableArray with the last one popped
35
+ */
36
+ pop(): ImmutableArray<T>;
37
+ /**
38
+ * Update the item at the specified index and return a new ImmutableArray.
39
+ * If the index is out of range, no change is made and a new ImmutableArray (same contents) is returned.
40
+ *
41
+ * @param {number} index - Index of the item to update.
42
+ * @param {T} value - New value to set at the given index.
43
+ * @returns {ImmutableArray<T>} - a new ImmutableArray with updated item.
44
+ */
45
+ set(index: number, value: T): ImmutableArray<T>;
46
+ /**
47
+ * Set values from the provided array into this ImmutableArray one by one
48
+ *
49
+ * @param {T[]} values - Array of values to write into this array.
50
+ * @returns {ImmutableArray<T>} - a new ImmutableArray with updated items.
51
+ */
52
+ setAll(values: T[]): ImmutableArray<T>;
53
+ /**
54
+ * Clear the array and return a new ImmutableArray
55
+ *
56
+ * @returns {ImmutableArray<T>} return a new ImmutableArray.
57
+ */
58
+ clear(): ImmutableArray<T>;
59
+ /**
60
+ * Performs a mutation on a copy of the internal array and returns a new ImmutableArray
61
+ *
62
+ * @param {(arr: T[]) => void} fn - (arr: T[]) => void
63
+ * @returns {ImmutableArray<T>} A new ImmutableArray
64
+ */
65
+ withMutation(fn: (arr: T[]) => void): ImmutableArray<T>;
66
+ /**
67
+ * Get item by index
68
+ *
69
+ * @param {number} index - index of the array items
70
+ * @returns {T | undefined} The array item with the index
71
+ */
72
+ get(index: number): T | undefined;
73
+ /**
74
+ * Join array elements into a string separated by the given separator.
75
+ *
76
+ * @param {string} [separator=','] - Separator to use between elements.
77
+ * @returns {string} The joined string.
78
+ */
79
+ join(separator?: string): string;
80
+ /**
81
+ * It returns an array of the values in the array
82
+ *
83
+ * @returns {T[]} An array of the values in the array.
84
+ */
85
+ toArray(): T[];
86
+ }
@@ -85,5 +85,5 @@ export declare class ImmutableMap<K, V> implements Immutable<Map<K, V>> {
85
85
  * @param {(map: Map<unknown, unknown>) => void} fn - A function that takes a map as its parameter and does some mutation on it.
86
86
  * @returns {ImmutableMap<K, V>} a new instance of `ImmutableMap<K, V>`.
87
87
  */
88
- private withMutation;
88
+ withMutation(fn: (map: Map<K, V>) => void): ImmutableMap<K, V>;
89
89
  }
@@ -1,3 +1,4 @@
1
1
  export interface Immutable<T> {
2
2
  onMutate(newObj: Immutable<T>): void;
3
+ withMutation(fn: (obj: T) => void): Immutable<T>;
3
4
  }
@@ -137,7 +137,13 @@ export {
137
137
  VegaFormFieldValidationState,
138
138
  } from '../components/vega-form/types';
139
139
  export { VegaFile, VegaFileOptional, VegaImageUploaderStatus } from '../components/vega-image-uploader/types';
140
- export { InputType, InputValueUpdateTriggeredBy, MaskConfigType } from '../components/vega-input/types';
140
+ export {
141
+ DataTransferType,
142
+ InputAutocompleteTypes,
143
+ InputType,
144
+ InputValueUpdateTriggeredBy,
145
+ MaskConfigType,
146
+ } from '../components/vega-input/types';
141
147
  export { FormFieldValidationRule as FormFieldValidationRule1 } from '../types/components.type';
142
148
  export { VegaCountryType } from '../components/vega-input-phone-number/types';
143
149
  export { InputRangeStackType, InputRangeValueType } from '../components/vega-input-range/types';
@@ -1 +1 @@
1
- export{g as getCurrentBreakpoint}from"./p-7d9cd9c8.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-378e5881.js";export{c as camelToDashCase}from"./p-02841589.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b1faebe0.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{e as BoxDisplay,B as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{I as InsertNodeToNearestRootAction,k as RTETokenNode,l as RTETokenNodeRenderer,R as RTETokenToolbarButtonRenderer,c as VegaDialog,d as VegaEventManager,V as VegaLoader,a as VegaNotify,i as VegaRTEExtension,j as VegaRTEExtensionRenderer,g as VegaRTETokenExtension,h as VegaRTEToolbarButtonRenderer,f as VegaSkeletonLoader,b as VegaThemeManager,e as VegaZIndexManager}from"./p-64c3d021.js";export{F as FeatureFlag}from"./p-e77a83e4.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-24cb0a7e.js";export{V as VegaIconManager}from"./p-8c9ea6f4.js";export{V as ValidCreditCardNumberRule}from"./p-9ce249a9.js";export{w as waitForVega}from"./p-7c594a9f.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-39482a1a.js";export{b as ElementToDTOStrategy,d as RTEImageBlock,f as RTEImageNode,e as RTEListBlock,c as RTEListItemBlock,U as UpdateCursorPositionAction,V as VegaRTEContent}from"./p-d5d6dae6.js";export{s as setVegaNonce}from"./p-54ae02db.js";export{c as ActionHandleStrategy,e as AppendChildrenAction,K as CodeLanguage,p as CustomAttributeAnnotation,o as CustomClassAnnotation,C as CustomStyleAnnotation,I as InsertChildrenAfterAction,k as InsertChildrenBeforeAction,M as ModifyContentAction,n as RTEBlock,v as RTEDecoratorNode,J as RTENode,d as RTETextBlock,a as RTETextNode,j as RemoveChildrenAction,V as VegaRTEPresetToolbarItems}from"./p-39b4c838.js";export{R as RTELanguageToolbarButtonRenderer,V as VegaRTELanguageExtension}from"./p-901ff5d3.js";export{R as RTERange}from"./p-c241f615.js";export{G as GridColumns,a as GridRows}from"./p-228de113.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-8fae8f9e.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-bc9484a6.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-924b4e24.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";import"./p-b75ee3ba.js";import"./p-824a06ba.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-d9671d27.js";import"./p-4c192985.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-262ec334.js";import"./p-a7b5f497.js";import"./p-3c21b875.js";import"./p-db8cdba6.js";import"./p-abd7aeaa.js";import"./p-5d676a94.js";import"./p-308aa2e3.js";import"./p-bf19682d.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-08835909.js";const r=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{r as Rings}
1
+ export{g as getCurrentBreakpoint}from"./p-7d9cd9c8.js";export{L as LogUtility,s as setVegaLogLevel}from"./p-6e1ab235.js";export{d as formatAndValidBackgroundColor,e as formatAndValidBorderColor,g as formatAndValidBorderRadius,c as formatAndValidBreakpointSize,a as formatAndValidGap,h as formatAndValidPadding,f as formatAndValidResponsiveToken,b as formatAndValidShadow,i as formatAndValidTextColor}from"./p-54b62ecf.js";export{c as camelToDashCase}from"./p-02841589.js";export{d as BackgroundColorMap,a as BackgroundColors,e as BorderColorMap,b as BorderColors,B as BorderRadius,C as Colors,F as FillBackgroundColors,g as ShadowMap,f as Shadows,h as Spacing,S as StrokeBackgroundColors,c as TextColorMap,T as TextColors}from"./p-b1faebe0.js";export{B as Breakpoints}from"./p-ed45b3b6.js";export{I as Icons,g as getIconFromToken}from"./p-16493e5b.js";export{b as Typography,a as TypographyKeys,T as TypographyUrls}from"./p-d884c644.js";export{e as BoxDisplay,B as BreakpointKeys,C as CssStates,F as FlexDirections}from"./p-74168615.js";export{F as FrameworkEnum,v as VegaEnvManager}from"./p-5f377954.js";export{I as InsertNodeToNearestRootAction,k as RTETokenNode,l as RTETokenNodeRenderer,R as RTETokenToolbarButtonRenderer,c as VegaDialog,d as VegaEventManager,V as VegaLoader,a as VegaNotify,i as VegaRTEExtension,j as VegaRTEExtensionRenderer,g as VegaRTETokenExtension,h as VegaRTEToolbarButtonRenderer,f as VegaSkeletonLoader,b as VegaThemeManager,e as VegaZIndexManager}from"./p-f360c9ba.js";export{F as FeatureFlag}from"./p-e77a83e4.js";export{B as VegaJQueryDelegatedEventStrategy}from"./p-41c3fcb4.js";export{V as VegaIconManager}from"./p-8c9ea6f4.js";export{V as ValidCreditCardNumberRule}from"./p-9ce249a9.js";export{w as waitForVega}from"./p-8350506e.js";export{a as VegaTranslation,s as VegaTranslationResourceEN}from"./p-39482a1a.js";export{b as ElementToDTOStrategy,d as RTEImageBlock,f as RTEImageNode,e as RTEListBlock,c as RTEListItemBlock,U as UpdateCursorPositionAction,V as VegaRTEContent}from"./p-8edf3513.js";export{s as setVegaNonce}from"./p-54ae02db.js";export{c as ActionHandleStrategy,e as AppendChildrenAction,K as CodeLanguage,p as CustomAttributeAnnotation,o as CustomClassAnnotation,C as CustomStyleAnnotation,I as InsertChildrenAfterAction,k as InsertChildrenBeforeAction,M as ModifyContentAction,n as RTEBlock,v as RTEDecoratorNode,J as RTENode,d as RTETextBlock,a as RTETextNode,j as RemoveChildrenAction,V as VegaRTEPresetToolbarItems}from"./p-822c6092.js";export{R as RTELanguageToolbarButtonRenderer,V as VegaRTELanguageExtension}from"./p-bf7f755b.js";export{R as RTERange}from"./p-a7631c6b.js";export{G as GridColumns,a as GridRows}from"./p-47fa359b.js";export{C as CheckBoxRequiredRule}from"./p-590fd123.js";export{D as DateRequiredRule}from"./p-8fae8f9e.js";export{I as InputPhoneNumberRequiredRule}from"./p-07c2725a.js";export{I as InputRangeRequiredRule}from"./p-f396c69a.js";export{R as RequiredFieldRule}from"./p-280cbcdb.js";export{R as RichTextEditorRequiredRule}from"./p-129c0ce1.js";export{T as TimeRangeRequiredRule,a as TimeRequiredRule}from"./p-924b4e24.js";export{T as ToggleSwitchRequiredRule}from"./p-7c0b4c36.js";export{F as FileUploaderRequiredRule}from"./p-0bb860cc.js";import"./p-b75ee3ba.js";import"./p-824a06ba.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-d9671d27.js";import"./p-4c192985.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-262ec334.js";import"./p-a7b5f497.js";import"./p-447c7590.js";import"./p-db8cdba6.js";import"./p-abd7aeaa.js";import"./p-5d676a94.js";import"./p-308aa2e3.js";import"./p-bf19682d.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-08835909.js";const r=["ring-input-focus","dark-ring-input-focus","ring-input-danger-focus","dark-ring-input-danger-focus","ring-action-focus","dark-ring-action-focus","ring-action-danger-focus","dark-ring-action-danger-focus"];export{r as Rings}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as h}from"./p-6b2342e0.js";import{F as r}from"./p-e77a83e4.js";import{V as a,M as l,A as o,D as c,i as p}from"./p-b1faebe0.js";import{R as n}from"./p-280cbcdb.js";import{V as d}from"./p-9ce249a9.js";import{s as v}from"./p-519a7d55.js";import{I as m}from"./p-6e1ab235.js";import{V as u,I as f}from"./p-d849e0f5.js";import{F as g}from"./p-43257678.js";import{F as _}from"./p-a528714c.js";import{C as A}from"./p-2d0d575f.js";import{c as E}from"./p-053eb64a.js";import{C as M}from"./p-2033f86e.js";import{f as I,E as w,C as D,D as C}from"./p-3c21b875.js";import{a as Z}from"./p-8c9ea6f4.js";import{S as R}from"./p-71f9c4d4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-abd7aeaa.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-308aa2e3.js";import"./p-39482a1a.js";import"./p-7d9cd9c8.js";import"./p-b75ee3ba.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-fddca002.js";import"./p-24cb0a7e.js";import"./p-5f377954.js";import"./p-867a4970.js";const j=[{type:"visa",iconName:"visa",pattern:a,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999 999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"mastercard",iconName:"mastercard",pattern:l,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"amex",iconName:"amex",pattern:o,maskConfig:{type:"custom",options:{mask:"9999 999999 99999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"discover",iconName:"discover",pattern:c,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}}],N=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!1===t.autoValidation}];class b extends R{calculateCaretPosition(t,i){if(!p(i))return null;if(this.getCreditCardMaskConfig(t)){if(t.length>this.getLengthLimit())return i-(t.length-this.getLengthLimit());const e=t.substring(0,i);return i+(this.format(e).length-e.length)}return i}format(t,i){const e=this.getCreditCardMaskConfig(t);if(e){this.setMaskConfig(e.options);const s=null==i?void 0:i.caretPosition;if(t.length>this.getLengthLimit()&&p(s)){const i=[...t],e=t.length-this.getLengthLimit();return i.splice(s-e,e),i.join("")}return this.replaceMaskWithMatchedInputSlots(t,this.getMatchedInputSlotValue(t))}return t}getCreditCardType(t){return j.filter((i=>i.pattern.test(t)))[0]}}class y extends b{constructor(){super({mask:"",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")})}getCreditCardMaskConfig(t){let i;const e=this.getCreditCardType(t);return e&&(i=e.maskConfig),i}}class V extends b{constructor(t){super({mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}),this.hideCardNumberOnBlur=t}getCreditCardMaskConfig(t){let i;return this.getCreditCardType(t)&&this.hideCardNumberOnBlur&&t.trim().includes(" ")&&(i=this.generateDynamicMask(t)),i}generateDynamicMask(t){const i={type:"custom",options:{mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")},trigger:"blur"},e=t.trim().split(" "),s=e.map(((t,i)=>(i===e.length-1?"9":"X").repeat(t.length))).join(" ");return i.options.mask=s,i}}var H=function(t,i,e,s){var h,r=arguments.length,a=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var l=t.length-1;l>=0;l--)(h=t[l])&&(a=(r<3?h(a):r>3?h(i,e,a):h(i,e))||a);return r>3&&a&&Object.defineProperty(i,e,a),a};const T=class{constructor(s){t(this,s),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.globalSlimmers={},this.formFieldController=new g({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new n:null},{propertyName:"",ruleFactory:()=>new d}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerGetter(),touchableAreaGetter:()=>this.touchableAreaGetter()}),this.changeEventEmitter=E(T,I),this.blurEventEmitter=E(T,w),this.focusEventEmitter=E(T,D),this.inputCreditCardEventPrevent=new M([I,D,w],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new u(N),this.required=!1,this.disabled=!1,this.label="",this.hint="",this.size="default",this.placeholder="",this.hideCardNumberOnBlur=!0,this.autoValidation=!0,this.validationRules=[],this.isValid=null,this.value="",this.renderInputContainer=()=>{var t;const i=(null===(t=this.getCreditCardType(this.value))||void 0===t?void 0:t.iconName)||"regular-credit-card";return e("vega-input",{label:this.label,type:"number",prefixIcon:Z.getIconKey(i),maskConfig:this.getMaskConfig(),placeholder:this.placeholder,disabled:this.disabled,size:this.size,value:this.value,hint:this.hint,required:this.required,showClearIcon:!1,ref:t=>{this.inputRef=t,C.addUniqueObserverToNode(t,I,(t=>{this.handleVegaChange(t)})),C.addUniqueObserverToNode(t,w,(()=>{this.handleVegaBlur()})),C.addUniqueObserverToNode(t,D,(()=>{this.handleVegaFocus()}))}})},this.handleVegaChange=t=>{this.value=t.detail},this.handleVegaBlur=()=>{this.blurEventEmitter.emit()},this.handleVegaFocus=()=>{this.focusEventEmitter.emit()},this.inputContainerGetter=()=>this.inputRef.shadowRoot.querySelector(".vega-input-container"),this.touchableAreaGetter=()=>Array.from(this.inputRef.shadowRoot.querySelectorAll("input"))}watchValidationRules(){}watchValue(t){this.changeEventEmitter.emit(t),A.notify(_,{host:this.host,detail:t})}componentDidLoad(){r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")&&this.hideCardNumberOnBlur&&this.inputRef.value&&this.value!==this.inputRef.value&&(this.value=this.inputRef.value)}render(){return v(e(s,null,this.renderInputContainer()),this.host)}getCreditCardType(t){return j.filter((i=>i.pattern.test(t)))[0]}getMaskConfig(){return[{type:"custom",trigger:"input",strategy:()=>new y},{type:"custom",trigger:"blur",strategy:()=>new V(this.hideCardNumberOnBlur)}]}get host(){return h(this)}static get watchers(){return{validationRules:["watchValidationRules"],value:["watchValue"]}}};Z.register({visa:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#00579F" rx="2"/><path fill="#fff" d="M15.474 15.792h-1.979l1.238-7.653h1.979l-1.238 7.653ZM22.647 8.326A4.877 4.877 0 0 0 20.872 8c-1.954 0-3.33 1.042-3.339 2.532-.016 1.1.986 1.71 1.735 2.076.765.375 1.026.62 1.026.953-.008.513-.619.75-1.189.75-.79 0-1.213-.123-1.857-.408l-.26-.122-.277 1.718c.464.211 1.32.4 2.207.407 2.076 0 3.428-1.026 3.444-2.613.008-.872-.52-1.54-1.66-2.085-.693-.35-1.117-.586-1.117-.944.008-.326.359-.66 1.14-.66a3.362 3.362 0 0 1 1.474.293l.18.082.268-1.653ZM25.279 13.08l.79-2.14c-.008.016.162-.448.26-.733l.138.66s.375 1.831.457 2.214h-1.645ZM27.72 8.14h-1.53c-.472 0-.831.138-1.035.635l-2.94 7.018h2.077l.416-1.148h2.54c.057.269.237 1.148.237 1.148h1.832L27.72 8.14ZM11.842 8.139l-1.938 5.219-.212-1.059c-.358-1.221-1.482-2.548-2.736-3.208l1.775 6.693h2.093l3.11-7.645h-2.092Z"/><path fill="#FAA61A" d="M8.104 8.139H4.92l-.032.154c2.483.635 4.128 2.166 4.804 4.007L9 8.782c-.114-.489-.464-.627-.896-.643Z"/></svg>',autoSize:!0},mastercard:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#000" rx="2"/><path fill="#ED0006" fill-rule="evenodd" d="M18.25 17.157a6.75 6.75 0 0 1-4.426 1.649c-3.769 0-6.824-3.09-6.824-6.903C7 8.091 10.055 5 13.824 5a6.75 6.75 0 0 1 4.426 1.649A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#F9A000" fill-rule="evenodd" d="M18.25 17.157a6.92 6.92 0 0 0 2.398-5.254 6.92 6.92 0 0 0-2.398-5.254A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#FF5E00" fill-rule="evenodd" d="M18.25 6.65a6.92 6.92 0 0 1 2.398 5.253 6.92 6.92 0 0 1-2.398 5.254 6.92 6.92 0 0 1-2.398-5.254A6.92 6.92 0 0 1 18.25 6.65Z" clip-rule="evenodd"/></svg>',autoSize:!0},amex:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><g clip-path="url(#a)"><rect width="36" height="24" fill="#016FD0" rx="2"/><path fill="#fff" d="M6.99 18.549v-5.654h5.986l.643.838.663-.838h21.729v5.264s-.569.384-1.226.39H22.754l-.724-.891v.891h-2.373v-1.521s-.325.212-1.025.212h-.808v1.309h-3.593l-.641-.855-.651.855H6.99ZM0 8.634l1.35-3.147h2.334l.767 1.763V5.487h2.902l.456 1.274.442-1.274h13.027v.64s.685-.64 1.81-.64l4.227.015.753 1.74V5.487h2.428l.669 1v-1h2.45v5.654h-2.45l-.64-1.003v1.003h-3.569l-.359-.892h-.959l-.353.892h-2.42c-.968 0-1.587-.628-1.587-.628v.628H17.63l-.725-.892v.892H3.34l-.359-.892h-.956l-.356.892H0V8.634Z"/><path fill="#016FD0" d="M1.827 6.184.006 10.417h1.185l.336-.847H3.48l.335.847h1.211L3.207 6.184h-1.38Zm.673.985.596 1.482H1.903L2.5 7.169ZM5.151 10.416V6.183l1.685.006.98 2.73.956-2.736h1.671v4.233H9.385v-3.12l-1.122 3.12h-.928L6.21 7.296v3.12H5.15ZM11.168 10.416V6.183h3.454v.947h-2.384v.724h2.328v.891h-2.328v.752h2.384v.92h-3.454ZM15.233 6.184v4.233h1.059V8.913h.445l1.27 1.504H19.3l-1.393-1.56a1.29 1.29 0 0 0 1.161-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.059.947h1.21c.29 0 .5.227.5.446 0 .28-.273.445-.485.445h-1.225v-.891ZM20.582 10.416h-1.08V6.183h1.08v4.233ZM23.144 10.416h-.233c-1.129 0-1.814-.889-1.814-2.1 0-1.24.678-2.133 2.103-2.133h1.17v1.003h-1.213c-.578 0-.988.451-.988 1.141 0 .82.468 1.165 1.142 1.165h.279l-.446.924ZM25.448 6.184l-1.82 4.233h1.185l.336-.847h1.953l.334.847h1.211l-1.819-4.233h-1.38Zm.674.985.595 1.482h-1.192l.597-1.482ZM28.77 10.416V6.183h1.345l1.718 2.66v-2.66h1.059v4.233H31.59l-1.762-2.73v2.73H28.77ZM7.715 17.825v-4.233h3.453v.947H8.784v.724h2.329v.89H8.784v.753h2.384v.919H7.715ZM24.636 17.825v-4.233h3.454v.947h-2.384v.724h2.317v.89h-2.317v.753h2.384v.919h-3.454ZM11.303 17.825l1.681-2.09-1.721-2.143h1.333l1.025 1.324 1.029-1.324h1.281l-1.699 2.116 1.685 2.117h-1.333l-.996-1.304-.971 1.304h-1.314ZM16.041 13.592v4.233h1.086v-1.337h1.114c.943 0 1.658-.5 1.658-1.472 0-.806-.56-1.424-1.52-1.424H16.04Zm1.086.957h1.174c.304 0 .522.187.522.488 0 .282-.217.487-.526.487h-1.17v-.975ZM20.359 13.592v4.233h1.058V16.32h.446l1.269 1.504h1.293l-1.393-1.56a1.29 1.29 0 0 0 1.162-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.058.947h1.21c.29 0 .501.226.501.445 0 .281-.273.446-.486.446h-1.225v-.891ZM28.58 17.825v-.92H30.7c.313 0 .449-.169.449-.354 0-.178-.136-.358-.45-.358h-.957c-.831 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.062l-.446.952H29.94c-.341 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347H28.58ZM32.464 17.825v-.92h2.118c.313 0 .45-.169.45-.354 0-.178-.136-.358-.45-.358h-.957c-.832 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.02l-.404.952h-1.783c-.34 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347h-2.256Z"/></g><defs><clipPath id="a"><rect width="36" height="24" fill="#fff" rx="2"/></clipPath></defs></svg>',autoSize:!0},discover:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#232342" rx="2"/><path fill="#fff" fill-rule="evenodd" d="M30.686 9.61c1.086 0 1.684.484 1.684 1.398a1.307 1.307 0 0 1-1.087 1.397l1.467 1.988h-1.14l-1.25-1.935h-.109v1.935h-.924V9.61h1.359Zm-.435 2.204h.272c.597 0 .869-.269.869-.752 0-.43-.272-.699-.87-.699h-.27v1.45Zm-4.129 2.579h2.608v-.806h-1.684v-1.29h1.63v-.806h-1.63v-1.074h1.684V9.61h-2.608v4.781Zm-2.716-1.559-1.25-3.223h-.978l2.01 4.889h.49l2.01-4.89h-.978l-1.304 3.225Zm-11.029-.805c0 1.343 1.087 2.471 2.445 2.471.435 0 .815-.107 1.195-.269v-1.074c-.271.322-.652.537-1.086.537-.87 0-1.576-.645-1.576-1.504v-.108c-.054-.86.652-1.612 1.521-1.665.435 0 .87.215 1.141.537V9.879c-.326-.214-.76-.268-1.14-.268-1.413-.108-2.5 1.02-2.5 2.418Zm-1.684-.591c-.543-.215-.706-.323-.706-.591.054-.323.326-.591.652-.538.271 0 .543.162.76.376l.49-.644c-.381-.323-.87-.538-1.359-.538-.76-.053-1.412.538-1.467 1.29v.054c0 .644.272 1.02 1.141 1.289.217.054.435.161.652.269a.563.563 0 0 1 .272.483c0 .376-.326.699-.652.699h-.055c-.434 0-.814-.269-.977-.645l-.598.59c.326.592.978.914 1.63.914.869.054 1.575-.59 1.63-1.45v-.162c-.055-.644-.326-.967-1.413-1.396Zm-3.15 2.954h.923V9.611h-.924v4.781ZM3.25 9.611H4.88c1.304.054 2.336 1.128 2.282 2.418 0 .698-.326 1.343-.87 1.826-.488.376-1.086.591-1.684.538H3.25V9.61Zm1.195 3.976c.435.053.924-.108 1.25-.376.326-.323.489-.753.489-1.236 0-.43-.163-.86-.49-1.182-.325-.269-.814-.43-1.249-.376h-.271v3.17h.271Z" clip-rule="evenodd"/><path fill="#FD6020" fill-rule="evenodd" d="M18.788 9.5c-1.358 0-2.499 1.075-2.499 2.471 0 1.344 1.087 2.472 2.5 2.526 1.412.053 2.498-1.075 2.553-2.472C21.287 10.628 20.2 9.5 18.788 9.5Z" clip-rule="evenodd"/></svg>',autoSize:!0},"regular-credit-card":{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" rx="2" fill=\'rgba(var(--v-regular-credit-card-bg, 205, 209, 211, 1))\'/><g clip-path="url(#a)"><path fill="rgba(var(--v-regular-credit-card-top, 252, 252, 252, 1))" d="M11 5c-1.103 0-2 .897-2 2v1h18V7c0-1.103-.897-2-2-2H11Zm16 6H9v6c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-6Zm-14.5 4h2c.275 0 .5.225.5.5s-.225.5-.5.5h-2a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5Zm3.5.5c0-.275.225-.5.5-.5h4c.275 0 .5.225.5.5s-.225.5-.5.5h-4a.501.501 0 0 1-.5-.5Z"/></g><defs><clipPath id="a"><path d="M9 4h18v16H9z" fill=\'rgba(var(--v-regular-credit-card-bottom, 255, 255, 255, 1))\'/></clipPath></defs></svg>',autoSize:!0}}),H([f()],T.prototype,"globalSlimmers",void 0),H([m()],T.prototype,"formFieldController",void 0),H([m()],T.prototype,"changeEventEmitter",void 0),H([m()],T.prototype,"blurEventEmitter",void 0),H([m()],T.prototype,"focusEventEmitter",void 0),H([m()],T.prototype,"inputCreditCardEventPrevent",void 0),H([m()],T.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),T.style=":host{display:inline-block;width:100%;text-align:left;line-height:normal}";export{T as vega_input_credit_card}
1
+ import{r as t,c as i,h as e,H as s,g as h}from"./p-6b2342e0.js";import{F as r}from"./p-e77a83e4.js";import{V as a,M as l,A as o,D as c,i as p}from"./p-b1faebe0.js";import{R as n}from"./p-280cbcdb.js";import{V as d}from"./p-9ce249a9.js";import{s as v}from"./p-519a7d55.js";import{I as m}from"./p-6e1ab235.js";import{V as u,I as f}from"./p-d849e0f5.js";import{F as g}from"./p-9fb6fbcc.js";import{F as _}from"./p-a528714c.js";import{C as A}from"./p-2d0d575f.js";import{c as E}from"./p-7b145620.js";import{C as M}from"./p-725f0a2c.js";import{f as I,E as w,C as D,D as C}from"./p-447c7590.js";import{a as Z}from"./p-8c9ea6f4.js";import{S as R}from"./p-71f9c4d4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-abd7aeaa.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-308aa2e3.js";import"./p-39482a1a.js";import"./p-7d9cd9c8.js";import"./p-b75ee3ba.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-fde50319.js";import"./p-41c3fcb4.js";import"./p-5f377954.js";import"./p-867a4970.js";const j=[{type:"visa",iconName:"visa",pattern:a,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999 999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"mastercard",iconName:"mastercard",pattern:l,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"amex",iconName:"amex",pattern:o,maskConfig:{type:"custom",options:{mask:"9999 999999 99999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"discover",iconName:"discover",pattern:c,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}}],N=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!1===t.autoValidation}];class b extends R{calculateCaretPosition(t,i){if(!p(i))return null;if(this.getCreditCardMaskConfig(t)){if(t.length>this.getLengthLimit())return i-(t.length-this.getLengthLimit());const e=t.substring(0,i);return i+(this.format(e).length-e.length)}return i}format(t,i){const e=this.getCreditCardMaskConfig(t);if(e){this.setMaskConfig(e.options);const s=null==i?void 0:i.caretPosition;if(t.length>this.getLengthLimit()&&p(s)){const i=[...t],e=t.length-this.getLengthLimit();return i.splice(s-e,e),i.join("")}return this.replaceMaskWithMatchedInputSlots(t,this.getMatchedInputSlotValue(t))}return t}getCreditCardType(t){return j.filter((i=>i.pattern.test(t)))[0]}}class y extends b{constructor(){super({mask:"",slot:"9",accept:/\d/,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")})}getCreditCardMaskConfig(t){let i;const e=this.getCreditCardType(t);return e&&(i=e.maskConfig),i}}class V extends b{constructor(t){super({mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}),this.hideCardNumberOnBlur=t}getCreditCardMaskConfig(t){let i;return this.getCreditCardType(t)&&this.hideCardNumberOnBlur&&t.trim().includes(" ")&&(i=this.generateDynamicMask(t)),i}generateDynamicMask(t){const i={type:"custom",options:{mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")},trigger:"blur"},e=t.trim().split(" "),s=e.map(((t,i)=>(i===e.length-1?"9":"X").repeat(t.length))).join(" ");return i.options.mask=s,i}}var H=function(t,i,e,s){var h,r=arguments.length,a=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var l=t.length-1;l>=0;l--)(h=t[l])&&(a=(r<3?h(a):r>3?h(i,e,a):h(i,e))||a);return r>3&&a&&Object.defineProperty(i,e,a),a};const T=class{constructor(s){t(this,s),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.globalSlimmers={},this.formFieldController=new g({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new n:null},{propertyName:"",ruleFactory:()=>new d}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerGetter(),touchableAreaGetter:()=>this.touchableAreaGetter()}),this.changeEventEmitter=E(T,I),this.blurEventEmitter=E(T,w),this.focusEventEmitter=E(T,D),this.inputCreditCardEventPrevent=new M([I,D,w],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new u(N),this.required=!1,this.disabled=!1,this.label="",this.hint="",this.size="default",this.placeholder="",this.hideCardNumberOnBlur=!0,this.autoValidation=!0,this.validationRules=[],this.isValid=null,this.value="",this.renderInputContainer=()=>{var t;const i=(null===(t=this.getCreditCardType(this.value))||void 0===t?void 0:t.iconName)||"regular-credit-card";return e("vega-input",{label:this.label,type:"number",prefixIcon:Z.getIconKey(i),maskConfig:this.getMaskConfig(),placeholder:this.placeholder,disabled:this.disabled,size:this.size,value:this.value,hint:this.hint,required:this.required,showClearIcon:!1,ref:t=>{this.inputRef=t,C.addUniqueObserverToNode(t,I,(t=>{this.handleVegaChange(t)})),C.addUniqueObserverToNode(t,w,(()=>{this.handleVegaBlur()})),C.addUniqueObserverToNode(t,D,(()=>{this.handleVegaFocus()}))}})},this.handleVegaChange=t=>{this.value=t.detail},this.handleVegaBlur=()=>{this.blurEventEmitter.emit()},this.handleVegaFocus=()=>{this.focusEventEmitter.emit()},this.inputContainerGetter=()=>this.inputRef.shadowRoot.querySelector(".vega-input-container"),this.touchableAreaGetter=()=>Array.from(this.inputRef.shadowRoot.querySelectorAll("input"))}watchValidationRules(){}watchValue(t){this.changeEventEmitter.emit(t),A.notify(_,{host:this.host,detail:t})}componentDidLoad(){r.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")&&this.hideCardNumberOnBlur&&this.inputRef.value&&this.value!==this.inputRef.value&&(this.value=this.inputRef.value)}render(){return v(e(s,null,this.renderInputContainer()),this.host)}getCreditCardType(t){return j.filter((i=>i.pattern.test(t)))[0]}getMaskConfig(){return[{type:"custom",trigger:"input",strategy:()=>new y},{type:"custom",trigger:"blur",strategy:()=>new V(this.hideCardNumberOnBlur)}]}get host(){return h(this)}static get watchers(){return{validationRules:["watchValidationRules"],value:["watchValue"]}}};Z.register({visa:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#00579F" rx="2"/><path fill="#fff" d="M15.474 15.792h-1.979l1.238-7.653h1.979l-1.238 7.653ZM22.647 8.326A4.877 4.877 0 0 0 20.872 8c-1.954 0-3.33 1.042-3.339 2.532-.016 1.1.986 1.71 1.735 2.076.765.375 1.026.62 1.026.953-.008.513-.619.75-1.189.75-.79 0-1.213-.123-1.857-.408l-.26-.122-.277 1.718c.464.211 1.32.4 2.207.407 2.076 0 3.428-1.026 3.444-2.613.008-.872-.52-1.54-1.66-2.085-.693-.35-1.117-.586-1.117-.944.008-.326.359-.66 1.14-.66a3.362 3.362 0 0 1 1.474.293l.18.082.268-1.653ZM25.279 13.08l.79-2.14c-.008.016.162-.448.26-.733l.138.66s.375 1.831.457 2.214h-1.645ZM27.72 8.14h-1.53c-.472 0-.831.138-1.035.635l-2.94 7.018h2.077l.416-1.148h2.54c.057.269.237 1.148.237 1.148h1.832L27.72 8.14ZM11.842 8.139l-1.938 5.219-.212-1.059c-.358-1.221-1.482-2.548-2.736-3.208l1.775 6.693h2.093l3.11-7.645h-2.092Z"/><path fill="#FAA61A" d="M8.104 8.139H4.92l-.032.154c2.483.635 4.128 2.166 4.804 4.007L9 8.782c-.114-.489-.464-.627-.896-.643Z"/></svg>',autoSize:!0},mastercard:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#000" rx="2"/><path fill="#ED0006" fill-rule="evenodd" d="M18.25 17.157a6.75 6.75 0 0 1-4.426 1.649c-3.769 0-6.824-3.09-6.824-6.903C7 8.091 10.055 5 13.824 5a6.75 6.75 0 0 1 4.426 1.649A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#F9A000" fill-rule="evenodd" d="M18.25 17.157a6.92 6.92 0 0 0 2.398-5.254 6.92 6.92 0 0 0-2.398-5.254A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#FF5E00" fill-rule="evenodd" d="M18.25 6.65a6.92 6.92 0 0 1 2.398 5.253 6.92 6.92 0 0 1-2.398 5.254 6.92 6.92 0 0 1-2.398-5.254A6.92 6.92 0 0 1 18.25 6.65Z" clip-rule="evenodd"/></svg>',autoSize:!0},amex:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><g clip-path="url(#a)"><rect width="36" height="24" fill="#016FD0" rx="2"/><path fill="#fff" d="M6.99 18.549v-5.654h5.986l.643.838.663-.838h21.729v5.264s-.569.384-1.226.39H22.754l-.724-.891v.891h-2.373v-1.521s-.325.212-1.025.212h-.808v1.309h-3.593l-.641-.855-.651.855H6.99ZM0 8.634l1.35-3.147h2.334l.767 1.763V5.487h2.902l.456 1.274.442-1.274h13.027v.64s.685-.64 1.81-.64l4.227.015.753 1.74V5.487h2.428l.669 1v-1h2.45v5.654h-2.45l-.64-1.003v1.003h-3.569l-.359-.892h-.959l-.353.892h-2.42c-.968 0-1.587-.628-1.587-.628v.628H17.63l-.725-.892v.892H3.34l-.359-.892h-.956l-.356.892H0V8.634Z"/><path fill="#016FD0" d="M1.827 6.184.006 10.417h1.185l.336-.847H3.48l.335.847h1.211L3.207 6.184h-1.38Zm.673.985.596 1.482H1.903L2.5 7.169ZM5.151 10.416V6.183l1.685.006.98 2.73.956-2.736h1.671v4.233H9.385v-3.12l-1.122 3.12h-.928L6.21 7.296v3.12H5.15ZM11.168 10.416V6.183h3.454v.947h-2.384v.724h2.328v.891h-2.328v.752h2.384v.92h-3.454ZM15.233 6.184v4.233h1.059V8.913h.445l1.27 1.504H19.3l-1.393-1.56a1.29 1.29 0 0 0 1.161-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.059.947h1.21c.29 0 .5.227.5.446 0 .28-.273.445-.485.445h-1.225v-.891ZM20.582 10.416h-1.08V6.183h1.08v4.233ZM23.144 10.416h-.233c-1.129 0-1.814-.889-1.814-2.1 0-1.24.678-2.133 2.103-2.133h1.17v1.003h-1.213c-.578 0-.988.451-.988 1.141 0 .82.468 1.165 1.142 1.165h.279l-.446.924ZM25.448 6.184l-1.82 4.233h1.185l.336-.847h1.953l.334.847h1.211l-1.819-4.233h-1.38Zm.674.985.595 1.482h-1.192l.597-1.482ZM28.77 10.416V6.183h1.345l1.718 2.66v-2.66h1.059v4.233H31.59l-1.762-2.73v2.73H28.77ZM7.715 17.825v-4.233h3.453v.947H8.784v.724h2.329v.89H8.784v.753h2.384v.919H7.715ZM24.636 17.825v-4.233h3.454v.947h-2.384v.724h2.317v.89h-2.317v.753h2.384v.919h-3.454ZM11.303 17.825l1.681-2.09-1.721-2.143h1.333l1.025 1.324 1.029-1.324h1.281l-1.699 2.116 1.685 2.117h-1.333l-.996-1.304-.971 1.304h-1.314ZM16.041 13.592v4.233h1.086v-1.337h1.114c.943 0 1.658-.5 1.658-1.472 0-.806-.56-1.424-1.52-1.424H16.04Zm1.086.957h1.174c.304 0 .522.187.522.488 0 .282-.217.487-.526.487h-1.17v-.975ZM20.359 13.592v4.233h1.058V16.32h.446l1.269 1.504h1.293l-1.393-1.56a1.29 1.29 0 0 0 1.162-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.058.947h1.21c.29 0 .501.226.501.445 0 .281-.273.446-.486.446h-1.225v-.891ZM28.58 17.825v-.92H30.7c.313 0 .449-.169.449-.354 0-.178-.136-.358-.45-.358h-.957c-.831 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.062l-.446.952H29.94c-.341 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347H28.58ZM32.464 17.825v-.92h2.118c.313 0 .45-.169.45-.354 0-.178-.136-.358-.45-.358h-.957c-.832 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.02l-.404.952h-1.783c-.34 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347h-2.256Z"/></g><defs><clipPath id="a"><rect width="36" height="24" fill="#fff" rx="2"/></clipPath></defs></svg>',autoSize:!0},discover:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#232342" rx="2"/><path fill="#fff" fill-rule="evenodd" d="M30.686 9.61c1.086 0 1.684.484 1.684 1.398a1.307 1.307 0 0 1-1.087 1.397l1.467 1.988h-1.14l-1.25-1.935h-.109v1.935h-.924V9.61h1.359Zm-.435 2.204h.272c.597 0 .869-.269.869-.752 0-.43-.272-.699-.87-.699h-.27v1.45Zm-4.129 2.579h2.608v-.806h-1.684v-1.29h1.63v-.806h-1.63v-1.074h1.684V9.61h-2.608v4.781Zm-2.716-1.559-1.25-3.223h-.978l2.01 4.889h.49l2.01-4.89h-.978l-1.304 3.225Zm-11.029-.805c0 1.343 1.087 2.471 2.445 2.471.435 0 .815-.107 1.195-.269v-1.074c-.271.322-.652.537-1.086.537-.87 0-1.576-.645-1.576-1.504v-.108c-.054-.86.652-1.612 1.521-1.665.435 0 .87.215 1.141.537V9.879c-.326-.214-.76-.268-1.14-.268-1.413-.108-2.5 1.02-2.5 2.418Zm-1.684-.591c-.543-.215-.706-.323-.706-.591.054-.323.326-.591.652-.538.271 0 .543.162.76.376l.49-.644c-.381-.323-.87-.538-1.359-.538-.76-.053-1.412.538-1.467 1.29v.054c0 .644.272 1.02 1.141 1.289.217.054.435.161.652.269a.563.563 0 0 1 .272.483c0 .376-.326.699-.652.699h-.055c-.434 0-.814-.269-.977-.645l-.598.59c.326.592.978.914 1.63.914.869.054 1.575-.59 1.63-1.45v-.162c-.055-.644-.326-.967-1.413-1.396Zm-3.15 2.954h.923V9.611h-.924v4.781ZM3.25 9.611H4.88c1.304.054 2.336 1.128 2.282 2.418 0 .698-.326 1.343-.87 1.826-.488.376-1.086.591-1.684.538H3.25V9.61Zm1.195 3.976c.435.053.924-.108 1.25-.376.326-.323.489-.753.489-1.236 0-.43-.163-.86-.49-1.182-.325-.269-.814-.43-1.249-.376h-.271v3.17h.271Z" clip-rule="evenodd"/><path fill="#FD6020" fill-rule="evenodd" d="M18.788 9.5c-1.358 0-2.499 1.075-2.499 2.471 0 1.344 1.087 2.472 2.5 2.526 1.412.053 2.498-1.075 2.553-2.472C21.287 10.628 20.2 9.5 18.788 9.5Z" clip-rule="evenodd"/></svg>',autoSize:!0},"regular-credit-card":{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" rx="2" fill=\'rgba(var(--v-regular-credit-card-bg, 205, 209, 211, 1))\'/><g clip-path="url(#a)"><path fill="rgba(var(--v-regular-credit-card-top, 252, 252, 252, 1))" d="M11 5c-1.103 0-2 .897-2 2v1h18V7c0-1.103-.897-2-2-2H11Zm16 6H9v6c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-6Zm-14.5 4h2c.275 0 .5.225.5.5s-.225.5-.5.5h-2a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5Zm3.5.5c0-.275.225-.5.5-.5h4c.275 0 .5.225.5.5s-.225.5-.5.5h-4a.501.501 0 0 1-.5-.5Z"/></g><defs><clipPath id="a"><path d="M9 4h18v16H9z" fill=\'rgba(var(--v-regular-credit-card-bottom, 255, 255, 255, 1))\'/></clipPath></defs></svg>',autoSize:!0}}),H([f()],T.prototype,"globalSlimmers",void 0),H([m()],T.prototype,"formFieldController",void 0),H([m()],T.prototype,"changeEventEmitter",void 0),H([m()],T.prototype,"blurEventEmitter",void 0),H([m()],T.prototype,"focusEventEmitter",void 0),H([m()],T.prototype,"inputCreditCardEventPrevent",void 0),H([m()],T.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),T.style=":host{display:inline-block;width:100%;text-align:left;line-height:normal}";export{T as vega_input_credit_card}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i,H as s,g as a}from"./p-6b2342e0.js";import{C as o}from"./p-2d0d575f.js";import{d as n,e as r,F as l,b as c,a as d,c as h}from"./p-a528714c.js";import{s as m}from"./p-519a7d55.js";import{c as u,M as f,V as p,I as v}from"./p-6e1ab235.js";import{m as b}from"./p-6bd5c49b.js";import{V as j,I as g}from"./p-d849e0f5.js";import{c as V}from"./p-7b145620.js";import{C as F}from"./p-725f0a2c.js";import{d as w,y,z as C,A as R}from"./p-447c7590.js";import{c as O}from"./p-a0467b83.js";import{S}from"./p-fde50319.js";import{F as k}from"./p-9fb6fbcc.js";import{t as E}from"./p-b75ee3ba.js";import{d as M,g as P,e as B}from"./p-308aa2e3.js";import{O as I}from"./p-331a62d5.js";import{f as A,b as N,d as x}from"./p-d9671d27.js";import{i as D}from"./p-b1faebe0.js";import{I as H}from"./p-b28d4f7d.js";import{C as $}from"./p-521d1d07.js";import{d as T}from"./p-d27ae9ff.js";import"./p-6a334573.js";import"./p-41c3fcb4.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-02841589.js";import"./p-a4670e23.js";import"./p-39482a1a.js";import"./p-7d9cd9c8.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-abd7aeaa.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d884c644.js";import"./p-262ec334.js";var W=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class z extends S{constructor(){super({parent:"vega-form",subStates:[{subStateName:"disableBlurValidation",parentStateName:"disableBlurValidation"}]})}}W([u()],z.prototype,"host",void 0),W([u({writable:!0})],z.prototype,"disableBlurValidation",void 0);var G=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class U extends p{setValidationStates(t){0!==t.length?t.forEach((t=>{const e=this.getHostByFieldName(t.fieldName);e&&this.updateFieldValidationState(e,{isValid:t.isValid,errorMessage:t.isValid?"":t.errorMessage})})):Array.from(this.host.querySelectorAll("[data-vega-form]")).filter((t=>k.isValidFormField(t))).forEach((t=>{this.updateFieldValidationState(t,{isValid:!0})}))}getHostByFieldName(t){const e=t.split(".");let i=this.host;for(const t of e){const e=i.querySelector(`[data-vega-form="${t}"]`);if(!k.isValidFormField(e))return null;i=e}return i}updateFieldValidationState(t,{isValid:e,errorMessage:i}){t.isValid=e,o.notify(n,{host:t,message:e?"":i,isValid:e}),o.notify(r,{host:t,detail:e})}}G([u()],U.prototype,"host",void 0),G([f("setValidationStates")],U.prototype,"setValidationStates",null);var _=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class q extends p{getNativeFormRef(){return this.nativeFormRef}render(){return t("form",{action:this.action,method:this.method,ref:t=>{t&&(this.nativeFormRef=t)}},t("slot",null))}}_([u()],q.prototype,"method",void 0),_([u()],q.prototype,"action",void 0);var J=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class K extends p{connectedCallback(){this.registerFormSubmitChangeManager()}disconnectedCallback(){this.unregisterFormSubmitChangeManager()}async submitWithFormData(){if(!this.useNativeForm)return;const t=await this.host.getValue();for(const e in t)if("object"==typeof t[e]){const i=this.flattenObjectWithBrackets({[e]:t[e]});for(const t in i){const e=this.createHiddenInput(t,i[t]);this.nativeFormRenderer.getNativeFormRef().append(e)}}else{const i=this.createHiddenInput(e,t[e]);this.nativeFormRenderer.getNativeFormRef().append(i)}this.nativeFormRenderer.getNativeFormRef().requestSubmit()}createHiddenInput(t,e){const i=E().createElement("input");return i.type="hidden",i.name=t,i.value=D(e)?String(e):"",i}registerFormSubmitChangeManager(){var t;this.formSubmitEventObserver=new I(this.canAcceptFormSubmitEvent.bind(this),this.handleSubmitEvents.bind(this));const e=null!==(t=A(this.host,"vega-form",{outerMost:!0}))&&void 0!==t?t:this.host;o.register(w.getSubject(e,M),this.formSubmitEventObserver)}unregisterFormSubmitChangeManager(){var t;const e=null!==(t=A(this.host,"vega-form",{outerMost:!0}))&&void 0!==t?t:this.host;o.unregister(w.getSubject(e,M),this.formSubmitEventObserver)}canAcceptFormSubmitEvent(t){return this.vegaFormFieldController.isElementInCurrentForm(t.host)}async handleSubmitEvents(){if((await this.host.valid()).isValid){const t=await this.host.getValue();this.submitEventEmitter.emit(t).defaultPrevented||await this.submitWithFormData()}}flattenObjectWithBrackets(t,e="",i={}){return Object.entries(t).forEach((([t,s])=>{const a=e?`${e}[${t}]`:t;Array.isArray(s)?s.forEach(((t,e)=>{const s=`${a}[${e}]`;"object"==typeof t&&null!==t?this.flattenObjectWithBrackets(t,s,i):i[s]=t})):D(s)&&"object"==typeof s?this.flattenObjectWithBrackets(s,a,i):i[a]=s})),i}}J([u()],K.prototype,"host",void 0),J([u()],K.prototype,"useNativeForm",void 0),J([u()],K.prototype,"nativeFormRenderer",void 0),J([u()],K.prototype,"submitEventEmitter",void 0),J([u()],K.prototype,"vegaFormFieldController",void 0),J([f("connectedCallback")],K.prototype,"connectedCallback",null),J([f("disconnectedCallback")],K.prototype,"disconnectedCallback",null);var L=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class Q extends p{constructor(){super(...arguments),this.childNotifyObserver=new $(r,(t=>this.updateInternalValidStatus(t))),this.childNodeValueChangeObserver=new $(l,(()=>{this.isTouched=!0})),this._invalidFieldPathMap=new H(new Map,(t=>{this._invalidFieldPathMap=t,this.updateIsValidFlag()})),this._pendingValidFieldPathMap=new H(new Map,(t=>{this._pendingValidFieldPathMap=t,this.updateIsValidFlag()})),this.updateInternalValidStatus=t=>{if(t.host!==this.host){const e=t.host,i=t.detail;k.isValidFormField(e)&&this.shouldVisitElement(e,!1,!1)&&(i?this.invalidFieldPathMap.delete(e):this.invalidFieldPathMap.set(e,e.dataset.vegaForm))}}}connectedCallback(){this.initFormFieldDisconnectedObserver(),this.registerFormFieldPendingValid()}disconnectedCallback(){o.notify(c,{host:this.host}),o.unregister(c,this.formFieldDisconnectedObserver),o.unregister(d,this.formFieldPendingValidObserver)}async getValue(t){const e={};return await this.navigateVegaFormChildren((async(i,s)=>{const a=this.getFormFieldName(i);e[a]=s?await i.getValue(t):this.getFormFieldValue(i)}),t),T(e)?Object.values(e):e}async setValue(t,e){t&&(await this.navigateVegaFormChildren((async(i,s)=>{const a=this.getFormFieldName(i);s?await i.setValue(t[a],e):(await i.componentOnReady(),void 0!==t[a]&&("function"==typeof i.setValue?await i.setValue(t[a]):i.value=t[a]))}),e),this.isTouched=!1)}async valid(t=!0){const e={isValid:!0,invalidFields:[]};return await this.navigateVegaFormChildren((async(i,s)=>{if("function"==typeof i.valid&&s){const s=await i.valid(t);s.isValid||(e.isValid=!1,e.invalidFields.push(...s.invalidFields),e.invalidFieldsErrorMessages=Object.assign(Object.assign({},e.invalidFieldsErrorMessages),s.invalidFieldsErrorMessages))}else{const{isValid:s,message:a}=await this.handleChildFormFieldElementValid(i,t);s||(e.isValid=!1,e.invalidFields.push(this.getFormFieldName(i)),e.invalidFieldsErrorMessages||(e.invalidFieldsErrorMessages={}),e.invalidFieldsErrorMessages[this.getFormFieldName(i)]=a)}})),e}get invalidFieldPathMap(){return this._invalidFieldPathMap}get pendingValidFieldPathMap(){return this._pendingValidFieldPathMap}setIsTouched(t){this.isTouched=t}getFormFieldName(t){return t.dataset.vegaForm}isElementInCurrentForm(t){return this.invalidFieldPathMap.has(t)||N(t,this.host)}async navigateVegaFormChildren(t,e,i=this.host){const s=[];Array.from(i.children).forEach((i=>{k.isValidFormField(i)?this.shouldVisitElement(i,null==e?void 0:e.skipDisabled,null==e?void 0:e.skipInvisible)&&s.push(t(i,"VEGA-FORM"===i.tagName)):s.push(this.navigateVegaFormChildren(t,e,i))})),await Promise.all(s)}updateIsValidFlag(){this.isValid=this.pendingValidFieldPathMap.size>0?null:0===this.invalidFieldPathMap.size}registerFormFieldPendingValid(){this.formFieldPendingValidObserver=new I(this.canAcceptFormFieldPendingValid.bind(this),this.handleFieldPendingValid.bind(this)),o.register(d,this.formFieldPendingValidObserver)}canAcceptFormFieldPendingValid(t){return this.isElementInCurrentForm(t.host)}handleFieldPendingValid(t){"boolean"==typeof t.detail?this.pendingValidFieldPathMap.delete(t.host):this.pendingValidFieldPathMap.set(t.host,t.host.dataset.vegaForm)}initFormFieldDisconnectedObserver(){this.formFieldDisconnectedObserver=new I(this.canAcceptFormFieldDisconnectedOperation.bind(this),this.updateInvalidFieldPath.bind(this)),o.register(c,this.formFieldDisconnectedObserver)}canAcceptFormFieldDisconnectedOperation(t){return this.invalidFieldPathMap.has(t.host)}async updateInvalidFieldPath(t){this.invalidFieldPathMap.delete(t.host),this.pendingValidFieldPathMap.delete(t.host)}shouldVisitElement(t,e,i){return this.getFormFieldName(t)&&(!e||!t.disabled)&&(!i||x(t))}getFormFieldValue(t){return void 0===t.value?t.getAttribute("value"):t.value}async handleChildFormFieldElementValid(t,e){const i=w.getSubject(t,P),{isValid:s,message:a}=await new Promise((s=>{const a=setTimeout((()=>{s({isValid:!0,message:""})}),2e3);o.notify(i,{host:t,message:e,promiseResolve:s,timerId:a})}));return{isValid:s,message:a}}}L([u()],Q.prototype,"host",void 0),L([u({writable:!0})],Q.prototype,"isValid",void 0),L([u({writable:!0})],Q.prototype,"isTouched",void 0),L([v()],Q.prototype,"childNotifyObserver",void 0),L([v()],Q.prototype,"childNodeValueChangeObserver",void 0),L([f("connectedCallback")],Q.prototype,"connectedCallback",null),L([f("disconnectedCallback")],Q.prototype,"disconnectedCallback",null),L([f("getValue")],Q.prototype,"getValue",null),L([f("setValue")],Q.prototype,"setValue",null),L([f("valid")],Q.prototype,"valid",null);var X=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};class Y extends p{connectedCallback(){this.registerFormResetChangeManager()}disconnectedCallback(){this.unregisterFormResetChangeManager()}async reset(t={},e){await this.vegaFormFieldController.navigateVegaFormChildren((async(i,s)=>{const a=this.vegaFormFieldController.getFormFieldName(i);s&&await i.reset(t[a]||{},e)}),e),o.notify(h,{host:this.host,defaultValueMap:t,option:e}),this.vegaFormFieldController.setIsTouched(!1)}registerFormResetChangeManager(){var t;const e=null!==(t=A(this.host,"vega-form",{outerMost:!0}))&&void 0!==t?t:this.host;this.formResetEventObserver=new I(this.canAcceptFormResetEvent.bind(this),this.handleResetEvents.bind(this)),o.register(w.getSubject(e,B),this.formResetEventObserver)}unregisterFormResetChangeManager(){var t;const e=null!==(t=A(this.host,"vega-form",{outerMost:!0}))&&void 0!==t?t:this.host;o.unregister(w.getSubject(e,B),this.formResetEventObserver)}canAcceptFormResetEvent(t){return this.vegaFormFieldController.isElementInCurrentForm(t.host)}async handleResetEvents(){await this.host.reset(),this.resetEventEmitter.emit()}}X([u()],Y.prototype,"host",void 0),X([u()],Y.prototype,"vegaFormFieldController",void 0),X([u()],Y.prototype,"resetEventEmitter",void 0),X([f("connectedCallback")],Y.prototype,"connectedCallback",null),X([f("disconnectedCallback")],Y.prototype,"disconnectedCallback",null),X([f("reset")],Y.prototype,"reset",null);var Z=function(t,e,i,s){var a,o=arguments.length,n=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const tt=class{constructor(t){e(this,t),this.vegaValidate=i(this,"vegaValidate",7),this.validate=i(this,"validate",7),this.vegaFormSubmit=i(this,"vegaFormSubmit",7),this.formSubmit=i(this,"formSubmit",7),this.vegaFormReset=i(this,"vegaFormReset",7),this.formReset=i(this,"formReset",7),this.globalSlimmers={},this.submitEventEmitter=V(tt,y),this.resetEventEmitter=V(tt,C),this.validateEventEmitter=V(tt,R),this.disableBlurValidationNotifySlimmer=O(tt,"disableBlurValidation","watchDisableBlurValidation"),this.stateController=new z,this.childEventPrevent=new F([y,C],(()=>this.host.querySelector("vega-form")),{customPreventHandle:t=>{t.stopPropagation()}}),this.childFormValidateEventPrevent=new F([R],(()=>this.host),{customPreventHandle:t=>{t.stopPropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new j,this.vegaFormFieldValidationStateController=new U,this.nativeFormRenderer=new q,this.vegaFormSubmitController=new K,this.vegaFormResetController=new Y,this.vegaFormFieldController=new Q,this.isValid=null,this.isTouched=!1,this.disableBlurValidation=!1,this.useNativeForm=!1,this.method="get"}watchIsValid(){this.validateEventEmitter.emit(this.isValid),o.notify(r,{host:this.host,detail:this.isValid})}watchDisableBlurValidation(){}async valid(t=!0){return b(t)}async getValue(t){return b(t)}async setValue(t,e){}async reset(t={},e){}async setValidationStates(t){}render(){return m(t(s,null,this.useNativeForm?this.nativeFormRenderer.render():t("slot",null)),this.host)}get host(){return a(this)}static get watchers(){return{isValid:["watchIsValid"],disableBlurValidation:["watchDisableBlurValidation"]}}};Z([g()],tt.prototype,"globalSlimmers",void 0),Z([v()],tt.prototype,"submitEventEmitter",void 0),Z([v()],tt.prototype,"resetEventEmitter",void 0),Z([v()],tt.prototype,"validateEventEmitter",void 0),Z([v()],tt.prototype,"disableBlurValidationNotifySlimmer",void 0),Z([v()],tt.prototype,"stateController",void 0),Z([v()],tt.prototype,"childEventPrevent",void 0),Z([v()],tt.prototype,"childFormValidateEventPrevent",void 0),Z([v()],tt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Z([v()],tt.prototype,"vegaFormFieldValidationStateController",void 0),Z([v()],tt.prototype,"nativeFormRenderer",void 0),Z([v()],tt.prototype,"vegaFormSubmitController",void 0),Z([v()],tt.prototype,"vegaFormResetController",void 0),Z([v()],tt.prototype,"vegaFormFieldController",void 0),tt.style=":host{display:block}";export{tt as vega_form}