@globalpayments/vega 2.63.1 → 2.64.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 (351) hide show
  1. package/dist/cjs/{app-globals-2d0b157e.js → app-globals-a190cd2d.js} +9 -9
  2. package/dist/cjs/{brand-switch-state-controller-slimmer-b83a4596.js → brand-switch-state-controller-slimmer-5efa1b24.js} +1 -1
  3. package/dist/cjs/{code-block-cc740807.js → code-block-417a131b.js} +11 -15
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-0bb81172.js → component-value-history-controller-slimmer.abstract-0c4d1453.js} +3 -3
  5. package/dist/cjs/{dark-mode-state-controller-slimmer-17022f93.js → dark-mode-state-controller-slimmer-add5d8a8.js} +1 -1
  6. package/dist/cjs/{dark-mode-style-controller-b1e9ec82.js → dark-mode-style-controller-41c94aac.js} +1 -1
  7. package/dist/cjs/{design-token-bf913c86.js → design-token-ae0de304.js} +1 -1
  8. package/dist/cjs/{dto-renderer-manager-424c5031.js → dto-renderer-manager-6d338e46.js} +9 -4
  9. package/dist/cjs/{element-appender-slimmer-1d035b1f.js → element-appender-slimmer-5a23e722.js} +4 -4
  10. package/dist/cjs/{form-field-controller-slimmer-cc6e53a4.js → form-field-controller-slimmer-cceb5c79.js} +4 -4
  11. package/dist/cjs/{image-annotation-action-f831e09b.js → image-annotation-action-9785bc59.js} +4 -4
  12. package/dist/cjs/{index-00ba6623.js → index-58ea899e.js} +1 -0
  13. package/dist/cjs/{index-5505e8dd.js → index-9a92abce.js} +1 -1
  14. package/dist/cjs/index.cjs.js +13 -13
  15. package/dist/cjs/{language-extension-cfe0eabd.js → language-extension-abbc251a.js} +2 -2
  16. package/dist/cjs/loader.cjs.js +12 -12
  17. package/dist/cjs/{public-rules-7e9b633d.js → public-rules-ffc5db13.js} +6 -6
  18. package/dist/cjs/{range-44f08955.js → range-37161c00.js} +1 -1
  19. package/dist/cjs/{responsive-format-facade-a7fbefc4.js → responsive-format-facade-b20dad44.js} +4 -4
  20. package/dist/cjs/{rich-text-editor-required-rule-a0618c85.js → rich-text-editor-required-rule-604ea2b9.js} +1 -1
  21. package/dist/cjs/{static-subject-title-85732e0f.js → static-subject-title-7e7d791a.js} +0 -2
  22. package/dist/cjs/{string-input-formatter-slimmer-f6c7a255.js → string-input-formatter-slimmer-8445abc9.js} +2 -2
  23. package/dist/cjs/{style-formatter-795451f2.js → style-formatter-56751462.js} +1 -1
  24. package/dist/cjs/{sub-state-notify-slimmer-bb64fcfc.js → sub-state-notify-slimmer-52fa23af.js} +1 -1
  25. package/dist/cjs/{sub-state-observer-slimmer-84175d61.js → sub-state-observer-slimmer-90c26113.js} +1 -1
  26. package/dist/cjs/{token-extension-4764d5f3.js → token-extension-46821c19.js} +3 -3
  27. package/dist/cjs/{translation-cde4dce3.js → translation-ecfc704a.js} +1 -1
  28. package/dist/cjs/{translation-slimmer-af399096.js → translation-slimmer-40a3536d.js} +1 -1
  29. package/dist/cjs/vega-accordion.cjs.entry.js +10 -10
  30. package/dist/cjs/vega-app-footer.cjs.entry.js +4 -4
  31. package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -10
  32. package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
  33. package/dist/cjs/vega-banner.cjs.entry.js +1 -1
  34. package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
  35. package/dist/cjs/vega-box.cjs.entry.js +11 -11
  36. package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
  37. package/dist/cjs/vega-breadcrumb.cjs.entry.js +1 -1
  38. package/dist/cjs/vega-button-circle.cjs.entry.js +10 -10
  39. package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
  40. package/dist/cjs/vega-button-link.cjs.entry.js +1 -1
  41. package/dist/cjs/vega-button.cjs.entry.js +9 -9
  42. package/dist/cjs/vega-calendar_4.cjs.entry.js +29 -21
  43. package/dist/cjs/vega-card.cjs.entry.js +10 -10
  44. package/dist/cjs/vega-carousel.cjs.entry.js +9 -9
  45. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  46. package/dist/cjs/vega-chip.cjs.entry.js +10 -10
  47. package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
  48. package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
  49. package/dist/cjs/vega-combo-box.cjs.entry.js +6 -6
  50. package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
  51. package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
  52. package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -10
  53. package/dist/cjs/vega-divider.cjs.entry.js +10 -10
  54. package/dist/cjs/vega-dropdown_5.cjs.entry.js +13 -13
  55. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  56. package/dist/cjs/vega-field-error.cjs.entry.js +2 -2
  57. package/dist/cjs/vega-field-label.cjs.entry.js +1 -1
  58. package/dist/cjs/vega-file-uploader.cjs.entry.js +7 -7
  59. package/dist/cjs/vega-flag-icon.cjs.entry.js +10 -10
  60. package/dist/cjs/vega-flex.cjs.entry.js +11 -11
  61. package/dist/cjs/vega-font.cjs.entry.js +10 -10
  62. package/dist/cjs/vega-form.cjs.entry.js +90 -16
  63. package/dist/cjs/vega-grid.cjs.entry.js +10 -10
  64. package/dist/cjs/vega-hint.cjs.entry.js +1 -1
  65. package/dist/cjs/vega-icon.cjs.entry.js +10 -10
  66. package/dist/cjs/vega-image-uploader.cjs.entry.js +13 -13
  67. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  68. package/dist/cjs/vega-input-numeric.cjs.entry.js +7 -7
  69. package/dist/cjs/vega-input-phone-number.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
  71. package/dist/cjs/vega-input-select.cjs.entry.js +12 -12
  72. package/dist/cjs/vega-input.cjs.entry.js +8 -8
  73. package/dist/cjs/{vega-internal-event-id-9647aaf8.js → vega-internal-event-id-dfd8b802.js} +2 -0
  74. package/dist/cjs/vega-item-toggle.cjs.entry.js +1 -1
  75. package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -13
  76. package/dist/cjs/vega-line-chart.cjs.entry.js +1 -1
  77. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +9 -9
  78. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  79. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
  80. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
  81. package/dist/cjs/vega-pagination.cjs.entry.js +10 -10
  82. package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
  83. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  84. package/dist/cjs/vega-progress-tracker.cjs.entry.js +1 -1
  85. package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
  86. package/dist/cjs/vega-rich-text-content.cjs.entry.js +9 -9
  87. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +18 -22
  88. package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
  89. package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
  90. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +12 -12
  91. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  92. package/dist/cjs/vega-sidenav_3.cjs.entry.js +11 -11
  93. package/dist/cjs/vega-signature-capture.cjs.entry.js +13 -13
  94. package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
  95. package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
  96. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  97. package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
  98. package/dist/cjs/vega-table_8.cjs.entry.js +12 -12
  99. package/dist/cjs/vega-text.cjs.entry.js +1 -1
  100. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  102. package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
  103. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -10
  104. package/dist/cjs/vega.cjs.js +12 -12
  105. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +7 -6
  106. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +6 -7
  107. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +15 -5
  108. package/dist/collection/components/vega-form/slimmers/renderers/native-form-renderer.js +30 -0
  109. package/dist/collection/components/vega-form/vega-form.js +111 -3
  110. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +1 -1
  111. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +5 -7
  112. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -5
  113. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +7 -2
  114. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +1 -5
  115. package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +9 -1
  116. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +1 -1
  117. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +51 -40
  118. package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +0 -1
  119. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  120. package/dist/esm/{app-globals-2623304e.js → app-globals-b074e012.js} +9 -9
  121. package/dist/esm/{brand-switch-state-controller-slimmer-d6e4d217.js → brand-switch-state-controller-slimmer-05c85e6d.js} +1 -1
  122. package/dist/esm/{code-block-23e7f8d0.js → code-block-a6c78bbb.js} +11 -15
  123. package/dist/esm/{component-value-history-controller-slimmer.abstract-df25e4a1.js → component-value-history-controller-slimmer.abstract-d37d2df7.js} +3 -3
  124. package/dist/esm/{dark-mode-state-controller-slimmer-0c7d1c77.js → dark-mode-state-controller-slimmer-f1c2c299.js} +1 -1
  125. package/dist/esm/{dark-mode-style-controller-972e1f06.js → dark-mode-style-controller-5cf1c482.js} +1 -1
  126. package/dist/esm/{design-token-0f439510.js → design-token-6f9e70c4.js} +1 -1
  127. package/dist/esm/{dto-renderer-manager-65b7b1b1.js → dto-renderer-manager-5b036e47.js} +9 -4
  128. package/dist/esm/{element-appender-slimmer-bf5ca501.js → element-appender-slimmer-1d6c2960.js} +4 -4
  129. package/dist/esm/{form-field-controller-slimmer-f7e8845b.js → form-field-controller-slimmer-c29b345f.js} +4 -4
  130. package/dist/esm/{image-annotation-action-af21ea8f.js → image-annotation-action-f6308cf4.js} +4 -4
  131. package/dist/esm/{index-057d0f70.js → index-090d31ca.js} +1 -0
  132. package/dist/esm/{index-7fe93427.js → index-4f26bbd0.js} +1 -1
  133. package/dist/esm/index.js +13 -13
  134. package/dist/esm/{language-extension-d355f9aa.js → language-extension-962c427a.js} +2 -2
  135. package/dist/esm/loader.js +12 -12
  136. package/dist/esm/{public-rules-1a5da7bf.js → public-rules-6fa7533f.js} +6 -6
  137. package/dist/esm/{range-fac2962c.js → range-4d7aa0fd.js} +1 -1
  138. package/dist/esm/{responsive-format-facade-2904b456.js → responsive-format-facade-b594fc72.js} +4 -4
  139. package/dist/esm/{rich-text-editor-required-rule-bb94d680.js → rich-text-editor-required-rule-a72374cd.js} +1 -1
  140. package/dist/esm/{static-subject-title-633b3474.js → static-subject-title-ca83d6b6.js} +1 -2
  141. package/dist/esm/{string-input-formatter-slimmer-69117deb.js → string-input-formatter-slimmer-75256a17.js} +2 -2
  142. package/dist/esm/{style-formatter-a724e38d.js → style-formatter-56074ede.js} +1 -1
  143. package/dist/esm/{sub-state-notify-slimmer-4252a90e.js → sub-state-notify-slimmer-85c658b7.js} +1 -1
  144. package/dist/esm/{sub-state-observer-slimmer-baa8853a.js → sub-state-observer-slimmer-e58a2485.js} +1 -1
  145. package/dist/esm/{token-extension-89eeef74.js → token-extension-3c198013.js} +3 -3
  146. package/dist/esm/{translation-833d9ef4.js → translation-3d35961b.js} +1 -1
  147. package/dist/esm/{translation-slimmer-c83b52c1.js → translation-slimmer-d5b0d292.js} +1 -1
  148. package/dist/esm/vega-accordion.entry.js +10 -10
  149. package/dist/esm/vega-app-footer.entry.js +4 -4
  150. package/dist/esm/vega-app-header-button.entry.js +10 -10
  151. package/dist/esm/vega-backdrop.entry.js +1 -1
  152. package/dist/esm/vega-banner.entry.js +1 -1
  153. package/dist/esm/vega-bar-chart.entry.js +1 -1
  154. package/dist/esm/vega-box.entry.js +11 -11
  155. package/dist/esm/vega-brand-logo.entry.js +4 -4
  156. package/dist/esm/vega-breadcrumb.entry.js +1 -1
  157. package/dist/esm/vega-button-circle.entry.js +10 -10
  158. package/dist/esm/vega-button-group_2.entry.js +4 -4
  159. package/dist/esm/vega-button-link.entry.js +1 -1
  160. package/dist/esm/vega-button.entry.js +9 -9
  161. package/dist/esm/vega-calendar_4.entry.js +30 -22
  162. package/dist/esm/vega-card.entry.js +10 -10
  163. package/dist/esm/vega-carousel.entry.js +9 -9
  164. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  165. package/dist/esm/vega-chip.entry.js +10 -10
  166. package/dist/esm/vega-code-block.entry.js +9 -9
  167. package/dist/esm/vega-color-picker.entry.js +6 -6
  168. package/dist/esm/vega-combo-box.entry.js +6 -6
  169. package/dist/esm/vega-counter-badge.entry.js +1 -1
  170. package/dist/esm/vega-date-picker_2.entry.js +15 -15
  171. package/dist/esm/vega-dialog_2.entry.js +10 -10
  172. package/dist/esm/vega-divider.entry.js +10 -10
  173. package/dist/esm/vega-dropdown_5.entry.js +13 -13
  174. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  175. package/dist/esm/vega-field-error.entry.js +2 -2
  176. package/dist/esm/vega-field-label.entry.js +1 -1
  177. package/dist/esm/vega-file-uploader.entry.js +7 -7
  178. package/dist/esm/vega-flag-icon.entry.js +10 -10
  179. package/dist/esm/vega-flex.entry.js +11 -11
  180. package/dist/esm/vega-font.entry.js +10 -10
  181. package/dist/esm/vega-form.entry.js +90 -16
  182. package/dist/esm/vega-grid.entry.js +10 -10
  183. package/dist/esm/vega-hint.entry.js +1 -1
  184. package/dist/esm/vega-icon.entry.js +10 -10
  185. package/dist/esm/vega-image-uploader.entry.js +13 -13
  186. package/dist/esm/vega-input-credit-card.entry.js +6 -6
  187. package/dist/esm/vega-input-numeric.entry.js +7 -7
  188. package/dist/esm/vega-input-phone-number.entry.js +10 -10
  189. package/dist/esm/vega-input-range.entry.js +7 -7
  190. package/dist/esm/vega-input-select.entry.js +12 -12
  191. package/dist/esm/vega-input.entry.js +8 -8
  192. package/dist/esm/{vega-internal-event-id-5a143cd2.js → vega-internal-event-id-bee7946b.js} +2 -1
  193. package/dist/esm/vega-item-toggle.entry.js +1 -1
  194. package/dist/esm/vega-left-nav_5.entry.js +13 -13
  195. package/dist/esm/vega-line-chart.entry.js +1 -1
  196. package/dist/esm/vega-loader-wrapper_2.entry.js +9 -9
  197. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  198. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +2 -2
  199. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +5 -5
  200. package/dist/esm/vega-pagination.entry.js +10 -10
  201. package/dist/esm/vega-pie-chart.entry.js +1 -1
  202. package/dist/esm/vega-popover_2.entry.js +11 -11
  203. package/dist/esm/vega-progress-tracker.entry.js +1 -1
  204. package/dist/esm/vega-radio_2.entry.js +6 -6
  205. package/dist/esm/vega-rich-text-content.entry.js +9 -9
  206. package/dist/esm/vega-rich-text-editor_4.entry.js +18 -22
  207. package/dist/esm/vega-section-title.entry.js +1 -1
  208. package/dist/esm/vega-segment-control.entry.js +1 -1
  209. package/dist/esm/vega-selection-chip_2.entry.js +12 -12
  210. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  211. package/dist/esm/vega-sidenav_3.entry.js +11 -11
  212. package/dist/esm/vega-signature-capture.entry.js +13 -13
  213. package/dist/esm/vega-skeleton.entry.js +1 -1
  214. package/dist/esm/vega-slot-container.entry.js +1 -1
  215. package/dist/esm/vega-stepper.entry.js +6 -6
  216. package/dist/esm/vega-tab-group_2.entry.js +2 -2
  217. package/dist/esm/vega-table_8.entry.js +12 -12
  218. package/dist/esm/vega-text.entry.js +1 -1
  219. package/dist/esm/vega-textarea.entry.js +6 -6
  220. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  221. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  222. package/dist/esm/vega-tooltip_2.entry.js +10 -10
  223. package/dist/esm/vega.js +12 -12
  224. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +3 -0
  225. package/dist/types/components/vega-form/slimmers/renderers/native-form-renderer.d.ts +12 -0
  226. package/dist/types/components/vega-form/vega-form.d.ts +35 -0
  227. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -1
  228. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -2
  229. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +2 -1
  230. package/dist/types/components.d.ts +30 -0
  231. package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +1 -2
  232. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  233. package/dist/vega/index.esm.js +1 -1
  234. package/dist/vega/{p-81765b4b.entry.js → p-04158119.entry.js} +1 -1
  235. package/dist/vega/{p-66199d68.js → p-06b624e6.js} +1 -1
  236. package/dist/vega/p-06e6be0e.js +1 -0
  237. package/dist/vega/{p-476cc642.entry.js → p-0b38a01f.entry.js} +1 -1
  238. package/dist/vega/p-0b92b15b.entry.js +1 -0
  239. package/dist/vega/{p-5e4fb663.entry.js → p-0bb3be0b.entry.js} +1 -1
  240. package/dist/vega/{p-c61f8ca6.entry.js → p-0f2c83a1.entry.js} +1 -1
  241. package/dist/vega/{p-427b2b55.entry.js → p-1110b422.entry.js} +1 -1
  242. package/dist/vega/{p-5397648b.entry.js → p-119430db.entry.js} +1 -1
  243. package/dist/vega/{p-6585cfd5.entry.js → p-15766433.entry.js} +1 -1
  244. package/dist/vega/{p-320cccc5.entry.js → p-159fda34.entry.js} +1 -1
  245. package/dist/vega/{p-0ec14fbc.entry.js → p-1655b920.entry.js} +1 -1
  246. package/dist/vega/{p-25c831a4.entry.js → p-179693f1.entry.js} +1 -1
  247. package/dist/vega/p-1aba48bc.js +1 -0
  248. package/dist/vega/{p-4f21faf1.js → p-1be68fba.js} +1 -1
  249. package/dist/vega/{p-e0729c4d.entry.js → p-1cb87bad.entry.js} +1 -1
  250. package/dist/vega/{p-6180c1af.entry.js → p-1d3a7be6.entry.js} +1 -1
  251. package/dist/vega/{p-5313d0bc.js → p-2044aa2c.js} +1 -1
  252. package/dist/vega/{p-2591f217.entry.js → p-21a480b0.entry.js} +1 -1
  253. package/dist/vega/{p-614e450a.entry.js → p-3176804b.entry.js} +1 -1
  254. package/dist/vega/{p-648134d2.entry.js → p-32058dbd.entry.js} +1 -1
  255. package/dist/vega/{p-5970369e.entry.js → p-32655cfc.entry.js} +1 -1
  256. package/dist/vega/{p-c2377afa.js → p-3354f5a7.js} +1 -1
  257. package/dist/vega/p-3355ec0f.js +1 -0
  258. package/dist/vega/{p-02b29c18.js → p-3674db0f.js} +1 -1
  259. package/dist/vega/p-36f331bf.entry.js +1 -0
  260. package/dist/vega/p-3709b0e0.js +1 -0
  261. package/dist/vega/{p-e513f041.js → p-37fd7a80.js} +1 -1
  262. package/dist/vega/{p-0717073b.entry.js → p-3a0b9e66.entry.js} +1 -1
  263. package/dist/vega/{p-dcae53cf.entry.js → p-3a455ac3.entry.js} +1 -1
  264. package/dist/vega/{p-7cd2fac8.entry.js → p-3a9aa6eb.entry.js} +1 -1
  265. package/dist/vega/{p-89d2cf34.js → p-3af81271.js} +1 -1
  266. package/dist/vega/{p-b110b7bd.entry.js → p-3eaa6cce.entry.js} +1 -1
  267. package/dist/vega/{p-40924882.entry.js → p-4082fa22.entry.js} +1 -1
  268. package/dist/vega/{p-9b2d8516.entry.js → p-459efe39.entry.js} +1 -1
  269. package/dist/vega/p-465a6660.entry.js +1 -0
  270. package/dist/vega/{p-2a1b3108.entry.js → p-4669ce11.entry.js} +1 -1
  271. package/dist/vega/{p-3ab20f9e.entry.js → p-4ae3eebf.entry.js} +1 -1
  272. package/dist/vega/{p-8a484812.entry.js → p-4b57bb12.entry.js} +1 -1
  273. package/dist/vega/{p-cc5a3a1b.entry.js → p-4dd6554e.entry.js} +1 -1
  274. package/dist/vega/p-4e503e23.entry.js +1 -0
  275. package/dist/vega/{p-2f88ba36.entry.js → p-4faa7bab.entry.js} +1 -1
  276. package/dist/vega/{p-9c309b85.entry.js → p-52b0abb5.entry.js} +1 -1
  277. package/dist/vega/{p-6244b0ad.entry.js → p-5443d614.entry.js} +1 -1
  278. package/dist/vega/{p-f92fc49b.entry.js → p-55c26035.entry.js} +1 -1
  279. package/dist/vega/{p-76c7538a.entry.js → p-56b8ffd5.entry.js} +1 -1
  280. package/dist/vega/p-5773a9a3.js +1 -0
  281. package/dist/vega/{p-de1ee131.entry.js → p-57c42c30.entry.js} +1 -1
  282. package/dist/vega/{p-57257de0.entry.js → p-5910be31.entry.js} +1 -1
  283. package/dist/vega/p-5f377954.js +1 -1
  284. package/dist/vega/p-6163818f.js +1 -0
  285. package/dist/vega/{p-09cb98f3.entry.js → p-61966868.entry.js} +1 -1
  286. package/dist/vega/p-641fbb48.entry.js +1 -0
  287. package/dist/vega/{p-7bad6577.entry.js → p-64e949fa.entry.js} +1 -1
  288. package/dist/vega/{p-2d58cf34.entry.js → p-684391a4.entry.js} +1 -1
  289. package/dist/vega/{p-ab29f968.js → p-697acd40.js} +1 -1
  290. package/dist/vega/p-6be16084.js +1 -0
  291. package/dist/vega/{p-b6c51409.entry.js → p-6c85c1f3.entry.js} +1 -1
  292. package/dist/vega/{p-56ff8559.entry.js → p-6ed663d5.entry.js} +1 -1
  293. package/dist/vega/{p-3be7bfee.entry.js → p-7aae9252.entry.js} +1 -1
  294. package/dist/vega/{p-b32f7aac.entry.js → p-7c75ce6c.entry.js} +1 -1
  295. package/dist/vega/{p-d87c3058.entry.js → p-84eabbec.entry.js} +1 -1
  296. package/dist/vega/{p-02a4732a.js → p-8938b5c4.js} +1 -1
  297. package/dist/vega/{p-846ae5fb.js → p-904d1b43.js} +1 -1
  298. package/dist/vega/{p-20223e8e.entry.js → p-92ec4fac.entry.js} +1 -1
  299. package/dist/vega/{p-b4d88fce.entry.js → p-956a5899.entry.js} +1 -1
  300. package/dist/vega/{p-0e954b9b.js → p-96bda7ca.js} +1 -1
  301. package/dist/vega/{p-bc0ae89a.entry.js → p-9819dda9.entry.js} +1 -1
  302. package/dist/vega/{p-942fc9b9.js → p-a1cf29a9.js} +1 -1
  303. package/dist/vega/{p-bdd9ef3b.js → p-a30ebdf5.js} +1 -1
  304. package/dist/vega/{p-c7726252.js → p-a3d77013.js} +1 -1
  305. package/dist/vega/{p-cfb2af9c.entry.js → p-a9e3058e.entry.js} +1 -1
  306. package/dist/vega/{p-8175d8de.entry.js → p-ad2055f4.entry.js} +1 -1
  307. package/dist/vega/{p-460429da.entry.js → p-ae963cb3.entry.js} +1 -1
  308. package/dist/vega/{p-92469fa1.entry.js → p-b3cd1992.entry.js} +1 -1
  309. package/dist/vega/{p-da6369d4.entry.js → p-b9e8c6bf.entry.js} +1 -1
  310. package/dist/vega/{p-351405f2.entry.js → p-bb58a7cf.entry.js} +1 -1
  311. package/dist/vega/{p-bb61f015.js → p-be539a54.js} +1 -1
  312. package/dist/vega/{p-589b7ea3.entry.js → p-bf8d2978.entry.js} +1 -1
  313. package/dist/vega/{p-dadc6ab3.js → p-c7f68d74.js} +1 -1
  314. package/dist/vega/p-c8789df1.entry.js +1 -0
  315. package/dist/vega/p-d20ab09f.entry.js +1 -0
  316. package/dist/vega/{p-bf0ced3c.js → p-d3bf55e9.js} +1 -1
  317. package/dist/vega/{p-26ef2066.entry.js → p-db29b9f9.entry.js} +1 -1
  318. package/dist/vega/{p-e74c275a.entry.js → p-df31307b.entry.js} +1 -1
  319. package/dist/vega/{p-4c3075ef.js → p-e27802fb.js} +1 -1
  320. package/dist/vega/{p-134ed822.entry.js → p-e41931d4.entry.js} +1 -1
  321. package/dist/vega/{p-3fba9e77.entry.js → p-e4acac0a.entry.js} +1 -1
  322. package/dist/vega/{p-d15e70d7.entry.js → p-e4b0606a.entry.js} +1 -1
  323. package/dist/vega/{p-36ae2dd3.entry.js → p-e5af5a4d.entry.js} +1 -1
  324. package/dist/vega/{p-10454aa5.entry.js → p-e6158a33.entry.js} +1 -1
  325. package/dist/vega/{p-d72abacd.entry.js → p-e9b86dac.entry.js} +1 -1
  326. package/dist/vega/{p-969066d3.entry.js → p-eb5f99db.entry.js} +1 -1
  327. package/dist/vega/{p-d85b0bfa.entry.js → p-ed0f000b.entry.js} +1 -1
  328. package/dist/vega/p-f37558c1.js +1 -0
  329. package/dist/vega/{p-81fbf18f.entry.js → p-f4877bee.entry.js} +1 -1
  330. package/dist/vega/{p-64c281ec.entry.js → p-f81f2071.entry.js} +1 -1
  331. package/dist/vega/{p-4f5a2b0c.entry.js → p-fd2d02ea.entry.js} +1 -1
  332. package/dist/vega/{p-0bc93777.entry.js → p-ffc2ef90.entry.js} +1 -1
  333. package/dist/vega/{p-b73532c0.entry.js → p-fff13ed1.entry.js} +1 -1
  334. package/dist/vega/vega.esm.js +1 -1
  335. package/package.json +1 -1
  336. package/dist/vega/p-079f5d94.entry.js +0 -1
  337. package/dist/vega/p-0b36f4ce.js +0 -1
  338. package/dist/vega/p-0e3cd270.entry.js +0 -1
  339. package/dist/vega/p-258f9603.js +0 -1
  340. package/dist/vega/p-2b90fae6.js +0 -1
  341. package/dist/vega/p-51d40b0d.entry.js +0 -1
  342. package/dist/vega/p-521ace2d.js +0 -1
  343. package/dist/vega/p-657446a3.entry.js +0 -1
  344. package/dist/vega/p-6908117a.js +0 -1
  345. package/dist/vega/p-893d5dfa.js +0 -1
  346. package/dist/vega/p-8a6b820a.entry.js +0 -1
  347. package/dist/vega/p-8a877e12.js +0 -1
  348. package/dist/vega/p-9ffd2a96.entry.js +0 -1
  349. package/dist/vega/p-b1054e18.entry.js +0 -1
  350. package/dist/vega/p-e5cd6521.js +0 -1
  351. /package/dist/vega/{p-48a58baf.js → p-6b2342e0.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,g as h}from"./p-48a58baf.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 f,I as u}from"./p-d849e0f5.js";import{F as g}from"./p-c7726252.js";import{b as _}from"./p-8a877e12.js";import{C as A}from"./p-2d0d575f.js";import{c as E}from"./p-3cdbee7e.js";import{C as M}from"./p-1da54ff3.js";import{f as I,E as w,C as D,D as C}from"./p-2ee4def0.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-575235c8.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-0e954b9b.js";import"./p-bf0ced3c.js";import"./p-7d9cd9c8.js";import"./p-b75ee3ba.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-bdd9ef3b.js";import"./p-f1436035.js";import"./p-5f377954.js";import"./p-867a4970.js";const b=[{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")}}}],j=[{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 N 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 b.filter((i=>i.pattern.test(t)))[0]}}class y extends N{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 N{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 f(j),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 b.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([u()],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 f,I as u}from"./p-d849e0f5.js";import{F as g}from"./p-a3d77013.js";import{b as _}from"./p-5773a9a3.js";import{C as A}from"./p-2d0d575f.js";import{c as E}from"./p-3cdbee7e.js";import{C as M}from"./p-1da54ff3.js";import{f as I,E as w,C as D,D as C}from"./p-2ee4def0.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-575235c8.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-96bda7ca.js";import"./p-d3bf55e9.js";import"./p-7d9cd9c8.js";import"./p-b75ee3ba.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-a30ebdf5.js";import"./p-f1436035.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")}}}],b=[{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 N 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 N{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 N{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 f(b),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([u()],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 +1 @@
1
- import{V as t}from"./p-e5cd6521.js";import{h as s,i as e}from"./p-89d2cf34.js";import"./p-6e1ab235.js";class i extends s{constructor(t,s,e){super(),this.languageList=[],this.selectedLanguage="Select Language",this.labelRef=null,this.handleDropdownClick=t=>{this.setSelectedLanguage(t),"function"==typeof this.languageChangeCallback&&this.languageChangeCallback(this.selectedLanguage)},this.languageList=t,this.selectedLanguage=e,this.languageChangeCallback=s}setSelectedLanguage(t){this.selectedLanguage=t,this.labelRef&&(this.labelRef.textContent=this.getLanguageLabelByKey(t))}isHidden(){return!1}render(t,s){return this.renderDropdown(t,s,{source:this.languageList},[this.renderButton(t,s,{label:this.getLanguageLabelByKey(this.selectedLanguage),showArrowIcon:!0})])}renderButtonLabel(t,s,e){return t("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(s)?"text-disabled":"text-primary",ref:t=>this.labelRef=t},e)}handleButtonClick(t){}getLanguageLabelByKey(t){return this.languageList.find((s=>s.key===t)).label}}class h extends e{constructor(t,s){super(),this.languageState={selectedLanguage:"",contentMap:{}},this.languageChangeCallBack=t=>{const s=this.languageState.selectedLanguage;this.extensionContext&&s&&(this.languageState.contentMap[s]=this.getRTELatestValue(this.extensionContext.host)),this.languageState.selectedLanguage=t,this.applyLanguageContent(t,this.languageState.contentMap)},s&&(this.languageState=Object.assign(Object.assign({},this.languageState),s)),!this.languageState.selectedLanguage&&t.length>0&&(this.languageState.selectedLanguage=t[0].key),this.languageToolbarButtonRenderer=new i(t,this.languageChangeCallBack,this.languageState.selectedLanguage),this.registerToolbarButtonRenderer("languages",this.languageToolbarButtonRenderer)}initialExtension(t){super.initialExtension(t);const{selectedLanguage:s,contentMap:e}=this.languageState;e&&e[s]&&this.applyLanguageContent(this.languageState.selectedLanguage,this.languageState.contentMap)}setState(t){const{selectedLanguage:s,contentMap:e}=t;this.languageToolbarButtonRenderer.setSelectedLanguage(s),this.languageState.selectedLanguage=s,this.languageState.contentMap=Object.assign({},e),this.applyLanguageContent(s,e)}getState(){const{selectedLanguage:t,contentMap:s}=this.languageState;return this.extensionContext&&(s[t]=this.getRTELatestValue(this.extensionContext.host)),this.languageState}applyLanguageContent(s,e){if(this.extensionContext&&e){let i=e[s];const{host:h,flushValue:n}=this.extensionContext;i=i?i instanceof t?i:t.fromJSON(i,h.sourceEditConfig):t.createEmptyContent(),h.value!==i&&n(i,!0)}}getRTELatestValue(s){let e=s.value;if(this.extensionContext&&this.extensionContext.isSourceEditMode()&&s.shadowRoot){const i=s.shadowRoot.querySelector(".source-view-container vega-code-block");i&&(e=t.fromHtml(i.value.code,{autoMatchFormat:s.sourceEditConfig.autoMatchFormat}))}return e}}export{i as R,h as V}
1
+ import{V as t}from"./p-06e6be0e.js";import{h as s,i as e}from"./p-3af81271.js";import"./p-6e1ab235.js";class i extends s{constructor(t,s,e){super(),this.languageList=[],this.selectedLanguage="Select Language",this.labelRef=null,this.handleDropdownClick=t=>{this.setSelectedLanguage(t),"function"==typeof this.languageChangeCallback&&this.languageChangeCallback(this.selectedLanguage)},this.languageList=t,this.selectedLanguage=e,this.languageChangeCallback=s}setSelectedLanguage(t){this.selectedLanguage=t,this.labelRef&&(this.labelRef.textContent=this.getLanguageLabelByKey(t))}isHidden(){return!1}render(t,s){return this.renderDropdown(t,s,{source:this.languageList},[this.renderButton(t,s,{label:this.getLanguageLabelByKey(this.selectedLanguage),showArrowIcon:!0})])}renderButtonLabel(t,s,e){return t("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(s)?"text-disabled":"text-primary",ref:t=>this.labelRef=t},e)}handleButtonClick(t){}getLanguageLabelByKey(t){return this.languageList.find((s=>s.key===t)).label}}class h extends e{constructor(t,s){super(),this.languageState={selectedLanguage:"",contentMap:{}},this.languageChangeCallBack=t=>{const s=this.languageState.selectedLanguage;this.extensionContext&&s&&(this.languageState.contentMap[s]=this.getRTELatestValue(this.extensionContext.host)),this.languageState.selectedLanguage=t,this.applyLanguageContent(t,this.languageState.contentMap)},s&&(this.languageState=Object.assign(Object.assign({},this.languageState),s)),!this.languageState.selectedLanguage&&t.length>0&&(this.languageState.selectedLanguage=t[0].key),this.languageToolbarButtonRenderer=new i(t,this.languageChangeCallBack,this.languageState.selectedLanguage),this.registerToolbarButtonRenderer("languages",this.languageToolbarButtonRenderer)}initialExtension(t){super.initialExtension(t);const{selectedLanguage:s,contentMap:e}=this.languageState;e&&e[s]&&this.applyLanguageContent(this.languageState.selectedLanguage,this.languageState.contentMap)}setState(t){const{selectedLanguage:s,contentMap:e}=t;this.languageToolbarButtonRenderer.setSelectedLanguage(s),this.languageState.selectedLanguage=s,this.languageState.contentMap=Object.assign({},e),this.applyLanguageContent(s,e)}getState(){const{selectedLanguage:t,contentMap:s}=this.languageState;return this.extensionContext&&(s[t]=this.getRTELatestValue(this.extensionContext.host)),this.languageState}applyLanguageContent(s,e){if(this.extensionContext&&e){let i=e[s];const{host:h,flushValue:n}=this.extensionContext;i=i?i instanceof t?i:t.fromJSON(i,h.sourceEditConfig):t.createEmptyContent(),h.value!==i&&n(i,!0)}}getRTELatestValue(s){let e=s.value;if(this.extensionContext&&this.extensionContext.isSourceEditMode()&&s.shadowRoot){const i=s.shadowRoot.querySelector(".source-view-container vega-code-block");i&&(e=t.fromHtml(i.value.code,{autoMatchFormat:s.sourceEditConfig.autoMatchFormat}))}return e}}export{i as R,h as V}
@@ -1 +1 @@
1
- import{r as t,c as e,h as n,H as i,g as a}from"./p-48a58baf.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as l,I as s}from"./p-d849e0f5.js";import{c as v}from"./p-3cdbee7e.js";import{a as g}from"./p-2ee4def0.js";import{C as b}from"./p-1da54ff3.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-f1436035.js";import"./p-b75ee3ba.js";import"./p-331a62d5.js";import"./p-575235c8.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";const d=[{payloadKey:"EVENTFUL_IS_TRUE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.",payloadValue:t=>!0===t.eventful},{payloadKey:"EVENTFUL_IS_FALSE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.",payloadValue:t=>!1===t.eventful}];var c=function(t,e,n,i){var a,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(e,n,r):a(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r};const h=class{constructor(n){t(this,n),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=v(h,g),this.eventPrevent=new b([g],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new l(d),this.link=h.defaultLink,this.size="default",this.iconType="icon",this.iconAlign="left",this.label="",this.disabled=!1,this.danger=!1,this.eventful=!1,this.target="_self",this.onClick=t=>{(this.isButton()||this.eventful)&&(this.disabled||this.clickEventEmitter.emit(this.host.dataset.key,t).defaultPrevented)&&t.preventDefault()}}componentWillLoad(){this.label||(this.label=this.host.textContent),this.host.innerHTML=""}render(){const t=this.isButton(),e=t?h.defaultLink:this.link;return o(n(i,{class:{"vega-button-link-disabled":this.disabled}},n("a",{part:"link",tabIndex:this.disabled?-1:0,role:t?"button":"link","aria-label":this.label.trim()||"No label defined",href:e,onClick:this.onClick,class:{"vega-button-link":!0,[`vega-button-link-size-${this.size}`]:!0,"vega-button-link-left-button":this.hasIconButton("left"),"vega-button-link-right-button":this.hasIconButton("right"),"vega-button-link-danger":this.danger,icon:!!this.icon,[this.size]:!0},rel:"noopener noreferrer",target:this.target},n("div",{class:"vega-button-link-content"},this.renderContent()))),this.host)}hasIconButton(t){return this.icon&&"button"===this.iconType&&this.iconAlign===t}renderContent(){return this.icon?n("vega-flex",{alignItems:"center",gap:this.getGapByButtonSize(),justifyContent:"center"},"left"===this.iconAlign&&this.renderIcon(),this.renderLabel(),"right"===this.iconAlign&&this.renderIcon()):this.renderLabel()}getGapByButtonSize(){return"large"===this.size?"icon"===this.iconType?"size-8":"size-12":"small"===this.size?"icon"===this.iconType?"size-4":"size-8":"default"===this.size?"size-8":void 0}renderLabel(){return this.label&&n("span",{class:"vega-button-link-label",part:"label-container"},n("vega-text",{part:"label-text"},this.label))}renderIcon(){return n("div",{class:`vega-button-link-${this.iconType} vega-flex-shrink-0 v-min-w-min`},"icon"===this.iconType?this.renderVegaIcon():n("div",{class:"vega-button-link-button-container"},this.renderVegaIcon()))}renderVegaIcon(){return n("vega-icon",{icon:this.icon,size:"large"===this.size?"size-24":"size-16"})}isButton(){return!this.link||this.link===h.defaultLink}get host(){return a(this)}};h.defaultLink="javascript:void(0);",c([s()],h.prototype,"globalSlimmers",void 0),c([r()],h.prototype,"clickEventEmitter",void 0),c([r()],h.prototype,"eventPrevent",void 0),c([r()],h.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),h.style=':host{display:inline-block;position:relative;margin:0px;line-height:normal}a{text-decoration:none;color:rgba(var(--v-text-link, 19, 98, 226, 1));background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));display:inline-block;outline:none}a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}a.default:focus-visible,a.large:focus-visible{border-radius:8px}a.small:focus-visible{border-radius:4px}a.icon:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:4px}a:not(.vega-button-link-danger):visited vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):visited vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:active{text-decoration:none}a:active:hover .vega-button-link-label{text-decoration:none}a.vega-button-link-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}a.vega-button-link-danger:hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-danger:focus-visible{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}a.vega-button-link-danger:focus-visible.default:focus-visible,a.vega-button-link-danger:focus-visible.large:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:4px}a.vega-button-link-danger:focus-visible.small:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}a .vega-button-link-button-container{border-radius:9999px;cursor:pointer;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1));box-sizing:border-box;border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:visited .vega-button-link-button-container{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1));border-color:var(--v-text-link-visited)}a:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a.vega-button-link-danger .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1))}a.vega-button-link-danger:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-size-default .vega-button-link-button-container{width:40px;height:40px;padding:10px}a.vega-button-link-size-large .vega-button-link-button-container{width:56px;height:56px;padding:14px}a.vega-button-link-size-small .vega-button-link-button-container{width:32px;height:32px;padding:6px}a.vega-button-link-size-default .vega-button-link-icon,a.vega-button-link-size-small .vega-button-link-icon{width:16px;height:16px;line-height:16px}a.vega-button-link-size-large .vega-button-link-icon{width:24px;height:24px;line-height:24px}a .vega-button-link-label{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.vega-button-link-disabled){pointer-events:none}:host(.vega-button-link-disabled) a{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));text-decoration:none;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a.vega-button-link .vega-button-link-button-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a:focus>.vega-button-link-content{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}';export{h as vega_button_link}
1
+ import{r as t,c as e,h as n,H as i,g as a}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as l,I as s}from"./p-d849e0f5.js";import{c as v}from"./p-3cdbee7e.js";import{a as g}from"./p-2ee4def0.js";import{C as b}from"./p-1da54ff3.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-f1436035.js";import"./p-b75ee3ba.js";import"./p-331a62d5.js";import"./p-575235c8.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";const d=[{payloadKey:"EVENTFUL_IS_TRUE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.",payloadValue:t=>!0===t.eventful},{payloadKey:"EVENTFUL_IS_FALSE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.",payloadValue:t=>!1===t.eventful}];var c=function(t,e,n,i){var a,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(e,n,r):a(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r};const h=class{constructor(n){t(this,n),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=v(h,g),this.eventPrevent=new b([g],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new l(d),this.link=h.defaultLink,this.size="default",this.iconType="icon",this.iconAlign="left",this.label="",this.disabled=!1,this.danger=!1,this.eventful=!1,this.target="_self",this.onClick=t=>{(this.isButton()||this.eventful)&&(this.disabled||this.clickEventEmitter.emit(this.host.dataset.key,t).defaultPrevented)&&t.preventDefault()}}componentWillLoad(){this.label||(this.label=this.host.textContent),this.host.innerHTML=""}render(){const t=this.isButton(),e=t?h.defaultLink:this.link;return o(n(i,{class:{"vega-button-link-disabled":this.disabled}},n("a",{part:"link",tabIndex:this.disabled?-1:0,role:t?"button":"link","aria-label":this.label.trim()||"No label defined",href:e,onClick:this.onClick,class:{"vega-button-link":!0,[`vega-button-link-size-${this.size}`]:!0,"vega-button-link-left-button":this.hasIconButton("left"),"vega-button-link-right-button":this.hasIconButton("right"),"vega-button-link-danger":this.danger,icon:!!this.icon,[this.size]:!0},rel:"noopener noreferrer",target:this.target},n("div",{class:"vega-button-link-content"},this.renderContent()))),this.host)}hasIconButton(t){return this.icon&&"button"===this.iconType&&this.iconAlign===t}renderContent(){return this.icon?n("vega-flex",{alignItems:"center",gap:this.getGapByButtonSize(),justifyContent:"center"},"left"===this.iconAlign&&this.renderIcon(),this.renderLabel(),"right"===this.iconAlign&&this.renderIcon()):this.renderLabel()}getGapByButtonSize(){return"large"===this.size?"icon"===this.iconType?"size-8":"size-12":"small"===this.size?"icon"===this.iconType?"size-4":"size-8":"default"===this.size?"size-8":void 0}renderLabel(){return this.label&&n("span",{class:"vega-button-link-label",part:"label-container"},n("vega-text",{part:"label-text"},this.label))}renderIcon(){return n("div",{class:`vega-button-link-${this.iconType} vega-flex-shrink-0 v-min-w-min`},"icon"===this.iconType?this.renderVegaIcon():n("div",{class:"vega-button-link-button-container"},this.renderVegaIcon()))}renderVegaIcon(){return n("vega-icon",{icon:this.icon,size:"large"===this.size?"size-24":"size-16"})}isButton(){return!this.link||this.link===h.defaultLink}get host(){return a(this)}};h.defaultLink="javascript:void(0);",c([s()],h.prototype,"globalSlimmers",void 0),c([r()],h.prototype,"clickEventEmitter",void 0),c([r()],h.prototype,"eventPrevent",void 0),c([r()],h.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),h.style=':host{display:inline-block;position:relative;margin:0px;line-height:normal}a{text-decoration:none;color:rgba(var(--v-text-link, 19, 98, 226, 1));background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));display:inline-block;outline:none}a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}a.default:focus-visible,a.large:focus-visible{border-radius:8px}a.small:focus-visible{border-radius:4px}a.icon:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:4px}a:not(.vega-button-link-danger):visited vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):visited vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:active{text-decoration:none}a:active:hover .vega-button-link-label{text-decoration:none}a.vega-button-link-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}a.vega-button-link-danger:hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-danger:focus-visible{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}a.vega-button-link-danger:focus-visible.default:focus-visible,a.vega-button-link-danger:focus-visible.large:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:4px}a.vega-button-link-danger:focus-visible.small:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}a .vega-button-link-button-container{border-radius:9999px;cursor:pointer;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1));box-sizing:border-box;border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:visited .vega-button-link-button-container{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1));border-color:var(--v-text-link-visited)}a:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a.vega-button-link-danger .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1))}a.vega-button-link-danger:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-size-default .vega-button-link-button-container{width:40px;height:40px;padding:10px}a.vega-button-link-size-large .vega-button-link-button-container{width:56px;height:56px;padding:14px}a.vega-button-link-size-small .vega-button-link-button-container{width:32px;height:32px;padding:6px}a.vega-button-link-size-default .vega-button-link-icon,a.vega-button-link-size-small .vega-button-link-icon{width:16px;height:16px;line-height:16px}a.vega-button-link-size-large .vega-button-link-icon{width:24px;height:24px;line-height:24px}a .vega-button-link-label{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.vega-button-link-disabled){pointer-events:none}:host(.vega-button-link-disabled) a{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));text-decoration:none;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a.vega-button-link .vega-button-link-button-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a:focus>.vega-button-link-content{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}';export{h as vega_button_link}