@globalpayments/vega 2.97.0 → 2.98.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 (365) hide show
  1. package/dist/cjs/{app-globals-3f57f7b9.js → app-globals-b3f05631.js} +7 -7
  2. package/dist/cjs/{aria-dialog-focusable-trap-slimmer-73b4c0cb.js → aria-dialog-focusable-trap-slimmer-62147489.js} +1 -1
  3. package/dist/cjs/{code-block-28a7732e.js → code-block-d78c2b2c.js} +15 -8
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-50cdba6e.js → component-value-history-controller-slimmer.abstract-beb00fea.js} +3 -3
  5. package/dist/cjs/constants-907d7d89.js +16 -0
  6. package/dist/cjs/{content-state-e2ab0f06.js → content-state-78a620a9.js} +2 -2
  7. package/dist/cjs/{element-appender-slimmer-ccb2e3c2.js → element-appender-slimmer-597e9e48.js} +1 -1
  8. package/dist/cjs/{form-field-controller-slimmer-58621b5e.js → form-field-controller-slimmer-a743be34.js} +2 -2
  9. package/dist/cjs/{image-annotation-action-b54dc669.js → image-annotation-action-85c4bd83.js} +2 -2
  10. package/dist/cjs/{image-extension-1e3eeaa3.js → image-extension-260fa69c.js} +2 -2
  11. package/dist/cjs/index.cjs.js +9 -9
  12. package/dist/cjs/{link-extension-71c27ff3.js → link-extension-220ff6a9.js} +2 -2
  13. package/dist/cjs/loader.cjs.js +9 -9
  14. package/dist/cjs/{public-rules-55e34d2e.js → public-rules-5657bce4.js} +4 -4
  15. package/dist/cjs/{range-eebe0e3c.js → range-c5afd53a.js} +1 -1
  16. package/dist/cjs/{rich-text-editor-required-rule-4fdee376.js → rich-text-editor-required-rule-385c1b61.js} +1 -1
  17. package/dist/cjs/{split-cell-operation-51097409.js → split-cell-operation-873d5db7.js} +2 -2
  18. package/dist/cjs/{string-input-formatter-slimmer-18d45942.js → string-input-formatter-slimmer-ef65cca7.js} +2 -2
  19. package/dist/cjs/{sub-state-notify-slimmer-18891389.js → sub-state-notify-slimmer-e264a120.js} +1 -1
  20. package/dist/cjs/{sub-state-observer-slimmer-eee2f0ae.js → sub-state-observer-slimmer-6033b824.js} +1 -1
  21. package/dist/cjs/{token-extension-608bbf7b.js → token-extension-78b5a026.js} +6 -6
  22. package/dist/cjs/vega-button-circle.cjs.entry.js +1 -1
  23. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  24. package/dist/cjs/vega-button.cjs.entry.js +1 -1
  25. package/dist/cjs/vega-calendar_5.cjs.entry.js +3 -3
  26. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  27. package/dist/cjs/vega-code-block.cjs.entry.js +8 -21
  28. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  29. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
  31. package/dist/cjs/vega-date-picker_2.cjs.entry.js +7 -7
  32. package/dist/cjs/vega-dialog_2.cjs.entry.js +2 -2
  33. package/dist/cjs/vega-dropdown_5.cjs.entry.js +24 -18
  34. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  35. package/dist/cjs/vega-file-uploader.cjs.entry.js +38 -5
  36. package/dist/cjs/vega-form.cjs.entry.js +3 -3
  37. package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -3
  38. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  39. package/dist/cjs/vega-input-numeric.cjs.entry.js +4 -4
  40. package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-input-select.cjs.entry.js +3 -3
  44. package/dist/cjs/vega-input.cjs.entry.js +12 -7
  45. package/dist/cjs/{vega-internal-event-id-ecc5b87a.js → vega-internal-event-id-f4d33037.js} +2 -0
  46. package/dist/cjs/vega-left-nav_5.cjs.entry.js +3 -3
  47. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  48. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  49. package/dist/cjs/vega-pagination.cjs.entry.js +1 -1
  50. package/dist/cjs/vega-popover_2.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
  52. package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
  54. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +13 -13
  55. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +4 -4
  56. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
  57. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  58. package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
  59. package/dist/cjs/vega-signature-capture.cjs.entry.js +3 -3
  60. package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-table_11.cjs.entry.js +1140 -446
  62. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  63. package/dist/cjs/vega-time-picker_2.cjs.entry.js +4 -4
  64. package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
  65. package/dist/cjs/vega-tooltip_2.cjs.entry.js +2 -2
  66. package/dist/cjs/vega.cjs.js +9 -9
  67. package/dist/cjs/{wait-for-component-did-render-02ca4bee.js → wait-for-component-did-render-44d006ee.js} +1 -1
  68. package/dist/collection/components/vega-accordion/vega-accordion.js +2 -0
  69. package/dist/collection/components/vega-app-footer/vega-app-footer.js +2 -0
  70. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +2 -0
  71. package/dist/collection/components/vega-banner/vega-banner.js +2 -0
  72. package/dist/collection/components/vega-box/vega-box.js +2 -0
  73. package/dist/collection/components/vega-brand-logo/vega-brand-logo.js +2 -0
  74. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +2 -0
  75. package/dist/collection/components/vega-button/vega-button.js +2 -0
  76. package/dist/collection/components/vega-button-circle/vega-button-circle.js +2 -0
  77. package/dist/collection/components/vega-button-group/vega-button-group.js +2 -0
  78. package/dist/collection/components/vega-button-link/vega-button-link.js +2 -0
  79. package/dist/collection/components/vega-calendar/vega-calendar.js +2 -0
  80. package/dist/collection/components/vega-card/vega-card.js +2 -0
  81. package/dist/collection/components/vega-carousel/vega-carousel.js +2 -0
  82. package/dist/collection/components/vega-checkbox/vega-checkbox.js +2 -0
  83. package/dist/collection/components/vega-chip/vega-chip.js +2 -0
  84. package/dist/collection/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.js +4 -17
  85. package/dist/collection/components/vega-color-picker/vega-color-picker.js +2 -0
  86. package/dist/collection/components/vega-combo-box/vega-combo-box.js +2 -0
  87. package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +2 -0
  88. package/dist/collection/components/vega-date-picker/vega-date-picker.js +2 -0
  89. package/dist/collection/components/vega-divider/vega-divider.js +2 -0
  90. package/dist/collection/components/vega-dropdown/constants.js +10 -0
  91. package/dist/collection/components/vega-dropdown/vega-dropdown.js +45 -14
  92. package/dist/collection/components/vega-field-error/vega-field-error.js +2 -0
  93. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.js +22 -2
  94. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +63 -6
  95. package/dist/collection/components/vega-flag-icon/vega-flag-icon.js +2 -0
  96. package/dist/collection/components/vega-flex/vega-flex.js +2 -0
  97. package/dist/collection/components/vega-font/vega-font.js +2 -0
  98. package/dist/collection/components/vega-form/vega-form.js +2 -0
  99. package/dist/collection/components/vega-grid/vega-grid.js +2 -0
  100. package/dist/collection/components/vega-icon/vega-icon.js +2 -0
  101. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +2 -0
  102. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +7 -2
  103. package/dist/collection/components/vega-input/vega-input.js +2 -0
  104. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +2 -0
  105. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +2 -0
  106. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +2 -0
  107. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +2 -0
  108. package/dist/collection/components/vega-input-range/vega-input-range.js +2 -0
  109. package/dist/collection/components/vega-input-select/vega-input-select.js +2 -0
  110. package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +2 -0
  111. package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +2 -0
  112. package/dist/collection/components/vega-modal/vega-modal.js +2 -0
  113. package/dist/collection/components/vega-page-notification/vega-page-notification.js +2 -0
  114. package/dist/collection/components/vega-pagination/vega-pagination.js +2 -0
  115. package/dist/collection/components/vega-popover/vega-popover.js +2 -0
  116. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +2 -0
  117. package/dist/collection/components/vega-radio/vega-radio.js +2 -0
  118. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -0
  119. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -1
  120. package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +10 -6
  121. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +2 -0
  122. package/dist/collection/components/vega-section-title/vega-section-title.js +2 -0
  123. package/dist/collection/components/vega-segment-control/vega-segment-control.js +2 -0
  124. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +2 -0
  125. package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +2 -0
  126. package/dist/collection/components/vega-sidenav/vega-sidenav.js +2 -0
  127. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +2 -0
  128. package/dist/collection/components/vega-skeleton/vega-skeleton.js +2 -0
  129. package/dist/collection/components/vega-stepper/vega-stepper.js +2 -0
  130. package/dist/collection/components/vega-tab-group/vega-tab-group.js +2 -0
  131. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.js +17 -7
  132. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.js +440 -0
  133. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +11 -3
  134. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +207 -17
  135. package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.css +1 -0
  136. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +4 -1
  137. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.css +15 -0
  138. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +1 -1
  139. package/dist/collection/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-template-structure-controller.js +28 -0
  140. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +1 -0
  141. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +68 -4
  142. package/dist/collection/components/vega-table/vega-table.js +15 -0
  143. package/dist/collection/components/vega-textarea/vega-textarea.js +2 -0
  144. package/dist/collection/components/vega-time-picker/vega-time-picker.js +2 -0
  145. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +2 -0
  146. package/dist/collection/components/vega-tooltip/vega-tooltip.js +2 -0
  147. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  148. package/dist/esm/{app-globals-d3991e53.js → app-globals-95c7110a.js} +7 -7
  149. package/dist/esm/{aria-dialog-focusable-trap-slimmer-9eae86c6.js → aria-dialog-focusable-trap-slimmer-f069f54d.js} +1 -1
  150. package/dist/esm/{code-block-8df86434.js → code-block-9c513169.js} +15 -8
  151. package/dist/esm/{component-value-history-controller-slimmer.abstract-e4b95997.js → component-value-history-controller-slimmer.abstract-9cef2a2a.js} +3 -3
  152. package/dist/esm/constants-4725f97f.js +13 -0
  153. package/dist/esm/{content-state-c63fbeda.js → content-state-25c81c08.js} +2 -2
  154. package/dist/esm/{element-appender-slimmer-24be8e94.js → element-appender-slimmer-8a06ecdd.js} +1 -1
  155. package/dist/esm/{form-field-controller-slimmer-d8628837.js → form-field-controller-slimmer-68fc5380.js} +2 -2
  156. package/dist/esm/{image-annotation-action-fcceff95.js → image-annotation-action-d7f2aecc.js} +2 -2
  157. package/dist/esm/{image-extension-3280bdb0.js → image-extension-fbd1ed6e.js} +2 -2
  158. package/dist/esm/index.js +9 -9
  159. package/dist/esm/{link-extension-f92c06ef.js → link-extension-e8ee103e.js} +2 -2
  160. package/dist/esm/loader.js +9 -9
  161. package/dist/esm/{public-rules-3695aaf7.js → public-rules-49de79c7.js} +4 -4
  162. package/dist/esm/{range-717d552d.js → range-b678c693.js} +1 -1
  163. package/dist/esm/{rich-text-editor-required-rule-2e39264a.js → rich-text-editor-required-rule-578e0958.js} +1 -1
  164. package/dist/esm/{split-cell-operation-6c26af91.js → split-cell-operation-1c8e7585.js} +2 -2
  165. package/dist/esm/{string-input-formatter-slimmer-68b2af39.js → string-input-formatter-slimmer-0006a107.js} +2 -2
  166. package/dist/esm/{sub-state-notify-slimmer-0f72ce74.js → sub-state-notify-slimmer-23b7d0e8.js} +1 -1
  167. package/dist/esm/{sub-state-observer-slimmer-64532d94.js → sub-state-observer-slimmer-722f6b92.js} +1 -1
  168. package/dist/esm/{token-extension-5082a4d2.js → token-extension-f2d009e3.js} +6 -6
  169. package/dist/esm/vega-button-circle.entry.js +1 -1
  170. package/dist/esm/vega-button-group_2.entry.js +3 -3
  171. package/dist/esm/vega-button.entry.js +1 -1
  172. package/dist/esm/vega-calendar_5.entry.js +3 -3
  173. package/dist/esm/vega-checkbox_2.entry.js +3 -3
  174. package/dist/esm/vega-code-block.entry.js +8 -21
  175. package/dist/esm/vega-color-picker.entry.js +3 -3
  176. package/dist/esm/vega-color-swatch-picker.entry.js +3 -3
  177. package/dist/esm/vega-combo-box.entry.js +3 -3
  178. package/dist/esm/vega-date-picker_2.entry.js +7 -7
  179. package/dist/esm/vega-dialog_2.entry.js +2 -2
  180. package/dist/esm/vega-dropdown_5.entry.js +20 -14
  181. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  182. package/dist/esm/vega-file-uploader.entry.js +38 -5
  183. package/dist/esm/vega-form.entry.js +3 -3
  184. package/dist/esm/vega-image-uploader.entry.js +3 -3
  185. package/dist/esm/vega-input-credit-card.entry.js +3 -3
  186. package/dist/esm/vega-input-numeric.entry.js +4 -4
  187. package/dist/esm/vega-input-passcode.entry.js +3 -3
  188. package/dist/esm/vega-input-phone-number.entry.js +3 -3
  189. package/dist/esm/vega-input-range.entry.js +3 -3
  190. package/dist/esm/vega-input-select.entry.js +3 -3
  191. package/dist/esm/vega-input.entry.js +12 -7
  192. package/dist/esm/{vega-internal-event-id-827eb1ce.js → vega-internal-event-id-86fce049.js} +2 -1
  193. package/dist/esm/vega-left-nav_5.entry.js +3 -3
  194. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
  195. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  196. package/dist/esm/vega-pagination.entry.js +1 -1
  197. package/dist/esm/vega-popover_2.entry.js +3 -3
  198. package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
  199. package/dist/esm/vega-radio_2.entry.js +3 -3
  200. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  201. package/dist/esm/vega-rich-text-editor_4.entry.js +13 -13
  202. package/dist/esm/vega-rich-text-table-properties_3.entry.js +4 -4
  203. package/dist/esm/vega-selection-chip_2.entry.js +4 -4
  204. package/dist/esm/vega-selection-tile_2.entry.js +4 -4
  205. package/dist/esm/vega-sidenav_3.entry.js +3 -3
  206. package/dist/esm/vega-signature-capture.entry.js +3 -3
  207. package/dist/esm/vega-stepper.entry.js +3 -3
  208. package/dist/esm/vega-table_11.entry.js +1141 -447
  209. package/dist/esm/vega-textarea.entry.js +3 -3
  210. package/dist/esm/vega-time-picker_2.entry.js +4 -4
  211. package/dist/esm/vega-toggle-switch.entry.js +3 -3
  212. package/dist/esm/vega-tooltip_2.entry.js +2 -2
  213. package/dist/esm/vega.js +9 -9
  214. package/dist/esm/{wait-for-component-did-render-0c237cb8.js → wait-for-component-did-render-ff7062aa.js} +1 -1
  215. package/dist/sri/vega-sri-manifest.json +228 -224
  216. package/dist/types/components/vega-accordion/vega-accordion.d.ts +2 -0
  217. package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +2 -0
  218. package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +2 -0
  219. package/dist/types/components/vega-banner/vega-banner.d.ts +2 -0
  220. package/dist/types/components/vega-box/vega-box.d.ts +2 -0
  221. package/dist/types/components/vega-brand-logo/vega-brand-logo.d.ts +2 -0
  222. package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +2 -0
  223. package/dist/types/components/vega-button/vega-button.d.ts +2 -0
  224. package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +2 -0
  225. package/dist/types/components/vega-button-group/vega-button-group.d.ts +2 -0
  226. package/dist/types/components/vega-button-link/vega-button-link.d.ts +2 -0
  227. package/dist/types/components/vega-calendar/vega-calendar.d.ts +2 -0
  228. package/dist/types/components/vega-card/vega-card.d.ts +2 -0
  229. package/dist/types/components/vega-carousel/vega-carousel.d.ts +2 -0
  230. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
  231. package/dist/types/components/vega-chip/vega-chip.d.ts +2 -0
  232. package/dist/types/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.d.ts +2 -1
  233. package/dist/types/components/vega-color-picker/vega-color-picker.d.ts +2 -0
  234. package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +2 -0
  235. package/dist/types/components/vega-counter-badge/vega-counter-badge.d.ts +2 -0
  236. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +2 -0
  237. package/dist/types/components/vega-divider/vega-divider.d.ts +2 -0
  238. package/dist/types/components/vega-dropdown/constants.d.ts +12 -0
  239. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +9 -0
  240. package/dist/types/components/vega-field-error/vega-field-error.d.ts +2 -0
  241. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-file-list-renderer.d.ts +10 -0
  242. package/dist/types/components/vega-file-uploader/types.d.ts +4 -0
  243. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +15 -0
  244. package/dist/types/components/vega-flag-icon/vega-flag-icon.d.ts +2 -0
  245. package/dist/types/components/vega-flex/vega-flex.d.ts +2 -0
  246. package/dist/types/components/vega-font/vega-font.d.ts +2 -0
  247. package/dist/types/components/vega-form/vega-form.d.ts +2 -0
  248. package/dist/types/components/vega-grid/vega-grid.d.ts +2 -0
  249. package/dist/types/components/vega-icon/vega-icon.d.ts +2 -0
  250. package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +2 -0
  251. package/dist/types/components/vega-input/types.d.ts +11 -1
  252. package/dist/types/components/vega-input/vega-input.d.ts +2 -0
  253. package/dist/types/components/vega-input-credit-card/vega-input-credit-card.d.ts +2 -0
  254. package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +2 -0
  255. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +2 -0
  256. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +2 -0
  257. package/dist/types/components/vega-input-range/vega-input-range.d.ts +2 -0
  258. package/dist/types/components/vega-input-select/vega-input-select.d.ts +2 -0
  259. package/dist/types/components/vega-item-toggle/vega-item-toggle.d.ts +2 -0
  260. package/dist/types/components/vega-loading-indicator/vega-loading-indicator.d.ts +2 -0
  261. package/dist/types/components/vega-modal/vega-modal.d.ts +2 -0
  262. package/dist/types/components/vega-page-notification/vega-page-notification.d.ts +2 -0
  263. package/dist/types/components/vega-pagination/vega-pagination.d.ts +2 -0
  264. package/dist/types/components/vega-popover/vega-popover.d.ts +2 -0
  265. package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -0
  266. package/dist/types/components/vega-radio/vega-radio.d.ts +2 -0
  267. package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +7 -0
  268. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
  269. package/dist/types/components/vega-section-title/vega-section-title.d.ts +2 -0
  270. package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +2 -0
  271. package/dist/types/components/vega-selection-chip/vega-selection-chip.d.ts +2 -0
  272. package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +2 -0
  273. package/dist/types/components/vega-sidenav/vega-sidenav.d.ts +2 -0
  274. package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +2 -0
  275. package/dist/types/components/vega-skeleton/vega-skeleton.d.ts +2 -0
  276. package/dist/types/components/vega-stepper/vega-stepper.d.ts +2 -0
  277. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +2 -0
  278. package/dist/types/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.d.ts +8 -4
  279. package/dist/types/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.d.ts +168 -0
  280. package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +8 -1
  281. package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +76 -0
  282. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
  283. package/dist/types/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-template-structure-controller.d.ts +12 -0
  284. package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +19 -0
  285. package/dist/types/components/vega-table/vega-table.d.ts +6 -0
  286. package/dist/types/components/vega-textarea/vega-textarea.d.ts +2 -0
  287. package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +2 -0
  288. package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +2 -0
  289. package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +2 -0
  290. package/dist/types/components.d.ts +54 -0
  291. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  292. package/dist/vega/index.esm.js +1 -1
  293. package/dist/vega/{p-2eb8e167.entry.js → p-02d3ce79.entry.js} +1 -1
  294. package/dist/vega/{p-3488a3f1.entry.js → p-035e2f05.entry.js} +1 -1
  295. package/dist/vega/p-03eeadc1.entry.js +1 -0
  296. package/dist/vega/{p-d2cbcf5e.entry.js → p-085d1647.entry.js} +1 -1
  297. package/dist/vega/{p-36c89520.entry.js → p-0cbf09f7.entry.js} +1 -1
  298. package/dist/vega/{p-1d5e05d9.js → p-0eb29065.js} +1 -1
  299. package/dist/vega/{p-2ff4ae1c.js → p-10d30c03.js} +1 -1
  300. package/dist/vega/{p-4c3a08be.entry.js → p-17c69503.entry.js} +1 -1
  301. package/dist/vega/{p-9be02fa5.js → p-1abd3c17.js} +1 -1
  302. package/dist/vega/{p-98fc5821.entry.js → p-1aedbfd2.entry.js} +1 -1
  303. package/dist/vega/{p-c3646101.entry.js → p-1cff027b.entry.js} +1 -1
  304. package/dist/vega/{p-deaf037a.entry.js → p-2a245138.entry.js} +1 -1
  305. package/dist/vega/{p-a034dfc0.entry.js → p-2f07d719.entry.js} +1 -1
  306. package/dist/vega/{p-0499e65a.entry.js → p-36d9e782.entry.js} +1 -1
  307. package/dist/vega/{p-e9d09211.js → p-373541fa.js} +1 -1
  308. package/dist/vega/{p-703ac992.entry.js → p-3737b9e2.entry.js} +1 -1
  309. package/dist/vega/{p-e9b005df.js → p-3d0b4074.js} +1 -1
  310. package/dist/vega/p-4a2fe3a4.js +1 -0
  311. package/dist/vega/{p-040ea356.entry.js → p-4bfe3258.entry.js} +1 -1
  312. package/dist/vega/{p-21f608e8.entry.js → p-4cbfc01e.entry.js} +1 -1
  313. package/dist/vega/{p-21626b93.entry.js → p-4e065ef7.entry.js} +1 -1
  314. package/dist/vega/{p-c29934ef.js → p-4fd0cf01.js} +1 -1
  315. package/dist/vega/{p-3af5e87b.entry.js → p-52c69f9e.entry.js} +1 -1
  316. package/dist/vega/{p-e7e963ba.entry.js → p-544ce391.entry.js} +1 -1
  317. package/dist/vega/{p-8e7932bc.js → p-56493601.js} +1 -1
  318. package/dist/vega/{p-8611465f.entry.js → p-56598858.entry.js} +1 -1
  319. package/dist/vega/{p-e1029acc.js → p-56db3323.js} +1 -1
  320. package/dist/vega/p-571ec00b.js +1 -0
  321. package/dist/vega/{p-abbceebf.entry.js → p-585e4f1c.entry.js} +1 -1
  322. package/dist/vega/p-5b1f5e4a.entry.js +1 -0
  323. package/dist/vega/p-5f377954.js +1 -1
  324. package/dist/vega/{p-10d43a80.entry.js → p-6234852e.entry.js} +1 -1
  325. package/dist/vega/p-67eaf77e.js +1 -0
  326. package/dist/vega/{p-2540fd1c.entry.js → p-6d4518d7.entry.js} +1 -1
  327. package/dist/vega/p-6db1b9ac.js +1 -0
  328. package/dist/vega/{p-363ee8a5.entry.js → p-6f537797.entry.js} +1 -1
  329. package/dist/vega/{p-0809c651.js → p-6fd4f2c6.js} +1 -1
  330. package/dist/vega/p-72fd17a1.entry.js +1 -0
  331. package/dist/vega/{p-b594a11c.entry.js → p-7dcd2850.entry.js} +1 -1
  332. package/dist/vega/{p-5e37b041.js → p-7e8fdac4.js} +1 -1
  333. package/dist/vega/{p-d25c1a48.js → p-810c9c29.js} +1 -1
  334. package/dist/vega/{p-a2bd621e.js → p-83ad8988.js} +1 -1
  335. package/dist/vega/{p-26760c66.entry.js → p-8c56d74d.entry.js} +1 -1
  336. package/dist/vega/{p-09524fec.js → p-8d2501b2.js} +1 -1
  337. package/dist/vega/{p-1132a74e.entry.js → p-94975537.entry.js} +1 -1
  338. package/dist/vega/{p-9c4c474e.entry.js → p-95c18f79.entry.js} +1 -1
  339. package/dist/vega/p-9834d5d4.entry.js +1 -0
  340. package/dist/vega/{p-dad7d2ac.js → p-a090b2be.js} +1 -1
  341. package/dist/vega/{p-f1078e63.js → p-a81ad3bd.js} +1 -1
  342. package/dist/vega/{p-29e3eb12.js → p-c41a2d4a.js} +1 -1
  343. package/dist/vega/{p-8ed3b2b6.entry.js → p-c5fb8a69.entry.js} +1 -1
  344. package/dist/vega/{p-d3413a78.entry.js → p-c6d775b8.entry.js} +1 -1
  345. package/dist/vega/{p-046203cb.entry.js → p-c70748f7.entry.js} +1 -1
  346. package/dist/vega/{p-53fd3c41.entry.js → p-c98c2f5f.entry.js} +1 -1
  347. package/dist/vega/{p-aeb50cad.entry.js → p-ca3c1317.entry.js} +1 -1
  348. package/dist/vega/{p-f5095035.entry.js → p-cb81126a.entry.js} +1 -1
  349. package/dist/vega/{p-775ecfad.entry.js → p-cf4b3d40.entry.js} +1 -1
  350. package/dist/vega/{p-3980dfa8.entry.js → p-cfe268a8.entry.js} +1 -1
  351. package/dist/vega/{p-e3fdb65c.entry.js → p-d470fce2.entry.js} +1 -1
  352. package/dist/vega/{p-8ff92914.entry.js → p-da867019.entry.js} +1 -1
  353. package/dist/vega/{p-3f183b52.js → p-daba4af1.js} +1 -1
  354. package/dist/vega/{p-9664e914.entry.js → p-f62c5a20.entry.js} +1 -1
  355. package/dist/vega/{p-6b76b572.entry.js → p-f6c0e9e7.entry.js} +1 -1
  356. package/dist/vega/{p-56d19601.entry.js → p-fb9475ab.entry.js} +1 -1
  357. package/dist/vega/vega.esm.js +1 -1
  358. package/package.json +1 -1
  359. package/dist/vega/p-2bb60f89.js +0 -1
  360. package/dist/vega/p-2d7388c9.entry.js +0 -1
  361. package/dist/vega/p-3a68b729.js +0 -1
  362. package/dist/vega/p-81d4dfcb.entry.js +0 -1
  363. package/dist/vega/p-88a6c89a.js +0 -1
  364. package/dist/vega/p-ca270da3.entry.js +0 -1
  365. package/dist/vega/p-f95d8d10.entry.js +0 -1
@@ -0,0 +1 @@
1
+ const e="__SELECT_ALL__",t={alignment:"start",caseSensitive:!1,isLoading:!1,isScreenPosition:!1,itemDisplayRule:"newline",placement:["bottom","top"],positionRelativeTo:void 0,searchNoResultsText:"No results found"};export{t as V,e as a}
@@ -1 +1 @@
1
- import{h as t,f as e,r as i,c as o,H as s,g as r}from"./p-6b2342e0.js";import{V as a,I as l}from"./p-8ce9e214.js";import{R as n}from"./p-8bc15ed0.js";import{c,V as h,M as p,I as d}from"./p-6e1ab235.js";import{s as f}from"./p-519a7d55.js";import{F as u}from"./p-e1029acc.js";import{D as v}from"./p-526e3634.js";import{c as m,b as g,a as w,d as b,M as j}from"./p-5447a8e8.js";import{c as x}from"./p-66647244.js";import{V as C}from"./p-6031bed1.js";import{F as R}from"./p-cb378636.js";import{C as y}from"./p-2d0d575f.js";import{T as F}from"./p-cd69aeae.js";import{C as S}from"./p-2c737fc8.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-3a68b729.js";import"./p-874e5624.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-71909102.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-8c30a60d.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-5f377954.js";var k=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class I extends h{constructor(){super(...arguments),this.handlePopoverShow=()=>{v.addUniqueObserverToNode(this.popoverRef,m,(()=>{this.isPopoverOpen=!0,this.internalColor!==this.value&&this.colorSwatchPickerValueController.updateInternalColor(this.value)}))},this.handlePopoverHide=()=>{v.addUniqueObserverToNode(this.popoverRef,g,(()=>{this.isPopoverOpen=!1}))},this.registerButtonClickHandler=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.popoverRef&&this.popoverRef.hide(),this.colorSwatchPickerValueController.updateValue("clear"===t.dataset.actionType?"":this.internalColor)}))}}hidePopover(){this.popoverRef&&this.popoverRef.hide()}getContainerRef(){return this.containerRef}getLeftContainerRef(){return this.leftContainerRef}render(){const e=this.leftSlotProjection.hasSlot();return t("div",{ref:t=>this.containerRef=t,class:"swatch-picker-container"},t("vega-popover",{ref:t=>{this.popoverRef=t,this.handlePopoverShow(),this.handlePopoverHide()},class:"swatch-popover",alignment:"center",isScreenPosition:!0,trigger:"click"},t("div",{slot:"popover-content"},t("vega-color-swatch",{class:"swatch-picker-trigger","aria-expanded":this.isPopoverOpen?"true":"false","aria-haspopup":"dialog",disabled:this.disabled,color:this.value,size:"small"})),t("vega-box",{slot:"popover",class:"swatch-popover-content",width:"min-content"},t("vega-flex",{gap:"size-16"},e&&t("div",{ref:t=>this.leftContainerRef=t}),e&&t("div",null,t("vega-divider",{direction:"vertical"})),t("div",null,this.colorSwatchInputRenderer.render(),this.colorSwatchGridRenderer.render(),this.renderButtonGroup())))),t("vega-field-label",{label:this.label,disabled:this.disabled,isFieldRequired:this.required}))}renderButtonGroup(){return t("vega-flex",{gap:"size-8",justifyContent:"end",margin:{top:"size-16"}},this.showClearButton&&t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"clear",label:this.translationSlimmer.t("Clear"),size:"small"}),t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"apply",label:this.translationSlimmer.t("Apply"),size:"small"}))}}k([c()],I.prototype,"host",void 0),k([c()],I.prototype,"value",void 0),k([c()],I.prototype,"internalColor",void 0),k([c()],I.prototype,"label",void 0),k([c()],I.prototype,"required",void 0),k([c({writable:!0})],I.prototype,"isPopoverOpen",void 0),k([c()],I.prototype,"disabled",void 0),k([c()],I.prototype,"showClearButton",void 0),k([c()],I.prototype,"colorSwatchGridRenderer",void 0),k([c()],I.prototype,"colorSwatchInputRenderer",void 0),k([c()],I.prototype,"colorSwatchPickerValueController",void 0),k([c()],I.prototype,"translationSlimmer",void 0),k([c()],I.prototype,"leftSlotProjection",void 0);var z=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class V extends h{constructor(){super(...arguments),this.handleColorSwatchClick=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.colorSwatchPickerValueController.updateInternalColor(t.color)}))}}render(){return t("vega-grid",{column:this.swatchGridColumns,justifyItems:"start",gap:"size-8",style:{width:"max-content"}},this.colors.map((e=>t("vega-color-swatch",{ref:this.handleColorSwatchClick,selected:this.isColorMatched(this.internalColor,e),color:e,size:"extra-small"}))))}isColorMatched(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}}z([c()],V.prototype,"colors",void 0),z([c()],V.prototype,"internalColor",void 0),z([c()],V.prototype,"swatchGridColumns",void 0),z([c()],V.prototype,"colorSwatchPickerValueController",void 0);var O=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class P extends h{constructor(){super(...arguments),this.handleInputEvent=t=>{v.addUniqueObserverToNode(t,b,(()=>{const e=this.colorSwatchPickerColorFormatController.formatColor("output",t.value);e&&!this.isValidColor(e)||this.colorSwatchPickerValueController.updateInternalColor(e)})),v.addUniqueObserverToNode(t,j,(()=>{t.value&&!this.isValidColor(t.value)&&(t.value=this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor))}))}}render(){return this.showInput?t("vega-flex",{gap:"size-8",alignItems:"center",margin:{bottom:"size-16"}},t("vega-color-swatch",{color:this.internalColor,size:"extra-small"}),t("vega-input",{ref:this.handleInputEvent,size:"small",value:this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor),placeholder:this.inputPlaceholder||this.translationSlimmer.t("Enter color"),prefixIcon:this.inputPrefixIcon===P.DEFAULT_INPUT_ICON?C.getIconKey("hashtag"):this.inputPrefixIcon})):null}isValidColor(t){let e=!0;return globalThis.CSS&&"function"==typeof globalThis.CSS.supports&&(e=globalThis.CSS.supports("color",t)),e}}C.register({hashtag:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M188.7 32.5c13 2.6 21.4 15.2 18.8 28.2L192.5 136h111l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8s21.4 15.2 18.8 28.2L352.5 136H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H342.9L314.1 328H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H304.5l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L255.5 376h-111l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L95.5 376H24c-13.3 0-24-10.7-24-24s10.7-24 24-24h81.1l28.8-144H56c-13.3 0-24-10.7-24-24s10.7-24 24-24h87.5l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8zM182.9 184L154.1 328h111l28.8-144h-111z"/></svg>'}}),P.DEFAULT_INPUT_ICON="hexColorIcon",O([c()],P.prototype,"internalColor",void 0),O([c()],P.prototype,"showInput",void 0),O([c()],P.prototype,"inputPlaceholder",void 0),O([c()],P.prototype,"inputPrefixIcon",void 0),O([c()],P.prototype,"colorSwatchPickerValueController",void 0),O([c()],P.prototype,"colorSwatchPickerColorFormatController",void 0),O([c()],P.prototype,"translationSlimmer",void 0);var L=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class H extends h{updateValue(t){this.value=t}updateInternalColor(t){this.internalColor=t}initializeInternalColor(){this.internalColor=this.value}listenToValueChange(){this.internalColor=this.value,this.changeEventEmitter.emit(this.value),y.notify(R,{host:this.host,detail:this.value})}}L([c()],H.prototype,"host",void 0),L([c({writable:!0})],H.prototype,"value",void 0),L([c({writable:!0})],H.prototype,"internalColor",void 0),L([c()],H.prototype,"changeEventEmitter",void 0),L([p("componentWillLoad")],H.prototype,"initializeInternalColor",null),L([p("watchValue")],H.prototype,"listenToValueChange",null);var M=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class T extends h{updateTheColor(){this.internalColor&&this.colorSwatchPickerValueController.updateInternalColor(this.formatColor("input",this.internalColor))}formatColor(t,e){return this.inputFormatter===T.DEFAULT_INPUT_FORMATTER?this.handleHexFormat(t,e):"function"==typeof this.inputFormatter?this.inputFormatter(t,e):e}handleHexFormat(t,e){return"input"===t?e.startsWith("#")?e.slice(1):e:e.startsWith("#")?e:e?`#${e}`:e}}T.DEFAULT_INPUT_FORMATTER="hexColorFormatter",M([c()],T.prototype,"inputFormatter",void 0),M([c()],T.prototype,"internalColor",void 0),M([c()],T.prototype,"colorSwatchPickerValueController",void 0),M([p("watchInputFormatter")],T.prototype,"updateTheColor",null);var D=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class E extends h{constructor(t,i){super(),this.slotElement=null,this.syncSlotElementFromHost=()=>{var t;const i=this.host.querySelector(this.slotSelector());i&&(this.slotElement=i,null===(t=this.getContainerRef())||void 0===t||t.replaceChildren(i),e(this.host))},this.syncRemovedSlotElement=()=>{this.slotElement&&!this.slotElement.isConnected&&(this.slotElement=null,e(this.host))},this.slotName=t,this.getContainerRef=i}hasSlot(){return!!this.slotElement}detectSlot(){this.slotElement=this.host.querySelector(this.slotSelector()),this.hostMutationObserver=new MutationObserver(this.syncSlotElementFromHost),this.hostMutationObserver.observe(this.host,{childList:!0}),this.containerMutationObserver=new MutationObserver(this.syncRemovedSlotElement)}appendSlotContent(){const t=this.getContainerRef();t&&this.containerMutationObserver.observe(t,{childList:!0}),this.slotElement&&t&&this.slotElement.parentElement!==t&&t.appendChild(this.slotElement)}cleanup(){this.hostMutationObserver&&this.hostMutationObserver.disconnect(),this.containerMutationObserver&&this.containerMutationObserver.disconnect()}slotSelector(){return`[slot="${this.slotName}"]`}}D([c()],E.prototype,"host",void 0),D([p("componentWillLoad")],E.prototype,"detectSlot",null),D([p("componentDidRender")],E.prototype,"appendSlotContent",null),D([p("disconnectedCallback")],E.prototype,"cleanup",null);var G=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const B=class{constructor(t){i(this,t),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.formFieldController=new u({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new n:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.colorSwatchPickerRenderer.getContainerRef(),touchableAreaGetter:()=>[]}),this.translationSlimmer=new F,this.leftSlotProjection=new E("swatch-picker-left",(()=>this.colorSwatchPickerRenderer.getLeftContainerRef())),this.colorSwatchPickerRenderer=new I,this.colorSwatchGridRenderer=new V,this.colorSwatchInputRenderer=new P,this.colorSwatchPickerValueController=new H,this.colorSwatchPickerColorFormatController=new T,this.childNodeEventPreventSlimmer=new S([b],(()=>this.colorSwatchPickerRenderer.getContainerRef())),this.changeEventEmitter=x(B,b),this.internalColor="",this.isPopoverOpen=!1,this.value="",this.label="",this.disabled=!1,this.required=!1,this.name="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.swatchGridColumns=8,this.showInput=!0,this.inputPlaceholder="",this.inputPrefixIcon=P.DEFAULT_INPUT_ICON,this.showClearButton=!1,this.inputFormatter=T.DEFAULT_INPUT_FORMATTER}watchValue(){}watchDisabled(){this.disabled&&this.colorSwatchPickerRenderer.hidePopover()}watchValidationRules(){}watchInputFormatter(){}render(){return f(t(s,{class:{disabled:this.disabled}},this.colorSwatchPickerRenderer.render(),t("div",{class:"vega-error vega-hidden",part:"field-error-message"})),this.host)}get host(){return r(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"],inputFormatter:["watchInputFormatter"]}}};G([l()],B.prototype,"globalSlimmers",void 0),G([d()],B.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),G([d()],B.prototype,"formFieldController",void 0),G([d()],B.prototype,"translationSlimmer",void 0),G([d()],B.prototype,"leftSlotProjection",void 0),G([d()],B.prototype,"colorSwatchPickerRenderer",void 0),G([d()],B.prototype,"colorSwatchGridRenderer",void 0),G([d()],B.prototype,"colorSwatchInputRenderer",void 0),G([d()],B.prototype,"colorSwatchPickerValueController",void 0),G([d()],B.prototype,"colorSwatchPickerColorFormatController",void 0),G([d()],B.prototype,"childNodeEventPreventSlimmer",void 0),G([d()],B.prototype,"changeEventEmitter",void 0),B.style=':host{display:inline-block}.swatch-picker-container{display:flex;flex-direction:row;align-items:center;gap:8px}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch){border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch-container):focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}';export{B as vega_color_swatch_picker}
1
+ import{h as t,f as e,r as i,c as o,H as s,g as r}from"./p-6b2342e0.js";import{V as a,I as l}from"./p-8ce9e214.js";import{R as n}from"./p-8bc15ed0.js";import{c,V as h,M as p,I as d}from"./p-6e1ab235.js";import{s as f}from"./p-519a7d55.js";import{F as u}from"./p-56db3323.js";import{D as v}from"./p-526e3634.js";import{c as m,b as g,a as w,d as b,M as j}from"./p-5447a8e8.js";import{c as x}from"./p-66647244.js";import{V as C}from"./p-6031bed1.js";import{F as R}from"./p-cb378636.js";import{C as y}from"./p-2d0d575f.js";import{T as F}from"./p-cd69aeae.js";import{C as S}from"./p-2c737fc8.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-4a2fe3a4.js";import"./p-874e5624.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-71909102.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-c41a2d4a.js";import"./p-8c30a60d.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-5f377954.js";var k=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class I extends h{constructor(){super(...arguments),this.handlePopoverShow=()=>{v.addUniqueObserverToNode(this.popoverRef,m,(()=>{this.isPopoverOpen=!0,this.internalColor!==this.value&&this.colorSwatchPickerValueController.updateInternalColor(this.value)}))},this.handlePopoverHide=()=>{v.addUniqueObserverToNode(this.popoverRef,g,(()=>{this.isPopoverOpen=!1}))},this.registerButtonClickHandler=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.popoverRef&&this.popoverRef.hide(),this.colorSwatchPickerValueController.updateValue("clear"===t.dataset.actionType?"":this.internalColor)}))}}hidePopover(){this.popoverRef&&this.popoverRef.hide()}getContainerRef(){return this.containerRef}getLeftContainerRef(){return this.leftContainerRef}render(){const e=this.leftSlotProjection.hasSlot();return t("div",{ref:t=>this.containerRef=t,class:"swatch-picker-container"},t("vega-popover",{ref:t=>{this.popoverRef=t,this.handlePopoverShow(),this.handlePopoverHide()},class:"swatch-popover",alignment:"center",isScreenPosition:!0,trigger:"click"},t("div",{slot:"popover-content"},t("vega-color-swatch",{class:"swatch-picker-trigger","aria-expanded":this.isPopoverOpen?"true":"false","aria-haspopup":"dialog",disabled:this.disabled,color:this.value,size:"small"})),t("vega-box",{slot:"popover",class:"swatch-popover-content",width:"min-content"},t("vega-flex",{gap:"size-16"},e&&t("div",{ref:t=>this.leftContainerRef=t}),e&&t("div",null,t("vega-divider",{direction:"vertical"})),t("div",null,this.colorSwatchInputRenderer.render(),this.colorSwatchGridRenderer.render(),this.renderButtonGroup())))),t("vega-field-label",{label:this.label,disabled:this.disabled,isFieldRequired:this.required}))}renderButtonGroup(){return t("vega-flex",{gap:"size-8",justifyContent:"end",margin:{top:"size-16"}},this.showClearButton&&t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"clear",label:this.translationSlimmer.t("Clear"),size:"small"}),t("vega-button-link",{ref:this.registerButtonClickHandler,"data-action-type":"apply",label:this.translationSlimmer.t("Apply"),size:"small"}))}}k([c()],I.prototype,"host",void 0),k([c()],I.prototype,"value",void 0),k([c()],I.prototype,"internalColor",void 0),k([c()],I.prototype,"label",void 0),k([c()],I.prototype,"required",void 0),k([c({writable:!0})],I.prototype,"isPopoverOpen",void 0),k([c()],I.prototype,"disabled",void 0),k([c()],I.prototype,"showClearButton",void 0),k([c()],I.prototype,"colorSwatchGridRenderer",void 0),k([c()],I.prototype,"colorSwatchInputRenderer",void 0),k([c()],I.prototype,"colorSwatchPickerValueController",void 0),k([c()],I.prototype,"translationSlimmer",void 0),k([c()],I.prototype,"leftSlotProjection",void 0);var z=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class V extends h{constructor(){super(...arguments),this.handleColorSwatchClick=t=>{v.addUniqueObserverToNode(t,w,(()=>{this.colorSwatchPickerValueController.updateInternalColor(t.color)}))}}render(){return t("vega-grid",{column:this.swatchGridColumns,justifyItems:"start",gap:"size-8",style:{width:"max-content"}},this.colors.map((e=>t("vega-color-swatch",{ref:this.handleColorSwatchClick,selected:this.isColorMatched(this.internalColor,e),color:e,size:"extra-small"}))))}isColorMatched(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}}z([c()],V.prototype,"colors",void 0),z([c()],V.prototype,"internalColor",void 0),z([c()],V.prototype,"swatchGridColumns",void 0),z([c()],V.prototype,"colorSwatchPickerValueController",void 0);var O=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class P extends h{constructor(){super(...arguments),this.handleInputEvent=t=>{v.addUniqueObserverToNode(t,b,(()=>{const e=this.colorSwatchPickerColorFormatController.formatColor("output",t.value);e&&!this.isValidColor(e)||this.colorSwatchPickerValueController.updateInternalColor(e)})),v.addUniqueObserverToNode(t,j,(()=>{t.value&&!this.isValidColor(t.value)&&(t.value=this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor))}))}}render(){return this.showInput?t("vega-flex",{gap:"size-8",alignItems:"center",margin:{bottom:"size-16"}},t("vega-color-swatch",{color:this.internalColor,size:"extra-small"}),t("vega-input",{ref:this.handleInputEvent,size:"small",value:this.colorSwatchPickerColorFormatController.formatColor("input",this.internalColor),placeholder:this.inputPlaceholder||this.translationSlimmer.t("Enter color"),prefixIcon:this.inputPrefixIcon===P.DEFAULT_INPUT_ICON?C.getIconKey("hashtag"):this.inputPrefixIcon})):null}isValidColor(t){let e=!0;return globalThis.CSS&&"function"==typeof globalThis.CSS.supports&&(e=globalThis.CSS.supports("color",t)),e}}C.register({hashtag:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M188.7 32.5c13 2.6 21.4 15.2 18.8 28.2L192.5 136h111l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8s21.4 15.2 18.8 28.2L352.5 136H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H342.9L314.1 328H392c13.3 0 24 10.7 24 24s-10.7 24-24 24H304.5l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L255.5 376h-111l-16.9 84.7c-2.6 13-15.2 21.4-28.2 18.8s-21.4-15.2-18.8-28.2L95.5 376H24c-13.3 0-24-10.7-24-24s10.7-24 24-24h81.1l28.8-144H56c-13.3 0-24-10.7-24-24s10.7-24 24-24h87.5l16.9-84.7c2.6-13 15.2-21.4 28.2-18.8zM182.9 184L154.1 328h111l28.8-144h-111z"/></svg>'}}),P.DEFAULT_INPUT_ICON="hexColorIcon",O([c()],P.prototype,"internalColor",void 0),O([c()],P.prototype,"showInput",void 0),O([c()],P.prototype,"inputPlaceholder",void 0),O([c()],P.prototype,"inputPrefixIcon",void 0),O([c()],P.prototype,"colorSwatchPickerValueController",void 0),O([c()],P.prototype,"colorSwatchPickerColorFormatController",void 0),O([c()],P.prototype,"translationSlimmer",void 0);var L=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class H extends h{updateValue(t){this.value=t}updateInternalColor(t){this.internalColor=t}initializeInternalColor(){this.internalColor=this.value}listenToValueChange(){this.internalColor=this.value,this.changeEventEmitter.emit(this.value),y.notify(R,{host:this.host,detail:this.value})}}L([c()],H.prototype,"host",void 0),L([c({writable:!0})],H.prototype,"value",void 0),L([c({writable:!0})],H.prototype,"internalColor",void 0),L([c()],H.prototype,"changeEventEmitter",void 0),L([p("componentWillLoad")],H.prototype,"initializeInternalColor",null),L([p("watchValue")],H.prototype,"listenToValueChange",null);var M=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class T extends h{updateTheColor(){this.internalColor&&this.colorSwatchPickerValueController.updateInternalColor(this.formatColor("input",this.internalColor))}formatColor(t,e){return this.inputFormatter===T.DEFAULT_INPUT_FORMATTER?this.handleHexFormat(t,e):"function"==typeof this.inputFormatter?this.inputFormatter(t,e):e}handleHexFormat(t,e){return"input"===t?e.startsWith("#")?e.slice(1):e:e.startsWith("#")?e:e?`#${e}`:e}}T.DEFAULT_INPUT_FORMATTER="hexColorFormatter",M([c()],T.prototype,"inputFormatter",void 0),M([c()],T.prototype,"internalColor",void 0),M([c()],T.prototype,"colorSwatchPickerValueController",void 0),M([p("watchInputFormatter")],T.prototype,"updateTheColor",null);var D=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};class E extends h{constructor(t,i){super(),this.slotElement=null,this.syncSlotElementFromHost=()=>{var t;const i=this.host.querySelector(this.slotSelector());i&&(this.slotElement=i,null===(t=this.getContainerRef())||void 0===t||t.replaceChildren(i),e(this.host))},this.syncRemovedSlotElement=()=>{this.slotElement&&!this.slotElement.isConnected&&(this.slotElement=null,e(this.host))},this.slotName=t,this.getContainerRef=i}hasSlot(){return!!this.slotElement}detectSlot(){this.slotElement=this.host.querySelector(this.slotSelector()),this.hostMutationObserver=new MutationObserver(this.syncSlotElementFromHost),this.hostMutationObserver.observe(this.host,{childList:!0}),this.containerMutationObserver=new MutationObserver(this.syncRemovedSlotElement)}appendSlotContent(){const t=this.getContainerRef();t&&this.containerMutationObserver.observe(t,{childList:!0}),this.slotElement&&t&&this.slotElement.parentElement!==t&&t.appendChild(this.slotElement)}cleanup(){this.hostMutationObserver&&this.hostMutationObserver.disconnect(),this.containerMutationObserver&&this.containerMutationObserver.disconnect()}slotSelector(){return`[slot="${this.slotName}"]`}}D([c()],E.prototype,"host",void 0),D([p("componentWillLoad")],E.prototype,"detectSlot",null),D([p("componentDidRender")],E.prototype,"appendSlotContent",null),D([p("disconnectedCallback")],E.prototype,"cleanup",null);var G=function(t,e,i,o){var s,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};const B=class{constructor(t){i(this,t),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.formFieldController=new u({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new n:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.colorSwatchPickerRenderer.getContainerRef(),touchableAreaGetter:()=>[]}),this.translationSlimmer=new F,this.leftSlotProjection=new E("swatch-picker-left",(()=>this.colorSwatchPickerRenderer.getLeftContainerRef())),this.colorSwatchPickerRenderer=new I,this.colorSwatchGridRenderer=new V,this.colorSwatchInputRenderer=new P,this.colorSwatchPickerValueController=new H,this.colorSwatchPickerColorFormatController=new T,this.childNodeEventPreventSlimmer=new S([b],(()=>this.colorSwatchPickerRenderer.getContainerRef())),this.changeEventEmitter=x(B,b),this.internalColor="",this.isPopoverOpen=!1,this.value="",this.label="",this.disabled=!1,this.required=!1,this.name="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.swatchGridColumns=8,this.showInput=!0,this.inputPlaceholder="",this.inputPrefixIcon=P.DEFAULT_INPUT_ICON,this.showClearButton=!1,this.inputFormatter=T.DEFAULT_INPUT_FORMATTER}watchValue(){}watchDisabled(){this.disabled&&this.colorSwatchPickerRenderer.hidePopover()}watchValidationRules(){}watchInputFormatter(){}render(){return f(t(s,{class:{disabled:this.disabled}},this.colorSwatchPickerRenderer.render(),t("div",{class:"vega-error vega-hidden",part:"field-error-message"})),this.host)}get host(){return r(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"],validationRules:["watchValidationRules"],inputFormatter:["watchInputFormatter"]}}};G([l()],B.prototype,"globalSlimmers",void 0),G([d()],B.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),G([d()],B.prototype,"formFieldController",void 0),G([d()],B.prototype,"translationSlimmer",void 0),G([d()],B.prototype,"leftSlotProjection",void 0),G([d()],B.prototype,"colorSwatchPickerRenderer",void 0),G([d()],B.prototype,"colorSwatchGridRenderer",void 0),G([d()],B.prototype,"colorSwatchInputRenderer",void 0),G([d()],B.prototype,"colorSwatchPickerValueController",void 0),G([d()],B.prototype,"colorSwatchPickerColorFormatController",void 0),G([d()],B.prototype,"childNodeEventPreventSlimmer",void 0),G([d()],B.prototype,"changeEventEmitter",void 0),B.style=':host{display:inline-block}.swatch-picker-container{display:flex;flex-direction:row;align-items:center;gap:8px}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch){border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.swatch-picker-container.error vega-color-swatch.swatch-picker-trigger::part(swatch-container):focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}';export{B as vega_color_swatch_picker}
@@ -1 +1 @@
1
- import{M as s,i as t}from"./p-2bb60f89.js";import{b as r}from"./p-e9b005df.js";class o extends s{constructor(s,r){super(),this.type=t.REPLACE_SELECTED_TEXT,this.textToBeInsert="",this.textToBeInsert=s,this.currentRange=r}}class e extends r{constructor(s={}){super(),this.config=s}prepareBeforeLoad(s){e.configStore.set(s,this.config)}destroyExtension(){var s;(null===(s=this.extensionContext)||void 0===s?void 0:s.host)&&e.configStore.delete(this.extensionContext.host)}}e.configStore=e.createStateStore();export{o as R,e as V}
1
+ import{M as s,i as t}from"./p-571ec00b.js";import{b as r}from"./p-3d0b4074.js";class o extends s{constructor(s,r){super(),this.type=t.REPLACE_SELECTED_TEXT,this.textToBeInsert="",this.textToBeInsert=s,this.currentRange=r}}class e extends r{constructor(s={}){super(),this.config=s}prepareBeforeLoad(s){e.configStore.set(s,this.config)}destroyExtension(){var s;(null===(s=this.extensionContext)||void 0===s?void 0:s.host)&&e.configStore.delete(this.extensionContext.host)}}e.configStore=e.createStateStore();export{o as R,e as V}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i,H as n,g as s}from"./p-6b2342e0.js";import{I as o}from"./p-abd7aeaa.js";import{M as a,a as r}from"./p-f0ff4463.js";import{M as l,a as p}from"./p-cdbbdcc2.js";import{R as c}from"./p-8bc15ed0.js";import{s as d}from"./p-519a7d55.js";import{C as h}from"./p-75b58efe.js";import{c as u,V as f,M as g,I as v}from"./p-6e1ab235.js";import{s as m}from"./p-6bd5c49b.js";import{V as x,I as b}from"./p-8ce9e214.js";import{F as w}from"./p-56db3323.js";import{c as y}from"./p-66647244.js";import{a as C,C as j,V as k,d as R,K as I,L as S,M as O,N as z,O as D}from"./p-5447a8e8.js";import{S as E}from"./p-1ea9ad9a.js";import{S as T}from"./p-ae2abdfa.js";import{i as V}from"./p-456f678b.js";import{S as M}from"./p-a81ad3bd.js";import{i as L}from"./p-d27ae9ff.js";import{d as N}from"./p-a841cf13.js";import{p as F,q as A,r as P,m as B}from"./p-4a2fe3a4.js";import{D as $,d as _}from"./p-526e3634.js";import{P as U}from"./p-81dd00d0.js";import{S as W}from"./p-c41a2d4a.js";import{V as K}from"./p-6031bed1.js";import{c as q}from"./p-3a620268.js";import{C as H}from"./p-2d0d575f.js";import{F as G}from"./p-cb378636.js";import{C as X}from"./p-8187878e.js";import{V as Y}from"./p-6db1b9ac.js";import{A as J}from"./p-bdb5180c.js";import{M as Q}from"./p-78a57a17.js";import"./p-262ec334.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-528748fa.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-874e5624.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-71909102.js";import"./p-52b8f2d2.js";import"./p-8c30a60d.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-67eaf77e.js";import"./p-49a2e141.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";const Z=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/;class tt extends o{evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=Z.test(t.toLowerCase());return{isValid:e,message:e?"":"Please enter the correct email format."}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&t.length>0}}class et extends f{getCopyPasteProps(){return this.disableCopyPaste?{onCopy:this.preventDefault,onCut:this.preventDefault,onPaste:this.preventDefault}:{}}preventDefault(t){t.preventDefault()}}!function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([u()],et.prototype,"disableCopyPaste",void 0);var it=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class nt extends f{render(){const e=this.hasPrefixSlot();if(this.prefixIcon||e)return t("div",{class:{"vega-input-prefix":!0,"vega-input-prefix-slot":e},part:"prefix-icon-container"},this.prefixIcon&&!e?t("vega-icon",{icon:this.prefixIcon,size:"size-16","aria-hidden":"true"}):null,t("slot",{name:"prefix-icon"}))}hasPrefixSlot(){return!!this.host.querySelector('[slot="prefix-icon"]')}}it([u()],nt.prototype,"host",void 0),it([u()],nt.prototype,"prefixIcon",void 0);class st extends T{constructor(t=!1){super(),this.overrideValue=t}format(t){if(!t.length)return t;const e=Number(t.replace(/,/g,""));return!isNaN(e)&&e<=Number.MAX_SAFE_INTEGER?e.toLocaleString("en-US"):t}calculateCaretPosition(t,e){const i=this.format(t),n=t.substring(0,e),s=i.substring(0,e),o=(n.match(/,/g)||[]).length;return e+((s.match(/,/g)||[]).length-o)}}class ot extends T{constructor(t,e=!1){super(),this.maskConfig={allowNegative:!0},this.skipFormat=t=>this.maskConfig.allowNegative&&"-"===t||null!=this.maskConfig.precision&&this.maskConfig.precision>0&&t.split(".").length-1==1&&t.endsWith(".")&&!t.startsWith("."),this.maskConfig=Object.assign(Object.assign({},this.maskConfig),t),this.overrideValue=e,this.mask=new RegExp(this.getRegExp())}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t)&&i.pop()}return i.join("")}calculateCaretPosition(t,e){if(V(e)){const i=this.redressAbnormalNumber(t);return e-(t.length-i.length)}}inputNeedFormat(t){return!this.mask.test(t)}redressAbnormalNumber(t){let e=t.replace(/^0+(?!$)/,"");return e.startsWith(".")&&(e=`0${e}`),e}getRegExp(){const t=this.maskConfig.allowNegative?"(\\-)?":"";let e;return e=0===this.maskConfig.precision?`^${t}(0|[1-9][0-9]*)$`:this.maskConfig.precision&&this.maskConfig.precision>0?`^${t}(0|0\\.\\d{1,${this.maskConfig.precision}}|[1-9][0-9]*(\\.\\d{1,${this.maskConfig.precision}})?)$`:`^${t}(0|0\\.\\d*|[1-9][0-9]*(\\.\\d*)?)$`,e}}class at extends T{constructor(t,e=!1,i=!1){super(),this.resetCaretPositionFlag=!1,this.formatter=t,this.resetCaretPositionFlag=e,this.overrideValue=i}format(t){return this.formatter(t)}calculateCaretPosition(t,e){if(!0===this.resetCaretPositionFlag)return this.format(t).length;if(V(e)){const i=t.substring(0,e);return e+(this.format(i).length-i.length)}}shouldTriggerAtInit(){return!0}}class rt extends ot{constructor(t,e=!1){super(t,e)}format(t){const e=this.redressAbnormalNumber(t);if(this.skipFormat(e))return e;const i=[...e];for(let t=e.length-1;t>=0;t--){const t=i.join("");this.inputNeedFormat(t.replace(/,/g,""))&&i.pop()}return this.thousandCommaFormat(i.join(""))}calculateCaretPosition(t,e){const i=this.redressAbnormalNumber(t),n=this.format(t),s=t.substring(0,e),o=n.substring(0,e),a=(s.match(/,/g)||[]).length;return e+((o.match(/,/g)||[]).length-a)-(t.length-i.length)}thousandCommaFormat(t){if(!t.length)return t;const e=t.replace(/[^\d.-]/g,""),i=e.indexOf("."),n=e.length>1&&i>=1?e.slice(i):"",s=Number(e.split(".")[0]);return!isNaN(s)&&s<=Number.MAX_SAFE_INTEGER?s.toLocaleString("en-US")+n:e}}var lt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class pt extends M{constructor(){super(...arguments),this.getInputElementRef=()=>this.inputRenderer.getInputRef(),this.getInputModeStrategy=()=>this.generateMaskStrategy("input"),this.getBlurModeStrategy=()=>this.generateMaskStrategy("blur")}connectedCallback(){this.initSetupMaskConfigObserver()}disconnectedCallback(){this.removeSetupMaskConfigObserver()}watchValue(t,e){t!==e&&this.formatValueAfterValueChange()}watchMaskChange(t,e){this.areMaskConfigsEqual(t,e)||this.setup()}watchTypeChange(t,e){"number"!==t&&"number"!==e||this.setup()}generateMaskStrategy(t){let e=null;Array.isArray(this.maskConfig)?e=this.maskConfig.find((e=>"blur"===t?this.isBlurModeMaskConfig(e):!this.isBlurModeMaskConfig(e))):this.maskConfig&&("blur"===t&&this.isBlurModeMaskConfig(this.maskConfig)?e=this.maskConfig:"input"!==t||this.isBlurModeMaskConfig(this.maskConfig)||(e=this.maskConfig));let i=null;switch(null==e?void 0:e.type){case"phone":i=E.getPhoneMaskStrategy(e.overrideValue);break;case"taxId":i=E.getTaxIdMaskStrategy(e.overrideValue);break;case"zipcode":i=E.getZipcodeMaskStrategy(e.overrideValue);break;case"thousand-comma":i=new st(e.overrideValue);break;case"number":i=this.getNumberTypeMaskStrategy(e.options,e.overrideValue);break;case"custom":i=e.strategy?e.strategy():new E(e.options,e.overrideValue);break;case"custom-formatter":i=new at(e.formatter,e.resetCaretPosition,e.overrideValue)}return"number"!==this.type||"input"!==t||e||(i=new ot({},null==e?void 0:e.overrideValue)),i}getNumberTypeMaskStrategy(t,e=!1){return t&&t.thousandComma?new rt(t,e):new ot(t,e)}isBlurModeMaskConfig(t){return"blur"===t.trigger}areMaskConfigsEqual(t,e){const i=Array.isArray(t)?t:[t],n=Array.isArray(e)?e:[e];return L(i,n,!0,((t,e)=>N(t,e)?0:-1))}initSetupMaskConfigObserver(){$.addUniqueObserverToNode(this.host,F,this.setup.bind(this))}removeSetupMaskConfigObserver(){$.removeUniqueObserverFromNode(this.host,F)}}lt([u()],pt.prototype,"maskConfig",void 0),lt([u()],pt.prototype,"disableCopyPaste",void 0),lt([u()],pt.prototype,"type",void 0),lt([u()],pt.prototype,"inputRenderer",void 0),lt([g("connectedCallback")],pt.prototype,"connectedCallback",null),lt([g("disconnectedCallback")],pt.prototype,"disconnectedCallback",null),lt([g("watchValue")],pt.prototype,"watchValue",null),lt([g("watchMaskChange")],pt.prototype,"watchMaskChange",null),lt([g("watchTypeChange")],pt.prototype,"watchTypeChange",null);const ct=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the input field should undergo automatic validation during the user's input",payloadValue:t=>!1===t.autoValidation},{payloadKey:"EMAIL_IS_TRUE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!0===t.email},{payloadKey:"EMAIL_IS_FALSE",payloadDescription:"@deprecated Enforces proper email format validation for the input field.",payloadValue:t=>!1===t.email}];var dt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ht extends f{componentDidLoad(){this.setInputAutoWidth()}watchValue(){this.setInputAutoWidth()}watchSuffixText(){this.setInputAutoWidth()}setInputAutoWidth(){const t=this.host.shadowRoot.querySelector(".vega-input-container"),e=null==t?void 0:t.querySelector(".vega-input-input"),i=null==e?void 0:e.querySelector("input");if(i&&(t.classList.remove("auto-width"),i.style.removeProperty("width"),this.isCompactInputWidth&&this.suffixText)){const n=this.getActualInputWidth();e.getBoundingClientRect().width>n&&(i.style.width=`${n}px`,t.classList.add("auto-width"))}}getActualInputWidth(){const t=this.getCalculateTextWidthContainer();t.style.display="inline-block",t.textContent=`${this.value||this.placeholder||""}`;const e=t.getBoundingClientRect().width;return t.style.display="none",e}getCalculateTextWidthContainer(){if(!this.calculateTextWidthContainer){const t=document.createElement("div");t.classList.add("v-font-field-value"),t.style.visibility="hidden",t.style.display="none",this.host.shadowRoot.append(t),this.calculateTextWidthContainer=t}return this.calculateTextWidthContainer}}dt([u()],ht.prototype,"host",void 0),dt([u()],ht.prototype,"value",void 0),dt([u()],ht.prototype,"placeholder",void 0),dt([u()],ht.prototype,"isCompactInputWidth",void 0),dt([u()],ht.prototype,"suffixText",void 0),dt([g("componentDidLoad")],ht.prototype,"componentDidLoad",null),dt([g("watchValue")],ht.prototype,"watchValue",null),dt([g("watchSuffixText")],ht.prototype,"watchSuffixText",null);var ut=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class ft extends W{constructor(){super({parent:"vega-input-numeric",subStates:[{subStateName:"prefixText",parentStateName:"prefixText"},{subStateName:"suffixText",parentStateName:"suffixText"},{subStateName:"isCompactInputWidth",parentStateName:"isCompactInputWidth"}]})}}ut([u()],ft.prototype,"host",void 0),ut([u({writable:!0})],ft.prototype,"prefixText",void 0),ut([u({writable:!0})],ft.prototype,"suffixText",void 0),ut([u({writable:!0})],ft.prototype,"isCompactInputWidth",void 0);var gt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class vt extends f{render(){return t("vega-button-circle",{icon:K.getIconKey(this.isPasswordDisplay?"eye":"eye-slash"),variant:"icon-only",size:"small",class:"password-eye-button",ref:t=>{this.addEyeIconObserver(t)}})}addEyeIconObserver(t){$.addUniqueObserverToNode(t,C,(()=>{this.isPasswordDisplay=!this.isPasswordDisplay}))}}K.register({eye:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"/></svg>'},"eye-slash":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"/></svg>'}}),gt([u()],vt.prototype,"host",void 0),gt([u({writable:!0})],vt.prototype,"isPasswordDisplay",void 0),gt([u()],vt.prototype,"type",void 0);var mt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class xt extends f{constructor(){super(...arguments),this.renderPrefixText=()=>this.prefixText&&t("div",{class:"prefix-text"},this.prefixText),this.renderSuffixText=()=>this.suffixText&&t("div",{class:"suffix-text"},this.suffixText),this.onClickClearIcon=()=>{H.notify(_.getSubject(this.host,A),"")},this.isClearIconVisible=()=>!this.disabled&&Boolean(this.value),this.onClearInputFocus=()=>{this.inputContainerRef.classList.add("no-focus")},this.onClearInputBlur=()=>{this.inputContainerRef.classList.remove("no-focus")},this.onContainerClick=()=>{H.notify(_.getSubject(this.host,P),{})}}getInputContainerRef(){return this.inputContainerRef}render(){return t("div",{ref:t=>this.inputContainerRef=t,part:"input-container",class:{"vega-input-container":!0,"with-value":!!this.value,[`vega-input-size-${this.size}`]:!0,"vega-input-disabled":this.disabled,"compact-input-width":this.isCompactInputWidth},onClick:this.onContainerClick,"aria-disabled":this.disabled?"true":void 0,onKeyDown:q()},this.prefixSlotRenderer.render(),this.renderPrefixText(),this.inputRenderer.render(),this.renderSuffixText(),"password"===this.type?this.passwordEyeRenderer.render():this.showClearIcon&&this.renderClearIcon())}renderClearIcon(){return t("div",{class:{"vega-input-clear-icon":!0,invisible:!this.isClearIconVisible()},tabIndex:this.disabled?-1:0,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:q(),onFocusin:this.onClearInputFocus,onFocusout:this.onClearInputBlur},t("vega-icon",{icon:"close"}))}}mt([u()],xt.prototype,"host",void 0),mt([u()],xt.prototype,"value",void 0),mt([u()],xt.prototype,"size",void 0),mt([u()],xt.prototype,"disabled",void 0),mt([u()],xt.prototype,"type",void 0),mt([u()],xt.prototype,"showClearIcon",void 0),mt([u()],xt.prototype,"prefixText",void 0),mt([u()],xt.prototype,"suffixText",void 0),mt([u()],xt.prototype,"isCompactInputWidth",void 0),mt([u()],xt.prototype,"prefixSlotRenderer",void 0),mt([u()],xt.prototype,"passwordEyeRenderer",void 0),mt([u()],xt.prototype,"inputRenderer",void 0);var bt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class wt extends f{constructor(){super(...arguments),this.setInputRef=t=>{t&&this.inputRef!==t&&(this.inputRef=t,this.notifySetupMaskConfig())},this.handleInputFocus=t=>{this.focusEventEmitter.emit(void 0,t)},this.handleInputBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.handleInputPaste=t=>{this.pasteEventEmitter.emit(t.clipboardData).defaultPrevented&&t.preventDefault()},this.onInputHandler=()=>{"change"!==this.valueUpdateTrigger&&this.notifyInputValueChange()},this.inputChangeHandler=()=>{"change"===this.valueUpdateTrigger&&this.notifyInputValueChange()}}connectedCallback(){this.initInputFocusObserver()}disconnectedCallback(){this.removeInputFocusObserver()}doFocus(){this.focusInput()}doBlur(){this.inputRef.blur()}getInputRef(){return this.inputRef}render(){return t("div",{class:"vega-input-input"},t("input",Object.assign({part:"input",name:this.name,type:this.getInputType(),autoComplete:this.autocomplete,inputmode:this.inputmode,enterkeyhint:this.enterkeyhint,readOnly:this.readOnly,value:this.value,ref:this.setInputRef,placeholder:this.placeholder,disabled:this.disabled,minLength:this.minLength,maxLength:this.maxLength,onBlur:t=>this.handleInputBlur(t),onFocus:t=>this.handleInputFocus(t),onChange:this.inputChangeHandler,onInput:this.onInputHandler,onPaste:t=>this.handleInputPaste(t)},this.copyPasteController.getCopyPasteProps())))}getInputType(){switch(this.type){case"number":return"text";case"password":return this.isPasswordDisplay?"text":"password";default:return this.type}}notifyInputValueChange(){this.inputRef.value!==this.value&&this.nativeInputChangeEventEmitter.emit(this.inputRef.value),H.notify(_.getSubject(this.host,A),this.inputRef.value)}notifySetupMaskConfig(){H.notify(_.getSubject(this.host,F),{})}initInputFocusObserver(){$.addUniqueObserverToNode(this.host,P,this.focusInput.bind(this))}removeInputFocusObserver(){$.removeUniqueObserverFromNode(this.host,P)}focusInput(){this.inputRef.focus()}}bt([u()],wt.prototype,"host",void 0),bt([u()],wt.prototype,"value",void 0),bt([u()],wt.prototype,"disabled",void 0),bt([u()],wt.prototype,"type",void 0),bt([u()],wt.prototype,"name",void 0),bt([u()],wt.prototype,"autocomplete",void 0),bt([u()],wt.prototype,"inputmode",void 0),bt([u()],wt.prototype,"enterkeyhint",void 0),bt([u()],wt.prototype,"readOnly",void 0),bt([u()],wt.prototype,"placeholder",void 0),bt([u()],wt.prototype,"minLength",void 0),bt([u()],wt.prototype,"maxLength",void 0),bt([u()],wt.prototype,"isPasswordDisplay",void 0),bt([u()],wt.prototype,"valueUpdateTrigger",void 0),bt([u()],wt.prototype,"focusEventEmitter",void 0),bt([u()],wt.prototype,"blurEventEmitter",void 0),bt([u()],wt.prototype,"pasteEventEmitter",void 0),bt([u()],wt.prototype,"copyPasteController",void 0),bt([u()],wt.prototype,"nativeInputChangeEventEmitter",void 0),bt([g("connectedCallback")],wt.prototype,"connectedCallback",null),bt([g("disconnectedCallback")],wt.prototype,"disconnectedCallback",null),bt([g("doFocus")],wt.prototype,"doFocus",null),bt([g("doBlur")],wt.prototype,"doBlur",null);var yt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ct extends f{constructor(){super(...arguments),this.handleLabelButtonClick=()=>{this.labelButtonClickEventEmitter.emit()},this.handleLabelClick=()=>{H.notify(_.getSubject(this.host,P),{})}}render(){return t("div",{class:"vega-input",part:"container-wrapper"},this.renderLabelDom(),this.renderInputContainer(),this.renderHintDom())}renderInputContainer(){return this.renderModeController.isSource()||this.renderModeController.isTemplate()?this.inputSuggestionsRenderer.render(this.inputContainerRenderer.render()):this.inputContainerRenderer.render()}renderLabelDom(){return t("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label,optional:this.optional,suffixButtonProps:this.labelSuffixButtonProps,suffixButtonConfig:this.labelSuffixButtonConfig,ref:t=>{$.addUniqueObserverToNode(t,j,this.handleLabelButtonClick),$.addUniqueObserverToNode(t,C,this.handleLabelClick)}})}renderHintDom(){return""!==this.hint?t("div",{class:"vega-hint"},t("label",null,this.hint)):null}}yt([u()],Ct.prototype,"host",void 0),yt([u()],Ct.prototype,"disabled",void 0),yt([u()],Ct.prototype,"required",void 0),yt([u()],Ct.prototype,"label",void 0),yt([u()],Ct.prototype,"hint",void 0),yt([u()],Ct.prototype,"labelSuffixButtonProps",void 0),yt([u()],Ct.prototype,"labelSuffixButtonConfig",void 0),yt([u()],Ct.prototype,"optional",void 0),yt([u()],Ct.prototype,"labelButtonClickEventEmitter",void 0),yt([u()],Ct.prototype,"inputContainerRenderer",void 0),yt([u()],Ct.prototype,"inputSuggestionsRenderer",void 0),yt([u()],Ct.prototype,"renderModeController",void 0);var jt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class kt extends f{connectedCallback(){this.initValueUpdateObserver()}disconnectedCallback(){this.removeValueUpdateObserver()}watchValue(t){this.changeEventEmitter.emit(t);const e=this.inputRenderer.getInputRef();e.value!==this.value&&(e.value=this.value),H.notify(G,{host:this.host,detail:this.value})}initValueUpdateObserver(){$.addUniqueObserverToNode(this.host,A,this.setValue.bind(this))}removeValueUpdateObserver(){$.removeUniqueObserverFromNode(this.host,A)}setValue(t){this.value=t}}jt([u()],kt.prototype,"host",void 0),jt([u({writable:!0})],kt.prototype,"value",void 0),jt([u()],kt.prototype,"changeEventEmitter",void 0),jt([u()],kt.prototype,"inputRenderer",void 0),jt([g("connectedCallback")],kt.prototype,"connectedCallback",null),jt([g("disconnectedCallback")],kt.prototype,"disconnectedCallback",null),jt([g("watchValue")],kt.prototype,"watchValue",null);var Rt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class It extends f{constructor(){super(...arguments),this.templateItems=[],this.onDropdownItemClick=async t=>{const e=this.renderModeController.isTemplate()?this.templateItems:this.suggestionsDropdownSource,i=this.findItem(e,t.detail);if(i){const t=this.suggestionItemClickEventEmitter.emit(i);H.notify(_.getSubject(this.host,A),t.defaultPrevented?this.value:i.label)}}}appendHostItemsToDropdown(){this.renderModeController.isTemplate()&&this.itemsSlotRef&&this.dropdownRef&&(this.itemsSlotRef.remove(),this.dropdownRef.append(this.host.querySelector("[slot=items]")))}async showSuggestionsDropdown(t={}){this.suggestionsDropdownConfig=Object.assign(Object.assign(Object.assign({},Y),{placement:["top","bottom"]}),t),this.dropdownRef&&Object.assign(this.dropdownRef,this.suggestionsDropdownConfig),await this.showSuggestions()}async hideSuggestionsDropdown(){await this.dropdownRef.hide()}async watchValue(){await this.searchSuggestions()}async watchSuggestionsDropdownSource(){await this.searchSuggestions()}render(e){return t("vega-dropdown",Object.assign({},this.suggestionsDropdownConfig,{source:this.suggestionsDropdownSource,trigger:new X,matchTargetWidth:!0,searchable:!1,translocation:{X:0,Y:6},ref:t=>{this.dropdownRef=t,this.addDropdownObserver(t)},style:{display:"block"}}),e,this.renderItemsSlot())}renderItemsSlot(){return this.renderModeController.isTemplate()&&t("div",{slot:"items",ref:t=>{this.itemsSlotRef=t}})}addDropdownObserver(t){$.addUniqueObserverToNode(t,k,this.onDropdownItemClick.bind(this)),$.addUniqueObserverToNode(t,B,(t=>{this.templateItems=Array.from(t).map((t=>({key:t.itemKey,label:t.label})))}))}findItem(t,e){for(const i of t){if(i.children&&i.children.length>0){const t=this.findItem(i.children,e);if(t)return t}if(i.key.toString()===e)return i}return null}async showSuggestions(){this.dropdownRef&&(this.renderModeController.isSource()||this.renderModeController.isTemplate())&&await this.dropdownRef.show()}async searchSuggestions(){this.dropdownRef&&this.renderModeController.isSource()&&this.suggestionsDropdownSource.length>0&&await this.dropdownRef.search(this.value)}}Rt([u()],It.prototype,"host",void 0),Rt([u()],It.prototype,"value",void 0),Rt([u({writable:!0})],It.prototype,"suggestionsDropdownConfig",void 0),Rt([u()],It.prototype,"suggestionsDropdownSource",void 0),Rt([u()],It.prototype,"renderModeController",void 0),Rt([u()],It.prototype,"suggestionItemClickEventEmitter",void 0),Rt([g("componentDidLoad")],It.prototype,"appendHostItemsToDropdown",null),Rt([g("showSuggestionsDropdown")],It.prototype,"showSuggestionsDropdown",null),Rt([g("hideSuggestionsDropdown")],It.prototype,"hideSuggestionsDropdown",null),Rt([g("watchValue")],It.prototype,"watchValue",null),Rt([g("watchSuggestionsDropdownSource")],It.prototype,"watchSuggestionsDropdownSource",null);var St=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Ot extends f{constructor(){super(...arguments),this.hasItemsSlot=!1}connectedCallback(){this.setRenderMode()}isSource(){return Array.isArray(this.suggestionsDropdownSource)}isTemplate(){return this.hasItemsSlot}setRenderMode(){this.hasItemsSlot=!!this.host.querySelector("[slot=items]")}}St([u()],Ot.prototype,"host",void 0),St([u()],Ot.prototype,"suggestionsDropdownSource",void 0),St([g("connectedCallback")],Ot.prototype,"connectedCallback",null);var zt=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};class Dt extends Q{constructor(t){super({options:{attributes:!0,attributeFilter:[Dt.OBSERVED_ATTRIBUTE]},callback:()=>{this.performMapping()}}),this.targetGetter=t}componentDidLoad(){this.performMapping(),super.componentDidLoad&&super.componentDidLoad()}componentDidRender(){this.performMapping()}performMapping(){const t=this.targetGetter?this.targetGetter():null;if(!t)return;const e=this.host.getAttribute(Dt.OBSERVED_ATTRIBUTE);if(this.shouldRemoveTabIndex(e))return void t.removeAttribute("tabindex");const i=String(e);t.getAttribute("tabindex")!==i&&t.setAttribute("tabindex",i)}shouldRemoveTabIndex(t){if(null==t)return!0;const e=String(t).trim().toLowerCase();return""===e||"null"===e||"undefined"===e}}Dt.OBSERVED_ATTRIBUTE="data-tabindex",zt([g("componentDidLoad")],Dt.prototype,"componentDidLoad",null),zt([g("componentDidRender")],Dt.prototype,"componentDidRender",null);var Et=function(t,e,i,n){var s,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};const Tt=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaNativeInputChange=i(this,"vegaNativeInputChange",7),this.nativeInputChange=i(this,"nativeInputChange",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",7),this.labelButtonClick=i(this,"labelButtonClick",7),this.vegaPaste=i(this,"vegaPaste",7),this.paste=i(this,"paste",7),this.vegaSuggestionItemClick=i(this,"vegaSuggestionItemClick",7),this.suggestionItemClick=i(this,"suggestionItemClick",7),this.globalSlimmers={},this.ariaAttributesValueMapper=new J((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"},"aria-hidden":{dependency:["data-aria-hidden"],defaultValue:null}}),this.dataTabIndexValueMapper=new Dt((()=>this.host.shadowRoot.querySelector("input"))),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new c:null},{propertyName:"min",ruleFactory:t=>"number"==typeof t?new a({minValue:t}):null},{propertyName:"max",ruleFactory:t=>"number"==typeof t?new r({maxValue:t}):null},{propertyName:"minLength",ruleFactory:t=>t?new l({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new p({maxStrLength:t}):null},{propertyName:"email",ruleFactory:t=>t?new tt:null},{propertyName:"type",ruleFactory:t=>"email"===t?new tt:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRenderer.getInputContainerRef(),touchableAreaGetter:()=>[this.inputRenderer.getInputRef()]}),this.pageResizeObserverSlimmer=new U({callback:()=>this.compactWidthController.setInputAutoWidth()}),this.renderModeController=new Ot,this.copyPasteController=new et,this.compactWidthController=new ht,this.stateController=new ft,this.maskConfigController=new pt,this.valueController=new kt,this.prefixSlotRenderer=new nt,this.renderer=new Ct,this.inputContainerRenderer=new xt,this.inputRenderer=new wt,this.inputSuggestionsRenderer=new It,this.changeEventEmitter=y(Tt,R),this.nativeInputChangeEventEmitter=y(Tt,I),this.focusEventEmitter=y(Tt,S),this.blurEventEmitter=y(Tt,O),this.labelButtonClickEventEmitter=y(Tt,j),this.suggestionItemClickEventEmitter=y(Tt,z),this.pasteEventEmitter=y(Tt,D),this.vegaComponentUsageRuntimeMetricsSlimmer=new x(ct),this.passwordEyeRenderer=new vt,this.label="",this.labelSuffixButtonProps=null,this.labelSuffixButtonConfig=null,this.value="",this.valueUpdateTrigger="input",this.type="text",this.name="",this.autocomplete="off",this.readOnly=!1,this.email=!1,this.required=!1,this.optional=!1,this.min=null,this.max=null,this.minLength=null,this.maxLength=null,this.showClearIcon=!0,this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.size="default",this.disabled=!1,this.hint="",this.disableCopyPaste=!1}watchSuffixText(){}watchValue(t){}watchTypeChange(t,e){}watchValidationRules(){}watchMaskChange(t,e){}watchSuggestionsDropdownSource(){}async doFocus(){}async doBlur(){}async showSuggestionsDropdown(t){}async hideSuggestionsDropdown(){}render(){return m(t("slot",null)),d(t(n,{class:"hidden"===this.type?"vega-input-hidden":"vega-input-inline-block"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{suffixText:["watchSuffixText"],value:["watchValue"],type:["watchTypeChange"],validationRules:["watchValidationRules"],maskConfig:["watchMaskChange"],suggestionsDropdownSource:["watchSuggestionsDropdownSource"]}}};Et([b()],Tt.prototype,"globalSlimmers",void 0),Et([v()],Tt.prototype,"ariaAttributesValueMapper",void 0),Et([v()],Tt.prototype,"dataTabIndexValueMapper",void 0),Et([v()],Tt.prototype,"formFieldController",void 0),Et([v()],Tt.prototype,"pageResizeObserverSlimmer",void 0),Et([v()],Tt.prototype,"renderModeController",void 0),Et([v()],Tt.prototype,"copyPasteController",void 0),Et([v()],Tt.prototype,"compactWidthController",void 0),Et([v()],Tt.prototype,"stateController",void 0),Et([v()],Tt.prototype,"maskConfigController",void 0),Et([v()],Tt.prototype,"valueController",void 0),Et([v()],Tt.prototype,"prefixSlotRenderer",void 0),Et([v()],Tt.prototype,"renderer",void 0),Et([v()],Tt.prototype,"inputContainerRenderer",void 0),Et([v()],Tt.prototype,"inputRenderer",void 0),Et([v()],Tt.prototype,"inputSuggestionsRenderer",void 0),Et([v()],Tt.prototype,"changeEventEmitter",void 0),Et([v()],Tt.prototype,"nativeInputChangeEventEmitter",void 0),Et([v()],Tt.prototype,"focusEventEmitter",void 0),Et([v()],Tt.prototype,"blurEventEmitter",void 0),Et([v()],Tt.prototype,"labelButtonClickEventEmitter",void 0),Et([v()],Tt.prototype,"suggestionItemClickEventEmitter",void 0),Et([v()],Tt.prototype,"pasteEventEmitter",void 0),Et([v()],Tt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Et([v()],Tt.prototype,"passwordEyeRenderer",void 0),Et([h()],Tt.prototype,"watchMaskChange",null),Tt.style=':host{cursor:text;display:block;text-align:left;line-height:normal}:host(.vega-input-inline-block){display:inline-block;width:100%}:host(.vega-input-hidden){display:none}vega-field-label{margin-bottom:8px}.vega-input-container{display:flex;align-items:center;border-radius:8px;gap:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}.vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-input-container.vega-input-disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-input-container.vega-input-disabled input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.vega-input-container.with-value{border-width:1px;border-style:solid;border-radius:8px}.vega-input-container:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}.vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-input-container.error:not(.no-focus):focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1))}.vega-input-container.error .vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-input-prefix{text-align:center;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-size:0px}.vega-input-prefix.vega-input-prefix-slot{height:24px;overflow:hidden}.vega-input-input{flex:1 1 0%;position:relative}.vega-input-input input{width:100%;outline:2px solid transparent;outline-offset:2px;border-style:none;height:24px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));font-feature-settings:"calt" 0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-input input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-input input::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}.vega-input-size-small{padding-top:8px;padding-right:12px;padding-bottom:8px;padding-left:12px}.vega-input-size-default{padding-top:12px;padding-right:16px;padding-bottom:12px;padding-left:16px}.vega-input-input input:disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.vega-hint{padding-top:12px;padding-right:8px;padding-left:8px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-top:12px;padding-right:8px;padding-left:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;border-radius:4px;padding:2px}.vega-input-clear-icon.invisible{visibility:hidden}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=password]::-ms-reveal{display:none}.vega-input-container.compact-input-width{gap:0px}.vega-input-container.compact-input-width .vega-input-prefix{margin-right:8px}.vega-input-container.compact-input-width .prefix-text,.vega-input-container.compact-input-width .suffix-text{margin-right:2px}.vega-input-container.compact-input-width .vega-input-clear-icon{margin-left:2px}.vega-input-container.compact-input-width .vega-input-input input{padding:0px;min-width:1px}.vega-input-container.compact-input-width.auto-width .vega-input-input{flex-grow:0}.vega-input-container.compact-input-width.auto-width .suffix-text{flex-grow:1}.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0;flex-grow:0}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-input-container .prefix-text,.vega-input-container .suffix-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.v-font-field-value{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-input-container .password-eye-button{width:16px;height:16px}.vega-input-container .password-eye-button::part(button){width:16px;height:16px;padding:0px}.vega-input-container .password-eye-button::part(button):hover{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}@supports (-webkit-touch-callout: none){:host([data-vega-form=pageSelectorMobile_goTo]) .vega-input-container input{box-sizing:border-box;padding-left:0px;padding-right:0px}}';export{Tt as vega_input}
@@ -1 +1 @@
1
- import{r as e,c as i,h as t,H as a,g as r}from"./p-6b2342e0.js";import{c as o}from"./p-3a620268.js";import{s as n}from"./p-519a7d55.js";import{C as s}from"./p-2d0d575f.js";import{R as l,i as d,F as h}from"./p-cb378636.js";import{O as c}from"./p-331a62d5.js";import{f as p}from"./p-528748fa.js";import{c as g,M as v,V as f,I as b}from"./p-6e1ab235.js";import{V as m,I as u}from"./p-8ce9e214.js";import{c as x}from"./p-66647244.js";import{d as w,L as y,M as j}from"./p-5447a8e8.js";import{i as R}from"./p-3a68b729.js";import{d as k}from"./p-526e3634.js";import{R as I}from"./p-8bc15ed0.js";import{C}from"./p-75b58efe.js";import{F as O}from"./p-e1029acc.js";import{C as E}from"./p-014cd411.js";import{C as A}from"./p-2c737fc8.js";import{K as V}from"./p-d609c3fd.js";import{M as z}from"./p-78a57a17.js";import{T as D}from"./p-52b8f2d2.js";import"./p-6a334573.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-874e5624.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-71909102.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-29e3eb12.js";import"./p-5f377954.js";import"./p-6c95a6a3.js";import"./p-456f678b.js";import"./p-b438e68b.js";var F=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class G extends f{connectedCallback(){this.radioGroup=p(this.host,"vega-radio-group")||p(this.host,"vega-selection-tile-group"),this.radioGroup&&(this.fieldErrorObserver=new c(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),s.register(k.getSubject(this.radioGroup,R),this.fieldErrorObserver))}disconnectedCallback(){this.radioGroup&&s.unregister(k.getSubject(this.radioGroup,R),this.fieldErrorObserver)}canAcceptFieldErrorObserver(e){return("VEGA-RADIO-GROUP"===e.host.tagName||"VEGA-SELECTION-TILE-GROUP"===e.host.tagName)&&this.radioGroup===e.host}fieldErrorObserverListener(e){this.showError=e.showError}}F([g({writable:!0})],G.prototype,"showError",void 0),F([g()],G.prototype,"host",void 0),F([v("connectedCallback")],G.prototype,"connectedCallback",null),F([v("disconnectedCallback")],G.prototype,"disconnectedCallback",null);var L=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};const N=class{constructor(t){e(this,t),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.changeEventEmitter=x(N,w),this.focusEventEmitter=x(N,y),this.blurEventEmitter=x(N,j),this.vegaRadioShowErrorController=new G,this.vegaComponentUsageRuntimeMetricsSlimmer=new m,this.groupDisabled=!1,this.showError=!1,this.value="",this.checked=!1,this.disabled=!1,this.size="default",this.updateValue=e=>{this.checked=e.currentTarget.checked,e.stopPropagation()},this.handleFocus=e=>{this.focusEventEmitter.emit(e,e)},this.handleBlur=e=>{this.blurEventEmitter.emit(e,e)},this.handleClick=e=>{e.stopPropagation()}}watchCheckedChange(){this.changeEventEmitter.emit(this.checked),s.notify(l,{host:this.host,detail:this.checked})}connectedCallback(){this.ariaLabel=this.host.textContent,""==this.ariaLabel&&(this.ariaLabel=this.value)}disconnectedCallback(){this.unRegisterGroupDisabledObserver()}componentDidLoad(){""===this.host.textContent&&this.labelElement.classList.add("vega-hidden"),this.initAndRegisterGroupDisabledObserver()}render(){var e;const i="VEGA-RADIO-GROUP"==(null===(e=this.host.parentElement)||void 0===e?void 0:e.nodeName);return n(t(a,{class:{"vega-flex-shrink-0 v-min-w-min":i}},t("label",{class:{"vega-radio-container":!0,[this.size]:!0,"vega-radio-checked":this.checked,"vega-radio-disabled":this.isDisabled(),error:this.showError}},t("input",{type:"radio",name:this.name,checked:this.checked,value:this.value,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onChange:this.updateValue,"aria-label":this.ariaLabel||"No label defined",disabled:this.isDisabled(),tabIndex:this.isDisabled()?-1:0,onKeyDown:o()}),t("span",{class:"vega-radio-icon"},t("span",{class:"vega-radio-circle"})),t("div",{class:"vega-radio-label",ref:e=>this.labelElement=e},t("slot",null)))),this.host)}isDisabled(){return this.disabled||this.groupDisabled}canAcceptGroupDisabledObserver(e){return p(this.host,"vega-radio-group")===e.host}groupDisabledObserverListener(e){this.groupDisabled=e.host.disabled}initAndRegisterGroupDisabledObserver(){p(this.host,"vega-radio-group")&&(this.groupDisabledObserver=new c(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),s.register(d,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&s.unregister(d,this.groupDisabledObserver)}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};L([u()],N.prototype,"globalSlimmers",void 0),L([b()],N.prototype,"changeEventEmitter",void 0),L([b()],N.prototype,"focusEventEmitter",void 0),L([b()],N.prototype,"blurEventEmitter",void 0),L([b()],N.prototype,"vegaRadioShowErrorController",void 0),L([b()],N.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),N.style=':host{display:inline-block;box-sizing:border-box;height:24px}.vega-radio-container{position:relative;display:inline-flex;gap:8px;cursor:not-allowed}.vega-radio-container:not(.vega-radio-disabled){cursor:pointer}.vega-radio-container input{position:absolute;left:0px;top:0px;opacity:0}.vega-radio-icon{display:inline-block;box-sizing:border-box;border-style:solid;border-radius:9999px;position:relative;left:0px;flex-shrink:0;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-radio-icon:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-radio-container.default .vega-radio-icon{width:24px;height:24px;padding:5px}.vega-radio-container.small .vega-radio-icon{width:16px;height:16px;padding:4px}.vega-radio-checked:hover .vega-radio-circle{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-radio-container input[type=radio]:focus-visible+.vega-radio-icon{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px}.vega-radio-container:not(.vega-radio-disabled):active .vega-radio-icon{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}.vega-radio-checked:active .vega-radio-circle{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.vega-radio-checked .vega-radio-circle{display:block;width:100%;height:100%;border-radius:9999px;background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}.vega-radio-disabled .vega-radio-icon{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-radio-disabled .vega-radio-circle{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-radio-disabled:hover .vega-radio-circle{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-radio-container .vega-radio-label{display:inline-block;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.vega-radio-container .vega-radio-label.vega-hidden{display:none}.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-radio-disabled .vega-radio-label{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}label{-webkit-tap-highlight-color:transparent}.vega-radio-container.error .vega-radio-icon{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-radio-container.error:hover .vega-radio-icon{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-radio-container.error input[type=radio]:focus-visible+.vega-radio-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}.vega-radio-container.error:active .vega-radio-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}.vega-radio-checked.error .vega-radio-circle{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-radio-checked.error:hover .vega-radio-circle{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-radio-checked.error:active .vega-radio-circle{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}';class S extends V{constructor(){super((e=>(e.setRadioArrayTabIndex(),[{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[e.host],callback:e=>{this.updateRadioFocusStates(e)}}])))}setRadioArrayTabIndex(){const e=this.getNotDisabledRadioArray();if(e){const i=e.findIndex((e=>e.checked)),t=i>-1?i:0;e.forEach(((e,i)=>{const a=i===t?"0":"-1";e.shadowRoot.querySelector("input").setAttribute("tabIndex",a)}))}}updateRadioFocusStates(e){const i=e.key,t=this.getNotDisabledRadioArray();if(!t||0===t.length)return;t.forEach((e=>e.shadowRoot.querySelector("input").setAttribute("tabIndex","-1")));const a=t.findIndex((i=>i===e.target));let r;"ArrowDown"===i?r=a===t.length-1?t[0]:t[a+1]:"ArrowUp"===i&&(r=0===a?t[t.length-1]:t[a-1]),r&&(r.shadowRoot.querySelector("input").focus(),r.checked=!0,r.shadowRoot.querySelector("input").tabIndex=0)}getNotDisabledRadioArray(){const e=Array.from(this.host.querySelectorAll("vega-radio"));if(e.length>0)return e.filter((e=>!e.disabled))}}!function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);o>3&&n&&Object.defineProperty(i,t,n)}([g()],S.prototype,"host",void 0);var P=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class U extends f{emitEventAndNotifyValueChangeSubject(e){this.changeEventEmitter.emit(e),s.notify(h,{host:this.host,detail:e})}setValue(e){this.value=e}}P([g()],U.prototype,"host",void 0),P([g({writable:!0})],U.prototype,"value",void 0),P([g()],U.prototype,"changeEventEmitter",void 0),P([g()],U.prototype,"radioItemsController",void 0),P([v("watchValue")],U.prototype,"emitEventAndNotifyValueChangeSubject",null);var M=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class B extends f{constructor(){super(...arguments),this.vegaRadioArray=[]}componentWillLoad(){this.syncRadioArrayAndValue()}setRadioItemName(){this.vegaRadioArray.forEach((e=>{e.name=this.name?this.name:e.getAttribute("name")}))}setRadioItemCheckedByValue(e){this.vegaRadioArray.forEach((i=>{i.checked=i.value===e}))}syncRadioItemsStatus(){this.setRadioItemCheckedByValue(this.value),this.setRadioItemName()}getRadioItemsArray(){return this.vegaRadioArray}syncRadioArrayAndValue(){this.vegaRadioArray=Array.from(this.host.querySelectorAll("vega-radio")),this.vegaRadioArray.forEach((e=>{e.checked&&this.valueController.setValue(e.value)}))}}M([g()],B.prototype,"host",void 0),M([g()],B.prototype,"value",void 0),M([g()],B.prototype,"name",void 0),M([g()],B.prototype,"valueController",void 0),M([v("componentWillLoad")],B.prototype,"componentWillLoad",null),M([v("watchName")],B.prototype,"setRadioItemName",null),M([v("watchValue")],B.prototype,"setRadioItemCheckedByValue",null),M([v("componentDidLoad")],B.prototype,"syncRadioItemsStatus",null);var T=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};const W=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.formFieldController=new O({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new I:null}],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.radioItemsController.getRadioItemsArray().map((e=>e.shadowRoot.querySelector("input"))),defaultValue:"",attributeGetter:e=>this[e],validationRulesName:"validationRules"}),this.radioValueChangeObserver=new E(l,(e=>this.childRadioValueChange(e))),this.radioEventPrevent=new A([w],(()=>this.vegaFlexElement)),this.slotMutationObserver=new z({options:{childList:!0},mutationFilter:D("VEGA-RADIO"),callback:()=>this.radioItemsController.syncRadioArrayAndValue()}),this.changeEventEmitter=x(W,w),this.keyboardController=new S,this.radioItemsController=new B,this.valueController=new U,this.vegaComponentUsageRuntimeMetricsSlimmer=new m,this.label="",this.value="",this.name="",this.vegaFlexProp={},this.required=!1,this.optional=!1,this.hint="",this.isValid=null,this.disabled=!1,this.autoValidation=!0,this.validationRules=[],this.childRadioValueChange=e=>{e.detail&&this.valueController.setValue(e.host.value)}}async watchValue(e){}watchName(){}watchVegaFlexProp(){this.setVegaFlexProperty()}async watchDisabled(){this.notifyGroupDisabledChange()}watchValidationRules(){}componentWillLoad(){}componentDidLoad(){this.setVegaFlexProperty(),this.disabled&&this.notifyGroupDisabledChange()}render(){return n(t(a,{role:"radiogroup"},this.renderLabelDom(),t("div",{class:"vega-radio-container",ref:e=>this.inputContainerRef=e},t("vega-flex",{ref:e=>{this.vegaFlexElement=e}},t("slot",null))),this.renderHintDom()),this.host)}renderLabelDom(){return this.label&&t("vega-field-label",{label:this.label,isFieldRequired:this.required,disabled:this.disabled,optional:this.optional})}renderHintDom(){return this.hint&&t("div",{class:"vega-hint"},t("label",null,this.hint))}setVegaFlexProperty(){this.vegaFlexProp&&Object.assign(this.vegaFlexElement,{gap:"size-16",direction:"col"},this.vegaFlexProp)}notifyGroupDisabledChange(){s.notify(d,{host:this.host})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],name:["watchName"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};T([u()],W.prototype,"globalSlimmers",void 0),T([b()],W.prototype,"formFieldController",void 0),T([b()],W.prototype,"radioValueChangeObserver",void 0),T([b()],W.prototype,"radioEventPrevent",void 0),T([b()],W.prototype,"slotMutationObserver",void 0),T([b()],W.prototype,"changeEventEmitter",void 0),T([b()],W.prototype,"keyboardController",void 0),T([b()],W.prototype,"radioItemsController",void 0),T([b()],W.prototype,"valueController",void 0),T([b()],W.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),T([C()],W.prototype,"watchVegaFlexProp",null),W.style=':host{display:block;text-align:left;line-height:normal}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}vega-field-label{margin-bottom:16px;display:block}vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:30px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}vega-field-label::part(label){word-break:normal}.vega-hint{padding-top:12px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}';export{N as vega_radio,W as vega_radio_group}
1
+ import{r as e,c as i,h as t,H as a,g as r}from"./p-6b2342e0.js";import{c as o}from"./p-3a620268.js";import{s as n}from"./p-519a7d55.js";import{C as s}from"./p-2d0d575f.js";import{R as l,i as d,F as h}from"./p-cb378636.js";import{O as c}from"./p-331a62d5.js";import{f as p}from"./p-528748fa.js";import{c as g,M as v,V as f,I as b}from"./p-6e1ab235.js";import{V as m,I as u}from"./p-8ce9e214.js";import{c as x}from"./p-66647244.js";import{d as w,L as y,M as j}from"./p-5447a8e8.js";import{i as R}from"./p-4a2fe3a4.js";import{d as k}from"./p-526e3634.js";import{R as I}from"./p-8bc15ed0.js";import{C}from"./p-75b58efe.js";import{F as O}from"./p-56db3323.js";import{C as E}from"./p-014cd411.js";import{C as A}from"./p-2c737fc8.js";import{K as V}from"./p-d609c3fd.js";import{M as z}from"./p-78a57a17.js";import{T as D}from"./p-52b8f2d2.js";import"./p-6a334573.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-abd7aeaa.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-874e5624.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-71909102.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-c41a2d4a.js";import"./p-5f377954.js";import"./p-6c95a6a3.js";import"./p-456f678b.js";import"./p-b438e68b.js";var F=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class G extends f{connectedCallback(){this.radioGroup=p(this.host,"vega-radio-group")||p(this.host,"vega-selection-tile-group"),this.radioGroup&&(this.fieldErrorObserver=new c(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),s.register(k.getSubject(this.radioGroup,R),this.fieldErrorObserver))}disconnectedCallback(){this.radioGroup&&s.unregister(k.getSubject(this.radioGroup,R),this.fieldErrorObserver)}canAcceptFieldErrorObserver(e){return("VEGA-RADIO-GROUP"===e.host.tagName||"VEGA-SELECTION-TILE-GROUP"===e.host.tagName)&&this.radioGroup===e.host}fieldErrorObserverListener(e){this.showError=e.showError}}F([g({writable:!0})],G.prototype,"showError",void 0),F([g()],G.prototype,"host",void 0),F([v("connectedCallback")],G.prototype,"connectedCallback",null),F([v("disconnectedCallback")],G.prototype,"disconnectedCallback",null);var L=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};const N=class{constructor(t){e(this,t),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.changeEventEmitter=x(N,w),this.focusEventEmitter=x(N,y),this.blurEventEmitter=x(N,j),this.vegaRadioShowErrorController=new G,this.vegaComponentUsageRuntimeMetricsSlimmer=new m,this.groupDisabled=!1,this.showError=!1,this.value="",this.checked=!1,this.disabled=!1,this.size="default",this.updateValue=e=>{this.checked=e.currentTarget.checked,e.stopPropagation()},this.handleFocus=e=>{this.focusEventEmitter.emit(e,e)},this.handleBlur=e=>{this.blurEventEmitter.emit(e,e)},this.handleClick=e=>{e.stopPropagation()}}watchCheckedChange(){this.changeEventEmitter.emit(this.checked),s.notify(l,{host:this.host,detail:this.checked})}connectedCallback(){this.ariaLabel=this.host.textContent,""==this.ariaLabel&&(this.ariaLabel=this.value)}disconnectedCallback(){this.unRegisterGroupDisabledObserver()}componentDidLoad(){""===this.host.textContent&&this.labelElement.classList.add("vega-hidden"),this.initAndRegisterGroupDisabledObserver()}render(){var e;const i="VEGA-RADIO-GROUP"==(null===(e=this.host.parentElement)||void 0===e?void 0:e.nodeName);return n(t(a,{class:{"vega-flex-shrink-0 v-min-w-min":i}},t("label",{class:{"vega-radio-container":!0,[this.size]:!0,"vega-radio-checked":this.checked,"vega-radio-disabled":this.isDisabled(),error:this.showError}},t("input",{type:"radio",name:this.name,checked:this.checked,value:this.value,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleClick,onChange:this.updateValue,"aria-label":this.ariaLabel||"No label defined",disabled:this.isDisabled(),tabIndex:this.isDisabled()?-1:0,onKeyDown:o()}),t("span",{class:"vega-radio-icon"},t("span",{class:"vega-radio-circle"})),t("div",{class:"vega-radio-label",ref:e=>this.labelElement=e},t("slot",null)))),this.host)}isDisabled(){return this.disabled||this.groupDisabled}canAcceptGroupDisabledObserver(e){return p(this.host,"vega-radio-group")===e.host}groupDisabledObserverListener(e){this.groupDisabled=e.host.disabled}initAndRegisterGroupDisabledObserver(){p(this.host,"vega-radio-group")&&(this.groupDisabledObserver=new c(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),s.register(d,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&s.unregister(d,this.groupDisabledObserver)}get host(){return r(this)}static get watchers(){return{checked:["watchCheckedChange"]}}};L([u()],N.prototype,"globalSlimmers",void 0),L([b()],N.prototype,"changeEventEmitter",void 0),L([b()],N.prototype,"focusEventEmitter",void 0),L([b()],N.prototype,"blurEventEmitter",void 0),L([b()],N.prototype,"vegaRadioShowErrorController",void 0),L([b()],N.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),N.style=':host{display:inline-block;box-sizing:border-box;height:24px}.vega-radio-container{position:relative;display:inline-flex;gap:8px;cursor:not-allowed}.vega-radio-container:not(.vega-radio-disabled){cursor:pointer}.vega-radio-container input{position:absolute;left:0px;top:0px;opacity:0}.vega-radio-icon{display:inline-block;box-sizing:border-box;border-style:solid;border-radius:9999px;position:relative;left:0px;flex-shrink:0;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-radio-icon:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-radio-container.default .vega-radio-icon{width:24px;height:24px;padding:5px}.vega-radio-container.small .vega-radio-icon{width:16px;height:16px;padding:4px}.vega-radio-checked:hover .vega-radio-circle{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-radio-container input[type=radio]:focus-visible+.vega-radio-icon{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px}.vega-radio-container:not(.vega-radio-disabled):active .vega-radio-icon{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}.vega-radio-checked:active .vega-radio-circle{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.vega-radio-checked .vega-radio-circle{display:block;width:100%;height:100%;border-radius:9999px;background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}.vega-radio-disabled .vega-radio-icon{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.vega-radio-disabled .vega-radio-circle{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-radio-disabled:hover .vega-radio-circle{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-radio-container .vega-radio-label{display:inline-block;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.vega-radio-container .vega-radio-label.vega-hidden{display:none}.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-radio-container.default .vega-radio-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-radio-container.small .vega-radio-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-radio-disabled .vega-radio-label{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}label{-webkit-tap-highlight-color:transparent}.vega-radio-container.error .vega-radio-icon{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}.vega-radio-container.error:hover .vega-radio-icon{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}.vega-radio-container.error input[type=radio]:focus-visible+.vega-radio-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}.vega-radio-container.error:active .vega-radio-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}.vega-radio-checked.error .vega-radio-circle{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-radio-checked.error:hover .vega-radio-circle{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-radio-checked.error:active .vega-radio-circle{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}';class S extends V{constructor(){super((e=>(e.setRadioArrayTabIndex(),[{keyCode:["ArrowUp","ArrowDown"],activeElementInScope:[e.host],callback:e=>{this.updateRadioFocusStates(e)}}])))}setRadioArrayTabIndex(){const e=this.getNotDisabledRadioArray();if(e){const i=e.findIndex((e=>e.checked)),t=i>-1?i:0;e.forEach(((e,i)=>{const a=i===t?"0":"-1";e.shadowRoot.querySelector("input").setAttribute("tabIndex",a)}))}}updateRadioFocusStates(e){const i=e.key,t=this.getNotDisabledRadioArray();if(!t||0===t.length)return;t.forEach((e=>e.shadowRoot.querySelector("input").setAttribute("tabIndex","-1")));const a=t.findIndex((i=>i===e.target));let r;"ArrowDown"===i?r=a===t.length-1?t[0]:t[a+1]:"ArrowUp"===i&&(r=0===a?t[t.length-1]:t[a-1]),r&&(r.shadowRoot.querySelector("input").focus(),r.checked=!0,r.shadowRoot.querySelector("input").tabIndex=0)}getNotDisabledRadioArray(){const e=Array.from(this.host.querySelectorAll("vega-radio"));if(e.length>0)return e.filter((e=>!e.disabled))}}!function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);o>3&&n&&Object.defineProperty(i,t,n)}([g()],S.prototype,"host",void 0);var P=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class U extends f{emitEventAndNotifyValueChangeSubject(e){this.changeEventEmitter.emit(e),s.notify(h,{host:this.host,detail:e})}setValue(e){this.value=e}}P([g()],U.prototype,"host",void 0),P([g({writable:!0})],U.prototype,"value",void 0),P([g()],U.prototype,"changeEventEmitter",void 0),P([g()],U.prototype,"radioItemsController",void 0),P([v("watchValue")],U.prototype,"emitEventAndNotifyValueChangeSubject",null);var M=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};class B extends f{constructor(){super(...arguments),this.vegaRadioArray=[]}componentWillLoad(){this.syncRadioArrayAndValue()}setRadioItemName(){this.vegaRadioArray.forEach((e=>{e.name=this.name?this.name:e.getAttribute("name")}))}setRadioItemCheckedByValue(e){this.vegaRadioArray.forEach((i=>{i.checked=i.value===e}))}syncRadioItemsStatus(){this.setRadioItemCheckedByValue(this.value),this.setRadioItemName()}getRadioItemsArray(){return this.vegaRadioArray}syncRadioArrayAndValue(){this.vegaRadioArray=Array.from(this.host.querySelectorAll("vega-radio")),this.vegaRadioArray.forEach((e=>{e.checked&&this.valueController.setValue(e.value)}))}}M([g()],B.prototype,"host",void 0),M([g()],B.prototype,"value",void 0),M([g()],B.prototype,"name",void 0),M([g()],B.prototype,"valueController",void 0),M([v("componentWillLoad")],B.prototype,"componentWillLoad",null),M([v("watchName")],B.prototype,"setRadioItemName",null),M([v("watchValue")],B.prototype,"setRadioItemCheckedByValue",null),M([v("componentDidLoad")],B.prototype,"syncRadioItemsStatus",null);var T=function(e,i,t,a){var r,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(n=(o<3?r(n):o>3?r(i,t,n):r(i,t))||n);return o>3&&n&&Object.defineProperty(i,t,n),n};const W=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.formFieldController=new O({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new I:null}],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.radioItemsController.getRadioItemsArray().map((e=>e.shadowRoot.querySelector("input"))),defaultValue:"",attributeGetter:e=>this[e],validationRulesName:"validationRules"}),this.radioValueChangeObserver=new E(l,(e=>this.childRadioValueChange(e))),this.radioEventPrevent=new A([w],(()=>this.vegaFlexElement)),this.slotMutationObserver=new z({options:{childList:!0},mutationFilter:D("VEGA-RADIO"),callback:()=>this.radioItemsController.syncRadioArrayAndValue()}),this.changeEventEmitter=x(W,w),this.keyboardController=new S,this.radioItemsController=new B,this.valueController=new U,this.vegaComponentUsageRuntimeMetricsSlimmer=new m,this.label="",this.value="",this.name="",this.vegaFlexProp={},this.required=!1,this.optional=!1,this.hint="",this.isValid=null,this.disabled=!1,this.autoValidation=!0,this.validationRules=[],this.childRadioValueChange=e=>{e.detail&&this.valueController.setValue(e.host.value)}}async watchValue(e){}watchName(){}watchVegaFlexProp(){this.setVegaFlexProperty()}async watchDisabled(){this.notifyGroupDisabledChange()}watchValidationRules(){}componentWillLoad(){}componentDidLoad(){this.setVegaFlexProperty(),this.disabled&&this.notifyGroupDisabledChange()}render(){return n(t(a,{role:"radiogroup"},this.renderLabelDom(),t("div",{class:"vega-radio-container",ref:e=>this.inputContainerRef=e},t("vega-flex",{ref:e=>{this.vegaFlexElement=e}},t("slot",null))),this.renderHintDom()),this.host)}renderLabelDom(){return this.label&&t("vega-field-label",{label:this.label,isFieldRequired:this.required,disabled:this.disabled,optional:this.optional})}renderHintDom(){return this.hint&&t("div",{class:"vega-hint"},t("label",null,this.hint))}setVegaFlexProperty(){this.vegaFlexProp&&Object.assign(this.vegaFlexElement,{gap:"size-16",direction:"col"},this.vegaFlexProp)}notifyGroupDisabledChange(){s.notify(d,{host:this.host})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],name:["watchName"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};T([u()],W.prototype,"globalSlimmers",void 0),T([b()],W.prototype,"formFieldController",void 0),T([b()],W.prototype,"radioValueChangeObserver",void 0),T([b()],W.prototype,"radioEventPrevent",void 0),T([b()],W.prototype,"slotMutationObserver",void 0),T([b()],W.prototype,"changeEventEmitter",void 0),T([b()],W.prototype,"keyboardController",void 0),T([b()],W.prototype,"radioItemsController",void 0),T([b()],W.prototype,"valueController",void 0),T([b()],W.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),T([C()],W.prototype,"watchVegaFlexProp",null),W.style=':host{display:block;text-align:left;line-height:normal}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}vega-field-label{margin-bottom:16px;display:block}vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:30px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){vega-field-label::part(container){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}vega-field-label::part(label){word-break:normal}.vega-hint{padding-top:12px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}';export{N as vega_radio,W as vega_radio_group}
@@ -1 +1 @@
1
- import{F as s}from"./p-87a4d75f.js";import{V as l,a as o,b as a,c as t,w as i,d as e,e as c,f as n,g as b,h as r,i as h,j as f,k as p,l as T,m as g,n as m,o as d,p as u,q as j,r as C,s as O,t as k,u as v,v as E,x as R,y as V,z as _,A}from"./p-2ff4ae1c.js";import{V as y}from"./p-8e7932bc.js";import{M as L,V as D,s as M,G as N}from"./p-6e1ab235.js";import{V as x}from"./p-e8f50fc5.js";import{T as F}from"./p-b438e68b.js";import{V as H}from"./p-ffdc25ec.js";import{V as P,s as w}from"./p-874e5624.js";import{V as G}from"./p-12e8a1b2.js";import{v as W}from"./p-5f377954.js";import{U as B}from"./p-cb378636.js";import{C as q}from"./p-2d0d575f.js";import{O as z}from"./p-331a62d5.js";import{f as K}from"./p-6b2342e0.js";import{V as S}from"./p-1d5e05d9.js";import{v as U,s as Y}from"./p-4866e390.js";import{V as I}from"./p-2bb60f89.js";import{V as J}from"./p-e9b005df.js";import"./p-456f678b.js";import{V as Q}from"./p-0809c651.js";var X=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class Z extends D{constructor(l){super(),this.originalWatchers=new Map,this.hasDisconnected=!1,this.isEnabled=s.isEnabled("VEGA_REACT.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD")&&s.isEnabled("VEGA_FRAMEWORK.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD"),this.component=l.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const l in s)s[l].forEach((s=>{this.originalWatchers.has(s)||(this.originalWatchers.set(s,this.component[s]),this.component[s]=function(){})}))}disconnectedCallback(){this.isEnabled&&(this.hasDisconnected=!0)}componentDidLoad(){this.isEnabled&&this.originalWatchers.forEach(((s,l)=>{const o=s;this.component[l]=function(...s){return o.apply(this,s)}}))}}X([L("connectedCallback")],Z.prototype,"connectedCallback",null),X([L("disconnectedCallback")],Z.prototype,"disconnectedCallback",null),X([L("componentDidLoad")],Z.prototype,"componentDidLoad",null);var $=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class ss extends D{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new z(this.isAcceptable.bind(this),(()=>{K(this.component)})),q.register(B,this.observer)}disconnectedCallback(){this.observer&&(q.unregister(B,this.observer),this.observer=null)}isAcceptable(){var s,l;const o=this.component.host;return null!==(l=null===(s=P.getConnectedComponents().get(o.tagName))||void 0===s?void 0:s.has(o))&&void 0!==l&&l}}$([L("connectedCallback")],ss.prototype,"connectedCallback",null),$([L("disconnectedCallback")],ss.prototype,"disconnectedCallback",null);class ls extends D{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,l=s.insertBefore;s.insertBefore=function(s,o){if("STYLE"===s.nodeName){const l=U.nonce;void 0!==l&&s.setAttribute("nonce",l)}return l.call(this,s,o)}}}!function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);i>3&&e&&Object.defineProperty(l,o,e)}([L("connectedCallback")],ls.prototype,"connectedCallback",null);const os=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=l,globalThis.VegaNotify=o,globalThis.VegaThemeManager=y,globalThis.setVegaLogLevel=M,globalThis.VegaDialog=x,N.register([Z,ss,ls]),globalThis.VegaEventManager=a,Object.keys(F).forEach((s=>{const{url:l}=F[s],o="vega-typography-"+s;if(!document.querySelector("#"+o)){const s=document.createElement("link");s.id=o,s.href=l,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=H,globalThis.VegaZIndexManager=t,globalThis.ValidCreditCardNumberRule=G,globalThis.VegaEnvInfo=W.getVegaEnv(),import("./p-982747ef.js").then((l=>{l.default.init(s)})),globalThis.waitForVega=i,globalThis.VegaSkeletonLoader=e,globalThis.VegaTranslation=c,globalThis.VegaTranslationResourceEN=w,globalThis.VegaRTEContent=S,globalThis.VegaRTETokenExtension=n,globalThis.VegaRTELanguageExtension=b,globalThis.VegaRTEPresetToolbarItems=I,globalThis.VegaRTEDefaultLineHeightOptions=r,globalThis.VegaRTEFunctionExtension=h,globalThis.VegaRTETableExtension=f,globalThis.VegaRTEHorizontalLineExtension=p,globalThis.VegaRTEBlockquoteExtension=T,globalThis.VegaRTESpecialCharactersExtension=g,globalThis.VegaRTEFindReplaceExtension=m,globalThis.VegaRTESpecialCharactersEssentials=d,globalThis.VegaRTESpecialCharactersLatin=u,globalThis.VegaRTESpecialCharactersMathematical=j,globalThis.VegaRTESpecialCharactersArrows=C,globalThis.VegaRTESpecialCharactersCurrency=O,globalThis.VegaRTESpecialCharactersText=k,globalThis.VegaRTELineHeightExtension=v,globalThis.VegaRTEPasteExtension=E,globalThis.VegaRTELinkExtension=J,globalThis.VegaRTEFullscreenExtension=R,globalThis.VegaRTECopyExtension=V,globalThis.VegaRTECutExtension=_,globalThis.VegaRTEImageExtension=Q,import("./p-9be02fa5.js").then((s=>{Object.entries(s).forEach((([s,l])=>{globalThis[s]=l}))})),globalThis.VegaThemeManagerApplyBranding&&y.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=Y,U.patchHeadInsertBeforeWithNonceToStencil(),globalThis.VegaCalendarPeriodFactory=A};export{os as g}
1
+ import{F as s}from"./p-87a4d75f.js";import{V as l,a as o,b as a,c as t,w as i,d as e,e as c,f as n,g as b,h as r,i as h,j as f,k as p,l as T,m as g,n as m,o as d,p as u,q as j,r as C,s as O,t as k,u as v,v as E,x as R,y as V,z as _,A}from"./p-10d30c03.js";import{V as y}from"./p-56493601.js";import{M as L,V as D,s as M,G as N}from"./p-6e1ab235.js";import{V as x}from"./p-e8f50fc5.js";import{T as F}from"./p-b438e68b.js";import{V as H}from"./p-ffdc25ec.js";import{V as P,s as w}from"./p-874e5624.js";import{V as G}from"./p-12e8a1b2.js";import{v as W}from"./p-5f377954.js";import{U as B}from"./p-cb378636.js";import{C as q}from"./p-2d0d575f.js";import{O as z}from"./p-331a62d5.js";import{f as K}from"./p-6b2342e0.js";import{V as S}from"./p-0eb29065.js";import{v as U,s as Y}from"./p-4866e390.js";import{V as I}from"./p-571ec00b.js";import{V as J}from"./p-3d0b4074.js";import"./p-456f678b.js";import{V as Q}from"./p-6fd4f2c6.js";var X=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class Z extends D{constructor(l){super(),this.originalWatchers=new Map,this.hasDisconnected=!1,this.isEnabled=s.isEnabled("VEGA_REACT.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD")&&s.isEnabled("VEGA_FRAMEWORK.PREVENT_CALL_WATCH_METHOD_BEFORE_COMPONENT_LOAD"),this.component=l.component}connectedCallback(){if(!this.isEnabled)return;if(this.hasDisconnected)return;const s=this.component.constructor.watchers;for(const l in s)s[l].forEach((s=>{this.originalWatchers.has(s)||(this.originalWatchers.set(s,this.component[s]),this.component[s]=function(){})}))}disconnectedCallback(){this.isEnabled&&(this.hasDisconnected=!0)}componentDidLoad(){this.isEnabled&&this.originalWatchers.forEach(((s,l)=>{const o=s;this.component[l]=function(...s){return o.apply(this,s)}}))}}X([L("connectedCallback")],Z.prototype,"connectedCallback",null),X([L("disconnectedCallback")],Z.prototype,"disconnectedCallback",null),X([L("componentDidLoad")],Z.prototype,"componentDidLoad",null);var $=function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);return i>3&&e&&Object.defineProperty(l,o,e),e};class ss extends D{constructor(s){super(),this.component=s.component}connectedCallback(){this.observer=new z(this.isAcceptable.bind(this),(()=>{K(this.component)})),q.register(B,this.observer)}disconnectedCallback(){this.observer&&(q.unregister(B,this.observer),this.observer=null)}isAcceptable(){var s,l;const o=this.component.host;return null!==(l=null===(s=P.getConnectedComponents().get(o.tagName))||void 0===s?void 0:s.has(o))&&void 0!==l&&l}}$([L("connectedCallback")],ss.prototype,"connectedCallback",null),$([L("disconnectedCallback")],ss.prototype,"disconnectedCallback",null);class ls extends D{constructor(s){super(),this.component=s.component}connectedCallback(){const s=this.component.host.shadowRoot,l=s.insertBefore;s.insertBefore=function(s,o){if("STYLE"===s.nodeName){const l=U.nonce;void 0!==l&&s.setAttribute("nonce",l)}return l.call(this,s,o)}}}!function(s,l,o,a){var t,i=arguments.length,e=i<3?l:null===a?a=Object.getOwnPropertyDescriptor(l,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(s,l,o,a);else for(var c=s.length-1;c>=0;c--)(t=s[c])&&(e=(i<3?t(e):i>3?t(l,o,e):t(l,o))||e);i>3&&e&&Object.defineProperty(l,o,e)}([L("connectedCallback")],ls.prototype,"connectedCallback",null);const os=function(){globalThis.VegaDisabledFeatureKeys&&s.disable(...globalThis.VegaDisabledFeatureKeys),globalThis.VegaEnabledFeatureKeys&&s.enable(...globalThis.VegaEnabledFeatureKeys),globalThis.VegaLoader=l,globalThis.VegaNotify=o,globalThis.VegaThemeManager=y,globalThis.setVegaLogLevel=M,globalThis.VegaDialog=x,N.register([Z,ss,ls]),globalThis.VegaEventManager=a,Object.keys(F).forEach((s=>{const{url:l}=F[s],o="vega-typography-"+s;if(!document.querySelector("#"+o)){const s=document.createElement("link");s.id=o,s.href=l,s.rel="stylesheet",document.head.append(s)}})),globalThis.VegaIconManager=H,globalThis.VegaZIndexManager=t,globalThis.ValidCreditCardNumberRule=G,globalThis.VegaEnvInfo=W.getVegaEnv(),import("./p-982747ef.js").then((l=>{l.default.init(s)})),globalThis.waitForVega=i,globalThis.VegaSkeletonLoader=e,globalThis.VegaTranslation=c,globalThis.VegaTranslationResourceEN=w,globalThis.VegaRTEContent=S,globalThis.VegaRTETokenExtension=n,globalThis.VegaRTELanguageExtension=b,globalThis.VegaRTEPresetToolbarItems=I,globalThis.VegaRTEDefaultLineHeightOptions=r,globalThis.VegaRTEFunctionExtension=h,globalThis.VegaRTETableExtension=f,globalThis.VegaRTEHorizontalLineExtension=p,globalThis.VegaRTEBlockquoteExtension=T,globalThis.VegaRTESpecialCharactersExtension=g,globalThis.VegaRTEFindReplaceExtension=m,globalThis.VegaRTESpecialCharactersEssentials=d,globalThis.VegaRTESpecialCharactersLatin=u,globalThis.VegaRTESpecialCharactersMathematical=j,globalThis.VegaRTESpecialCharactersArrows=C,globalThis.VegaRTESpecialCharactersCurrency=O,globalThis.VegaRTESpecialCharactersText=k,globalThis.VegaRTELineHeightExtension=v,globalThis.VegaRTEPasteExtension=E,globalThis.VegaRTELinkExtension=J,globalThis.VegaRTEFullscreenExtension=R,globalThis.VegaRTECopyExtension=V,globalThis.VegaRTECutExtension=_,globalThis.VegaRTEImageExtension=Q,import("./p-1abd3c17.js").then((s=>{Object.entries(s).forEach((([s,l])=>{globalThis[s]=l}))})),globalThis.VegaThemeManagerApplyBranding&&y.applyBranding(globalThis.VegaThemeManagerApplyBranding),globalThis.setVegaNonce=Y,U.patchHeadInsertBeforeWithNonceToStencil(),globalThis.VegaCalendarPeriodFactory=A};export{os as g}
@@ -1 +1 @@
1
- import{V as r}from"./p-1d5e05d9.js";import{I as e}from"./p-abd7aeaa.js";class i extends e{evaluate(r){var e,i;if(!this.isAcceptedInputType(r))throw new Error(`Invalid value ${r} for rich text editor`);const t=(null===(e=null==r?void 0:r.children)||void 0===e?void 0:e.length)>1||1===(null===(i=null==r?void 0:r.children)||void 0===i?void 0:i.length)&&r.children.some((r=>r.isNotEmpty()));return{isValid:t,message:t?"":"This field is required"}}canEvaluate(r,e){return e?this.isAcceptedInputType(r)&&!e.disabled&&e.visible:this.isAcceptedInputType(r)}shouldShowError(r){return!r.disabled&&r.visible&&(r.touched||r.modified)}isAcceptedInputType(e){return null==e||e instanceof r}}export{i as R}
1
+ import{V as r}from"./p-0eb29065.js";import{I as e}from"./p-abd7aeaa.js";class i extends e{evaluate(r){var e,i;if(!this.isAcceptedInputType(r))throw new Error(`Invalid value ${r} for rich text editor`);const t=(null===(e=null==r?void 0:r.children)||void 0===e?void 0:e.length)>1||1===(null===(i=null==r?void 0:r.children)||void 0===i?void 0:i.length)&&r.children.some((r=>r.isNotEmpty()));return{isValid:t,message:t?"":"This field is required"}}canEvaluate(r,e){return e?this.isAcceptedInputType(r)&&!e.disabled&&e.visible:this.isAcceptedInputType(r)}shouldShowError(r){return!r.disabled&&r.visible&&(r.touched||r.modified)}isAcceptedInputType(e){return null==e||e instanceof r}}export{i as R}
@@ -1 +1 @@
1
- import{M as t,V as s}from"./p-6e1ab235.js";import{j as i,k as n,e}from"./p-528748fa.js";import{S as h}from"./p-1fb56e14.js";import{O as c}from"./p-331a62d5.js";import{C as a}from"./p-2d0d575f.js";import{D as o}from"./p-3a68b729.js";import{d as l}from"./p-526e3634.js";var r=function(t,s,i,n){var e,h=arguments.length,c=h<3?s:null===n?n=Object.getOwnPropertyDescriptor(s,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,i,n);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(c=(h<3?e(c):h>3?e(s,i,c):e(s,i))||c);return h>3&&c&&Object.defineProperty(s,i,c),c};class d extends s{constructor(t){super(),this.isVoiceOverClick=!1,this.focusTriggerElement=null,this.focusDialogTaskQueue=new h,this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null,this.isChildFocused=!1,this.eventListenerHandler=()=>{const t=this.entry.triggerEl()||window;t.addEventListener("click",this.handleClickEvent,{capture:!0}),t.addEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.eventListenerRemover=()=>{const t=this.entry.triggerEl();t&&t.removeEventListener("click",this.handleClickEvent,{capture:!0}),window.removeEventListener("click",this.handleClickEvent,{capture:!0}),t&&t.removeEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.handleClickEvent=t=>{this.isVoiceOverClick=i(t),this.isVoiceOverClick||(this.focusTriggerElement=null)},this.handleContextMenuEvent=t=>{this.isVoiceOverClick&&(t.preventDefault(),t.stopPropagation())},this.focusOnFirstFocusableElement=()=>{if(!this.isChildFocused){const t=this.entry.dialogEl(),s=n(t);s?(this.isChildFocused=!0,s.focus()):t.focus()}},this.entry=t}connectedCallback(){this.eventListenerHandler(),this.subscribeDialogContentReady()}disconnectedCallback(){this.eventListenerRemover(),this.unsubscribeDialogContentReady()}componentDidLoad(){this.eventListenerHandler(),this.subscribeDialogContentReady()}async componentDidRender(){await this.focusDialogTaskQueue.runTask()}async toggle(t){t?await this.show():await this.hide()}async show(){this.entry.dialogEl().removeAttribute("inert");const t=e(document,!0);t&&(this.isChildFocused=!1,await this.focusDialogTaskQueue.enqueue({run:async()=>{this.isVoiceOverClick&&(this.focusTriggerElement=t,this.focusOnFirstFocusableElement())}},!1))}async hide(){this.focusTriggerElement&&(this.entry.dialogEl().setAttribute("inert",""),await this.focusDialogTaskQueue.enqueue({run:async()=>{this.focusTriggerElement&&this.focusTriggerElement.focus(),this.focusTriggerElement=null}},!1))}subscribeDialogContentReady(){this.entry.dialogEl()&&!this.dialogContentReadySubject&&(this.dialogContentReadySubject=l.getSubject(this.entry.dialogEl(),o),this.dialogContentReadyObserver=new c((()=>!0),(()=>{this.isVoiceOverClick&&this.focusOnFirstFocusableElement()})),a.register(this.dialogContentReadySubject,this.dialogContentReadyObserver))}unsubscribeDialogContentReady(){this.dialogContentReadyObserver&&this.dialogContentReadySubject&&(a.unregister(this.dialogContentReadySubject,this.dialogContentReadyObserver),this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null)}}r([t("connectedCallback")],d.prototype,"connectedCallback",null),r([t("disconnectedCallback")],d.prototype,"disconnectedCallback",null),r([t("componentDidLoad")],d.prototype,"componentDidLoad",null),r([t("componentDidRender")],d.prototype,"componentDidRender",null);export{d as A}
1
+ import{M as t,V as s}from"./p-6e1ab235.js";import{j as i,k as n,e}from"./p-528748fa.js";import{S as h}from"./p-1fb56e14.js";import{O as c}from"./p-331a62d5.js";import{C as a}from"./p-2d0d575f.js";import{D as o}from"./p-4a2fe3a4.js";import{d as l}from"./p-526e3634.js";var r=function(t,s,i,n){var e,h=arguments.length,c=h<3?s:null===n?n=Object.getOwnPropertyDescriptor(s,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,i,n);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(c=(h<3?e(c):h>3?e(s,i,c):e(s,i))||c);return h>3&&c&&Object.defineProperty(s,i,c),c};class d extends s{constructor(t){super(),this.isVoiceOverClick=!1,this.focusTriggerElement=null,this.focusDialogTaskQueue=new h,this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null,this.isChildFocused=!1,this.eventListenerHandler=()=>{const t=this.entry.triggerEl()||window;t.addEventListener("click",this.handleClickEvent,{capture:!0}),t.addEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.eventListenerRemover=()=>{const t=this.entry.triggerEl();t&&t.removeEventListener("click",this.handleClickEvent,{capture:!0}),window.removeEventListener("click",this.handleClickEvent,{capture:!0}),t&&t.removeEventListener("contextmenu",this.handleContextMenuEvent,{capture:!0})},this.handleClickEvent=t=>{this.isVoiceOverClick=i(t),this.isVoiceOverClick||(this.focusTriggerElement=null)},this.handleContextMenuEvent=t=>{this.isVoiceOverClick&&(t.preventDefault(),t.stopPropagation())},this.focusOnFirstFocusableElement=()=>{if(!this.isChildFocused){const t=this.entry.dialogEl(),s=n(t);s?(this.isChildFocused=!0,s.focus()):t.focus()}},this.entry=t}connectedCallback(){this.eventListenerHandler(),this.subscribeDialogContentReady()}disconnectedCallback(){this.eventListenerRemover(),this.unsubscribeDialogContentReady()}componentDidLoad(){this.eventListenerHandler(),this.subscribeDialogContentReady()}async componentDidRender(){await this.focusDialogTaskQueue.runTask()}async toggle(t){t?await this.show():await this.hide()}async show(){this.entry.dialogEl().removeAttribute("inert");const t=e(document,!0);t&&(this.isChildFocused=!1,await this.focusDialogTaskQueue.enqueue({run:async()=>{this.isVoiceOverClick&&(this.focusTriggerElement=t,this.focusOnFirstFocusableElement())}},!1))}async hide(){this.focusTriggerElement&&(this.entry.dialogEl().setAttribute("inert",""),await this.focusDialogTaskQueue.enqueue({run:async()=>{this.focusTriggerElement&&this.focusTriggerElement.focus(),this.focusTriggerElement=null}},!1))}subscribeDialogContentReady(){this.entry.dialogEl()&&!this.dialogContentReadySubject&&(this.dialogContentReadySubject=l.getSubject(this.entry.dialogEl(),o),this.dialogContentReadyObserver=new c((()=>!0),(()=>{this.isVoiceOverClick&&this.focusOnFirstFocusableElement()})),a.register(this.dialogContentReadySubject,this.dialogContentReadyObserver))}unsubscribeDialogContentReady(){this.dialogContentReadyObserver&&this.dialogContentReadySubject&&(a.unregister(this.dialogContentReadySubject,this.dialogContentReadyObserver),this.dialogContentReadyObserver=null,this.dialogContentReadySubject=null)}}r([t("connectedCallback")],d.prototype,"connectedCallback",null),r([t("disconnectedCallback")],d.prototype,"disconnectedCallback",null),r([t("componentDidLoad")],d.prototype,"componentDidLoad",null),r([t("componentDidRender")],d.prototype,"componentDidRender",null);export{d as A}
@@ -1 +1 @@
1
- import{h as e,F as t,r as s,c as r,H as o,g as i}from"./p-6b2342e0.js";import{p as a,$ as n}from"./p-5447a8e8.js";import{s as p}from"./p-519a7d55.js";import{c,V as l,M as g,I as d}from"./p-6e1ab235.js";import{V as h,I as v}from"./p-8ce9e214.js";import{c as f}from"./p-66647244.js";import{c as u}from"./p-2a9960c9.js";import{d as m,D as b}from"./p-526e3634.js";import{c as x}from"./p-3a620268.js";import{C as _}from"./p-2d0d575f.js";import{E as w}from"./p-3a68b729.js";import{n as y}from"./p-262ec334.js";import{O as k}from"./p-331a62d5.js";import{S as C}from"./p-1fb56e14.js";import{c as S}from"./p-3f183b52.js";import{M as j}from"./p-78a57a17.js";import{P as z}from"./p-81dd00d0.js";import{R}from"./p-1e0a8fd3.js";import{w as D}from"./p-456f678b.js";import{g as O}from"./p-49a2e141.js";import{A as P}from"./p-4d65756f.js";import{S as I}from"./p-29e3eb12.js";import"./p-6a334573.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-a841cf13.js";import"./p-528748fa.js";import"./p-d4ea8e22.js";import"./p-0c667d6a.js";import"./p-ed45b3b6.js";import"./p-d27ae9ff.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-b438e68b.js";import"./p-874e5624.js";import"./p-cb378636.js";const L=[{payloadKey:"COMPLETED_STEP_ARRAY_IS_EMPTY",payloadDescription:"@deprecated Specifies an array of completed step titles for the Progress Tracker component.",payloadValue:e=>0===e.completedStepArray.length},{payloadKey:"COMPLETED_STEP_ARRAY_IS_NOT_EMPTY",payloadDescription:"@deprecated Specifies an array of completed step titles for the Progress Tracker component.",payloadValue:e=>e.completedStepArray.length>0}];var E=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class A extends l{constructor(){super(...arguments),this.renderStepIcon=(t,s)=>e("div",{class:"vega-progress-step-icon-container"},e("div",{class:"vega-progress-step__icon"},t.isCompleted()?e("vega-icon",{icon:"checkmark-rounded",size:"size-16"}):e("span",null,s+1))),this.renderStep=(t,s)=>{var r;return e("div",{role:t.clickable?"button":null,class:["vega-progress-step",t.progressStatus,t.isCurrent?"current":"",t.clickable?"":"disabled"].filter(Boolean).join(" "),"data-index":s,tabIndex:t.clickable?0:null,onClick:t.clickable?this.onStepIconClick:null,onKeyDown:t.clickable?x():null,"aria-label":t.title},e("div",{class:"vega-progress-step-icon-divider"},e("div",{class:"vega-progress-step__divider left "+((null===(r=this.currentSteps[s-1])||void 0===r?void 0:r.isCompleted())?"background":"")}),this.renderStepIcon(t,s),e("div",{class:"vega-progress-step__divider right "+(t.isCompleted()?"complete":"default")})),e("div",{class:"vega-progress-step__title"},this.renderStepTitle(t,s,"top")))},this.onStepIconClick=e=>{const t=Number(e.currentTarget.getAttribute("data-index"));_.notify(m.getSubject(this.host,w),t)}}async gotoCarouselPage(e){const t=null!=e?e:this.current;t>=0&&this.carouselContainerRef.getBoundingClientRect().width>0&&await this.carouselRef.goToPage(t+1)}render(){return e(t,null,e("div",{class:"vega-progress-tracker__container"},e("div",{class:"vega-progress-tracker__slot"},this.currentSteps.map(((e,t)=>this.renderStep(e,t))))),e("div",{class:"vega-progress-tracker__box",ref:e=>this.carouselContainerRef=e},e("vega-carousel",{showSlider:!1,itemsPerPage:1,canSwipe:this.canClickStep,ref:e=>(b.addUniqueObserverToNode(e,a,(async e=>{await this.host.setCurrent(e.detail-1)})),this.carouselRef=e)},this.currentSteps.map(((e,t)=>this.renderStepTitle(e,t,"carousel"))))))}renderStepTitle(t,s,r){const o="horizontal-compact"===this.currentDirection;if(o&&"carousel"===r||!o&&"top"===r)return this.renderModeController.isSourceRenderMode()?e("vega-progress-tracker-step",{key:t.stepKey,stepKey:t.stepKey},t.title):e("slot",{name:`step-${s}`})}}E([c()],A.prototype,"host",void 0),E([c()],A.prototype,"currentSteps",void 0),E([c()],A.prototype,"canClickStep",void 0),E([c()],A.prototype,"current",void 0),E([c()],A.prototype,"deprecatedPropertySlimmer",void 0),E([c()],A.prototype,"currentStepController",void 0),E([c()],A.prototype,"currentDirection",void 0),E([c()],A.prototype,"renderModeController",void 0);var T,M=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class U extends l{constructor(){super(...arguments),this.goToPageTaskQueue=new C,this.updateCurrent=e=>{const t=Math.max(0,this.currentSteps.length-1);this.current=y(e,this.allowNoCurrentStep?-1:0,t)}}connectedCallback(){this.initStepClickObserver()}disconnectedCallback(){this.removeStepClickObserver()}componentDidLoad(){this.updateCurrent(this.current)}async componentDidRender(){await this.goToPageTaskQueue.runTask()}async watchCurrentChange(){var e;this.updateCurrent(this.current),this.currentStepUpdateEventEmitter.emit(null===(e=this.currentSteps[this.current])||void 0===e?void 0:e.stepKey),await this.renderer.gotoCarouselPage()}watchSteps(){this.updateCurrent(this.current)}nextStep(){this.updateCurrent(++this.current)}prevStep(){const e=this.allowNoCurrentStep&&this.current<=-1?-1:0,t=Math.max(0,this.currentSteps.length-1);this.current=y(--this.current,e,t)}setCurrent(e){this.updateCurrent(e)}async watchDirection(){await this.goToPageTaskQueue.enqueue({run:async()=>await this.renderer.gotoCarouselPage()},!1)}initStepClickObserver(){this.stepClickObserver=new k(this.canAcceptStepClickEvent.bind(this),this.updateCurrent.bind(this)),_.register(m.getSubject(this.host,w),this.stepClickObserver)}removeStepClickObserver(){_.unregister(m.getSubject(this.host,w),this.stepClickObserver)}canAcceptStepClickEvent(){return!0}}M([c()],U.prototype,"currentSteps",void 0),M([c({writable:!0})],U.prototype,"current",void 0),M([c()],U.prototype,"allowNoCurrentStep",void 0),M([c()],U.prototype,"currentStepUpdateEventEmitter",void 0),M([c()],U.prototype,"renderer",void 0),M([c()],U.prototype,"host",void 0),M([g("connectedCallback")],U.prototype,"connectedCallback",null),M([g("disconnectedCallback")],U.prototype,"disconnectedCallback",null),M([g("componentDidLoad")],U.prototype,"componentDidLoad",null),M([g("componentDidRender")],U.prototype,"componentDidRender",null),M([g("watchCurrentChange")],U.prototype,"watchCurrentChange",null),M([g("watchSteps")],U.prototype,"watchSteps",null),M([g("nextStep")],U.prototype,"nextStep",null),M([g("prevStep")],U.prototype,"prevStep",null),M([g("setCurrent")],U.prototype,"setCurrent",null),M([g("watchDirection")],U.prototype,"watchDirection",null),function(e){e.DEFAULT="default",e.IN_PROGRESS="inProgress",e.COMPLETE="complete"}(T||(T={}));class q{constructor(e,t,s,r,o){this.stepKey=e,this.title=t,this.progressStatus=s,this.isCurrent=r,this.clickable=o}static fromSteps(e,t,s,r){return t.map(((t,o)=>{const i="string"==typeof t?t:t.title;return new q(i,i,this.getStepStatus(i,o,s,r),o===s,this.getIsStepClickable(e,t))}))}static fromHostSlot(e,t,s){return Array.from(e.querySelectorAll("vega-progress-tracker-step")).map(((r,o)=>{const i=r.stepKey;return new q(i,"",this.getStepStatus(i,o,t,s),o===t,this.getIsStepClickable(e,r))}))}static getIsStepClickable(e,t){return"string"==typeof t?e.canClickStep:!!e.canClickStep&&("boolean"==typeof t.clickable?t.clickable:e.canClickStep)}isCompleted(){return this.progressStatus===T.COMPLETE}}q.getStepStatus=(e,t,s,r)=>r.includes(e)?T.COMPLETE:t===s?T.IN_PROGRESS:T.DEFAULT;var W=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class K extends l{constructor(){super(...arguments),this.mutationObserver=new j({target:()=>this.host,options:{childList:!0,subtree:!0},callback:()=>{this.appendSlotAttribute(),this.syncUpCurrentSteps()}})}connectedCallback(){this.appendSlotAttribute()}disconnectedCallback(){}componentWillLoad(){this.syncUpCurrentSteps()}componentDidLoad(){}watchSteps(){this.syncUpCurrentSteps()}watchCurrentChange(){this.syncUpCurrentSteps()}watchCompletedStepArray(){this.syncUpCurrentSteps()}watchCompletedSteps(){this.syncUpCurrentSteps()}watchCanClickStep(){this.syncUpCurrentSteps()}syncUpCurrentSteps(){this.currentSteps=this.renderModeController.isSourceRenderMode()?q.fromSteps(this.host,this.steps,this.current,this.deprecatedPropertySlimmer.getValue()):q.fromHostSlot(this.host,this.current,this.deprecatedPropertySlimmer.getValue())}appendSlotAttribute(){this.renderModeController.isSourceRenderMode()||Array.from(this.host.querySelectorAll("vega-progress-tracker-step")).map(((e,t)=>{e.setAttribute("slot",`step-${t}`)}))}}W([c()],K.prototype,"host",void 0),W([c()],K.prototype,"steps",void 0),W([c({writable:!0})],K.prototype,"currentSteps",void 0),W([c()],K.prototype,"renderModeController",void 0),W([c()],K.prototype,"current",void 0),W([c()],K.prototype,"deprecatedPropertySlimmer",void 0),W([d()],K.prototype,"mutationObserver",void 0),W([g("connectedCallback")],K.prototype,"connectedCallback",null),W([g("disconnectedCallback")],K.prototype,"disconnectedCallback",null),W([g("componentWillLoad")],K.prototype,"componentWillLoad",null),W([g("componentDidLoad")],K.prototype,"componentDidLoad",null),W([g("watchSteps")],K.prototype,"watchSteps",null),W([g("watchCurrentChange")],K.prototype,"watchCurrentChange",null),W([g("watchCompletedStepArray")],K.prototype,"watchCompletedStepArray",null),W([g("watchCompletedSteps")],K.prototype,"watchCompletedSteps",null),W([g("watchCanClickStep")],K.prototype,"watchCanClickStep",null);var N=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class V extends l{constructor(){super(...arguments),this.renderMode="SOURCE"}connectedCallback(){this.setRenderMode()}isSourceRenderMode(){return"SOURCE"===this.renderMode}setRenderMode(){this.renderMode=this.host.querySelector("vega-progress-tracker-step")?"SLOT":"SOURCE"}}N([c()],V.prototype,"host",void 0),N([g("connectedCallback")],V.prototype,"connectedCallback",null);var Y=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class $ extends P{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new z({callback:async()=>{const e=this.current,t=this.currentDirection;this.setCurrentDirection(),t!==this.currentDirection?this.enqueueSyncCarouselPage(e):await this.renderer.gotoCarouselPage(e)}})}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.setCurrentDirection()}componentDidLoad(){}watchDirection(){this.setCurrentDirection()}async doTask(){}enqueueSyncCarouselPage(e){this.autoRunTaskQueue.enqueue({run:async()=>{await this.renderer.gotoCarouselPage(e)}},!1)}setCurrentDirection(){let e=R.formatCustom(this.direction)||"vertical";["default","S"].includes(O())&&!D(this.direction)&&(e="horizontal-compact"),this.currentDirection=e}}Y([c()],$.prototype,"direction",void 0),Y([c()],$.prototype,"current",void 0),Y([c()],$.prototype,"renderer",void 0),Y([c({writable:!0})],$.prototype,"currentDirection",void 0),Y([d()],$.prototype,"pageResizeObserverSlimmer",void 0),Y([g("connectedCallback")],$.prototype,"connectedCallback",null),Y([g("disconnectedCallback")],$.prototype,"disconnectedCallback",null),Y([g("componentWillLoad")],$.prototype,"componentWillLoad",null),Y([g("componentDidLoad")],$.prototype,"componentDidLoad",null),Y([g("watchDirection")],$.prototype,"watchDirection",null);var H=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};const B=class{constructor(e){s(this,e),this.vegaCurrentStepUpdate=r(this,"vegaCurrentStepUpdate",7),this.currentStepUpdate=r(this,"currentStepUpdate",7),this.globalSlimmers={},this.renderModeController=new V,this.currentStepsController=new K,this.currentStepController=new U,this.currentDirectionController=new $,this.renderer=new A,this.currentStepUpdateEventEmitter=f(B,n),this.currentStepsSubStateSlimmer=S(B,"currentSteps","watchCurrentSteps"),this.deprecatedPropertySlimmer=u(B,"completedSteps","completedStepArray",[]),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(L),this.currentSteps=[],this.current=0,this.direction="vertical",this.steps=[],this.completedStepArray=[],this.completedSteps=[],this.canClickStep=!0,this.allowNoCurrentStep=!1}watchCurrentSteps(){}async watchCurrentChange(){}async watchDirection(){}watchSteps(){}watchCompletedStepArray(){}watchCompletedSteps(){}watchCanClickStep(){}async nextStep(){}async prevStep(){}async setCurrent(e){}async getCurrent(){return this.current}render(){return p(e(o,{class:{"vega-progress-tracker":!0,[this.currentDirection]:!0,"click-step-disabled":!this.canClickStep}},this.renderer.render()),this.host)}get host(){return i(this)}static get watchers(){return{currentSteps:["watchCurrentSteps"],current:["watchCurrentChange"],direction:["watchDirection"],steps:["watchSteps"],completedStepArray:["watchCompletedStepArray"],completedSteps:["watchCompletedSteps"],canClickStep:["watchCanClickStep"]}}};H([v()],B.prototype,"globalSlimmers",void 0),H([d()],B.prototype,"renderModeController",void 0),H([d()],B.prototype,"currentStepsController",void 0),H([d()],B.prototype,"currentStepController",void 0),H([d()],B.prototype,"currentDirectionController",void 0),H([d()],B.prototype,"renderer",void 0),H([d()],B.prototype,"currentStepUpdateEventEmitter",void 0),H([d()],B.prototype,"currentStepsSubStateSlimmer",void 0),H([d()],B.prototype,"deprecatedPropertySlimmer",void 0),H([d()],B.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),B.style=':host .vega-progress-tracker__container{display:flex;align-items:center;padding-top:0px;padding-bottom:0px}:host .vega-progress-tracker__slot{width:100%;display:block}:host .vega-progress-step{display:flex;gap:16px}:host(:not(.click-step-disabled)) .vega-progress-step{cursor:pointer}:host(:not(.click-step-disabled)) .vega-progress-step.default:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary-hover, 239, 239, 239, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.default .vega-progress-step__icon:hover{background-color:rgba(var(--v-bg-action-quaternary-hover, 239, 239, 239, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.default:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary-active, 205, 209, 211, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress .vega-progress-step__icon:hover,:host(:not(.click-step-disabled)) .vega-progress-step.current .vega-progress-step__icon:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress:hover .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.current:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress:active .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.current:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:hover .vega-progress-step__icon{border-color:rgba(var(--v-border-color-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:hover .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:active .vega-progress-step__icon{border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:active .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete.current:hover .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled{cursor:initial}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.default:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.default:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.inProgress:hover .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.disabled.current:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host .vega-progress-step:focus-visible{outline-width:0px}:host .vega-progress-step:focus-visible .vega-progress-step-icon-container{border-radius:8px;outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}:host .vega-progress-step .vega-progress-step-icon-divider{display:flex;flex-direction:column;align-items:center;gap:0px}:host .vega-progress-step .vega-progress-step-icon-container{padding:8px}:host .vega-progress-step .vega-progress-step__icon{display:block;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;box-sizing:content-box;height:32px;width:32px;min-width:32px;line-height:32px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-progress-step .vega-progress-step__icon span{display:block}:host .vega-progress-step .vega-progress-step__icon:not(.disable-responsive){line-height:32px}:host .vega-progress-step .vega-progress-step__divider{width:1px;flex-grow:1;height:100%;background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1));display:block}:host .vega-progress-step .vega-progress-step__divider.right.complete{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host .vega-progress-step .vega-progress-step__divider.left{display:none}:host .vega-progress-step:last-child .vega-progress-step__divider.right{display:none}:host .vega-progress-step.default .vega-progress-step__icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1));background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host .vega-progress-step.complete .vega-progress-step__icon{display:flex;justify-content:center;align-items:center;background-color:rgba(var(--v-bg-action-tertiary, 0, 0, 0, 0));box-sizing:border-box;border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action, 19, 98, 226, 1))}:host .vega-progress-step.complete .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-progress-step.complete.current .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host .vega-progress-step.inProgress .vega-progress-step__icon,:host .vega-progress-step.current .vega-progress-step__icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host(.horizontal-compact){flex:1 1 100%;padding-top:0px}:host(.horizontal-compact) .vega-progress-tracker__container{padding-top:16px;padding-bottom:16px}:host(.horizontal-compact) .vega-progress-tracker__slot{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:0px}:host(.horizontal-compact) .vega-progress-step{display:flex;flex-grow:1;flex-basis:0}:host(.horizontal-compact) .vega-progress-step .vega-progress-step-icon-divider{display:flex;flex-direction:row;gap:4px;width:100%}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon{height:16px;width:16px;min-width:16px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon{line-height:16px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon vega-icon{height:8px;width:8px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon span{display:none}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider{height:1px;flex-grow:1}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.left{display:block}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.left.background{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.right{display:block}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__title{display:none}:host(.horizontal-compact) .vega-progress-step:first-child .vega-progress-step__divider.left{opacity:0}:host(.horizontal-compact) .vega-progress-step:last-child .vega-progress-step__divider.right{display:block;opacity:0}:host(:not(.horizontal-compact)) .vega-progress-tracker__box{display:none}:host(.vertical) .vega-progress-step__title{padding-top:12px;padding-bottom:36px}:host(.horizontal){display:block;overflow-x:auto;padding-top:4px}:host(.horizontal) .vega-progress-tracker__slot{display:flex}:host(.horizontal) .vega-progress-step{flex-direction:column;align-items:center;gap:4px;flex-grow:1;flex-basis:0}:host(.horizontal) .vega-progress-step .vega-progress-step-icon-divider{flex-direction:row;align-items:center;gap:4px;width:100%}:host(.horizontal) .vega-progress-step .vega-progress-step__divider{height:1px;display:block}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.left{display:block}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.right.complete{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.left.background{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal) .vega-progress-step .vega-progress-step__title{padding-top:0px;padding-bottom:0px;text-align:center;padding-left:4px;padding-right:4px}:host(.horizontal) .vega-progress-step:first-child .vega-progress-step__divider.left{opacity:0}:host(.horizontal) .vega-progress-step:last-child .vega-progress-step__divider.right{display:block;opacity:0}:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}:host .vega-progress-tracker__box{display:flex;align-items:center}:host .vega-progress-tracker__box vega-carousel{width:100%;text-align:center}';var F=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class G extends I{constructor(){super({parent:"vega-progress-tracker",subStates:[{subStateName:"status",parentStateName:"currentSteps",callback:e=>{const t=e.find((e=>e.stepKey===this.stepKey));this.progressStatus=t.progressStatus,this.isCurrent=t.isCurrent}}]})}}F([c()],G.prototype,"host",void 0),F([c({writable:!0})],G.prototype,"progressStatus",void 0),F([c({writable:!0})],G.prototype,"isCurrent",void 0),F([c()],G.prototype,"stepKey",void 0);var J=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};const Q=class{constructor(e){s(this,e),this.globalSlimmers={},this.stateController=new G,this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.progressStatus=T.DEFAULT,this.isCurrent=!1,this.stepKey="",this.clickable=!0}render(){return p(e(o,null,e("div",{class:{"title-container":!0,[this.progressStatus]:!0,current:this.isCurrent}},e("slot",null))),this.host)}get host(){return i(this)}};J([v()],Q.prototype,"globalSlimmers",void 0),J([d()],Q.prototype,"stateController",void 0),J([d()],Q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Q.style=':host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));display:block}@media screen and (min-width: 768px) and (max-width: 1023px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}:host .title-container.complete{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}';export{B as vega_progress_tracker,Q as vega_progress_tracker_step}
1
+ import{h as e,F as t,r as s,c as r,H as o,g as i}from"./p-6b2342e0.js";import{p as a,$ as n}from"./p-5447a8e8.js";import{s as p}from"./p-519a7d55.js";import{c,V as l,M as g,I as d}from"./p-6e1ab235.js";import{V as h,I as v}from"./p-8ce9e214.js";import{c as f}from"./p-66647244.js";import{c as u}from"./p-2a9960c9.js";import{d as m,D as b}from"./p-526e3634.js";import{c as x}from"./p-3a620268.js";import{C as _}from"./p-2d0d575f.js";import{E as w}from"./p-4a2fe3a4.js";import{n as y}from"./p-262ec334.js";import{O as k}from"./p-331a62d5.js";import{S as C}from"./p-1fb56e14.js";import{c as S}from"./p-daba4af1.js";import{M as j}from"./p-78a57a17.js";import{P as z}from"./p-81dd00d0.js";import{R}from"./p-1e0a8fd3.js";import{w as D}from"./p-456f678b.js";import{g as O}from"./p-49a2e141.js";import{A as P}from"./p-4d65756f.js";import{S as I}from"./p-c41a2d4a.js";import"./p-6a334573.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-a841cf13.js";import"./p-528748fa.js";import"./p-d4ea8e22.js";import"./p-0c667d6a.js";import"./p-ed45b3b6.js";import"./p-d27ae9ff.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-b438e68b.js";import"./p-874e5624.js";import"./p-cb378636.js";const L=[{payloadKey:"COMPLETED_STEP_ARRAY_IS_EMPTY",payloadDescription:"@deprecated Specifies an array of completed step titles for the Progress Tracker component.",payloadValue:e=>0===e.completedStepArray.length},{payloadKey:"COMPLETED_STEP_ARRAY_IS_NOT_EMPTY",payloadDescription:"@deprecated Specifies an array of completed step titles for the Progress Tracker component.",payloadValue:e=>e.completedStepArray.length>0}];var E=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class A extends l{constructor(){super(...arguments),this.renderStepIcon=(t,s)=>e("div",{class:"vega-progress-step-icon-container"},e("div",{class:"vega-progress-step__icon"},t.isCompleted()?e("vega-icon",{icon:"checkmark-rounded",size:"size-16"}):e("span",null,s+1))),this.renderStep=(t,s)=>{var r;return e("div",{role:t.clickable?"button":null,class:["vega-progress-step",t.progressStatus,t.isCurrent?"current":"",t.clickable?"":"disabled"].filter(Boolean).join(" "),"data-index":s,tabIndex:t.clickable?0:null,onClick:t.clickable?this.onStepIconClick:null,onKeyDown:t.clickable?x():null,"aria-label":t.title},e("div",{class:"vega-progress-step-icon-divider"},e("div",{class:"vega-progress-step__divider left "+((null===(r=this.currentSteps[s-1])||void 0===r?void 0:r.isCompleted())?"background":"")}),this.renderStepIcon(t,s),e("div",{class:"vega-progress-step__divider right "+(t.isCompleted()?"complete":"default")})),e("div",{class:"vega-progress-step__title"},this.renderStepTitle(t,s,"top")))},this.onStepIconClick=e=>{const t=Number(e.currentTarget.getAttribute("data-index"));_.notify(m.getSubject(this.host,w),t)}}async gotoCarouselPage(e){const t=null!=e?e:this.current;t>=0&&this.carouselContainerRef.getBoundingClientRect().width>0&&await this.carouselRef.goToPage(t+1)}render(){return e(t,null,e("div",{class:"vega-progress-tracker__container"},e("div",{class:"vega-progress-tracker__slot"},this.currentSteps.map(((e,t)=>this.renderStep(e,t))))),e("div",{class:"vega-progress-tracker__box",ref:e=>this.carouselContainerRef=e},e("vega-carousel",{showSlider:!1,itemsPerPage:1,canSwipe:this.canClickStep,ref:e=>(b.addUniqueObserverToNode(e,a,(async e=>{await this.host.setCurrent(e.detail-1)})),this.carouselRef=e)},this.currentSteps.map(((e,t)=>this.renderStepTitle(e,t,"carousel"))))))}renderStepTitle(t,s,r){const o="horizontal-compact"===this.currentDirection;if(o&&"carousel"===r||!o&&"top"===r)return this.renderModeController.isSourceRenderMode()?e("vega-progress-tracker-step",{key:t.stepKey,stepKey:t.stepKey},t.title):e("slot",{name:`step-${s}`})}}E([c()],A.prototype,"host",void 0),E([c()],A.prototype,"currentSteps",void 0),E([c()],A.prototype,"canClickStep",void 0),E([c()],A.prototype,"current",void 0),E([c()],A.prototype,"deprecatedPropertySlimmer",void 0),E([c()],A.prototype,"currentStepController",void 0),E([c()],A.prototype,"currentDirection",void 0),E([c()],A.prototype,"renderModeController",void 0);var T,M=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class U extends l{constructor(){super(...arguments),this.goToPageTaskQueue=new C,this.updateCurrent=e=>{const t=Math.max(0,this.currentSteps.length-1);this.current=y(e,this.allowNoCurrentStep?-1:0,t)}}connectedCallback(){this.initStepClickObserver()}disconnectedCallback(){this.removeStepClickObserver()}componentDidLoad(){this.updateCurrent(this.current)}async componentDidRender(){await this.goToPageTaskQueue.runTask()}async watchCurrentChange(){var e;this.updateCurrent(this.current),this.currentStepUpdateEventEmitter.emit(null===(e=this.currentSteps[this.current])||void 0===e?void 0:e.stepKey),await this.renderer.gotoCarouselPage()}watchSteps(){this.updateCurrent(this.current)}nextStep(){this.updateCurrent(++this.current)}prevStep(){const e=this.allowNoCurrentStep&&this.current<=-1?-1:0,t=Math.max(0,this.currentSteps.length-1);this.current=y(--this.current,e,t)}setCurrent(e){this.updateCurrent(e)}async watchDirection(){await this.goToPageTaskQueue.enqueue({run:async()=>await this.renderer.gotoCarouselPage()},!1)}initStepClickObserver(){this.stepClickObserver=new k(this.canAcceptStepClickEvent.bind(this),this.updateCurrent.bind(this)),_.register(m.getSubject(this.host,w),this.stepClickObserver)}removeStepClickObserver(){_.unregister(m.getSubject(this.host,w),this.stepClickObserver)}canAcceptStepClickEvent(){return!0}}M([c()],U.prototype,"currentSteps",void 0),M([c({writable:!0})],U.prototype,"current",void 0),M([c()],U.prototype,"allowNoCurrentStep",void 0),M([c()],U.prototype,"currentStepUpdateEventEmitter",void 0),M([c()],U.prototype,"renderer",void 0),M([c()],U.prototype,"host",void 0),M([g("connectedCallback")],U.prototype,"connectedCallback",null),M([g("disconnectedCallback")],U.prototype,"disconnectedCallback",null),M([g("componentDidLoad")],U.prototype,"componentDidLoad",null),M([g("componentDidRender")],U.prototype,"componentDidRender",null),M([g("watchCurrentChange")],U.prototype,"watchCurrentChange",null),M([g("watchSteps")],U.prototype,"watchSteps",null),M([g("nextStep")],U.prototype,"nextStep",null),M([g("prevStep")],U.prototype,"prevStep",null),M([g("setCurrent")],U.prototype,"setCurrent",null),M([g("watchDirection")],U.prototype,"watchDirection",null),function(e){e.DEFAULT="default",e.IN_PROGRESS="inProgress",e.COMPLETE="complete"}(T||(T={}));class q{constructor(e,t,s,r,o){this.stepKey=e,this.title=t,this.progressStatus=s,this.isCurrent=r,this.clickable=o}static fromSteps(e,t,s,r){return t.map(((t,o)=>{const i="string"==typeof t?t:t.title;return new q(i,i,this.getStepStatus(i,o,s,r),o===s,this.getIsStepClickable(e,t))}))}static fromHostSlot(e,t,s){return Array.from(e.querySelectorAll("vega-progress-tracker-step")).map(((r,o)=>{const i=r.stepKey;return new q(i,"",this.getStepStatus(i,o,t,s),o===t,this.getIsStepClickable(e,r))}))}static getIsStepClickable(e,t){return"string"==typeof t?e.canClickStep:!!e.canClickStep&&("boolean"==typeof t.clickable?t.clickable:e.canClickStep)}isCompleted(){return this.progressStatus===T.COMPLETE}}q.getStepStatus=(e,t,s,r)=>r.includes(e)?T.COMPLETE:t===s?T.IN_PROGRESS:T.DEFAULT;var W=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class K extends l{constructor(){super(...arguments),this.mutationObserver=new j({target:()=>this.host,options:{childList:!0,subtree:!0},callback:()=>{this.appendSlotAttribute(),this.syncUpCurrentSteps()}})}connectedCallback(){this.appendSlotAttribute()}disconnectedCallback(){}componentWillLoad(){this.syncUpCurrentSteps()}componentDidLoad(){}watchSteps(){this.syncUpCurrentSteps()}watchCurrentChange(){this.syncUpCurrentSteps()}watchCompletedStepArray(){this.syncUpCurrentSteps()}watchCompletedSteps(){this.syncUpCurrentSteps()}watchCanClickStep(){this.syncUpCurrentSteps()}syncUpCurrentSteps(){this.currentSteps=this.renderModeController.isSourceRenderMode()?q.fromSteps(this.host,this.steps,this.current,this.deprecatedPropertySlimmer.getValue()):q.fromHostSlot(this.host,this.current,this.deprecatedPropertySlimmer.getValue())}appendSlotAttribute(){this.renderModeController.isSourceRenderMode()||Array.from(this.host.querySelectorAll("vega-progress-tracker-step")).map(((e,t)=>{e.setAttribute("slot",`step-${t}`)}))}}W([c()],K.prototype,"host",void 0),W([c()],K.prototype,"steps",void 0),W([c({writable:!0})],K.prototype,"currentSteps",void 0),W([c()],K.prototype,"renderModeController",void 0),W([c()],K.prototype,"current",void 0),W([c()],K.prototype,"deprecatedPropertySlimmer",void 0),W([d()],K.prototype,"mutationObserver",void 0),W([g("connectedCallback")],K.prototype,"connectedCallback",null),W([g("disconnectedCallback")],K.prototype,"disconnectedCallback",null),W([g("componentWillLoad")],K.prototype,"componentWillLoad",null),W([g("componentDidLoad")],K.prototype,"componentDidLoad",null),W([g("watchSteps")],K.prototype,"watchSteps",null),W([g("watchCurrentChange")],K.prototype,"watchCurrentChange",null),W([g("watchCompletedStepArray")],K.prototype,"watchCompletedStepArray",null),W([g("watchCompletedSteps")],K.prototype,"watchCompletedSteps",null),W([g("watchCanClickStep")],K.prototype,"watchCanClickStep",null);var N=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class V extends l{constructor(){super(...arguments),this.renderMode="SOURCE"}connectedCallback(){this.setRenderMode()}isSourceRenderMode(){return"SOURCE"===this.renderMode}setRenderMode(){this.renderMode=this.host.querySelector("vega-progress-tracker-step")?"SLOT":"SOURCE"}}N([c()],V.prototype,"host",void 0),N([g("connectedCallback")],V.prototype,"connectedCallback",null);var Y=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class $ extends P{constructor(){super(...arguments),this.pageResizeObserverSlimmer=new z({callback:async()=>{const e=this.current,t=this.currentDirection;this.setCurrentDirection(),t!==this.currentDirection?this.enqueueSyncCarouselPage(e):await this.renderer.gotoCarouselPage(e)}})}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.setCurrentDirection()}componentDidLoad(){}watchDirection(){this.setCurrentDirection()}async doTask(){}enqueueSyncCarouselPage(e){this.autoRunTaskQueue.enqueue({run:async()=>{await this.renderer.gotoCarouselPage(e)}},!1)}setCurrentDirection(){let e=R.formatCustom(this.direction)||"vertical";["default","S"].includes(O())&&!D(this.direction)&&(e="horizontal-compact"),this.currentDirection=e}}Y([c()],$.prototype,"direction",void 0),Y([c()],$.prototype,"current",void 0),Y([c()],$.prototype,"renderer",void 0),Y([c({writable:!0})],$.prototype,"currentDirection",void 0),Y([d()],$.prototype,"pageResizeObserverSlimmer",void 0),Y([g("connectedCallback")],$.prototype,"connectedCallback",null),Y([g("disconnectedCallback")],$.prototype,"disconnectedCallback",null),Y([g("componentWillLoad")],$.prototype,"componentWillLoad",null),Y([g("componentDidLoad")],$.prototype,"componentDidLoad",null),Y([g("watchDirection")],$.prototype,"watchDirection",null);var H=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};const B=class{constructor(e){s(this,e),this.vegaCurrentStepUpdate=r(this,"vegaCurrentStepUpdate",7),this.currentStepUpdate=r(this,"currentStepUpdate",7),this.globalSlimmers={},this.renderModeController=new V,this.currentStepsController=new K,this.currentStepController=new U,this.currentDirectionController=new $,this.renderer=new A,this.currentStepUpdateEventEmitter=f(B,n),this.currentStepsSubStateSlimmer=S(B,"currentSteps","watchCurrentSteps"),this.deprecatedPropertySlimmer=u(B,"completedSteps","completedStepArray",[]),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(L),this.currentSteps=[],this.current=0,this.direction="vertical",this.steps=[],this.completedStepArray=[],this.completedSteps=[],this.canClickStep=!0,this.allowNoCurrentStep=!1}watchCurrentSteps(){}async watchCurrentChange(){}async watchDirection(){}watchSteps(){}watchCompletedStepArray(){}watchCompletedSteps(){}watchCanClickStep(){}async nextStep(){}async prevStep(){}async setCurrent(e){}async getCurrent(){return this.current}render(){return p(e(o,{class:{"vega-progress-tracker":!0,[this.currentDirection]:!0,"click-step-disabled":!this.canClickStep}},this.renderer.render()),this.host)}get host(){return i(this)}static get watchers(){return{currentSteps:["watchCurrentSteps"],current:["watchCurrentChange"],direction:["watchDirection"],steps:["watchSteps"],completedStepArray:["watchCompletedStepArray"],completedSteps:["watchCompletedSteps"],canClickStep:["watchCanClickStep"]}}};H([v()],B.prototype,"globalSlimmers",void 0),H([d()],B.prototype,"renderModeController",void 0),H([d()],B.prototype,"currentStepsController",void 0),H([d()],B.prototype,"currentStepController",void 0),H([d()],B.prototype,"currentDirectionController",void 0),H([d()],B.prototype,"renderer",void 0),H([d()],B.prototype,"currentStepUpdateEventEmitter",void 0),H([d()],B.prototype,"currentStepsSubStateSlimmer",void 0),H([d()],B.prototype,"deprecatedPropertySlimmer",void 0),H([d()],B.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),B.style=':host .vega-progress-tracker__container{display:flex;align-items:center;padding-top:0px;padding-bottom:0px}:host .vega-progress-tracker__slot{width:100%;display:block}:host .vega-progress-step{display:flex;gap:16px}:host(:not(.click-step-disabled)) .vega-progress-step{cursor:pointer}:host(:not(.click-step-disabled)) .vega-progress-step.default:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary-hover, 239, 239, 239, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.default .vega-progress-step__icon:hover{background-color:rgba(var(--v-bg-action-quaternary-hover, 239, 239, 239, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.default:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary-active, 205, 209, 211, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress .vega-progress-step__icon:hover,:host(:not(.click-step-disabled)) .vega-progress-step.current .vega-progress-step__icon:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress:hover .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.current:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.inProgress:active .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.current:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:hover .vega-progress-step__icon{border-color:rgba(var(--v-border-color-action-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:hover .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:active .vega-progress-step__icon{border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete:active .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.complete.current:hover .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled{cursor:initial}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.default:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.default:active .vega-progress-step__icon{background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host(:not(.click-step-disabled)) .vega-progress-step.disabled.inProgress:hover .vega-progress-step__icon,:host(:not(.click-step-disabled)) .vega-progress-step.disabled.current:hover .vega-progress-step__icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host .vega-progress-step:focus-visible{outline-width:0px}:host .vega-progress-step:focus-visible .vega-progress-step-icon-container{border-radius:8px;outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}:host .vega-progress-step .vega-progress-step-icon-divider{display:flex;flex-direction:column;align-items:center;gap:0px}:host .vega-progress-step .vega-progress-step-icon-container{padding:8px}:host .vega-progress-step .vega-progress-step__icon{display:block;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:9999px;box-sizing:content-box;height:32px;width:32px;min-width:32px;line-height:32px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-progress-step .vega-progress-step__icon{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-progress-step .vega-progress-step__icon span{display:block}:host .vega-progress-step .vega-progress-step__icon:not(.disable-responsive){line-height:32px}:host .vega-progress-step .vega-progress-step__divider{width:1px;flex-grow:1;height:100%;background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1));display:block}:host .vega-progress-step .vega-progress-step__divider.right.complete{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host .vega-progress-step .vega-progress-step__divider.left{display:none}:host .vega-progress-step:last-child .vega-progress-step__divider.right{display:none}:host .vega-progress-step.default .vega-progress-step__icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1));background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}:host .vega-progress-step.complete .vega-progress-step__icon{display:flex;justify-content:center;align-items:center;background-color:rgba(var(--v-bg-action-tertiary, 0, 0, 0, 0));box-sizing:border-box;border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action, 19, 98, 226, 1))}:host .vega-progress-step.complete .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host .vega-progress-step.complete.current .vega-progress-step__icon vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host .vega-progress-step.inProgress .vega-progress-step__icon,:host .vega-progress-step.current .vega-progress-step__icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host(.horizontal-compact){flex:1 1 100%;padding-top:0px}:host(.horizontal-compact) .vega-progress-tracker__container{padding-top:16px;padding-bottom:16px}:host(.horizontal-compact) .vega-progress-tracker__slot{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:0px}:host(.horizontal-compact) .vega-progress-step{display:flex;flex-grow:1;flex-basis:0}:host(.horizontal-compact) .vega-progress-step .vega-progress-step-icon-divider{display:flex;flex-direction:row;gap:4px;width:100%}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon{height:16px;width:16px;min-width:16px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon{line-height:16px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon vega-icon{height:8px;width:8px}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__icon span{display:none}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider{height:1px;flex-grow:1}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.left{display:block}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.left.background{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__divider.right{display:block}:host(.horizontal-compact) .vega-progress-step .vega-progress-step__title{display:none}:host(.horizontal-compact) .vega-progress-step:first-child .vega-progress-step__divider.left{opacity:0}:host(.horizontal-compact) .vega-progress-step:last-child .vega-progress-step__divider.right{display:block;opacity:0}:host(:not(.horizontal-compact)) .vega-progress-tracker__box{display:none}:host(.vertical) .vega-progress-step__title{padding-top:12px;padding-bottom:36px}:host(.horizontal){display:block;overflow-x:auto;padding-top:4px}:host(.horizontal) .vega-progress-tracker__slot{display:flex}:host(.horizontal) .vega-progress-step{flex-direction:column;align-items:center;gap:4px;flex-grow:1;flex-basis:0}:host(.horizontal) .vega-progress-step .vega-progress-step-icon-divider{flex-direction:row;align-items:center;gap:4px;width:100%}:host(.horizontal) .vega-progress-step .vega-progress-step__divider{height:1px;display:block}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.left{display:block}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.right.complete{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal) .vega-progress-step .vega-progress-step__divider.left.background{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}:host(.horizontal) .vega-progress-step .vega-progress-step__title{padding-top:0px;padding-bottom:0px;text-align:center;padding-left:4px;padding-right:4px}:host(.horizontal) .vega-progress-step:first-child .vega-progress-step__divider.left{opacity:0}:host(.horizontal) .vega-progress-step:last-child .vega-progress-step__divider.right{display:block;opacity:0}:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-carousel .subTitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}:host .vega-progress-tracker__box{display:flex;align-items:center}:host .vega-progress-tracker__box vega-carousel{width:100%;text-align:center}';var F=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};class G extends I{constructor(){super({parent:"vega-progress-tracker",subStates:[{subStateName:"status",parentStateName:"currentSteps",callback:e=>{const t=e.find((e=>e.stepKey===this.stepKey));this.progressStatus=t.progressStatus,this.isCurrent=t.isCurrent}}]})}}F([c()],G.prototype,"host",void 0),F([c({writable:!0})],G.prototype,"progressStatus",void 0),F([c({writable:!0})],G.prototype,"isCurrent",void 0),F([c()],G.prototype,"stepKey",void 0);var J=function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};const Q=class{constructor(e){s(this,e),this.globalSlimmers={},this.stateController=new G,this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.progressStatus=T.DEFAULT,this.isCurrent=!1,this.stepKey="",this.clickable=!0}render(){return p(e(o,null,e("div",{class:{"title-container":!0,[this.progressStatus]:!0,current:this.isCurrent}},e("slot",null))),this.host)}get host(){return i(this)}};J([v()],Q.prototype,"globalSlimmers",void 0),J([d()],Q.prototype,"stateController",void 0),J([d()],Q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Q.style=':host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));display:block}@media screen and (min-width: 768px) and (max-width: 1023px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .title-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .title-container.inProgress,:host .title-container.current{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:22px;letter-spacing:0px}}:host .title-container.complete{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}';export{B as vega_progress_tracker,Q as vega_progress_tracker_step}
@@ -1 +1 @@
1
- import{f as t,o as s,s as i}from"./p-2bb60f89.js";import{i as h}from"./p-528748fa.js";class e{constructor(t,s,i=0,h=0,e,n,r){this._startOffset=0,this._endOffset=0,this._startContainer=t,this._endContainer=s,this._startOffset=i,this._endOffset=h,this._startNode=e,this._endNode=n,r&&(this._oldNativeRange=r)}get startContainer(){return this._startContainer}get endContainer(){return this._endContainer}get startNode(){return this._startNode}get endNode(){return this._endNode}get startOffset(){return this._startOffset}get endOffset(){return this._endOffset}updateRTERange(s,i){const{startOffset:h,endOffset:n}=s;this._startOffset=h,this._endOffset=n;const r=s.startNode,o=s.endNode;if(r instanceof t){this._startNode=r,this._endNode=o;const t=this._startNode.getRangeContainer(),s=this._startNode===this._endNode?t:this._endNode.getRangeContainer();t&&(this._startContainer=t,this._endContainer=s)}else this._startContainer=r,this._endContainer=o,this._startNode=this.getRTENodeByElement(this._startContainer),this._endNode=this._startContainer===this._endContainer?this._startNode:this.getRTENodeByElement(this._endContainer),i&&(this._oldNativeRange=i);return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}clone(){return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}toNativeRange(){let t=null;if(this._startNode){const s=this._startNode.getRangeContainer(),i=this._startNode===this._endNode?s:this._endNode.getRangeContainer();if(s&&i)return t=new Range,t.setStart(s,this.clampOffsetToContainer(s,this._startOffset)),t.setEnd(i,this.clampOffsetToContainer(i,this._endOffset)),this._startContainer=s,this._endContainer=i,this._oldNativeRange=t,t}if(!t&&this._oldNativeRange)return this._oldNativeRange}clampOffsetToContainer(t,s){var i,h;const e=t.nodeType===Node.TEXT_NODE?null!==(h=null===(i=t.textContent)||void 0===i?void 0:i.length)&&void 0!==h?h:0:t.childNodes.length;return Math.max(0,Math.min(s,e))}getRTENodeByElement(t){if(t){const e=t.nodeType===Node.TEXT_NODE?t.parentElement:h(t)&&s.isDecoratorNodeContainerElement(t)?s.getDecoratorNodeElement(t):t;return i.getEntityByDOM(e)}}}export{e as R}
1
+ import{f as t,o as s,s as i}from"./p-571ec00b.js";import{i as h}from"./p-528748fa.js";class e{constructor(t,s,i=0,h=0,e,n,r){this._startOffset=0,this._endOffset=0,this._startContainer=t,this._endContainer=s,this._startOffset=i,this._endOffset=h,this._startNode=e,this._endNode=n,r&&(this._oldNativeRange=r)}get startContainer(){return this._startContainer}get endContainer(){return this._endContainer}get startNode(){return this._startNode}get endNode(){return this._endNode}get startOffset(){return this._startOffset}get endOffset(){return this._endOffset}updateRTERange(s,i){const{startOffset:h,endOffset:n}=s;this._startOffset=h,this._endOffset=n;const r=s.startNode,o=s.endNode;if(r instanceof t){this._startNode=r,this._endNode=o;const t=this._startNode.getRangeContainer(),s=this._startNode===this._endNode?t:this._endNode.getRangeContainer();t&&(this._startContainer=t,this._endContainer=s)}else this._startContainer=r,this._endContainer=o,this._startNode=this.getRTENodeByElement(this._startContainer),this._endNode=this._startContainer===this._endContainer?this._startNode:this.getRTENodeByElement(this._endContainer),i&&(this._oldNativeRange=i);return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}clone(){return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}toNativeRange(){let t=null;if(this._startNode){const s=this._startNode.getRangeContainer(),i=this._startNode===this._endNode?s:this._endNode.getRangeContainer();if(s&&i)return t=new Range,t.setStart(s,this.clampOffsetToContainer(s,this._startOffset)),t.setEnd(i,this.clampOffsetToContainer(i,this._endOffset)),this._startContainer=s,this._endContainer=i,this._oldNativeRange=t,t}if(!t&&this._oldNativeRange)return this._oldNativeRange}clampOffsetToContainer(t,s){var i,h;const e=t.nodeType===Node.TEXT_NODE?null!==(h=null===(i=t.textContent)||void 0===i?void 0:i.length)&&void 0!==h?h:0:t.childNodes.length;return Math.max(0,Math.min(s,e))}getRTENodeByElement(t){if(t){const e=t.nodeType===Node.TEXT_NODE?t.parentElement:h(t)&&s.isDecoratorNodeContainerElement(t)?s.getDecoratorNodeElement(t):t;return i.getEntityByDOM(e)}}}export{e as R}