@globalpayments/vega 2.18.1 → 2.19.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 (230) hide show
  1. package/dist/cjs/{app-globals-45048ed9.js → app-globals-80e59c3d.js} +2 -2
  2. package/dist/cjs/{childNodesEventPreventSlimmer-caaafff9.js → childNodesEventPreventSlimmer-2c25bd69.js} +1 -1
  3. package/dist/cjs/{eventEmitSlimmer-9a4428ac.js → eventEmitSlimmer-a1a3cc64.js} +1 -1
  4. package/dist/cjs/{formFieldControllerSlimmer-8b54f14d.js → formFieldControllerSlimmer-6c701dd2.js} +83 -9
  5. package/dist/cjs/index-1299d729.js +6 -2
  6. package/dist/cjs/index.cjs.js +2 -2
  7. package/dist/cjs/{internalVegaEventManager-de87a0aa.js → internalVegaEventManager-a0291fcc.js} +1 -0
  8. package/dist/cjs/loader.cjs.js +4 -4
  9. package/dist/cjs/vega-accordion.cjs.entry.js +2 -2
  10. package/dist/cjs/vega-app-header-button.cjs.entry.js +3 -3
  11. package/dist/cjs/vega-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
  13. package/dist/cjs/vega-button-circle.cjs.entry.js +3 -3
  14. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  15. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  16. package/dist/cjs/vega-button.cjs.entry.js +3 -3
  17. package/dist/cjs/{vega-calendar_2.cjs.entry.js → vega-calendar_3.cjs.entry.js} +419 -157
  18. package/dist/cjs/vega-carousel.cjs.entry.js +2 -2
  19. package/dist/cjs/vega-checkbox_2.cjs.entry.js +4 -4
  20. package/dist/cjs/vega-chip.cjs.entry.js +3 -3
  21. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  22. package/dist/cjs/vega-combo-box.cjs.entry.js +4 -4
  23. package/dist/cjs/vega-date-picker_2.cjs.entry.js +4 -4
  24. package/dist/cjs/vega-dialog_2.cjs.entry.js +3 -3
  25. package/dist/cjs/vega-dropdown_5.cjs.entry.js +4 -4
  26. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  27. package/dist/cjs/vega-form.cjs.entry.js +4 -4
  28. package/dist/cjs/vega-image-uploader.cjs.entry.js +4 -4
  29. package/dist/cjs/vega-input-credit-card.cjs.entry.js +4 -4
  30. package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
  31. package/dist/cjs/vega-input-range.cjs.entry.js +5 -5
  32. package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
  33. package/dist/cjs/vega-input.cjs.entry.js +4 -4
  34. package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/vega-left-nav_5.cjs.entry.js +2 -2
  36. package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
  37. package/dist/cjs/vega-popover_2.cjs.entry.js +2 -2
  38. package/dist/cjs/vega-progress-tracker.cjs.entry.js +8 -8
  39. package/dist/cjs/vega-radio_2.cjs.entry.js +4 -4
  40. package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
  41. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  42. package/dist/cjs/vega-signature-capture.cjs.entry.js +511 -0
  43. package/dist/cjs/{vega-skeleton-loader-controller-c56eb5f8.js → vega-skeleton-loader-controller-0d48e278.js} +1 -1
  44. package/dist/cjs/vega-stepper.cjs.entry.js +5 -5
  45. package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
  46. package/dist/cjs/vega-table_8.cjs.entry.js +3 -3
  47. package/dist/cjs/vega-textarea.cjs.entry.js +10 -6
  48. package/dist/cjs/vega-time-picker_2.cjs.entry.js +5 -5
  49. package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
  50. package/dist/cjs/vega.cjs.js +4 -4
  51. package/dist/cjs/vegaEnvManager-26352c0a.js +2 -2
  52. package/dist/collection/collection-manifest.json +9 -1
  53. package/dist/collection/components/vega-box/vega-box.js +1 -1
  54. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +6 -2
  55. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.js +46 -0
  56. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.js +36 -4
  57. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +2 -0
  58. package/dist/collection/components/vega-calendar/utils/index.js +9 -0
  59. package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.js +76 -0
  60. package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +70 -18
  61. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.css +35 -6
  62. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +10 -2
  63. package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.css +10 -0
  64. package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.js +55 -0
  65. package/dist/collection/components/vega-calendar/vega-calendar.css +55 -0
  66. package/dist/collection/components/vega-calendar/vega-calendar.js +7 -0
  67. package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.css +1 -2
  68. package/dist/collection/components/vega-input/vega-input.css +6 -3
  69. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +1 -1
  70. package/dist/collection/components/vega-input-range/vega-input-range.css +2 -2
  71. package/dist/collection/components/vega-input-select/vega-input-select.css +6 -5
  72. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +19 -8
  73. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +5 -5
  74. package/dist/collection/components/vega-signature-capture/assets/icons.js +5 -0
  75. package/dist/collection/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.js +19 -0
  76. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +220 -0
  77. package/dist/collection/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.js +104 -0
  78. package/dist/collection/components/vega-signature-capture/vega-signature-capture.css +154 -0
  79. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +429 -0
  80. package/dist/collection/components/vega-stepper/vega-stepper.css +3 -1
  81. package/dist/collection/components/vega-textarea/vega-textarea.css +7 -0
  82. package/dist/collection/components/vega-textarea/vega-textarea.js +23 -1
  83. package/dist/collection/components/vega-time-picker/vega-time-picker.css +7 -4
  84. package/dist/collection/helpers/change-manager/subject/static-remote-invocation-subject/static-remote-invocation-call-registry.js +59 -0
  85. package/dist/collection/helpers/change-manager/subject/static-subject/staticSubjectTitle.js +1 -0
  86. package/dist/collection/helpers/change-manager/test/static-remote-invocation-subject.test.js +14 -0
  87. package/dist/collection/helpers/event-manager/eventID/componentEventIdMap.js +1 -0
  88. package/dist/collection/helpers/slimmers/fieldErrorUiControllerSlimmer.js +16 -9
  89. package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerErrorLabelContainerRetrievalStrategy.js +25 -0
  90. package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerNestedErrorContainerRetrievalStrategy.js +19 -0
  91. package/dist/collection/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerSelfRetrievalStrategy.js +23 -0
  92. package/dist/collection/helpers/vega-telemetry-helper/test/vegaEnvManager.test.js +1 -1
  93. package/dist/collection/helpers/vega-telemetry-helper/vegaEnvManager.js +2 -2
  94. package/dist/collection/polyfill/test-polyfill/unit/methods.js +10 -4
  95. package/dist/collection/value-model-adapters/angularNgModelAccessorAdapter.js +1 -0
  96. package/dist/collection/value-model-adapters/vueComponentVModelAdaptor.js +1 -0
  97. package/dist/esm/{app-globals-59ad7d73.js → app-globals-b1e3dc8a.js} +2 -2
  98. package/dist/esm/{childNodesEventPreventSlimmer-dff60444.js → childNodesEventPreventSlimmer-2d3364c6.js} +1 -1
  99. package/dist/esm/{eventEmitSlimmer-faec6394.js → eventEmitSlimmer-3087be32.js} +1 -1
  100. package/dist/esm/{formFieldControllerSlimmer-ea050a17.js → formFieldControllerSlimmer-bd240f6a.js} +83 -9
  101. package/dist/esm/index-c3505689.js +6 -2
  102. package/dist/esm/index.js +2 -2
  103. package/dist/esm/{internalVegaEventManager-6f331cf5.js → internalVegaEventManager-7c0f128e.js} +1 -0
  104. package/dist/esm/loader.js +4 -4
  105. package/dist/esm/vega-accordion.entry.js +2 -2
  106. package/dist/esm/vega-app-header-button.entry.js +3 -3
  107. package/dist/esm/vega-banner.entry.js +2 -2
  108. package/dist/esm/vega-breadcrumb.entry.js +3 -3
  109. package/dist/esm/vega-button-circle.entry.js +3 -3
  110. package/dist/esm/vega-button-group_2.entry.js +3 -3
  111. package/dist/esm/vega-button-link.entry.js +3 -3
  112. package/dist/esm/vega-button.entry.js +3 -3
  113. package/dist/esm/{vega-calendar_2.entry.js → vega-calendar_3.entry.js} +419 -158
  114. package/dist/esm/vega-carousel.entry.js +2 -2
  115. package/dist/esm/vega-checkbox_2.entry.js +4 -4
  116. package/dist/esm/vega-chip.entry.js +3 -3
  117. package/dist/esm/vega-color-picker.entry.js +3 -3
  118. package/dist/esm/vega-combo-box.entry.js +4 -4
  119. package/dist/esm/vega-date-picker_2.entry.js +4 -4
  120. package/dist/esm/vega-dialog_2.entry.js +3 -3
  121. package/dist/esm/vega-dropdown_5.entry.js +4 -4
  122. package/dist/esm/vega-field-label.entry.js +3 -3
  123. package/dist/esm/vega-form.entry.js +4 -4
  124. package/dist/esm/vega-image-uploader.entry.js +4 -4
  125. package/dist/esm/vega-input-credit-card.entry.js +4 -4
  126. package/dist/esm/vega-input-phone-number.entry.js +5 -5
  127. package/dist/esm/vega-input-range.entry.js +5 -5
  128. package/dist/esm/vega-input-select.entry.js +5 -5
  129. package/dist/esm/vega-input.entry.js +4 -4
  130. package/dist/esm/vega-item-toggle.entry.js +2 -2
  131. package/dist/esm/vega-left-nav_5.entry.js +2 -2
  132. package/dist/esm/vega-pagination.entry.js +3 -3
  133. package/dist/esm/vega-popover_2.entry.js +2 -2
  134. package/dist/esm/vega-progress-tracker.entry.js +8 -8
  135. package/dist/esm/vega-radio_2.entry.js +4 -4
  136. package/dist/esm/vega-segment-control.entry.js +2 -2
  137. package/dist/esm/vega-selection-tile_2.entry.js +4 -4
  138. package/dist/esm/vega-signature-capture.entry.js +507 -0
  139. package/dist/esm/{vega-skeleton-loader-controller-aaee27b8.js → vega-skeleton-loader-controller-961112bb.js} +1 -1
  140. package/dist/esm/vega-stepper.entry.js +5 -5
  141. package/dist/esm/vega-tab-group_2.entry.js +3 -3
  142. package/dist/esm/vega-table_8.entry.js +3 -3
  143. package/dist/esm/vega-textarea.entry.js +10 -6
  144. package/dist/esm/vega-time-picker_2.entry.js +5 -5
  145. package/dist/esm/vega-toggle-switch.entry.js +2 -2
  146. package/dist/esm/vega.js +4 -4
  147. package/dist/esm/vegaEnvManager-e0c1fde1.js +2 -2
  148. package/dist/types/components/vega-box/interface.d.ts +7 -1
  149. package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +1 -0
  150. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-more-button-renderer.d.ts +23 -0
  151. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.d.ts +13 -1
  152. package/dist/types/components/vega-calendar/utils/index.d.ts +7 -0
  153. package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-slot-controller.d.ts +30 -0
  154. package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.d.ts +33 -0
  155. package/dist/types/components/vega-calendar/vega-calendar-event/vega-calendar-event.d.ts +4 -1
  156. package/dist/types/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.d.ts +12 -0
  157. package/dist/types/components/vega-calendar/vega-calendar.d.ts +4 -1
  158. package/dist/types/components/vega-signature-capture/assets/icons.d.ts +4 -0
  159. package/dist/types/components/vega-signature-capture/slimmers/renderers/vega-signature-capture-renderer.d.ts +7 -0
  160. package/dist/types/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.d.ts +88 -0
  161. package/dist/types/components/vega-signature-capture/slimmers/written-mode/renderers/written-mode-renderer.d.ts +27 -0
  162. package/dist/types/components/vega-signature-capture/types.d.ts +5 -0
  163. package/dist/types/components/vega-signature-capture/vega-signature-capture.d.ts +95 -0
  164. package/dist/types/components/vega-textarea/vega-textarea.d.ts +4 -0
  165. package/dist/types/components.d.ts +148 -0
  166. package/dist/types/helpers/change-manager/subject/static-remote-invocation-subject/static-remote-invocation-call-registry.d.ts +39 -0
  167. package/dist/types/helpers/change-manager/subject/static-subject/staticSubjectTitle.d.ts +2 -1
  168. package/dist/types/helpers/change-manager/test/static-remote-invocation-subject.test.d.ts +1 -0
  169. package/dist/types/helpers/slimmers/fieldErrorUiControllerSlimmer.d.ts +1 -0
  170. package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/fieldErrorUiControllerStrategy.d.ts +6 -0
  171. package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerErrorLabelContainerRetrievalStrategy.d.ts +16 -0
  172. package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerNestedErrorContainerRetrievalStrategy.d.ts +15 -0
  173. package/dist/types/helpers/slimmers/fieldErrorUiControllerStrategies/siblingContainerSelfRetrievalStrategy.d.ts +14 -0
  174. package/dist/types/types/components.type.d.ts +1 -0
  175. package/dist/types/types/general.d.ts +2 -1
  176. package/dist/vega/index.esm.js +1 -1
  177. package/dist/vega/{p-eee98614.entry.js → p-0f420f8f.entry.js} +1 -1
  178. package/dist/vega/{p-a4ca0aac.entry.js → p-1057d54f.entry.js} +1 -1
  179. package/dist/vega/{p-a61cb86e.entry.js → p-107e2518.entry.js} +1 -1
  180. package/dist/vega/{p-c9e013f4.js → p-11b085cb.js} +1 -1
  181. package/dist/vega/p-264c95ab.js +1 -0
  182. package/dist/vega/{p-cb171374.entry.js → p-28548bc4.entry.js} +1 -1
  183. package/dist/vega/{p-46b146eb.entry.js → p-2b72e5d5.entry.js} +1 -1
  184. package/dist/vega/{p-f1008a4a.entry.js → p-300844f7.entry.js} +1 -1
  185. package/dist/vega/{p-40a4822c.entry.js → p-303e9a65.entry.js} +1 -1
  186. package/dist/vega/{p-8759e22d.entry.js → p-3586684b.entry.js} +1 -1
  187. package/dist/vega/{p-3b62c5b4.entry.js → p-36948812.entry.js} +1 -1
  188. package/dist/vega/{p-3dbfb6ae.entry.js → p-39271c51.entry.js} +1 -1
  189. package/dist/vega/{p-37e8445b.entry.js → p-39648c77.entry.js} +1 -1
  190. package/dist/vega/{p-a0f03879.entry.js → p-3b193b57.entry.js} +1 -1
  191. package/dist/vega/p-42c8012d.entry.js +1 -0
  192. package/dist/vega/{p-3de104ba.entry.js → p-4317de99.entry.js} +1 -1
  193. package/dist/vega/{p-b572e8a8.entry.js → p-479f9784.entry.js} +1 -1
  194. package/dist/vega/{p-fd3cd3f5.entry.js → p-47a35856.entry.js} +1 -1
  195. package/dist/vega/{p-e45170ad.entry.js → p-5e44e5c3.entry.js} +1 -1
  196. package/dist/vega/{p-ebf89788.entry.js → p-617f84f2.entry.js} +1 -1
  197. package/dist/vega/p-73f6405d.entry.js +1 -0
  198. package/dist/vega/p-7acd23c3.js +1 -0
  199. package/dist/vega/{p-4161becc.entry.js → p-81ad9bea.entry.js} +1 -1
  200. package/dist/vega/{p-f6af6224.entry.js → p-8267b53c.entry.js} +1 -1
  201. package/dist/vega/{p-642f28dc.entry.js → p-92bae3f8.entry.js} +1 -1
  202. package/dist/vega/{p-b1b3857d.entry.js → p-93fb0ff0.entry.js} +1 -1
  203. package/dist/vega/{p-d76ae2b1.entry.js → p-9456d157.entry.js} +1 -1
  204. package/dist/vega/{p-5ca6fd55.entry.js → p-9e0c331b.entry.js} +1 -1
  205. package/dist/vega/{p-4f428039.js → p-9f7e71d8.js} +1 -1
  206. package/dist/vega/p-a05d40b0.entry.js +1 -0
  207. package/dist/vega/{p-31548eea.entry.js → p-a7b1a4bd.entry.js} +1 -1
  208. package/dist/vega/{p-4ed1798e.entry.js → p-ae24e059.entry.js} +1 -1
  209. package/dist/vega/{p-4c3690ce.entry.js → p-b1f01bda.entry.js} +1 -1
  210. package/dist/vega/{p-5098d161.entry.js → p-b4edefbe.entry.js} +1 -1
  211. package/dist/vega/{p-2e096c78.entry.js → p-b6968677.entry.js} +1 -1
  212. package/dist/vega/{p-3f661fad.entry.js → p-c566351a.entry.js} +1 -1
  213. package/dist/vega/{p-c450f692.js → p-c779ed1f.js} +1 -1
  214. package/dist/vega/{p-42d1b5df.entry.js → p-caa9f3db.entry.js} +1 -1
  215. package/dist/vega/{p-d4eb9277.entry.js → p-d1ed331e.entry.js} +1 -1
  216. package/dist/vega/{p-0a56c329.entry.js → p-da22f097.entry.js} +1 -1
  217. package/dist/vega/{p-7833c766.entry.js → p-dd8eb2ab.entry.js} +1 -1
  218. package/dist/vega/{p-fdd6772d.entry.js → p-e27b3235.entry.js} +1 -1
  219. package/dist/vega/{p-5ded9437.js → p-ead9867b.js} +1 -1
  220. package/dist/vega/p-f1ecbe90.js +1 -1
  221. package/dist/vega/p-f26a298a.entry.js +1 -0
  222. package/dist/vega/{p-7d94fadc.entry.js → p-fb8cb0af.entry.js} +1 -1
  223. package/dist/vega/{p-069b157d.entry.js → p-fd2712e1.entry.js} +1 -1
  224. package/dist/vega/vega.esm.js +1 -1
  225. package/package.json +1 -1
  226. package/dist/vega/p-477985af.entry.js +0 -1
  227. package/dist/vega/p-5141bcac.js +0 -1
  228. package/dist/vega/p-8530f9b5.entry.js +0 -1
  229. package/dist/vega/p-a5e6da15.js +0 -1
  230. package/dist/vega/p-eddca0ac.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as e,f as t,F as i,H as o,r as a,c as l,g as s}from"./p-9777b1c1.js";import{a as r,V as n,L as c,M as d,I as h}from"./p-018d77cc.js";import{m as p,s as b}from"./p-6bd5c49b.js";import{V as v,I as u}from"./p-ae778ca4.js";import{g as f}from"./p-47a4c625.js";import{C as w}from"./p-bf95b189.js";import{j as g,k as m,l as y,m as x}from"./p-2fa3841b.js";import{O as R,D as S}from"./p-0fd9f03f.js";import{f as C,a as k}from"./p-320642bd.js";import{a as j,e as E,B as O,F as T,G as D,H as A}from"./p-280a6d94.js";import{P as L,r as M}from"./p-1265732f.js";import{R as N}from"./p-bb761f8f.js";import{s as K}from"./p-b81bd0bb.js";import{g as W}from"./p-469bc36e.js";import{g as z,B as _}from"./p-3542f8fe.js";import{M as P}from"./p-1ced3ae5.js";import{T as B}from"./p-56681feb.js";import{P as V}from"./p-cb13b4e6.js";import{c as $,S as G}from"./p-1080d80a.js";import{C as I}from"./p-5ded9437.js";import{c as X}from"./p-c450f692.js";import{I as F}from"./p-8a57f4b0.js";import{F as H}from"./p-d5841466.js";import{Z as U}from"./p-abf5b8f7.js";import{c as q}from"./p-86194314.js";import{V as Y}from"./p-4e5c06ae.js";import{c as Z,a as J}from"./p-faea1620.js";import"./p-3c8b2105.js";import"./p-3a0a4d15.js";import"./p-c59042c0.js";import"./p-344ee7cb.js";import"./p-0c667d6a.js";import"./p-69b28805.js";import"./p-d3f1d3dd.js";import"./p-44f4924b.js";import"./p-a5e6da15.js";import"./p-f1ecbe90.js";import"./p-639fa6c7.js";import"./p-9d426517.js";class Q{constructor(e,t){this.size=0,this.set=new Set,e&&(this.set=e,this.size=e.size),t&&(this.onMutate=t)}onMutate(e){}add(...e){return this.withMutation((t=>{e.forEach((e=>t.add(e)))}))}clear(){this.withMutation((e=>e.clear()))}delete(e){return this.withMutation((t=>{t.delete(e)}))}withMutation(e){const t=new Set(this.set);e(t);const i=new Q(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const ee=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];var te=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ie extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o)=>{var a,l;const s=f(i,t.prop),r=this.vegaTableDataSourceController.getRecordKey(i),n=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===r)),d=this.vegaTableEditableController.isEditing(r),h=this.vegaTableEditableController.getRowFormRefMap().get(r);if(d&&h&&t.renderFormItem)return t.renderFormItem(e,t.prop?s:r,i,o,{rowForm:h,isNewRow:n});if(d&&h&&t.editable){const e=null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,h,{record:i,index:o}),r=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:s},null===(l=t.formItemProps)||void 0===l?void 0:l.call(t,h,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,r)}return t.render?t.render(e,t.prop?s:r,i,o):"string"==typeof s||"number"==typeof s?String(s):null==s?"":void c.error(`Column ${t.prop}'s value has a wrong type(${typeof i[t.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(t="input",i)=>{const o=`vega-${t}`,{dataVegaForm:a}=i,l=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},l),{"data-vega-form":a}));c.error(`Type must be one of the form field types. [${ee.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(ee.join("|"),"i").test(e)}render(t,i,o){const a=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${a}_${t.key||t.prop}`,textAlign:t.align,breakpoint:t.breakpoint,overflow:t.overflow},this.renderTableCellContent(t,i,o))}}te([r()],ie.prototype,"rowKey",void 0),te([r()],ie.prototype,"vegaTableDataSourceController",void 0),te([r()],ie.prototype,"vegaTableEditableController",void 0);var oe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ae extends n{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.rowExpandable&&this.handleCloseAllExpandRow()},this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((e=>{w.notify(g,{host:this.host,rowKey:e,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),w.notify(g,{host:this.host,rowKey:e,expanded:t})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async e=>{this.expandRowSlotGuard(e)&&t(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=e=>{const t=this.vegaTableDataSourceController.getCurrentData().map((e=>`${ae.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`)),i=[];for(let o=0;o<e.length;o++)Array.from(e[o].addedNodes).filter((e=>e instanceof HTMLElement&&e.getAttribute("slot"))).forEach((e=>{e.removeAttribute("hidden");const o=e.getAttribute("slot");t.includes(o)?i.push(e):c.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),w.unregister(g,this.expandObserver)}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.handleCloseAllExpandRow()}initRowExpandObserver(){this.expandObserver=new R(this.isAcceptableTableRowObserver.bind({host:this.host}),(e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)})),w.register(g,this.expandObserver)}isAcceptableTableRowObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}ae.expandRowSlotNamePrefix="vega-table-expand-row-",oe([r()],ae.prototype,"host",void 0),oe([r()],ae.prototype,"expandedRowKeySet",void 0),oe([r()],ae.prototype,"rowExpandable",void 0),oe([r()],ae.prototype,"vegaTableDataSourceController",void 0),oe([d("connectedCallback")],ae.prototype,"connectedCallback",null),oe([d("disconnectedCallback")],ae.prototype,"disconnectedCallback",null),oe([d("componentDidLoad")],ae.prototype,"componentDidLoad",null),oe([d("toggleExpandRow")],ae.prototype,"toggleExpandRow",void 0),oe([d("openExpandRow")],ae.prototype,"openExpandRow",void 0),oe([d("closeExpandRow")],ae.prototype,"closeExpandRow",void 0),oe([d("closeAllExpandRow")],ae.prototype,"closeAllExpandRow",void 0),oe([d("watchRowExpandable")],ae.prototype,"watchRowExpandable",null);var le=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class se extends n{constructor(){super(...arguments),this.handleRowSelect=(e,t)=>{const i=this.vegaTableDataSourceController.getRecordKey(t);let o=!1;e?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&this.selectChangeEventEmitter.emit({selected:e,record:t,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=e=>{const t=this.vegaTableDataSourceController.getRecordKey(e);this.isChecked(t)?this.handleRowSelect(!1,e):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,e))},this.isChecked=e=>this.selectedRowKeySet.has(e),this.handleSelectAll=e=>{if(e){const e=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...e.filter((e=>!this.selectedRowKeySet.has(e))))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every((e=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(e)))),this.setupRowSelection=e=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},e)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=e=>{this.selectedRowKeySet.withMutation((t=>{t.clear(),e.forEach((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.selectedRowKeySet.has(i)&&t.add(i)}))}))}}connectedCallback(){this.initRowSelectionObserver(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver),w.unregister(y,this.rowSelectionAllObserver),w.unregister(x,this.rowClickObserver)}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(e,t){(null==t?void 0:t.type)!==(null==e?void 0:e.type)&&this.clearSelection()}setSelection(e){"single"===this.getRowSelectionType()&&e.splice(1),this.selectedRowKeySet.toArray().forEach((e=>{w.notify(m,{host:this.host,rowKey:e,checked:!1})})),this.selectedRowKeySet.clear(),e.forEach((e=>{this.vegaTableDataSourceController.getRecordByKey(e)&&(this.selectedRowKeySet.add(e),w.notify(m,{host:this.host,rowKey:e,checked:!0}))}))}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),w.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){w.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-HEAD-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}initRowSelectionObserver(){this.rowSelectionObserver=new R(this.isAcceptableRowSelectionObserver.bind(this),(e=>{const{rowKey:t,checked:i}=e,o=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(i,o)})),w.register(m,this.rowSelectionObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new R(this.isAcceptableRowSelectionAllObserver.bind(this),(e=>{this.handleSelectAll(e.checked)})),w.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new R(this.isAcceptableRowClickObserver.bind(this),(e=>{if("single"===this.getRowSelectionType()){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}})),w.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}le([r()],se.prototype,"host",void 0),le([r({writable:!0})],se.prototype,"isSelectedAll",void 0),le([r()],se.prototype,"selectedRowKeySet",void 0),le([r({writable:!0})],se.prototype,"rowSelection",void 0),le([r()],se.prototype,"rowKey",void 0),le([r()],se.prototype,"selectChangeEventEmitter",void 0),le([r()],se.prototype,"selectAllChangeEventEmitter",void 0),le([r()],se.prototype,"vegaTableDataSourceController",void 0),le([d("connectedCallback")],se.prototype,"connectedCallback",null),le([d("disconnectedCallback")],se.prototype,"disconnectedCallback",null),le([d("componentWillLoad")],se.prototype,"componentWillLoad",null),le([d("watchRowSelection")],se.prototype,"watchRowSelection",null),le([d("setSelection")],se.prototype,"setSelection",null),le([d("watchCurrentData")],se.prototype,"watchCurrentData",null),le([d("clearSelection")],se.prototype,"clearSelection",null),le([d("getSelection")],se.prototype,"getSelection",null),le([d("watchSelectedRowKeySet")],se.prototype,"watchSelectedRowKeySet",null),le([d("watchSelectedAll")],se.prototype,"watchSelectedAll",null);var re=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ne extends n{constructor(){super(...arguments),this.getRecordKey=e=>null!=e[this.rowKey]?String(e[this.rowKey]):"",this.getRecordByKey=e=>this.currentData.find((t=>this.getRecordKey(t)===e)),this.setCurrentData=e=>{this.currentData=this.tableDataValidation(e)?e:[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(e){this.dataSource=e}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return 0===this.currentData.length}tableDataValidation(e){return!e.some((e=>!this.getRecordKey(e)))||(c.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1)}syncCurrentData(){if(this.isTemplateRenderMode)return;const e=this.sortersMap.size>0?this.columns.filter((e=>e.sorter&&"event"!==e.sorter&&this.sortersMap.has(e.prop))):[];if(e.length>0){const t=e[e.length-1].prop,i=this.sortersMap.get(t).order;this.setCurrentData(this.vegaTableSortController.sortData(this.dataSource,t,i))}else this.setCurrentData(this.dataSource)}}re([r()],ne.prototype,"rowKey",void 0),re([r({writable:!0})],ne.prototype,"currentData",void 0),re([r({writable:!0})],ne.prototype,"dataSource",void 0),re([r()],ne.prototype,"columns",void 0),re([r()],ne.prototype,"sortersMap",void 0),re([r()],ne.prototype,"vegaTableSortController",void 0),re([r()],ne.prototype,"vegaTableRenderer",void 0),re([r()],ne.prototype,"isTemplateRenderMode",void 0),re([d("componentWillLoad")],ne.prototype,"componentWillLoad",null),re([d("watchSortersMap")],ne.prototype,"watchSortersMap",null),re([d("watchDataSource")],ne.prototype,"watchDataSource",null);var ce=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class de extends n{constructor(){super(...arguments),this.renderTableBody=t=>e("vega-table-body",null,this.vegaTableDataSourceController.getCurrentData().map(((o,a)=>{const l=this.vegaTableDataSourceController.getRecordKey(o),s=this.vegaTablePaginationController.isRowVisible(a);return e(i,null,this.vegaTableRowRenderer.render({rowKey:l,index:a,record:o,isVisibleInCurrentPage:s},t),this.rowExpandable&&e("vega-table-expand-row",{class:{"v-hidden":!s},key:`vega-table-expanded-row-${l}`,rowKey:l,"data-striped":this.striped&&a%2==1?"striped":void 0},e("slot",{name:`${ae.expandRowSlotNamePrefix}${l}`})))})))}getTableFormRef(){return this.tableFormRef}render(){const t=this.columns.some((e=>e.editable));return t?e("vega-form",{ref:e=>this.tableFormRef=e},this.renderTableBody(t)):this.renderTableBody(!1)}}ce([r()],de.prototype,"striped",void 0),ce([r()],de.prototype,"columns",void 0),ce([r()],de.prototype,"currentBreakpoint",void 0),ce([r()],de.prototype,"rowExpandable",void 0),ce([r()],de.prototype,"rowClickable",void 0),ce([r()],de.prototype,"vegaTableDataSourceController",void 0),ce([r()],de.prototype,"vegaTablePaginationController",void 0),ce([r()],de.prototype,"vegaTableRowSelectionController",void 0),ce([r()],de.prototype,"vegaTableRowRenderer",void 0);var he=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class pe extends n{constructor(){super(...arguments),this.renderHeaderColumnCells=()=>this.columns.map((t=>e("vega-table-head-cell",{key:t.key||t.prop,textAlign:t.align,sorter:t.sorter,sortOrder:t.sortOrder,breakpoint:t.breakpoint,ref:e=>{S.addUniqueObserverToNode(e,j,(e=>{this.vegaTableSortController.handleHeadSortClick(t,e.detail.sortOrder)}))}},t.label)))}render(){var t;return this.showHeader&&e("vega-table-head",null,e("vega-table-head-row",{hideSelectAll:null===(t=this.rowSelection)||void 0===t?void 0:t.hideSelectAll},this.renderHeaderColumnCells()))}}he([r()],pe.prototype,"showHeader",void 0),he([r()],pe.prototype,"columns",void 0),he([r()],pe.prototype,"rowSelection",void 0),he([r()],pe.prototype,"vegaTableSortController",void 0),he([r()],pe.prototype,"vegaTableDataSourceController",void 0);var be=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ve extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{S.addUniqueObserverToNode(e,E,this.handlePaginationChange),S.addUniqueObserverToNode(e,O,this.handlePaginationPageSizeChange)},this.handlePaginationChange=e=>{var t,i;this.vegaTablePaginationController.setCurrentPage(e.detail);const o=new CustomEvent("vegaChange",{detail:e.detail});null===(i=(t=this.pagination).vegaChange)||void 0===i||i.call(t,o)},this.handlePaginationPageSizeChange=e=>{var t,i;this.vegaTablePaginationController.setPageSize(e.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:e.detail});null===(i=(t=this.pagination).vegaPageSizeChange)||void 0===i||i.call(t,o)},this.getPaginationConfig=()=>{var e;const t=this.pagination,{position:i}=t,o=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(t,["position"]);return Object.assign(Object.assign({},o),{position:(null===(e=this.pagination.extensions)||void 0===e?void 0:e.length)>1?void 0:i||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:t,position:i,extensions:o,pageSizeSelectorOptions:a}=this.getPaginationConfig(),l=["vega-table-pagination-container",i],s=this.vegaTableDataSourceController.getCurrentData().length;return s>0&&e("div",{class:k(l)},e("vega-pagination",{total:s,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:a,ref:this.paginationRefCallback}))}}be([r()],ve.prototype,"pagination",void 0),be([r()],ve.prototype,"pageSize",void 0),be([r()],ve.prototype,"currentPage",void 0),be([r()],ve.prototype,"vegaTablePaginationController",void 0),be([r()],ve.prototype,"vegaTableDataSourceController",void 0);const ue=({scrollConfig:t={},ref:i},o)=>{const{maxHeight:a}=t,l=L(a);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof a?`${a}px`:a},ref:i,onScroll:e=>{if(!l)return;const t=e.target;0!==t.scrollTop?t.scrollTop>0&&!t.classList.contains("scrolled")&&t.classList.add("scrolled"):t.classList.remove("scrolled")}},o)};var fe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class we extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)}}watchCurrentPage(){this.scrollContainerToTop()}render(t){return e(ue,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e)},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}fe([r()],we.prototype,"scrollConfig",void 0),fe([d("watchCurrentPage")],we.prototype,"watchCurrentPage",null);var ge=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class me extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const t=this.columns.some((e=>e.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((e=>e.overflow));return e("table",{class:{"v-table-fixed":t}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],this.dataSource.length>0&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&e("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&e("div",{class:"vega-table-empty-description"},this.emptyDescription)}render(){const t=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${N.formatCustom(this.density)}`,this.striped&&"striped"]);return K(e(o,{class:t},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}ge([r()],me.prototype,"host",void 0),ge([r()],me.prototype,"columns",void 0),ge([r()],me.prototype,"emptyDescription",void 0),ge([r()],me.prototype,"rowDivider",void 0),ge([r()],me.prototype,"columnDivider",void 0),ge([r()],me.prototype,"density",void 0),ge([r()],me.prototype,"dataSource",void 0),ge([r()],me.prototype,"striped",void 0),ge([r()],me.prototype,"vegaTableHeaderRenderer",void 0),ge([r()],me.prototype,"vegaTableBodyRenderer",void 0),ge([r()],me.prototype,"vegaTableColGroupRenderer",void 0),ge([r()],me.prototype,"vegaTableScrollContainerRenderer",void 0),ge([r()],me.prototype,"vegaTablePaginationRenderer",void 0),ge([r()],me.prototype,"vegaTableDataSourceController",void 0),ge([r({writable:!0})],me.prototype,"vegaTableChildrenController",void 0),ge([r()],me.prototype,"isTemplateRenderMode",void 0);var ye=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class xe extends n{componentWillLoad(){var e,t;this.currentPage=(null===(e=this.pagination)||void 0===e?void 0:e.current)||1,this.pageSize=(null===(t=this.pagination)||void 0===t?void 0:t.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:e,current:t}=this.pagination;e>0&&(this.pageSize=e),t>0&&(this.currentPage=t)}}setPageSize(e){this.pageSize=e}setCurrentPage(e){this.currentPage=e}isRowVisible(e){if(!this.pagination)return!0;const t=this.pageSize,i=this.currentPage;return e>=(i-1)*t&&e<i*t}}ye([r()],xe.prototype,"pagination",void 0),ye([r({writable:!0})],xe.prototype,"pageSize",void 0),ye([r({writable:!0})],xe.prototype,"currentPage",void 0),ye([d("componentWillLoad")],xe.prototype,"componentWillLoad",null),ye([d("watchPagination")],xe.prototype,"watchPagination",null);var Re=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Se extends n{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){const e=this.vegaTableDataSourceController.getCurrentData().slice();for(const t of this.editingRows.toArray()){const i=await this.getRowData(t),o=e.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&e.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...e]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.editingRows.clear()}watchDataSource(e){this.getEditingRowsKey().forEach((t=>{e.find((e=>e.key===t))||this.stopRowEditMode(t)}))}async saveEditRow(e){const t=await this.getRowData(e),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&(i.splice(o,1,t),this.vegaTableDataSourceController.setDataSource([...i])),this.stopRowEditMode(e)}stopRowEditMode(e){this.editingRows.delete(e)}removeRow(e){this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter((t=>this.vegaTableDataSourceController.getRecordKey(t)!==e)))}startRowEditMode(e){this.editingRows.add(e)}addNewRow(e={}){var t;const i=(null===(t=e[this.rowKey])||void 0===t?void 0:t.toString())||W(),o=Object.assign({},e);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){const e=await this.vegaTableBodyRenderer.getTableFormRef().getValue();return[...this.vegaTableDataSourceController.getCurrentData().map((t=>{const i=e[`${Se.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`];return Object.assign(Object.assign({},t),i)}))]}getEditingRowsKey(){return this.editingRows.toArray()}getFormRef(e){return e?this.rowFormRefMap.get(e):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(e){const t=await this.rowFormRefMap.get(e).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(e)),t)}isEditing(e){return this.editingRows.has(e)}}Se.rowFormKeyPrefix="vega-table-row-form-",Re([r()],Se.prototype,"editingRows",void 0),Re([r()],Se.prototype,"rowKey",void 0),Re([r()],Se.prototype,"vegaTableDataSourceController",void 0),Re([r()],Se.prototype,"vegaTableBodyRenderer",void 0),Re([d("saveAllEditRows")],Se.prototype,"saveAllEditRows",null),Re([d("stopAllRowEditMode")],Se.prototype,"stopAllRowEditMode",null),Re([d("watchDataSource")],Se.prototype,"watchDataSource",null),Re([d("saveEditRow")],Se.prototype,"saveEditRow",null),Re([d("stopRowEditMode")],Se.prototype,"stopRowEditMode",null),Re([d("removeRow")],Se.prototype,"removeRow",null),Re([d("startRowEditMode")],Se.prototype,"startRowEditMode",null),Re([d("addNewRow")],Se.prototype,"addNewRow",null),Re([d("getRowsData")],Se.prototype,"getRowsData",null),Re([d("getEditingRowsKey")],Se.prototype,"getEditingRowsKey",null),Re([d("getFormRef")],Se.prototype,"getFormRef",null),Re([d("getRowData")],Se.prototype,"getRowData",null);var Ce=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ke extends n{constructor(){super(...arguments),this.sortData=(e,t,i)=>{const o=this.columns.find((e=>"function"==typeof e.sorter&&e.prop===t)).sorter,a=e.slice();return i?a.sort(((e,t)=>{const a=o(e,t);return"asc"===i?a:-a})):a}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){this.sortersMap.has(e.prop)&&this.sortersMap.delete(e.prop),t&&this.sortersMap.set(e.prop,{order:t,prop:e.prop}),"event"!==e.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),e.prop,t)),this.changeEventEmitter.emit({sorters:[...this.sortersMap.values()]})}syncSortOrder(){this.columns.filter((e=>L(e.sorter)&&L(e.sortOrder))).forEach((e=>{this.sortersMap.set(e.prop,{order:e.sortOrder,prop:e.prop})}))}}Ce([r({writable:!0})],ke.prototype,"sortersMap",void 0),Ce([r()],ke.prototype,"columns",void 0),Ce([r()],ke.prototype,"changeEventEmitter",void 0),Ce([r()],ke.prototype,"vegaTableDataSourceController",void 0),Ce([d("watchColumns")],ke.prototype,"watchColumns",null);var je=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ee extends n{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&M(e.breakpoint)?`v-hidden ${e.breakpoint}:v-table-column`:""}render(){return e("colgroup",null,e("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&e("col",{style:{minWidth:"40px",width:"40px"}}),this.columns.map((t=>{const i=this.getColResponsiveClass(t);return e("col",{class:i,style:{width:t.width?t.width:null}})})),this.rowExpandable&&e("col",{style:{minWidth:"40px",width:"40px"}}),e("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}je([r()],Ee.prototype,"paddingX",void 0),je([r()],Ee.prototype,"columns",void 0),je([r()],Ee.prototype,"rowExpandable",void 0),je([r()],Ee.prototype,"vegaTableRowSelectionController",void 0);var Oe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Te extends n{constructor(){super(...arguments),this.currentDataObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStriped()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const e=Array.from(this.host.querySelectorAll("vega-table-row")).map((e=>({key:e.rowKey})));this.vegaTableDataSourceController.setCurrentData(e)},this.syncRowStriped=()=>{this.host.querySelectorAll("vega-table-row").forEach(((e,t)=>{this.updateRowStriped(e,t)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((e,t)=>{this.updateRowStriped(e,t)}))},this.syncUpTableHeadRowProps=()=>{var e;if(!this.isTemplateRenderMode)return;const t=this.host.querySelector("vega-table-head-row");t&&(t.hideSelectAll=t.hideSelectAll||(null===(e=this.rowSelection)||void 0===e?void 0:e.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStriped()}componentDidLoad(){}clearSelection(){w.notify(y,{host:this.host,checked:!1,noneChecked:!0})}watchStriped(){this.syncRowStriped()}updateRowStriped(e,t){this.striped&&t%2==1?e.dataset.striped="striped":delete e.dataset.striped}}Oe([r()],Te.prototype,"host",void 0),Oe([r()],Te.prototype,"columns",void 0),Oe([r()],Te.prototype,"dataSource",void 0),Oe([r()],Te.prototype,"currentData",void 0),Oe([r()],Te.prototype,"rowSelection",void 0),Oe([r()],Te.prototype,"striped",void 0),Oe([r()],Te.prototype,"vegaTableDataSourceController",void 0),Oe([r()],Te.prototype,"vegaTableRenderer",void 0),Oe([r()],Te.prototype,"isTemplateRenderMode",void 0),Oe([h()],Te.prototype,"currentDataObserver",void 0),Oe([h()],Te.prototype,"rowStripedObserver",void 0),Oe([d("connectedCallback")],Te.prototype,"connectedCallback",null),Oe([d("disconnectedCallback")],Te.prototype,"disconnectedCallback",null),Oe([d("componentWillLoad")],Te.prototype,"componentWillLoad",null),Oe([d("componentDidLoad")],Te.prototype,"componentDidLoad",null),Oe([d("clearSelection")],Te.prototype,"clearSelection",null),Oe([d("watchStriped")],Te.prototype,"watchStriped",null);var De=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ae extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:a,isVisibleInCurrentPage:l}=t;return e("vega-table-row",{class:{"v-hidden":!l},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{S.addUniqueObserverToNode(e,j,(()=>{this.rowClickEventEmitter.emit({record:a,index:o})}))},"data-striped":this.striped&&o%2==1?"striped":void 0},this.columns.map((e=>this.vegaTableCellRenderer.render(e,a,o))))}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Se.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}De([r()],Ae.prototype,"columns",void 0),De([r()],Ae.prototype,"rowClickEventEmitter",void 0),De([r()],Ae.prototype,"vegaTableEditableController",void 0),De([r()],Ae.prototype,"vegaTableCellRenderer",void 0),De([r()],Ae.prototype,"striped",void 0);var Le=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Me extends n{constructor(){super(...arguments),this.currentDataObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=e=>Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.startsWith("vega-table-expand-row-"))})).length>0}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}Le([r()],Me.prototype,"host",void 0),Le([r({writable:!0})],Me.prototype,"isTemplateRenderMode",void 0),Le([h()],Me.prototype,"currentDataObserver",void 0),Le([d("connectedCallback")],Me.prototype,"connectedCallback",null),Le([d("disconnectedCallback")],Me.prototype,"disconnectedCallback",null),Le([d("componentWillLoad")],Me.prototype,"componentWillLoad",null),Le([d("componentDidLoad")],Me.prototype,"componentDidLoad",null);const Ne=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>0===e.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>e.dataSource.length>0}];var Ke=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const We=class{constructor(e){a(this,e),this.vegaChange=l(this,"vegaChange",7),this.change=l(this,"change",7),this.vegaRowClick=l(this,"vegaRowClick",7),this.rowClick=l(this,"rowClick",7),this.vegaSelectChange=l(this,"vegaSelectChange",7),this.selectChange=l(this,"selectChange",7),this.vegaSelectAllChange=l(this,"vegaSelectAllChange",7),this.selectAllChange=l(this,"selectAllChange",7),this.globalSlimmers={},this.vegaTableRenderModeController=new Me,this.vegaTableRenderer=new me,this.vegaTableHeaderRenderer=new pe,this.vegaTableBodyRenderer=new de,this.vegaTableRowRenderer=new Ae,this.vegaTableCellRenderer=new ie,this.vegaTablePaginationRenderer=new ve,this.vegaTableScrollContainerRenderer=new we,this.vegaTableExpandRowController=new ae,this.vegaTableRowSelectionController=new se,this.vegaTableDataSourceController=new ne,this.vegaTablePaginationController=new xe,this.vegaTableEditableController=new Se,this.vegaTableSortController=new ke,this.vegaTableColGroupRenderer=new Ee,this.vegaTableChildrenController=new Te,this.pageResizeObserverSlimmer=new V,this.rowSelectionNotifySlimmer=$(We,"rowSelection","watchRowSelection"),this.rowExpandableNotifySlimmer=$(We,"rowExpandable","watchRowExpandable"),this.paddingXNotifySlimmer=$(We,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=$(We,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=$(We,"scrollConfig","watchScrollConfig"),this.paginationEventPrevent=new I([E,O],(()=>this.host)),this.changeEventEmitter=X(We,E),this.selectChangeEventEmitter=X(We,T),this.selectAllChangeEventEmitter=X(We,D),this.rowClickEventEmitter=X(We,A),this.rowDividerNotifySlimmer=$(We,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=$(We,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=$(We,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=$(We,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=$(We,"currentData","watchCurrentData"),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(Ne),this.selectedRowKeySet=new Q(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new Q(new Set,(e=>{this.expandedRowKeySet=e})),this.currentBreakpoint=z(),this.sortersMap=new F(new Map,(e=>{this.sortersMap=e})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new Q(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key"}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(e,t){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(e){}async closeExpandRow(e){}async closeAllExpandRow(){}async toggleExpandRow(e){}async clearSelection(){}async getSelection(){return p()}async setSelection(e){}async startRowEditMode(e){}async stopRowEditMode(e){}async stopAllRowEditMode(){}async getRowData(e){return p(e)}async getRowsData(){return p()}async getFormRef(e){return p(e)}async addNewRow(e={}){return p(e)}async saveEditRow(e){return p(e)}async saveAllEditRows(){}async getEditingRowsKey(){return p()}async removeRow(e){}render(){return b(e("slot",null)),this.vegaTableRenderer.render()}get host(){return s(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columns:["watchColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};Ke([u()],We.prototype,"globalSlimmers",void 0),Ke([h()],We.prototype,"vegaTableRenderModeController",void 0),Ke([h()],We.prototype,"vegaTableRenderer",void 0),Ke([h()],We.prototype,"vegaTableHeaderRenderer",void 0),Ke([h()],We.prototype,"vegaTableBodyRenderer",void 0),Ke([h()],We.prototype,"vegaTableRowRenderer",void 0),Ke([h()],We.prototype,"vegaTableCellRenderer",void 0),Ke([h()],We.prototype,"vegaTablePaginationRenderer",void 0),Ke([h()],We.prototype,"vegaTableScrollContainerRenderer",void 0),Ke([h()],We.prototype,"vegaTableExpandRowController",void 0),Ke([h()],We.prototype,"vegaTableRowSelectionController",void 0),Ke([h()],We.prototype,"vegaTableDataSourceController",void 0),Ke([h()],We.prototype,"vegaTablePaginationController",void 0),Ke([h()],We.prototype,"vegaTableEditableController",void 0),Ke([h()],We.prototype,"vegaTableSortController",void 0),Ke([h()],We.prototype,"vegaTableColGroupRenderer",void 0),Ke([h()],We.prototype,"vegaTableChildrenController",void 0),Ke([h()],We.prototype,"pageResizeObserverSlimmer",void 0),Ke([h()],We.prototype,"rowSelectionNotifySlimmer",void 0),Ke([h()],We.prototype,"rowExpandableNotifySlimmer",void 0),Ke([h()],We.prototype,"paddingXNotifySlimmer",void 0),Ke([h()],We.prototype,"rowClickableNotifySlimmer",void 0),Ke([h()],We.prototype,"scrollConfigNotifySlimmer",void 0),Ke([h()],We.prototype,"paginationEventPrevent",void 0),Ke([h()],We.prototype,"changeEventEmitter",void 0),Ke([h()],We.prototype,"selectChangeEventEmitter",void 0),Ke([h()],We.prototype,"selectAllChangeEventEmitter",void 0),Ke([h()],We.prototype,"rowClickEventEmitter",void 0),Ke([h()],We.prototype,"rowDividerNotifySlimmer",void 0),Ke([h()],We.prototype,"columnDividerNotifySlimmer",void 0),Ke([h()],We.prototype,"densityNotifySlimmer",void 0),Ke([h()],We.prototype,"isTemplateRenderModeNotifySlimmer",void 0),Ke([h()],We.prototype,"currentDataNotifySlimmer",void 0),Ke([h()],We.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),We.style=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header{box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}vega-form{display:contents}*::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none}@media (min-width: 320px){col.S\\:v-table-column{display:table-column}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column}}';var ze=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const _e=class{constructor(e){a(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new I([E],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return K(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return s(this)}};ze([u()],_e.prototype,"globalSlimmers",void 0),ze([h()],_e.prototype,"childChangeEventPrevent",void 0),ze([h()],_e.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_e.style=":host{display:contents}";const Pe=(e,t)=>e&&M(e)?`v-hidden ${e}:${t}`:"",Be=e=>{let t;switch(e){case"center":t="v-text-center";break;case"left":t="v-text-left";break;case"right":t="v-text-right";break;default:t=""}return t};class Ve extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"}]})}}!function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);l>3&&s&&Object.defineProperty(t,i,s)}([r({writable:!0})],Ve.prototype,"density",void 0);var $e=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const Ge=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new Ve,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){const t=Pe(this.breakpoint,"v-table-cell"),i=Be(this.textAlign),a=this.getCellOverflowClass(),l=[i,"vega-table-cell"];return H.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||l.push("break-word"),K(e(o,{class:k([`density-${N.formatCustom(this.density)}`,t]),style:{width:this.width}},e("td",{class:k(l),part:"cell"},e("div",{class:a},e("slot",null)))),this.host)}get host(){return s(this)}};$e([u()],Ge.prototype,"globalSlimmers",void 0),$e([h()],Ge.prototype,"vegaTableCellStateController",void 0),$e([h()],Ge.prototype,"pageResizeObserverSlimmer",void 0),$e([h()],Ge.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ge.style=':host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{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-table-cell{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-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{display:block;padding:0px}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}';var Ie=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Xe extends n{render(){return e("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},e("td",null),e("td",{colSpan:this.colSpan,key:`${ae.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("slot",null)),e("td",null))}}Ie([r()],Xe.prototype,"rowKey",void 0),Ie([r()],Xe.prototype,"expanded",void 0),Ie([r()],Xe.prototype,"checked",void 0),Ie([r()],Xe.prototype,"colSpan",void 0);var Fe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class He extends n{connectedCallback(){this.expandObserver=new R(this.isAcceptableTableExpandRowObserver.bind(this),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.expandObserver)}disconnectedCallback(){w.unregister(g,this.expandObserver)}isAcceptableTableExpandRowObserver(e){return"VEGA-TABLE"===e.host.tagName?"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===e.host.tagName?C(this.host,"vega-table")===C(e.host,"vega-table"):void 0}}function Ue(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function qe(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}Fe([r()],He.prototype,"host",void 0),Fe([r()],He.prototype,"rowKey",void 0),Fe([r({writable:!0})],He.prototype,"expanded",void 0),Fe([d("connectedCallback")],He.prototype,"connectedCallback",null),Fe([d("disconnectedCallback")],He.prototype,"disconnectedCallback",null);var Ye=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ze extends n{connectedCallback(){this.rowSelectionObserver=new R(Ue.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver)}}Ye([r({writable:!0})],Ze.prototype,"checked",void 0),Ye([r()],Ze.prototype,"host",void 0),Ye([r()],Ze.prototype,"rowKey",void 0),Ye([d("connectedCallback")],Ze.prototype,"connectedCallback",null),Ye([d("disconnectedCallback")],Ze.prototype,"disconnectedCallback",null);var Je=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Qe extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.withMultipleSelection="multiple"===t}else this.withMultipleSelection=!1}}]})}}Je([r()],Qe.prototype,"host",void 0),Je([r({writable:!0})],Qe.prototype,"withMultipleSelection",void 0),Je([r()],Qe.prototype,"vegaTableExpandRowColSpanController",void 0);var et=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class tt extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}getVisibleColumnsNumber(){const e=C(this.host,"vega-table"),t=z(),i=e.children&&Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.startsWith("vega-table-expand-row-"))})).length>0?e.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):e.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(i).filter((e=>!e.breakpoint||"default"!==t&&_[t]>=_[e.breakpoint])).length}}et([r()],tt.prototype,"host",void 0),et([r({writable:!0})],tt.prototype,"colSpan",void 0),et([r()],tt.prototype,"withMultipleSelection",void 0),et([d("componentWillLoad")],tt.prototype,"componentWillLoad",null),et([d("watchCurrentBreakpoint")],tt.prototype,"watchCurrentBreakpoint",null),et([d("watchWithMultipleSelection")],tt.prototype,"watchWithMultipleSelection",null);var it=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const ot=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Xe,this.vegaTableExpandRowExpandController=new He,this.vegaTableExpandRowSelectionController=new Ze,this.vegaTableExpandRowStateController=new Qe,this.vegaTableExpandRowColSpanController=new tt,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}render(){return b(e("slot",null)),K(e(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"]}}};it([u()],ot.prototype,"globalSlimmers",void 0),it([h()],ot.prototype,"vegaTableExpandRowRenderer",void 0),it([h()],ot.prototype,"vegaTableExpandRowExpandController",void 0),it([h()],ot.prototype,"vegaTableExpandRowSelectionController",void 0),it([h()],ot.prototype,"vegaTableExpandRowStateController",void 0),it([h()],ot.prototype,"vegaTableExpandRowColSpanController",void 0),it([h()],ot.prototype,"pageResizeObserverSlimmer",void 0),it([h()],ot.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ot.style=":host{display:contents}:host([data-striped=striped]) .vega-table-expanded-row:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}";var at=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class lt extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}at([r()],lt.prototype,"host",void 0),at([r({writable:!0})],lt.prototype,"fixed",void 0);var st=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const rt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new lt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.headCellEventPrevent=new I([E],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&U.removeZIndex(this.tableHeadRef,"base"),this.fixed&&U.setZIndex(e,"base"),this.tableHeadRef=e}}disconnectedCallback(){U.removeZIndex(this.tableHeadRef,"base")}render(){return K(e(o,{class:{"fixed-header":this.fixed},ref:e=>this.handleTableHeadRefChange(e)},e("thead",null,e("slot",null))),this.host)}get host(){return s(this)}};st([u()],rt.prototype,"globalSlimmers",void 0),st([h()],rt.prototype,"vegaTableHeadStateController",void 0),st([h()],rt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),st([h()],rt.prototype,"headCellEventPrevent",void 0),rt.style=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";class nt extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"}]})}}!function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);l>3&&s&&Object.defineProperty(t,i,s)}([r({writable:!0})],nt.prototype,"density",void 0);var ct=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const dt=class{constructor(t){a(this,t),this.vegaClick=l(this,"vegaClick",7),this.click=l(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=X(dt,j),this.vegaTableHeadCellStateController=new nt,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.handleSort=e=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},e)},this.renderSortIconButton=()=>{if(this.sorter)return e("div",{class:"vega-table-column-sorter"},e("span",{class:this.isSortActive("asc")?"v-text-link":""},e("vega-icon",{icon:Y.getIconKey("chevron-up"),size:"size-8"})),e("span",{class:this.isSortActive("desc")?"v-text-link":""},e("vega-icon",{icon:Y.getIconKey("chevron-down"),size:"size-8"})))},this.isSortActive=e=>this.sortOrder===e,this.getNextSortOrder=e=>{let t;switch(e){case"desc":t="asc";break;case"asc":t=null;break;default:t="desc"}return t}}render(){const t=Be(this.textAlign),i=this.sorter?{role:"button",onKeyDown:q(),tabIndex:0,onClick:e=>this.handleSort(e)}:null,a=["vega-table-cell",this.sorter?"sortable":null];return H.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||a.push("break-word"),K(e(o,{class:{[`density-${N.formatCustom(this.density)}`]:!0,[Pe(this.breakpoint,"v-table-cell")]:!0},style:{width:this.width}},e("th",Object.assign({class:k(a)},i),e("div",{class:"vega-table-column"},e("span",{class:`vega-table-column-label ${t}`},e("slot",null)),this.renderSortIconButton()))),this.host)}get host(){return s(this)}};Y.register({"chevron-up":Z,"chevron-down":J}),ct([u()],dt.prototype,"globalSlimmers",void 0),ct([h()],dt.prototype,"clickEventEmitter",void 0),ct([h()],dt.prototype,"vegaTableHeadCellStateController",void 0),ct([h()],dt.prototype,"pageResizeObserverSlimmer",void 0),ct([h()],dt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),dt.style=':host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}th{display:block;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}th.vega-table-cell.sortable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vega-table-column{display:flex;align-items:center;justify-content:space-between}.vega-table-column-sorter{display:flex;flex-direction:column;gap:4px;margin-left:4px;cursor:pointer;outline:none}.vega-table-column-sorter span{display:inline-flex}.vega-table-column-sorter span.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.vega-table-column-label{flex-grow:1;min-width:0px}.vega-table-column-label.v-text-center{text-align:center}.vega-table-column-label.v-text-left{text-align:left}.vega-table-column-label.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}';var ht=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class pt extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=()=>{if("multiple"===this.selectionType)return e("th",{class:"vega-table-selection-column"},!this.hideSelectAll&&e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,ref:e=>{S.addUniqueObserverToNode(e,E,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;L(t)&&t!==this.checkedAll&&w.notify(y,{host:this.host,checked:t})}},this.renderHeaderExpandableCell=()=>this.expandable&&e("th",{class:"vega-table-expand-action-column"})}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var t,i;return e("tr",null,e("th",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderHeaderSelectionCell(),e("slot",null),this.renderHeaderExpandableCell(),e("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]}}))}}ht([r()],pt.prototype,"host",void 0),ht([r()],pt.prototype,"paddingX",void 0),ht([r()],pt.prototype,"selectionType",void 0),ht([r()],pt.prototype,"hideSelectAll",void 0),ht([r()],pt.prototype,"selectAllDisabled",void 0),ht([r()],pt.prototype,"checkedAll",void 0),ht([r()],pt.prototype,"expandable",void 0),ht([r()],pt.prototype,"isEmptyTable",void 0),ht([r()],pt.prototype,"isTemplateRenderMode",void 0),ht([d("connectedCallback")],pt.prototype,"connectedCallback",null),ht([d("disconnectedCallback")],pt.prototype,"disconnectedCallback",null),ht([d("componentDidLoad")],pt.prototype,"componentDidLoad",null);var bt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class vt extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new R(qe.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),w.register(y,this.rowSelectionAllObserver)}}bt([r()],vt.prototype,"host",void 0),bt([r({writable:!0})],vt.prototype,"checkedAll",void 0),bt([d("connectedCallback")],vt.prototype,"connectedCallback",null),bt([d("disconnectedCallback")],vt.prototype,"disconnectedCallback",null);var ut=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ft extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:e=>{this.isEmptyTable=0===e.length}}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}ut([r()],ft.prototype,"host",void 0),ut([r({writable:!0})],ft.prototype,"expandable",void 0),ut([r({writable:!0})],ft.prototype,"selectionType",void 0),ut([r({writable:!0})],ft.prototype,"paddingX",void 0),ut([r({writable:!0})],ft.prototype,"columnDivider",void 0),ut([r({writable:!0})],ft.prototype,"density",void 0),ut([r({writable:!0})],ft.prototype,"isTemplateRenderMode",void 0),ut([r({writable:!0})],ft.prototype,"isEmptyTable",void 0);var wt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const gt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new ft,this.vegaTableHeadRowRenderer=new pt,this.vegaTableHeadRowController=new vt,this.headCellEventPrevent=new I([j],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.expandable=!1}render(){return b(e("slot",null)),K(e(o,{class:{"column-divider":this.columnDivider,[`density-${N.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return s(this)}};wt([u()],gt.prototype,"globalSlimmers",void 0),wt([h()],gt.prototype,"vegaTableHeadRowStateController",void 0),wt([h()],gt.prototype,"vegaTableHeadRowRenderer",void 0),wt([h()],gt.prototype,"vegaTableHeadRowController",void 0),wt([h()],gt.prototype,"headCellEventPrevent",void 0),wt([h()],gt.prototype,"pageResizeObserverSlimmer",void 0),wt([h()],gt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gt.style=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var mt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class yt extends n{constructor(){super(...arguments),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"},e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",checked:this.checked,onClick:this.stopRowSelectionPropagation,ref:e=>{S.addUniqueObserverToNode(e,E,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"},e("div",{class:"vega-table-expand-icon-wrapper"},e("vega-icon",{icon:Y.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=e=>{"vegaChange"===e.eventName&&this.vegaTableRowSelectionController.handleRowSelect(e.detail)},this.stopRowSelectionPropagation=e=>{e.stopPropagation()},this.onExpandIconClick=async e=>{e.stopPropagation(),this.vegaTableRowExpandController.handleExpandIconClick()}}render(){var t,o;return e(i,null,this.renderExpandRowSpace(this.rowKey),e("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},e("td",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderRowSelection(),e("slot",null),this.renderExpandIcon(),e("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(t){return this.expandable&&e("tr",{key:`vega-table-expand-row-space-${t}`,class:"expand-row-space"})}}Y.register({"chevron-down":J}),mt([r()],yt.prototype,"host",void 0),mt([r()],yt.prototype,"rowKey",void 0),mt([r()],yt.prototype,"checked",void 0),mt([r()],yt.prototype,"clickable",void 0),mt([r()],yt.prototype,"clicked",void 0),mt([r()],yt.prototype,"expanded",void 0),mt([r()],yt.prototype,"paddingX",void 0),mt([r()],yt.prototype,"expandable",void 0),mt([r()],yt.prototype,"vegaClick",void 0),mt([r()],yt.prototype,"selectionType",void 0),mt([r()],yt.prototype,"vegaTableRowSelectionController",void 0),mt([r()],yt.prototype,"vegaTableRowExpandController",void 0),mt([r()],yt.prototype,"vegaTableRowClickController",void 0);var xt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Rt extends n{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,w.notify(m,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver),w.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new R(qe.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),w.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new R(qe.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}}xt([r()],Rt.prototype,"host",void 0),xt([r()],Rt.prototype,"selectionType",void 0),xt([r()],Rt.prototype,"rowKey",void 0),xt([r({writable:!0})],Rt.prototype,"checked",void 0),xt([d("connectedCallback")],Rt.prototype,"connectedCallback",null),xt([d("disconnectedCallback")],Rt.prototype,"disconnectedCallback",null);var St=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ct extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){w.unregister(g,this.rowExpandObserver)}handleExpandIconClick(){this.expanded=!this.expanded,w.notify(g,{host:this.host,rowKey:this.rowKey,expanded:this.expanded})}initRowExpandObserver(){this.rowExpandObserver=new R(qe.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.rowExpandObserver)}}St([r()],Ct.prototype,"host",void 0),St([r()],Ct.prototype,"rowKey",void 0),St([r()],Ct.prototype,"expandable",void 0),St([r({writable:!0})],Ct.prototype,"expanded",void 0),St([d("connectedCallback")],Ct.prototype,"connectedCallback",null),St([d("disconnectedCallback")],Ct.prototype,"disconnectedCallback",null);var kt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class jt extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){w.unregister(x,this.rowClickObserver)}handleRowClick(){w.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey})}initRowClickObserver(){this.rowClickObserver=new R(Ue.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),w.register(x,this.rowClickObserver)}}kt([r()],jt.prototype,"host",void 0),kt([r()],jt.prototype,"rowKey",void 0),kt([r({writable:!0})],jt.prototype,"clicked",void 0),kt([r()],jt.prototype,"checked",void 0),kt([r()],jt.prototype,"selectionType",void 0),kt([r()],jt.prototype,"vegaClick",void 0),kt([r()],jt.prototype,"vegaTableRowSelectionController",void 0),kt([r()],jt.prototype,"clickEventEmitter",void 0),kt([d("connectedCallback")],jt.prototype,"connectedCallback",null),kt([d("disconnectedCallback")],jt.prototype,"disconnectedCallback",null);var Et=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ot extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}},{subStateName:"rowDivider",parentStateName:"rowDivider"},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Et([r()],Ot.prototype,"host",void 0),Et([r({writable:!0})],Ot.prototype,"expandable",void 0),Et([r({writable:!0})],Ot.prototype,"clickable",void 0),Et([r({writable:!0})],Ot.prototype,"paddingX",void 0),Et([r({writable:!0})],Ot.prototype,"selectionType",void 0),Et([r({writable:!0})],Ot.prototype,"rowDivider",void 0),Et([r({writable:!0})],Ot.prototype,"columnDivider",void 0),Et([r({writable:!0})],Ot.prototype,"density",void 0),Et([d("watchSelectionType")],Ot.prototype,"watchSelectionType",null),Et([d("componentWillLoad")],Ot.prototype,"handleComponentWillLoad",null);var Tt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const Dt=class{constructor(e){a(this,e),this.vegaClick=l(this,"vegaClick",7),this.click=l(this,"click",7),this.globalSlimmers={},this.vegaTableRowRenderer=new yt,this.vegaTableRowSelectionController=new Rt,this.vegaTableRowExpandController=new Ct,this.vegaTableRowClickController=new jt,this.vegaTableRowStateController=new Ot,this.clickEventEmitter=X(Dt,j),this.checkboxValueChangeEventPrevent=new I([j],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z()}watchSelectionType(){}render(){return b(e("slot",null)),K(e(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,[`density-${N.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{selectionType:["watchSelectionType"]}}};Tt([u()],Dt.prototype,"globalSlimmers",void 0),Tt([h()],Dt.prototype,"vegaTableRowRenderer",void 0),Tt([h()],Dt.prototype,"vegaTableRowSelectionController",void 0),Tt([h()],Dt.prototype,"vegaTableRowExpandController",void 0),Tt([h()],Dt.prototype,"vegaTableRowClickController",void 0),Tt([h()],Dt.prototype,"vegaTableRowStateController",void 0),Tt([h()],Dt.prototype,"clickEventEmitter",void 0),Tt([h()],Dt.prototype,"checkboxValueChangeEventPrevent",void 0),Tt([h()],Dt.prototype,"pageResizeObserverSlimmer",void 0),Tt([h()],Dt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt.style=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host([data-striped=striped]) .vega-table-row:not(.checked):not(.clickable:hover) td,:host([data-striped=striped]) .vega-table-row:not(.checked):not(.clickable:hover) ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td,.checked ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td,:not(.checked).clickable:hover ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td,:host tr.expand-row ::slotted(vega-table-cell){border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td,:host(.row-divider:not(:last-of-type)) ::slotted(vega-table-cell){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.column-divider) ::slotted(vega-table-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";export{We as vega_table,_e as vega_table_body,Ge as vega_table_cell,ot as vega_table_expand_row,rt as vega_table_head,dt as vega_table_head_cell,gt as vega_table_head_row,Dt as vega_table_row}
1
+ import{h as e,f as t,F as i,H as o,r as a,c as l,g as s}from"./p-9777b1c1.js";import{a as r,V as n,L as c,M as d,I as h}from"./p-018d77cc.js";import{m as p,s as b}from"./p-6bd5c49b.js";import{V as v,I as u}from"./p-ae778ca4.js";import{g as f}from"./p-47a4c625.js";import{C as w}from"./p-bf95b189.js";import{j as g,k as m,l as y,m as x}from"./p-2fa3841b.js";import{O as R,D as S}from"./p-0fd9f03f.js";import{f as C,a as k}from"./p-320642bd.js";import{a as j,e as E,B as O,F as T,G as D,H as A}from"./p-280a6d94.js";import{P as L,r as M}from"./p-1265732f.js";import{R as N}from"./p-bb761f8f.js";import{s as K}from"./p-b81bd0bb.js";import{g as W}from"./p-469bc36e.js";import{g as z,B as _}from"./p-3542f8fe.js";import{M as P}from"./p-1ced3ae5.js";import{T as B}from"./p-56681feb.js";import{P as V}from"./p-cb13b4e6.js";import{c as $,S as G}from"./p-1080d80a.js";import{C as I}from"./p-ead9867b.js";import{c as X}from"./p-c779ed1f.js";import{I as F}from"./p-8a57f4b0.js";import{F as H}from"./p-d5841466.js";import{Z as U}from"./p-abf5b8f7.js";import{c as q}from"./p-86194314.js";import{V as Y}from"./p-4e5c06ae.js";import{c as Z,a as J}from"./p-faea1620.js";import"./p-3c8b2105.js";import"./p-3a0a4d15.js";import"./p-c59042c0.js";import"./p-344ee7cb.js";import"./p-0c667d6a.js";import"./p-69b28805.js";import"./p-d3f1d3dd.js";import"./p-44f4924b.js";import"./p-264c95ab.js";import"./p-f1ecbe90.js";import"./p-639fa6c7.js";import"./p-9d426517.js";class Q{constructor(e,t){this.size=0,this.set=new Set,e&&(this.set=e,this.size=e.size),t&&(this.onMutate=t)}onMutate(e){}add(...e){return this.withMutation((t=>{e.forEach((e=>t.add(e)))}))}clear(){this.withMutation((e=>e.clear()))}delete(e){return this.withMutation((t=>{t.delete(e)}))}withMutation(e){const t=new Set(this.set);e(t);const i=new Q(t,this.onMutate);return this.onMutate(i),i}has(e){return this.set.has(e)}toArray(){return[...this.set]}}const ee=["input","input-select","stepper","checkbox","textarea","combo-box","date-picker","time-picker"];var te=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ie extends n{constructor(){super(...arguments),this.renderTableCellContent=(t,i,o)=>{var a,l;const s=f(i,t.prop),r=this.vegaTableDataSourceController.getRecordKey(i),n=!this.vegaTableDataSourceController.getDataSource().find((e=>this.vegaTableDataSourceController.getRecordKey(e)===r)),d=this.vegaTableEditableController.isEditing(r),h=this.vegaTableEditableController.getRowFormRefMap().get(r);if(d&&h&&t.renderFormItem)return t.renderFormItem(e,t.prop?s:r,i,o,{rowForm:h,isNewRow:n});if(d&&h&&t.editable){const e=null===(a=t.formItemProps)||void 0===a?void 0:a.call(t,h,{record:i,index:o}),r=Object.assign({dataVegaForm:(null==e?void 0:e.dataVegaForm)||t.prop,size:"small",value:s},null===(l=t.formItemProps)||void 0===l?void 0:l.call(t,h,{record:i,index:o}));return this.generateEditComponentByType(t.formItemType,r)}return t.render?t.render(e,t.prop?s:r,i,o):"string"==typeof s||"number"==typeof s?String(s):null==s?"":void c.error(`Column ${t.prop}'s value has a wrong type(${typeof i[t.prop]}) in table cell. Only 'VegaTableNode | string | number' can be rendered in table cell`)},this.generateEditComponentByType=(t="input",i)=>{const o=`vega-${t}`,{dataVegaForm:a}=i,l=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(i,["dataVegaForm"]);if(this.isVegaTableEditableFieldType(o))return e(o,Object.assign(Object.assign({},l),{"data-vega-form":a}));c.error(`Type must be one of the form field types. [${ee.join(",")}]`)},this.isVegaTableEditableFieldType=e=>e.toUpperCase().startsWith("VEGA")&&new RegExp(ee.join("|"),"i").test(e)}render(t,i,o){const a=this.vegaTableDataSourceController.getRecordKey(i);return e("vega-table-cell",{key:`${a}_${t.key||t.prop}`,textAlign:t.align,breakpoint:t.breakpoint,overflow:t.overflow},this.renderTableCellContent(t,i,o))}}te([r()],ie.prototype,"rowKey",void 0),te([r()],ie.prototype,"vegaTableDataSourceController",void 0),te([r()],ie.prototype,"vegaTableEditableController",void 0);var oe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ae extends n{constructor(){super(...arguments),this.toggleExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!this.isExpanded(e))},this.openExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!0)},this.closeExpandRow=e=>{this.rowExpandable&&this.handleToggleExpandRow(e,!1)},this.closeAllExpandRow=()=>{this.rowExpandable&&this.handleCloseAllExpandRow()},this.isExpanded=e=>this.expandedRowKeySet.has(e),this.handleCloseAllExpandRow=()=>{this.expandedRowKeySet.toArray().forEach((e=>{w.notify(g,{host:this.host,rowKey:e,expanded:!1})})),this.expandedRowKeySet.clear()},this.handleToggleExpandRow=(e,t)=>{t?this.expandedRowKeySet.add(e):this.expandedRowKeySet.delete(e),w.notify(g,{host:this.host,rowKey:e,expanded:t})},this.initMutationObserver=()=>{this.mutationObserver=new MutationObserver((async e=>{this.expandRowSlotGuard(e)&&t(this.host)})),this.mutationObserver.observe(this.host,{childList:!0,subtree:!0})},this.expandRowSlotGuard=e=>{const t=this.vegaTableDataSourceController.getCurrentData().map((e=>`${ae.expandRowSlotNamePrefix}${this.vegaTableDataSourceController.getRecordKey(e)}`)),i=[];for(let o=0;o<e.length;o++)Array.from(e[o].addedNodes).filter((e=>e instanceof HTMLElement&&e.getAttribute("slot"))).forEach((e=>{e.removeAttribute("hidden");const o=e.getAttribute("slot");t.includes(o)?i.push(e):c.warn(`The vega-table expand row slot name '${o}' is not as expected, it must be like: vega-table-expand-row-[rowKey]`)}));return i.length>0}}connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect(),w.unregister(g,this.expandObserver)}componentDidLoad(){this.initMutationObserver()}watchRowExpandable(){this.handleCloseAllExpandRow()}initRowExpandObserver(){this.expandObserver=new R(this.isAcceptableTableRowObserver.bind({host:this.host}),(e=>{e.expanded?this.expandedRowKeySet.add(e.rowKey):this.expandedRowKeySet.delete(e.rowKey)})),w.register(g,this.expandObserver)}isAcceptableTableRowObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}ae.expandRowSlotNamePrefix="vega-table-expand-row-",oe([r()],ae.prototype,"host",void 0),oe([r()],ae.prototype,"expandedRowKeySet",void 0),oe([r()],ae.prototype,"rowExpandable",void 0),oe([r()],ae.prototype,"vegaTableDataSourceController",void 0),oe([d("connectedCallback")],ae.prototype,"connectedCallback",null),oe([d("disconnectedCallback")],ae.prototype,"disconnectedCallback",null),oe([d("componentDidLoad")],ae.prototype,"componentDidLoad",null),oe([d("toggleExpandRow")],ae.prototype,"toggleExpandRow",void 0),oe([d("openExpandRow")],ae.prototype,"openExpandRow",void 0),oe([d("closeExpandRow")],ae.prototype,"closeExpandRow",void 0),oe([d("closeAllExpandRow")],ae.prototype,"closeAllExpandRow",void 0),oe([d("watchRowExpandable")],ae.prototype,"watchRowExpandable",null);var le=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class se extends n{constructor(){super(...arguments),this.handleRowSelect=(e,t)=>{const i=this.vegaTableDataSourceController.getRecordKey(t);let o=!1;e?this.selectedRowKeySet.has(i)||(this.selectedRowKeySet.add(i),o=!0):this.selectedRowKeySet.has(i)&&(this.selectedRowKeySet.delete(i),o=!0),o&&this.selectChangeEventEmitter.emit({selected:e,record:t,selectedRows:this.getSelectedRecords()})},this.getRowSelectionType=()=>{if(this.rowSelection)return this.rowSelection.type||"multiple"},this.handleSingleRowSelect=e=>{const t=this.vegaTableDataSourceController.getRecordKey(e);this.isChecked(t)?this.handleRowSelect(!1,e):(this.selectedRowKeySet.clear(),this.handleRowSelect(!0,e))},this.isChecked=e=>this.selectedRowKeySet.has(e),this.handleSelectAll=e=>{if(e){const e=this.vegaTableDataSourceController.getAllRecordKeys();this.selectedRowKeySet.add(...e.filter((e=>!this.selectedRowKeySet.has(e))))}else this.isCheckedAll()&&this.selectedRowKeySet.clear()},this.isCheckedAll=()=>this.selectedRowKeySet.size>0&&this.vegaTableDataSourceController.getCurrentData().every((e=>this.selectedRowKeySet.has(this.vegaTableDataSourceController.getRecordKey(e)))),this.setupRowSelection=e=>{this.rowSelection=Object.assign({hideSelectAll:!1,type:"multiple"},e)},this.getSelectedRecords=()=>this.selectedRowKeySet.toArray().map(this.vegaTableDataSourceController.getRecordByKey).filter(Boolean),this.syncUpSelectedKeySetWithCurrentData=e=>{this.selectedRowKeySet.withMutation((t=>{t.clear(),e.forEach((e=>{const i=this.vegaTableDataSourceController.getRecordKey(e);this.selectedRowKeySet.has(i)&&t.add(i)}))}))}}connectedCallback(){this.initRowSelectionObserver(),this.initRowClickObserver(),this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver),w.unregister(y,this.rowSelectionAllObserver),w.unregister(x,this.rowClickObserver)}componentWillLoad(){this.rowSelection&&this.setupRowSelection(this.rowSelection)}watchRowSelection(e,t){(null==t?void 0:t.type)!==(null==e?void 0:e.type)&&this.clearSelection()}setSelection(e){"single"===this.getRowSelectionType()&&e.splice(1),this.selectedRowKeySet.toArray().forEach((e=>{w.notify(m,{host:this.host,rowKey:e,checked:!1})})),this.selectedRowKeySet.clear(),e.forEach((e=>{this.vegaTableDataSourceController.getRecordByKey(e)&&(this.selectedRowKeySet.add(e),w.notify(m,{host:this.host,rowKey:e,checked:!0}))}))}watchCurrentData(e){this.syncUpSelectedKeySetWithCurrentData(e)}clearSelection(){this.selectedRowKeySet.clear(),w.notify(y,{host:this.host,checked:!1,noneChecked:0===this.selectedRowKeySet.size})}getSelection(){return this.selectedRowKeySet.toArray()}watchSelectedRowKeySet(){this.isSelectedAll=this.isCheckedAll()}watchSelectedAll(){w.notify(y,{host:this.host,checked:this.isCheckedAll(),noneChecked:0===this.selectedRowKeySet.size}),this.selectAllChangeEventEmitter.emit({selected:this.isCheckedAll(),selectedRows:this.getSelectedRecords()})}isAcceptableRowSelectionObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}isAcceptableRowSelectionAllObserver(e){return"VEGA-TABLE"===e.host.tagName?this.host===e.host:"VEGA-TABLE-HEAD-ROW"===e.host.tagName?this.host===C(e.host,"vega-table"):void 0}initRowSelectionObserver(){this.rowSelectionObserver=new R(this.isAcceptableRowSelectionObserver.bind(this),(e=>{const{rowKey:t,checked:i}=e,o=this.vegaTableDataSourceController.getRecordByKey(t);this.handleRowSelect(i,o)})),w.register(m,this.rowSelectionObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new R(this.isAcceptableRowSelectionAllObserver.bind(this),(e=>{this.handleSelectAll(e.checked)})),w.register(y,this.rowSelectionAllObserver)}initRowClickObserver(){this.rowClickObserver=new R(this.isAcceptableRowClickObserver.bind(this),(e=>{if("single"===this.getRowSelectionType()){const t=this.vegaTableDataSourceController.getRecordByKey(e.rowKey);this.handleSingleRowSelect(t)}})),w.register(x,this.rowClickObserver)}isAcceptableRowClickObserver(e){return"VEGA-TABLE-ROW"===e.host.tagName&&this.host===C(e.host,"vega-table")}}le([r()],se.prototype,"host",void 0),le([r({writable:!0})],se.prototype,"isSelectedAll",void 0),le([r()],se.prototype,"selectedRowKeySet",void 0),le([r({writable:!0})],se.prototype,"rowSelection",void 0),le([r()],se.prototype,"rowKey",void 0),le([r()],se.prototype,"selectChangeEventEmitter",void 0),le([r()],se.prototype,"selectAllChangeEventEmitter",void 0),le([r()],se.prototype,"vegaTableDataSourceController",void 0),le([d("connectedCallback")],se.prototype,"connectedCallback",null),le([d("disconnectedCallback")],se.prototype,"disconnectedCallback",null),le([d("componentWillLoad")],se.prototype,"componentWillLoad",null),le([d("watchRowSelection")],se.prototype,"watchRowSelection",null),le([d("setSelection")],se.prototype,"setSelection",null),le([d("watchCurrentData")],se.prototype,"watchCurrentData",null),le([d("clearSelection")],se.prototype,"clearSelection",null),le([d("getSelection")],se.prototype,"getSelection",null),le([d("watchSelectedRowKeySet")],se.prototype,"watchSelectedRowKeySet",null),le([d("watchSelectedAll")],se.prototype,"watchSelectedAll",null);var re=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ne extends n{constructor(){super(...arguments),this.getRecordKey=e=>null!=e[this.rowKey]?String(e[this.rowKey]):"",this.getRecordByKey=e=>this.currentData.find((t=>this.getRecordKey(t)===e)),this.setCurrentData=e=>{this.currentData=this.tableDataValidation(e)?e:[]}}componentWillLoad(){this.vegaTableSortController.syncSortOrder(),this.syncCurrentData()}watchSortersMap(){this.syncCurrentData()}watchDataSource(){this.syncCurrentData()}getAllRecordKeys(){return this.currentData.map(this.getRecordKey)}getDataSource(){return this.dataSource}setDataSource(e){this.dataSource=e}getCurrentData(){return this.currentData}isCurrentDataEmpty(){return 0===this.currentData.length}tableDataValidation(e){return!e.some((e=>!this.getRecordKey(e)))||(c.error('Each item in dataSource should have a unique "key" prop.'," Otherwise, you should specify the primary key of dataSource item via rowKey."," For more details, please refer to: https://heartlandpayments.github.io/Vega/?path=/docs/components-table-v2--basic-table#rowkey"),!1)}syncCurrentData(){if(this.isTemplateRenderMode)return;const e=this.sortersMap.size>0?this.columns.filter((e=>e.sorter&&"event"!==e.sorter&&this.sortersMap.has(e.prop))):[];if(e.length>0){const t=e[e.length-1].prop,i=this.sortersMap.get(t).order;this.setCurrentData(this.vegaTableSortController.sortData(this.dataSource,t,i))}else this.setCurrentData(this.dataSource)}}re([r()],ne.prototype,"rowKey",void 0),re([r({writable:!0})],ne.prototype,"currentData",void 0),re([r({writable:!0})],ne.prototype,"dataSource",void 0),re([r()],ne.prototype,"columns",void 0),re([r()],ne.prototype,"sortersMap",void 0),re([r()],ne.prototype,"vegaTableSortController",void 0),re([r()],ne.prototype,"vegaTableRenderer",void 0),re([r()],ne.prototype,"isTemplateRenderMode",void 0),re([d("componentWillLoad")],ne.prototype,"componentWillLoad",null),re([d("watchSortersMap")],ne.prototype,"watchSortersMap",null),re([d("watchDataSource")],ne.prototype,"watchDataSource",null);var ce=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class de extends n{constructor(){super(...arguments),this.renderTableBody=t=>e("vega-table-body",null,this.vegaTableDataSourceController.getCurrentData().map(((o,a)=>{const l=this.vegaTableDataSourceController.getRecordKey(o),s=this.vegaTablePaginationController.isRowVisible(a);return e(i,null,this.vegaTableRowRenderer.render({rowKey:l,index:a,record:o,isVisibleInCurrentPage:s},t),this.rowExpandable&&e("vega-table-expand-row",{class:{"v-hidden":!s},key:`vega-table-expanded-row-${l}`,rowKey:l,"data-striped":this.striped&&a%2==1?"striped":void 0},e("slot",{name:`${ae.expandRowSlotNamePrefix}${l}`})))})))}getTableFormRef(){return this.tableFormRef}render(){const t=this.columns.some((e=>e.editable));return t?e("vega-form",{ref:e=>this.tableFormRef=e},this.renderTableBody(t)):this.renderTableBody(!1)}}ce([r()],de.prototype,"striped",void 0),ce([r()],de.prototype,"columns",void 0),ce([r()],de.prototype,"currentBreakpoint",void 0),ce([r()],de.prototype,"rowExpandable",void 0),ce([r()],de.prototype,"rowClickable",void 0),ce([r()],de.prototype,"vegaTableDataSourceController",void 0),ce([r()],de.prototype,"vegaTablePaginationController",void 0),ce([r()],de.prototype,"vegaTableRowSelectionController",void 0),ce([r()],de.prototype,"vegaTableRowRenderer",void 0);var he=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class pe extends n{constructor(){super(...arguments),this.renderHeaderColumnCells=()=>this.columns.map((t=>e("vega-table-head-cell",{key:t.key||t.prop,textAlign:t.align,sorter:t.sorter,sortOrder:t.sortOrder,breakpoint:t.breakpoint,ref:e=>{S.addUniqueObserverToNode(e,j,(e=>{this.vegaTableSortController.handleHeadSortClick(t,e.detail.sortOrder)}))}},t.label)))}render(){var t;return this.showHeader&&e("vega-table-head",null,e("vega-table-head-row",{hideSelectAll:null===(t=this.rowSelection)||void 0===t?void 0:t.hideSelectAll},this.renderHeaderColumnCells()))}}he([r()],pe.prototype,"showHeader",void 0),he([r()],pe.prototype,"columns",void 0),he([r()],pe.prototype,"rowSelection",void 0),he([r()],pe.prototype,"vegaTableSortController",void 0),he([r()],pe.prototype,"vegaTableDataSourceController",void 0);var be=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ve extends n{constructor(){super(...arguments),this.paginationRefCallback=e=>{S.addUniqueObserverToNode(e,E,this.handlePaginationChange),S.addUniqueObserverToNode(e,O,this.handlePaginationPageSizeChange)},this.handlePaginationChange=e=>{var t,i;this.vegaTablePaginationController.setCurrentPage(e.detail);const o=new CustomEvent("vegaChange",{detail:e.detail});null===(i=(t=this.pagination).vegaChange)||void 0===i||i.call(t,o)},this.handlePaginationPageSizeChange=e=>{var t,i;this.vegaTablePaginationController.setPageSize(e.detail);const o=new CustomEvent("vegaPageSizeChange",{detail:e.detail});null===(i=(t=this.pagination).vegaPageSizeChange)||void 0===i||i.call(t,o)},this.getPaginationConfig=()=>{var e;const t=this.pagination,{position:i}=t,o=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]])}return i}(t,["position"]);return Object.assign(Object.assign({},o),{position:(null===(e=this.pagination.extensions)||void 0===e?void 0:e.length)>1?void 0:i||"bottom-center",pageSize:this.pageSize})}}render(){if(!this.pagination)return;const{pageSize:t,position:i,extensions:o,pageSizeSelectorOptions:a}=this.getPaginationConfig(),l=["vega-table-pagination-container",i],s=this.vegaTableDataSourceController.getCurrentData().length;return s>0&&e("div",{class:k(l)},e("vega-pagination",{total:s,pageSize:t,current:this.currentPage,extensions:o,pageSizeSelectorOptions:a,ref:this.paginationRefCallback}))}}be([r()],ve.prototype,"pagination",void 0),be([r()],ve.prototype,"pageSize",void 0),be([r()],ve.prototype,"currentPage",void 0),be([r()],ve.prototype,"vegaTablePaginationController",void 0),be([r()],ve.prototype,"vegaTableDataSourceController",void 0);const ue=({scrollConfig:t={},ref:i},o)=>{const{maxHeight:a}=t,l=L(a);return e("div",{class:"vega-table-scrollable-container",style:{maxHeight:"number"==typeof a?`${a}px`:a},ref:i,onScroll:e=>{if(!l)return;const t=e.target;0!==t.scrollTop?t.scrollTop>0&&!t.classList.contains("scrolled")&&t.classList.add("scrolled"):t.classList.remove("scrolled")}},o)};var fe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class we extends n{constructor(){super(...arguments),this.scrollContainerToTop=()=>{this.tableScrollContainerRef&&(this.tableScrollContainerRef.scrollTop=0)}}watchCurrentPage(){this.scrollContainerToTop()}render(t){return e(ue,{scrollConfig:this.scrollConfig,ref:e=>this.setTableScrollContainerRef(e)},t)}setTableScrollContainerRef(e){this.tableScrollContainerRef=e}}fe([r()],we.prototype,"scrollConfig",void 0),fe([d("watchCurrentPage")],we.prototype,"watchCurrentPage",null);var ge=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class me extends n{constructor(){super(...arguments),this.renderInternalTable=()=>{const t=this.columns.some((e=>e.overflow))||Array.from(this.host.querySelectorAll("vega-table-cell")).some((e=>e.overflow));return e("table",{class:{"v-table-fixed":t}},this.columns.length>0&&[this.vegaTableColGroupRenderer.render(),this.vegaTableHeaderRenderer.render()],this.dataSource.length>0&&this.vegaTableBodyRenderer.render(),this.isTemplateRenderMode&&e("slot",null))},this.renderEmpty=()=>this.vegaTableDataSourceController.isCurrentDataEmpty()&&this.emptyDescription&&e("div",{class:"vega-table-empty-description"},this.emptyDescription)}render(){const t=k([this.rowDivider&&"row-divider",this.columnDivider&&"column-divider",`density-${N.formatCustom(this.density)}`,this.striped&&"striped"]);return K(e(o,{class:t},this.vegaTableScrollContainerRenderer.render(this.renderInternalTable()),this.vegaTablePaginationRenderer.render(),this.renderEmpty()),this.host)}}ge([r()],me.prototype,"host",void 0),ge([r()],me.prototype,"columns",void 0),ge([r()],me.prototype,"emptyDescription",void 0),ge([r()],me.prototype,"rowDivider",void 0),ge([r()],me.prototype,"columnDivider",void 0),ge([r()],me.prototype,"density",void 0),ge([r()],me.prototype,"dataSource",void 0),ge([r()],me.prototype,"striped",void 0),ge([r()],me.prototype,"vegaTableHeaderRenderer",void 0),ge([r()],me.prototype,"vegaTableBodyRenderer",void 0),ge([r()],me.prototype,"vegaTableColGroupRenderer",void 0),ge([r()],me.prototype,"vegaTableScrollContainerRenderer",void 0),ge([r()],me.prototype,"vegaTablePaginationRenderer",void 0),ge([r()],me.prototype,"vegaTableDataSourceController",void 0),ge([r({writable:!0})],me.prototype,"vegaTableChildrenController",void 0),ge([r()],me.prototype,"isTemplateRenderMode",void 0);var ye=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class xe extends n{componentWillLoad(){var e,t;this.currentPage=(null===(e=this.pagination)||void 0===e?void 0:e.current)||1,this.pageSize=(null===(t=this.pagination)||void 0===t?void 0:t.pageSize)||10}watchPagination(){if(this.pagination){const{pageSize:e,current:t}=this.pagination;e>0&&(this.pageSize=e),t>0&&(this.currentPage=t)}}setPageSize(e){this.pageSize=e}setCurrentPage(e){this.currentPage=e}isRowVisible(e){if(!this.pagination)return!0;const t=this.pageSize,i=this.currentPage;return e>=(i-1)*t&&e<i*t}}ye([r()],xe.prototype,"pagination",void 0),ye([r({writable:!0})],xe.prototype,"pageSize",void 0),ye([r({writable:!0})],xe.prototype,"currentPage",void 0),ye([d("componentWillLoad")],xe.prototype,"componentWillLoad",null),ye([d("watchPagination")],xe.prototype,"watchPagination",null);var Re=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Se extends n{constructor(){super(...arguments),this.rowFormRefMap=new Map}getRowFormRefMap(){return this.rowFormRefMap}async saveAllEditRows(){const e=this.vegaTableDataSourceController.getCurrentData().slice();for(const t of this.editingRows.toArray()){const i=await this.getRowData(t),o=e.findIndex((e=>this.vegaTableDataSourceController.getRecordKey(e)===t));o>-1&&e.splice(o,1,i)}this.vegaTableDataSourceController.setDataSource([...e]),this.stopAllRowEditMode()}stopAllRowEditMode(){this.editingRows.clear()}watchDataSource(e){this.getEditingRowsKey().forEach((t=>{e.find((e=>e.key===t))||this.stopRowEditMode(t)}))}async saveEditRow(e){const t=await this.getRowData(e),i=this.vegaTableDataSourceController.getCurrentData().slice(),o=i.findIndex((t=>this.vegaTableDataSourceController.getRecordKey(t)===e));o>-1&&(i.splice(o,1,t),this.vegaTableDataSourceController.setDataSource([...i])),this.stopRowEditMode(e)}stopRowEditMode(e){this.editingRows.delete(e)}removeRow(e){this.vegaTableDataSourceController.setDataSource(this.vegaTableDataSourceController.getCurrentData().filter((t=>this.vegaTableDataSourceController.getRecordKey(t)!==e)))}startRowEditMode(e){this.editingRows.add(e)}addNewRow(e={}){var t;const i=(null===(t=e[this.rowKey])||void 0===t?void 0:t.toString())||W(),o=Object.assign({},e);return o[this.rowKey]=i,this.vegaTableDataSourceController.setCurrentData([...this.vegaTableDataSourceController.getCurrentData(),o]),this.editingRows.add(i),i}async getRowsData(){const e=await this.vegaTableBodyRenderer.getTableFormRef().getValue();return[...this.vegaTableDataSourceController.getCurrentData().map((t=>{const i=e[`${Se.rowFormKeyPrefix}${this.vegaTableDataSourceController.getRecordKey(t)}`];return Object.assign(Object.assign({},t),i)}))]}getEditingRowsKey(){return this.editingRows.toArray()}getFormRef(e){return e?this.rowFormRefMap.get(e):this.vegaTableBodyRenderer.getTableFormRef()}async getRowData(e){const t=await this.rowFormRefMap.get(e).getValue();return Object.assign(Object.assign({},this.vegaTableDataSourceController.getRecordByKey(e)),t)}isEditing(e){return this.editingRows.has(e)}}Se.rowFormKeyPrefix="vega-table-row-form-",Re([r()],Se.prototype,"editingRows",void 0),Re([r()],Se.prototype,"rowKey",void 0),Re([r()],Se.prototype,"vegaTableDataSourceController",void 0),Re([r()],Se.prototype,"vegaTableBodyRenderer",void 0),Re([d("saveAllEditRows")],Se.prototype,"saveAllEditRows",null),Re([d("stopAllRowEditMode")],Se.prototype,"stopAllRowEditMode",null),Re([d("watchDataSource")],Se.prototype,"watchDataSource",null),Re([d("saveEditRow")],Se.prototype,"saveEditRow",null),Re([d("stopRowEditMode")],Se.prototype,"stopRowEditMode",null),Re([d("removeRow")],Se.prototype,"removeRow",null),Re([d("startRowEditMode")],Se.prototype,"startRowEditMode",null),Re([d("addNewRow")],Se.prototype,"addNewRow",null),Re([d("getRowsData")],Se.prototype,"getRowsData",null),Re([d("getEditingRowsKey")],Se.prototype,"getEditingRowsKey",null),Re([d("getFormRef")],Se.prototype,"getFormRef",null),Re([d("getRowData")],Se.prototype,"getRowData",null);var Ce=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ke extends n{constructor(){super(...arguments),this.sortData=(e,t,i)=>{const o=this.columns.find((e=>"function"==typeof e.sorter&&e.prop===t)).sorter,a=e.slice();return i?a.sort(((e,t)=>{const a=o(e,t);return"asc"===i?a:-a})):a}}watchColumns(){this.syncSortOrder()}handleHeadSortClick(e,t){this.sortersMap.has(e.prop)&&this.sortersMap.delete(e.prop),t&&this.sortersMap.set(e.prop,{order:t,prop:e.prop}),"event"!==e.sorter&&this.vegaTableDataSourceController.setCurrentData(this.sortData(this.vegaTableDataSourceController.getDataSource(),e.prop,t)),this.changeEventEmitter.emit({sorters:[...this.sortersMap.values()]})}syncSortOrder(){this.columns.filter((e=>L(e.sorter)&&L(e.sortOrder))).forEach((e=>{this.sortersMap.set(e.prop,{order:e.sortOrder,prop:e.prop})}))}}Ce([r({writable:!0})],ke.prototype,"sortersMap",void 0),Ce([r()],ke.prototype,"columns",void 0),Ce([r()],ke.prototype,"changeEventEmitter",void 0),Ce([r()],ke.prototype,"vegaTableDataSourceController",void 0),Ce([d("watchColumns")],ke.prototype,"watchColumns",null);var je=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ee extends n{constructor(){super(...arguments),this.getColResponsiveClass=e=>e.breakpoint&&M(e.breakpoint)?`v-hidden ${e.breakpoint}:v-table-column`:""}render(){return e("colgroup",null,e("col",{style:{minWidth:this.paddingX[0],width:this.paddingX[0]}}),"multiple"===this.vegaTableRowSelectionController.getRowSelectionType()&&e("col",{style:{minWidth:"40px",width:"40px"}}),this.columns.map((t=>{const i=this.getColResponsiveClass(t);return e("col",{class:i,style:{width:t.width?t.width:null}})})),this.rowExpandable&&e("col",{style:{minWidth:"40px",width:"40px"}}),e("col",{style:{minWidth:this.paddingX[1],width:this.paddingX[1]}}))}}je([r()],Ee.prototype,"paddingX",void 0),je([r()],Ee.prototype,"columns",void 0),je([r()],Ee.prototype,"rowExpandable",void 0),je([r()],Ee.prototype,"vegaTableRowSelectionController",void 0);var Oe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Te extends n{constructor(){super(...arguments),this.currentDataObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW"),callback:()=>{this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps()}}),this.rowStripedObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW","VEGA-TABLE-EXPAND-ROW"),callback:()=>{this.syncRowStriped()}}),this.syncUpTableCurrentData=()=>{if(!this.isTemplateRenderMode)return;const e=Array.from(this.host.querySelectorAll("vega-table-row")).map((e=>({key:e.rowKey})));this.vegaTableDataSourceController.setCurrentData(e)},this.syncRowStriped=()=>{this.host.querySelectorAll("vega-table-row").forEach(((e,t)=>{this.updateRowStriped(e,t)})),this.host.querySelectorAll("vega-table-expand-row").forEach(((e,t)=>{this.updateRowStriped(e,t)}))},this.syncUpTableHeadRowProps=()=>{var e;if(!this.isTemplateRenderMode)return;const t=this.host.querySelector("vega-table-head-row");t&&(t.hideSelectAll=t.hideSelectAll||(null===(e=this.rowSelection)||void 0===e?void 0:e.hideSelectAll))}}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.syncUpTableCurrentData(),this.syncUpTableHeadRowProps(),this.syncRowStriped()}componentDidLoad(){}clearSelection(){w.notify(y,{host:this.host,checked:!1,noneChecked:!0})}watchStriped(){this.syncRowStriped()}updateRowStriped(e,t){this.striped&&t%2==1?e.dataset.striped="striped":delete e.dataset.striped}}Oe([r()],Te.prototype,"host",void 0),Oe([r()],Te.prototype,"columns",void 0),Oe([r()],Te.prototype,"dataSource",void 0),Oe([r()],Te.prototype,"currentData",void 0),Oe([r()],Te.prototype,"rowSelection",void 0),Oe([r()],Te.prototype,"striped",void 0),Oe([r()],Te.prototype,"vegaTableDataSourceController",void 0),Oe([r()],Te.prototype,"vegaTableRenderer",void 0),Oe([r()],Te.prototype,"isTemplateRenderMode",void 0),Oe([h()],Te.prototype,"currentDataObserver",void 0),Oe([h()],Te.prototype,"rowStripedObserver",void 0),Oe([d("connectedCallback")],Te.prototype,"connectedCallback",null),Oe([d("disconnectedCallback")],Te.prototype,"disconnectedCallback",null),Oe([d("componentWillLoad")],Te.prototype,"componentWillLoad",null),Oe([d("componentDidLoad")],Te.prototype,"componentDidLoad",null),Oe([d("clearSelection")],Te.prototype,"clearSelection",null),Oe([d("watchStriped")],Te.prototype,"watchStriped",null);var De=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ae extends n{constructor(){super(...arguments),this.renderTableRowComponent=t=>{const{rowKey:i,index:o,record:a,isVisibleInCurrentPage:l}=t;return e("vega-table-row",{class:{"v-hidden":!l},key:`vega-table-row-${i}`,rowKey:i,ref:e=>{S.addUniqueObserverToNode(e,j,(()=>{this.rowClickEventEmitter.emit({record:a,index:o})}))},"data-striped":this.striped&&o%2==1?"striped":void 0},this.columns.map((e=>this.vegaTableCellRenderer.render(e,a,o))))}}render(t,i){const{rowKey:o}=t;return i?e("vega-form",{key:`vega-table-row-form-${o}`,"data-vega-form":`${Se.rowFormKeyPrefix}${o}`,ref:e=>this.vegaTableEditableController.getRowFormRefMap().set(o,e)},this.renderTableRowComponent(t)):this.renderTableRowComponent(t)}}De([r()],Ae.prototype,"columns",void 0),De([r()],Ae.prototype,"rowClickEventEmitter",void 0),De([r()],Ae.prototype,"vegaTableEditableController",void 0),De([r()],Ae.prototype,"vegaTableCellRenderer",void 0),De([r()],Ae.prototype,"striped",void 0);var Le=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Me extends n{constructor(){super(...arguments),this.currentDataObserver=new P({target:()=>this.host,options:{childList:!0,subtree:!0},mutationFilter:B("VEGA-TABLE-ROW"),callback:()=>{this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}}),this.checkIsTemplateRenderMode=e=>Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.startsWith("vega-table-expand-row-"))})).length>0}connectedCallback(){}disconnectedCallback(){}componentWillLoad(){this.isTemplateRenderMode=this.checkIsTemplateRenderMode(this.host)}componentDidLoad(){}}Le([r()],Me.prototype,"host",void 0),Le([r({writable:!0})],Me.prototype,"isTemplateRenderMode",void 0),Le([h()],Me.prototype,"currentDataObserver",void 0),Le([d("connectedCallback")],Me.prototype,"connectedCallback",null),Le([d("disconnectedCallback")],Me.prototype,"disconnectedCallback",null),Le([d("componentWillLoad")],Me.prototype,"componentWillLoad",null),Le([d("componentDidLoad")],Me.prototype,"componentDidLoad",null);const Ne=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>0===e.dataSource.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the table",payloadValue:e=>e.dataSource.length>0}];var Ke=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const We=class{constructor(e){a(this,e),this.vegaChange=l(this,"vegaChange",7),this.change=l(this,"change",7),this.vegaRowClick=l(this,"vegaRowClick",7),this.rowClick=l(this,"rowClick",7),this.vegaSelectChange=l(this,"vegaSelectChange",7),this.selectChange=l(this,"selectChange",7),this.vegaSelectAllChange=l(this,"vegaSelectAllChange",7),this.selectAllChange=l(this,"selectAllChange",7),this.globalSlimmers={},this.vegaTableRenderModeController=new Me,this.vegaTableRenderer=new me,this.vegaTableHeaderRenderer=new pe,this.vegaTableBodyRenderer=new de,this.vegaTableRowRenderer=new Ae,this.vegaTableCellRenderer=new ie,this.vegaTablePaginationRenderer=new ve,this.vegaTableScrollContainerRenderer=new we,this.vegaTableExpandRowController=new ae,this.vegaTableRowSelectionController=new se,this.vegaTableDataSourceController=new ne,this.vegaTablePaginationController=new xe,this.vegaTableEditableController=new Se,this.vegaTableSortController=new ke,this.vegaTableColGroupRenderer=new Ee,this.vegaTableChildrenController=new Te,this.pageResizeObserverSlimmer=new V,this.rowSelectionNotifySlimmer=$(We,"rowSelection","watchRowSelection"),this.rowExpandableNotifySlimmer=$(We,"rowExpandable","watchRowExpandable"),this.paddingXNotifySlimmer=$(We,"paddingX","watchPaddingX"),this.rowClickableNotifySlimmer=$(We,"rowClickable","watchRowClickable"),this.scrollConfigNotifySlimmer=$(We,"scrollConfig","watchScrollConfig"),this.paginationEventPrevent=new I([E,O],(()=>this.host)),this.changeEventEmitter=X(We,E),this.selectChangeEventEmitter=X(We,T),this.selectAllChangeEventEmitter=X(We,D),this.rowClickEventEmitter=X(We,A),this.rowDividerNotifySlimmer=$(We,"rowDivider","watchRowDivider"),this.columnDividerNotifySlimmer=$(We,"columnDivider","watchColumnDivider"),this.densityNotifySlimmer=$(We,"density","watchDensity"),this.isTemplateRenderModeNotifySlimmer=$(We,"isTemplateRenderMode","watchTemplateRenderMode"),this.currentDataNotifySlimmer=$(We,"currentData","watchCurrentData"),this.vegaComponentUsageRuntimeMetricsSlimmer=new v(Ne),this.selectedRowKeySet=new Q(new Set,(e=>{this.selectedRowKeySet=e})),this.expandedRowKeySet=new Q(new Set,(e=>{this.expandedRowKeySet=e})),this.currentBreakpoint=z(),this.sortersMap=new F(new Map,(e=>{this.sortersMap=e})),this.currentData=[],this.currentPage=1,this.pageSize=10,this.editingRows=new Q(new Set,(e=>{this.editingRows=e})),this.isSelectedAll=!1,this.columns=[],this.dataSource=[],this.rowSelection=null,this.rowExpandable=!1,this.rowClickable=!1,this.rowDivider=!1,this.columnDivider=!1,this.striped=!0,this.density="default",this.paddingX=["8px","8px"],this.showHeader=!0,this.pagination=null,this.emptyDescription="There is no data to display",this.rowKey="key"}watchSelectedRowKeySet(){}watchSortersMap(){}watchCurrentData(e,t){}watchCurrentPage(){}watchSelectedAll(){}watchTemplateRenderMode(){}watchColumns(){}watchDataSource(){}watchRowSelection(){}watchRowExpandable(){}watchRowClickable(){}watchRowDivider(){}watchColumnDivider(){}watchStriped(){}watchDensity(){}watchPaddingX(){}watchPagination(){}watchScrollConfig(){}async openExpandRow(e){}async closeExpandRow(e){}async closeAllExpandRow(){}async toggleExpandRow(e){}async clearSelection(){}async getSelection(){return p()}async setSelection(e){}async startRowEditMode(e){}async stopRowEditMode(e){}async stopAllRowEditMode(){}async getRowData(e){return p(e)}async getRowsData(){return p()}async getFormRef(e){return p(e)}async addNewRow(e={}){return p(e)}async saveEditRow(e){return p(e)}async saveAllEditRows(){}async getEditingRowsKey(){return p()}async removeRow(e){}render(){return b(e("slot",null)),this.vegaTableRenderer.render()}get host(){return s(this)}static get watchers(){return{selectedRowKeySet:["watchSelectedRowKeySet"],sortersMap:["watchSortersMap"],currentData:["watchCurrentData"],currentPage:["watchCurrentPage"],isSelectedAll:["watchSelectedAll"],isTemplateRenderMode:["watchTemplateRenderMode"],columns:["watchColumns"],dataSource:["watchDataSource"],rowSelection:["watchRowSelection"],rowExpandable:["watchRowExpandable"],rowClickable:["watchRowClickable"],rowDivider:["watchRowDivider"],columnDivider:["watchColumnDivider"],striped:["watchStriped"],density:["watchDensity"],paddingX:["watchPaddingX"],pagination:["watchPagination"],scrollConfig:["watchScrollConfig"]}}};Ke([u()],We.prototype,"globalSlimmers",void 0),Ke([h()],We.prototype,"vegaTableRenderModeController",void 0),Ke([h()],We.prototype,"vegaTableRenderer",void 0),Ke([h()],We.prototype,"vegaTableHeaderRenderer",void 0),Ke([h()],We.prototype,"vegaTableBodyRenderer",void 0),Ke([h()],We.prototype,"vegaTableRowRenderer",void 0),Ke([h()],We.prototype,"vegaTableCellRenderer",void 0),Ke([h()],We.prototype,"vegaTablePaginationRenderer",void 0),Ke([h()],We.prototype,"vegaTableScrollContainerRenderer",void 0),Ke([h()],We.prototype,"vegaTableExpandRowController",void 0),Ke([h()],We.prototype,"vegaTableRowSelectionController",void 0),Ke([h()],We.prototype,"vegaTableDataSourceController",void 0),Ke([h()],We.prototype,"vegaTablePaginationController",void 0),Ke([h()],We.prototype,"vegaTableEditableController",void 0),Ke([h()],We.prototype,"vegaTableSortController",void 0),Ke([h()],We.prototype,"vegaTableColGroupRenderer",void 0),Ke([h()],We.prototype,"vegaTableChildrenController",void 0),Ke([h()],We.prototype,"pageResizeObserverSlimmer",void 0),Ke([h()],We.prototype,"rowSelectionNotifySlimmer",void 0),Ke([h()],We.prototype,"rowExpandableNotifySlimmer",void 0),Ke([h()],We.prototype,"paddingXNotifySlimmer",void 0),Ke([h()],We.prototype,"rowClickableNotifySlimmer",void 0),Ke([h()],We.prototype,"scrollConfigNotifySlimmer",void 0),Ke([h()],We.prototype,"paginationEventPrevent",void 0),Ke([h()],We.prototype,"changeEventEmitter",void 0),Ke([h()],We.prototype,"selectChangeEventEmitter",void 0),Ke([h()],We.prototype,"selectAllChangeEventEmitter",void 0),Ke([h()],We.prototype,"rowClickEventEmitter",void 0),Ke([h()],We.prototype,"rowDividerNotifySlimmer",void 0),Ke([h()],We.prototype,"columnDividerNotifySlimmer",void 0),Ke([h()],We.prototype,"densityNotifySlimmer",void 0),Ke([h()],We.prototype,"isTemplateRenderModeNotifySlimmer",void 0),Ke([h()],We.prototype,"currentDataNotifySlimmer",void 0),Ke([h()],We.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),We.style=':host{display:block}table{width:100%;border-spacing:0}.vega-table-empty-description{text-align:center;padding:24px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-table-empty-description{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}table.v-table-fixed{table-layout:fixed}.vega-table-scrollable-container{overflow:auto}.vega-table-scrollable-container vega-table-head{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.vega-table-scrollable-container.scrolled vega-table-head.fixed-header{box-shadow:0px 4px 0px rgba(0, 0, 0, 0.1);}vega-form{display:contents}*::part(field-error-message){display:none !important}.vega-table-pagination-container{margin-top:24px}.vega-table-pagination-container.bottom-center{display:flex;justify-content:center}.vega-table-pagination-container.bottom-right{display:flex;justify-content:flex-end}.vega-table-pagination-container.bottom-left{display:flex;justify-content:flex-start}col.v-hidden{display:none}@media (min-width: 320px){col.S\\:v-table-column{display:table-column}}@media (min-width: 768px){col.M\\:v-table-column{display:table-column}}@media (min-width: 1024px){col.L\\:v-table-column{display:table-column}}@media (min-width: 1440px){col.XL\\:v-table-column{display:table-column}}';var ze=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const _e=class{constructor(e){a(this,e),this.globalSlimmers={},this.childChangeEventPrevent=new I([E],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new v}render(){return K(e(o,null,e("tbody",null,e("slot",null))),this.host)}get host(){return s(this)}};ze([u()],_e.prototype,"globalSlimmers",void 0),ze([h()],_e.prototype,"childChangeEventPrevent",void 0),ze([h()],_e.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_e.style=":host{display:contents}";const Pe=(e,t)=>e&&M(e)?`v-hidden ${e}:${t}`:"",Be=e=>{let t;switch(e){case"center":t="v-text-center";break;case"left":t="v-text-left";break;case"right":t="v-text-right";break;default:t=""}return t};class Ve extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"}]})}}!function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);l>3&&s&&Object.defineProperty(t,i,s)}([r({writable:!0})],Ve.prototype,"density",void 0);var $e=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const Ge=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableCellStateController=new Ve,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.getCellOverflowClass=()=>{switch(this.overflow){case"ellipsis":return"vega-table-cell-ellipsis";case"scroll":return"vega-table-cell-scroll"}}}render(){const t=Pe(this.breakpoint,"v-table-cell"),i=Be(this.textAlign),a=this.getCellOverflowClass(),l=[i,"vega-table-cell"];return H.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||l.push("break-word"),K(e(o,{class:k([`density-${N.formatCustom(this.density)}`,t]),style:{width:this.width}},e("td",{class:k(l),part:"cell"},e("div",{class:a},e("slot",null)))),this.host)}get host(){return s(this)}};$e([u()],Ge.prototype,"globalSlimmers",void 0),$e([h()],Ge.prototype,"vegaTableCellStateController",void 0),$e([h()],Ge.prototype,"pageResizeObserverSlimmer",void 0),$e([h()],Ge.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ge.style=':host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}.vega-table-cell{padding:12px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-table-cell{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-table-cell{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-table-cell{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-table-cell.break-word{word-break:break-word}td{display:block;padding:0px}td.v-text-center{text-align:center}td.v-text-left{text-align:left}td.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}.vega-table-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vega-table-cell-scroll{overflow:auto}';var Ie=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Xe extends n{render(){return e("tr",{class:{"vega-table-expanded-row":!0,expanded:this.expanded,checked:this.checked},key:`vega-table-expanded-row-${this.rowKey}`,"data-expanded-row-key":this.rowKey},e("td",null),e("td",{colSpan:this.colSpan,key:`${ae.expandRowSlotNamePrefix}${this.rowKey}`,class:"vega-table-expanded-row-slot-container"},e("slot",null)),e("td",null))}}Ie([r()],Xe.prototype,"rowKey",void 0),Ie([r()],Xe.prototype,"expanded",void 0),Ie([r()],Xe.prototype,"checked",void 0),Ie([r()],Xe.prototype,"colSpan",void 0);var Fe=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class He extends n{connectedCallback(){this.expandObserver=new R(this.isAcceptableTableExpandRowObserver.bind(this),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.expandObserver)}disconnectedCallback(){w.unregister(g,this.expandObserver)}isAcceptableTableExpandRowObserver(e){return"VEGA-TABLE"===e.host.tagName?"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table"):"VEGA-TABLE-ROW"===e.host.tagName?C(this.host,"vega-table")===C(e.host,"vega-table"):void 0}}function Ue(e){return"VEGA-TABLE-ROW"===e.host.tagName&&C(this.host,"vega-table")===C(e.host,"vega-table")}function qe(e){return"VEGA-TABLE"===e.host.tagName&&e.host===C(this.host,"vega-table")}Fe([r()],He.prototype,"host",void 0),Fe([r()],He.prototype,"rowKey",void 0),Fe([r({writable:!0})],He.prototype,"expanded",void 0),Fe([d("connectedCallback")],He.prototype,"connectedCallback",null),Fe([d("disconnectedCallback")],He.prototype,"disconnectedCallback",null);var Ye=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ze extends n{connectedCallback(){this.rowSelectionObserver=new R(Ue.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}disconnectedCallback(){w.unregister(m,this.rowSelectionObserver)}}Ye([r({writable:!0})],Ze.prototype,"checked",void 0),Ye([r()],Ze.prototype,"host",void 0),Ye([r()],Ze.prototype,"rowKey",void 0),Ye([d("connectedCallback")],Ze.prototype,"connectedCallback",null),Ye([d("disconnectedCallback")],Ze.prototype,"disconnectedCallback",null);var Je=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Qe extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"withMultipleSelection",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.withMultipleSelection="multiple"===t}else this.withMultipleSelection=!1}}]})}}Je([r()],Qe.prototype,"host",void 0),Je([r({writable:!0})],Qe.prototype,"withMultipleSelection",void 0),Je([r()],Qe.prototype,"vegaTableExpandRowColSpanController",void 0);var et=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class tt extends n{constructor(){super(...arguments),this.updateColSpan=()=>{this.colSpan=this.getVisibleColumnsNumber()+(this.withMultipleSelection?2:1)}}componentWillLoad(){this.updateColSpan()}watchCurrentBreakpoint(){this.updateColSpan()}watchWithMultipleSelection(){this.updateColSpan()}getVisibleColumnsNumber(){const e=C(this.host,"vega-table"),t=z(),i=e.children&&Array.from(e.children).filter((e=>{var t;return!(null===(t=e.getAttribute("slot"))||void 0===t?void 0:t.startsWith("vega-table-expand-row-"))})).length>0?e.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell"):e.shadowRoot.querySelectorAll("vega-table-row:nth-of-type(1) vega-table-cell");return Array.from(i).filter((e=>!e.breakpoint||"default"!==t&&_[t]>=_[e.breakpoint])).length}}et([r()],tt.prototype,"host",void 0),et([r({writable:!0})],tt.prototype,"colSpan",void 0),et([r()],tt.prototype,"withMultipleSelection",void 0),et([d("componentWillLoad")],tt.prototype,"componentWillLoad",null),et([d("watchCurrentBreakpoint")],tt.prototype,"watchCurrentBreakpoint",null),et([d("watchWithMultipleSelection")],tt.prototype,"watchWithMultipleSelection",null);var it=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const ot=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableExpandRowRenderer=new Xe,this.vegaTableExpandRowExpandController=new He,this.vegaTableExpandRowSelectionController=new Ze,this.vegaTableExpandRowStateController=new Qe,this.vegaTableExpandRowColSpanController=new tt,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.expanded=!1,this.checked=!1}watchCurrentBreakpoint(){}watchWithMultipleSelection(){}render(){return b(e("slot",null)),K(e(o,null,this.vegaTableExpandRowRenderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],withMultipleSelection:["watchWithMultipleSelection"]}}};it([u()],ot.prototype,"globalSlimmers",void 0),it([h()],ot.prototype,"vegaTableExpandRowRenderer",void 0),it([h()],ot.prototype,"vegaTableExpandRowExpandController",void 0),it([h()],ot.prototype,"vegaTableExpandRowSelectionController",void 0),it([h()],ot.prototype,"vegaTableExpandRowStateController",void 0),it([h()],ot.prototype,"vegaTableExpandRowColSpanController",void 0),it([h()],ot.prototype,"pageResizeObserverSlimmer",void 0),it([h()],ot.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ot.style=":host{display:contents}:host([data-striped=striped]) .vega-table-expanded-row:not(.checked) td{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.v-hidden){display:none}.vega-table-expanded-row{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-table-expanded-row:not(.expanded){display:none}.vega-table-expanded-row.expanded td{border-bottom-width:1px;border-top-width:0px;border-right-width:0px;border-left-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1));padding:0px;vertical-align:middle}.vega-table-expanded-row.expanded td:first-of-type{border-left-width:1px;border-bottom-width:1px;border-top-left-radius:12px;border-bottom-left-radius:12px;border-top-left-radius:0px}.vega-table-expanded-row.expanded td:last-of-type{border-right-width:1px;border-bottom-width:1px;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-right-radius:0px}.vega-table-expanded-row.expanded td.vega-table-expanded-row-slot-container{border-top-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}.vega-table-expanded-row.expanded.checked{background-color:rgba(var(--v-bg-table-row-selected-expanded, 229, 239, 255, 1))}";var at=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class lt extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"fixed",parentStateName:"scrollConfig",callback:e=>{this.fixed=e&&e.maxHeight&&!1!==e.fixedHeader}}]})}}at([r()],lt.prototype,"host",void 0),at([r({writable:!0})],lt.prototype,"fixed",void 0);var st=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const rt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadStateController=new lt,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.headCellEventPrevent=new I([E],(()=>this.host)),this.fixed=!1,this.handleTableHeadRefChange=e=>{this.tableHeadRef&&U.removeZIndex(this.tableHeadRef,"base"),this.fixed&&U.setZIndex(e,"base"),this.tableHeadRef=e}}disconnectedCallback(){U.removeZIndex(this.tableHeadRef,"base")}render(){return K(e(o,{class:{"fixed-header":this.fixed},ref:e=>this.handleTableHeadRefChange(e)},e("thead",null,e("slot",null))),this.host)}get host(){return s(this)}};st([u()],rt.prototype,"globalSlimmers",void 0),st([h()],rt.prototype,"vegaTableHeadStateController",void 0),st([h()],rt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),st([h()],rt.prototype,"headCellEventPrevent",void 0),rt.style=":host{display:table-header-group;border-top-right-radius:12px;border-bottom-right-radius:12px;border-top-left-radius:12px;border-bottom-left-radius:12px}:host thead{display:contents}:host(.fixed-header){position:sticky;top:0px}";class nt extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"density",parentStateName:"density"}]})}}!function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);l>3&&s&&Object.defineProperty(t,i,s)}([r({writable:!0})],nt.prototype,"density",void 0);var ct=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const dt=class{constructor(t){a(this,t),this.vegaClick=l(this,"vegaClick",7),this.click=l(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=X(dt,j),this.vegaTableHeadCellStateController=new nt,this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.handleSort=e=>{this.sortOrder=this.getNextSortOrder(this.sortOrder),this.clickEventEmitter.emit({sortOrder:this.sortOrder},e)},this.renderSortIconButton=()=>{if(this.sorter)return e("div",{class:"vega-table-column-sorter"},e("span",{class:this.isSortActive("asc")?"v-text-link":""},e("vega-icon",{icon:Y.getIconKey("chevron-up"),size:"size-8"})),e("span",{class:this.isSortActive("desc")?"v-text-link":""},e("vega-icon",{icon:Y.getIconKey("chevron-down"),size:"size-8"})))},this.isSortActive=e=>this.sortOrder===e,this.getNextSortOrder=e=>{let t;switch(e){case"desc":t="asc";break;case"asc":t=null;break;default:t="desc"}return t}}render(){const t=Be(this.textAlign),i=this.sorter?{role:"button",onKeyDown:q(),tabIndex:0,onClick:e=>this.handleSort(e)}:null,a=["vega-table-cell",this.sorter?"sortable":null];return H.isEnabled("VEGA_TABLE.ENABLE_NEW_CELL_BREAK_WORDS_STYLE")||a.push("break-word"),K(e(o,{class:{[`density-${N.formatCustom(this.density)}`]:!0,[Pe(this.breakpoint,"v-table-cell")]:!0},style:{width:this.width}},e("th",Object.assign({class:k(a)},i),e("div",{class:"vega-table-column"},e("span",{class:`vega-table-column-label ${t}`},e("slot",null)),this.renderSortIconButton()))),this.host)}get host(){return s(this)}};Y.register({"chevron-up":Z,"chevron-down":J}),ct([u()],dt.prototype,"globalSlimmers",void 0),ct([h()],dt.prototype,"clickEventEmitter",void 0),ct([h()],dt.prototype,"vegaTableHeadCellStateController",void 0),ct([h()],dt.prototype,"pageResizeObserverSlimmer",void 0),ct([h()],dt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),dt.style=':host(.v-hidden){display:none}@media (min-width: 320px){:host(.S\\:v-table-cell){display:table-cell}}@media (min-width: 768px){:host(.M\\:v-table-cell){display:table-cell}}@media (min-width: 1024px){:host(.L\\:v-table-cell){display:table-cell}}@media (min-width: 1440px){:host(.XL\\:v-table-cell){display:table-cell}}:host{display:table-cell;background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:left;vertical-align:middle}th{display:block;padding:0px;padding:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){th{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}th.break-word{word-break:break-word}th.vega-table-cell.sortable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vega-table-column{display:flex;align-items:center;justify-content:space-between}.vega-table-column-sorter{display:flex;flex-direction:column;gap:4px;margin-left:4px;cursor:pointer;outline:none}.vega-table-column-sorter span{display:inline-flex}.vega-table-column-sorter span.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.vega-table-column-label{flex-grow:1;min-width:0px}.vega-table-column-label.v-text-center{text-align:center}.vega-table-column-label.v-text-left{text-align:left}.vega-table-column-label.v-text-right{text-align:right}:host(.density-default) .vega-table-cell{padding:12px}:host(.density-compact) .vega-table-cell{padding:4px}:host(.density-relaxed) .vega-table-cell{padding:16px}';var ht=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class pt extends n{constructor(){super(...arguments),this.renderHeaderSelectionCell=()=>{if("multiple"===this.selectionType)return e("th",{class:"vega-table-selection-column"},!this.hideSelectAll&&e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",disabled:this.isEmptyTable||this.selectAllDisabled,checked:this.checkedAll,ref:e=>{S.addUniqueObserverToNode(e,E,this.handleSelectAll)}})))},this.handleSelectAll=e=>{if("vegaChange"===e.eventName){const t=e.detail;L(t)&&t!==this.checkedAll&&w.notify(y,{host:this.host,checked:t})}},this.renderHeaderExpandableCell=()=>this.expandable&&e("th",{class:"vega-table-expand-action-column"})}connectedCallback(){}disconnectedCallback(){}componentDidLoad(){}render(){var t,i;return e("tr",null,e("th",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderHeaderSelectionCell(),e("slot",null),this.renderHeaderExpandableCell(),e("th",{style:{width:null===(i=this.paddingX)||void 0===i?void 0:i[1]}}))}}ht([r()],pt.prototype,"host",void 0),ht([r()],pt.prototype,"paddingX",void 0),ht([r()],pt.prototype,"selectionType",void 0),ht([r()],pt.prototype,"hideSelectAll",void 0),ht([r()],pt.prototype,"selectAllDisabled",void 0),ht([r()],pt.prototype,"checkedAll",void 0),ht([r()],pt.prototype,"expandable",void 0),ht([r()],pt.prototype,"isEmptyTable",void 0),ht([r()],pt.prototype,"isTemplateRenderMode",void 0),ht([d("connectedCallback")],pt.prototype,"connectedCallback",null),ht([d("disconnectedCallback")],pt.prototype,"disconnectedCallback",null),ht([d("componentDidLoad")],pt.prototype,"componentDidLoad",null);var bt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class vt extends n{connectedCallback(){this.initRowSelectionAllObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver)}initRowSelectionAllObserver(){this.rowSelectionAllObserver=new R(qe.bind({host:this.host}),(e=>{this.checkedAll=e.noneChecked||!1!==e.checked?e.checked:null})),w.register(y,this.rowSelectionAllObserver)}}bt([r()],vt.prototype,"host",void 0),bt([r({writable:!0})],vt.prototype,"checkedAll",void 0),bt([d("connectedCallback")],vt.prototype,"connectedCallback",null),bt([d("disconnectedCallback")],vt.prototype,"disconnectedCallback",null);var ut=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class ft extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{this.updateSelectionType(e)}},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"},{subStateName:"isTemplateRenderMode",parentStateName:"isTemplateRenderMode"},{subStateName:"isEmptyTable",parentStateName:"currentData",callback:e=>{this.isEmptyTable=0===e.length}}]}),this.updateSelectionType=e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}}}ut([r()],ft.prototype,"host",void 0),ut([r({writable:!0})],ft.prototype,"expandable",void 0),ut([r({writable:!0})],ft.prototype,"selectionType",void 0),ut([r({writable:!0})],ft.prototype,"paddingX",void 0),ut([r({writable:!0})],ft.prototype,"columnDivider",void 0),ut([r({writable:!0})],ft.prototype,"density",void 0),ut([r({writable:!0})],ft.prototype,"isTemplateRenderMode",void 0),ut([r({writable:!0})],ft.prototype,"isEmptyTable",void 0);var wt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const gt=class{constructor(e){a(this,e),this.globalSlimmers={},this.vegaTableHeadRowStateController=new ft,this.vegaTableHeadRowRenderer=new pt,this.vegaTableHeadRowController=new vt,this.headCellEventPrevent=new I([j],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z(),this.expandable=!1}render(){return b(e("slot",null)),K(e(o,{class:{"column-divider":this.columnDivider,[`density-${N.formatCustom(this.density)}`]:!0}},this.vegaTableHeadRowRenderer.render()),this.host)}get host(){return s(this)}};wt([u()],gt.prototype,"globalSlimmers",void 0),wt([h()],gt.prototype,"vegaTableHeadRowStateController",void 0),wt([h()],gt.prototype,"vegaTableHeadRowRenderer",void 0),wt([h()],gt.prototype,"vegaTableHeadRowController",void 0),wt([h()],gt.prototype,"headCellEventPrevent",void 0),wt([h()],gt.prototype,"pageResizeObserverSlimmer",void 0),wt([h()],gt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),gt.style=":host{display:table-row}:host tr{display:contents}th{background-color:rgba(var(--v-bg-table-header, 240, 243, 247, 1));padding:0px;vertical-align:middle}th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.column-divider) ::slotted(vega-table-head-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}:host(.density-default) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-compact) th:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) th:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-relaxed) th:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) th:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";var mt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class yt extends n{constructor(){super(...arguments),this.renderRowSelection=()=>{if("multiple"===this.selectionType)return e("td",{class:"vega-table-selection-column"},e("div",{class:"vega-table-checkbox-wrapper"},e("vega-checkbox",{size:"small",checked:this.checked,onClick:this.stopRowSelectionPropagation,ref:e=>{S.addUniqueObserverToNode(e,E,this.onRowSelectionChange)}})))},this.renderExpandIcon=()=>this.expandable&&e("td",{class:"vega-table-expand-action-column"},e("div",{class:"vega-table-expand-icon-wrapper"},e("vega-icon",{icon:Y.getIconKey("chevron-down"),color:"text-link",onClick:this.onExpandIconClick}))),this.onRowClick=()=>{this.vegaTableRowClickController.handleRowClick()},this.onRowSelectionChange=e=>{"vegaChange"===e.eventName&&this.vegaTableRowSelectionController.handleRowSelect(e.detail)},this.stopRowSelectionPropagation=e=>{e.stopPropagation()},this.onExpandIconClick=async e=>{e.stopPropagation(),this.vegaTableRowExpandController.handleExpandIconClick()}}render(){var t,o;return e(i,null,this.renderExpandRowSpace(this.rowKey),e("tr",{class:{"vega-table-row":!0,checked:this.checked,clickable:this.clickable,"current-clicked-row":this.clicked,"expand-row":this.expanded},onClick:this.clickable?this.onRowClick:null},e("td",{style:{width:null===(t=this.paddingX)||void 0===t?void 0:t[0]}}),this.renderRowSelection(),e("slot",null),this.renderExpandIcon(),e("td",{style:{width:null===(o=this.paddingX)||void 0===o?void 0:o[1]}})))}renderExpandRowSpace(t){return this.expandable&&e("tr",{key:`vega-table-expand-row-space-${t}`,class:"expand-row-space"})}}Y.register({"chevron-down":J}),mt([r()],yt.prototype,"host",void 0),mt([r()],yt.prototype,"rowKey",void 0),mt([r()],yt.prototype,"checked",void 0),mt([r()],yt.prototype,"clickable",void 0),mt([r()],yt.prototype,"clicked",void 0),mt([r()],yt.prototype,"expanded",void 0),mt([r()],yt.prototype,"paddingX",void 0),mt([r()],yt.prototype,"expandable",void 0),mt([r()],yt.prototype,"vegaClick",void 0),mt([r()],yt.prototype,"selectionType",void 0),mt([r()],yt.prototype,"vegaTableRowSelectionController",void 0),mt([r()],yt.prototype,"vegaTableRowExpandController",void 0),mt([r()],yt.prototype,"vegaTableRowClickController",void 0);var xt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Rt extends n{constructor(){super(...arguments),this.handleRowSelect=e=>{this.checked=e,w.notify(m,{host:this.host,checked:e,rowKey:this.rowKey})}}connectedCallback(){this.initRowSelectionObserver()}disconnectedCallback(){w.unregister(y,this.rowSelectionAllObserver),w.unregister(m,this.rowSelectionObserver)}setChecked(e){this.checked=e}initRowSelectionObserver(){this.rowSelectionAllObserver=new R(qe.bind(this),(e=>{(e.checked||!1===e.checked&&e.noneChecked)&&(this.checked=e.checked)})),w.register(y,this.rowSelectionAllObserver),this.rowSelectionObserver=new R(qe.bind(this),(e=>{e.rowKey===this.rowKey&&(this.checked=e.checked)})),w.register(m,this.rowSelectionObserver)}}xt([r()],Rt.prototype,"host",void 0),xt([r()],Rt.prototype,"selectionType",void 0),xt([r()],Rt.prototype,"rowKey",void 0),xt([r({writable:!0})],Rt.prototype,"checked",void 0),xt([d("connectedCallback")],Rt.prototype,"connectedCallback",null),xt([d("disconnectedCallback")],Rt.prototype,"disconnectedCallback",null);var St=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ct extends n{connectedCallback(){this.initRowExpandObserver()}disconnectedCallback(){w.unregister(g,this.rowExpandObserver)}handleExpandIconClick(){this.expanded=!this.expanded,w.notify(g,{host:this.host,rowKey:this.rowKey,expanded:this.expanded})}initRowExpandObserver(){this.rowExpandObserver=new R(qe.bind({host:this.host}),(e=>{e.rowKey===this.rowKey&&(this.expanded=e.expanded)})),w.register(g,this.rowExpandObserver)}}St([r()],Ct.prototype,"host",void 0),St([r()],Ct.prototype,"rowKey",void 0),St([r()],Ct.prototype,"expandable",void 0),St([r({writable:!0})],Ct.prototype,"expanded",void 0),St([d("connectedCallback")],Ct.prototype,"connectedCallback",null),St([d("disconnectedCallback")],Ct.prototype,"disconnectedCallback",null);var kt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class jt extends n{connectedCallback(){this.initRowClickObserver()}disconnectedCallback(){w.unregister(x,this.rowClickObserver)}handleRowClick(){w.notify(x,{host:this.host,rowKey:this.rowKey}),this.clickEventEmitter.emit({rowKey:this.rowKey})}initRowClickObserver(){this.rowClickObserver=new R(Ue.bind(this),(e=>{this.clicked=e.host===this.host,"single"===this.selectionType&&this.vegaTableRowSelectionController.setChecked(e.host===this.host&&!this.checked)})),w.register(x,this.rowClickObserver)}}kt([r()],jt.prototype,"host",void 0),kt([r()],jt.prototype,"rowKey",void 0),kt([r({writable:!0})],jt.prototype,"clicked",void 0),kt([r()],jt.prototype,"checked",void 0),kt([r()],jt.prototype,"selectionType",void 0),kt([r()],jt.prototype,"vegaClick",void 0),kt([r()],jt.prototype,"vegaTableRowSelectionController",void 0),kt([r()],jt.prototype,"clickEventEmitter",void 0),kt([d("connectedCallback")],jt.prototype,"connectedCallback",null),kt([d("disconnectedCallback")],jt.prototype,"disconnectedCallback",null);var Et=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};class Ot extends G{constructor(){super({parent:"vega-table",subStates:[{subStateName:"expandable",parentStateName:"rowExpandable"},{subStateName:"clickable",parentStateName:"rowClickable"},{subStateName:"paddingX",parentStateName:"paddingX",callback:e=>{const t=C(this.host,"vega-table");0!==t.dataSource.length&&0!==t.columns.length||(this.paddingX=e)}},{subStateName:"selectionType",parentStateName:"rowSelection",callback:e=>{if(e){const{type:t="multiple"}=e;this.selectionType=t}else this.selectionType=null}},{subStateName:"rowDivider",parentStateName:"rowDivider"},{subStateName:"columnDivider",parentStateName:"columnDivider"},{subStateName:"density",parentStateName:"density"}]})}watchSelectionType(){this.updateClickable()}handleComponentWillLoad(){this.updateClickable()}updateClickable(){this.selectionType&&(this.clickable="single"===this.selectionType||this.clickable)}}Et([r()],Ot.prototype,"host",void 0),Et([r({writable:!0})],Ot.prototype,"expandable",void 0),Et([r({writable:!0})],Ot.prototype,"clickable",void 0),Et([r({writable:!0})],Ot.prototype,"paddingX",void 0),Et([r({writable:!0})],Ot.prototype,"selectionType",void 0),Et([r({writable:!0})],Ot.prototype,"rowDivider",void 0),Et([r({writable:!0})],Ot.prototype,"columnDivider",void 0),Et([r({writable:!0})],Ot.prototype,"density",void 0),Et([d("watchSelectionType")],Ot.prototype,"watchSelectionType",null),Et([d("componentWillLoad")],Ot.prototype,"handleComponentWillLoad",null);var Tt=function(e,t,i,o){var a,l=arguments.length,s=l<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(s=(l<3?a(s):l>3?a(t,i,s):a(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const Dt=class{constructor(e){a(this,e),this.vegaClick=l(this,"vegaClick",7),this.click=l(this,"click",7),this.globalSlimmers={},this.vegaTableRowRenderer=new yt,this.vegaTableRowSelectionController=new Rt,this.vegaTableRowExpandController=new Ct,this.vegaTableRowClickController=new jt,this.vegaTableRowStateController=new Ot,this.clickEventEmitter=X(Dt,j),this.checkboxValueChangeEventPrevent=new I([j],(()=>this.host),void 0,!0),this.pageResizeObserverSlimmer=new V,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.currentBreakpoint=z()}watchSelectionType(){}render(){return b(e("slot",null)),K(e(o,{class:{"row-divider":this.rowDivider,"column-divider":this.columnDivider,[`density-${N.formatCustom(this.density)}`]:!0}},this.vegaTableRowRenderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{selectionType:["watchSelectionType"]}}};Tt([u()],Dt.prototype,"globalSlimmers",void 0),Tt([h()],Dt.prototype,"vegaTableRowRenderer",void 0),Tt([h()],Dt.prototype,"vegaTableRowSelectionController",void 0),Tt([h()],Dt.prototype,"vegaTableRowExpandController",void 0),Tt([h()],Dt.prototype,"vegaTableRowClickController",void 0),Tt([h()],Dt.prototype,"vegaTableRowStateController",void 0),Tt([h()],Dt.prototype,"clickEventEmitter",void 0),Tt([h()],Dt.prototype,"checkboxValueChangeEventPrevent",void 0),Tt([h()],Dt.prototype,"pageResizeObserverSlimmer",void 0),Tt([h()],Dt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Dt.style=":host{display:contents}:host(.v-hidden){display:none}td{padding:0px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));vertical-align:middle}td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host([data-striped=striped]) .vega-table-row:not(.checked):not(.clickable:hover) td,:host([data-striped=striped]) .vega-table-row:not(.checked):not(.clickable:hover) ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.checked td,.checked ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-table-selected-row, 204, 223, 255, 1))}:not(.checked).clickable:hover{cursor:pointer}:not(.checked).clickable:hover td,:not(.checked).clickable:hover ::slotted(vega-table-cell){background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}.vega-table-checkbox-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper{display:flex;align-items:center;justify-content:center}.vega-table-row .vega-table-expand-icon-wrapper vega-icon{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;cursor:pointer}.vega-table-row.expand-row .vega-table-expand-icon-wrapper vega-icon{transform:rotate(180deg)}:host tr.expand-row td,:host tr.expand-row ::slotted(vega-table-cell){border-top-width:1px;border-left-width:0px;border-right-width:0px;border-bottom-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-input-field, 171, 198, 216, 1))}:host tr.expand-row td:first-of-type{border-left-width:1px;border-top-width:1px;border-bottom-left-radius:0px}:host tr.expand-row td:last-of-type{border-right-width:1px;border-top-width:1px;border-bottom-right-radius:0px}tr.expand-row-space{display:block;padding-top:8px}:host(.row-divider:not(:last-of-type)) td,:host(.row-divider:not(:last-of-type)) ::slotted(vega-table-cell){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-bottom-width:1px;border-bottom-style:solid}:host(.row-divider:not(:last-of-type)) td:first-of-type,:host(.row-divider:not(:last-of-type)) td:last-of-type{border-radius:0px}:host(.column-divider) ::slotted(vega-table-cell:not(:last-of-type)){border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));border-right-width:1px;border-right-style:solid}:host(.density-default) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-default) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-default) tr.expand-row-space{display:block;padding-top:8px}:host(.density-compact) td:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.density-compact) td:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host(.density-compact) tr.expand-row-space{display:block;padding-top:4px}:host(.density-relaxed) td:first-of-type{border-top-left-radius:12px;border-bottom-left-radius:12px}:host(.density-relaxed) td:last-of-type{border-top-right-radius:12px;border-bottom-right-radius:12px}:host(.density-relaxed) tr.expand-row-space{display:block;padding-top:12px}.vega-table-expand-action-column{width:40px;min-width:40px}.vega-table-selection-column{width:40px;min-width:40px}";export{We as vega_table,_e as vega_table_body,Ge as vega_table_cell,ot as vega_table_expand_row,rt as vega_table_head,dt as vega_table_head_cell,gt as vega_table_head_row,Dt as vega_table_row}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,H as a,g as r}from"./p-9777b1c1.js";import{M as n,a as s}from"./p-b956e721.js";import{R as o}from"./p-d962b340.js";import{s as p}from"./p-b81bd0bb.js";import{I as h}from"./p-018d77cc.js";import{V as d,I as l}from"./p-ae778ca4.js";import{F as x}from"./p-7acd23c3.js";import{b as g}from"./p-2fa3841b.js";import{C as f}from"./p-bf95b189.js";import{c as m}from"./p-c779ed1f.js";import{e as c,t as b}from"./p-280a6d94.js";import{C as v}from"./p-ead9867b.js";import"./p-0bb29d98.js";import"./p-0fd9f03f.js";import"./p-320642bd.js";import"./p-469bc36e.js";import"./p-d3f1d3dd.js";import"./p-44f4924b.js";import"./p-cb13b4e6.js";import"./p-3542f8fe.js";import"./p-3c8b2105.js";import"./p-1ced3ae5.js";import"./p-56681feb.js";import"./p-69b28805.js";import"./p-344ee7cb.js";import"./p-264c95ab.js";import"./p-f1ecbe90.js";import"./p-d5841466.js";import"./p-639fa6c7.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:e=>!1===e.autoValidation}];var w=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const y=class{constructor(a){e(this,a),this.vegaChange=t(this,"vegaChange",7),this.change=t(this,"change",7),this.vegaBlur=t(this,"vegaBlur",7),this.blur=t(this,"blur",7),this.globalSlimmers={},this.formFieldController=new x({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new o:null},{propertyName:"minLength",ruleFactory:e=>e?new n({minStrLength:e}):null},{propertyName:"maxLength",ruleFactory:e=>e?new s({maxStrLength:e}):null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.textareaRef]}),this.changeEventEmitter=m(y,c),this.blurEventEmitter=m(y,b),this.textareaEventPrevent=new v([c],(()=>this.inputContainerRef)),this.vegaComponentUsageRuntimeMetricsSlimmer=new d(u),this.currentCharCount=0,this.placeholder="",this.hint="",this.disabled=!1,this.label="",this.showCounter=!1,this.value="",this.isValid=null,this.autoValidation=!0,this.required=!1,this.maxLength=null,this.minLength=null,this.resizable=!0,this.validationRules=[],this.renderTextareaContainer=()=>i("div",{class:{"vega-textarea-container":!0,"vega-textarea-not-resizable":!this.resizable},ref:e=>this.inputContainerRef=e},i("textarea",{rows:4,placeholder:this.placeholder,disabled:this.disabled,required:this.required,ref:this.setTextareaRef,maxLength:this.maxLength,minLength:this.minLength,value:this.value,onBlur:this.handleTextareaBlur,"aria-label":this.label||"No label defined"}),this.showCounter&&this.renderCharacterCounter()),this.renderHintMessage=()=>i("vega-text",null,this.hint),this.renderCharacterCounter=()=>i("div",{class:{"vega-textarea-counter":!0,"counter-exceed-max-length":this.isExceedMaxLength(this.value,this.maxLength)}},i("span",{id:"current"},this.currentCharCount),null!=this.maxLength&&this.renderMaxLengthNumber()),this.renderMaxLengthNumber=()=>i("span",{id:"maximum"},"/",this.maxLength),this.setTextareaRef=e=>{e&&this.textareaRef!==e&&(this.textareaRef=e)},this.inputFocus=()=>{this.textareaRef.focus()},this.handleTextareaBlur=e=>{this.blurEventEmitter.emit(void 0,e)},this.isExceedMaxLength=(e,t)=>null!=t&&e.length>t}watchValue(e){this.changeEventEmitter.emit(e),this.textareaRef.value!==this.value&&(this.textareaRef.value=this.value),e&&(this.currentCharCount=e.length),f.notify(g,{host:this.host,detail:e})}watchValidationRules(){}componentWillLoad(){this.currentCharCount=this.value.length}handleValueTextarea(){this.value=this.textareaRef.value,this.currentCharCount=this.value.length}render(){return p(i(a,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderTextareaContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{onClick:this.inputFocus,"is-field-required":this.required,disabled:this.disabled,label:this.label})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};w([l()],y.prototype,"globalSlimmers",void 0),w([h()],y.prototype,"formFieldController",void 0),w([h()],y.prototype,"changeEventEmitter",void 0),w([h()],y.prototype,"blurEventEmitter",void 0),w([h()],y.prototype,"textareaEventPrevent",void 0),w([h()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=':host{display:inline-block;width:100%;text-align:left}:host .vega-textarea-container{display:flex;position:relative;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;overflow:hidden;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));min-height:50px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-container{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){:host .vega-textarea-container{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){:host .vega-textarea-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host textarea{display:block;position:relative;padding-top:12px;padding-right:16px;padding-bottom:32px;padding-left:16px;width:100%;resize:vertical;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:8px;outline:2px solid transparent;outline-offset:2px;border-style:none;overflow:auto;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));min-height:48px}@media screen and (min-width: 768px) and (max-width: 1023px){:host textarea{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){:host textarea{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){:host textarea{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-textarea-container.vega-textarea-not-resizable{resize:none}:host .vega-textarea-container.vega-textarea-not-resizable textarea{resize:none}:host vega-field-label{margin-bottom:8px}:host .vega-textarea-counter{position:absolute;bottom:8px;right:8px;display:flex;padding-left:4px;padding-right:4px;padding-top:2px;padding-bottom:2px;border-radius:4px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));background-color:rgba(var(--v-bg-textarea-count, 4, 4, 28, 0.6))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-textarea-counter{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-counter.counter-exceed-max-length{background-color:rgba(var(--v-bg-textarea-counter-exceed-max-length, 214, 46, 81))}:host textarea::placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-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){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host vega-text{padding-left:8px;padding-right:8px;padding-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host vega-text{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-textarea-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-textarea-container:focus-within{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .vega-textarea-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-textarea-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-textarea-container.error:focus-within{border:1px solid rgba(var(--v-border-input-field-danger-focus, 233, 71, 104, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-input-danger-focus, 230, 50, 87, 0.25))}:host(.disabled) textarea{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}:host(.disabled) .vega-textarea-container{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host .vega-hidden{display:none}';export{y as vega_textarea}
@@ -0,0 +1 @@
1
+ import{a as t,V as e,I as s,M as i}from"./p-018d77cc.js";import{c as r}from"./p-0bb29d98.js";import{C as o}from"./p-bf95b189.js";import{d as n,O as h,D as l}from"./p-0fd9f03f.js";import{c as a,d as c,b as d,e as u,F as f,f as m,g as v}from"./p-2fa3841b.js";import{f as b,i as p}from"./p-320642bd.js";import{i as R,g}from"./p-469bc36e.js";import{c as y}from"./p-d3f1d3dd.js";import{V as w,a as j}from"./p-44f4924b.js";import{P as O}from"./p-cb13b4e6.js";import{M as E}from"./p-1ced3ae5.js";import{A as F}from"./p-56681feb.js";class I{constructor(t){this.rule=t}getStatus(t,e,s){return{canEvaluate:this.rule.canEvaluate(t,e,s),isAsync:R(this.rule.evaluate)}}shouldShowError(t,e){try{return this.rule.shouldShowError?this.rule.shouldShowError(t,e):this.defaultShouldShowError(t)}catch(t){return!1}}handle(t){try{return this.rule.evaluate(t)}catch(t){return{isValid:!0,message:""}}}defaultShouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}}class V{constructor(){this.handlers=[],this.processId=""}checkIncludesAsyncRuleHandler(t,e,s){return!!this.handlers.find((i=>{const r=i.getStatus(t,e,s);return r.canEvaluate&&r.isAsync}))}setHandlersByRules(t){this.handlers=t&&t.length?t.map((t=>new I(t))):[]}async process(t,e,s,i,r){const o=this.preProcess();let n;for(const i of this.handlers){if(o!==this.processId)break;const r=i.getStatus(t,e,s);if(!r.canEvaluate)continue;let h;if(r.isAsync)try{h=await i.handle(t)}catch(t){}else h=i.handle(t);if(h&&!h.isValid){const t=i.shouldShowError(e,s);n=Object.assign(Object.assign({},h),{shouldShowError:t});break}}return this.postProcess(o,i,n,r),!n}preProcess(){const t=g();return this.processId=t,t}postProcess(t,e,s,i){this.processId===t&&i(e,s)}}class C{run(t){const e=t.nextElementSibling;return e&&e.querySelector(".vega-error")?e.querySelector(".vega-error"):null}}class k{run(t){let e=t.nextElementSibling;return e&&!e.classList.contains("vega-error")&&(e=document.createElement("label"),e.classList.add("vega-error"),e.setAttribute("part","field-error-message"),t.after(e)),e}}class A{run(t){let e=t.nextElementSibling;return e||(e=document.createElement("label"),e.classList.add("vega-error"),e.setAttribute("part","field-error-message"),t.after(e)),e}}var S=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class L extends e{constructor(){super(...arguments),this.fieldErrorUiControllerStrategies=[new C,new k,new A]}applyInputInvalidUI(t){const e=this.getInputElementContainer();if(t&&e){const s=this.getErrorContainer(e);s.innerHTML=t,s.classList.remove("vega-hidden"),e.classList.add("error"),o.notify(n.getSubject(this.host,w),{host:this.host,showError:!0})}}resetInputInvalidUI(){const t=this.getInputElementContainer();t&&(this.getErrorContainer(t).classList.add("vega-hidden"),t.classList.remove("error"),o.notify(n.getSubject(this.host,w),{host:this.host,showError:!1}))}getInputElementContainer(){return this.options&&this.options.inputContainerGetter?this.options.inputContainerGetter():null}getErrorContainer(t){for(const e of this.fieldErrorUiControllerStrategies){const s=e.run(t);if(s)return s}}}S([t()],L.prototype,"host",void 0),S([t()],L.prototype,"options",void 0);var M=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class T{constructor(t,e,s,i){var r,n;this.fieldErrorUIController=new L,this.resizeObserverSlimmer=y(T,O,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"}],[{callback:t=>{const e=this.isVisible,s=t[0].contentRect.height>0;this.isVisible=s,this.isAutoValidationEnabled()&&b(this.host,"vega-form")&&e!==s&&this.valid(["visible"])},target:()=>this.host}]),this.defaultRules=[],this.additionalRules=[],this.listeners=[],this.isTouched=!1,this.isModified=!1,this.isVisible=!1,this.formFieldValidationRuleHandlerChain=new V,this.hostChildAddedBlurEventMap=new WeakMap,this.handleValidationResult=(t,e)=>{let s=!0;return e?("rule"===t?e.shouldShowError?this.fieldErrorUIController.applyInputInvalidUI(e.message):this.fieldErrorUIController.resetInputInvalidUI():t?this.fieldErrorUIController.applyInputInvalidUI(e.message):this.fieldErrorUIController.resetInputInvalidUI(),s=!1):this.fieldErrorUIController.resetInputInvalidUI(),this.invokeListeners(s),o.notify(a,{host:this.host,detail:s}),s},this.setupTouchedListener=()=>{this.getTouchableAreaElements().filter((t=>!0!==this.hostChildAddedBlurEventMap.get(t))).forEach((t=>{t.addEventListener("blur",(()=>{this.updateIsTouched(!0)})),this.hostChildAddedBlurEventMap.set(t,!0)}))},this.defaultRules=t||[],this.host=e,this.defaultValue=s,this.options=i,this.initDisabledAttrObserver(),this.connectResizeObserver(),this.initFormResetObserver(),null===(n=(r=this.host).componentOnReady)||void 0===n||n.call(r).then((()=>{this.didRender()})),this.setupModifiedListener(),this.listenHostElementKeydown(),this.updateValidationHandlers()}async validate(t){return await this.valid([],t)}addListener(t){this.listeners.push(t)}getRules(){return[...this.defaultRules,...this.additionalRules]}setDefaultRules(t){this.defaultRules=t,this.updateValidationHandlers()}setAdditionalRules(t){this.additionalRules=t,this.updateValidationHandlers()}destroy(){o.notify(c,{host:this.host}),this.unregisterFormResetObserver(),o.unregister(d,this.hostValueChangeObserver),this.hostChildrenObserver&&this.hostChildrenObserver.disconnect()}connectResizeObserver(){}updateValidationHandlers(){this.formFieldValidationRuleHandlerChain.setHandlersByRules(this.getRules())}async valid(t,e="rule"){const s=this.getStatus(),i=this.host.value;return this.formFieldValidationRuleHandlerChain.checkIncludesAsyncRuleHandler(i,s,t)&&o.notify(a,{host:this.host,detail:null}),await this.formFieldValidationRuleHandlerChain.process(i,s,t,e,this.handleValidationResult)}invokeListeners(t){this.listeners.forEach((e=>e.callback(t)))}getStatus(){return{touched:this.isTouched,modified:this.isModified,disabled:this.host.disabled,visible:this.isVisible}}updateIsTouched(t){const e=this.isTouched;this.isTouched=t,this.isAutoValidationEnabled()&&this.valid(e===t?[]:["touched"])}updateIsModified(t){const e=this.isModified;this.isModified=t,this.isAutoValidationEnabled()&&this.valid(e===t?[]:["modified"])}initDisabledAttrObserver(){this.disabledAttrObserver=new MutationObserver((()=>{this.isAutoValidationEnabled()&&this.valid(["disabled"])})),this.disabledAttrObserver.observe(this.host,{attributes:!0,attributeFilter:["disabled"]})}canAcceptFormResetOperation(t){return b(this.host,"vega-form")===t.host}unregisterFormResetObserver(){o.unregister(u,this.formResetTriggeredObserver)}monitorTouchedListener(){const t=this.getInputContainerElements();t&&(this.hostChildrenObserver=new MutationObserver((()=>{this.setupTouchedListener()})),this.hostChildrenObserver.observe(t,{childList:!0,subtree:!0})),this.setupTouchedListener()}getTouchableAreaElements(){return this.options&&this.options.touchableAreaGetter?this.options.touchableAreaGetter():[]}getInputContainerElements(){return this.options&&this.options.inputContainerGetter?this.options.inputContainerGetter():null}setupModifiedListener(){this.hostValueChangeObserver=new h(this.isCurrentTarget.bind(this),(()=>this.updateIsModified(!0))),o.register(d,this.hostValueChangeObserver)}isCurrentTarget(t){return this.host===t.host}async reset(t){var e,s;if(this.shouldVisitElement(this.host,null===(e=t.option)||void 0===e?void 0:e.skipDisabled,null===(s=t.option)||void 0===s?void 0:s.skipInvisible)){const e=t.defaultValueMap,s=this.host.dataset.vegaForm,i=null==e[s]?this.getDefaultValue():e[s];"function"==typeof this.host.setValue?await this.host.setValue(i):this.host.value=i,this.isTouched=!1,this.isModified=!1,this.fieldErrorUIController.resetInputInvalidUI()}}getDefaultValue(){return this.defaultValue instanceof Function?this.defaultValue(this.host):this.defaultValue}didRender(){this.monitorTouchedListener()}initFormResetObserver(){this.formResetTriggeredObserver=new h(this.canAcceptFormResetOperation.bind(this),this.reset.bind(this)),o.register(u,this.formResetTriggeredObserver)}isAutoValidationEnabled(){return!1!==this.host.autoValidation}shouldVisitElement(t,e,s){return!(!t.dataset.vegaForm||e&&t.disabled||s&&!p(t))}listenHostElementKeydown(){this.host.addEventListener("keydown",(t=>{this.canSubmitFormByEvent(t)&&o.notify(f,{host:this.host})}))}canSubmitFormByEvent(t){const e="Enter"===t.key||13===t.keyCode,s=e&&t.shiftKey;switch(this.host.tagName){case"VEGA-TEXTAREA":case"VEGA-DATE-PICKER":case"VEGA-TIME-PICKER":return s&&t.preventDefault(),s;default:return e}}}M([s()],T.prototype,"fieldErrorUIController",void 0),M([s()],T.prototype,"resizeObserverSlimmer",void 0);var D=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class U extends e{constructor(){super(...arguments),this.fieldErrorUIController=new L,this.handleFieldErrorMessageUpdate=t=>{const{message:e}=t;e?this.fieldErrorUIController.applyInputInvalidUI(e):this.fieldErrorUIController.resetInputInvalidUI()}}handleComponentWillLoadByFieldErrorSlimmer(){this.fieldErrorMessageChangeObserver=new h(this.canAcceptFieldErrorMessageUpdate.bind(this),this.handleFieldErrorMessageUpdate),o.register(m,this.fieldErrorMessageChangeObserver)}handleUnregisterObserver(){o.unregister(m,this.fieldErrorMessageChangeObserver)}canAcceptFieldErrorMessageUpdate(t){const{host:e}=t,s=this.host.parentElement;return!(!s||s!==e)}}D([t()],U.prototype,"host",void 0),D([t()],U.prototype,"options",void 0),D([s()],U.prototype,"fieldErrorUIController",void 0),D([i("setInjectFormFieldHelper")],U.prototype,"handleComponentWillLoadByFieldErrorSlimmer",null),D([i("disconnectedCallback")],U.prototype,"handleUnregisterObserver",null);var B=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class H extends e{constructor(){super(...arguments),this.handleValidInvocation=async t=>{if(this.validator){void 0!==t.timerId&&clearTimeout(t.timerId);const e=await this.validator.validate(t.message);"function"==typeof t.promiseResolve&&t.promiseResolve(e)}}}registerValidInvocationObserver(){l.addUniqueObserverToNode(this.host,j,this.handleValidInvocation)}handleUnregisterObserver(){l.removeUniqueObserverFromNode(this.host,j)}}B([t()],H.prototype,"host",void 0),B([t()],H.prototype,"validator",void 0),B([i("setInjectFormFieldHelper")],H.prototype,"registerValidInvocationObserver",null),B([i("disconnectedCallback")],H.prototype,"handleUnregisterObserver",null);var P=function(t,e,s,i){var r,o=arguments.length,n=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(o<3?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n};class x extends e{constructor(t){super(),this.fieldErrorSlimmer=new U,this.formFieldValidInvokeSlimmer=new H,this.mutationObserverCallBack=()=>{this.validator&&(this.setDefaultRules(),this.internalValidate())},this.options=t,this.setMutationObserverSlimmer()}connectedCallback(){null===this.validator&&this.setInjectFormFieldHelper()}disconnectedCallback(){this.validator&&(this.validator.destroy(),this.validator=null)}componentDidLoad(){}static isValidFormField(t){return t&&Boolean(t.getAttribute("data-vega-form"))}watchValidationRulesByFormControllerSlimmer(){this.setAdditionalRules(),this.internalValidate()}setInjectFormFieldHelper(){if(x.isValidFormField(this.host)){const{defaultValue:t}=this.options,e=new T(this.getPropertyRules(),this.host,t,this.options);e.addListener({callback:t=>{this.isValid!=t&&(this.isValid=t,o.notify(v,{host:this.host,detail:t}))}}),this.validator=e,this.setAdditionalRules()}}setAdditionalRules(){this.options.validationRulesName&&"validationRules"===this.options.validationRulesName&&this.validator&&this.validator.setAdditionalRules(this.validationRules||[])}setDefaultRules(){this.validator&&this.validator.setDefaultRules(this.getPropertyRules())}getPropertyRules(){const{propertyRules:t,attributeGetter:e}=this.options;return t.map((t=>{const s=t.dependence&&"string"==typeof t.dependence?[e(t.dependence)]:Array.isArray(t.dependence)?t.dependence.map((t=>e(t))):[null];return t.ruleFactory(e(t.propertyName),...s)})).filter(Boolean)}internalValidate(){!this.disabled&&this.validator&&this.validator.validate()}setMutationObserverSlimmer(){this.mutationObserverSlimmer=new E({options:{attributeFilter:this.options.propertyRules.map((t=>r(t.propertyName))),attributeOldValue:!0},mutationFilter:F(),callback:this.mutationObserverCallBack})}}P([t()],x.prototype,"host",void 0),P([t({writable:!0})],x.prototype,"validationRules",void 0),P([t()],x.prototype,"disabled",void 0),P([t()],x.prototype,"autoValidation",void 0),P([t({writable:!0})],x.prototype,"isValid",void 0),P([s()],x.prototype,"fieldErrorSlimmer",void 0),P([s()],x.prototype,"formFieldValidInvokeSlimmer",void 0),P([s()],x.prototype,"mutationObserverSlimmer",void 0),P([i("connectedCallback")],x.prototype,"connectedCallback",null),P([i("disconnectedCallback")],x.prototype,"disconnectedCallback",null),P([i("componentDidLoad")],x.prototype,"componentDidLoad",null),P([i("watchValidationRules")],x.prototype,"watchValidationRulesByFormControllerSlimmer",null),P([i("componentWillLoad")],x.prototype,"setInjectFormFieldHelper",null);export{x as F}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as h,g as s}from"./p-9777b1c1.js";import{F as l}from"./p-d5841466.js";import{V as a,M as r,A as o,D as c}from"./p-3a0a4d15.js";import{R as p}from"./p-d962b340.js";import{V as d}from"./p-8054bb18.js";import{s as n}from"./p-b81bd0bb.js";import{I as v}from"./p-018d77cc.js";import{V as m,I as f}from"./p-ae778ca4.js";import{F as u}from"./p-5141bcac.js";import{b as g}from"./p-2fa3841b.js";import{C as _}from"./p-bf95b189.js";import{c as A}from"./p-c450f692.js";import{C as M}from"./p-5ded9437.js";import{D as E}from"./p-0fd9f03f.js";import{e as b,s as w,t as Z}from"./p-280a6d94.js";import{V as I}from"./p-4e5c06ae.js";import"./p-639fa6c7.js";import"./p-344ee7cb.js";import"./p-0bb29d98.js";import"./p-320642bd.js";import"./p-469bc36e.js";import"./p-d3f1d3dd.js";import"./p-44f4924b.js";import"./p-cb13b4e6.js";import"./p-3542f8fe.js";import"./p-3c8b2105.js";import"./p-1ced3ae5.js";import"./p-56681feb.js";import"./p-69b28805.js";import"./p-a5e6da15.js";import"./p-f1ecbe90.js";import"./p-9d426517.js";const D=[{type:"visa",iconName:"visa",pattern:a,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999 999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"mastercard",iconName:"mastercard",pattern:r,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"amex",iconName:"amex",pattern:o,maskConfig:{type:"custom",options:{mask:"9999 999999 99999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"discover",iconName:"discover",pattern:c,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}}],R=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!1===t.autoValidation}];var j=function(t,i,e,h){var s,l=arguments.length,a=l<3?i:null===h?h=Object.getOwnPropertyDescriptor(i,e):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,h);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(l<3?s(a):l>3?s(i,e,a):s(i,e))||a);return l>3&&a&&Object.defineProperty(i,e,a),a};const y=class{constructor(h){t(this,h),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.globalSlimmers={},this.formFieldController=new u({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new p:null},{propertyName:"",ruleFactory:()=>new d}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerGetter(),touchableAreaGetter:()=>this.touchableAreaGetter()}),this.changeEventEmitter=A(y,b),this.blurEventEmitter=A(y,Z),this.focusEventEmitter=A(y,w),this.inputCreditCardEventPrevent=new M([b,w,Z],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(R),this.maskConfig={type:"custom",options:{mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")},trigger:"blur"},this.required=!1,this.disabled=!1,this.label="",this.hint="",this.size="default",this.placeholder="",this.hideCardNumberOnBlur=!0,this.autoValidation=!0,this.validationRules=[],this.isValid=null,this.value="",this.renderInputContainer=()=>{var t;const i=(null===(t=this.getCreditCardType(this.value))||void 0===t?void 0:t.iconName)||"regular-credit-card";return e("vega-input",{label:this.label,type:"number",prefixIcon:I.getIconKey(i),maskConfig:this.getMaskConfig(),placeholder:this.placeholder,disabled:this.disabled,size:this.size,value:this.value,hint:this.hint,required:this.required,showClearIcon:!1,ref:t=>{this.inputRef=t,E.addUniqueObserverToNode(t,b,(t=>{this.handleVegaChange(t)})),E.addUniqueObserverToNode(t,Z,(()=>{this.handleVegaBlur()})),E.addUniqueObserverToNode(t,w,(()=>{this.handleVegaFocus()}))}})},this.handleVegaChange=t=>{this.value=t.detail},this.handleVegaBlur=()=>{this.blurEventEmitter.emit()},this.handleVegaFocus=()=>{this.focusEventEmitter.emit()},this.inputContainerGetter=()=>this.inputRef.shadowRoot.querySelector(".vega-input-container"),this.touchableAreaGetter=()=>Array.from(this.inputRef.shadowRoot.querySelectorAll("input"))}watchValidationRules(){}watchValue(t){this.changeEventEmitter.emit(t),_.notify(g,{host:this.host,detail:t})}componentDidLoad(){l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")&&this.hideCardNumberOnBlur&&this.inputRef.value&&this.value!==this.inputRef.value&&(this.value=this.inputRef.value)}render(){return n(e(h,null,this.renderInputContainer()),this.host)}getCreditCardType(t){return D.filter((i=>i.pattern.test(t)))[0]}getMaskConfig(){const t=[],i=this.getCreditCardType(this.value);return i&&(t.push(i.maskConfig),this.hideCardNumberOnBlur&&this.value.trim().includes(" ")&&(this.maskConfig.options.mask=this.generateDynamicMask(),t.push(this.maskConfig))),t}generateDynamicMask(){const t=this.value.trim().split(" ");return this.maskCardNumber(t).join(" ")}maskCardNumber(t){return t.map(((i,e)=>(e===t.length-1?"9":"X").repeat(i.length)))}get host(){return s(this)}static get watchers(){return{validationRules:["watchValidationRules"],value:["watchValue"]}}};I.register({visa:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#00579F" rx="2"/><path fill="#fff" d="M15.474 15.792h-1.979l1.238-7.653h1.979l-1.238 7.653ZM22.647 8.326A4.877 4.877 0 0 0 20.872 8c-1.954 0-3.33 1.042-3.339 2.532-.016 1.1.986 1.71 1.735 2.076.765.375 1.026.62 1.026.953-.008.513-.619.75-1.189.75-.79 0-1.213-.123-1.857-.408l-.26-.122-.277 1.718c.464.211 1.32.4 2.207.407 2.076 0 3.428-1.026 3.444-2.613.008-.872-.52-1.54-1.66-2.085-.693-.35-1.117-.586-1.117-.944.008-.326.359-.66 1.14-.66a3.362 3.362 0 0 1 1.474.293l.18.082.268-1.653ZM25.279 13.08l.79-2.14c-.008.016.162-.448.26-.733l.138.66s.375 1.831.457 2.214h-1.645ZM27.72 8.14h-1.53c-.472 0-.831.138-1.035.635l-2.94 7.018h2.077l.416-1.148h2.54c.057.269.237 1.148.237 1.148h1.832L27.72 8.14ZM11.842 8.139l-1.938 5.219-.212-1.059c-.358-1.221-1.482-2.548-2.736-3.208l1.775 6.693h2.093l3.11-7.645h-2.092Z"/><path fill="#FAA61A" d="M8.104 8.139H4.92l-.032.154c2.483.635 4.128 2.166 4.804 4.007L9 8.782c-.114-.489-.464-.627-.896-.643Z"/></svg>',autoSize:!0},mastercard:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#000" rx="2"/><path fill="#ED0006" fill-rule="evenodd" d="M18.25 17.157a6.75 6.75 0 0 1-4.426 1.649c-3.769 0-6.824-3.09-6.824-6.903C7 8.091 10.055 5 13.824 5a6.75 6.75 0 0 1 4.426 1.649A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#F9A000" fill-rule="evenodd" d="M18.25 17.157a6.92 6.92 0 0 0 2.398-5.254 6.92 6.92 0 0 0-2.398-5.254A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#FF5E00" fill-rule="evenodd" d="M18.25 6.65a6.92 6.92 0 0 1 2.398 5.253 6.92 6.92 0 0 1-2.398 5.254 6.92 6.92 0 0 1-2.398-5.254A6.92 6.92 0 0 1 18.25 6.65Z" clip-rule="evenodd"/></svg>',autoSize:!0},amex:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><g clip-path="url(#a)"><rect width="36" height="24" fill="#016FD0" rx="2"/><path fill="#fff" d="M6.99 18.549v-5.654h5.986l.643.838.663-.838h21.729v5.264s-.569.384-1.226.39H22.754l-.724-.891v.891h-2.373v-1.521s-.325.212-1.025.212h-.808v1.309h-3.593l-.641-.855-.651.855H6.99ZM0 8.634l1.35-3.147h2.334l.767 1.763V5.487h2.902l.456 1.274.442-1.274h13.027v.64s.685-.64 1.81-.64l4.227.015.753 1.74V5.487h2.428l.669 1v-1h2.45v5.654h-2.45l-.64-1.003v1.003h-3.569l-.359-.892h-.959l-.353.892h-2.42c-.968 0-1.587-.628-1.587-.628v.628H17.63l-.725-.892v.892H3.34l-.359-.892h-.956l-.356.892H0V8.634Z"/><path fill="#016FD0" d="M1.827 6.184.006 10.417h1.185l.336-.847H3.48l.335.847h1.211L3.207 6.184h-1.38Zm.673.985.596 1.482H1.903L2.5 7.169ZM5.151 10.416V6.183l1.685.006.98 2.73.956-2.736h1.671v4.233H9.385v-3.12l-1.122 3.12h-.928L6.21 7.296v3.12H5.15ZM11.168 10.416V6.183h3.454v.947h-2.384v.724h2.328v.891h-2.328v.752h2.384v.92h-3.454ZM15.233 6.184v4.233h1.059V8.913h.445l1.27 1.504H19.3l-1.393-1.56a1.29 1.29 0 0 0 1.161-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.059.947h1.21c.29 0 .5.227.5.446 0 .28-.273.445-.485.445h-1.225v-.891ZM20.582 10.416h-1.08V6.183h1.08v4.233ZM23.144 10.416h-.233c-1.129 0-1.814-.889-1.814-2.1 0-1.24.678-2.133 2.103-2.133h1.17v1.003h-1.213c-.578 0-.988.451-.988 1.141 0 .82.468 1.165 1.142 1.165h.279l-.446.924ZM25.448 6.184l-1.82 4.233h1.185l.336-.847h1.953l.334.847h1.211l-1.819-4.233h-1.38Zm.674.985.595 1.482h-1.192l.597-1.482ZM28.77 10.416V6.183h1.345l1.718 2.66v-2.66h1.059v4.233H31.59l-1.762-2.73v2.73H28.77ZM7.715 17.825v-4.233h3.453v.947H8.784v.724h2.329v.89H8.784v.753h2.384v.919H7.715ZM24.636 17.825v-4.233h3.454v.947h-2.384v.724h2.317v.89h-2.317v.753h2.384v.919h-3.454ZM11.303 17.825l1.681-2.09-1.721-2.143h1.333l1.025 1.324 1.029-1.324h1.281l-1.699 2.116 1.685 2.117h-1.333l-.996-1.304-.971 1.304h-1.314ZM16.041 13.592v4.233h1.086v-1.337h1.114c.943 0 1.658-.5 1.658-1.472 0-.806-.56-1.424-1.52-1.424H16.04Zm1.086.957h1.174c.304 0 .522.187.522.488 0 .282-.217.487-.526.487h-1.17v-.975ZM20.359 13.592v4.233h1.058V16.32h.446l1.269 1.504h1.293l-1.393-1.56a1.29 1.29 0 0 0 1.162-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.058.947h1.21c.29 0 .501.226.501.445 0 .281-.273.446-.486.446h-1.225v-.891ZM28.58 17.825v-.92H30.7c.313 0 .449-.169.449-.354 0-.178-.136-.358-.45-.358h-.957c-.831 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.062l-.446.952H29.94c-.341 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347H28.58ZM32.464 17.825v-.92h2.118c.313 0 .45-.169.45-.354 0-.178-.136-.358-.45-.358h-.957c-.832 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.02l-.404.952h-1.783c-.34 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347h-2.256Z"/></g><defs><clipPath id="a"><rect width="36" height="24" fill="#fff" rx="2"/></clipPath></defs></svg>',autoSize:!0},discover:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#232342" rx="2"/><path fill="#fff" fill-rule="evenodd" d="M30.686 9.61c1.086 0 1.684.484 1.684 1.398a1.307 1.307 0 0 1-1.087 1.397l1.467 1.988h-1.14l-1.25-1.935h-.109v1.935h-.924V9.61h1.359Zm-.435 2.204h.272c.597 0 .869-.269.869-.752 0-.43-.272-.699-.87-.699h-.27v1.45Zm-4.129 2.579h2.608v-.806h-1.684v-1.29h1.63v-.806h-1.63v-1.074h1.684V9.61h-2.608v4.781Zm-2.716-1.559-1.25-3.223h-.978l2.01 4.889h.49l2.01-4.89h-.978l-1.304 3.225Zm-11.029-.805c0 1.343 1.087 2.471 2.445 2.471.435 0 .815-.107 1.195-.269v-1.074c-.271.322-.652.537-1.086.537-.87 0-1.576-.645-1.576-1.504v-.108c-.054-.86.652-1.612 1.521-1.665.435 0 .87.215 1.141.537V9.879c-.326-.214-.76-.268-1.14-.268-1.413-.108-2.5 1.02-2.5 2.418Zm-1.684-.591c-.543-.215-.706-.323-.706-.591.054-.323.326-.591.652-.538.271 0 .543.162.76.376l.49-.644c-.381-.323-.87-.538-1.359-.538-.76-.053-1.412.538-1.467 1.29v.054c0 .644.272 1.02 1.141 1.289.217.054.435.161.652.269a.563.563 0 0 1 .272.483c0 .376-.326.699-.652.699h-.055c-.434 0-.814-.269-.977-.645l-.598.59c.326.592.978.914 1.63.914.869.054 1.575-.59 1.63-1.45v-.162c-.055-.644-.326-.967-1.413-1.396Zm-3.15 2.954h.923V9.611h-.924v4.781ZM3.25 9.611H4.88c1.304.054 2.336 1.128 2.282 2.418 0 .698-.326 1.343-.87 1.826-.488.376-1.086.591-1.684.538H3.25V9.61Zm1.195 3.976c.435.053.924-.108 1.25-.376.326-.323.489-.753.489-1.236 0-.43-.163-.86-.49-1.182-.325-.269-.814-.43-1.249-.376h-.271v3.17h.271Z" clip-rule="evenodd"/><path fill="#FD6020" fill-rule="evenodd" d="M18.788 9.5c-1.358 0-2.499 1.075-2.499 2.471 0 1.344 1.087 2.472 2.5 2.526 1.412.053 2.498-1.075 2.553-2.472C21.287 10.628 20.2 9.5 18.788 9.5Z" clip-rule="evenodd"/></svg>',autoSize:!0},"regular-credit-card":{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" rx="2" style=\'fill: rgba(var(--v-regular-credit-card-bg, 205, 209, 211, 1))\'/><g clip-path="url(#a)"><path style="fill: rgba(var(--v-regular-credit-card-top, 252, 252, 252, 1))" d="M11 5c-1.103 0-2 .897-2 2v1h18V7c0-1.103-.897-2-2-2H11Zm16 6H9v6c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-6Zm-14.5 4h2c.275 0 .5.225.5.5s-.225.5-.5.5h-2a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5Zm3.5.5c0-.275.225-.5.5-.5h4c.275 0 .5.225.5.5s-.225.5-.5.5h-4a.501.501 0 0 1-.5-.5Z"/></g><defs><clipPath id="a"><path d="M9 4h18v16H9z" style=\'fill: rgba(var(--v-regular-credit-card-bottom, 255, 255, 255, 1))\'/></clipPath></defs></svg>',autoSize:!0}}),j([f()],y.prototype,"globalSlimmers",void 0),j([v()],y.prototype,"formFieldController",void 0),j([v()],y.prototype,"changeEventEmitter",void 0),j([v()],y.prototype,"blurEventEmitter",void 0),j([v()],y.prototype,"focusEventEmitter",void 0),j([v()],y.prototype,"inputCreditCardEventPrevent",void 0),j([v()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=":host{display:inline-block;width:100%;text-align:left;line-height:normal}";export{y as vega_input_credit_card}
1
+ import{r as t,c as i,h as e,H as h,g as s}from"./p-9777b1c1.js";import{F as l}from"./p-d5841466.js";import{V as a,M as r,A as o,D as c}from"./p-3a0a4d15.js";import{R as p}from"./p-d962b340.js";import{V as d}from"./p-8054bb18.js";import{s as n}from"./p-b81bd0bb.js";import{I as v}from"./p-018d77cc.js";import{V as m,I as f}from"./p-ae778ca4.js";import{F as u}from"./p-7acd23c3.js";import{b as g}from"./p-2fa3841b.js";import{C as _}from"./p-bf95b189.js";import{c as A}from"./p-c779ed1f.js";import{C as M}from"./p-ead9867b.js";import{D as b}from"./p-0fd9f03f.js";import{e as E,s as w,t as Z}from"./p-280a6d94.js";import{V as I}from"./p-4e5c06ae.js";import"./p-639fa6c7.js";import"./p-344ee7cb.js";import"./p-0bb29d98.js";import"./p-320642bd.js";import"./p-469bc36e.js";import"./p-d3f1d3dd.js";import"./p-44f4924b.js";import"./p-cb13b4e6.js";import"./p-3542f8fe.js";import"./p-3c8b2105.js";import"./p-1ced3ae5.js";import"./p-56681feb.js";import"./p-69b28805.js";import"./p-264c95ab.js";import"./p-f1ecbe90.js";import"./p-9d426517.js";const D=[{type:"visa",iconName:"visa",pattern:a,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999 999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"mastercard",iconName:"mastercard",pattern:r,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"amex",iconName:"amex",pattern:o,maskConfig:{type:"custom",options:{mask:"9999 999999 99999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}},{type:"discover",iconName:"discover",pattern:c,maskConfig:{type:"custom",options:{mask:"9999 9999 9999 9999",slot:"9",accept:/\d/,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")}}}],R=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether the user's input in the credit card field should be automatically validated",payloadValue:t=>!1===t.autoValidation}];var j=function(t,i,e,h){var s,l=arguments.length,a=l<3?i:null===h?h=Object.getOwnPropertyDescriptor(i,e):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,h);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(a=(l<3?s(a):l>3?s(i,e,a):s(i,e))||a);return l>3&&a&&Object.defineProperty(i,e,a),a};const y=class{constructor(h){t(this,h),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaBlur=i(this,"vegaBlur",7),this.blur=i(this,"blur",7),this.vegaFocus=i(this,"vegaFocus",7),this.focus=i(this,"focus",7),this.globalSlimmers={},this.formFieldController=new u({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new p:null},{propertyName:"",ruleFactory:()=>new d}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerGetter(),touchableAreaGetter:()=>this.touchableAreaGetter()}),this.changeEventEmitter=A(y,E),this.blurEventEmitter=A(y,Z),this.focusEventEmitter=A(y,w),this.inputCreditCardEventPrevent=new M([E,w,Z],(()=>this.host),!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(R),this.maskConfig={type:"custom",options:{mask:"",slot:"9",accept:/[\d\s]/,insertMode:!1,triggerAtInit:l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")},trigger:"blur"},this.required=!1,this.disabled=!1,this.label="",this.hint="",this.size="default",this.placeholder="",this.hideCardNumberOnBlur=!0,this.autoValidation=!0,this.validationRules=[],this.isValid=null,this.value="",this.renderInputContainer=()=>{var t;const i=(null===(t=this.getCreditCardType(this.value))||void 0===t?void 0:t.iconName)||"regular-credit-card";return e("vega-input",{label:this.label,type:"number",prefixIcon:I.getIconKey(i),maskConfig:this.getMaskConfig(),placeholder:this.placeholder,disabled:this.disabled,size:this.size,value:this.value,hint:this.hint,required:this.required,showClearIcon:!1,ref:t=>{this.inputRef=t,b.addUniqueObserverToNode(t,E,(t=>{this.handleVegaChange(t)})),b.addUniqueObserverToNode(t,Z,(()=>{this.handleVegaBlur()})),b.addUniqueObserverToNode(t,w,(()=>{this.handleVegaFocus()}))}})},this.handleVegaChange=t=>{this.value=t.detail},this.handleVegaBlur=()=>{this.blurEventEmitter.emit()},this.handleVegaFocus=()=>{this.focusEventEmitter.emit()},this.inputContainerGetter=()=>this.inputRef.shadowRoot.querySelector(".vega-input-container"),this.touchableAreaGetter=()=>Array.from(this.inputRef.shadowRoot.querySelectorAll("input"))}watchValidationRules(){}watchValue(t){this.changeEventEmitter.emit(t),_.notify(g,{host:this.host,detail:t})}componentDidLoad(){l.isEnabled("VEGA_INPUT_CREDIT_CARD.ENABLE_HIDE_NUMBER_MASK_ON_FIRST_LOAD")&&this.hideCardNumberOnBlur&&this.inputRef.value&&this.value!==this.inputRef.value&&(this.value=this.inputRef.value)}render(){return n(e(h,null,this.renderInputContainer()),this.host)}getCreditCardType(t){return D.filter((i=>i.pattern.test(t)))[0]}getMaskConfig(){const t=[],i=this.getCreditCardType(this.value);return i&&(t.push(i.maskConfig),this.hideCardNumberOnBlur&&this.value.trim().includes(" ")&&(this.maskConfig.options.mask=this.generateDynamicMask(),t.push(this.maskConfig))),t}generateDynamicMask(){const t=this.value.trim().split(" ");return this.maskCardNumber(t).join(" ")}maskCardNumber(t){return t.map(((i,e)=>(e===t.length-1?"9":"X").repeat(i.length)))}get host(){return s(this)}static get watchers(){return{validationRules:["watchValidationRules"],value:["watchValue"]}}};I.register({visa:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#00579F" rx="2"/><path fill="#fff" d="M15.474 15.792h-1.979l1.238-7.653h1.979l-1.238 7.653ZM22.647 8.326A4.877 4.877 0 0 0 20.872 8c-1.954 0-3.33 1.042-3.339 2.532-.016 1.1.986 1.71 1.735 2.076.765.375 1.026.62 1.026.953-.008.513-.619.75-1.189.75-.79 0-1.213-.123-1.857-.408l-.26-.122-.277 1.718c.464.211 1.32.4 2.207.407 2.076 0 3.428-1.026 3.444-2.613.008-.872-.52-1.54-1.66-2.085-.693-.35-1.117-.586-1.117-.944.008-.326.359-.66 1.14-.66a3.362 3.362 0 0 1 1.474.293l.18.082.268-1.653ZM25.279 13.08l.79-2.14c-.008.016.162-.448.26-.733l.138.66s.375 1.831.457 2.214h-1.645ZM27.72 8.14h-1.53c-.472 0-.831.138-1.035.635l-2.94 7.018h2.077l.416-1.148h2.54c.057.269.237 1.148.237 1.148h1.832L27.72 8.14ZM11.842 8.139l-1.938 5.219-.212-1.059c-.358-1.221-1.482-2.548-2.736-3.208l1.775 6.693h2.093l3.11-7.645h-2.092Z"/><path fill="#FAA61A" d="M8.104 8.139H4.92l-.032.154c2.483.635 4.128 2.166 4.804 4.007L9 8.782c-.114-.489-.464-.627-.896-.643Z"/></svg>',autoSize:!0},mastercard:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#000" rx="2"/><path fill="#ED0006" fill-rule="evenodd" d="M18.25 17.157a6.75 6.75 0 0 1-4.426 1.649c-3.769 0-6.824-3.09-6.824-6.903C7 8.091 10.055 5 13.824 5a6.75 6.75 0 0 1 4.426 1.649A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#F9A000" fill-rule="evenodd" d="M18.25 17.157a6.92 6.92 0 0 0 2.398-5.254 6.92 6.92 0 0 0-2.398-5.254A6.75 6.75 0 0 1 22.676 5c3.769 0 6.824 3.09 6.824 6.903 0 3.812-3.055 6.903-6.824 6.903a6.75 6.75 0 0 1-4.426-1.65Z" clip-rule="evenodd"/><path fill="#FF5E00" fill-rule="evenodd" d="M18.25 6.65a6.92 6.92 0 0 1 2.398 5.253 6.92 6.92 0 0 1-2.398 5.254 6.92 6.92 0 0 1-2.398-5.254A6.92 6.92 0 0 1 18.25 6.65Z" clip-rule="evenodd"/></svg>',autoSize:!0},amex:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><g clip-path="url(#a)"><rect width="36" height="24" fill="#016FD0" rx="2"/><path fill="#fff" d="M6.99 18.549v-5.654h5.986l.643.838.663-.838h21.729v5.264s-.569.384-1.226.39H22.754l-.724-.891v.891h-2.373v-1.521s-.325.212-1.025.212h-.808v1.309h-3.593l-.641-.855-.651.855H6.99ZM0 8.634l1.35-3.147h2.334l.767 1.763V5.487h2.902l.456 1.274.442-1.274h13.027v.64s.685-.64 1.81-.64l4.227.015.753 1.74V5.487h2.428l.669 1v-1h2.45v5.654h-2.45l-.64-1.003v1.003h-3.569l-.359-.892h-.959l-.353.892h-2.42c-.968 0-1.587-.628-1.587-.628v.628H17.63l-.725-.892v.892H3.34l-.359-.892h-.956l-.356.892H0V8.634Z"/><path fill="#016FD0" d="M1.827 6.184.006 10.417h1.185l.336-.847H3.48l.335.847h1.211L3.207 6.184h-1.38Zm.673.985.596 1.482H1.903L2.5 7.169ZM5.151 10.416V6.183l1.685.006.98 2.73.956-2.736h1.671v4.233H9.385v-3.12l-1.122 3.12h-.928L6.21 7.296v3.12H5.15ZM11.168 10.416V6.183h3.454v.947h-2.384v.724h2.328v.891h-2.328v.752h2.384v.92h-3.454ZM15.233 6.184v4.233h1.059V8.913h.445l1.27 1.504H19.3l-1.393-1.56a1.29 1.29 0 0 0 1.161-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.059.947h1.21c.29 0 .5.227.5.446 0 .28-.273.445-.485.445h-1.225v-.891ZM20.582 10.416h-1.08V6.183h1.08v4.233ZM23.144 10.416h-.233c-1.129 0-1.814-.889-1.814-2.1 0-1.24.678-2.133 2.103-2.133h1.17v1.003h-1.213c-.578 0-.988.451-.988 1.141 0 .82.468 1.165 1.142 1.165h.279l-.446.924ZM25.448 6.184l-1.82 4.233h1.185l.336-.847h1.953l.334.847h1.211l-1.819-4.233h-1.38Zm.674.985.595 1.482h-1.192l.597-1.482ZM28.77 10.416V6.183h1.345l1.718 2.66v-2.66h1.059v4.233H31.59l-1.762-2.73v2.73H28.77ZM7.715 17.825v-4.233h3.453v.947H8.784v.724h2.329v.89H8.784v.753h2.384v.919H7.715ZM24.636 17.825v-4.233h3.454v.947h-2.384v.724h2.317v.89h-2.317v.753h2.384v.919h-3.454ZM11.303 17.825l1.681-2.09-1.721-2.143h1.333l1.025 1.324 1.029-1.324h1.281l-1.699 2.116 1.685 2.117h-1.333l-.996-1.304-.971 1.304h-1.314ZM16.041 13.592v4.233h1.086v-1.337h1.114c.943 0 1.658-.5 1.658-1.472 0-.806-.56-1.424-1.52-1.424H16.04Zm1.086.957h1.174c.304 0 .522.187.522.488 0 .282-.217.487-.526.487h-1.17v-.975ZM20.359 13.592v4.233h1.058V16.32h.446l1.269 1.504h1.293l-1.393-1.56a1.29 1.29 0 0 0 1.162-1.3c0-.89-.7-1.373-1.48-1.373h-2.355Zm1.058.947h1.21c.29 0 .501.226.501.445 0 .281-.273.446-.486.446h-1.225v-.891ZM28.58 17.825v-.92H30.7c.313 0 .449-.169.449-.354 0-.178-.136-.358-.45-.358h-.957c-.831 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.062l-.446.952H29.94c-.341 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347H28.58ZM32.464 17.825v-.92h2.118c.313 0 .45-.169.45-.354 0-.178-.136-.358-.45-.358h-.957c-.832 0-1.295-.507-1.295-1.268 0-.679.424-1.333 1.66-1.333h2.02l-.404.952h-1.783c-.34 0-.446.179-.446.35 0 .175.13.369.39.369h1.003c.927 0 1.33.526 1.33 1.215 0 .74-.449 1.347-1.38 1.347h-2.256Z"/></g><defs><clipPath id="a"><rect width="36" height="24" fill="#fff" rx="2"/></clipPath></defs></svg>',autoSize:!0},discover:{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" fill="#232342" rx="2"/><path fill="#fff" fill-rule="evenodd" d="M30.686 9.61c1.086 0 1.684.484 1.684 1.398a1.307 1.307 0 0 1-1.087 1.397l1.467 1.988h-1.14l-1.25-1.935h-.109v1.935h-.924V9.61h1.359Zm-.435 2.204h.272c.597 0 .869-.269.869-.752 0-.43-.272-.699-.87-.699h-.27v1.45Zm-4.129 2.579h2.608v-.806h-1.684v-1.29h1.63v-.806h-1.63v-1.074h1.684V9.61h-2.608v4.781Zm-2.716-1.559-1.25-3.223h-.978l2.01 4.889h.49l2.01-4.89h-.978l-1.304 3.225Zm-11.029-.805c0 1.343 1.087 2.471 2.445 2.471.435 0 .815-.107 1.195-.269v-1.074c-.271.322-.652.537-1.086.537-.87 0-1.576-.645-1.576-1.504v-.108c-.054-.86.652-1.612 1.521-1.665.435 0 .87.215 1.141.537V9.879c-.326-.214-.76-.268-1.14-.268-1.413-.108-2.5 1.02-2.5 2.418Zm-1.684-.591c-.543-.215-.706-.323-.706-.591.054-.323.326-.591.652-.538.271 0 .543.162.76.376l.49-.644c-.381-.323-.87-.538-1.359-.538-.76-.053-1.412.538-1.467 1.29v.054c0 .644.272 1.02 1.141 1.289.217.054.435.161.652.269a.563.563 0 0 1 .272.483c0 .376-.326.699-.652.699h-.055c-.434 0-.814-.269-.977-.645l-.598.59c.326.592.978.914 1.63.914.869.054 1.575-.59 1.63-1.45v-.162c-.055-.644-.326-.967-1.413-1.396Zm-3.15 2.954h.923V9.611h-.924v4.781ZM3.25 9.611H4.88c1.304.054 2.336 1.128 2.282 2.418 0 .698-.326 1.343-.87 1.826-.488.376-1.086.591-1.684.538H3.25V9.61Zm1.195 3.976c.435.053.924-.108 1.25-.376.326-.323.489-.753.489-1.236 0-.43-.163-.86-.49-1.182-.325-.269-.814-.43-1.249-.376h-.271v3.17h.271Z" clip-rule="evenodd"/><path fill="#FD6020" fill-rule="evenodd" d="M18.788 9.5c-1.358 0-2.499 1.075-2.499 2.471 0 1.344 1.087 2.472 2.5 2.526 1.412.053 2.498-1.075 2.553-2.472C21.287 10.628 20.2 9.5 18.788 9.5Z" clip-rule="evenodd"/></svg>',autoSize:!0},"regular-credit-card":{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="36" height="24" fill="none"><rect width="36" height="24" rx="2" style=\'fill: rgba(var(--v-regular-credit-card-bg, 205, 209, 211, 1))\'/><g clip-path="url(#a)"><path style="fill: rgba(var(--v-regular-credit-card-top, 252, 252, 252, 1))" d="M11 5c-1.103 0-2 .897-2 2v1h18V7c0-1.103-.897-2-2-2H11Zm16 6H9v6c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-6Zm-14.5 4h2c.275 0 .5.225.5.5s-.225.5-.5.5h-2a.501.501 0 0 1-.5-.5c0-.275.225-.5.5-.5Zm3.5.5c0-.275.225-.5.5-.5h4c.275 0 .5.225.5.5s-.225.5-.5.5h-4a.501.501 0 0 1-.5-.5Z"/></g><defs><clipPath id="a"><path d="M9 4h18v16H9z" style=\'fill: rgba(var(--v-regular-credit-card-bottom, 255, 255, 255, 1))\'/></clipPath></defs></svg>',autoSize:!0}}),j([f()],y.prototype,"globalSlimmers",void 0),j([v()],y.prototype,"formFieldController",void 0),j([v()],y.prototype,"changeEventEmitter",void 0),j([v()],y.prototype,"blurEventEmitter",void 0),j([v()],y.prototype,"focusEventEmitter",void 0),j([v()],y.prototype,"inputCreditCardEventPrevent",void 0),j([v()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=":host{display:inline-block;width:100%;text-align:left;line-height:normal}";export{y as vega_input_credit_card}