@globalpayments/vega 2.34.1 → 2.36.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 (558) hide show
  1. package/dist/cjs/{app-globals-48582633.js → app-globals-13d4a0be.js} +21 -21
  2. package/dist/cjs/{change-manager-bda1d107.js → change-manager-a297e4d2.js} +1 -1
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-e1a6e5ad.js → child-nodes-event-prevent-slimmer-96c3c4ae.js} +3 -3
  4. package/dist/cjs/{child-nodes-notify-observer-slimmer-03a3f79e.js → child-nodes-notify-observer-slimmer-be92f366.js} +5 -5
  5. package/dist/cjs/{component-63af66ea.js → component-73a88c4e.js} +1 -1
  6. package/dist/cjs/{component-global-style-slimmer-6b64a26c.js → component-global-style-slimmer-6749808c.js} +1 -1
  7. package/dist/cjs/{component-usage-runtime-metrics-019d3c00.js → component-usage-runtime-metrics-dcb32c24.js} +1 -1
  8. package/dist/cjs/{content-state-6a5b9736.js → content-state-2336e368.js} +1379 -309
  9. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-8c6a8fb7.js → create-public-api-runtime-metrics-slimmer-54c3f73b.js} +2 -2
  10. package/dist/cjs/{date-ffe382a4.js → date-0a6bb035.js} +1 -1
  11. package/dist/cjs/{deprecated-property-slimmer-f36e3779.js → deprecated-property-slimmer-fc729fd9.js} +2 -2
  12. package/dist/cjs/{design-token-908e3f69.js → design-token-30c069c1.js} +3 -3
  13. package/dist/cjs/{dom-node-subject-observer-factory-093462f1.js → dom-node-subject-factory-3ec114b8.js} +1 -41
  14. package/dist/cjs/dom-node-subject-observer-factory-5f0eae19.js +44 -0
  15. package/dist/cjs/{dynamic-slimmer-dc30600a.js → dynamic-slimmer-f31fdfd7.js} +1 -1
  16. package/dist/cjs/{element-appender-slimmer-0dd70e61.js → element-appender-slimmer-77f9c4a0.js} +17 -9
  17. package/dist/cjs/{event-emit-slimmer-a46bb411.js → event-emit-slimmer-9c223f73.js} +7 -6
  18. package/dist/cjs/{feature-flag-controller-e97b5f29.js → feature-flag-controller-7b22e598.js} +1 -1
  19. package/dist/cjs/{form-field-controller-slimmer-9aeabcdc.js → form-field-controller-slimmer-8d4d2723.js} +72 -40
  20. package/dist/cjs/global-slimmer-registry-b3bce7e0.js +297 -0
  21. package/dist/cjs/{icon-manager-36dcfb65.js → icon-manager-edc2400b.js} +2 -2
  22. package/dist/cjs/{text-color-toolbar-button-slimmer-21a166e4.js → image-annotation-action-4135ca69.js} +78 -27
  23. package/dist/cjs/{global-slimmer-registry-dd2691b8.js → index-09acd3c9.js} +282 -296
  24. package/dist/cjs/index.cjs.js +28 -30
  25. package/dist/cjs/{inject-keyboard-manager-af37c861.js → inject-keyboard-manager-4a5c27a2.js} +1 -1
  26. package/dist/cjs/{internal-icon-manager-2282a62f.js → internal-icon-manager-5ccb9443.js} +1 -1
  27. package/dist/cjs/{internal-vega-event-manager-d7643ec6.js → internal-vega-event-manager-e5e4bcf4.js} +72 -72
  28. package/dist/cjs/{internal-vega-z-index-manager-e24e4309.js → internal-vega-z-index-manager-f03ddb37.js} +1 -1
  29. package/dist/cjs/{keyboard-manager-5afbc8f1.js → keyboard-manager-2df53b2f.js} +1 -1
  30. package/dist/cjs/{keyboard-manager-slimmer-9be2a880.js → keyboard-manager-slimmer-feba3a83.js} +2 -2
  31. package/dist/cjs/loader.cjs.js +21 -22
  32. package/dist/cjs/{mutation-observer-slimmer-98bbbdf0.js → mutation-observer-slimmer-895b3d3e.js} +1 -1
  33. package/dist/cjs/{node.abstract-f8075f84.js → node-annotation.abstract-c3c07af5.js} +38 -49
  34. package/dist/cjs/{page-resize-observer-slimmer-e54fa9d4.js → page-resize-observer-slimmer-bb1eaebe.js} +1 -1
  35. package/dist/cjs/{remote-invocation-registry-71a45468.js → remote-invocation-registry-ff9af278.js} +3 -3
  36. package/dist/cjs/{responsive-format-facade-74079f1b.js → responsive-format-facade-4363a00d.js} +1 -1
  37. package/dist/cjs/{state-background-color-formatter-d32a1098.js → state-background-color-formatter-e585a027.js} +1 -1
  38. package/dist/cjs/{string-input-formatter-slimmer-297765c0.js → string-input-formatter-slimmer-6155c9f5.js} +1 -1
  39. package/dist/cjs/{style-formatter-5deb065f.js → style-formatter-63218b76.js} +1 -1
  40. package/dist/cjs/{sub-state-notify-slimmer-73201c53.js → sub-state-notify-slimmer-994eb848.js} +9 -9
  41. package/dist/cjs/{sub-state-observer-slimmer-10c0d402.js → sub-state-observer-slimmer-080a4bea.js} +9 -9
  42. package/dist/cjs/{translation-f6b7ee84.js → translation-b9be41e0.js} +3 -3
  43. package/dist/cjs/{translation-slimmer-90f9f71f.js → translation-slimmer-ec76c5a2.js} +2 -2
  44. package/dist/cjs/{ui-b5906704.js → ui-5fd9b267.js} +1 -1
  45. package/dist/cjs/vega-accordion.cjs.entry.js +41 -39
  46. package/dist/cjs/vega-app-footer.cjs.entry.js +13 -12
  47. package/dist/cjs/vega-app-header-button.cjs.entry.js +42 -40
  48. package/dist/cjs/vega-backdrop.cjs.entry.js +9 -8
  49. package/dist/cjs/vega-banner.cjs.entry.js +36 -34
  50. package/dist/cjs/vega-bar-chart.cjs.entry.js +6 -5
  51. package/dist/cjs/vega-box.cjs.entry.js +13 -12
  52. package/dist/cjs/vega-breadcrumb.cjs.entry.js +34 -32
  53. package/dist/cjs/vega-button-circle.cjs.entry.js +25 -23
  54. package/dist/cjs/vega-button-group_2.cjs.entry.js +33 -31
  55. package/dist/cjs/vega-button-link.cjs.entry.js +26 -24
  56. package/dist/cjs/vega-button.cjs.entry.js +26 -24
  57. package/dist/cjs/vega-calendar_3.cjs.entry.js +136 -134
  58. package/dist/cjs/vega-card.cjs.entry.js +11 -10
  59. package/dist/cjs/vega-carousel.cjs.entry.js +25 -23
  60. package/dist/cjs/vega-checkbox_2.cjs.entry.js +47 -45
  61. package/dist/cjs/vega-chip.cjs.entry.js +36 -34
  62. package/dist/cjs/vega-color-picker.cjs.entry.js +27 -25
  63. package/dist/cjs/vega-combo-box.cjs.entry.js +47 -45
  64. package/dist/cjs/vega-counter-badge.cjs.entry.js +10 -9
  65. package/dist/cjs/vega-date-picker_2.cjs.entry.js +584 -165
  66. package/dist/cjs/{vega-dialog-controller-aaf1f43e.js → vega-dialog-controller-fe610705.js} +2 -2
  67. package/dist/cjs/vega-dialog_2.cjs.entry.js +47 -45
  68. package/dist/cjs/vega-divider.cjs.entry.js +11 -10
  69. package/dist/cjs/vega-dropdown_5.cjs.entry.js +196 -145
  70. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  71. package/dist/cjs/vega-field-error.cjs.entry.js +8 -7
  72. package/dist/cjs/vega-field-label.cjs.entry.js +22 -20
  73. package/dist/cjs/vega-file-uploader.cjs.entry.js +184 -102
  74. package/dist/cjs/vega-flex.cjs.entry.js +14 -13
  75. package/dist/cjs/vega-font.cjs.entry.js +21 -13
  76. package/dist/cjs/vega-form.cjs.entry.js +48 -41
  77. package/dist/cjs/vega-grid.cjs.entry.js +11 -10
  78. package/dist/cjs/vega-hint.cjs.entry.js +7 -6
  79. package/dist/cjs/vega-icon.cjs.entry.js +16 -15
  80. package/dist/cjs/vega-image-uploader.cjs.entry.js +52 -50
  81. package/dist/cjs/vega-input-credit-card.cjs.entry.js +38 -36
  82. package/dist/cjs/vega-input-numeric.cjs.entry.js +31 -29
  83. package/dist/cjs/vega-input-phone-number.cjs.entry.js +99 -51
  84. package/dist/cjs/vega-input-range.cjs.entry.js +41 -39
  85. package/dist/cjs/vega-input-select.cjs.entry.js +63 -61
  86. package/dist/cjs/vega-input.cjs.entry.js +47 -45
  87. package/dist/cjs/{vega-internal-event-id-85b68849.js → vega-internal-event-id-b12071ea.js} +2 -0
  88. package/dist/cjs/vega-item-toggle.cjs.entry.js +21 -19
  89. package/dist/cjs/vega-left-nav_5.cjs.entry.js +103 -101
  90. package/dist/cjs/vega-line-chart.cjs.entry.js +7 -6
  91. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -15
  92. package/dist/cjs/vega-page-notification_2.cjs.entry.js +20 -18
  93. package/dist/cjs/vega-pagination.cjs.entry.js +54 -52
  94. package/dist/cjs/vega-pie-chart.cjs.entry.js +7 -6
  95. package/dist/cjs/vega-popover_2.cjs.entry.js +35 -33
  96. package/dist/cjs/vega-progress-tracker.cjs.entry.js +29 -27
  97. package/dist/cjs/vega-radio_2.cjs.entry.js +51 -49
  98. package/dist/cjs/vega-rich-text-content.cjs.entry.js +346 -24
  99. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +348 -282
  100. package/dist/cjs/vega-section-title.cjs.entry.js +15 -14
  101. package/dist/cjs/vega-segment-control.cjs.entry.js +24 -22
  102. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +50 -48
  103. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +62 -60
  104. package/dist/cjs/vega-sidenav_3.cjs.entry.js +47 -45
  105. package/dist/cjs/vega-signature-capture.cjs.entry.js +41 -39
  106. package/dist/cjs/{block-annotation.abstract-4d88b939.js → vega-skeleton-loader-controller-7dac484f.js} +7 -21
  107. package/dist/cjs/vega-skeleton.cjs.entry.js +26 -25
  108. package/dist/cjs/vega-slot-container.cjs.entry.js +6 -5
  109. package/dist/cjs/vega-stepper.cjs.entry.js +35 -33
  110. package/dist/cjs/vega-tab-group_2.cjs.entry.js +88 -75
  111. package/dist/cjs/vega-table_8.cjs.entry.js +185 -183
  112. package/dist/cjs/vega-text.cjs.entry.js +9 -8
  113. package/dist/cjs/vega-textarea.cjs.entry.js +35 -33
  114. package/dist/cjs/vega-time-picker_2.cjs.entry.js +84 -82
  115. package/dist/cjs/vega-toggle-switch.cjs.entry.js +24 -22
  116. package/dist/cjs/vega-tooltip_2.cjs.entry.js +20 -19
  117. package/dist/cjs/vega.cjs.js +21 -22
  118. package/dist/collection/components/vega-date-picker/assets/icons.js +3 -0
  119. package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.js +23 -1
  120. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.js +316 -0
  121. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +60 -2
  122. package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +16 -4
  123. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +24 -0
  124. package/dist/collection/components/vega-date-picker/vega-date-picker.js +59 -0
  125. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +56 -14
  126. package/dist/collection/components/vega-dropdown/vega-dropdown.js +37 -0
  127. package/dist/collection/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-file-limit-controller.js +35 -0
  128. package/dist/collection/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.js +36 -7
  129. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +41 -0
  130. package/dist/collection/components/vega-font/slimmers/renderers/vega-font-renderer.js +8 -1
  131. package/dist/collection/components/vega-form/vega-form.js +13 -4
  132. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +38 -3
  133. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +35 -0
  134. package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
  135. package/dist/collection/components/vega-pagination/internal/vega-pagination-page-size-selector.js +2 -2
  136. package/dist/collection/components/vega-pagination/vega-pagination.js +24 -1
  137. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +37 -2
  138. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +11 -4
  139. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +0 -90
  140. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +0 -24
  141. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +67 -13
  142. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +45 -12
  143. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +68 -8
  144. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +111 -36
  145. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +23 -50
  146. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +0 -25
  147. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +95 -19
  148. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +35 -0
  149. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +104 -0
  150. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +15 -0
  151. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +14 -0
  152. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +14 -0
  153. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +28 -0
  154. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +49 -0
  155. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +35 -0
  156. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +24 -0
  157. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +2 -0
  158. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.js +49 -0
  159. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +15 -1
  160. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +0 -10
  161. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +0 -48
  162. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +0 -40
  163. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +0 -39
  164. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +0 -14
  165. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +0 -34
  166. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +4 -2
  167. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.js +22 -22
  168. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.js +9 -1
  169. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +4 -1
  170. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  171. package/dist/collection/helpers/slimmers/field-error-controller-silmmer.js +8 -2
  172. package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +10 -16
  173. package/dist/collection/helpers/slimmers/form-field-message-translator.js +17 -0
  174. package/dist/collection/helpers/slimmers/form-field-valid-invoke-slimmer.js +6 -3
  175. package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +1 -1
  176. package/dist/collection/helpers/ui/element-appender.js +10 -2
  177. package/dist/collection/helpers/validator/form-field-controller.js +11 -3
  178. package/dist/collection/helpers/validator/rules/rich-text-editor-required-rule.js +4 -3
  179. package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +43 -0
  180. package/dist/collection/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.js +7 -2
  181. package/dist/esm/{app-globals-48531a04.js → app-globals-9ded4406.js} +12 -12
  182. package/dist/esm/{change-manager-8f5b72c2.js → change-manager-6a7eb88c.js} +1 -1
  183. package/dist/esm/{child-nodes-event-prevent-slimmer-8ceabe63.js → child-nodes-event-prevent-slimmer-97aae8a8.js} +3 -3
  184. package/dist/esm/{child-nodes-notify-observer-slimmer-afc15e00.js → child-nodes-notify-observer-slimmer-289caacc.js} +4 -4
  185. package/dist/esm/{component-051a594c.js → component-cae24190.js} +1 -1
  186. package/dist/esm/{component-global-style-slimmer-631f956f.js → component-global-style-slimmer-000e0c11.js} +1 -1
  187. package/dist/esm/{component-usage-runtime-metrics-21813c36.js → component-usage-runtime-metrics-385c7124.js} +1 -1
  188. package/dist/esm/{content-state-4b036bf1.js → content-state-42a06d75.js} +1255 -202
  189. package/dist/esm/{create-public-api-runtime-metrics-slimmer-14cb4599.js → create-public-api-runtime-metrics-slimmer-9ab05523.js} +2 -2
  190. package/dist/esm/{date-655c0af8.js → date-732bc749.js} +1 -1
  191. package/dist/esm/{deprecated-property-slimmer-9ea5019c.js → deprecated-property-slimmer-43d184b3.js} +2 -2
  192. package/dist/esm/{design-token-20fdba82.js → design-token-d06bc718.js} +3 -3
  193. package/dist/esm/{dom-node-subject-observer-factory-80358591.js → dom-node-subject-factory-5831cdd4.js} +2 -41
  194. package/dist/esm/dom-node-subject-observer-factory-dc486a8b.js +42 -0
  195. package/dist/esm/{dynamic-slimmer-85746483.js → dynamic-slimmer-90b8af32.js} +1 -1
  196. package/dist/esm/{element-appender-slimmer-4dfa326d.js → element-appender-slimmer-f3eceb79.js} +17 -9
  197. package/dist/esm/{event-emit-slimmer-c03cf145.js → event-emit-slimmer-f285e3ac.js} +6 -5
  198. package/dist/esm/{feature-flag-controller-dfde0cfa.js → feature-flag-controller-4b3fe6f8.js} +1 -1
  199. package/dist/esm/{form-field-controller-slimmer-de5fe574.js → form-field-controller-slimmer-6ef5641b.js} +66 -34
  200. package/dist/esm/global-slimmer-registry-17c4efd4.js +283 -0
  201. package/dist/esm/{icon-manager-3cef32e7.js → icon-manager-b889176b.js} +2 -2
  202. package/dist/esm/{text-color-toolbar-button-slimmer-b2270b64.js → image-annotation-action-8a12e0bd.js} +55 -6
  203. package/dist/esm/{global-slimmer-registry-6887a59f.js → index-187f71d1.js} +283 -284
  204. package/dist/esm/index.js +20 -22
  205. package/dist/esm/{inject-keyboard-manager-45309420.js → inject-keyboard-manager-b0135018.js} +1 -1
  206. package/dist/esm/{internal-icon-manager-7fc7535a.js → internal-icon-manager-900a5bb4.js} +1 -1
  207. package/dist/esm/{internal-vega-event-manager-3a3815d3.js → internal-vega-event-manager-07e1b3d9.js} +2 -2
  208. package/dist/esm/{internal-vega-z-index-manager-89e8b6f5.js → internal-vega-z-index-manager-7d2b54c3.js} +1 -1
  209. package/dist/esm/{keyboard-manager-2c06eafe.js → keyboard-manager-4c898a0d.js} +1 -1
  210. package/dist/esm/{keyboard-manager-slimmer-fd177285.js → keyboard-manager-slimmer-f80d6835.js} +2 -2
  211. package/dist/esm/loader.js +20 -21
  212. package/dist/esm/{mutation-observer-slimmer-ca2cb2e8.js → mutation-observer-slimmer-6cef9549.js} +1 -1
  213. package/dist/esm/{node.abstract-93746055.js → node-annotation.abstract-af11b11b.js} +36 -48
  214. package/dist/esm/{page-resize-observer-slimmer-8589ebc8.js → page-resize-observer-slimmer-beb7b0bd.js} +1 -1
  215. package/dist/esm/{remote-invocation-registry-2ec6936d.js → remote-invocation-registry-d97fa3bc.js} +2 -2
  216. package/dist/esm/{responsive-format-facade-559ec469.js → responsive-format-facade-c2ab9c87.js} +1 -1
  217. package/dist/esm/{state-background-color-formatter-16031a43.js → state-background-color-formatter-121ae7d3.js} +1 -1
  218. package/dist/esm/{string-input-formatter-slimmer-c9fb1fa1.js → string-input-formatter-slimmer-73fa06e6.js} +1 -1
  219. package/dist/esm/{style-formatter-51845b6d.js → style-formatter-f91471e8.js} +1 -1
  220. package/dist/esm/{sub-state-notify-slimmer-6e97a58a.js → sub-state-notify-slimmer-7d5a295a.js} +5 -5
  221. package/dist/esm/{sub-state-observer-slimmer-0968ce04.js → sub-state-observer-slimmer-901c7953.js} +5 -5
  222. package/dist/esm/{translation-b3fe8e74.js → translation-a98970d8.js} +3 -3
  223. package/dist/esm/{translation-slimmer-860cd766.js → translation-slimmer-5ee9912b.js} +2 -2
  224. package/dist/esm/{ui-5600b48f.js → ui-62e4be97.js} +1 -1
  225. package/dist/esm/vega-accordion.entry.js +17 -15
  226. package/dist/esm/vega-app-footer.entry.js +4 -3
  227. package/dist/esm/vega-app-header-button.entry.js +20 -18
  228. package/dist/esm/vega-backdrop.entry.js +5 -4
  229. package/dist/esm/vega-banner.entry.js +15 -13
  230. package/dist/esm/vega-bar-chart.entry.js +3 -2
  231. package/dist/esm/vega-box.entry.js +10 -9
  232. package/dist/esm/vega-breadcrumb.entry.js +13 -11
  233. package/dist/esm/vega-button-circle.entry.js +16 -14
  234. package/dist/esm/vega-button-group_2.entry.js +16 -14
  235. package/dist/esm/vega-button-link.entry.js +13 -11
  236. package/dist/esm/vega-button.entry.js +15 -13
  237. package/dist/esm/vega-calendar_3.entry.js +24 -22
  238. package/dist/esm/vega-card.entry.js +8 -7
  239. package/dist/esm/vega-carousel.entry.js +14 -12
  240. package/dist/esm/vega-checkbox_2.entry.js +20 -18
  241. package/dist/esm/vega-chip.entry.js +17 -15
  242. package/dist/esm/vega-color-picker.entry.js +17 -15
  243. package/dist/esm/vega-combo-box.entry.js +21 -19
  244. package/dist/esm/vega-counter-badge.entry.js +4 -3
  245. package/dist/esm/vega-date-picker_2.entry.js +560 -141
  246. package/dist/esm/{vega-dialog-controller-5b23f68c.js → vega-dialog-controller-34eb8967.js} +2 -2
  247. package/dist/esm/vega-dialog_2.entry.js +20 -18
  248. package/dist/esm/vega-divider.entry.js +8 -7
  249. package/dist/esm/vega-dropdown_5.entry.js +91 -40
  250. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  251. package/dist/esm/vega-field-error.entry.js +5 -4
  252. package/dist/esm/vega-field-label.entry.js +11 -9
  253. package/dist/esm/vega-file-uploader.entry.js +138 -56
  254. package/dist/esm/vega-flex.entry.js +11 -10
  255. package/dist/esm/vega-font.entry.js +17 -9
  256. package/dist/esm/vega-form.entry.js +29 -22
  257. package/dist/esm/vega-grid.entry.js +8 -7
  258. package/dist/esm/vega-hint.entry.js +4 -3
  259. package/dist/esm/vega-icon.entry.js +11 -10
  260. package/dist/esm/vega-image-uploader.entry.js +22 -20
  261. package/dist/esm/vega-input-credit-card.entry.js +21 -19
  262. package/dist/esm/vega-input-numeric.entry.js +22 -20
  263. package/dist/esm/vega-input-phone-number.entry.js +71 -23
  264. package/dist/esm/vega-input-range.entry.js +20 -18
  265. package/dist/esm/vega-input-select.entry.js +23 -21
  266. package/dist/esm/vega-input.entry.js +19 -17
  267. package/dist/esm/{vega-internal-event-id-4af5c6e9.js → vega-internal-event-id-458939b6.js} +2 -1
  268. package/dist/esm/vega-item-toggle.entry.js +12 -10
  269. package/dist/esm/vega-left-nav_5.entry.js +25 -23
  270. package/dist/esm/vega-line-chart.entry.js +4 -3
  271. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -6
  272. package/dist/esm/vega-page-notification_2.entry.js +8 -6
  273. package/dist/esm/vega-pagination.entry.js +19 -17
  274. package/dist/esm/vega-pie-chart.entry.js +4 -3
  275. package/dist/esm/vega-popover_2.entry.js +19 -17
  276. package/dist/esm/vega-progress-tracker.entry.js +12 -10
  277. package/dist/esm/vega-radio_2.entry.js +22 -20
  278. package/dist/esm/vega-rich-text-content.entry.js +340 -18
  279. package/dist/esm/vega-rich-text-editor_4.entry.js +101 -35
  280. package/dist/esm/vega-section-title.entry.js +4 -3
  281. package/dist/esm/vega-segment-control.entry.js +12 -10
  282. package/dist/esm/vega-selection-chip_2.entry.js +22 -20
  283. package/dist/esm/vega-selection-tile_2.entry.js +22 -20
  284. package/dist/esm/vega-sidenav_3.entry.js +20 -18
  285. package/dist/esm/vega-signature-capture.entry.js +23 -21
  286. package/dist/esm/{block-annotation.abstract-b0554e2b.js → vega-skeleton-loader-controller-0aaaf1fa.js} +8 -21
  287. package/dist/esm/vega-skeleton.entry.js +4 -3
  288. package/dist/esm/vega-slot-container.entry.js +3 -2
  289. package/dist/esm/vega-stepper.entry.js +19 -17
  290. package/dist/esm/vega-tab-group_2.entry.js +49 -36
  291. package/dist/esm/vega-table_8.entry.js +26 -24
  292. package/dist/esm/vega-text.entry.js +5 -4
  293. package/dist/esm/vega-textarea.entry.js +19 -17
  294. package/dist/esm/vega-time-picker_2.entry.js +26 -24
  295. package/dist/esm/vega-toggle-switch.entry.js +17 -15
  296. package/dist/esm/vega-tooltip_2.entry.js +13 -12
  297. package/dist/esm/vega.js +20 -21
  298. package/dist/types/components/vega-date-picker/assets/icons.d.ts +1 -1
  299. package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-controller.d.ts +4 -18
  300. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.d.ts +85 -0
  301. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +9 -0
  302. package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.d.ts +2 -0
  303. package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +21 -2
  304. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +20 -0
  305. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +10 -0
  306. package/dist/types/components/vega-file-uploader/slimmers/controllers/vega-file-uploader-file-limit-controller.d.ts +18 -0
  307. package/dist/types/components/vega-file-uploader/slimmers/renderers/vega-file-uploader-container-renderer.d.ts +15 -0
  308. package/dist/types/components/vega-file-uploader/vega-file-uploader.d.ts +12 -0
  309. package/dist/types/components/vega-form/types.d.ts +1 -0
  310. package/dist/types/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.d.ts +19 -0
  311. package/dist/types/components/vega-input-phone-number/vega-input-phone-number.d.ts +9 -0
  312. package/dist/types/components/vega-input-select/types.d.ts +1 -0
  313. package/dist/types/components/vega-pagination/internal/vega-pagination-page-size-selector.d.ts +2 -0
  314. package/dist/types/components/vega-pagination/types.d.ts +6 -0
  315. package/dist/types/components/vega-pagination/vega-pagination.d.ts +9 -1
  316. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +5 -0
  317. package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +4 -1
  318. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +0 -6
  319. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -15
  320. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +68 -4
  321. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +45 -3
  322. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +68 -3
  323. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +110 -5
  324. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +21 -5
  325. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +1 -14
  326. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +86 -2
  327. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +28 -0
  328. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +14 -0
  329. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +10 -0
  330. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +10 -0
  331. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +9 -0
  332. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +11 -0
  333. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +10 -0
  334. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +21 -0
  335. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +9 -0
  336. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.d.ts +31 -0
  337. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -0
  338. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +3 -1
  339. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller.d.ts +6 -6
  340. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller.d.ts +1 -0
  341. package/dist/types/components.d.ts +70 -5
  342. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  343. package/dist/types/helpers/slimmers/field-error-controller-silmmer.d.ts +7 -2
  344. package/dist/types/helpers/slimmers/field-error-ui-controller-slimmer.d.ts +2 -7
  345. package/dist/types/helpers/slimmers/form-field-message-translator.d.ts +12 -0
  346. package/dist/types/helpers/ui/element-appender.d.ts +4 -0
  347. package/dist/types/helpers/validator/form-field-controller.d.ts +5 -2
  348. package/dist/types/helpers/validator/rules/rich-text-editor-required-rule.d.ts +1 -1
  349. package/dist/types/helpers/validator/validation-rule-handler/form-field-validation-rule-handler-chain.d.ts +2 -2
  350. package/dist/types/helpers/validator/validator.d.ts +1 -1
  351. package/dist/types/types/components.type.d.ts +2 -1
  352. package/dist/vega/index.esm.js +1 -1
  353. package/dist/vega/p-000b3ab0.js +1 -0
  354. package/dist/vega/p-00738ae9.entry.js +1 -0
  355. package/dist/vega/p-01d0dbe6.entry.js +1 -0
  356. package/dist/vega/p-032df16f.js +1 -0
  357. package/dist/vega/p-032ed643.entry.js +13 -0
  358. package/dist/vega/p-05f5e22b.entry.js +1 -0
  359. package/dist/vega/p-0945a58d.entry.js +1 -0
  360. package/dist/vega/p-09c5de7f.entry.js +1 -0
  361. package/dist/vega/p-0a8b91f5.entry.js +1 -0
  362. package/dist/vega/{p-f763e2eb.js → p-0af4bda9.js} +1 -1
  363. package/dist/vega/p-0c2eb135.entry.js +1 -0
  364. package/dist/vega/p-12ad8ada.entry.js +1 -0
  365. package/dist/vega/p-13ce8d87.entry.js +1 -0
  366. package/dist/vega/p-14514252.entry.js +1 -0
  367. package/dist/vega/{p-11a19ca0.js → p-149d2801.js} +1 -1
  368. package/dist/vega/p-14f85e30.entry.js +1 -0
  369. package/dist/vega/p-1c298d5a.js +2 -0
  370. package/dist/vega/p-1d805cc0.entry.js +1 -0
  371. package/dist/vega/p-211df22a.entry.js +1 -0
  372. package/dist/vega/p-2205ee4c.js +1 -0
  373. package/dist/vega/p-26af2a8b.js +1 -0
  374. package/dist/vega/p-29b09aad.js +1 -0
  375. package/dist/vega/{p-443ad3b3.js → p-2d0d575f.js} +1 -1
  376. package/dist/vega/{p-368d0060.js → p-2fbda931.js} +1 -1
  377. package/dist/vega/p-2ff936da.entry.js +1 -0
  378. package/dist/vega/p-3126edd6.entry.js +1 -0
  379. package/dist/vega/p-317c72e4.entry.js +1 -0
  380. package/dist/vega/p-33b62194.js +1 -0
  381. package/dist/vega/{p-e0b25eaf.js → p-349dd552.js} +1 -1
  382. package/dist/vega/p-36ad5ee1.entry.js +1 -0
  383. package/dist/vega/p-42465abc.entry.js +1 -0
  384. package/dist/vega/{p-8f93242a.js → p-4387d550.js} +1 -1
  385. package/dist/vega/p-43b6aced.entry.js +1 -0
  386. package/dist/vega/p-441c9c90.entry.js +1 -0
  387. package/dist/vega/{p-8c26227e.js → p-446c691b.js} +1 -1
  388. package/dist/vega/p-45dd4698.entry.js +1 -0
  389. package/dist/vega/{p-3b4bde3e.js → p-4b500240.js} +1 -1
  390. package/dist/vega/p-4d307520.entry.js +1 -0
  391. package/dist/vega/p-524ff1a3.entry.js +1 -0
  392. package/dist/vega/p-5298fd92.entry.js +1 -0
  393. package/dist/vega/p-558450ba.entry.js +1 -0
  394. package/dist/vega/p-589530e4.entry.js +1 -0
  395. package/dist/vega/p-5915634b.js +1 -0
  396. package/dist/vega/p-5ae1a322.entry.js +1 -0
  397. package/dist/vega/p-5f377954.js +1 -1
  398. package/dist/vega/{p-70151c27.js → p-5f589974.js} +1 -1
  399. package/dist/vega/p-61116634.entry.js +1 -0
  400. package/dist/vega/p-618b35e4.entry.js +1 -0
  401. package/dist/vega/p-61cffe6a.entry.js +1 -0
  402. package/dist/vega/{p-62774231.js → p-6705c68a.js} +1 -1
  403. package/dist/vega/p-68f0aa72.entry.js +1 -0
  404. package/dist/vega/{p-59bdf9b8.js → p-6a334573.js} +1 -1
  405. package/dist/vega/p-6a3989dd.js +1 -0
  406. package/dist/vega/{p-0e0c47ad.js → p-6a5a5c7b.js} +1 -1
  407. package/dist/vega/p-6bf28253.entry.js +1 -0
  408. package/dist/vega/p-6c09b79a.entry.js +1 -0
  409. package/dist/vega/p-6df81ec2.entry.js +1 -0
  410. package/dist/vega/p-6e1ab235.js +1 -0
  411. package/dist/vega/p-72eee5e2.js +1 -0
  412. package/dist/vega/p-75bca1c6.js +1 -0
  413. package/dist/vega/{p-eac38d87.js → p-781fd6e0.js} +1 -1
  414. package/dist/vega/{p-1995e98e.js → p-79ec5d69.js} +1 -1
  415. package/dist/vega/p-7b72dc7a.entry.js +1 -0
  416. package/dist/vega/{p-3f1b542a.js → p-81dbada7.js} +1 -1
  417. package/dist/vega/{p-a6a7d0c9.js → p-8284a445.js} +1 -1
  418. package/dist/vega/p-83d87df5.js +1 -0
  419. package/dist/vega/p-84f2f342.js +1 -0
  420. package/dist/vega/p-8a77ff64.entry.js +1 -0
  421. package/dist/vega/p-8ab356e8.entry.js +1 -0
  422. package/dist/vega/p-8ba43640.entry.js +1 -0
  423. package/dist/vega/p-8d69f9ef.entry.js +1 -0
  424. package/dist/vega/p-906991ec.entry.js +1 -0
  425. package/dist/vega/p-92707b74.entry.js +1 -0
  426. package/dist/vega/p-96389073.entry.js +1 -0
  427. package/dist/vega/p-97453cd8.entry.js +1 -0
  428. package/dist/vega/{p-81ead59a.js → p-983c7d9b.js} +1 -1
  429. package/dist/vega/{p-843a0c1c.js → p-987fbbd0.js} +1 -1
  430. package/dist/vega/{p-296cc56b.js → p-9b797118.js} +1 -1
  431. package/dist/vega/p-9ec7d6c4.entry.js +1 -0
  432. package/dist/vega/p-a01f149d.entry.js +1 -0
  433. package/dist/vega/p-a213b305.entry.js +1 -0
  434. package/dist/vega/p-a956561e.entry.js +1 -0
  435. package/dist/vega/{p-3953c705.js → p-af7a3154.js} +1 -1
  436. package/dist/vega/p-b0c6cc78.entry.js +1 -0
  437. package/dist/vega/p-b1524c6c.js +1 -0
  438. package/dist/vega/p-b2bca332.entry.js +1 -0
  439. package/dist/vega/p-b5990090.js +1 -0
  440. package/dist/vega/p-b6815874.js +1 -0
  441. package/dist/vega/p-b688a71b.js +1 -0
  442. package/dist/vega/p-bcb10ae3.entry.js +1 -0
  443. package/dist/vega/p-bd2cdf10.entry.js +1 -0
  444. package/dist/vega/{p-39836361.js → p-be12fa36.js} +1 -1
  445. package/dist/vega/{p-a6104aa7.js → p-c06e55d6.js} +1 -1
  446. package/dist/vega/p-c2b276f7.entry.js +1 -0
  447. package/dist/vega/p-c51a3e3c.entry.js +1 -0
  448. package/dist/vega/p-cb8f8458.entry.js +1 -0
  449. package/dist/vega/p-cda26bdf.entry.js +1 -0
  450. package/dist/vega/p-cea7506a.entry.js +1 -0
  451. package/dist/vega/p-cff45d92.entry.js +1 -0
  452. package/dist/vega/p-d09d153f.entry.js +1 -0
  453. package/dist/vega/p-d3d4bf51.entry.js +1 -0
  454. package/dist/vega/p-d994874a.entry.js +1 -0
  455. package/dist/vega/p-de25326f.js +1 -0
  456. package/dist/vega/{p-e1e1fcf0.js → p-de664bdd.js} +1 -1
  457. package/dist/vega/p-df4142dd.entry.js +1 -0
  458. package/dist/vega/p-df9dbe2d.entry.js +1 -0
  459. package/dist/vega/p-e8f540d8.js +1 -0
  460. package/dist/vega/p-ebb30774.entry.js +1 -0
  461. package/dist/vega/p-eed64b78.entry.js +1 -0
  462. package/dist/vega/p-efbea85a.entry.js +1 -0
  463. package/dist/vega/p-f690539e.entry.js +1 -0
  464. package/dist/vega/p-f7fdf737.entry.js +1 -0
  465. package/dist/vega/p-fe9644a0.js +1 -0
  466. package/dist/vega/{p-acf7f903.js → p-ff4bafa3.js} +1 -1
  467. package/dist/vega/vega.esm.js +1 -1
  468. package/package.json +3 -2
  469. package/dist/cjs/text-node-494856f3.js +0 -955
  470. package/dist/esm/text-node-a652ca87.js +0 -933
  471. package/dist/vega/p-0190095c.entry.js +0 -1
  472. package/dist/vega/p-034e6348.entry.js +0 -1
  473. package/dist/vega/p-0cd2b50f.entry.js +0 -1
  474. package/dist/vega/p-10393104.js +0 -1
  475. package/dist/vega/p-109a00cf.entry.js +0 -1
  476. package/dist/vega/p-11cb477b.js +0 -1
  477. package/dist/vega/p-1564cc4d.entry.js +0 -1
  478. package/dist/vega/p-18886765.entry.js +0 -1
  479. package/dist/vega/p-19b26168.entry.js +0 -1
  480. package/dist/vega/p-21992602.entry.js +0 -1
  481. package/dist/vega/p-22563151.entry.js +0 -1
  482. package/dist/vega/p-23795da1.entry.js +0 -1
  483. package/dist/vega/p-29277e41.entry.js +0 -1
  484. package/dist/vega/p-2a7e9422.entry.js +0 -1
  485. package/dist/vega/p-2ca6d977.entry.js +0 -1
  486. package/dist/vega/p-2e419309.entry.js +0 -1
  487. package/dist/vega/p-3039bef8.js +0 -1
  488. package/dist/vega/p-34939c97.entry.js +0 -1
  489. package/dist/vega/p-3897bb2d.entry.js +0 -1
  490. package/dist/vega/p-390c5236.entry.js +0 -1
  491. package/dist/vega/p-3ce31dc3.js +0 -1
  492. package/dist/vega/p-452e284a.js +0 -1
  493. package/dist/vega/p-4c41dd64.js +0 -1
  494. package/dist/vega/p-55beac7f.entry.js +0 -1
  495. package/dist/vega/p-57405834.entry.js +0 -1
  496. package/dist/vega/p-584dcd9b.js +0 -1
  497. package/dist/vega/p-589e6041.entry.js +0 -1
  498. package/dist/vega/p-5e95402a.entry.js +0 -1
  499. package/dist/vega/p-5eee21b4.entry.js +0 -1
  500. package/dist/vega/p-62cea2e7.entry.js +0 -1
  501. package/dist/vega/p-65b79fd7.js +0 -1
  502. package/dist/vega/p-6741e2b9.entry.js +0 -1
  503. package/dist/vega/p-6a084fe1.entry.js +0 -1
  504. package/dist/vega/p-6b286226.entry.js +0 -1
  505. package/dist/vega/p-6b722905.entry.js +0 -1
  506. package/dist/vega/p-6e4b2752.entry.js +0 -1
  507. package/dist/vega/p-7209d03b.js +0 -1
  508. package/dist/vega/p-734ea281.entry.js +0 -1
  509. package/dist/vega/p-76fc408e.entry.js +0 -1
  510. package/dist/vega/p-7a9f453e.entry.js +0 -1
  511. package/dist/vega/p-80ccd894.entry.js +0 -1
  512. package/dist/vega/p-84c597c8.entry.js +0 -1
  513. package/dist/vega/p-8836c1b9.js +0 -1
  514. package/dist/vega/p-8b78c6a3.entry.js +0 -1
  515. package/dist/vega/p-8be45a45.entry.js +0 -1
  516. package/dist/vega/p-8d7b45f7.entry.js +0 -1
  517. package/dist/vega/p-8e17b9dd.entry.js +0 -1
  518. package/dist/vega/p-8f004647.entry.js +0 -1
  519. package/dist/vega/p-925a2137.js +0 -1
  520. package/dist/vega/p-92f88033.entry.js +0 -1
  521. package/dist/vega/p-94de7a02.entry.js +0 -1
  522. package/dist/vega/p-9968e71d.entry.js +0 -1
  523. package/dist/vega/p-9c1eeff2.js +0 -2
  524. package/dist/vega/p-9d1b9e70.entry.js +0 -1
  525. package/dist/vega/p-9e732a26.entry.js +0 -1
  526. package/dist/vega/p-9f39dd10.js +0 -1
  527. package/dist/vega/p-a5ffe912.js +0 -1
  528. package/dist/vega/p-a6169ad6.entry.js +0 -1
  529. package/dist/vega/p-a8bf559a.js +0 -1
  530. package/dist/vega/p-afec17ad.entry.js +0 -1
  531. package/dist/vega/p-b3f9cc3a.entry.js +0 -13
  532. package/dist/vega/p-b693c1ac.entry.js +0 -1
  533. package/dist/vega/p-b9e2add4.entry.js +0 -1
  534. package/dist/vega/p-bd894860.entry.js +0 -1
  535. package/dist/vega/p-c0d6a587.entry.js +0 -1
  536. package/dist/vega/p-c26e6820.entry.js +0 -1
  537. package/dist/vega/p-c34487e1.entry.js +0 -1
  538. package/dist/vega/p-c532b132.entry.js +0 -1
  539. package/dist/vega/p-ca2fb711.js +0 -1
  540. package/dist/vega/p-cebf93f1.entry.js +0 -1
  541. package/dist/vega/p-cfdc148a.entry.js +0 -1
  542. package/dist/vega/p-d0351d71.entry.js +0 -1
  543. package/dist/vega/p-d2ab6096.entry.js +0 -1
  544. package/dist/vega/p-d35643c5.entry.js +0 -1
  545. package/dist/vega/p-d400a1d9.entry.js +0 -1
  546. package/dist/vega/p-d6732a72.entry.js +0 -1
  547. package/dist/vega/p-d720b06a.entry.js +0 -1
  548. package/dist/vega/p-d987e404.entry.js +0 -1
  549. package/dist/vega/p-d9b86108.entry.js +0 -1
  550. package/dist/vega/p-e27e115d.entry.js +0 -1
  551. package/dist/vega/p-e65c8ac7.entry.js +0 -1
  552. package/dist/vega/p-e79057cc.js +0 -1
  553. package/dist/vega/p-e89e9769.entry.js +0 -1
  554. package/dist/vega/p-ecd64c7f.entry.js +0 -1
  555. package/dist/vega/p-f357cf46.js +0 -1
  556. package/dist/vega/p-f5b2e72a.entry.js +0 -1
  557. package/dist/vega/p-f6af3749.js +0 -1
  558. package/dist/vega/p-fc622a75.js +0 -1
@@ -0,0 +1,2 @@
1
+ let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},i={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),a=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),c=u(t,s),r=d(n);i.ael(o,l,c,r),(t.o=t.o||[]).push((()=>i.rel(o,l,c,r)))}))},u=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){le(e)}},f=(e,t)=>8&t?s:e,d=e=>0!=(2&e),p="http://www.w3.org/1999/xlink",h=new WeakMap,y=e=>"sc-"+e.p,m={},$=e=>"object"==(e=typeof e)||"function"===e,b=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1;const c=[],r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!$(l))&&(l+=""),o&&i?c[c.length-1].h+=l:c.push(o?w(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,v);const a=w(e,null);return a.m=t,c.length>0&&(a.$=c),a.g=s,a},w=(e,t)=>({t:0,v:e,h:t,j:null,$:null,m:null,g:null}),g={},v={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(k)},j=e=>({vattrs:e.m,vchildren:e.$,vkey:e.g,vname:e.k,vtag:e.v,vtext:e.h}),k=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),b(e.vtag,t,...e.vchildren||[])}const t=w(e.vtag,e.vtext);return t.m=e.vattrs,t.$=e.vchildren,t.g=e.vkey,t.k=e.vname,t},S=(e,t,n,l,o,c)=>{if(n!==l){let r=ne(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=C(n),o=C(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const s=$(l);if((r||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let i=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,i=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(i?e.removeAttributeNS(p,t):e.removeAttribute(t)):(!r||4&c||o)&&!s&&(l=!0===l?"":l,i?e.setAttributeNS(p,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ne(s,a)?a.slice(2):a[2]+t.slice(3),n&&i.rel(e,t,n,!1),l&&i.ael(e,t,l,!1)}},O=/\s/,C=e=>e?e.split(O):[],M=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.m||m,i=t.m||m;for(l in o)l in i||S(s,l,o[l],void 0,n,t.t);for(l in i)S(s,l,o[l],i[l],n,t.t)},x=(t,l,s)=>{const i=l.$[s];let c,r,a=0;if(null!==i.h)c=i.j=o.createTextNode(i.h);else{if(n||(n="svg"===i.v),c=i.j=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.v),n&&"foreignObject"===i.v&&(n=!1),M(null,i,n),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),i.$)for(a=0;a<i.$.length;++a)r=x(t,i,a),r&&c.appendChild(r);"svg"===i.v?n=!1:"foreignObject"===c.tagName&&(n=!0)}return c},P=(e,n,l,s,o,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);o<=i;++o)s[o]&&(c=x(null,l,o),c&&(s[o].j=c,r.insertBefore(c,n)))},E=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,W(l),s.remove())},L=(e,t)=>e.v===t.v&&e.g===t.g,R=(e,t)=>{const l=t.j=e.j,s=e.$,o=t.$,i=t.v,c=t.h;null===c?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||M(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],p=l.length-1,h=l[0],y=l[p];for(;i<=u&&c<=p;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==h)h=l[++c];else if(null==y)y=l[--p];else if(L(f,h))R(f,h),f=t[++i],h=l[++c];else if(L(d,y))R(d,y),d=t[--u],y=l[--p];else if(L(f,y))R(f,y),e.insertBefore(f.j,d.j.nextSibling),f=t[++i],y=l[--p];else if(L(d,h))R(d,h),e.insertBefore(d.j,f.j),d=t[--u],h=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===h.g){r=a;break}r>=0?(o=t[r],o.v!==h.v?s=x(t&&t[c],n,r):(R(o,h),t[r]=void 0,s=o.j),h=l[++c]):(s=x(t&&t[c],n,c),h=l[++c]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?P(e,null==l[p+1]?null:l[p+1].j,n,l,c,p):c>p&&E(t,i,u)})(l,s,t,o):null!==o?(null!==e.h&&(l.textContent=""),P(l,null,t,o,0,o.length-1)):null!==s&&E(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.h!==c&&(l.data=c)},W=e=>{e.m&&e.m.ref&&e.m.ref(null),e.$&&e.$.map(W)},D=e=>Z(e).S,F=(e,t,n)=>{const l=D(e);return{emit:e=>N(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},N=(e,t,n)=>{const l=i.ce(t,n);return e.dispatchEvent(l),l},T=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},U=(e,t)=>{if(e.t|=16,!(4&e.t))return T(e,e.C),pe((()=>A(e,t)));e.t|=512},A=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>B(n,e,t))),e.u=null),l=B(n,"componentWillLoad")),l=G(l,(()=>B(n,"componentWillRender"))),G(l,(()=>H(e,n,t)))},H=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=y(t);const l=ie.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=h.get(e=e.head||e);s||h.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);q(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>V(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},q=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.M,i=n.P||w(null,null),c=(e=>e&&e.v===g)(l)?l:b(null,null,l);t=s.tagName,o.L&&(c.m=c.m||{},o.L.map((([e,t])=>c.m[t]=s[e]))),c.v=null,c.t|=4,n.P=c,c.j=i.j=s.shadowRoot||s,e=s["s-sc"],R(i,c)})(n,l)}catch(e){le(e,n.S)}return null},V=e=>{const t=e.S,n=e.i,l=e.C;B(n,"componentDidRender"),64&e.t?B(n,"componentDidUpdate"):(e.t|=64,I(t),B(n,"componentDidLoad"),e.R(t),l||z()),e.W(t),e.O&&(e.O(),e.O=void 0),512&e.t&&de((()=>U(e,!1))),e.t&=-517},_=e=>{{const t=Z(e),n=t.S.isConnected;return n&&2==(18&t.t)&&U(t,!1),n}},z=()=>{I(o.documentElement),de((()=>N(s,"appload",{detail:{namespace:"vega"}})))},B=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){le(e)}},G=(e,t)=>e&&e.then?e.then(t):t(),I=e=>e.classList.add("hydrated"),J=(e,t,n)=>{if(t.D){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.D),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>Z(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=Z(e),o=s.S,i=s.N.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||$(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.D[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(s.N.set(t,n),r)){if(l.F&&128&c){const e=l.F[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){le(e,o)}}))}2==(18&c)&&U(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=Z(this);return n.T.then((()=>n.i[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){i.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.L.push([e,s]),s}))}}return e},K=e=>{B(e,"connectedCallback")},Q=(e,t={})=>{const n=[],l=t.exclude||[],c=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),d=o.createElement("style"),p=[];let h,m=!0;Object.assign(i,t),i.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],p:t[1],D:t[2],U:t[3]};s.D=t[2],s.U=t[3],s.L=[],s.F={};const o=s.p,u=class extends HTMLElement{constructor(e){super(e),te(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?p.push(this):i.jmp((()=>(e=>{if(0==(1&i.t)){const t=Z(e),n=t.M,l=()=>{};if(1&t.t)a(e,t,n.U),K(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){T(t,t.C=n);break}}n.D&&Object.entries(n.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=oe(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.F=s.watchers,J(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){le(e)}t.t&=-9,t.t|=128,e(),K(t.i)}if(s.style){let e=s.style;const t=y(n);if(!ie.has(t)){const l=()=>{};((e,t,n)=>{let l=ie.get(e);r&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,ie.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.C,i=()=>U(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>(()=>{if(0==(1&i.t)){const e=Z(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),B(t,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).A}};s.H=e[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,J(u,s,1)))}))})),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),u.insertBefore(d,f?f.nextSibling:u.firstChild),m=!1,p.length?p.map((e=>e.connectedCallback())):i.jmp((()=>h=setTimeout(z,30)))},X=(e,t)=>t,Y=new WeakMap,Z=e=>Y.get(e),ee=(e,t)=>Y.set(t.i=e,t),te=(e,t)=>{const n={t:0,S:e,M:t,N:new Map};return n.T=new Promise((e=>n.W=e)),n.A=new Promise((e=>n.R=e)),e["s-p"]=[],e["s-rc"]=[],a(e,n,t.U),Y.set(e,n)},ne=(e,t)=>t in e,le=(e,t)=>(0,console.error)(e,t),se=new Map,oe=e=>{const t=e.p.replace(/-/g,"_"),n=e.H,l=se.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(se.set(n,e),e[t])),le)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ie=new Map,ce=[],re=[],ae=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&i.t?de(fe):i.raf(fe))},ue=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){le(e)}e.length=0},fe=()=>{ue(ce),ue(re),(l=ce.length>0)&&i.raf(fe)},de=e=>c().then(e),pe=ae(re,!0);export{X as F,g as H,Q as b,F as c,_ as f,D as g,b as h,c as p,ee as r}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r as i,c as n,H as s,g as o}from"./p-1c298d5a.js";import{s as a}from"./p-9b797118.js";import{c as r,V as l,M as c,I as d}from"./p-6e1ab235.js";import{V as h,I as g}from"./p-4387d550.js";import{c as m}from"./p-e8f540d8.js";import{f as p}from"./p-6a3989dd.js";import{P as f}from"./p-5f589974.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-29b09aad.js";import"./p-0af4bda9.js";import"./p-79ec5d69.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";var v=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class x extends l{render(){var t;return e("div",{class:"vega-segment-control-container"},null===(t=this.segments)||void 0===t?void 0:t.map((e=>this.segmentRenderer.render(e))))}}v([r()],x.prototype,"segments",void 0),v([r()],x.prototype,"segmentRenderer",void 0);var b=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class u extends l{componentWillLoad(){this.setDefaultSelected()}watchSegments(){this.setDefaultSelected()}watchSelected(){this.changeEventEmitter.emit(this.selected)}setSelected(e){this.selected=e.key}setDefaultSelected(){var e;(null===(e=this.segments)||void 0===e?void 0:e.length)>0&&!this.segments.find((e=>e.key===this.selected))&&(this.selected=this.segments[0].key)}}b([r({writable:!0})],u.prototype,"selected",void 0),b([r()],u.prototype,"segments",void 0),b([r()],u.prototype,"changeEventEmitter",void 0),b([c("componentWillLoad")],u.prototype,"componentWillLoad",null),b([c("watchSegments")],u.prototype,"watchSegments",null),b([c("watchSelected")],u.prototype,"watchSelected",null);var w=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class j extends l{watchSegments(){this.setIsOverflowBlockSegments()}watchBlock(){this.setIsOverflowBlockSegments()}watchSize(){this.setIsOverflowBlockSegments()}setIsOverflowBlockSegments(){this.isOverflowBlockSegments=this.isExceedContainerWidth()}isExceedContainerWidth(){if(this.block){const e=this.host.shadowRoot.querySelector(".vega-segment-control-container");return e.clientWidth<e.children.length*j.SEGMENTS_OVERFLOW_THRESHOLD[this.size]+4*(e.children.length-1)+5}return!1}}j.SEGMENTS_OVERFLOW_THRESHOLD={medium:101.9,small:82},w([r()],j.prototype,"host",void 0),w([r()],j.prototype,"block",void 0),w([r()],j.prototype,"size",void 0),w([r({writable:!0})],j.prototype,"isOverflowBlockSegments",void 0),w([c("watchSegments")],j.prototype,"watchSegments",null),w([c("watchBlock")],j.prototype,"watchBlock",null),w([c("watchSize")],j.prototype,"watchSize",null);var y=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class S extends l{render(t){return e("button",{key:t.key,class:{"vega-segment":!0,selected:this.selected===t.key,disabled:t.disabled,[`${this.size}`]:!0},onClick:()=>this.selectedController.setSelected(t),disabled:t.disabled},this.renderSegments(t))}renderSegments(i){return e(t,null,(this.isOverflowBlockSegments||!this.isOverflowBlockSegments&&"text-only"!==this.variant)&&i.icon&&this.renderIcon(i),(this.isOverflowBlockSegments&&!i.icon||!this.isOverflowBlockSegments&&"icon-only"!==this.variant)&&i.text&&this.renderText(i))}renderIcon(t){return e("vega-tooltip",{text:t.text,trigger:t.text&&(this.isOverflowBlockSegments||!this.isOverflowBlockSegments&&"icon-only"===this.variant)?"hover":"none",placement:["bottom","top"],disableInteractive:!1},e("vega-icon",{icon:t.icon,size:"size-16"}))}renderText(t){return e("vega-text",{overflow:"ellipsis",tooltip:{placement:["bottom","top"]}},t.text)}}y([r()],S.prototype,"host",void 0),y([r()],S.prototype,"size",void 0),y([r()],S.prototype,"selected",void 0),y([r()],S.prototype,"variant",void 0),y([r()],S.prototype,"block",void 0),y([r()],S.prototype,"isOverflowBlockSegments",void 0),y([r()],S.prototype,"selectedController",void 0);var k=function(e,t,i,n){var s,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(a=(o<3?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const R=class{constructor(e){i(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.globalSlimmers={},this.segmentControlRenderer=new x,this.segmentOverflowController=new j,this.segmentRenderer=new S,this.selectedController=new u,this.changeEventEmitter=m(R,p),this.pageResizeObserverSlimmer=new f({callback:()=>{this.segmentControlWidth=this.host.clientWidth,this.segmentOverflowController.setIsOverflowBlockSegments()},shouldTrigger:()=>this.host.clientWidth!==this.segmentControlWidth}),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.segmentControlWidth=0,this.isOverflowBlockSegments=!1,this.block=!1,this.size="medium",this.segments=[],this.variant="default"}watchBlock(){}watchSize(){}watchSegments(){}watchSelected(){}componentWillLoad(){}render(){return a(e(s,{class:{"vega-segment-control-block":this.block}},this.segmentControlRenderer.render()),this.host)}get host(){return o(this)}static get watchers(){return{block:["watchBlock"],size:["watchSize"],segments:["watchSegments"],selected:["watchSelected"]}}};k([g()],R.prototype,"globalSlimmers",void 0),k([d()],R.prototype,"segmentControlRenderer",void 0),k([d()],R.prototype,"segmentOverflowController",void 0),k([d()],R.prototype,"segmentRenderer",void 0),k([d()],R.prototype,"selectedController",void 0),k([d()],R.prototype,"changeEventEmitter",void 0),k([d()],R.prototype,"pageResizeObserverSlimmer",void 0),k([d()],R.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),R.style=':host{display:inline-block}.vega-segment-control-container{display:flex;gap:4px;border-radius:9999px;background-color:rgba(var(--v-bg-segment-control, 89, 96, 99, 0.1));padding:3px}:host(.vega-segment-control-block){display:block}:host(.vega-segment-control-block) .vega-segment{flex-basis:0;flex-grow:1}.vega-segment{display:flex;align-items:center;justify-content:center;gap:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));border-radius:9999px;cursor:pointer;text-align:center;border-width:1px;border-style:solid;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-color:transparent}.vega-segment vega-icon{vertical-align:middle}.vega-segment.medium{padding-left:24px;padding-right:24px;padding-top:8px;padding-bottom:8px;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-segment.medium{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}.vega-segment.small{padding-left:16px;padding-right:16px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-segment.small{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-segment.small{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-segment.small{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-segment.disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));pointer-events:none}.vega-segment:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.vega-segment:hover{background-color:rgba(var(--v-bg-segment-hover, 205, 209, 211, 1))}.vega-segment.selected{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1))}';export{R as vega_segment_control}
@@ -0,0 +1 @@
1
+ import{r as t,c as r,h as a,H as e,g as o}from"./p-1c298d5a.js";import{s as i}from"./p-9b797118.js";import{i as n}from"./p-81dbada7.js";import{C as c}from"./p-2d0d575f.js";import{F as v,a as s}from"./p-d057999f.js";import{I as l}from"./p-6e1ab235.js";import{V as d,I as b}from"./p-4387d550.js";import{c as g}from"./p-e8f540d8.js";import{a as p}from"./p-6a3989dd.js";import{C as x}from"./p-be12fa36.js";import"./p-b1f65b13.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-6705c68a.js";import"./p-4bcd6612.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-2205ee4c.js";import"./p-6a334573.js";import"./p-29b09aad.js";import"./p-0af4bda9.js";import"./p-79ec5d69.js";import"./p-5f377954.js";import"./p-ff4bafa3.js";import"./p-7a40e033.js";import"./p-112455b1.js";const h=[{payloadKey:"VARIANT_IS_PRIMARY",payloadDescription:"The circular button is rendered with the bg-action background color, which typically signifies a primary or important action",payloadValue:t=>"primary"===t.variant},{payloadKey:"VARIANT_IS_SECONDARY",payloadDescription:"The circular button is rendered with a transparent background and an action border color. This variant is often used for secondary or less prominent actions",payloadValue:t=>"secondary"===t.variant},{payloadKey:"VARIANT_IS_ICON_ONLY",payloadDescription:"The circular button is rendered with an icon displayed in the default state, and the circle background appears when hovering over the button",payloadValue:t=>"icon-only"===t.variant}];var u=function(t,r,a,e){var o,i=arguments.length,n=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(i<3?o(n):i>3?o(r,a,n):o(r,a))||n);return i>3&&n&&Object.defineProperty(r,a,n),n};const y=class{constructor(a){t(this,a),this.vegaClick=r(this,"vegaClick",7),this.click=r(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=g(y,p),this.eventPrevent=new x([p],(()=>this.host),{useCapture:!0,customPreventHandle:t=>{this.disabled&&t.stopImmediatePropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new d(h),this.size="default",this.variant="primary",this.disabled=!1,this.danger=!1,this.type="button",this.iconColor="text-primary",this.showTooltip=!0,this.handleClick=t=>{this.disabled?t.preventDefault():(["submit","reset"].includes(this.type)&&c.notify("submit"===this.type?v:s,{host:this.host}),this.clickEventEmitter.emit(void 0,t))}}componentWillLoad(){this.host.innerHTML=""}render(){var t;return i(a(e,null,a("vega-tooltip",{text:this.label,trigger:this.label&&this.showTooltip&&!this.disabled?"hover":"none",disableInteractive:null===(t=this.tooltip)||void 0===t?void 0:t.disableInteractive},this.renderButton())),this.host)}renderButton(){var t;return a("button",{type:this.type,"aria-label":(null===(t=this.label)||void 0===t?void 0:t.trim())||"No label defined",class:{[`vega-button-circle-size-${this.size}`]:!0,[`vega-button-circle-variant-${this.variant}`]:!0,"vega-button-circle-danger":this.danger,"vega-button-circle-disabled":this.disabled,[`${n(this.iconColor)}`]:"icon-only"==this.variant},onClick:this.handleClick,disabled:this.disabled,part:"button"},this.renderContent())}renderContent(){return a("vega-icon",{icon:this.icon,size:this.getIconSize(this.size),part:"icon"})}getIconSize(t){switch(t){case"large":return"size-24";case"extra-small":return"size-12";default:return"size-16"}}get host(){return o(this)}};u([b()],y.prototype,"globalSlimmers",void 0),u([l()],y.prototype,"clickEventEmitter",void 0),u([l()],y.prototype,"eventPrevent",void 0),u([l()],y.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host{display:inline-block;border-radius:9999px}:host vega-tooltip{border-radius:9999px}button{border-radius:9999px;cursor:pointer;outline:2px solid transparent;outline-offset:2px;line-height:normal}button:focus{outline:none}.vega-button-circle-size-extra-small{width:24px;height:24px;padding:6px}.vega-button-circle-size-extra-small vega-icon{vertical-align:top}.vega-button-circle-size-small{width:32px;height:32px;padding:8px}.vega-button-circle-size-default{width:40px;height:40px;padding:12px}.vega-button-circle-size-large{width:56px;height:56px;padding:16px}.vega-button-circle-size-extra-small.vega-button-circle-variant-secondary{padding:4px}.vega-button-circle-size-small.vega-button-circle-variant-secondary{padding:6px}.vega-button-circle-size-default.vega-button-circle-variant-secondary{padding:10px}.vega-button-circle-size-large.vega-button-circle-variant-secondary{padding:14px}.vega-button-circle-variant-primary{border-width:0px;background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-button-circle-variant-primary:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-button-circle-variant-primary:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.vega-button-circle-variant-primary:focus-visible{background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-secondary{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1))}.vega-button-circle-variant-secondary:hover{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}.vega-button-circle-variant-secondary:active{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.vega-button-circle-variant-secondary:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-icon-only{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px}.vega-button-circle-variant-icon-only:hover{background-color:rgba(var(--v-bg-action-tertiary-hover, 4, 4, 28, 0.05))}.vega-button-circle-variant-icon-only:active{background-color:rgba(var(--v-bg-action-tertiary-active, 4, 4, 28, 0.1))}.vega-button-circle-variant-icon-only:focus-visible{background-color:rgba(var(--v-bg-action-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25))}.vega-button-circle-variant-primary.vega-button-circle-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-button-circle-variant-primary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-secondary.vega-button-circle-danger{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:hover{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-secondary.vega-button-circle-danger:active{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2))}.vega-button-circle-variant-secondary.vega-button-circle-danger:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-variant-icon-only.vega-button-circle-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:hover{background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:active{background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-danger:focus-visible{background-color:rgba(var(--v-bg-danger-tertiary, 0, 0, 0, 0));box-shadow:0 0 0 4px rgba(var(--v-ring-action-danger-focus, 230, 50, 87, 0.25))}.vega-button-circle-disabled{pointer-events:none}.vega-button-circle-disabled:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0))}.vega-button-circle-variant-primary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-secondary.vega-button-circle-disabled{background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1))}.vega-button-circle-variant-icon-only.vega-button-circle-disabled{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border-width:0px}.vega-button-circle-disabled:focus{box-shadow:unset !important}";export{y as vega_button_circle}
@@ -0,0 +1 @@
1
+ import{L as s,q as t,a as o,d as a}from"./p-b1f65b13.js";import{L as r}from"./p-6e1ab235.js";class e{format(t){if(s(t)){const s=[];return this.getStates().forEach((o=>{const a=this.formatToken(t[o]);a&&s.push(`:host${"default"===o?"":`(:${o})`}{\n\t${a}\n}`)})),s.join("\n")}return`:host{\n\t${this.formatToken(t)}\n}`}}const n=new class extends e{constructor(){super(...arguments),this.states=["default","hover","active","focus-visible"]}formatToken(s){return t(s)?`background-color: ${a[s]};`:(r.warn(`The backgroundColor value ${s} is invalid, it must be a value of: `,o),"")}getStates(){return this.states}};export{e as S,n as s}
@@ -0,0 +1 @@
1
+ import{W as t,B as s,a as e,M as i,b as n,s as r,N as h,c as o,R as a,d as c,A as u,I as l,V as d}from"./p-446c691b.js";import{O as p,d as w}from"./p-6a3989dd.js";import{C as f}from"./p-2d0d575f.js";import{a as b,V as k,b as m}from"./p-fe9644a0.js";import{i as g}from"./p-b1f65b13.js";import"./p-6e1ab235.js";import{g as x}from"./p-33b62194.js";const y=async()=>t.handle(),N=async t=>new Promise((s=>{const e=new p(O.bind(null),(()=>{f.unregister(w.getSubject(t,b),e),s(null)}));f.register(w.getSubject(t,b),e)})),O=()=>!0;class A extends s{constructor(t){super(),this.type=e.ALIGNMENT,this.textAlign=t}static from(t){return[e.ALIGNMENT,new A(t)]}toJSON(){return{textAlign:this.textAlign}}renderClass(){return`v-rte--horizontal-alignment-${this.textAlign}`}render(){return null}}class S extends s{constructor(t){super(),this.type=e.INDENT,this.indent=Math.max(0,t)}static from(t){return[e.INDENT,new S(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}render(){return this.indent>0?{"margin-left":16*this.indent+"px"}:null}}class B{replaceBlockWithBlocks(t,s){this.blocks&&(s.forEach((t=>{t.parent=this})),this.blocks=this.blocks.flatMap((e=>e===t?s:e)))}appendChildBlocks(t){this.blocks&&(t.forEach((t=>{t.parent=this})),this.blocks=this.blocks.concat(t))}removeChildBlock(t){this.blocks&&(this.blocks=this.blocks.filter((s=>s!==t)))}}class C extends i{constructor(t){super(),this.type=n.APPEND_CHILD_NODES,this.entityToBeAppended=t}}class j extends i{constructor(t){super(),this.type=n.DELETE_CHILD,this.entityToBeRemoved=t}}const v=[{key:"black",light:"#111128",dark:"#E3E3E8"},{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],L="​";class E extends B{constructor(t){super(),this.annotationMap=new Map,this.id=t}static createAnnotationEntity(t,s){switch(t){case"textAlign":return A.from(s);case"indent":return S.from(s)}}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof s)).reduce(((t,s)=>Object.assign(Object.assign({},t),s.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(t){if(this.doApply(t),t.isFlushable){const t=r.getDOMByEntity(this);if(t){const s=w.getSubjectFromParentNodeByEventId(t,k);s&&f.notify(s,{})}}}doApply(t){t instanceof i?this.doModifyActionApply(t):this.applyAnnotationAction(t)}applyAnnotationAction(t){const s=t.toAnnotation();this.annotationMap.set(s.type,s),"function"==typeof this.doAnnotationActionApply&&this.doAnnotationActionApply(t)}appendChildNodes(t){t.forEach((t=>{t.parentBlock=this})),this.nodes=this.nodes.concat(t)}mergeTwoBlocksNodes(t){if(this.type===t.type||"image"!==this.type&&"image"!==t.type){let s=t.nodes;"image"!==this.type&&(s=t.nodes.filter((t=>t.text&&"​"!==t.text))),this.apply(new C(s)),t.parent.apply(new j(t))}}concatBlocksNodes(t){const s=[];return t.map((t=>{"image"!==t.type&&(s.push(...t.nodes),t.parent.apply(new j(t)))})),s}getPreviousNode(t){const s=t.parentBlock,e=s.nodes.indexOf(t);if(e>0)return s.nodes[e-1];if(s.parent){const t=this.getPreviousBlock(s);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const s=t.parentBlock,e=s.nodes.indexOf(t);if(s.nodes[e+1])return s.nodes[e+1];if(s.parent){const t=this.getNextBlock(s);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const s=t.parentBlock,e=s.nodes.indexOf(t),i=s.parent;if("list-item"===s.type){const t=i.parent;return 0===e&&Array.isArray(i.blocks)&&i.blocks[0]===s&&"list-item"!==t.type&&Array.isArray(t.blocks)&&t.blocks[0]===i}return 0===e&&Array.isArray(i.blocks)&&i.blocks[0]===s}getBlockLastNode(t){if("list-item"===t.type)return t.children&&t.children.length>0?this.getBlockLastNode(t.children[t.children.length-1]):t.nodes[t.nodes.length-1];if("number-list"===t.type||"bullet-list"===t.type){if(t.blocks)return this.getBlockLastNode(t.blocks[t.blocks.length-1])}else if(t.nodes)return t.nodes[t.nodes.length-1]}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.blocks)return this.getBlockFirstNode(t.blocks[0])}else if(t.nodes)return t.nodes[0]}getPreviousBlock(t){if(t&&t.parent&&t.parent.blocks){const s=t.parent.blocks.indexOf(t);if(s>0)return t.parent.blocks[s-1];if(("number-list"===t.parent.type||"bullet-list"===t.parent.type)&&0===s)return this.getPreviousBlock(t.parent)}}getNextBlock(t){if(t&&t.parent&&t.parent.blocks){const s=t.parent.blocks.indexOf(t);if(t.parent.blocks[s+1])return t.parent.blocks[s+1];if("list-item"===t.type&&t.parent.blocks.length===s+1)return this.getNextBlock(t.parent)}}replaceNodeWithNodes(t,s){this.nodes&&(s.forEach((t=>{t.parentBlock=this})),this.nodes=this.nodes.flatMap((e=>e===t?s:e)))}}class I extends h{constructor(t="md",s){super(),this.type=o.IMAGE,this.size=t,this.alt=s}static from(t,s){return[o.IMAGE,new I(t,s)]}toJSON(){return g(this.alt)?{size:this.size,alt:this.alt}:{size:this.size}}render(){switch(this.size){case"sm":return{width:"25%"};case"md":return{width:"50%"};case"lg":return{width:"100%"}}}}class J extends a{constructor(t,s,e,i){super(t,i),this.type=c.IMAGE,this.url=s,this.parentBlock=e}static from(t,s){const e=new J(t.id,t.url,s);let i;return i=t.annotations&&0!==Object.keys(t.annotations).length?t.annotations:{size:"md"},e.annotationMap=new Map(Object.keys(i).map((()=>I.from(i.size,i.alt))).filter(g)),e}toJSON(){const t=this.annotationMap.get(o.IMAGE),s={};return(null==t?void 0:t.size)&&(s.size=t.size),(null==t?void 0:t.alt)&&(s.alt=t.alt),Object.assign(Object.assign({id:this.id},Object.keys(s).length>0?{annotations:s}:{}),{type:"image",url:this.url})}doAnnotationActionApply(t){const s=t.toAnnotation();this.annotationMap.set(s.type,s)}doModifyActionApply(t){}}class M extends i{constructor(t){super(),this.type=n.REPLACE_CHILD_NODES,this.newChildNodes=t}}class T extends i{constructor(t,...s){super(),this.type=n.INSERT_BLOCKS_AFTER,this.referBlock=t,this.blocksToBeInserted=s}}class F extends i{constructor(t,s){super(),this.type=n.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=s}}class W{}class P extends W{constructor(){super(...arguments),this.doSplit=!0}}class z extends u{constructor(t){super(),this.type=l.SELECTION_RANGE,this.range=t}}class H extends h{constructor(t){super(),this.type=o.STRIKETHROUGH,this.strikethrough=t}static from(t){return[o.STRIKETHROUGH,new H(t)]}toJSON(){return{strikethrough:this.strikethrough}}renderClass(){return this.strikethrough?"v-rte--strikethrough":null}render(){return null}}class D extends h{constructor(t){super(),this.type=o.UNDERLINE,this.underline=t}static from(t){return[o.UNDERLINE,new D(t)]}toJSON(){return{underline:this.underline}}renderClass(){return this.underline?"v-rte--underline":null}render(){return null}}class V extends h{constructor(t){super(),this.type=o.ITALIC,this.italic=t}static from(t){return[o.ITALIC,new V(t)]}toJSON(){return{italic:this.italic}}render(){return this.italic?{"font-style":"italic"}:null}}class K extends h{constructor(t){super(),this.type=o.BOLD,this.bold=t}static from(t){return[o.BOLD,new K(t)]}toJSON(){return{bold:this.bold}}render(){return this.bold?{"font-weight":"700"}:null}}class U extends u{constructor(){super(...arguments),this.type=l.CLEAR_FORMATTING,this.items=[o.BOLD,o.ITALIC,o.UNDERLINE,o.STRIKETHROUGH,o.TEXT_COLOR,o.CODE]}}class q extends h{constructor(t){super(),this.type=o.CODE,this.code=t}static from(t){return[o.CODE,new q(t)]}toJSON(){return{code:this.code}}renderClass(){return this.code?"v-rte--code":null}render(){return null}}class R extends h{constructor(t){super(),this.type=o.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[o.TEXT_COLOR,new R(t)]}toJSON(){return{textColor:this.textColor.key}}renderClass(){return null}render(){return{color:d.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return v.find((s=>s.key===t))||v[0]}}class $ extends h{constructor(t){super(),this.type=o.LINK,this.link=t}static from(t){return[o.LINK,new $({href:t.href,groupKey:t.groupKey})]}toJSON(){return{link:{href:this.link.href,groupKey:this.link.groupKey}}}toEqual(t){return this.link.groupKey===t.link.groupKey}render(){return null}}class Z extends P{constructor({link:t,newText:s,needMergeNode:e,doSplit:i}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=e,this.newText=s,g(i)&&(this.doSplit=i)}toAnnotation(){return new $(this.link)}}class G extends P{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new q(this.code)}}class Q extends P{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new U}}class X extends i{constructor(t){super(),this.type=n.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class Y extends u{constructor(t){super(),this.type=l.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}}class _ extends W{constructor(t,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=s}toAnnotation(){return new Y(this.groupKey)}}class tt extends W{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class st extends W{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class et extends a{constructor(t,s,e,i){super(t,i),this.type=c.TEXT,this.parentBlock=e,this.text=s}static from(t,s){const e=new et(t.id,t.text,s),{annotations:i}=t;return i&&(e.annotationMap=new Map(Object.keys(i).map((t=>(i.link&&s.apply(new _(i.link.groupKey,[e])),this.createAnnotationEntity(t,i[t])))).filter(g))),e}static createAnnotationEntity(t,s){switch(t){case"bold":return K.from(s);case"italic":return V.from(s);case"underline":return D.from(s);case"strikethrough":return H.from(s);case"code":return q.from(s);case"textColor":return R.from(s);case"link":return $.from(s)}}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof h)).reduce(((t,s)=>Object.assign(Object.assign({},t),s.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}cloneWithText(t){return new et(x(),t,this.parentBlock,new Map(this.annotationMap))}isEmpty(){return!this.text||"​"===this.text||"\n"===this.text}doAnnotationActionApply(t){const s=this.getAnnotationByType(l.SELECTION_RANGE);if(t instanceof P&&t.doSplit&&s){const{startContainer:e,endContainer:i,startOffset:n,endOffset:r}=s.range,h=e===i&&n===r;this.parentBlock.nodes=this.parentBlock.nodes.flatMap((e=>e.id===this.id?h?this.insertNewNode(n,t):this.shouldSplitSelection(s.range)?this.splitTextNode(t,s.range):(this.applyActionToNode(this,t),this):e))}else this.applyActionToNode(this,t);this.parentBlock.mergeNodes(t)}doModifyActionApply(t){switch(t.type){case n.UPDATE_TEXT:this.updateText(t.newTextContent);break;case n.REPLACE_SELECTED_TEXT:this.replaceSelectedText(t.textToBeInsert,t.currentRange)}}splitTextNode(t,s){const{startContainer:e,endContainer:i,startOffset:n}=s,h=e.parentElement,o=i.parentElement,a=(t,s,e)=>{const i=t.substring(0,s),n=t.substring(s,e),r=t.substring(e);return[this.cloneWithText(i),this.cloneWithText(n),this.cloneWithText(r)]},c=h&&r.getEntityByDOM(h),u=o&&r.getEntityByDOM(o);if(c&&c.id===this.id){const r=e===i?s.endOffset:this.text.length,[h,o,c]=a(this.text,n,r);return this.applyActionToNode(o,t),[h,o,c].filter((t=>!!t.text))}if(u&&u.id===this.id){const[e,i,n]=a(this.text,0,s.endOffset);return this.applyActionToNode(i,t),[e,i,n].filter((t=>!!t.text))}return this.applyActionToNode(this,t),this}applyActionToNode(t,s){const e=s.toAnnotation();if(s instanceof tt)this.syncUpSelectedNodes(t);else if(e instanceof z||this.syncUpSelectedNodes(t),s instanceof st)this.annotationMap.delete(s.annotationType);else{if(!(e instanceof U))return e instanceof h||e instanceof z?(s instanceof Z&&(g(s.newText)&&(t.text=s.newText),this.parentBlock.apply(new _(s.link.groupKey,[t]))),s instanceof G&&this.applyActionToNode(t,new Q),void t.annotationMap.set(e.type,e)):void 0;e.items.forEach((s=>{t.deleteAnnotationByType(s)}))}}replaceSelectedText(t,s){if(s&&s.startContainer&&s.endContainer){const{startContainer:e,endContainer:i,startOffset:n,endOffset:h}=s,o=e.parentElement,a=i.parentElement,c=o&&r.getEntityByDOM(o),u=a&&r.getEntityByDOM(a);let l=0,d=this.text.length;c&&c===this?(l=n,d=e===i?h:d):u&&u===this&&(d=h),this.apply(new X(this.text.slice(0,l)+t+this.text.slice(d)))}}updateText(t){this.text=t,!this.text&&this.isLinkNode()&&this.annotationMap.delete(o.LINK)}isLinkNode(){return this.annotationMap.has("LINK")}shouldSplitSelection(t){const{startContainer:s,endContainer:e,startOffset:i,endOffset:n}=t;return s!==e||i>0||n<(e.textContent?e.textContent.length:0)}syncUpSelectedNodes(t){const s=r.getDOMByEntity(this);if(s){const e=w.getSubjectFromParentNodeByEventId(s,m);e&&f.notify(e,{node:t})}}insertNewNode(t,s){if(0===t){const t=this.cloneWithText("");return this.applyActionToNode(t,s),[t,this]}if(t===this.text.length){const t=this.cloneWithText("");return this.applyActionToNode(t,s),[this,t]}const e=this.cloneWithText(this.text.substring(0,t)),i=this.cloneWithText(""),n=this.cloneWithText(this.text.substring(t));return this.applyActionToNode(i,s),[e,i,n]}}class it extends s{constructor(t){super(),this.type=e.TEXT_STYLE,this.textStyle=t}static from(t){return[e.TEXT_STYLE,new it(t)]}toJSON(){return{textStyle:this.textStyle}}render(){const t={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500"};switch(this.textStyle){case"paragraph":return t;case"title":return{fontFamily:"Inter",fontSize:"36px",lineHeight:"40px",fontWeight:"500"};case"subtitle":return{fontFamily:"Inter",fontSize:"28px",lineHeight:"32px",fontWeight:"500"};case"heading-1":return{fontFamily:"Inter",fontSize:"22px",lineHeight:"24px",fontWeight:"500"};case"heading-2":return{fontFamily:"Inter",fontSize:"20px",lineHeight:"24px",fontWeight:"500"};case"heading-3":return{fontFamily:"Inter",fontSize:"18px",lineHeight:"22px",fontWeight:"500"}}}}class nt extends W{constructor(t,s){super(),this.isFlushable=!0,this.textStyle=t,this.bold=s}toAnnotation(){return new it(this.textStyle)}}class rt extends P{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new K(this.bold)}}class ht extends i{constructor(t){super(),this.type=n.MERGE_TWO_BLOCKS_NODES,this.blockNeedToBeMerged=t}}class ot extends i{constructor(t,...s){super(),this.type=n.INSERT_BLOCKS_BEFORE,this.referBlock=t,this.blocksToBeInserted=s}}class at extends E{constructor(t,s){super(t),this.nodes=[],this.type=s,this.annotationMap=at.isAcceptableTextStyle(s)?new Map([it.from(s)]):new Map([it.from("paragraph")])}static from(t){const s=new at(t.id,t.type),{annotations:e}=t;return s.nodes=t.nodes.map((t=>et.from(t,s))),e&&Object.entries(e).forEach((([t,e])=>{const i=this.createAnnotationEntity(t,e);g(i)&&s.annotationMap.set(...i)})),s}static createAnnotationEntity(t,s){return"textStyle"===t?it.from(s):super.createAnnotationEntity(t,s)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3"].includes(t)}mergeNodes(t){this.nodes=this.nodes.reduce(((s,e)=>{const i=s.at(-1);if(t instanceof Z&&t.needMergeNode){const t=null==i?void 0:i.getAnnotationByType(o.LINK),n=e.getAnnotationByType(o.LINK);if(t&&n&&t.toEqual(n))return s}return[...s,e]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.nodes.map((t=>t.toJSON()))})}cloneWithNodes(t){const s=new at(x(),this.type);return s.nodes=[],s.apply(new C(t)),s}isNotEmpty(){return this.nodes.length>0&&this.nodes.some((t=>!t.isEmpty()))}getLastNode(){return this.nodes[this.nodes.length-1]}doAnnotationActionApply(t){if(t instanceof nt)return"list-item"!==this.type&&(this.type=t.textStyle),void this.nodes.forEach(t.bold?t=>{const s=new rt(!0);s.doSplit=!1,t.apply(s)}:t=>{t.apply(new st(o.BOLD))});if(t instanceof _){const s=this.getAnnotationByType(l.LINK_GROUP);if(s){const e=s.linkGroups.get(t.groupKey);s.linkGroups.set(t.groupKey,[...e,...t.nodes]),this.annotationMap.set(l.LINK_GROUP,s)}}}doModifyActionApply(t){switch(t.type){case n.DELETE_CHILD:this.removeChildNode(t);break;case n.APPEND_CHILD_NODES:this.appendChildNodes(t.entityToBeAppended);break;case n.CLEAR_CHILD_NODES:this.nodes=[];break;case n.SPLIT_BLOCK_WITH_NODE:t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode);break;case n.REPLACE_CHILD_NODES:this.nodes=[],this.appendChildNodes(t.newChildNodes);break;case n.MERGE_TWO_BLOCKS_NODES:this.mergeTwoBlocksNodes(t.blockNeedToBeMerged);break;case n.BREAK_SINGLE_BLOCK:t.newBlock=this.breakSingleTextBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_SINGLE_BLOCK:t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_MULTIPLE_BLOCKS:t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks);break;case n.TRANSFORM_LIST_BLOCK:this.convertParagraphToList(t);break;case n.DELETE_BLOCK_CONTENT:this.deleteNodeContent(t);break;case n.INSERT_IMAGE_TO_BLOCK:this.insertImage(t);break;case n.INSERT_NODES_BEFORE:this.replaceNodeWithNodes(t.referNode,[...t.nodesToBeInserted,t.referNode])}}splitTextNodeBlock(t,s){if(t){const e=t.text.slice(0,s),i=t.text.slice(s),n=this.nodes.indexOf(t);if(n>-1){const s=this.nodes.slice(0,n),r=this.nodes.slice(n+1);e&&s.push(t.cloneWithText(e)),i&&r.unshift(t.cloneWithText(i)),this.apply(new M(s));const h=this.cloneWithNodes(r);return this.parent.apply(new T(this,h)),h}}}isCaretPositionAtStart(t,s){return t===this.nodes[0]&&0===s}isCaretPositionAtEnd(t,s){const e=this.nodes[this.nodes.length-1];return t===e&&(t.isEmpty()||s===e.text.length)}lineBreakSingleBlock(t,s){if(t){const e=new et(x(),"\n",this),i=t.text.slice(0,s),n=t.text.slice(s),r=this.nodes.indexOf(t);if(r>-1){const s=this.nodes.slice(0,r),h=this.nodes.slice(r+1);i&&s.push(t.cloneWithText(i)),n&&h.unshift(t.cloneWithText(n)),this.mergeLineBreakNodes(s,e,h)}return e}}lineBreakMultipleBlocks(t){const s=this.nodes,e=new et(x(),"\n",this),i=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,e,i),e}deleteNodeContent(t){const s=t.startContainerNode,e=t.startOffset;if(0!==e&&!s.isEmpty()){const i=s.text.slice(0,e-1)+s.text.slice(e);if(s.apply(new X(i)),i)return void(t.previousNode=s);{const e=this.getPreviousNode(s);return e&&e.parentBlock===this&&"\n"===e.text||1===this.nodes.length?void(t.previousNode=s):(this.apply(new j(s)),void(t.previousNode=e))}}{let e=this.getPreviousNode(s),i=null;if(this.nodes.length&&e&&e.parentBlock!==this)s.isEmpty()&&this.apply(new j(s)),e.parentBlock.apply(new ht(this));else if(this.isContentFirstNode(s)&&s.isEmpty()&&(i=this.getNextNode(s)),s.isEmpty()&&this.apply(new j(s)),e instanceof et&&e.isEmpty()){const t=e;e=this.getPreviousNode(e),t.parentBlock.apply(new j(t)),e||(i=s)}0===this.nodes.length&&this.parent.apply(new j(this)),e?t.previousNode=e:i&&(t.nextNode=i)}}removeChildNode(t){this.nodes=this.nodes.filter((s=>s!==t.entityToBeRemoved)),0===this.nodes.length&&this.parent.apply(new j(this))}mergeLineBreakNodes(t,s,e){(0===e.length||e[0]&&""===e[0].text)&&e.push(new et(x(),"\n",this,t[t.length-1]&&t[t.length-1].annotationMap)),this.apply(new M([...t,s,...e]))}breakSingleTextBlock(t,s){const e=this.copyInlineStyleToNewParagraph(t);if(this.isCaretPositionAtEnd(t,s))this.parent.apply(new T(this,e));else{if(!this.isCaretPositionAtStart(t,s)){const e=new F(t,s);return this.apply(e),e.newBlock}this.parent.apply(new ot(this,e))}return e}convertParagraphToList(t){const s=this.parent.createList(t.listType),e=t.selectedBlocks.map((t=>this.parent.toListItem(t)));s.apply(new C(e)),this.parent.apply(new T(t.selectedBlocks[0],s)),t.selectedBlocks.forEach((t=>{t.parent.apply(new j(t))}))}insertImage(t){const s=t.splitPointNode,e=t.startOffsetOfNode,i=t.imageBlockToBeInserted;if(this.isCaretPositionAtEnd(s,e))this.parent.apply(new T(this,i));else if(this.isCaretPositionAtStart(s,e))this.parent.apply(new ot(this,i));else{const t=new F(s,e);this.apply(t),this.parent.apply(new T(this,i))}}copyInlineStyleToNewParagraph(t){const s=t.cloneWithText("");s.annotationMap.delete(o.LINK);const e=new at(x(),"paragraph");return e.apply(new C([s])),e}}class ct extends E{constructor(t){super(t),this.type="image",this.nodes=[]}static from(t){const s=new ct(t.id),{annotations:e}=t;return s.nodes=t.nodes.map((t=>J.from(t,s))),e&&Object.entries(e).forEach((([t,e])=>{const i=this.createAnnotationEntity(t,e);g(i)&&s.annotationMap.set(...i)})),s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:"image",nodes:this.nodes.map((t=>t.toJSON()))})}isNotEmpty(){return this.nodes.length>0&&this.nodes.some((t=>t.url.length>0))}getLastNode(){return this.nodes[this.nodes.length-1]}doModifyActionApply(t){switch(t.type){case n.DELETE_CHILD:this.removeChildNode(t);break;case n.CLEAR_CHILD_NODES:this.nodes=[];break;case n.APPEND_CHILD_NODES:this.appendChildNodes(t.entityToBeAppended);break;case n.REPLACE_CHILD_NODES:this.nodes=[],this.appendChildNodes(t.newChildNodes);break;case n.SPLIT_BLOCK_WITH_NODE:t.newBlock=this.splitImageNodes(t.splitPointNode,t.startOffsetOfNode);break;case n.MERGE_TWO_BLOCKS_NODES:this.mergeTwoBlocksNodes(t.blockNeedToBeMerged);break;case n.BREAK_SINGLE_BLOCK:t.newBlock=this.breakSingleBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_SINGLE_BLOCK:t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_MULTIPLE_BLOCKS:t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks);break;case n.DELETE_BLOCK_CONTENT:this.deleteNodeContent(t);break;case n.INSERT_IMAGE_TO_BLOCK:this.insertImage(t);break;case n.INSERT_NODES_AFTER:this.replaceNodeWithNodes(t.referNode,[t.referNode,...t.nodesToBeInserted]);break;case n.INSERT_NODES_BEFORE:this.replaceNodeWithNodes(t.referNode,[...t.nodesToBeInserted,t.referNode])}}removeChildNode(t){this.nodes=this.nodes.filter((s=>s!==t.entityToBeRemoved)),0===this.nodes.length&&this.parent.apply(new j(this))}splitImageNodes(t,s){const e=this.nodes.indexOf(t);if(e>-1){const t=this.nodes.slice(0,e+s),i=this.nodes.slice(e+s);this.apply(new M(t));const n=this.cloneWithNodes(i);return this.parent.apply(new T(this,n)),n}}cloneWithNodes(t){const s=new ct(x());return s.nodes=[],s.apply(new C(t)),s}breakSingleBlock(t,s){const e=at.from({id:x(),type:"paragraph",nodes:[{id:x(),type:"text",text:""}]});if(this.isCaretPositionAtEnd(t,s))this.parent.apply(new T(this,e));else{if(!this.isCaretPositionAtStart(t,s)){const e=new F(t,s);return this.apply(e),e.newBlock}this.parent.apply(new ot(this,e))}return e}lineBreakSingleBlock(t,s){const e=this.breakSingleBlock(t,s);if(e)return e.nodes[0]}isCaretPositionAtStart(t,s){return t===this.nodes[0]&&0===s}isCaretPositionAtEnd(t,s){return t===this.nodes[this.nodes.length-1]&&1===s}lineBreakMultipleBlocks(t){const s=at.from({id:x(),type:"paragraph",nodes:[{id:x(),type:"text",text:"\n"}]});this.parent.apply(new T(this,s));const e=this.concatBlocksNodes(t.slice(1));return(0===e.length||e[0]&&""===e[0].text)&&e.push(new et(x(),"\n",s)),s.apply(new C(e)),s.nodes[0]}deleteNodeContent(t){const s=t.startContainerNode,e=t.startOffset;let i=this.getPreviousNode(s),n=null;if(1===e){const t=s.parentBlock;this.isContentFirstNode(s)&&(n=this.getNextNode(s)),1===t.nodes.length?t.parent.apply(new j(t)):s.parentBlock.apply(new j(s))}else{const e=i;e&&e instanceof J&&(i=this.getPreviousNode(e),e.parentBlock.apply(new j(e)),i||(t.nextNode=s))}i?t.previousNode=i:n&&(t.nextNode=n)}insertImage(t){const s=t.splitPointNode,e=t.startOffsetOfNode,i=t.imageBlockToBeInserted;this.nodes.length<1?this.apply(new C(t.imageBlockToBeInserted.nodes)):this.isCaretPositionAtEnd(s,e)?this.parent.apply(new T(this,i)):this.isCaretPositionAtStart(s,e)?this.parent.apply(new ot(this,i)):(this.apply(new F(s,e)),this.parent.apply(new T(this,i)))}}class ut extends at{constructor(t,s){super(t,"list-item"),this.children=[],this.children=s}static from(t){const s=new ut(t.id);s.nodes=t.nodes.map((t=>et.from(t,s))),t.children&&(s.children=t.children.map((t=>{const e=dt.from(t);return e.parent=s,e})));const{annotations:e}=t;return e&&Object.entries(e).forEach((([t,e])=>{const i=this.createAnnotationEntity(t,e);g(i)&&s.annotationMap.set(...i)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.children)||void 0===t?void 0:t.map((t=>t.toJSON()))})}cloneWithNodes(t){const s=new ut(x());return s.nodes=[],s.apply(new C(t)),s}isNotEmpty(){return this.children?super.isNotEmpty()||this.children.some((t=>t.isNotEmpty())):super.isNotEmpty()}getLastNode(){return this.children&&this.children.length>0?this.children[this.children.length-1].getLastNode():super.getLastNode()}doModifyActionApply(t){switch(t.type){case n.DELETE_CHILD:this.removeListChildNode(t);break;case n.DELETE_NEST_LIST:this.removeNestList(t);break;case n.APPEND_CHILD_NODES:this.appendChildNodes(t.entityToBeAppended);break;case n.CLEAR_CHILD_NODES:this.nodes=[];break;case n.SPLIT_BLOCK_WITH_NODE:this.splitListItemBlock(t);break;case n.REPLACE_CHILD_NODES:this.nodes=[],this.appendChildNodes(t.newChildNodes);break;case n.REPLACE_NEST_LIST:this.replaceNestList(t.newList);break;case n.MERGE_TWO_BLOCKS_NODES:this.mergeTwoBlocksNodes(t.blockNeedToBeMerged);break;case n.BREAK_SINGLE_BLOCK:t.newBlock=this.breakSingleListItemBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_SINGLE_BLOCK:t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset);break;case n.LINE_BREAK_MULTIPLE_BLOCKS:t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks);break;case n.DELETE_BLOCK_CONTENT:this.deleteListNodeContent(t);break;case n.INSERT_IMAGE_TO_BLOCK:this.parent.apply(t);break;case n.INSERT_NODES_BEFORE:this.replaceNodeWithNodes(t.referNode,[...t.nodesToBeInserted,t.referNode])}}removeListChildNode(t){this.nodes=this.nodes.filter((s=>s!==t.entityToBeRemoved)),0!==this.nodes.length||this.children&&this.children.length||this.parent.apply(new j(this))}removeNestList(t){this.children&&(this.children=this.children.length>1?this.children.filter((s=>s!==t.nestListBlockToBeRemoved)):void 0)}replaceNestList(t){t.forEach((t=>{t.parent=this})),this.children=t}splitListItemBlock(t){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode)}breakSingleListItemBlock(t,s){const e=new ut(x()),i=this.copyInlineStyleToNewNode(t);if(e.apply(new C([i])),this.isCaretPositionAtEnd(t,s))return this.breakListItemAtEnd(e);if(!this.isCaretPositionAtStart(t,s)){const e=new F(t,s);return this.apply(e),e.newBlock}return this.parent.apply(new ot(this,e)),e}breakListItemAtEnd(t){const s=this.parent.blocks[this.parent.blocks.length-1],e=1===this.nodes.length&&this.nodes[0].isEmpty();if(this===s&&e){const s=this.parent.parent;if("list-item"!==s.type){const e=at.from({id:x(),type:"paragraph",nodes:[]});return e.apply(new C(t.nodes)),s.apply(new T(this.parent,e)),this.parent.apply(new j(this)),e}s.parent.apply(new T(s,t)),this.parent.apply(new j(this))}else this.parent.apply(new T(this,t));return t}deleteListNodeContent(t){const s=t.startContainerNode.parentBlock.parent;this.deleteNodeContent(t),0===s.blocks.length&&s.parent.apply(new j(s))}copyInlineStyleToNewNode(t){const s=t.cloneWithText("");return s.annotationMap.delete(o.LINK),s}}class lt extends i{constructor(t){super(),this.type=n.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class dt extends E{constructor(t,s){super(t),this.type="bullet-list",this.blocks=[],this.type=s}static from(t){const s=new dt(t.id,t.type);return s.blocks=t.blocks.map((t=>{const e=ut.from(t);return e.parent=s,e})),s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.blocks.map((t=>t.toJSON()))})}isNotEmpty(){return this.blocks.length>0&&this.blocks.some((t=>t.isNotEmpty()))}getLastNode(){return this.blocks[this.blocks.length-1].getLastNode()}doModifyActionApply(t){switch(t.type){case n.DELETE_CHILD:this.removeListItemBlock(t.entityToBeRemoved);break;case n.INSERT_BLOCKS_AFTER:this.replaceBlockWithBlocks(t.referBlock,[t.referBlock,...t.blocksToBeInserted]);break;case n.INSERT_BLOCKS_BEFORE:this.replaceBlockWithBlocks(t.referBlock,[...t.blocksToBeInserted,t.referBlock]);break;case n.APPEND_CHILD_NODES:this.appendChildBlocks(t.entityToBeAppended);break;case n.TRANSFORM_LIST_BLOCK:this.convertToList(t);break;case n.TRANSFORM_PARAGRAPH_BLOCK:this.convertToParagraph(t);break;case n.INSERT_IMAGE_TO_BLOCK:this.insertImage(t)}}toParagraph(t){const s=new at(x(),"paragraph");return s.apply(new C(t.nodes)),s.annotationMap=t.annotationMap,s}convertToList(t){const s=t.selectedBlocks,e=this.parent.createList(t.listType);if(s.every((t=>t.parent===this)))e.apply(new C(this.blocks)),this.parent.apply(new T(this,e)),this.parent.apply(new j(this)),s.forEach((t=>t.nodes.map((t=>t.apply(new tt)))));else{const s=t.selectedBlocks.map((t=>this.parent.toListItem(t)));e.apply(new C(s)),this.parent.apply(new T(this,e)),t.selectedBlocks.forEach((t=>{t.parent.apply(new j(t))})),0===this.blocks.length&&this.parent.apply(new j(this))}}convertToParagraph(t){let s=!1,e=!1;const i=t.selectedBlocks,n=i.map((t=>(t.nodes.map((t=>t.apply(new tt))),t===this.blocks[0]&&(s=!0),t===this.blocks[this.blocks.length-1]&&(e=!0),this.toParagraph(t))));if(s)this.parent.apply(new ot(this,...n));else if(e)this.parent.apply(new T(this,...n));else{const t=this.blocks.indexOf(i[0]),s=this.blocks.indexOf(i[i.length-1]),e=this.parent.createList(this.type);e.apply(new C(this.blocks.slice(0,t)));const r=this.parent.createList(this.type);r.apply(new C(this.blocks.slice(s+1))),this.parent.apply(new ot(this,e,...n,r)),this.parent.apply(new j(this))}i.map((t=>{this.apply(new j(t))})),0===this.blocks.length&&this.parent.apply(new j(this))}insertImage(t){this.parent.apply("list-item"!==this.parent.type?new T(this,t.imageBlockToBeInserted):t)}removeListItemBlock(t){super.removeChildBlock(t),0===this.blocks.length&&this.parent&&this.parent.apply(this.parent instanceof ut?new lt(this):new j(this))}}class pt extends B{constructor(t){super(),t.forEach((t=>{t.parent=this})),this.blocks=t}static fromJSON(t){const s=t.map((t=>{switch(t.type){case"paragraph":case"title":case"subtitle":case"heading-1":case"heading-2":case"heading-3":return at.from(t);case"image":return ct.from(t);case"bullet-list":case"number-list":return dt.from(t);default:throw new Error(`[Vega] Unknown block type: ${t.type}`)}}));return new pt(s)}static createEmptyContent(){return pt.fromJSON([{id:x(),type:"paragraph",nodes:[{id:x(),type:"text",text:""}]}])}clone(){return new pt([...this.blocks])}toJSON(){return this.blocks.map((t=>t.toJSON()))}apply(t){switch(t.type){case n.DELETE_CHILD:this.removeChildBlock(t.entityToBeRemoved);break;case n.APPEND_CHILD_NODES:this.appendChildBlocks(t.entityToBeAppended);break;case n.INSERT_BLOCKS_AFTER:this.replaceBlockWithBlocks(t.referBlock,[t.referBlock,...t.blocksToBeInserted]);break;case n.INSERT_BLOCKS_BEFORE:this.replaceBlockWithBlocks(t.referBlock,[...t.blocksToBeInserted,t.referBlock])}}toListItem(t){t.nodes.map((t=>t.apply(new tt)));const s=new ut(x());return s.apply(new C(t.nodes)),s.annotationMap=t.annotationMap,s}createList(t){return new dt(x(),t)}}export{W as A,rt as B,Q as C,A as H,I,Z as L,ht as M,at as R,H as S,P as T,D as U,pt as V,L as Z,ct as a,dt as b,N as c,R as d,v as e,et as f,V as g,nt as h,it as i,K as j,G as k,z as l,S as m,J as n,ut as o,X as p,j as q,C as r,ot as s,F as t,M as u,T as v,y as w}
@@ -0,0 +1 @@
1
+ import{C as o}from"./p-2d0d575f.js";import{O as s,d as e}from"./p-6a3989dd.js";const r=()=>!0;class t{static addUniqueObserverToNode(a,d,i,n){if(a){const c=new s("function"==typeof n?n.bind(null):r,i);t.removeUniqueObserverFromNode(a,d),o.register(e.getSubject(a,d),c)}}static removeUniqueObserverFromNode(s,r){e.isExist(s,r)&&o.clearObserversBySubject(e.getSubject(s,r))}}export{t as D}
@@ -1 +1 @@
1
- import{L as s}from"./p-9c1eeff2.js";const t=new class{constructor(){this.pubSubMap=new Map}register(s,t){if(this.pubSubMap.has(s)){const e=this.pubSubMap.get(s);e&&!e.includes(t)&&e.push(t)}else this.pubSubMap.set(s,[t])}unregister(s,t){if(this.pubSubMap.has(s)){const e=this.pubSubMap.get(s);e&&e.includes(t)&&e.splice(e.indexOf(t),1)}}clearObserversBySubject(s){this.pubSubMap.delete(s)}notify(t,e){this.pubSubMap.has(t)&&this.pubSubMap.get(t).forEach((r=>{try{r.notify(e)}catch(e){s.warn(`Encountered error while notifying observer for subject ${t.getDescription()}`,e)}}))}};export{t as C}
1
+ import{L as s}from"./p-6e1ab235.js";const t=new class{constructor(){this.pubSubMap=new Map}register(s,t){if(this.pubSubMap.has(s)){const e=this.pubSubMap.get(s);e&&!e.includes(t)&&e.push(t)}else this.pubSubMap.set(s,[t])}unregister(s,t){if(this.pubSubMap.has(s)){const e=this.pubSubMap.get(s);e&&e.includes(t)&&e.splice(e.indexOf(t),1)}}clearObserversBySubject(s){this.pubSubMap.delete(s)}notify(t,e){this.pubSubMap.has(t)&&this.pubSubMap.get(t).forEach((r=>{try{r.notify(e)}catch(e){s.warn(`Encountered error while notifying observer for subject ${t.getDescription()}`,e)}}))}};export{t as C}
@@ -1 +1 @@
1
- import{i as t}from"./p-b1f65b13.js";import{d as s,V as i}from"./p-9c1eeff2.js";class h{constructor(t){this.insertMode=!0,this.maskConfig=t,this.slotRegex=new RegExp(t.slot),this.acceptRegex=new RegExp(t.accept,"g"),this.insertMode=!1!==t.insertMode}format(s,i){if(s.length>this.getLengthLimit()&&t(i)){const t=[...s],h=s.length-this.getLengthLimit();return t.splice(i-h,h),t.join("")}return this.replaceMaskWithMatchedInputSlots(s,this.getMatchedInputSlotValue(s))}calculateCaretPosition(s,i){if(!t(i))return null;if(s.length>this.getLengthLimit())return i-(s.length-this.getLengthLimit());const h=s.substring(0,i);return i+(this.format(h).length-h.length)}shouldOverrideComponentValueAfterBlur(){return!(!this.maskConfig||!0!==this.maskConfig.overrideValue)}shouldTriggerAtInit(){return!(!this.maskConfig||!0!==this.maskConfig.triggerAtInit)}getLengthLimit(){return this.maskConfig.mask.length}getMatchedInputSlotValue(t){return t.match(this.acceptRegex)||[]}replaceMaskWithMatchedInputSlots(t,s){const i=[];let h=-1;for(let e=0;e<this.maskConfig.mask.length;e++){const n=this.maskConfig.mask.charAt(e);if(this.slotRegex.test(n)&&s.length){const t=s.shift();t&&(i.push(t),h=e)}else this.insertMode||s.shift(),t.charAt(e)===n&&(h=e),i.push(n)}const e=this.insertMode?h+1:t.length;return i.join("").slice(0,e)}}h.PHONE_MASK=new h({mask:"(999) 999-9999",slot:"9",accept:/\d/g}),h.ZIPCODE_MASK=new h({mask:"99999",slot:"9",accept:/\d/g}),h.TAX_ID_MASK=new h({mask:"99-9999999",slot:"9",accept:/\d/g});class e extends i{constructor(){super(...arguments),this.inputFlag=!0,this.blurFlag=!0,this.onFocus=t=>{if(this.host&&this.host.value){const s=this.host.value;t.target.value!==s&&(this.inputElement.value=s)}},this.onBlur=t=>{if(this.blurFlag=!1,this.blurFormatStrategy){const s=t.target.value,i=this.blurFormatStrategy.format(s);this.updateInputValue(s,i),this.host&&this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur&&this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur()&&(this.host.value=i)}},this.onKeyDown=t=>{this.inputFlag=!1;const s=t.target,i=s.value,h=s.selectionStart;if(this.inputFormatStrategy){const s=this.inputFormatStrategy.format(i,"insertFromPaste"===t.inputType?null:h);this.updateInputValue(i,s),this.updateInputCaretPosition(i,h)}},this.onPaste=t=>{this.disableCopyPaste&&t.preventDefault()}}setup(){this.destroy();const t=this.getInputElementRef();t&&(this.inputElement=t,this.inputFormatStrategy=this.getInputModeStrategy(),this.blurFormatStrategy=this.getBlurModeStrategy(),this.onInit(),this.inputFormatStrategy&&(this.inputElement.addEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.addEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.addEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.addEventListener("focus",this.onFocus,{capture:!0})))}destroy(){this.inputElement&&(this.inputFormatStrategy&&(this.inputElement.removeEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.removeEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.removeEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.removeEventListener("focus",this.onFocus,{capture:!0})))}onInit(){var t,s,i,h;(null===(s=null===(t=this.inputFormatStrategy)||void 0===t?void 0:t.shouldTriggerAtInit)||void 0===s?void 0:s.call(t))&&!this.isOnFocus()&&this.inputFlag&&(this.inputFlag=!1,this.updateInputValueOnInit("input")),(null===(h=null===(i=this.blurFormatStrategy)||void 0===i?void 0:i.shouldTriggerAtInit)||void 0===h?void 0:h.call(i))&&!this.isOnFocus()&&this.blurFlag&&(this.blurFlag=!1,this.updateInputValueOnInit("blur"))}isOnFocus(){return this.inputElement.matches(":focus")}updateInputValue(t,s){s!==t&&(this.inputElement.value=s)}updateInputCaretPosition(s,i){var h,e,n;const o=null!==(n=null===(e=(h=this.inputFormatStrategy).calculateCaretPosition)||void 0===e?void 0:e.call(h,s,i))&&void 0!==n?n:i;t(o)&&this.inputElement.setSelectionRange(o,o)}updateInputValueOnInit(t){const s=this.inputElement.value,i="input"===t?this.inputFormatStrategy.format(s):this.blurFormatStrategy.format(s);this.updateInputValue(s,i),"input"===t&&(this.host.value=i)}}!function(t,s,i,h){var e,n=arguments.length,o=n<3?s:null===h?h=Object.getOwnPropertyDescriptor(s,i):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,h);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(o=(n<3?e(o):n>3?e(s,i,o):e(s,i))||o);n>3&&o&&Object.defineProperty(s,i,o)}([s()],e.prototype,"host",void 0);export{e as S,h as a}
1
+ import{i as t}from"./p-b1f65b13.js";import{c as s,V as i}from"./p-6e1ab235.js";class h{constructor(t){this.insertMode=!0,this.maskConfig=t,this.slotRegex=new RegExp(t.slot),this.acceptRegex=new RegExp(t.accept,"g"),this.insertMode=!1!==t.insertMode}format(s,i){if(s.length>this.getLengthLimit()&&t(i)){const t=[...s],h=s.length-this.getLengthLimit();return t.splice(i-h,h),t.join("")}return this.replaceMaskWithMatchedInputSlots(s,this.getMatchedInputSlotValue(s))}calculateCaretPosition(s,i){if(!t(i))return null;if(s.length>this.getLengthLimit())return i-(s.length-this.getLengthLimit());const h=s.substring(0,i);return i+(this.format(h).length-h.length)}shouldOverrideComponentValueAfterBlur(){return!(!this.maskConfig||!0!==this.maskConfig.overrideValue)}shouldTriggerAtInit(){return!(!this.maskConfig||!0!==this.maskConfig.triggerAtInit)}getLengthLimit(){return this.maskConfig.mask.length}getMatchedInputSlotValue(t){return t.match(this.acceptRegex)||[]}replaceMaskWithMatchedInputSlots(t,s){const i=[];let h=-1;for(let e=0;e<this.maskConfig.mask.length;e++){const n=this.maskConfig.mask.charAt(e);if(this.slotRegex.test(n)&&s.length){const t=s.shift();t&&(i.push(t),h=e)}else this.insertMode||s.shift(),t.charAt(e)===n&&(h=e),i.push(n)}const e=this.insertMode?h+1:t.length;return i.join("").slice(0,e)}}h.PHONE_MASK=new h({mask:"(999) 999-9999",slot:"9",accept:/\d/g}),h.ZIPCODE_MASK=new h({mask:"99999",slot:"9",accept:/\d/g}),h.TAX_ID_MASK=new h({mask:"99-9999999",slot:"9",accept:/\d/g});class e extends i{constructor(){super(...arguments),this.inputFlag=!0,this.blurFlag=!0,this.onFocus=t=>{if(this.host&&this.host.value){const s=this.host.value;t.target.value!==s&&(this.inputElement.value=s)}},this.onBlur=t=>{if(this.blurFlag=!1,this.blurFormatStrategy){const s=t.target.value,i=this.blurFormatStrategy.format(s);this.updateInputValue(s,i),this.host&&this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur&&this.blurFormatStrategy.shouldOverrideComponentValueAfterBlur()&&(this.host.value=i)}},this.onKeyDown=t=>{this.inputFlag=!1;const s=t.target,i=s.value,h=s.selectionStart;if(this.inputFormatStrategy){const s=this.inputFormatStrategy.format(i,"insertFromPaste"===t.inputType?null:h);this.updateInputValue(i,s),this.updateInputCaretPosition(i,h)}},this.onPaste=t=>{this.disableCopyPaste&&t.preventDefault()}}setup(){this.destroy();const t=this.getInputElementRef();t&&(this.inputElement=t,this.inputFormatStrategy=this.getInputModeStrategy(),this.blurFormatStrategy=this.getBlurModeStrategy(),this.onInit(),this.inputFormatStrategy&&(this.inputElement.addEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.addEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.addEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.addEventListener("focus",this.onFocus,{capture:!0})))}destroy(){this.inputElement&&(this.inputFormatStrategy&&(this.inputElement.removeEventListener("input",this.onKeyDown,{capture:!0}),this.inputElement.removeEventListener("paste",this.onPaste,{capture:!0})),this.blurFormatStrategy&&(this.inputElement.removeEventListener("blur",this.onBlur,{capture:!0}),this.inputElement.removeEventListener("focus",this.onFocus,{capture:!0})))}onInit(){var t,s,i,h;(null===(s=null===(t=this.inputFormatStrategy)||void 0===t?void 0:t.shouldTriggerAtInit)||void 0===s?void 0:s.call(t))&&!this.isOnFocus()&&this.inputFlag&&(this.inputFlag=!1,this.updateInputValueOnInit("input")),(null===(h=null===(i=this.blurFormatStrategy)||void 0===i?void 0:i.shouldTriggerAtInit)||void 0===h?void 0:h.call(i))&&!this.isOnFocus()&&this.blurFlag&&(this.blurFlag=!1,this.updateInputValueOnInit("blur"))}isOnFocus(){return this.inputElement.matches(":focus")}updateInputValue(t,s){s!==t&&(this.inputElement.value=s)}updateInputCaretPosition(s,i){var h,e,n;const o=null!==(n=null===(e=(h=this.inputFormatStrategy).calculateCaretPosition)||void 0===e?void 0:e.call(h,s,i))&&void 0!==n?n:i;t(o)&&this.inputElement.setSelectionRange(o,o)}updateInputValueOnInit(t){const s=this.inputElement.value,i="input"===t?this.inputFormatStrategy.format(s):this.blurFormatStrategy.format(s);this.updateInputValue(s,i),"input"===t&&(this.host.value=i)}}!function(t,s,i,h){var e,n=arguments.length,o=n<3?s:null===h?h=Object.getOwnPropertyDescriptor(s,i):h;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,h);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(o=(n<3?e(o):n>3?e(s,i,o):e(s,i))||o);n>3&&o&&Object.defineProperty(s,i,o)}([s()],e.prototype,"host",void 0);export{e as S,h as a}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r as i,c as n,H as o,g as a}from"./p-1c298d5a.js";import{s as r}from"./p-9b797118.js";import{c as s,M as l,V as c,I as d}from"./p-6e1ab235.js";import{s as p}from"./p-6bd5c49b.js";import{V as h,I as f}from"./p-4387d550.js";import{P as v}from"./p-5f589974.js";import{e as g}from"./p-ecfa7534.js";import{F as u}from"./p-ff4bafa3.js";import{V as x}from"./p-8284a445.js";import{I as m}from"./p-781fd6e0.js";import{g as b}from"./p-4bcd6612.js";import{c as w}from"./p-e8f540d8.js";import{G as C,d as y,O as j,H as O,I as k,a as R,J as S}from"./p-6a3989dd.js";import{C as I}from"./p-af7a3154.js";import{D as A}from"./p-29b09aad.js";import{r as H,s as L}from"./p-fe9644a0.js";import{c as V}from"./p-c06e55d6.js";import{c as z}from"./p-1ec763ab.js";import{c as M}from"./p-613ddaab.js";import{C as _}from"./p-2d0d575f.js";import{L as E}from"./p-d057999f.js";import{f as G}from"./p-79ec5d69.js";import{S as N}from"./p-349dd552.js";import{c as D}from"./p-5915634b.js";import{f as U}from"./p-81dbada7.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-032df16f.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-262ec334.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-0af4bda9.js";import"./p-47a4c625.js";import"./p-b1f65b13.js";import"./p-3a0a4d15.js";import"./p-d884c644.js";import"./p-6705c68a.js";import"./p-0c667d6a.js";import"./p-2205ee4c.js";var Z=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class T extends v{constructor(){super({callback:()=>{this.updateMainContentUI(this.openState)}})}componentDidLoad(){!0===this.open?(this.openState="open",u.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.add("disableAnimation")):this.openState="close"}async toggle(){this.openState="open"===this.openState?"close":"open"}watchOpen(e){this.openState=e?"open":"close"}watchOpenState(e){this.updateMainContentUI(e),"open"===e?this.open=!0:(this.open=!1,u.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.contains("disableAnimation")&&this.host.classList.remove("disableAnimation")),this.stateUpdateEventEmitter.emit(this.openState)}watchShowAsOverlay(){this.updateMainContentUI(this.openState)}setOpenState(e){this.openState=e}updateMainContentUI(e){const t=document.querySelector("body"),i=document.querySelector("vega-left-nav + .vega-left-nav-content");"open"===e?(this.host.style.display="flex",setTimeout((()=>{this.host.classList.add("open"),i&&!this.backdropController.shouldShowBackdrop()?(null==t||t.classList.remove("vega-overflow-hidden"),i.classList.add("open")):(null==t||t.classList.add("vega-overflow-hidden"),i&&i.classList.remove("open"))}))):(this.host.classList.remove("open"),null==t||t.classList.remove("vega-overflow-hidden"),i&&i.classList.remove("open"),g((()=>{this.open||(this.host.style.display="none")}),this.host))}}Z([s()],T.prototype,"host",void 0),Z([s({writable:!0})],T.prototype,"open",void 0),Z([s({writable:!0})],T.prototype,"openState",void 0),Z([s()],T.prototype,"stateUpdateEventEmitter",void 0),Z([s()],T.prototype,"backdropController",void 0),Z([l("componentDidLoad")],T.prototype,"componentDidLoad",null),Z([l("toggle")],T.prototype,"toggle",null),Z([l("watchOpen")],T.prototype,"watchOpen",null),Z([l("watchOpenState")],T.prototype,"watchOpenState",null),Z([l("watchShowAsOverlay")],T.prototype,"watchShowAsOverlay",null);const B=()=>e("div",{class:"header-footer-separator-container"},e("div",{class:"header-footer-separator"}));var W=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class P extends c{componentWillLoad(){this.hasHeaderSlot=!!this.host.querySelector('[slot="header-slot"]')}render(){return this.renderHeader()}renderHeader(){const{title:i,subtitle:n}=this.headerConfig;return e(t,null,e("div",{class:"header-container"},this.hasHeaderSlot?e("slot",{name:"header-slot"}):i?e("div",{class:"header-title"},i):e("vega-icon",{icon:x.getIconKey("heartland-logo")}),n&&e("div",{class:"header-subtitle"},n)),e(B,null))}}x.register({"heartland-logo":{icon:'<svg width="142" height="26" viewBox="0 0 142 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H5.38012V9.88886H14.7732V0H20.2857V24.7222H14.9056V13.9144H5.42422V24.7659H0V0ZM81.3186 0H86.4784V24.7222H81.3186V0ZM141.868 0.0435179H136.708C136.708 3.19395 136.708 6.38814 136.664 9.58233C135.959 8.53217 134.856 7.78833 133.666 7.48204C131.461 6.86946 129.079 7.35077 127.227 8.70716C125.727 9.97612 124.669 11.7264 124.317 13.6516C123.92 15.4894 123.92 17.4147 124.317 19.2962C124.669 21.1339 125.684 22.7966 127.182 23.8906C128.77 24.8969 130.667 25.2907 132.519 25.0282C134.283 24.8531 135.826 23.8468 136.664 22.2716C136.664 22.824 136.703 23.3764 136.742 23.9288C136.762 24.2077 136.782 24.4867 136.796 24.7656H142C141.912 23.5843 141.868 22.3591 141.868 21.1777V0.0435179ZM129.784 13.039C130.137 11.9889 130.976 10.9388 132.166 10.6762C133.357 10.3262 134.636 10.6762 135.518 11.5514C136.444 12.4702 136.753 13.8267 136.841 15.0956C136.885 16.7583 136.753 18.4648 135.959 19.9525C135.076 21.4839 132.916 22.2716 131.284 21.3964C130.094 20.7401 129.609 19.3399 129.388 18.071C129.124 16.3645 129.256 14.6581 129.784 13.039ZM70.3382 4.15601L75.4537 2.31827V7.52523H79.5991V10.9382H75.4537V17.1515C75.4096 18.1142 75.4537 19.0768 75.5859 20.0394C75.6742 20.5645 76.1152 21.0021 76.6443 21.1334C77.6146 21.3084 78.5847 21.3084 79.5549 21.1771V24.5026C77.7469 25.0276 75.8506 25.1589 73.9984 24.9401C72.94 24.8088 71.9258 24.3276 71.2202 23.5399C70.6028 22.7085 70.3382 21.7021 70.3823 20.6958C70.3382 15.1826 70.3382 9.66925 70.3382 4.15601ZM35.5 8.2703C33.6037 7.04514 31.3106 6.56382 29.1056 7.00138C26.9889 7.35143 25.1367 8.48907 23.946 10.2831C22.4907 12.3396 22.1379 14.9212 22.2261 17.3716C22.3584 19.4718 22.9758 21.7909 24.4752 23.3224C25.9746 24.8538 28.1795 25.3789 30.2522 25.4664C32.0603 25.5539 33.9124 25.1601 35.5441 24.3725C37.264 23.4099 38.3665 21.6158 38.4546 19.6469H33.7361C33.6037 20.2595 33.2509 20.8283 32.81 21.3095C32.2808 21.7471 31.6193 22.0097 30.9577 22.0097C29.8553 22.1409 28.7969 21.7471 28.0473 20.9158C27.2534 19.9094 27.077 18.5967 27.1211 17.4153H38.8515C38.9838 15.7963 38.8075 14.1774 38.4106 12.6021C37.9696 10.8519 36.9553 9.32044 35.5 8.2703ZM27.2975 14.1774C27.2975 13.1272 27.6503 12.1208 28.3118 11.2895C29.5025 9.93302 32.0603 10.0205 32.9864 11.5958C33.4274 12.3833 33.6037 13.3022 33.6037 14.1774H27.2975ZM42.5126 8.75203C44.056 7.39558 46.2169 7.00178 48.2014 6.95802C50.1859 6.91427 52.3908 7.30807 54.0225 8.62074C55.2131 9.5834 55.6983 11.1586 55.7865 12.6463C55.8368 13.696 55.8297 14.7314 55.8225 15.7689V15.769C55.8171 16.5478 55.8117 17.3278 55.8306 18.1158C55.8389 18.5271 55.8425 18.9415 55.8461 19.3576V19.3576C55.8618 21.1545 55.8777 22.982 56.2715 24.723H51.553C51.4206 23.9791 51.3766 23.1915 51.3766 22.4039C50.4504 23.8478 48.9069 24.8105 47.1871 25.0293C45.776 25.2043 44.3207 25.0293 42.9536 24.5042C41.7629 23.9353 40.8368 22.8852 40.484 21.5725C39.9548 19.8661 40.2635 18.0283 41.2778 16.5844C42.2921 15.3154 43.6592 14.4403 45.2468 14.0465C46.9417 13.606 48.6735 13.5686 50.3747 13.5319C50.5325 13.5285 50.6901 13.5251 50.8474 13.5214C50.8474 13.4493 50.8477 13.377 50.848 13.3045V13.3038V13.3032V13.3026C50.8514 12.4946 50.8548 11.662 50.4504 10.9399C49.6567 9.80219 48.1132 9.53961 46.9666 10.3273C46.8343 10.4148 46.7461 10.5023 46.6579 10.5898C46.2169 11.0711 45.9964 11.7274 46.0847 12.3838H41.0132C40.9691 11.0711 41.4983 9.71469 42.5126 8.75203ZM47.0989 17.0657C46.4374 17.2844 45.8641 17.7657 45.5113 18.3783C45.0263 19.4285 45.3349 20.6536 46.261 21.3537C47.5399 22.1851 49.2598 21.8351 50.0977 20.5661C50.8914 19.3847 50.8914 17.9408 50.8914 16.5844C49.6126 16.4531 48.2896 16.5844 47.0989 17.0657ZM96.1373 6.95649C94.1088 6.95649 91.9474 7.35029 90.4039 8.70676C89.3901 9.66934 88.8168 11.0258 88.8605 12.426H93.9322C93.844 11.7259 94.1525 10.982 94.6821 10.5007C95.7405 9.66934 97.2394 9.80063 98.1658 10.7633C98.7448 11.5023 98.742 12.5111 98.7395 13.428C98.7393 13.4882 98.7392 13.5481 98.7392 13.6074C96.7543 13.6074 94.7704 13.6511 92.8738 14.1762C91.3741 14.5701 90.0071 15.4451 89.0816 16.7141C87.9786 18.3331 87.8021 20.3458 88.5519 22.1398C89.037 23.3212 89.9634 24.2401 91.1538 24.6777C92.477 25.0714 93.844 25.2027 95.2109 25.0277C96.8863 24.8527 98.3424 23.7151 99.2679 22.4023C99.2679 23.19 99.3125 23.9338 99.4445 24.7214H104.119C103.671 22.7031 103.674 20.573 103.678 18.5029V18.5028V18.5016V18.5003C103.678 18.3274 103.678 18.1549 103.678 17.983C103.678 16.189 103.678 14.3513 103.634 12.5135C103.502 11.1133 103.061 9.58184 101.914 8.66297C100.326 7.35029 98.1658 6.95649 96.1373 6.95649ZM93.5354 18.1143C93.9322 17.5455 94.5493 17.1516 95.2554 16.9329C96.4013 16.5828 97.5925 16.4953 98.7392 16.5828L98.7394 16.7751C98.7413 18.0786 98.7434 19.4825 97.9447 20.6084C97.1074 21.8335 95.4311 22.1835 94.1525 21.396C93.0941 20.6521 92.8293 19.2081 93.5354 18.1143ZM112.982 7.74535C114.526 6.95774 116.334 6.73897 118.01 7.13276C119.641 7.43906 121.009 8.53297 121.671 10.0644C122.123 11.1017 122.163 12.221 122.204 13.3359L122.204 13.3364C122.214 13.6322 122.225 13.9276 122.243 14.2212V24.7226H116.952V13.2148C116.952 12.2522 116.379 11.3771 115.496 10.8958C113.953 10.1957 112.145 10.8083 111.351 12.2959C110.93 13.169 110.941 14.1409 110.951 15.0687V15.0698C110.952 15.2111 110.954 15.3514 110.954 15.4901V24.6789H105.75V13.4336C105.75 13.0309 105.752 12.6264 105.754 12.2206C105.761 10.5979 105.768 8.95287 105.662 7.30779H110.602L110.63 7.84104C110.664 8.49637 110.699 9.15749 110.734 9.84562C111.263 9.01425 112.057 8.27042 112.982 7.74535ZM68.8393 7.35106C67.5163 7.21979 66.1933 7.48232 65.0026 8.09491C64.0325 8.7075 63.3268 9.58258 62.8859 10.7202C62.8859 9.6286 62.8419 8.53696 62.798 7.44526L62.7977 7.43857H57.9467C58.1672 9.58258 58.2554 11.7704 58.2114 13.9144C58.2114 15.125 58.2065 16.3356 58.2016 17.5462C58.1918 19.9674 58.1819 22.3886 58.2114 24.8097H63.3268V15.8398C63.3268 14.7021 63.5915 13.3894 64.5617 12.6893C65.7965 11.8142 67.384 11.8142 68.8393 11.9454V7.35106Z" fill="#596063" /></svg>',autoSize:!0}}),W([s()],P.prototype,"host",void 0),W([s()],P.prototype,"headerConfig",void 0),W([l("componentWillLoad")],P.prototype,"componentWillLoad",null);var F=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class K extends c{componentWillLoad(){this.hasFooterSlot=!!this.host.querySelector('[slot="footer-slot"]')}render(){return this.renderFooter()}renderFooter(){return(this.footnote||this.hasFooterSlot)&&e(t,null,e(B,null),e("div",{class:"footer-container"},this.hasFooterSlot?e("slot",{name:"footer-slot"}):e("div",{class:"footer-footnote"},this.footnote)))}}F([s()],K.prototype,"host",void 0),F([s()],K.prototype,"footnote",void 0),F([l("componentWillLoad")],K.prototype,"componentWillLoad",null);var X=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class $ extends c{watchOpenState(){this.updateZIndex()}updateZIndex(){const e=this.backdropController.getBackdrop();"open"==this.openState?(m.setZIndex(e,"base"),m.setZIndex(this.host,"base")):g((()=>{m.removeZIndex(e,"base"),m.removeZIndex(this.host,"base")}),this.host,300)}}X([s()],$.prototype,"host",void 0),X([s()],$.prototype,"openState",void 0),X([s()],$.prototype,"backdropController",void 0),X([l("watchOpenState")],$.prototype,"watchOpenState",null);var J=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class q extends v{constructor(){super({callback:()=>{this.updateBackdropUI(this.openState)}})}connectedCallback(){this.backdrop=this.createBackdrop()}disconnectedCallback(){this.backdrop&&this.backdrop.remove()}watchOpenState(e){this.updateBackdropUI(e)}watchShowAsOverlay(){this.updateBackdropUI(this.openState)}getBackdrop(){return this.backdrop}shouldShowBackdrop(){return!(this.isLargeScreen()&&!this.showAsOverlay)}createBackdrop(){const e=document.createElement("vega-backdrop");return e.visible=!1,e.duration=150,e.addEventListener("vegaClick",(()=>{this.openStateController.setOpenState("close")})),document.body.append(e),e}updateBackdropUI(e){const t=document.querySelector("vega-left-nav + .vega-left-nav-content");this.backdrop.visible="open"===e&&!(t&&!this.shouldShowBackdrop())}isLargeScreen(){const e=b();return"L"==e||"XL"==e}}J([s()],q.prototype,"openState",void 0),J([s()],q.prototype,"showAsOverlay",void 0),J([s()],q.prototype,"openStateController",void 0),J([l("connectedCallback")],q.prototype,"connectedCallback",null),J([l("disconnectedCallback")],q.prototype,"disconnectedCallback",null),J([l("watchOpenState")],q.prototype,"watchOpenState",null),J([l("watchShowAsOverlay")],q.prototype,"watchShowAsOverlay",null);class Q extends c{render(){var t;return e("div",{class:"vega-nav-list-container"},(null===(t=this.source)||void 0===t?void 0:t.length)?this.renderListBySource():e("slot",null))}renderListBySource(){return e(t,null,this.source.map((i=>e(t,null,this.renderLeftNavSourceItem(i)))))}renderLeftNavSourceItem(e){return"section"==e.type?this.renderSection(e):"group"==e.type?this.renderGroup(e):this.renderLink(e)}renderSection(t){var i;return e("vega-left-nav-section",{sectionHeader:t.sectionHeader},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderGroup(t){var i;return e("vega-left-nav-group",{key:t.name,icon:t.icon,label:t.name},null===(i=t.children)||void 0===i?void 0:i.map((e=>"group"==e.type?this.renderGroup(e):this.renderLink(e))))}renderLink(t){return e("vega-left-nav-link",{key:t.name,icon:t.icon,url:t.url,selected:t.selected,counterBadge:t.counterBadge},t.name)}}!function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);a>3&&r&&Object.defineProperty(t,i,r)}([s()],Q.prototype,"source",void 0);var Y=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ee extends c{registerMenuClickObserver(){A.addUniqueObserverToNode(this.host,H,(()=>{this.shouldAutoCollapse()&&this.openStateController.setOpenState("close")}))}unregisterMenuClickObserver(){A.removeUniqueObserverFromNode(this.host,H)}shouldAutoCollapse(){return this.autoCollapseOnOverlay&&this.backdropController.shouldShowBackdrop()&&"open"===this.openState}}Y([s()],ee.prototype,"host",void 0),Y([s()],ee.prototype,"openState",void 0),Y([s()],ee.prototype,"autoCollapseOnOverlay",void 0),Y([s()],ee.prototype,"showAsOverlay",void 0),Y([s()],ee.prototype,"backdropController",void 0),Y([s()],ee.prototype,"openStateController",void 0),Y([l("connectedCallback")],ee.prototype,"registerMenuClickObserver",null),Y([l("disconnectedCallback")],ee.prototype,"unregisterMenuClickObserver",null);const te=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the left nav",payloadValue:e=>!!e.source&&e.source.length>0}];var ie=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ne=class{constructor(e){i(this,e),this.vegaStateUpdate=n(this,"vegaStateUpdate",7),this.stateUpdate=n(this,"stateUpdate",7),this.globalSlimmers={},this.headerRenderer=new P,this.footerRenderer=new K,this.openStateController=new T,this.backdropController=new q,this.zIndexController=new $,this.listRenderer=new Q,this.vegaLeftNavAutoCollapseController=new ee,this.stateUpdateEventEmitter=w(ne,C),this.componentGlobalStyleSlimmer=new I(".vega-left-nav-content{transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-duration:200ms;transition-property:margin}vega-left-nav.disableAnimation+.vega-left-nav-content.open{transition-duration:0s}.vega-left-nav-content.open{margin-left:300px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new h(te),this.autoCollapseGroupsNotifySlimmer=V(ne,"autoCollapseGroups","watchAutoCollapseGroups"),this.openState="close",this.open=!1,this.headerConfig={},this.footnote="",this.showAsOverlay=!0,this.autoCollapseOnOverlay=!1,this.autoCollapseGroups=!1}watchOpenState(){}watchOpen(){}watchShowAsOverlay(){}watchAutoCollapseGroups(){}async toggle(){}render(){return p(e("slot",null)),r(e(o,null,this.headerRenderer.render(),this.listRenderer.render(),this.footerRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{openState:["watchOpenState"],open:["watchOpen"],showAsOverlay:["watchShowAsOverlay"],autoCollapseGroups:["watchAutoCollapseGroups"]}}};ie([f()],ne.prototype,"globalSlimmers",void 0),ie([d()],ne.prototype,"headerRenderer",void 0),ie([d()],ne.prototype,"footerRenderer",void 0),ie([d()],ne.prototype,"openStateController",void 0),ie([d()],ne.prototype,"backdropController",void 0),ie([d()],ne.prototype,"zIndexController",void 0),ie([d()],ne.prototype,"listRenderer",void 0),ie([d()],ne.prototype,"vegaLeftNavAutoCollapseController",void 0),ie([d()],ne.prototype,"stateUpdateEventEmitter",void 0),ie([d()],ne.prototype,"componentGlobalStyleSlimmer",void 0),ie([d()],ne.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ie([d()],ne.prototype,"autoCollapseGroupsNotifySlimmer",void 0),ne.style=':host{display:none;flex-direction:column;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:fixed;top:0px;right:0px;bottom:0px;left:0px;text-align:left;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);width:300px;transition-duration:200ms;transition-property:transform;transform:translateX(-320px)}:host(.open.disableAnimation){transition-duration:0s}:host(.open){transform:translateX(0px)}.header-container{padding-left:24px;padding-right:24px;padding-top:24px;padding-bottom:16px}.header-container .header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:24px;font-weight:700;line-height:32px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-title{font-family:"Inter", sans-serif;font-size:28px;font-weight:700;line-height:36px;letter-spacing:0px}}.header-container .header-subtitle{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px;margin-top:2px;overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.header-container .header-subtitle{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:25px;letter-spacing:0px}}.header-footer-separator-container{padding-left:12px;padding-right:12px}.header-footer-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.vega-nav-list-container{flex-grow:1;padding-left:12px;padding-right:12px;padding-top:12px;overflow-y:auto;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.footer-container{padding-top:16px;padding-bottom:16px;padding-left:24px;padding-right:24px}.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));overflow-wrap:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.footer-container .footer-footnote{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}body.vega-overflow-hidden{overflow:hidden}.header-container vega-icon{width:142px;height:26px}.header-container vega-icon[icon="v-internal-icon heartland-logo"]+.header-subtitle{margin-top:8px}';var oe=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ae extends c{constructor(){super(...arguments),this.handleClick=e=>{const t=e.currentTarget;if(t&&"$1"===t.dataset.root){e.preventDefault(),this.groupContainer.classList.toggle("open");const t=this.groupContainer.classList.contains("open");this.groupClickEventEmitter.emit(t?"EXPAND":"COLLAPSE"),this.autoCollapseGroups&&this.notifyOtherGroup(t)}}}getGroupContainer(){return this.groupContainer}render(){return e("div",{class:"vega-li-main",ref:e=>this.groupContainer=e},e("a",{href:`#${this.label}`,role:"button",tabIndex:0,"data-root":"$1",onClick:this.handleClick,"aria-label":this.label||"No label defined"},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},this.label),e("div",{class:"suffix-icons"},e("vega-icon",{icon:x.getIconKey("chevron-down"),size:"size-12"}),e("vega-icon",{icon:x.getIconKey("chevron-up"),size:"size-12"}))),e("div",{class:"vega-nav-list-sub"},e("slot",null)))}notifyOtherGroup(e){const t=this.siblingObserverController.getTopParent();t&&e&&_.notify(y.getSubject(t,L),{host:this.host})}}x.register({"chevron-up":z,"chevron-down":M}),oe([s()],ae.prototype,"host",void 0),oe([s()],ae.prototype,"autoCollapseGroups",void 0),oe([s()],ae.prototype,"icon",void 0),oe([s()],ae.prototype,"label",void 0),oe([s()],ae.prototype,"groupClickEventEmitter",void 0),oe([s()],ae.prototype,"siblingObserverController",void 0);var re=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class se extends c{disconnectedCallback(){_.unregister(E,this.observer)}componentWillLoad(){this.observer=new j(this.isAcceptableNavListObserver.bind(this),this.observerListener.bind(this)),_.register(E,this.observer)}isAcceptableNavListObserver(e){return e instanceof HTMLElement&&G(this.host,".vega-nav-list-container")===G(e,".vega-nav-list-container")}}re([l("disconnectedCallback")],se.prototype,"disconnectedCallback",null),re([l("componentWillLoad")],se.prototype,"componentWillLoad",null);var le=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ce extends se{observerListener(e){this.host.contains(e)?this.renderer.getGroupContainer().classList.add("open"):this.renderer.getGroupContainer().classList.remove("open")}}le([s()],ce.prototype,"host",void 0),le([s()],ce.prototype,"renderer",void 0);var de=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class pe extends c{constructor(){super(...arguments),this.listenerCallback=()=>{this.renderer.getGroupContainer().classList.remove("open")}}getTopParent(){return this.parent}addObserver(){this.observer=new j(this.acceptHandler.bind(this),this.listenerCallback);const e=G(this.host,"vega-left-nav");e&&(this.parent=e,_.register(y.getSubject(e,L),this.observer))}acceptHandler(e){return e.host!==this.host&&!this.host.contains(e.host)}}de([s()],pe.prototype,"renderer",void 0),de([s()],pe.prototype,"host",void 0),de([l("componentDidLoad")],pe.prototype,"addObserver",null);var he=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class fe extends N{constructor(){super({parent:"vega-left-nav",subStates:[{subStateName:"autoCollapseGroups",parentStateName:"autoCollapseGroups"}]})}}he([s()],fe.prototype,"host",void 0),he([s({writable:!0})],fe.prototype,"autoCollapseGroups",void 0);var ve=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ge=class{constructor(e){i(this,e),this.vegaGroupClick=n(this,"vegaGroupClick",7),this.groupClick=n(this,"groupClick",7),this.globalSlimmers={},this.renderer=new ae,this.controller=new ce,this.siblingObserverController=new pe,this.groupClickEventEmitter=w(ge,O),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.vegaLeftNavGroupStateController=new fe,this.autoCollapseGroups=!1,this.label=""}render(){return p(e("slot",null)),r(this.renderer.render(),this.host)}get host(){return a(this)}};ve([f()],ge.prototype,"globalSlimmers",void 0),ve([d()],ge.prototype,"renderer",void 0),ve([d()],ge.prototype,"controller",void 0),ve([d()],ge.prototype,"siblingObserverController",void 0),ve([d()],ge.prototype,"groupClickEventEmitter",void 0),ve([d()],ge.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ve([d()],ge.prototype,"vegaLeftNavGroupStateController",void 0),ge.style=':host{display:block}.suffix-icons{padding-left:8px}.suffix-icons vega-icon,.vega-li-main.open>a>.suffix-icons vega-icon:first-of-type{display:none}.suffix-icons vega-icon:first-of-type,.vega-li-main.open>a>.suffix-icons vega-icon:last-of-type{display:inline-flex}.vega-nav-list-sub{display:none}.vega-li-main.open>.vega-nav-list-sub{display:block}.vega-li-main>a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none;outline:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-li-main>a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}.vega-li-main>a:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}.vega-li-main>a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}.vega-li-main>a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}.vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}.vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}::slotted(vega-left-nav-group){padding-left:32px}::slotted(vega-left-nav-link){padding-left:32px}';var ue=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class xe extends c{constructor(){super(...arguments),this.handleClick=()=>{this.selected||this.controller.setSelected(!0),this.menuClickEventEmitter.emit(),this.notifyVegaLeftNav()}}render(){var t;return e(o,{class:!0===this.selected?"selected":""},e("a",{href:this.url||"javascript:void(0);",onClick:this.handleClick},this.icon&&e("div",{class:"vega-links-icon"},e("div",{class:"prefix-icon"},e("vega-icon",{icon:this.icon,size:"size-16"}))),e("span",{class:"vega-links-name"},e("slot",null)),e("div",{class:"vega-counter-badge"},e("vega-counter-badge",{count:this.deprecatedPropertySlimmer.getValue(),color:null===(t=this.counterBadge)||void 0===t?void 0:t.color}))))}notifyVegaLeftNav(){const e=G(this.host,"vega-left-nav");e&&_.notify(y.getSubject(e,H),{host:this.host})}}ue([s()],xe.prototype,"host",void 0),ue([s()],xe.prototype,"selected",void 0),ue([s()],xe.prototype,"url",void 0),ue([s()],xe.prototype,"counterBadge",void 0),ue([s()],xe.prototype,"icon",void 0),ue([s()],xe.prototype,"menuClickEventEmitter",void 0),ue([s()],xe.prototype,"controller",void 0),ue([s()],xe.prototype,"deprecatedPropertySlimmer",void 0);var me=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class be extends se{componentDidRender(){this.selected&&_.notify(E,this.host)}setSelected(e){this.selected=e}observerListener(e){e!==this.host&&this.setSelected(!1)}}me([s()],be.prototype,"host",void 0),me([s({writable:!0})],be.prototype,"selected",void 0),me([l("componentDidRender")],be.prototype,"componentDidRender",null);var we=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const Ce=class{constructor(e){i(this,e),this.vegaMenuClick=n(this,"vegaMenuClick",7),this.menuClick=n(this,"menuClick",7),this.globalSlimmers={},this.renderer=new xe,this.controller=new be,this.menuClickEventEmitter=w(Ce,k),this.deprecatedPropertySlimmer=D(Ce,"counterBadge.count","counterBadge.counter",void 0),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.selected=!1}render(){return p(e("slot",null)),r(this.renderer.render(),this.host)}get host(){return a(this)}};we([f()],Ce.prototype,"globalSlimmers",void 0),we([d()],Ce.prototype,"renderer",void 0),we([d()],Ce.prototype,"controller",void 0),we([d()],Ce.prototype,"menuClickEventEmitter",void 0),we([d()],Ce.prototype,"deprecatedPropertySlimmer",void 0),we([d()],Ce.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ce.style=':host{display:block}:host(.selected) .vega-links-icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.selected) a{background-color:rgba(0, 151, 255, 0.3)}:host .vega-counter-badge{position:relative;width:32px;height:20px}:host vega-counter-badge{position:absolute;top:10px;left:18px}:host a{display:flex;align-items:center;overflow:hidden;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:8px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px;cursor:pointer;text-decoration:none}@media screen and (min-width: 768px) and (max-width: 1023px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host a{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:24px;letter-spacing:0px}}:host a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}:host .vega-links-icon{color:rgba(var(--v-text-secondary, 107, 116, 125, 1));padding-right:12px;box-sizing:border-box}:host .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}:host(:not(.selected)) a:hover{background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1))}:host>a{outline:none}:host>a:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}';var ye=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class je extends c{render(){return e(o,null,this.renderSectionHeader(),e("slot",null),this.renderListSeparator())}renderListSeparator(){return e("div",{class:"list-separator-container"},e("div",{class:"list-separator"}))}renderSectionHeader(){var t;return(null===(t=this.sectionHeader)||void 0===t?void 0:t.title)&&e("div",{class:"section-header"},e("div",{class:"section-header-title"},this.sectionHeader.title),this.sectionHeader.actionTitle&&e("vega-button-link",{label:this.sectionHeader.actionTitle,size:"small",link:this.sectionHeader.actionLink,eventful:this.sectionHeader.actionEventful,ref:e=>{A.addUniqueObserverToNode(e,R,(()=>{this.actionClickEventEmitter.emit()}))}}))}}ye([s()],je.prototype,"sectionHeader",void 0),ye([s()],je.prototype,"actionClickEventEmitter",void 0);var Oe=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const ke=class{constructor(e){i(this,e),this.vegaActionClick=n(this,"vegaActionClick",7),this.actionClick=n(this,"actionClick",7),this.globalSlimmers={},this.renderer=new je,this.actionClickEventEmitter=w(ke,S),this.vegaComponentUsageRuntimeMetricsSlimmer=new h}render(){return p(e("slot",null)),r(this.renderer.render(),this.host)}get host(){return a(this)}};Oe([f()],ke.prototype,"globalSlimmers",void 0),Oe([d()],ke.prototype,"renderer",void 0),Oe([d()],ke.prototype,"actionClickEventEmitter",void 0),Oe([d()],ke.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ke.style=':host{display:block}:host(:last-child) .list-separator-container{display:none}.list-separator-container{padding-left:12px;padding-right:12px;padding-top:20px;padding-bottom:20px}.list-separator{width:100%;height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1))}.section-header{display:flex;align-items:center;gap:12px;padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;border-radius:4px}.section-header>.section-header-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;flex:1 1 0%;overflow:hidden;text-transform:uppercase}@media screen and (min-width: 768px) and (max-width: 1023px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.section-header>.section-header-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}.section-header>vega-button-link{flex-basis:0}';var Re=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Se extends v{constructor(){super({callback:()=>{this.updateMaxHeight()}})}watchMaxHeight(){this.updateMaxHeight()}updateMaxHeight(){const e=U(this.maxHeight,"widthAndHeight");this.currentMaxHeight=e}}Re([s()],Se.prototype,"maxHeight",void 0),Re([s({writable:!0})],Se.prototype,"currentMaxHeight",void 0),Re([l("watchMaxHeight")],Se.prototype,"watchMaxHeight",null);const Ie=[{payloadKey:"IS_USING_TEMPLATE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!e.source||0===e.source.length},{payloadKey:"IS_USING_DATA_SOURCE",payloadDescription:"Contains the data records to be rendered and displayed within the nav card",payloadValue:e=>!!e.source&&e.source.length>0}];var Ae=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const He=class{constructor(e){i(this,e),this.globalSlimmers={},this.listRenderer=new Q,this.maxHeightController=new Se,this.vegaComponentUsageRuntimeMetricsSlimmer=new h(Ie)}watchMaxHeight(){}render(){return p(e("slot",null)),r(e(o,{style:{maxHeight:this.currentMaxHeight}},this.listRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{maxHeight:["watchMaxHeight"]}}};Ae([f()],He.prototype,"globalSlimmers",void 0),Ae([d()],He.prototype,"listRenderer",void 0),Ae([d()],He.prototype,"maxHeightController",void 0),Ae([d()],He.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),He.style=":host{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:12px;box-shadow:var(--v-shadow-form-field, 0px 1px 2px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.1));text-align:left;overflow-y:auto;width:300px}.vega-nav-list-container{padding:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-nav-list-container .vega-links-icon .prefix-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:20px;height:20px}a .vega-links-name{flex:1 1 0%;overflow:hidden;overflow-wrap:break-word}";export{ne as vega_left_nav,ge as vega_left_nav_group,Ce as vega_left_nav_link,ke as vega_left_nav_section,He as vega_nav_card}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r as a,c as i,H as o,g as n}from"./p-1c298d5a.js";import{s as r}from"./p-9b797118.js";import{c as s,V as l,M as d,I as c}from"./p-6e1ab235.js";import{s as h}from"./p-6bd5c49b.js";import{V as b,I as g}from"./p-4387d550.js";import{P as v}from"./p-5f589974.js";import{d as p}from"./p-1bc5b3bc.js";import{c as u}from"./p-86194314.js";import{D as f}from"./p-29b09aad.js";import{b as m,O as y,a as x}from"./p-6a3989dd.js";import{C as T}from"./p-2d0d575f.js";import{T as w}from"./p-d057999f.js";import{f as C}from"./p-79ec5d69.js";import{S as R}from"./p-1fb56e14.js";import{C as j}from"./p-be12fa36.js";import{c as D}from"./p-e8f540d8.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-0af4bda9.js";import"./p-5f377954.js";import"./p-ff4bafa3.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-6a334573.js";var P=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class I extends l{getTabMenuContainer(){return this.tabMenuContainer}render(){return e(t,null,e("div",{class:{"tab-content-container":!0,"more-tab":this.tabPages.length>1,"tab-style-secondary":"secondary"===this.variant,"tab-style-primary":"secondary"!==this.variant},ref:e=>this.tabMenuContainer=e},this.directionButtonRenderer.render("left"),this.tabListRenderer.render(),this.directionButtonRenderer.render("right")),e("div",{class:"horizontal-divider"}),this.contentRenderer.render())}}P([s()],I.prototype,"tabPages",void 0),P([s()],I.prototype,"variant",void 0),P([s({componentFieldName:"vegaTabGroupTabListRenderer"})],I.prototype,"tabListRenderer",void 0),P([s({componentFieldName:"vegaTabGroupDirectionButtonRenderer"})],I.prototype,"directionButtonRenderer",void 0),P([s({componentFieldName:"vegaTabGroupContentRenderer"})],I.prototype,"contentRenderer",void 0);var k=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class S extends l{setSelectedDataTarget(e){this.selectedTabDataTarget=e}handleTabItemClick(e){const t=this.clickEventEmitter.emit(e);t&&!t.defaultPrevented&&(e===this.selectedTabDataTarget?this.vegaTabGroupPageIndexController.setCurrentPageIndexBySelectedTab(e):this.setSelectedDataTarget(e))}}k([s()],S.prototype,"clickEventEmitter",void 0),k([s({writable:!0})],S.prototype,"selectedTabDataTarget",void 0),k([s()],S.prototype,"vegaTabGroupPageIndexController",void 0);class G{paginate(e,t,a){const i=e.map(t);return this.doPaginateByCapacity(e,i,a)}doPaginateByCapacity(e,t,a){const i=[];let o=0;for(;o<t.length;){const n=this.valueSum(o,t,a);if(0===n)break;i.push(e.slice(o,o+n)),o+=n}return i}valueSum(e,t,a){let i=0,o=!1,n=0;const r="function"==typeof a?a(e,t):a;return t.slice(e).forEach(((e,t)=>{i+=e,i>r&&!o&&(o=!0,n=t)})),o||(n=t.slice(e).length),n}}var A=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class O extends v{constructor(){super({callback:()=>{this.initTabPagesWithDebounce()},target:()=>this.host,shouldTrigger:()=>!this.sliderStateController.isAnimationInProgress()}),this.TAB_SIDE_BUTTON_WIDTH=37,this.TAB_SIDE_BUTTON_AND_CONTENT_SPACE=8,this.valuePaginator=new G,this.initTabPagesWithDebounce=p(this.initTabPages,80,this),this.getTabContainerSpace=(e,t)=>{const a=this.host.getBoundingClientRect().width;let i="secondary"===this.variant?a:a-48;return e>0&&(i-=this.TAB_SIDE_BUTTON_WIDTH+this.TAB_SIDE_BUTTON_AND_CONTENT_SPACE),t.length>0&&t.slice(e).reduce(((e,t)=>e+t))>i&&i>0&&(i-=this.TAB_SIDE_BUTTON_WIDTH),i},this.emptySourceAndHiddenDropdown=()=>{Array.from(this.host.shadowRoot.querySelectorAll("vega-dropdown")).forEach((async e=>{0===e.source.length&&await e.hide()}))}}componentDidLoad(){this.initTabPages()}componentDidRender(){this.initTabsWidthArray(),this.emptySourceAndHiddenDropdown()}handleGapChange(){this.initTabPages()}handleTabWidthArrayChange(){this.tabWidthArray.length>0&&this.initTabPages()}setTabItems(e){this.tabItems=e}setTabWidthArray(e){this.tabWidthArray=e}initTabPages(){this.tabItems&&(this.tabPages=this.valuePaginator.paginate(this.tabItems,((e,t)=>this.tabWidthArray[t]>0?this.tabWidthArray[t]+Number(this.formatAndValidGap(this.gap)):this.tabWidthArray[t]),this.getTabContainerSpace))}formatAndValidGap(e){return e.replace("size-","")}initTabsWidthArray(){if(0===this.tabWidthArray.length||this.tabWidthArray.some((e=>0===e))){const e=[];this.tabItems.forEach((t=>{const a=this.host.shadowRoot.querySelector(`.vega-tab[data-target='${t.dataTarget}']`);if(a){const t=a.getBoundingClientRect().width;e.push(t)}})),e.length>0&&!e.some((e=>0===e))&&(this.tabWidthArray=[...e])}}}A([s()],O.prototype,"host",void 0),A([s()],O.prototype,"gap",void 0),A([s({writable:!0})],O.prototype,"tabPages",void 0),A([s({writable:!0})],O.prototype,"tabWidthArray",void 0),A([s({writable:!0})],O.prototype,"tabItems",void 0),A([s()],O.prototype,"variant",void 0),A([s({componentFieldName:"vegaTabGroupSliderStateController"})],O.prototype,"sliderStateController",void 0),A([d("componentDidLoad")],O.prototype,"componentDidLoad",null),A([d("componentDidRender")],O.prototype,"componentDidRender",null),A([d("watchGapChange")],O.prototype,"handleGapChange",null),A([d("watchTabWidthArrayChange")],O.prototype,"handleTabWidthArrayChange",null);var z=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class L extends l{handleTabPagesChange(){this.selectedTabDataTarget?this.setCurrentPageIndexBySelectedTab(this.selectedTabDataTarget):this.setCurrentPageIndexWhenTabPagesChange()}handleSelectedDataTargetChange(){this.setCurrentPageIndexBySelectedTab(this.selectedTabDataTarget)}setCurrentPageIndexBySelectedTab(e){let t=-1;this.tabPages.forEach(((a,i)=>{-1!==a.findIndex((t=>t.dataTarget===e))&&(t=i)})),t>=0&&(this.currentPageIndex=t)}setPageIndex(e){this.currentPageIndex=e}setCurrentPageIndexWhenTabPagesChange(){this.tabPages&&this.tabPages.length&&!this.tabPages[this.currentPageIndex]&&(this.currentPageIndex=this.tabPages.length-1)}}z([s()],L.prototype,"tabPages",void 0),z([s({writable:!0})],L.prototype,"currentPageIndex",void 0),z([s()],L.prototype,"selectedTabDataTarget",void 0),z([d("watchTabPagesChange")],L.prototype,"handleTabPagesChange",null),z([d("watchSelectedTabDataTargetChange")],L.prototype,"handleSelectedDataTargetChange",null);var N=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class B extends l{constructor(){super(...arguments),this.onCloseTab=e=>{const t=e.currentTarget.closest(".vega-tab"),a=this.tabItems.findIndex((e=>e.dataTarget===t.getAttribute("data-target")));t.classList.contains("selected")&&this.selectedTargetController.setSelectedDataTarget(this.tabItems[a===this.tabItems.length-1?a-1:a+1].dataTarget);const i=this.tabItems.slice(0,a).concat(this.tabItems.slice(a+1));this.tabPagesController.setTabItems(i);const o=this.tabWidthArray.slice(0,a).concat(this.tabWidthArray.slice(a+1));this.tabPagesController.setTabWidthArray(o),e.stopPropagation()}}render(){return this.showCloseButton&&this.tabItems.length>1&&e("div",{class:this.showCloseButton?"vega-close-icon":"vega-close-icon vega-hidden",onClick:this.onCloseTab,role:"button",tabIndex:0,onKeyDown:u(),"aria-label":"Close Button"},e("vega-icon",{icon:"close",size:"size-12"}))}}N([s()],B.prototype,"tabWidthArray",void 0),N([s()],B.prototype,"showCloseButton",void 0),N([s()],B.prototype,"tabItems",void 0),N([s({componentFieldName:"vegaTabGroupSelectedTargetController"})],B.prototype,"selectedTargetController",void 0),N([s({componentFieldName:"vegaTabGroupPagesController"})],B.prototype,"tabPagesController",void 0);var F=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class W extends l{constructor(){super(...arguments),this.onDirectionButtonClick=e=>{this.pageIndexController.setPageIndex("left"===e?this.currentPageIndex-1:this.currentPageIndex+1)}}getDropdownRef(){return this.dropdownRef}render(t){const a=[];this.tabPages.slice("left"===t?0:this.currentPageIndex+1,"left"===t?this.currentPageIndex:this.tabPages.length).flat().map((e=>{a.push({key:e.dataTarget,label:e.label})}));const i="left"===t?0===this.currentPageIndex:this.currentPageIndex+1===this.tabPages.length||this.tabPages.length<=1,o="left"===t?"chevron-backward-rounded":"chevron-forward-rounded",n=a.find((e=>e.key===this.selectedTabDataTarget))?this.selectedTabDataTarget:"";return e("div",{class:{"tab-left-button":"left"===t,"tab-right-button":"right"===t,"vega-hidden":i},onClick:()=>this.onDirectionButtonClick(t),"aria-label":"No label defined",role:"button",tabIndex:0,onKeyDown:u()},e("vega-dropdown",{source:a,translocation:{X:0,Y:16},selectType:"single",selectedSourceKey:n,"position-relative-to":this.positionRelativeTo,ref:e=>{this.dropdownRef=e,f.addUniqueObserverToNode(e,m,(e=>{this.vegaTabGroupSelectedTargetController.handleTabItemClick(e.detail)}))}},e("vega-icon",{size:"size-12",icon:o})))}}F([s()],W.prototype,"tabPages",void 0),F([s()],W.prototype,"currentPageIndex",void 0),F([s()],W.prototype,"selectedTabDataTarget",void 0),F([s()],W.prototype,"positionRelativeTo",void 0),F([s({componentFieldName:"vegaTabGroupPageIndexController"})],W.prototype,"pageIndexController",void 0),F([s()],W.prototype,"vegaTabGroupSelectedTargetController",void 0);var E=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class _ extends l{constructor(){super(...arguments),this.tabPanels=[],this.handlePanelUpdate=e=>{const{host:t,type:a}=e;"ADD"===a?this.tabPanels.push(t):this.tabPanels=this.tabPanels.filter((e=>e!==t))}}connectedCallback(){this.tabPanelUpdateObserver=new y(this.canAcceptPanelUpdate.bind(this),this.handlePanelUpdate),T.register(w,this.tabPanelUpdateObserver)}disconnectedCallback(){T.unregister(w,this.tabPanelUpdateObserver),this.tabPanels=[]}componentDidLoad(){this.initSelectedTabDataTarget()}watchSelectedTabDataTargetChange(){this.updateTabPanelsStatus(this.selectedTabDataTarget)}canAcceptPanelUpdate(e){const{host:t,type:a}=e;return"ADD"===a?C(e.host,"VEGA-TAB-GROUP")===this.host&&!this.tabPanels.includes(t):this.tabPanels&&this.tabPanels.includes(t)}initSelectedTabDataTarget(){if(this.selectedTabDataTarget)this.updateTabPanelsStatus(this.selectedTabDataTarget);else{let e=this.getDefaultActivePanelId();!e&&this.tabItems&&this.tabItems.length&&(e=this.tabItems[0].dataTarget),e&&this.selectTargetController.setSelectedDataTarget(e)}}getDefaultActivePanelId(){if(this.tabPanels&&this.tabPanels.length){const e=this.tabPanels.find((e=>!0===e.isActive));return e?e.getAttribute("id"):null}}updateTabPanelsStatus(e){this.tabPanels.length&&e&&this.tabPanels.forEach((t=>{const a=t.getAttribute("id");t.isActive=a===e}))}}E([s()],_.prototype,"host",void 0),E([s()],_.prototype,"selectedTabDataTarget",void 0),E([s()],_.prototype,"tabItems",void 0),E([s({componentFieldName:"vegaTabGroupSelectedTargetController"})],_.prototype,"selectTargetController",void 0),E([d("connectedCallback")],_.prototype,"connectedCallback",null),E([d("disconnectedCallback")],_.prototype,"disconnectedCallback",null),E([d("componentDidLoad")],_.prototype,"componentDidLoad",null),E([d("watchSelectedTabDataTargetChange")],_.prototype,"watchSelectedTabDataTargetChange",null);var V=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class K extends l{constructor(){super(...arguments),this.TAB_LABEL_MAX_SIZE=32,this.getCarouselDomRef=()=>this.carouselDom}render(){return e("div",{class:"tab-list"},e("vega-carousel",{showSlider:!1,ref:e=>this.carouselDom=e},this.tabPages.length>0?this.tabPages.map((t=>e("div",null,this.renderTabList(t)))):e("div",null,this.renderTabList(this.tabItems))))}renderTabList(t){return e("vega-flex",{gap:this.gap},t.map((t=>e("div",{class:{"vega-tab":!0,selected:this.selectedTabDataTarget===t.dataTarget,"last-page":this.currentPageIndex+1===this.tabPages.length,"vega-flex-shrink-0":!0,"v-min-w-min":!0},"data-target":t.dataTarget,key:t.dataTarget},e("div",{class:"vega-tab-container"},e("div",{class:{label:!0,"vega-close-icon-space":this.showCloseButton},onClick:()=>this.handleTabItemClick(t.dataTarget),"aria-label":t.dataTarget,role:"button",tabIndex:0,onKeyDown:u()},this.renderPrefixIconDom(t),this.renderTabLabelDom(t),this.renderCounterBadgeDom(t)),this.closeButtonRenderer.render())))))}renderPrefixIconDom(t){const a=t.prefixIcon;return a&&e("vega-icon",{icon:a})}renderTabLabelDom(t){return t.label.length>this.TAB_LABEL_MAX_SIZE?e("vega-tooltip",{text:t.label,placement:"bottom","position-relative-to":this.positionRelativeTo},e("span",null,t.label.substring(0,this.TAB_LABEL_MAX_SIZE),"...")):t.label}renderCounterBadgeDom(t){const a=t.counterBadge,i=this.getCounterBadgeClassByCount(a);return void 0!==(null==a?void 0:a.count)&&a.count>0&&e("div",{class:`vega-counter-badge ${i}`},e("vega-counter-badge",{count:a.count,color:a.color}))}getCounterBadgeClassByCount(e){if(e&&e.count){const t=e.count.toString().length;return 1===t?"one-digit":2===t?"two-digits":"multi-digits"}return""}handleTabItemClick(e){this.selectedTargetController.handleTabItemClick(e)}}V([s()],K.prototype,"tabPages",void 0),V([s()],K.prototype,"currentPageIndex",void 0),V([s()],K.prototype,"selectedTabDataTarget",void 0),V([s()],K.prototype,"gap",void 0),V([s()],K.prototype,"showCloseButton",void 0),V([s()],K.prototype,"tabItems",void 0),V([s()],K.prototype,"positionRelativeTo",void 0),V([s({componentFieldName:"vegaTabGroupCloseButtonRenderer"})],K.prototype,"closeButtonRenderer",void 0),V([s({componentFieldName:"vegaTabGroupSelectedTargetController"})],K.prototype,"selectedTargetController",void 0);class M extends l{render(){return"secondary"===this.variant?e("div",{class:"vega-tab-group-content"},e("slot",null)):e("vega-card",{margin:"0",padding:{default:"size-24",S:"size-12"},variant:"shadow",backgroundColor:"bg-primary"},e("div",{class:"vega-tab-group-content"},e("slot",null)))}}!function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);n>3&&r&&Object.defineProperty(t,a,r)}([s()],M.prototype,"variant",void 0);var U=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};class Y extends l{constructor(){super(...arguments),this.UPDATE_ANIMATION_FLAG_DELAY=32,this.goToPageTaskQueue=new R,this.pendingCarouselActionCount=0}async componentDidRender(){await this.goToPageTaskQueue.runTask()}async handlePageIndexChange(){const e=this.tabListRenderer.getCarouselDomRef();e&&(this.pendingCarouselActionCount+=1,setTimeout((()=>{this&&"number"==typeof this.pendingCarouselActionCount&&(this.pendingCarouselActionCount-=1)}),this.UPDATE_ANIMATION_FLAG_DELAY),await this.goToPageTaskQueue.enqueue({run:async()=>await e.goToPage(this.currentPageIndex+1)},!1))}isAnimationInProgress(){return this.pendingCarouselActionCount>0}}U([s({componentFieldName:"vegaTabGroupTabListRenderer"})],Y.prototype,"tabListRenderer",void 0),U([s()],Y.prototype,"currentPageIndex",void 0),U([d("componentDidRender")],Y.prototype,"componentDidRender",null),U([d("watchCurrentPageIndexChange")],Y.prototype,"handlePageIndexChange",null);const q=[{payloadKey:"VARIANT_IS_PRIMARY",payloadDescription:"Specifies the visual style and prominence of the tab group",payloadValue:e=>"primary"===e.variant},{payloadKey:"VARIANT_IS_SECONDARY",payloadDescription:"Specifies the visual style and prominence of the tab group",payloadValue:e=>"secondary"===e.variant}];var $=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};const H=class{constructor(e){a(this,e),this.vegaClick=i(this,"vegaClick",7),this.click=i(this,"click",7),this.globalSlimmers={},this.vegaTabGroupRenderer=new I,this.vegaTabGroupDirectionButtonRenderer=new W,this.vegaTabGroupTabListRenderer=new K,this.vegaTabGroupCloseButtonRenderer=new B,this.vegaTabGroupPagesController=new O,this.vegaTabGroupSelectedTargetController=new S,this.vegaTabGroupPageIndexController=new L,this.vegaTabGroupPanelController=new _,this.vegaTabGroupContentRenderer=new M,this.vegaTabGroupSliderStateController=new Y,this.clickEventEmitter=D(H,x),this.dropdownEventPrevent=new j([x],(()=>this.vegaTabGroupRenderer.getTabMenuContainer())),this.vegaComponentUsageRuntimeMetricsSlimmer=new b(q),this.tabPages=[],this.tabWidthArray=[],this.currentPageIndex=0,this.selectedTabDataTarget="",this.gap="size-8",this.showCloseButton=!1,this.tabItems=[],this.variant="primary"}watchTabPagesChange(){}watchTabWidthArrayChange(){}async watchCurrentPageIndexChange(e){}watchSelectedTabDataTargetChange(){}watchGapChange(){}componentDidLoad(){}componentDidRender(){}render(){return h(e("slot",null)),r(e(o,null,this.vegaTabGroupRenderer.render()),this.host)}get host(){return n(this)}static get watchers(){return{tabPages:["watchTabPagesChange"],tabWidthArray:["watchTabWidthArrayChange"],currentPageIndex:["watchCurrentPageIndexChange"],selectedTabDataTarget:["watchSelectedTabDataTargetChange"],gap:["watchGapChange"]}}};$([g()],H.prototype,"globalSlimmers",void 0),$([c()],H.prototype,"vegaTabGroupRenderer",void 0),$([c()],H.prototype,"vegaTabGroupDirectionButtonRenderer",void 0),$([c()],H.prototype,"vegaTabGroupTabListRenderer",void 0),$([c()],H.prototype,"vegaTabGroupCloseButtonRenderer",void 0),$([c()],H.prototype,"vegaTabGroupPagesController",void 0),$([c()],H.prototype,"vegaTabGroupSelectedTargetController",void 0),$([c()],H.prototype,"vegaTabGroupPageIndexController",void 0),$([c()],H.prototype,"vegaTabGroupPanelController",void 0),$([c()],H.prototype,"vegaTabGroupContentRenderer",void 0),$([c()],H.prototype,"vegaTabGroupSliderStateController",void 0),$([c()],H.prototype,"clickEventEmitter",void 0),$([c()],H.prototype,"dropdownEventPrevent",void 0),$([c()],H.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),H.style='.tab-content-container.tab-style-primary{margin-left:24px;margin-right:24px}.vega-tab{cursor:pointer;border-top-left-radius:8px;border-top-right-radius:8px;background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1))}.tab-content-container.more-tab .vega-tab{flex-grow:1}.tab-content-container.more-tab .vega-tab.last-page{flex-grow:0}.vega-tab>div.vega-tab-container{display:flex;align-items:center}.vega-tab>div.vega-tab-container>div{flex-grow:1}.tab-style-primary .vega-tab:hover{background-color:rgba(var(--v-bg-tab-hover, 245, 247, 247, 1))}.tab-style-primary .vega-tab.selected,.tab-style-primary .vega-tab.selected:hover{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}.vega-tab>div>.label{display:inline-flex;align-items:center;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;padding-top:8px;padding-bottom:8px;padding-left:16px;padding-right:16px;cursor:pointer;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-tab>div>.label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-tab>div>.label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-tab>div>.label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}.vega-tab>div>.label vega-icon{padding-right:8px}.vega-tab>div>.label .vega-counter-badge{position:relative;height:20px;padding-left:8px}.vega-tab>div>.label .vega-counter-badge vega-counter-badge{position:absolute;padding-left:8px;top:10px}.vega-tab>div>.label .vega-counter-badge.one-digit{width:20px}.vega-tab>div>.label .vega-counter-badge.one-digit vega-counter-badge{left:10px}.vega-tab>div>.label .vega-counter-badge.two-digits{width:28px}.vega-tab>div>.label .vega-counter-badge.two-digits vega-counter-badge{left:14px}.vega-tab>div>.label .vega-counter-badge.multi-digits{width:32px}.vega-tab>div>.label .vega-counter-badge.multi-digits vega-counter-badge{left:16px}.vega-tab>div>.label.vega-close-icon-space{padding-right:12px}.vega-tab>div>div.vega-close-icon{padding-left:0px;flex-grow:0;padding-right:13px}.vega-tab>div>div.vega-hidden{display:none}.vega-tab>div vega-icon{color:rgba(var(--v-text-primary, 32, 54, 69, 1));box-sizing:content-box}.vega-tab>div>div.vega-close-icon vega-icon{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host{display:block;width:100%;text-align:left;line-height:normal;min-width:270px}.horizontal-divider{height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));width:100%;display:none;margin-top:-1px}.tab-content-container{display:flex;gap:8px;justify-content:space-between}.tab-content-container.more-tab .tab-list{width:100%}div.tab-left-button,div.tab-right-button{display:inline-block;cursor:pointer;border-top-left-radius:8px;border-top-right-radius:8px;background-color:rgba(var(--v-bg-action-quaternary, 222, 225, 227, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1))}div.tab-left-button.vega-hidden,div.tab-right-button.vega-hidden{display:none}div.tab-left-button vega-icon,div.tab-right-button vega-icon{box-sizing:content-box;padding:13px 13px 13px 12px}.vega-tab-group-content vega-tab-group-panel{display:none}.vega-tab-group-content vega-tab-group-panel.active{display:block}.tab-style-secondary .vega-tab>div.vega-tab-container{align-items:baseline}.tab-style-secondary+.horizontal-divider{display:block}.tab-style-secondary .vega-tab{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.tab-style-secondary .vega-tab>div>.label{padding-left:16px;padding-right:16px;padding-top:0px;padding-bottom:12px}.tab-style-secondary .vega-tab.selected>div>.label,.tab-style-secondary .vega-tab.selected>div>.label vega-icon,.tab-style-secondary .vega-tab:hover>div>.label,.tab-style-secondary .vega-tab:hover>div>.label vega-icon{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.tab-style-secondary .vega-tab{border-top-width:0px;border-left-width:0px;border-right-width:0px;border-bottom-width:2px;border-style:solid;border-color:transparent}.tab-style-secondary .vega-tab.selected{border-color:rgba(var(--v-border-color-action, 19, 98, 226, 1))}.tab-style-secondary div.tab-left-button,.tab-style-secondary div.tab-right-button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.tab-style-secondary div.tab-left-button vega-icon,.tab-style-secondary div.tab-right-button vega-icon{padding:6px 13px 13px 6px}.tab-style-secondary div.tab-left-button:hover vega-icon,.tab-style-secondary div.tab-right-button:hover vega-icon{color:rgba(var(--v-text-link, 19, 98, 226, 1))}';var X=function(e,t,a,i){var o,n=arguments.length,r=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,a,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(n<3?o(r):n>3?o(t,a,r):o(t,a))||r);return n>3&&r&&Object.defineProperty(t,a,r),r};const J=class{constructor(e){a(this,e),this.globalSlimmers={},this.clickEventPrevent=new j([x],(()=>this.host),void 0,!0),this.vegaComponentUsageRuntimeMetricsSlimmer=new b,this.isActive=!1}connectedCallback(){this.notifyGroupAddOrDelPanel("ADD")}disconnectedCallback(){this.notifyGroupAddOrDelPanel("DEL")}componentWillLoad(){this.notifyGroupAddOrDelPanel("ADD")}render(){return r(e(o,{class:this.isActive?"active":""},e("slot",null)),this.host)}notifyGroupAddOrDelPanel(e){T.notify(w,{host:this.host,type:e})}get host(){return n(this)}};X([g()],J.prototype,"globalSlimmers",void 0),X([c()],J.prototype,"clickEventPrevent",void 0),X([c()],J.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),J.style=":host{display:none}:host(.active){display:block}";export{H as vega_tab_group,J as vega_tab_group_panel}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,H as r,g as s}from"./p-1c298d5a.js";import{R as a}from"./p-3152031c.js";import{c as o}from"./p-86194314.js";import{s as n}from"./p-9b797118.js";import{a as l,h as p,b as h}from"./p-79ec5d69.js";import{F as d}from"./p-b1524c6c.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-4387d550.js";import{b as g}from"./p-d057999f.js";import{c as x}from"./p-e8f540d8.js";import{C as b}from"./p-2d0d575f.js";import{f as v}from"./p-6a3989dd.js";import"./p-0bb29d98.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-fe9644a0.js";import"./p-de664bdd.js";import"./p-5f589974.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-29b09aad.js";import"./p-987fbbd0.js";import"./p-a9354a5c.js";import"./p-b0502d01.js";import"./p-262ec334.js";import"./p-0af4bda9.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the color picker when a color is selected",payloadValue:e=>!1===e.autoValidation}];var w=function(e,t,i,r){var s,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};const k=class{constructor(r){e(this,r),this.vegaChange=t(this,"vegaChange",7),this.change=t(this,"change",7),this.globalSlimmers={},this.formFieldController=new d({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new a:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=x(k,v),this.vegaComponentUsageRuntimeMetricsSlimmer=new m(u),this.value="",this.hint="",this.disabled=!1,this.required=!1,this.label="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.colors=["#73E6DC","#806BFF","#FFDC83","#FF9571","#00BBFF","#FF82C9","#259F9F","#563D82"],this.isInline=!1,this.renderColorPickerContainer=()=>i("div",{class:l([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8"},this.colors.map((e=>i("div",{id:e,class:"color-picker-inline-items",ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:o()},this.value===e?i("vega-icon",{icon:"checkmark",size:"size-16",class:{"v-text-black":this.isDarkColorCheckmark(this.value),"v-text-white":!this.isDarkColorCheckmark(this.value)}}):null))))),this.renderHintMessage=()=>i("vega-text",null,this.hint),this.updateValueProp=async e=>{this.disabled||(this.value=String(e.currentTarget.getAttribute("id")))}}watchValue(){this.resetValueIfInvalid(),this.changeEventEmitter.emit(this.value),b.notify(g,{host:this.host,detail:this.value})}watchValidationRules(){}connectedCallback(){this.resetValueIfInvalid()}render(){return n(i(r,{class:{disabled:this.disabled}},this.renderLabelDom(),this.renderColorPickerContainer(),this.hint&&this.renderHintMessage()),this.host)}renderLabelDom(){return i("vega-field-label",{"is-field-required":this.required,disabled:this.disabled,label:this.label})}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),s=this.getLuminance(t),a=this.getLuminance(i);return r>Math.sqrt((s+.05)*(a+.05))-.05}getLuminance(e){const t=[p(e).r/255,p(e).g/255,p(e).b/255].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return.2126*t[0]+.7152*t[1]+.0722*t[2]}resetValueIfInvalid(){this.colors.some((e=>h(e).toUpperCase()==h(this.value).toUpperCase()))||(this.value="")}get host(){return s(this)}static get watchers(){return{value:["watchValue"],validationRules:["watchValidationRules"]}}};w([f()],k.prototype,"globalSlimmers",void 0),w([c()],k.prototype,"formFieldController",void 0),w([c()],k.prototype,"changeEventEmitter",void 0),w([c()],k.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),k.style=':host{display:inline-block;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host(.disabled) .color-picker-inline{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}.color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}.color-picker-inline-items:focus-within{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host(.disabled) .color-picker-inline-items:hover{box-shadow:none}:host(.disabled) .color-picker-inline-items:focus-within{box-shadow:none}:host .color-picker-inline{border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));padding:12px;max-width:max-content}:host .color-picker-inline-items{display:flex;border:1px solid rgba(var(--v-border-chip, 205, 209, 211, 1));border-radius:4px;width:24px;height:24px;cursor:pointer;align-items:center;justify-content:center}:host .checkmark-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host .checkmark-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host vega-text{padding-left:8px;padding-right:8px;padding-top:4px;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-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){: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 .color-picker-inline.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-hidden{display:none}:host vega-flex{flex-wrap:wrap;max-width:264px}';export{k as vega_color_picker}
@@ -0,0 +1 @@
1
+ import{C as t,S as s,a as n,b as a,V as o,L as i}from"./p-6e1ab235.js";import{c}from"./p-6a334573.js";const e=()=>(Date.now()+Math.floor(1e4*Math.random())).toString(),r=t=>!t||0===Object.keys(t).length,u=(async()=>{}).constructor,f=t=>"function"==typeof t&&("AsyncFunction"===t[Symbol.toStringTag]||t instanceof u==1);function l(){return function(a,o){var i;Object.defineProperty(a,o,{set:(i=o,function(a){this[t]||(this[t]=new Map),this[t].set(i,a),a[s]=this,function(t,s){const a=t.constructor.prototype;if(a[n])for(const o of a[n])s[o.componentMethodName]=p(s,t,s[o.componentMethodName],o)}(a,this)})})}}function p(t,s,n,o){return function(...i){const c=n.apply(t,i);return s[a]=o.componentMethodName,c&&"function"==typeof c.then?c.then((()=>s[o.slimmerMethodName].call(s,...i))):s[o.slimmerMethodName].call(s,...i),c}}class h extends o{constructor(t,s){super(),this.className=t,this.usageDefinitions=s}sendPublicAPIPayloadToTelemetry(t){try{const s=this.getPublicAPIMetricsPayload(t);s&&import("./p-7a40e033.js").then((t=>{t.default.emit("publicAPIMetrics",s)}))}catch(t){i.log("Public API payload failed to emit telemetry:",t)}}getPublicAPIMetricsPayload(t){const s={};return this.usageDefinitions.filter((s=>s.canAccept(this.className,this[a],t))).forEach((n=>{s[n.payloadKey]=n.payloadValue(t)})),r(s)?null:{publicAPIName:this.className,data:s}}}function m(t,s,n){const a=[];return s.map((t=>a.push({mapFrom:t,mapTo:"sendPublicAPIPayloadToTelemetry"}))),c(t,h,[],a,[t.name,n])}export{l as I,r as a,m as c,e as g,f as i}
@@ -1 +1 @@
1
- import{d as t,M as s,V as e}from"./p-9c1eeff2.js";import{O as i,d as o}from"./p-a5ffe912.js";import{C as a}from"./p-443ad3b3.js";import{f as c}from"./p-1995e98e.js";import{g as n,h}from"./p-f357cf46.js";var l=function(t,s,e,i){var o,a=arguments.length,c=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(c=(a<3?o(c):a>3?o(s,e,c):o(s,e))||c);return a>3&&c&&Object.defineProperty(s,e,c),c};class r extends e{constructor(t){super(),this.isAcceptableObserverPayload=t=>"object"==typeof t&&!!t&&t.host===this.parent,this.observerEntry=t}connectedCallback(){if(this.parent=this.getParent(),!this.parent)return;const{subStates:t}=this.observerEntry;this.subStateObserver=new i(this.isAcceptableObserverPayload,(s=>{const e=t.find((t=>t.parentStateName===s.stateName));e&&this.updateState(e,s.value)})),a.register(o.getSubject(this.parent,n),this.subStateObserver),this.observerEntry.pullStatesWhenReattached&&this.host.classList.contains("hydrated")&&(this.parent=this.getParent(),this.pullStates())}disconnectedCallback(){this.parent&&a.unregister(o.getSubject(this.parent,n),this.subStateObserver)}componentWillLoad(){this.pullStates()}getParent(){return"string"==typeof this.observerEntry.parent?c(this.host,this.observerEntry.parent):this.observerEntry.parent()}updateState(t,s){t.callback?t.callback(s):this[t.subStateName]=s}pullStates(){if(!this.parent)return;const{subStates:t}=this.observerEntry;t.forEach((t=>{a.notify(o.getSubject(this.parent,h),{host:this.parent,stateName:t.parentStateName,callback:s=>{this.updateState(t,s)}})}))}}l([t()],r.prototype,"host",void 0),l([s("connectedCallback")],r.prototype,"connectedCallback",null),l([s("disconnectedCallback")],r.prototype,"disconnectedCallback",null),l([s("componentWillLoad")],r.prototype,"componentWillLoad",null);export{r as S}
1
+ import{c as t,M as s,V as e}from"./p-6e1ab235.js";import{O as i,d as a}from"./p-6a3989dd.js";import{C as o}from"./p-2d0d575f.js";import{f as c}from"./p-79ec5d69.js";import{g as n,h}from"./p-fe9644a0.js";var l=function(t,s,e,i){var a,o=arguments.length,c=o<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(c=(o<3?a(c):o>3?a(s,e,c):a(s,e))||c);return o>3&&c&&Object.defineProperty(s,e,c),c};class r extends e{constructor(t){super(),this.isAcceptableObserverPayload=t=>"object"==typeof t&&!!t&&t.host===this.parent,this.observerEntry=t}connectedCallback(){if(this.parent=this.getParent(),!this.parent)return;const{subStates:t}=this.observerEntry;this.subStateObserver=new i(this.isAcceptableObserverPayload,(s=>{const e=t.find((t=>t.parentStateName===s.stateName));e&&this.updateState(e,s.value)})),o.register(a.getSubject(this.parent,n),this.subStateObserver),this.observerEntry.pullStatesWhenReattached&&this.host.classList.contains("hydrated")&&(this.parent=this.getParent(),this.pullStates())}disconnectedCallback(){this.parent&&o.unregister(a.getSubject(this.parent,n),this.subStateObserver)}componentWillLoad(){this.pullStates()}getParent(){return"string"==typeof this.observerEntry.parent?c(this.host,this.observerEntry.parent):this.observerEntry.parent()}updateState(t,s){t.callback?t.callback(s):this[t.subStateName]=s}pullStates(){if(!this.parent)return;const{subStates:t}=this.observerEntry;t.forEach((t=>{o.notify(a.getSubject(this.parent,h),{host:this.parent,stateName:t.parentStateName,callback:s=>{this.updateState(t,s)}})}))}}l([t()],r.prototype,"host",void 0),l([s("connectedCallback")],r.prototype,"connectedCallback",null),l([s("disconnectedCallback")],r.prototype,"disconnectedCallback",null),l([s("componentWillLoad")],r.prototype,"componentWillLoad",null);export{r as S}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i,H as a,g as n}from"./p-1c298d5a.js";import{s}from"./p-9b797118.js";import{n as o,c as r}from"./p-262ec334.js";import{D as g}from"./p-29b09aad.js";import{v as p,A as h,f as l,a as m,K as c}from"./p-6a3989dd.js";import{a as f}from"./p-79ec5d69.js";import{C as d}from"./p-be12fa36.js";import{c as v}from"./p-e8f540d8.js";import{I as u}from"./p-6e1ab235.js";import{V as x,I as w}from"./p-4387d550.js";import{T as b}from"./p-b688a71b.js";import"./p-2d0d575f.js";import"./p-0af4bda9.js";import"./p-5f377954.js";import"./p-ff4bafa3.js";import"./p-7a40e033.js";import"./p-112455b1.js";import"./p-6a334573.js";import"./p-de664bdd.js";import"./p-d057999f.js";import"./p-33b62194.js";const y=({pageSize:e,current:i,total:a,translationSlimmer:n})=>{const s=a>0?e*(i-1)+1:0,o=Math.min(i*e,a);return t("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",s,o,a)})},z=({onChange:e,pageCount:i,translationSlimmer:a})=>{let n;const s=()=>{if(n.value){const t=o(r(n.value,1),1,i);e(t),n.value=""}},l=t=>{t.stopPropagation()};return t("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},t("vega-field-label",{label:a.t("Go To")}),t("vega-form",{ref:t=>{g.addUniqueObserverToNode(t,p,s)}},t("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:l,onChange:l,ref:t=>{n=t,g.addUniqueObserverToNode(t,h,s)}})))},S=({pageSize:e,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:s})=>{const o=i.sort(((t,e)=>t-e)),r=t=>{const e=Number(t.detail);n(e)};return t("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},t("vega-field-label",{label:s.t("Show")}),t("div",null,t("vega-input-select",{size:"small",source:o.map((t=>({id:t.toString(),displayName:t.toString()}))),value:e.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:t=>{g.addUniqueObserverToNode(t,l,r)}})))},C=({total:e,current:i,onChange:a,pageCount:n})=>{const s=e=>{const n=i!==e;return t("li",{key:e,class:f(["vega-pagination-item",i===e?"active":""])},t("button",{onClick:()=>n&&a(e)},e))},o=(e,i,a)=>t("li",{class:f(["vega-pagination-button",i&&"disabled"])},t("vega-button-circle",{variant:"icon-only",icon:e,iconColor:"text-link",size:"small",disabled:i,ref:t=>{g.addUniqueObserverToNode(t,m,a)}}));return t("ul",{class:"vega-pagination"},o("chevron-left",0===e||1===i,(()=>{a(i-1)})),0===e?[s(1)]:((t,e,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(e<i)return Array(e).fill(0).map(((t,e)=>e+1));const a=Math.max(1,Math.min(e-i+1,t-Math.floor(i/2))),n=new Array(i);for(let t=0;t<i;t+=1)n[t]=t+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=e-1&&(n[n.length-1]=e,n[n.length-2]="..."),n})(i,n).map((e=>"string"==typeof e?t("li",{class:"vega-pagination-item pager-ellipsis"},"..."):s(e))),o("chevron-right",0===e||i===n,(()=>{a(i+1)})))};var j=function(t,e,i,a){var n,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(o=(s<3?n(o):s>3?n(e,i,o):n(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const I=class{constructor(a){e(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new b,this.childEventPrevent=new d([p],(()=>this.host)),this.childValueChangePrevent=new d([l],(()=>this.host),!0),this.vegaChangeEventEmitter=v(I,l),this.vegaPageSizeChangeEventEmitter=v(I,c),this.vegaComponentUsageRuntimeMetricsSlimmer=new x,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo"],this.pageCount=0,this.current=1,this.total=0,this.pageSize=10,this.extensions=[["pageSelector"]],this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=e=>t("vega-flex",{gap:"size-24",alignItems:"center",key:this.generateWrapperKey(e)},e.map((e=>t("div",{key:e},this.renderPaginationItem(e))))),this.renderPaginationItem=e=>{switch(e){case"currentPageLabel":return t(y,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const e=this.pageSizeSelectorOptions.includes(this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return t(S,{pageSize:this.pageSize,pageSizeSelectorOptions:e,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer})}case"pageSelector":return t(C,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return t(z,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer})}},this.handlePaginationGoToChange=t=>{this.current=t},this.onPageSizeSelectorChange=t=>{this.pageSize=t},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=t=>{this.current=t},this.removeDuplicateItems=t=>{const e=[...this.vegaPaginationItemTypes];return[...t].map((t=>t.filter(((i,a)=>{const n=e.indexOf(i);return n>=0?(e.splice(n,1),!0):(t.splice(a,1),!1)})))).filter((t=>t.length>0))},this.generateWrapperKey=t=>t.map(String).reduce(((t,e)=>`${t}-${e}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(){this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}componentWillLoad(){this.pageCount=this.calculatePages(),this.currentValueGuard(),this.pageSizeSelectorOptions.includes(this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){return s(t(a,null,this.removeDuplicateItems(this.extensions).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"]}}};j([w()],I.prototype,"globalSlimmers",void 0),j([u()],I.prototype,"translationSlimmer",void 0),j([u()],I.prototype,"childEventPrevent",void 0),j([u()],I.prototype,"childValueChangePrevent",void 0),j([u()],I.prototype,"vegaChangeEventEmitter",void 0),j([u()],I.prototype,"vegaPageSizeChangeEventEmitter",void 0),j([u()],I.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),I.style=':host{display:flex;align-items:center;justify-content:space-between;gap:20px;line-height:normal}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{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-pagination .vega-pagination-item{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-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{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-pagination .vega-pagination-item button{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-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{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-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{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-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{box-shadow:0 0 0 4px rgba(var(--v-ring-action-focus, 19, 98, 226, 0.25));border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{I as vega_pagination}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r,c as o,H as i,g as a}from"./p-1c298d5a.js";import{s as l}from"./p-9b797118.js";import{c as s,V as n,M as c,I as d}from"./p-6e1ab235.js";import{V as v,I as h}from"./p-4387d550.js";import{V as p}from"./p-8284a445.js";import{D as f}from"./p-29b09aad.js";import{a as g,f as u,r as b,s as m,t as x,u as w}from"./p-6a3989dd.js";import{g as C}from"./p-33b62194.js";import{c as y}from"./p-86194314.js";import{t as j}from"./p-aacf6920.js";import{c as F}from"./p-e8f540d8.js";import{C as R}from"./p-2d0d575f.js";import{b as L}from"./p-d057999f.js";import{F as k}from"./p-b1524c6c.js";import{R as z}from"./p-3152031c.js";import{T as E}from"./p-b688a71b.js";import"./p-032df16f.js";import"./p-79ec5d69.js";import"./p-6a334573.js";import"./p-0af4bda9.js";import"./p-0bb29d98.js";import"./p-fe9644a0.js";import"./p-de664bdd.js";import"./p-5f589974.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-987fbbd0.js";import"./p-a9354a5c.js";import"./p-b0502d01.js";import"./p-262ec334.js";var M=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};class V extends n{render(){return e(t,null,e("vega-field-label",{isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.vegaFileUploaderContainerRenderer.render(),this.hint?e("vega-hint",null,this.hint):null,this.vegaFileUploaderFileListRenderer.render())}}M([s()],V.prototype,"required",void 0),M([s()],V.prototype,"disabled",void 0),M([s()],V.prototype,"label",void 0),M([s()],V.prototype,"hint",void 0),M([s()],V.prototype,"vegaFileUploaderContainerRenderer",void 0),M([s()],V.prototype,"vegaFileUploaderFileListRenderer",void 0);var I=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};class O extends n{constructor(){super(...arguments),this.handleDropAreaClick=e=>{e.stopPropagation(),this.shouldDisableUploadButton()||this.triggerFileInputClick()},this.triggerFileInputClick=()=>{this.inputElementRef.click()},this.inputChangeHandler=e=>{e.stopPropagation();const t=this.getVegaFilesFromFileList(e.target.files);this.selectFileChangeEventEmitHandler(this.filterExceedLimitFiles(t)),this.inputElementRef.value=""},this.dropHandler=e=>{var t;if(e.preventDefault(),!this.shouldDisableUploadButton()){const r=this.getVegaFilesFromFileList(this.dropFileFilterController.process(null===(t=e.dataTransfer)||void 0===t?void 0:t.files));this.selectFileChangeEventEmitHandler(this.filterExceedLimitFiles(r))}}}getUploaderContainerRef(){return this.uploaderContainerRef}render(){return e("div",{class:"vega-file-uploader-container",ref:e=>this.uploaderContainerRef=e},e("input",{onChange:this.inputChangeHandler,type:"file",multiple:!this.fileLimitController.isSingleMode(),accept:this.accept,style:{display:"none"},ref:e=>this.inputElementRef=e}),"uploadButton"===this.variant?this.renderUploadButton():this.renderUploadDropArea())}renderUploadButton(){return e("vega-button",{label:"Upload Document",icon:p.getIconKey("arrow-up-from-line"),variant:"secondary",size:"small",disabled:this.shouldDisableUploadButton(),ref:e=>{f.addUniqueObserverToNode(e,g,this.triggerFileInputClick)}})}renderUploadDropArea(){return e("vega-box",{class:{"vega-file-upload-area":!0,disabled:this.shouldDisableUploadButton()},padding:"size-24",border:"border-input-field",borderStyle:"dashed",backgroundColor:"bg-tertiary",corners:"rounded-8",tabIndex:0,onDrop:this.dropHandler,onDragEnter:this.preventDefaultBehavior,onDragOver:this.preventDefaultBehavior,onClick:this.handleDropAreaClick,onKeyDown:y()},e("vega-flex",{gap:"size-8",alignItems:"center",justifyContent:"center"},e("vega-icon",{color:"text-link",icon:p.getIconKey("arrow-up-from-line")}),e("vega-font",{color:"text-link",variant:"font-btn-label"},this.translationSlimmer.t("Select or drop your file here"))))}preventDefaultBehavior(e){e.preventDefault()}selectFileChangeEventEmitHandler(e){e&&e.length&&(this.selectFileChangeEventEmitter.emit(e).defaultPrevented||this.vegaFileUploaderValueController.setValue(this.value&&this.value.length?(new Array).concat(this.value,e):e))}getVegaFilesFromFileList(e){const t=[];return e&&e.length&&Array.from(e).map((e=>{t.push({key:C(),name:e.name,url:e})})),t}shouldDisableUploadButton(){return this.disabled||!!(this.value&&this.maxCount&&this.value.length>=this.maxCount)}filterExceedLimitFiles(e){const t=Number(this.maxCount);if(!isNaN(t)&&t&&e.length){const r=Math.max(0,t-(this.value?this.value.length:0));return e.slice(0,r)}return e}}p.register({"arrow-up-from-line":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.3V208 320c0 17.7 14.3 32 32 32s32-14.3 32-32V208 141.3l73.4 73.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-128-128zM32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32H352c17.7 0 32-14.3 32-32s-14.3-32-32-32H32z"/></svg>'}}),I([s()],O.prototype,"variant",void 0),I([s()],O.prototype,"accept",void 0),I([s()],O.prototype,"disabled",void 0),I([s()],O.prototype,"value",void 0),I([s()],O.prototype,"selectFileChangeEventEmitter",void 0),I([s()],O.prototype,"vegaFileUploaderValueController",void 0),I([s()],O.prototype,"dropFileFilterController",void 0),I([s()],O.prototype,"translationSlimmer",void 0),I([s()],O.prototype,"fileLimitController",void 0),I([s()],O.prototype,"maxCount",void 0);var U=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};class A extends n{constructor(){super(...arguments),this.fileRemoveHandler=e=>{this.removeEventEmitter.emit(e).defaultPrevented||this.vegaFileUploaderValueController.setValue(this.value.filter((t=>t!==e)))},this.fileReUploadHandler=e=>{this.retryEventEmitter.emit(e)},this.filePreviewHandler=e=>{this.previewEventEmitter.emit(e)}}render(){const t=!this.value||this.value.length<1;return e("div",{class:{"vega-file-uploader-file-list":!0,"vega-file-list-hidden":t}},!t&&this.value.map((t=>e("vega-box",{key:t.key,class:"vega-file-uploader-file",padding:"size-8",corners:"rounded-8"},e("vega-flex",{alignItems:"start",justifyContent:"space-between"},e("vega-flex",{class:"vega-file-status-and-name",gap:"size-8",alignItems:"start"},e("div",{style:{paddingTop:"3px"}},this.vegaFileUploaderFileStatusRenderer.render(t.status,t.uploadingPercent)),e("vega-flex",{gap:"size-4",direction:"col"},e("vega-font",{color:"done"===t.status||"error"===t.status?"text-primary":"text-secondary",variant:"font-field-label"},t.name),"error"===t.status&&t.errorMessage&&e("vega-font",{color:"text-error",variant:"font-footnote1-short"},t.errorMessage))),e("vega-flex",{gap:"size-4",class:"vega-file-list-buttons",justifyContent:"end"},t.previewable&&e("vega-button-circle",{class:"vega-file-preview-button",variant:"icon-only",size:"small",icon:"zoom-in",iconColor:"text-secondary",label:"Preview",tooltip:{disableInteractive:!0},ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.filePreviewHandler(t)}))}}),"error"===t.status&&e("vega-button-circle",{variant:"icon-only",size:"small",icon:p.getIconKey("arrow-rotate-right"),iconColor:"text-secondary",label:"Retry",tooltip:{disableInteractive:!0},disabled:this.disabled,ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.fileReUploadHandler(t)}))}}),e("vega-button-circle",{variant:"icon-only",size:"small",icon:p.getIconKey("trash-can"),iconColor:"text-secondary",label:"Delete",tooltip:{disableInteractive:!0},disabled:this.disabled,ref:e=>{f.addUniqueObserverToNode(e,g,(()=>{this.fileRemoveHandler(t)}))}})))))))}}p.register({"trash-can":j,"arrow-rotate-right":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M456 224c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24s-24 10.7-24 24v80.1l-20-23.5C371 63.4 309.1 32 240 32C116.3 32 16 132.3 16 256s100.3 224 224 224c50.4 0 97-16.7 134.4-44.8c10.6-8 12.7-23 4.8-33.6s-23-12.7-33.6-4.8C316.2 418.9 279.7 432 240 432c-97.2 0-176-78.8-176-176s78.8-176 176-176c54.3 0 102.9 24.6 135.2 63.4l.1 .2 0 0L402.9 176H312c-13.3 0-24 10.7-24 24s10.7 24 24 24H456z"/></svg>'}}),U([s()],A.prototype,"value",void 0),U([s()],A.prototype,"disabled",void 0),U([s()],A.prototype,"vegaFileUploaderFileStatusRenderer",void 0),U([s()],A.prototype,"removeEventEmitter",void 0),U([s()],A.prototype,"vegaFileUploaderValueController",void 0),U([s()],A.prototype,"retryEventEmitter",void 0),U([s()],A.prototype,"previewEventEmitter",void 0);class D extends n{render(t,r){switch(t){case"uploading":return e("vega-loading-indicator",Object.assign({class:"vega-file-list-status",mode:r?"determinate":"indeterminate",size:"micro"},r?{percent:r}:{}));case"done":return e("vega-icon",{class:"vega-file-list-status",color:"text-success",icon:p.getIconKey("circle-check-regular")});case"error":return e("vega-icon",{class:"vega-file-list-status",color:"text-error",icon:p.getIconKey("circle-xmark")});default:return e("vega-loading-indicator",{class:"vega-file-list-status",mode:"determinate",size:"micro"})}}}p.register({"circle-check-regular":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M243.8 339.8C232.9 350.7 215.1 350.7 204.2 339.8L140.2 275.8C129.3 264.9 129.3 247.1 140.2 236.2C151.1 225.3 168.9 225.3 179.8 236.2L224 280.4L332.2 172.2C343.1 161.3 360.9 161.3 371.8 172.2C382.7 183.1 382.7 200.9 371.8 211.8L243.8 339.8zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/></svg>'},"circle-xmark":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M175 175C184.4 165.7 199.6 165.7 208.1 175L255.1 222.1L303 175C312.4 165.7 327.6 165.7 336.1 175C346.3 184.4 346.3 199.6 336.1 208.1L289.9 255.1L336.1 303C346.3 312.4 346.3 327.6 336.1 336.1C327.6 346.3 312.4 346.3 303 336.1L255.1 289.9L208.1 336.1C199.6 346.3 184.4 346.3 175 336.1C165.7 327.6 165.7 312.4 175 303L222.1 255.1L175 208.1C165.7 199.6 165.7 184.4 175 175V175zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/></svg>'}});var S=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};class B extends n{valueChangeHandler(e){!e||Array.isArray(e)?(this.changeEventEmitter.emit(e),R.notify(L,{host:this.host,detail:this.value})):e&&!Array.isArray(e)&&this.setValue(null)}setValue(e){this.value=e}}S([s()],B.prototype,"host",void 0),S([s({writable:!0})],B.prototype,"value",void 0),S([s()],B.prototype,"changeEventEmitter",void 0),S([c("watchValue")],B.prototype,"valueChangeHandler",null);class H extends z{constructor(){super(...arguments),this.checkArrayItemType=e=>!(!e||"object"!=typeof e)}}class N extends n{process(e){const t=Array.from(e||[]);if(e&&this.accept&&"*"!==this.accept&&"/*"!==this.accept){const e=this.accept.split(",");return t.filter((t=>this.validateFileType(t,e)))}return t}validateFileType(e,t){const r=e.name,o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return t.some((e=>(e=e.trim().toLowerCase()).startsWith(".")?r.toLowerCase().endsWith(e):e.endsWith("/*")?i===e.replace(/\/.*$/,""):o===e))}}!function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);a>3&&l&&Object.defineProperty(t,r,l)}([s()],N.prototype,"accept",void 0);var P=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};class q extends n{isSingleMode(){return 1===Number(this.maxCount)}checkMaxCount(){null!==this.maxCount&&this.maxCount<1&&(this.maxCount=null)}}P([s({writable:!0})],q.prototype,"maxCount",void 0),P([c("componentDidLoad"),c("watchMaxCount")],q.prototype,"checkMaxCount",null);var G=function(e,t,r,o){var i,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(t,r,l):i(t,r))||l);return a>3&&l&&Object.defineProperty(t,r,l),l};const T=class{constructor(e){r(this,e),this.vegaChange=o(this,"vegaChange",7),this.change=o(this,"change",7),this.vegaSelectedFileChange=o(this,"vegaSelectedFileChange",7),this.selectedFileChange=o(this,"selectedFileChange",7),this.vegaRemove=o(this,"vegaRemove",7),this.remove=o(this,"remove",7),this.vegaRetry=o(this,"vegaRetry",7),this.retry=o(this,"retry",7),this.vegaPreview=o(this,"vegaPreview",7),this.preview=o(this,"preview",7),this.globalSlimmers={},this.translationSlimmer=new E,this.vegaComponentUsageRuntimeMetricsSlimmer=new v,this.formFieldController=new k({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new H:null}],validationRulesName:"validationRules",defaultValue:[],attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaFileUploaderContainerRenderer.getUploaderContainerRef(),touchableAreaGetter:()=>[this.vegaFileUploaderContainerRenderer.getUploaderContainerRef()]}),this.vegaFileUploaderRenderer=new V,this.vegaFileUploaderContainerRenderer=new O,this.vegaFileUploaderFileListRenderer=new A,this.vegaFileUploaderFileStatusRenderer=new D,this.vegaFileUploaderValueController=new B,this.dropFileFilterController=new N,this.fileLimitController=new q,this.changeEventEmitter=F(T,u),this.selectFileChangeEventEmitter=F(T,b),this.removeEventEmitter=F(T,m),this.retryEventEmitter=F(T,x),this.previewEventEmitter=F(T,w),this.label="",this.variant="uploadArea",this.hint="",this.value=[],this.disabled=!1,this.maxCount=null,this.required=!1,this.validationRules=[],this.autoValidation=!0,this.isValid=null}watchValue(e){}watchMaxCount(){}watchValidationRules(){}render(){return l(e(i,null,this.vegaFileUploaderRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{value:["watchValue"],maxCount:["watchMaxCount"],validationRules:["watchValidationRules"]}}};G([h()],T.prototype,"globalSlimmers",void 0),G([d()],T.prototype,"translationSlimmer",void 0),G([d()],T.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),G([d()],T.prototype,"formFieldController",void 0),G([d()],T.prototype,"vegaFileUploaderRenderer",void 0),G([d()],T.prototype,"vegaFileUploaderContainerRenderer",void 0),G([d()],T.prototype,"vegaFileUploaderFileListRenderer",void 0),G([d()],T.prototype,"vegaFileUploaderFileStatusRenderer",void 0),G([d()],T.prototype,"vegaFileUploaderValueController",void 0),G([d()],T.prototype,"dropFileFilterController",void 0),G([d()],T.prototype,"fileLimitController",void 0),G([d()],T.prototype,"changeEventEmitter",void 0),G([d()],T.prototype,"selectFileChangeEventEmitter",void 0),G([d()],T.prototype,"removeEventEmitter",void 0),G([d()],T.prototype,"retryEventEmitter",void 0),G([d()],T.prototype,"previewEventEmitter",void 0),T.style=':host{display:inline-block;text-align:left;width:100%;line-height:normal}:host .vega-file-uploader-container .vega-file-upload-area{text-align:center}:host .vega-file-uploader-container .vega-file-upload-area:hover{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border-color:rgba(var(--v-border-color-input-field-hover, 115, 160, 190, 1))}:host .vega-file-uploader-container .vega-file-upload-area:hover vega-icon,:host .vega-file-uploader-container .vega-file-upload-area:hover vega-font{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .vega-file-uploader-container .vega-file-upload-area:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}:host .vega-file-uploader-container .vega-file-upload-area:active{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host .vega-file-uploader-container .vega-file-upload-area:active vega-icon,:host .vega-file-uploader-container .vega-file-upload-area:active vega-font{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host .vega-file-uploader-container .vega-file-upload-area.disabled{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1));background-color:rgba(var(--v-bg-tertiary, 240, 243, 247, 1));outline:none}:host .vega-file-uploader-container .vega-file-upload-area.disabled vega-icon,:host .vega-file-uploader-container .vega-file-upload-area.disabled vega-font{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host .vega-file-uploader-container vega-button::part(button):focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;box-shadow:0 0 0}:host .vega-file-uploader-container.error .vega-file-upload-area{border-color:rgba(var(--v-border-color-input-field-danger, 230, 50, 87, 1))}:host .vega-file-uploader-container.error .vega-file-upload-area:hover{border-color:rgba(var(--v-border-color-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-file-uploader-container.error .vega-file-upload-area:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}:host .vega-file-uploader-container.error .vega-file-upload-area:active{border-color:rgba(var(--v-border-color-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-file-uploader-container.error vega-button::part(button),:host .vega-file-uploader-container.error vega-button::part(button):hover{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1));border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1))}:host .vega-file-uploader-container.error vega-button::part(button):hover{background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host .vega-file-uploader-container.error vega-button::part(button):focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px;box-shadow:0 0 0}:host .vega-file-uploader-container.error vega-button::part(button):active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1));border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2))}:host .vega-file-uploader-file-list .vega-file-uploader-file .vega-file-preview-button{visibility:hidden}:host .vega-file-uploader-file-list .vega-file-uploader-file:hover{background-color:rgba(var(--v-bg-action-tertiary-hover, 4, 4, 28, 0.05))}:host .vega-file-uploader-file-list .vega-file-uploader-file:hover .vega-file-preview-button{visibility:visible}:host .vega-file-uploader-file-list .vega-file-list-buttons{margin-left:8px;flex-shrink:0}:host .vega-file-uploader-file-list .vega-file-list-status svg{width:16px;height:16px}:host .vega-file-uploader-file-list .vega-file-status-and-name{padding-top:5px}:host .vega-file-uploader-file-list .vega-file-status-and-name vega-font{word-break:break-word}:host vega-field-label{margin-bottom:8px}:host .vega-file-uploader-file-list{margin-top:8px}:host .vega-file-uploader-file-list.vega-file-list-hidden{display:none}:host .vega-error{display:inline-block;padding-left:8px;padding-right:8px;padding-top:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){: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-hidden{display:none}';export{T as vega_file_uploader}
@@ -1 +1 @@
1
- import{G as e,i as t,C as o,j as s,d as n,M as a,V as c,L as r}from"./p-9c1eeff2.js";function i(){return function(e,t){Object.defineProperty(e,t,{set:f(t),get:s(t)})}}function f(s){return function(){const n={};e.globalSlimmers.forEach((e=>{n[e.name]=new e({component:this})}));const a=Object.values(n);a.forEach((e=>{t(s).call(this,e)})),a.length>0&&this[o].set(s,n)}}var l=function(e,t,o,s){var n,a=arguments.length,c=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(c=(a<3?n(c):a>3?n(t,o,c):n(t,o))||c);return a>3&&c&&Object.defineProperty(t,o,c),c};class p extends c{constructor(e){super(),this.usageDefinitions=e}sendUsagePayloadToTelemetry(){import("./p-7a40e033.js").then((e=>{try{e.default.emit("componentUsage",this.getComponentUsageMetricsPayload())}catch(e){r.log("Component usage payload failed to emit telemetry:",e)}}))}getComponentUsageMetricsPayload(){const e={};if(e[p.baseUsageKey]=!0,this.usageDefinitions)for(const t of this.usageDefinitions){const{payloadKey:o,payloadValue:s}=t;e[o]=s(this.host)}return{componentName:this.host.tagName.toUpperCase(),data:e}}}p.baseUsageKey="COMPONENT_USED",l([n()],p.prototype,"host",void 0),l([a("componentDidRender")],p.prototype,"sendUsagePayloadToTelemetry",null);export{i as I,p as V}
1
+ import{G as e,d as t,C as o,e as s,c as n,M as a,V as c,L as r}from"./p-6e1ab235.js";function i(){return function(e,t){Object.defineProperty(e,t,{set:l(t),get:s(t)})}}function l(s){return function(){const n={};e.globalSlimmers.forEach((e=>{n[e.name]=new e({component:this})}));const a=Object.values(n);a.forEach((e=>{t(s).call(this,e)})),a.length>0&&this[o].set(s,n)}}var f=function(e,t,o,s){var n,a=arguments.length,c=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,s);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(c=(a<3?n(c):a>3?n(t,o,c):n(t,o))||c);return a>3&&c&&Object.defineProperty(t,o,c),c};class p extends c{constructor(e){super(),this.usageDefinitions=e}sendUsagePayloadToTelemetry(){import("./p-7a40e033.js").then((e=>{try{e.default.emit("componentUsage",this.getComponentUsageMetricsPayload())}catch(e){r.log("Component usage payload failed to emit telemetry:",e)}}))}getComponentUsageMetricsPayload(){const e={};if(e[p.baseUsageKey]=!0,this.usageDefinitions)for(const t of this.usageDefinitions){const{payloadKey:o,payloadValue:s}=t;e[o]=s(this.host)}return{componentName:this.host.tagName.toUpperCase(),data:e}}}p.baseUsageKey="COMPONENT_USED",f([n()],p.prototype,"host",void 0),f([a("componentDidRender")],p.prototype,"sendUsagePayloadToTelemetry",null);export{i as I,p as V}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as a,g as r}from"./p-1c298d5a.js";import{M as n,a as s}from"./p-f41102cd.js";import{R as o}from"./p-3152031c.js";import{s as p}from"./p-9b797118.js";import{I as h}from"./p-6e1ab235.js";import{V as d,I as l}from"./p-4387d550.js";import{F as x}from"./p-b1524c6c.js";import{b as g}from"./p-d057999f.js";import{C as f}from"./p-2d0d575f.js";import{c as m}from"./p-e8f540d8.js";import{f as c,A as v}from"./p-6a3989dd.js";import{C as b}from"./p-be12fa36.js";import"./p-0bb29d98.js";import"./p-79ec5d69.js";import"./p-33b62194.js";import"./p-6a334573.js";import"./p-fe9644a0.js";import"./p-de664bdd.js";import"./p-5f589974.js";import"./p-4bcd6612.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-29b09aad.js";import"./p-987fbbd0.js";import"./p-a9354a5c.js";import"./p-b0502d01.js";import"./p-262ec334.js";import"./p-0af4bda9.js";import"./p-5f377954.js";import"./p-ff4bafa3.js";import"./p-7a40e033.js";import"./p-112455b1.js";const u=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented for the text area",payloadValue:t=>!1===t.autoValidation}];var w=function(t,e,i,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const y=class{constructor(a){t(this,a),this.vegaChange=e(this,"vegaChange",7),this.change=e(this,"change",7),this.vegaBlur=e(this,"vegaBlur",7),this.blur=e(this,"blur",7),this.globalSlimmers={},this.formFieldController=new x({propertyRules:[{propertyName:"required",ruleFactory:t=>t?new o:null},{propertyName:"minLength",ruleFactory:t=>t?new n({minStrLength:t}):null},{propertyName:"maxLength",ruleFactory:t=>t?new s({maxStrLength:t}):null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.textareaRef]}),this.changeEventEmitter=m(y,c),this.blurEventEmitter=m(y,v),this.textareaEventPrevent=new b([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:t=>this.inputContainerRef=t},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=t=>{t&&this.textareaRef!==t&&(this.textareaRef=t)},this.inputFocus=()=>{this.textareaRef.focus()},this.handleTextareaBlur=t=>{this.blurEventEmitter.emit(void 0,t)},this.isExceedMaxLength=(t,e)=>null!=e&&t.length>e}watchValue(t){this.changeEventEmitter.emit(t),this.textareaRef.value!==this.value&&(this.textareaRef.value=this.value),t&&(this.currentCharCount=t.length),f.notify(g,{host:this.host,detail:t})}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}