@heartlandone/vega 2.86.0 → 2.87.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 (481) hide show
  1. package/dist/cjs/{accessibility-a5ef2038.js → accessibility-88f8af84.js} +16 -1
  2. package/dist/cjs/{app-globals-3080f55a.js → app-globals-885090b1.js} +11 -11
  3. package/dist/cjs/{aria-dialog-focusable-trap-slimmer-5507f917.js → aria-dialog-focusable-trap-slimmer-c2ca46db.js} +3 -3
  4. package/dist/cjs/{child-nodes-event-prevent-slimmer-f3979a03.js → child-nodes-event-prevent-slimmer-b7498e5a.js} +2 -2
  5. package/dist/cjs/{child-nodes-notify-observer-slimmer-2631c381.js → child-nodes-notify-observer-slimmer-34a606b3.js} +1 -1
  6. package/dist/cjs/{code-block-c6c70464.js → code-block-15411c14.js} +13 -4
  7. package/dist/cjs/{component-usage-runtime-metrics-4572c5b7.js → component-usage-runtime-metrics-389d1548.js} +1 -1
  8. package/dist/cjs/{component-value-history-controller-slimmer.abstract-a523b747.js → component-value-history-controller-slimmer.abstract-5218e4b3.js} +6 -6
  9. package/dist/cjs/{content-state-efd3b1a7.js → content-state-a69d99b4.js} +5 -5
  10. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-9cb09fb2.js → create-public-api-runtime-metrics-slimmer-122350c3.js} +1 -1
  11. package/dist/cjs/{date-required-rule-0dd83683.js → date-required-rule-d65727c5.js} +1 -1
  12. package/dist/cjs/{design-token-4b3509dd.js → design-token-3bc36220.js} +3 -3
  13. package/dist/cjs/{dom-node-subject-observer-factory-9110cb94.js → dom-node-subject-observer-factory-ba6a95f3.js} +1 -1
  14. package/dist/cjs/{element-appender-slimmer-2b4e0a62.js → element-appender-slimmer-f86e6811.js} +6 -6
  15. package/dist/cjs/{event-emit-slimmer-80e1c8ca.js → event-emit-slimmer-73c42d7e.js} +2 -2
  16. package/dist/cjs/{feature-flag-controller-9129ef52.js → feature-flag-controller-5fa21654.js} +1 -1
  17. package/dist/cjs/{form-field-controller-slimmer-a07e3de0.js → form-field-controller-slimmer-44091874.js} +5 -5
  18. package/dist/cjs/{icon-manager-c12c6ea9.js → icon-manager-e855446d.js} +1 -1
  19. package/dist/cjs/{image-annotation-action-93bace08.js → image-annotation-action-aad07357.js} +5 -5
  20. package/dist/cjs/index.cjs.js +26 -25
  21. package/dist/cjs/{inject-keyboard-manager-ff8735b8.js → inject-keyboard-manager-d06b337e.js} +1 -1
  22. package/dist/cjs/{internal-icon-manager-c989189a.js → internal-icon-manager-66c48800.js} +1 -1
  23. package/dist/cjs/{internal-translation-controller-8360a89c.js → internal-translation-controller-f0da24b2.js} +5 -0
  24. package/dist/cjs/{internal-vega-event-manager-7e0d966d.js → internal-vega-event-manager-063c17cb.js} +5 -2
  25. package/dist/cjs/{keyboard-manager-cc446230.js → keyboard-manager-1e045791.js} +2 -2
  26. package/dist/cjs/{keyboard-manager-slimmer-a10b7d6f.js → keyboard-manager-slimmer-861d991f.js} +1 -1
  27. package/dist/cjs/loader.cjs.js +20 -20
  28. package/dist/cjs/{month-view-generator-41b6c6b6.js → month-view-generator-8ed9818e.js} +1 -1
  29. package/dist/cjs/{public-rules-3cd0f182.js → public-rules-c7726702.js} +10 -10
  30. package/dist/cjs/{range-c9bde0b4.js → range-d6fb50a4.js} +2 -2
  31. package/dist/cjs/{responsive-format-facade-5f6cd211.js → responsive-format-facade-9647775d.js} +2 -2
  32. package/dist/cjs/{rich-text-editor-required-rule-d1f0509c.js → rich-text-editor-required-rule-a1a070ce.js} +1 -1
  33. package/dist/cjs/{split-cell-operation-6a59c9b0.js → split-cell-operation-39b19943.js} +5 -5
  34. package/dist/cjs/{state-border-formatter-d1c80c1d.js → state-border-formatter-1a483a9b.js} +1 -1
  35. package/dist/cjs/{string-format-strategy.abstract-b39da0dd.js → string-format-strategy.abstract-2aec209d.js} +1 -1
  36. package/dist/cjs/{string-input-formatter-slimmer-127cf2b8.js → string-input-formatter-slimmer-e061bd10.js} +4 -4
  37. package/dist/cjs/{string-mask-strategy-524d0f69.js → string-mask-strategy-4bc07c00.js} +2 -2
  38. package/dist/cjs/{style-formatter-c201e7d0.js → style-formatter-263d5eb6.js} +2 -2
  39. package/dist/cjs/{sub-state-notify-slimmer-b33171b0.js → sub-state-notify-slimmer-757e3a76.js} +2 -2
  40. package/dist/cjs/{sub-state-observer-slimmer-b8f6f27b.js → sub-state-observer-slimmer-aa93ab4f.js} +3 -3
  41. package/dist/cjs/{time-required-rule-ecb45905.js → time-required-rule-f9a7e897.js} +1 -1
  42. package/dist/cjs/{token-extension-d7d2ead6.js → token-extension-927062b9.js} +12 -12
  43. package/dist/cjs/{translation-slimmer-3cd7d3b2.js → translation-slimmer-a4a7f0eb.js} +1 -1
  44. package/dist/cjs/{type-guard-2e97fc56.js → type-guard-c1195e50.js} +1 -1
  45. package/dist/cjs/{ui-ae4ee13d.js → ui-3727d685.js} +13 -0
  46. package/dist/cjs/{valid-credit-card-number-rule-2d7d20ce.js → valid-credit-card-number-rule-22f3e6cf.js} +1 -1
  47. package/dist/cjs/vega-accordion.cjs.entry.js +35 -17
  48. package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
  49. package/dist/cjs/vega-app-header-button.cjs.entry.js +17 -17
  50. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  51. package/dist/cjs/vega-banner.cjs.entry.js +12 -12
  52. package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
  53. package/dist/cjs/vega-box.cjs.entry.js +10 -10
  54. package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
  55. package/dist/cjs/vega-breadcrumb.cjs.entry.js +9 -9
  56. package/dist/cjs/vega-button-circle.cjs.entry.js +15 -15
  57. package/dist/cjs/vega-button-group_2.cjs.entry.js +12 -12
  58. package/dist/cjs/vega-button-link.cjs.entry.js +9 -9
  59. package/dist/cjs/vega-button.cjs.entry.js +13 -13
  60. package/dist/cjs/vega-calendar_4.cjs.entry.js +665 -344
  61. package/dist/cjs/vega-card.cjs.entry.js +9 -9
  62. package/dist/cjs/vega-carousel.cjs.entry.js +12 -12
  63. package/dist/cjs/vega-checkbox_2.cjs.entry.js +28 -16
  64. package/dist/cjs/vega-chip.cjs.entry.js +15 -15
  65. package/dist/cjs/vega-code-block.cjs.entry.js +21 -21
  66. package/dist/cjs/vega-color-picker.cjs.entry.js +11 -11
  67. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +17 -17
  68. package/dist/cjs/vega-color-swatch.cjs.entry.js +9 -9
  69. package/dist/cjs/vega-combo-box.cjs.entry.js +17 -17
  70. package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
  71. package/dist/cjs/vega-date-picker_2.cjs.entry.js +30 -30
  72. package/dist/cjs/{vega-dialog-controller-03ef4d9a.js → vega-dialog-controller-6df7825e.js} +1 -1
  73. package/dist/cjs/vega-dialog_2.cjs.entry.js +15 -15
  74. package/dist/cjs/vega-divider.cjs.entry.js +8 -8
  75. package/dist/cjs/vega-dropdown_5.cjs.entry.js +23 -23
  76. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  77. package/dist/cjs/{vega-event-id-d9994eb3.js → vega-event-id-f95480b7.js} +2 -0
  78. package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
  79. package/dist/cjs/vega-field-label.cjs.entry.js +7 -7
  80. package/dist/cjs/vega-file-uploader.cjs.entry.js +15 -15
  81. package/dist/cjs/vega-flag-icon.cjs.entry.js +11 -11
  82. package/dist/cjs/vega-flex.cjs.entry.js +10 -10
  83. package/dist/cjs/vega-font.cjs.entry.js +9 -9
  84. package/dist/cjs/vega-form.cjs.entry.js +16 -16
  85. package/dist/cjs/vega-grid.cjs.entry.js +9 -9
  86. package/dist/cjs/vega-hint.cjs.entry.js +1 -1
  87. package/dist/cjs/vega-icon.cjs.entry.js +11 -11
  88. package/dist/cjs/vega-image-uploader.cjs.entry.js +19 -19
  89. package/dist/cjs/vega-input-credit-card.cjs.entry.js +20 -20
  90. package/dist/cjs/vega-input-numeric.cjs.entry.js +17 -17
  91. package/dist/cjs/vega-input-passcode.cjs.entry.js +16 -16
  92. package/dist/cjs/vega-input-phone-number.cjs.entry.js +18 -18
  93. package/dist/cjs/vega-input-range.cjs.entry.js +15 -15
  94. package/dist/cjs/vega-input-select.cjs.entry.js +20 -20
  95. package/dist/cjs/vega-input.cjs.entry.js +19 -19
  96. package/dist/cjs/{vega-internal-event-id-87014e4f.js → vega-internal-event-id-e138d4d6.js} +2 -0
  97. package/dist/cjs/vega-item-toggle.cjs.entry.js +6 -6
  98. package/dist/cjs/vega-left-nav_5.cjs.entry.js +21 -21
  99. package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
  100. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
  101. package/dist/cjs/vega-page-notification_2.cjs.entry.js +5 -5
  102. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +9 -9
  103. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +7 -7
  104. package/dist/cjs/vega-pagination.cjs.entry.js +14 -14
  105. package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
  106. package/dist/cjs/vega-popover_2.cjs.entry.js +18 -18
  107. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +15 -15
  108. package/dist/cjs/vega-radio_2.cjs.entry.js +18 -18
  109. package/dist/cjs/vega-rich-text-content.cjs.entry.js +16 -16
  110. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +30 -37
  111. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +21 -21
  112. package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
  113. package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
  114. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -17
  115. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +15 -15
  116. package/dist/cjs/vega-sidenav_3.cjs.entry.js +18 -18
  117. package/dist/cjs/vega-signature-capture.cjs.entry.js +20 -20
  118. package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
  119. package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
  120. package/dist/cjs/vega-stepper.cjs.entry.js +13 -13
  121. package/dist/cjs/vega-tab-group_2.cjs.entry.js +156 -70
  122. package/dist/cjs/vega-table_11.cjs.entry.js +32 -21
  123. package/dist/cjs/vega-text.cjs.entry.js +2 -2
  124. package/dist/cjs/vega-textarea.cjs.entry.js +13 -13
  125. package/dist/cjs/vega-time-picker_2.cjs.entry.js +21 -21
  126. package/dist/cjs/vega-toggle-switch.cjs.entry.js +11 -11
  127. package/dist/cjs/vega-tooltip_2.cjs.entry.js +12 -12
  128. package/dist/cjs/vega.cjs.js +20 -20
  129. package/dist/cjs/{wait-for-component-did-render-16863a21.js → wait-for-component-did-render-a13f7eb9.js} +2 -2
  130. package/dist/collection/collection-manifest.json +1 -1
  131. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +14 -1
  132. package/dist/collection/components/vega-accordion/vega-accordion.js +5 -0
  133. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.js +83 -0
  134. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-keyboard-controller.js +154 -0
  135. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +4 -0
  136. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +10 -1
  137. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +22 -3
  138. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/pen.js +3 -0
  139. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.js +4 -0
  140. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +37 -4
  141. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.js +3 -1
  142. package/dist/collection/components/vega-calendar/vega-calendar.js +115 -1
  143. package/dist/collection/components/vega-checkbox/vega-checkbox.js +14 -2
  144. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +1 -1
  145. package/dist/collection/components/vega-rich-text-editor/constants/constant.js +8 -0
  146. package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -1
  147. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +3 -10
  148. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-panel-controller.js +14 -1
  149. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-voice-over-focus-controller.js +45 -0
  150. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.js +15 -1
  151. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-direction-button-renderer.js +1 -1
  152. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +16 -4
  153. package/dist/collection/components/vega-tab-group/vega-tab-group.js +5 -0
  154. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +4 -0
  155. package/dist/collection/components/vega-table/vega-table.css +1 -1
  156. package/dist/collection/components/vega-table/vega-table.js +28 -0
  157. package/dist/collection/constants/ui.js +1 -0
  158. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +5 -2
  159. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
  160. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  161. package/dist/collection/helpers/translation/locales/en.js +5 -0
  162. package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +1 -1
  163. package/dist/collection/utils/accessibility.js +16 -1
  164. package/dist/collection/utils/ui.js +12 -0
  165. package/dist/esm/{accessibility-524cabd2.js → accessibility-6af5cf2e.js} +16 -1
  166. package/dist/esm/{app-globals-37536ac9.js → app-globals-be458779.js} +11 -11
  167. package/dist/esm/{aria-dialog-focusable-trap-slimmer-6eb79723.js → aria-dialog-focusable-trap-slimmer-7d9a9f5a.js} +3 -3
  168. package/dist/esm/{child-nodes-event-prevent-slimmer-75f93d85.js → child-nodes-event-prevent-slimmer-0a406a71.js} +2 -2
  169. package/dist/esm/{child-nodes-notify-observer-slimmer-a8cb19cf.js → child-nodes-notify-observer-slimmer-8822d0d0.js} +1 -1
  170. package/dist/esm/{code-block-10be3916.js → code-block-ff52d912.js} +13 -5
  171. package/dist/esm/{component-usage-runtime-metrics-46020a03.js → component-usage-runtime-metrics-4b1afd04.js} +1 -1
  172. package/dist/esm/{component-value-history-controller-slimmer.abstract-82d51b7a.js → component-value-history-controller-slimmer.abstract-ad5f29cd.js} +6 -6
  173. package/dist/esm/{content-state-afeb700d.js → content-state-6fccd284.js} +5 -5
  174. package/dist/esm/{create-public-api-runtime-metrics-slimmer-aaadaa08.js → create-public-api-runtime-metrics-slimmer-da6615bf.js} +1 -1
  175. package/dist/esm/{date-required-rule-a84c21d4.js → date-required-rule-70324452.js} +1 -1
  176. package/dist/esm/{design-token-57de4f4f.js → design-token-0e6fb2c4.js} +3 -3
  177. package/dist/esm/{dom-node-subject-observer-factory-aca0116e.js → dom-node-subject-observer-factory-3897e95b.js} +1 -1
  178. package/dist/esm/{element-appender-slimmer-05f487d7.js → element-appender-slimmer-afe5a638.js} +6 -6
  179. package/dist/esm/{event-emit-slimmer-1c57093d.js → event-emit-slimmer-697ad0b7.js} +2 -2
  180. package/dist/esm/{feature-flag-controller-30f7b625.js → feature-flag-controller-5ebc0cec.js} +1 -1
  181. package/dist/esm/{form-field-controller-slimmer-ae8478b5.js → form-field-controller-slimmer-9e70a18d.js} +5 -5
  182. package/dist/esm/{icon-manager-539d7cf7.js → icon-manager-691c8682.js} +1 -1
  183. package/dist/esm/{image-annotation-action-bad7c565.js → image-annotation-action-245eaa54.js} +5 -5
  184. package/dist/esm/index.js +25 -25
  185. package/dist/esm/{inject-keyboard-manager-1ceb9ee0.js → inject-keyboard-manager-05d5db90.js} +1 -1
  186. package/dist/esm/{internal-icon-manager-bd80b3bb.js → internal-icon-manager-276f968f.js} +1 -1
  187. package/dist/esm/{internal-translation-controller-d7dee4a0.js → internal-translation-controller-d8217d93.js} +5 -0
  188. package/dist/esm/{internal-vega-event-manager-7cdf3c28.js → internal-vega-event-manager-1ac5ee9a.js} +5 -2
  189. package/dist/esm/{keyboard-manager-50a1d90e.js → keyboard-manager-26e2fc32.js} +2 -2
  190. package/dist/esm/{keyboard-manager-slimmer-3891ee20.js → keyboard-manager-slimmer-012a9a9b.js} +1 -1
  191. package/dist/esm/loader.js +20 -20
  192. package/dist/esm/{month-view-generator-70c597a6.js → month-view-generator-918f1f88.js} +1 -1
  193. package/dist/esm/{public-rules-f54e6f39.js → public-rules-22320bdf.js} +10 -10
  194. package/dist/esm/{range-f32f9185.js → range-76f8e7dd.js} +2 -2
  195. package/dist/esm/{responsive-format-facade-456a9f16.js → responsive-format-facade-2a1d6398.js} +2 -2
  196. package/dist/esm/{rich-text-editor-required-rule-627fd7e4.js → rich-text-editor-required-rule-6eb90840.js} +1 -1
  197. package/dist/esm/{split-cell-operation-90c30861.js → split-cell-operation-7652e813.js} +5 -5
  198. package/dist/esm/{state-border-formatter-afac8d33.js → state-border-formatter-a243f3fc.js} +1 -1
  199. package/dist/esm/{string-format-strategy.abstract-f9907969.js → string-format-strategy.abstract-f6625ed7.js} +1 -1
  200. package/dist/esm/{string-input-formatter-slimmer-4059080b.js → string-input-formatter-slimmer-e801bd7e.js} +4 -4
  201. package/dist/esm/{string-mask-strategy-5f655300.js → string-mask-strategy-53cb9b33.js} +2 -2
  202. package/dist/esm/{style-formatter-ee52d8d0.js → style-formatter-a622a045.js} +2 -2
  203. package/dist/esm/{sub-state-notify-slimmer-63ecb465.js → sub-state-notify-slimmer-80ac7dee.js} +2 -2
  204. package/dist/esm/{sub-state-observer-slimmer-2adbbe00.js → sub-state-observer-slimmer-81538a8c.js} +3 -3
  205. package/dist/esm/{time-required-rule-db873c19.js → time-required-rule-2fd8df50.js} +1 -1
  206. package/dist/esm/{token-extension-728c0678.js → token-extension-5838c71b.js} +12 -12
  207. package/dist/esm/{translation-slimmer-5e2bff5f.js → translation-slimmer-32353a1c.js} +1 -1
  208. package/dist/esm/{type-guard-adc244fd.js → type-guard-ed1004cc.js} +1 -1
  209. package/dist/esm/{ui-b7600a48.js → ui-64815a12.js} +13 -1
  210. package/dist/esm/{valid-credit-card-number-rule-a826dd49.js → valid-credit-card-number-rule-7c9d6808.js} +1 -1
  211. package/dist/esm/vega-accordion.entry.js +35 -17
  212. package/dist/esm/vega-app-footer.entry.js +1 -1
  213. package/dist/esm/vega-app-header-button.entry.js +17 -17
  214. package/dist/esm/vega-backdrop.entry.js +2 -2
  215. package/dist/esm/vega-banner.entry.js +12 -12
  216. package/dist/esm/vega-bar-chart.entry.js +1 -1
  217. package/dist/esm/vega-box.entry.js +10 -10
  218. package/dist/esm/vega-brand-logo.entry.js +4 -4
  219. package/dist/esm/vega-breadcrumb.entry.js +9 -9
  220. package/dist/esm/vega-button-circle.entry.js +15 -15
  221. package/dist/esm/vega-button-group_2.entry.js +12 -12
  222. package/dist/esm/vega-button-link.entry.js +9 -9
  223. package/dist/esm/vega-button.entry.js +13 -13
  224. package/dist/esm/vega-calendar_4.entry.js +666 -345
  225. package/dist/esm/vega-card.entry.js +9 -9
  226. package/dist/esm/vega-carousel.entry.js +12 -12
  227. package/dist/esm/vega-checkbox_2.entry.js +28 -16
  228. package/dist/esm/vega-chip.entry.js +15 -15
  229. package/dist/esm/vega-code-block.entry.js +21 -21
  230. package/dist/esm/vega-color-picker.entry.js +11 -11
  231. package/dist/esm/vega-color-swatch-picker.entry.js +17 -17
  232. package/dist/esm/vega-color-swatch.entry.js +9 -9
  233. package/dist/esm/vega-combo-box.entry.js +17 -17
  234. package/dist/esm/vega-counter-badge.entry.js +1 -1
  235. package/dist/esm/vega-date-picker_2.entry.js +30 -30
  236. package/dist/esm/{vega-dialog-controller-bbb2fc52.js → vega-dialog-controller-389e7f7c.js} +1 -1
  237. package/dist/esm/vega-dialog_2.entry.js +15 -15
  238. package/dist/esm/vega-divider.entry.js +8 -8
  239. package/dist/esm/vega-dropdown_5.entry.js +23 -23
  240. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  241. package/dist/esm/{vega-event-id-a6ccca66.js → vega-event-id-578c6c6d.js} +2 -1
  242. package/dist/esm/vega-field-error.entry.js +1 -1
  243. package/dist/esm/vega-field-label.entry.js +7 -7
  244. package/dist/esm/vega-file-uploader.entry.js +15 -15
  245. package/dist/esm/vega-flag-icon.entry.js +11 -11
  246. package/dist/esm/vega-flex.entry.js +10 -10
  247. package/dist/esm/vega-font.entry.js +9 -9
  248. package/dist/esm/vega-form.entry.js +16 -16
  249. package/dist/esm/vega-grid.entry.js +9 -9
  250. package/dist/esm/vega-hint.entry.js +1 -1
  251. package/dist/esm/vega-icon.entry.js +11 -11
  252. package/dist/esm/vega-image-uploader.entry.js +19 -19
  253. package/dist/esm/vega-input-credit-card.entry.js +20 -20
  254. package/dist/esm/vega-input-numeric.entry.js +17 -17
  255. package/dist/esm/vega-input-passcode.entry.js +16 -16
  256. package/dist/esm/vega-input-phone-number.entry.js +18 -18
  257. package/dist/esm/vega-input-range.entry.js +15 -15
  258. package/dist/esm/vega-input-select.entry.js +20 -20
  259. package/dist/esm/vega-input.entry.js +19 -19
  260. package/dist/esm/{vega-internal-event-id-db974a0d.js → vega-internal-event-id-913e8be6.js} +2 -1
  261. package/dist/esm/vega-item-toggle.entry.js +6 -6
  262. package/dist/esm/vega-left-nav_5.entry.js +21 -21
  263. package/dist/esm/vega-line-chart.entry.js +2 -2
  264. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
  265. package/dist/esm/vega-page-notification_2.entry.js +5 -5
  266. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +9 -9
  267. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -7
  268. package/dist/esm/vega-pagination.entry.js +14 -14
  269. package/dist/esm/vega-pie-chart.entry.js +1 -1
  270. package/dist/esm/vega-popover_2.entry.js +18 -18
  271. package/dist/esm/vega-progress-tracker_2.entry.js +15 -15
  272. package/dist/esm/vega-radio_2.entry.js +18 -18
  273. package/dist/esm/vega-rich-text-content.entry.js +16 -16
  274. package/dist/esm/vega-rich-text-editor_4.entry.js +30 -37
  275. package/dist/esm/vega-rich-text-table-properties_3.entry.js +21 -21
  276. package/dist/esm/vega-section-title.entry.js +1 -1
  277. package/dist/esm/vega-segment-control.entry.js +6 -6
  278. package/dist/esm/vega-selection-chip_2.entry.js +17 -17
  279. package/dist/esm/vega-selection-tile_2.entry.js +15 -15
  280. package/dist/esm/vega-sidenav_3.entry.js +18 -18
  281. package/dist/esm/vega-signature-capture.entry.js +20 -20
  282. package/dist/esm/vega-skeleton.entry.js +1 -1
  283. package/dist/esm/vega-slot-container.entry.js +1 -1
  284. package/dist/esm/vega-stepper.entry.js +13 -13
  285. package/dist/esm/vega-tab-group_2.entry.js +156 -70
  286. package/dist/esm/vega-table_11.entry.js +32 -21
  287. package/dist/esm/vega-text.entry.js +2 -2
  288. package/dist/esm/vega-textarea.entry.js +13 -13
  289. package/dist/esm/vega-time-picker_2.entry.js +21 -21
  290. package/dist/esm/vega-toggle-switch.entry.js +11 -11
  291. package/dist/esm/vega-tooltip_2.entry.js +12 -12
  292. package/dist/esm/vega.js +20 -20
  293. package/dist/esm/{wait-for-component-did-render-9a83d343.js → wait-for-component-did-render-4069cbea.js} +2 -2
  294. package/dist/sri/vega-sri-manifest.json +427 -427
  295. package/dist/types/components/vega-accordion/slimmers/vega-accordion-renderer.d.ts +2 -0
  296. package/dist/types/components/vega-accordion/vega-accordion.d.ts +2 -0
  297. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.d.ts +36 -0
  298. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-keyboard-controller.d.ts +35 -0
  299. package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +1 -0
  300. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +7 -0
  301. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +16 -0
  302. package/dist/types/components/vega-calendar/types.d.ts +32 -0
  303. package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/pen.d.ts +3 -0
  304. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.d.ts +1 -0
  305. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +6 -0
  306. package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +6 -0
  307. package/dist/types/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.d.ts +2 -0
  308. package/dist/types/components/vega-calendar/vega-calendar.d.ts +34 -1
  309. package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +2 -0
  310. package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +2 -1
  311. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -1
  312. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-voice-over-focus-controller.d.ts +23 -0
  313. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-close-button-renderer.d.ts +1 -0
  314. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +2 -0
  315. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +2 -0
  316. package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
  317. package/dist/types/components/vega-table/vega-table.d.ts +7 -0
  318. package/dist/types/components.d.ts +42 -1
  319. package/dist/types/constants/ui.d.ts +1 -1
  320. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
  321. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  322. package/dist/types/helpers/translation/interface.d.ts +5 -0
  323. package/dist/types/types/components.type.d.ts +2 -0
  324. package/dist/types/utils/accessibility.d.ts +1 -0
  325. package/dist/types/utils/ui.d.ts +9 -0
  326. package/dist/vega/index.esm.js +1 -1
  327. package/dist/vega/{p-d8180e42.entry.js → p-018756ad.entry.js} +1 -1
  328. package/dist/vega/{p-7702a906.entry.js → p-01a54c29.entry.js} +1 -1
  329. package/dist/vega/p-042933f1.js +1 -0
  330. package/dist/vega/{p-6b5cb920.js → p-04a65b3f.js} +1 -1
  331. package/dist/vega/{p-423762ae.entry.js → p-07225567.entry.js} +1 -1
  332. package/dist/vega/{p-6817b9bd.js → p-09076646.js} +1 -1
  333. package/dist/vega/{p-3b791b5d.js → p-0a261b66.js} +1 -1
  334. package/dist/vega/p-0a322971.entry.js +1 -0
  335. package/dist/vega/{p-59c6dcf7.entry.js → p-0b41b49a.entry.js} +1 -1
  336. package/dist/vega/{p-51b2b3de.js → p-0d97dcb9.js} +1 -1
  337. package/dist/vega/{p-af5cb9bc.js → p-10fa27d2.js} +1 -1
  338. package/dist/vega/{p-f28a6074.js → p-11e2dcf5.js} +1 -1
  339. package/dist/vega/{p-2c1a85dd.entry.js → p-1250b1ab.entry.js} +1 -1
  340. package/dist/vega/{p-33234385.js → p-154cc614.js} +1 -1
  341. package/dist/vega/p-15b4f1ce.entry.js +1 -0
  342. package/dist/vega/{p-e6adf829.js → p-1704ff25.js} +1 -1
  343. package/dist/vega/p-186df871.entry.js +1 -0
  344. package/dist/vega/{p-c95dbf11.js → p-189d36ec.js} +1 -1
  345. package/dist/vega/{p-c85e743d.js → p-19adf714.js} +1 -1
  346. package/dist/vega/{p-c2388937.entry.js → p-19df2831.entry.js} +1 -1
  347. package/dist/vega/{p-a46e977b.entry.js → p-1be90bab.entry.js} +1 -1
  348. package/dist/vega/{p-69c11b7b.entry.js → p-1da42a63.entry.js} +1 -1
  349. package/dist/vega/{p-096d186d.entry.js → p-255a7387.entry.js} +1 -1
  350. package/dist/vega/{p-1a869f0e.js → p-281fa1e0.js} +1 -1
  351. package/dist/vega/{p-9af0e2e7.js → p-2927b7a1.js} +1 -1
  352. package/dist/vega/{p-2edc066c.entry.js → p-294cff20.entry.js} +1 -1
  353. package/dist/vega/{p-a87cb7ac.js → p-296c5e52.js} +1 -1
  354. package/dist/vega/{p-dba16739.js → p-2b2fefc6.js} +1 -1
  355. package/dist/vega/{p-c347e08a.js → p-2d694684.js} +1 -1
  356. package/dist/vega/{p-9eb00537.entry.js → p-2e0bdc53.entry.js} +1 -1
  357. package/dist/vega/{p-b7721666.js → p-31ebace1.js} +1 -1
  358. package/dist/vega/{p-818da356.js → p-32a0f887.js} +1 -1
  359. package/dist/vega/{p-c31a32f4.js → p-341d5e4e.js} +1 -1
  360. package/dist/vega/{p-e7a4b760.entry.js → p-3967fa98.entry.js} +1 -1
  361. package/dist/vega/{p-7f74cd41.entry.js → p-3a3720c7.entry.js} +1 -1
  362. package/dist/vega/p-3a620268.js +1 -0
  363. package/dist/vega/{p-6c43d54a.js → p-3a93730e.js} +1 -1
  364. package/dist/vega/{p-98a6cd8e.entry.js → p-3bf3c8bb.entry.js} +1 -1
  365. package/dist/vega/{p-6fadee27.entry.js → p-49341532.entry.js} +1 -1
  366. package/dist/vega/{p-e95cb28f.entry.js → p-4a6f241d.entry.js} +1 -1
  367. package/dist/vega/{p-3e64fa38.entry.js → p-4a954d9d.entry.js} +1 -1
  368. package/dist/vega/{p-9fc8bd1f.entry.js → p-4a9c8ec0.entry.js} +1 -1
  369. package/dist/vega/{p-8d48940d.js → p-4c91b13d.js} +1 -1
  370. package/dist/vega/p-4dd02704.js +1 -0
  371. package/dist/vega/p-50fb936f.entry.js +1 -0
  372. package/dist/vega/{p-da8bb883.entry.js → p-52645382.entry.js} +1 -1
  373. package/dist/vega/{p-73c6669e.entry.js → p-5b43a303.entry.js} +1 -1
  374. package/dist/vega/{p-cf2838c7.entry.js → p-5df7ab03.entry.js} +1 -1
  375. package/dist/vega/p-5f377954.js +1 -1
  376. package/dist/vega/p-612808ce.entry.js +1 -0
  377. package/dist/vega/{p-ecbb63a5.entry.js → p-636d890e.entry.js} +1 -1
  378. package/dist/vega/p-6399b5ed.js +1 -0
  379. package/dist/vega/{p-4afafeb3.entry.js → p-648be36d.entry.js} +1 -1
  380. package/dist/vega/{p-a9f34735.entry.js → p-686e0b6b.entry.js} +1 -1
  381. package/dist/vega/{p-d4e519a0.js → p-6d4faebc.js} +1 -1
  382. package/dist/vega/{p-2fb26f4f.entry.js → p-70ae9157.entry.js} +1 -1
  383. package/dist/vega/{p-e1fbfd20.js → p-724df1f5.js} +1 -1
  384. package/dist/vega/{p-e1709e59.js → p-72e2a587.js} +1 -1
  385. package/dist/vega/{p-1deedff2.entry.js → p-740f3325.entry.js} +1 -1
  386. package/dist/vega/{p-a050c24d.entry.js → p-74a1a82a.entry.js} +1 -1
  387. package/dist/vega/{p-264b3309.entry.js → p-76075a1c.entry.js} +1 -1
  388. package/dist/vega/{p-76063dcb.js → p-77fb5d5c.js} +1 -1
  389. package/dist/vega/{p-e4c4ea35.js → p-78ba7ca9.js} +1 -1
  390. package/dist/vega/{p-a49c25c2.entry.js → p-79bb216e.entry.js} +1 -1
  391. package/dist/vega/{p-d37636a5.entry.js → p-7e7e2f85.entry.js} +1 -1
  392. package/dist/vega/{p-4c90d013.entry.js → p-7ffe8081.entry.js} +1 -1
  393. package/dist/vega/{p-4cefd7fe.js → p-8077b117.js} +1 -1
  394. package/dist/vega/{p-5bf3ab33.js → p-858ec529.js} +1 -1
  395. package/dist/vega/{p-0b5b0fd2.entry.js → p-879d3cc9.entry.js} +1 -1
  396. package/dist/vega/p-88e56a47.entry.js +1 -0
  397. package/dist/vega/{p-ae1aa4df.js → p-891815d6.js} +1 -1
  398. package/dist/vega/p-8ce9e214.js +1 -0
  399. package/dist/vega/p-8d36afcc.entry.js +1 -0
  400. package/dist/vega/{p-a9e10a64.js → p-919de162.js} +1 -1
  401. package/dist/vega/{p-effb285f.entry.js → p-931dac8c.entry.js} +1 -1
  402. package/dist/vega/{p-c601b331.entry.js → p-979a5e91.entry.js} +1 -1
  403. package/dist/vega/{p-d402eb7b.entry.js → p-98dad153.entry.js} +1 -1
  404. package/dist/vega/p-9a6bd32c.js +1 -0
  405. package/dist/vega/p-9e0f8b46.entry.js +1 -0
  406. package/dist/vega/{p-3d0ba2c6.entry.js → p-a03341d8.entry.js} +1 -1
  407. package/dist/vega/{p-e1d2c60d.js → p-a0dd08b1.js} +1 -1
  408. package/dist/vega/p-a2b8d49d.js +1 -0
  409. package/dist/vega/p-a6565e02.js +1 -0
  410. package/dist/vega/{p-afd1b519.entry.js → p-a67d52ce.entry.js} +1 -1
  411. package/dist/vega/{p-411ea209.entry.js → p-aa4e9a4b.entry.js} +1 -1
  412. package/dist/vega/{p-fa91805b.entry.js → p-aa8f4713.entry.js} +1 -1
  413. package/dist/vega/{p-e27626f6.js → p-ab04eff6.js} +1 -1
  414. package/dist/vega/p-ab4c307b.js +1 -0
  415. package/dist/vega/{p-e47b2c4c.entry.js → p-ac26924d.entry.js} +1 -1
  416. package/dist/vega/{p-7f46cc1e.entry.js → p-adc64ff6.entry.js} +1 -1
  417. package/dist/vega/{p-031c0cf7.js → p-b02b985d.js} +1 -1
  418. package/dist/vega/{p-0bb0b521.entry.js → p-b69755c7.entry.js} +1 -1
  419. package/dist/vega/{p-c801c85d.js → p-b6be1f33.js} +1 -1
  420. package/dist/vega/{p-25572ea7.entry.js → p-bd47d8a7.entry.js} +1 -1
  421. package/dist/vega/{p-0b4880bd.entry.js → p-be783294.entry.js} +1 -1
  422. package/dist/vega/{p-79c12a64.entry.js → p-bee5dfb0.entry.js} +1 -1
  423. package/dist/vega/{p-45aaaef6.entry.js → p-c19132c9.entry.js} +1 -1
  424. package/dist/vega/{p-3d92d2af.entry.js → p-c45acdc3.entry.js} +1 -1
  425. package/dist/vega/{p-571a6d15.entry.js → p-ce034372.entry.js} +1 -1
  426. package/dist/vega/{p-bc74d7e7.entry.js → p-ce2d9efe.entry.js} +1 -1
  427. package/dist/vega/{p-ce61d23f.entry.js → p-d05915af.entry.js} +1 -1
  428. package/dist/vega/{p-c8fe46fd.entry.js → p-d1a6e126.entry.js} +1 -1
  429. package/dist/vega/{p-9297f4a9.entry.js → p-d286da1d.entry.js} +1 -1
  430. package/dist/vega/{p-3c456e91.entry.js → p-d4262f06.entry.js} +1 -1
  431. package/dist/vega/{p-23b38467.entry.js → p-d5aad9f0.entry.js} +1 -1
  432. package/dist/vega/{p-35d77c9c.entry.js → p-d97974be.entry.js} +1 -1
  433. package/dist/vega/{p-9e2b7718.entry.js → p-d9d4bdbf.entry.js} +1 -1
  434. package/dist/vega/{p-18e8d9b7.js → p-dcf162e9.js} +1 -1
  435. package/dist/vega/p-e46a23fc.entry.js +1 -0
  436. package/dist/vega/p-e5226de6.entry.js +1 -0
  437. package/dist/vega/{p-f604f2c9.entry.js → p-e7c930d9.entry.js} +1 -1
  438. package/dist/vega/p-e85497ec.entry.js +1 -0
  439. package/dist/vega/{p-34964a53.js → p-e8de9535.js} +1 -1
  440. package/dist/vega/{p-f5f5a0d9.js → p-e8ea3b16.js} +1 -1
  441. package/dist/vega/{p-268e84e0.entry.js → p-ea0e922f.entry.js} +1 -1
  442. package/dist/vega/p-ea48decc.js +1 -0
  443. package/dist/vega/{p-82039afd.entry.js → p-eb78a2f2.entry.js} +1 -1
  444. package/dist/vega/p-ec2333f7.entry.js +1 -0
  445. package/dist/vega/{p-6e70d3cc.js → p-ec2a1d4c.js} +1 -1
  446. package/dist/vega/{p-9f064488.entry.js → p-ec663f00.entry.js} +1 -1
  447. package/dist/vega/p-ed2b0e01.entry.js +1 -0
  448. package/dist/vega/p-ef13b346.js +1 -0
  449. package/dist/vega/{p-78099a83.entry.js → p-f5ae99b4.entry.js} +1 -1
  450. package/dist/vega/{p-d10ae46a.entry.js → p-fdb97cb7.entry.js} +1 -1
  451. package/dist/vega/{p-295326ca.entry.js → p-fe220f3a.entry.js} +1 -1
  452. package/dist/vega/{p-115d6053.entry.js → p-ff5208f5.entry.js} +1 -1
  453. package/dist/vega/vega.esm.js +1 -1
  454. package/package.json +6 -6
  455. package/dist/vega/p-13e7f906.entry.js +0 -1
  456. package/dist/vega/p-358b4a06.entry.js +0 -1
  457. package/dist/vega/p-4415ad28.js +0 -1
  458. package/dist/vega/p-4530f0e1.entry.js +0 -1
  459. package/dist/vega/p-5087fa1e.entry.js +0 -1
  460. package/dist/vega/p-51fcb07f.entry.js +0 -1
  461. package/dist/vega/p-5657f768.js +0 -1
  462. package/dist/vega/p-57f220b5.js +0 -1
  463. package/dist/vega/p-593e0f80.js +0 -1
  464. package/dist/vega/p-5e50dbb9.js +0 -1
  465. package/dist/vega/p-606d7113.entry.js +0 -1
  466. package/dist/vega/p-6ac8e655.js +0 -1
  467. package/dist/vega/p-7730bace.js +0 -1
  468. package/dist/vega/p-84eb3b9c.js +0 -1
  469. package/dist/vega/p-93afdfc3.js +0 -1
  470. package/dist/vega/p-9f36abf9.entry.js +0 -1
  471. package/dist/vega/p-9f728e0b.js +0 -1
  472. package/dist/vega/p-a9528dbd.entry.js +0 -1
  473. package/dist/vega/p-aaf44879.entry.js +0 -1
  474. package/dist/vega/p-af00e6e2.entry.js +0 -1
  475. package/dist/vega/p-c51ebb14.entry.js +0 -1
  476. package/dist/vega/p-dffbbc3d.entry.js +0 -1
  477. package/dist/vega/p-ed26f4c8.entry.js +0 -1
  478. package/dist/vega/p-f1c672e4.js +0 -1
  479. /package/dist/cjs/{index-f054eb5d.js → index-3ca118c4.js} +0 -0
  480. /package/dist/esm/{index-bfc6dfa2.js → index-9c9865c0.js} +0 -0
  481. /package/dist/vega/{p-5a25014f.js → p-982747ef.js} +0 -0
@@ -1 +1 @@
1
- import{B as t,d as e,M as s,C as n,o as r,i as o,g as i}from"./p-84eb3b9c.js";import{c as a}from"./p-a841cf13.js";import{V as l}from"./p-8aee6b74.js";import"./p-6e1ab235.js";import{I as c,c as h}from"./p-593e0f80.js";import{r as u}from"./p-6e70d3cc.js";import{i as d}from"./p-e4c4ea35.js";import{g as E}from"./p-8b5d3a52.js";import{U as T,V as p}from"./p-f5f5a0d9.js";const b=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"overrideColors"===e,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"reset"===e,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"toggleDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"isDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"applyBranding"===e,payloadValue:()=>!0}];class f{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=h(f,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],b)}async overrideColors(t){l.overrideColors(t)}async reset(){l.reset()}toggleDarkMode(t){l.toggleDarkMode(t)}isDarkMode(){return l.isDarkMode()}applyBranding(t){l.applyBranding(t)}}!function(t,e,s,n){var r,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o<3?r(i):o>3?r(e,s,i):r(e,s))||i);o>3&&i&&Object.defineProperty(e,s,i)}([c()],f.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const C=new f,L=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"],g=[{key:"white",dark:"#04041C",light:"#FCFCFC"},{key:"red",dark:"#AA091C",light:"#FF4C61"},{key:"orange",dark:"#974502",light:"#FDAB68"},{key:"yellow",dark:"#735C00",light:"#FFDC4C"},{key:"green",dark:"#2E6D18",light:"#7BDA58"},{key:"teal",dark:"#287171",light:"#7BD1D1"},{key:"gray",dark:"#595959",light:"#999999"},{key:"black",dark:"#FCFCFC",light:"#04041C"}],R={key:"default-head-bg",dark:"#181830",light:"#F0F3F7"};class _{static getTableColors(){return _.TABLE_COLORS}static setTableColors(t){_.TABLE_COLORS=t}static getColorKey(t,e=!1){var s;let n=null;const r=_.TABLE_COLORS,o=e?[...r,R]:r;if(o){const e=null===(s=u(t))||void 0===s?void 0:s.toUpperCase();if(e)n=o.find((t=>C.isDarkMode()?t.dark===e:t.light===e));else for(const e of o)if(e.key===t){n=e;break}}return n?n.key:""}}_.TABLE_COLORS=g;class O extends t{constructor(t){super(),this.type=m.COLOR,this.colorKey=t,t&&(this.color=this.formatColor(t))}renderStyle(){return{color:this.color?l.isDarkMode()?this.color.dark:this.color.light:this.colorKey||""}}renderClass(){return null}toJSON(){var t;return{color:(null===(t=this.color)||void 0===t?void 0:t.key)||this.colorKey||""}}clone(){return new O(this.colorKey)}formatColor(t){return _.getTableColors().find((e=>e.key===t))}}var m,k;!function(t){t.TABLE="EXTENSION_TABLE",t.CELL="EXTENSION_TABLE_CELL",t.CAPTION="EXTENSION_TABLE_CAPTION",t.COLOR="EXTENSION_TABLE_COLOR"}(m||(m={}));class A extends t{constructor({backgroundColor:t,border:e,width:s,height:n,alignment:r,borderCollapse:o}={},i=!0){super(),this.type=m.TABLE,this.useInternalStyle=i,this.backgroundColor=t,this.border=e,this.width=s,this.height=n,this.alignment=i&&void 0===r?A.DEFAULT_ALIGNMENT:r,this.backgroundColorAnnotation=new O(t),this.borderColorAnnotation=new O(null==e?void 0:e.color),this.borderCollapse=i&&void 0===o?A.DEFAULT_BORDER_COLLAPSE:o}static from(t,e=!0){return[m.TABLE,new A(t,e)]}static getDefaultStyles(){return{borderCollapse:A.DEFAULT_BORDER_COLLAPSE,margin:A.DEFAULT_ALIGNMENT_STYLE_VALUE}}get borderStr(){return this.border?`${this.border.style} ${this.border.width} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}clone(){return new A({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse},this.useInternalStyle)}toJSON(){return{table:a({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse})}}renderStyle(){const t=this.backgroundColorAnnotation.renderStyle().color,e=Object.assign({border:this.borderStr,width:this.width,height:this.height,borderCollapse:this.borderCollapse},this.renderAlignmentStyle());return t&&(e.backgroundColor=t),a(e)}renderClass(){return"v-rte--extension-table"}renderAlignmentStyle(){return this.alignment?{margin:"center"===this.alignment?A.DEFAULT_ALIGNMENT_STYLE_VALUE:"left"===this.alignment?"0":"0 0 0 auto"}:{}}}A.DEFAULT_BORDER_COLLAPSE="collapse",A.DEFAULT_ALIGNMENT="center",A.DEFAULT_ALIGNMENT_STYLE_VALUE="0 auto";class RTETableBlock extends e{constructor(t,e){super(t),this.type="table-block",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.TABLE,new A)}static from(t,e){var s;const n=new RTETableBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),n.children=super.generateBlockChildren(t.children,e,n),(null===(s=t.annotations)||void 0===s?void 0:s.table)&&n.annotationMap.set(...A.from(t.annotations.table,null==e?void 0:e.autoMatchFormat)),n}clone(t){const e=new RTETableBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}getFirstNode(){return this.hasCaption()?this.children[0].children[0].getLastNode():this.children[0].children[0].children[0].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<table${super.generateAttributeString(t)}>${e}</table>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCaption(){const t=this.children.find((t=>"table-caption"===t.type));return null!=t?t:null}setCaption(t){const e=this.children.findIndex((t=>"table-caption"===t.type));t?(t.parent=this,e>=0?this.children[e]=t:this.children.unshift(t)):e>=0&&this.children.splice(e,1)}hasCaption(){return d(this.getCaption())}}!function(t){t.ROW="ROW",t.CAPTION="CAPTION",t.COLUMN="COLUMN",t.MERGE_CELLS="MERGE_CELLS",t.TABLE="TABLE",t.CELL="CELL",t.SPLIT_CELL="SPLIT_CELL"}(k||(k={}));class B{syncCursorPosition(t,e){const s=this.findRootContent(t);if(e&&s){const t=e.getRangeEndOffset();s.apply(new T(e,t))}}findRootContent(t){let e=t.parent;for(;e;){if(e instanceof p)return e;e=e.parent}}}const w="DELETE_TABLE_ROW";class S extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_ROW",this.rowsToBeRemoved=t}}const y="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION";class N extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const M="INSERT_TABLE_ROW_INTO_SAME_SECTION";var D;!function(t){t.ABOVE="ABOVE",t.BELOW="BELOW"}(D||(D={}));class v extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_SAME_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const I="TOGGLE_HEADER_ROW";class x extends s{constructor(t){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_ROW",this.selectedRows=t}}class RTETableBodyBlock extends e{constructor(t){super(t),this.type="table-body",this.children=[]}static from(t,e){const s=new RTETableBodyBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableBodyBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tbody${super.generateAttributeString(t)}>${e}</tbody>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableHeadBlock extends e{constructor(t){super(t),this.type="table-head",this.children=[]}static from(t,e){const s=new RTETableHeadBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableHeadBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<thead${super.generateAttributeString(t)}>${e}</thead>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableRowBlock extends e{constructor(t){super(t),this.type="table-row",this.children=[]}static from(t,e){const s=new RTETableRowBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableRowBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tr${super.generateAttributeString(t)}>${e}</tr>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class H extends t{constructor({backgroundColor:t,padding:e,border:s,width:n,height:r,textAlign:o,verticalAlign:i,minWidth:a,boxSizing:l}={},c=!0){super(),this.type=m.CELL,this.useInternalStyle=c,this.backgroundColor=t,this.width=n,this.height=r,this.border=c&&void 0===s?H.DEFAULT_BORDER:s,this.padding=c&&void 0===e?H.DEFAULT_PADDING:e,this.textAlign=c&&void 0===o?H.DEFAULT_HORIZONTAL_TEXT_ALIGN:o,this.verticalAlign=c&&void 0===i?H.DEFAULT_VERTICAL_TEXT_ALIGN:i,this.minWidth=c&&void 0===a?H.DEFAULT_CELL_MIN_WIDTH:a,this.boxSizing=c&&void 0===l?H.DEFAULT_BOX_SIZING:l}static from(t,e){return[m.CELL,new H(t,e)]}static getDefaultStyles(t=!0){return{padding:H.DEFAULT_PADDING,textAlign:H.DEFAULT_HORIZONTAL_TEXT_ALIGN,verticalAlign:H.DEFAULT_VERTICAL_TEXT_ALIGN,minWidth:H.DEFAULT_CELL_MIN_WIDTH,boxSizing:H.DEFAULT_BOX_SIZING,border:`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${t?H.DEFAULT_BORDER.color:H.DEFAULT_BORDER_RGB_COLOR}`}}get borderStr(){return this.border?`${this.border.style||""} ${this.border.width||""} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}set backgroundColor(t){this._backgroundColor=t,this.backgroundColorAnnotation=new O(t)}get backgroundColor(){return this._backgroundColor}set border(t){this._border=t,this.borderColorAnnotation=new O(null==t?void 0:t.color)}get border(){return this._border}clone(){return new H({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}toJSON(){return{tableCell:a({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing})}}renderStyle(t){const e=this.backgroundColorAnnotation.renderStyle().color,s={padding:this.padding,border:this.borderStr,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing};return e&&(s.backgroundColor=e),a((null==t?void 0:t.standalone)?s:this.removeDefaultValues(s),{cleanEmptyString:!0})}renderClass(){return null}removeDefaultValues(t){const e=Object.assign({},t);return e.padding===H.DEFAULT_PADDING&&delete e.padding,e.border===`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${H.DEFAULT_BORDER.color}`&&delete e.border,e.textAlign===H.DEFAULT_HORIZONTAL_TEXT_ALIGN&&delete e.textAlign,e.verticalAlign===H.DEFAULT_VERTICAL_TEXT_ALIGN&&delete e.verticalAlign,e.minWidth===H.DEFAULT_CELL_MIN_WIDTH&&delete e.minWidth,e.boxSizing===H.DEFAULT_BOX_SIZING&&delete e.boxSizing,e}}H.DEFAULT_PADDING="12px",H.DEFAULT_BORDER={style:"solid",width:"1px",color:"#ddd"},H.DEFAULT_BORDER_RGB_COLOR="rgb(221, 221, 221)",H.DEFAULT_HORIZONTAL_TEXT_ALIGN="left",H.DEFAULT_VERTICAL_TEXT_ALIGN="middle",H.DEFAULT_CELL_MIN_WIDTH="55px",H.DEFAULT_BOX_SIZING="border-box";class RTETableCellBlock extends e{constructor(t,e){super(t),this.type="table-cell",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new H)}static from(t,e){var s;const n=new RTETableCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...H.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}get rowSpan(){const t=this.getCustomAttributeByName("rowspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}get colSpan(){const t=this.getCustomAttributeByName("colspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<td${super.generateAttributeString(t)}>${e}</td>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCustomAttributeByName(t){const e=this.getCustomAttributesAnnotation();if(e)return(e.toJSON().customAttribute||{})[t]}}class j extends H{constructor(t={},e=!0){super(t,e)}static from(t,e){return[m.CELL,new j(t,e)]}static getDefaultBackgroundColor(){return l.isDarkMode()?R.dark:R.light}clone(){return new j({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}renderStyle(t){var e;const s=super.renderStyle(t);return a(Object.assign(Object.assign({},s),{backgroundColor:null!==(e=s.backgroundColor)&&void 0!==e?e:j.getDefaultBackgroundColor()}))}}class RTETableHeadCellBlock extends RTETableCellBlock{constructor(t,e){super(t,e),this.type="table-head-cell";const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new j)}static from(t,e){var s;const n=new RTETableHeadCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...j.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableHeadCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<th${super.generateAttributeString(t)}>${e}</th>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}const F="MERGE_CELLS";class $ extends s{constructor(t,e,s,n,r){super(),this.type="MERGE_CELLS",this.isFlushable=!0,this.targetCell=t,this.mergeCells=e,this.colSpan=s,this.rowSpan=n,this.direction=r}}var P,W;!function(t){t.MERGE_CELLS="MERGE_CELLS",t.MERGE_CELL_UP="MERGE_CELL_UP",t.MERGE_CELL_RIGHT="MERGE_CELL_RIGHT",t.MERGE_CELL_DOWN="MERGE_CELL_DOWN",t.MERGE_CELL_LEFT="MERGE_CELL_LEFT"}(P||(P={}));class G extends B{canHandle(t){return t[0]===k.MERGE_CELLS}execute(t,e){const s=e.tableSelection.getSelectedCells(),n=t[1];switch(n){case P.MERGE_CELL_UP:case P.MERGE_CELL_RIGHT:case P.MERGE_CELL_DOWN:case P.MERGE_CELL_LEFT:{const t=this.getDirectionMergeCells(n,s[0]);this.handleMergeCells(t,n)}break;default:s.length>1&&this.handleMergeCells(s,P.MERGE_CELLS)}}getDirectionMergeCells(t,e){const s=Q(e,t);if(!s)return[e];switch(t){case P.MERGE_CELL_UP:return[s,e];case P.MERGE_CELL_DOWN:return[e,s];case P.MERGE_CELL_LEFT:return[s,e];default:return[e,s]}}handleMergeCells(t,e){if(t.length<2)return;const s=tt(t),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:a}=s,l=new $(a,t,i-o+1,r-n+1,e);this.applyActionOnTable(l,a)}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}function U(t,e){return t?t instanceof e?t:U(t.parent,e):null}function V(t,e){return{id:E(),type:"table-body",children:Array.from({length:t},(()=>function(t){return{id:E(),type:"table-row",children:Array.from({length:t},(()=>Y("table-cell")))}}(e)))}}function J(t){return t.children.filter((t=>t instanceof RTETableBodyBlock||t instanceof RTETableHeadBlock)).flatMap((t=>t.children))}function K(t){if(!t||!t.children||!t.children[0])return null;const e=t.children[0];return e instanceof o?e:K(e)}function z(t,e){for(const s of t){const t=s.children.find((t=>t.id===e));if(t)return t}return null}function Y(t){const e=E();return{id:e,type:t,children:[{id:`${e}-p`,type:"paragraph",nodes:[{id:`${e}-p-t`,type:"text",text:""}]}]}}function X(t){return{colSpan:t.colSpan,rowSpan:t.rowSpan}}function Z(t,e,s){const n=null!=s?s:q(e);for(let e=0;e<n.length;e++){const s=n[e];for(let e=0;e<s.length;e++)if(s[e]===t.id)return e}return-1}function q(t){const e=[];return t.forEach(((t,s)=>{e[s]||(e[s]=[]);let n=0;t.children.forEach((t=>{const{colSpan:r,rowSpan:o}=X(t);for(;void 0!==e[s][n];)n++;for(let i=0;i<o;i++)for(let o=0;o<r;o++)e[s+i]||(e[s+i]=[]),e[s+i][n+o]=t.id;n+=r}))})),e}function Q(t,e){if(!t)return null;const s=t.parent,n=s.parent.children,r=n.indexOf(s),{colSpan:o,rowSpan:i}=X(t),a=Z(t,n);let l=r,c=a;switch(e){case P.MERGE_CELL_LEFT:c=a-1;break;case P.MERGE_CELL_RIGHT:c=a+o;break;case P.MERGE_CELL_UP:l=r-1;break;default:l=r+i}return function(t,e,s){const n=q(t);for(let r=0;r<t.length;r++){const o=t[r];for(const i of o.children){const{colSpan:o,rowSpan:a}=X(i),l=Z(i,t,n),c=r+a-1,h=l+o-1,u=s>=l&&s<=h;if(e>=r&&e<=c&&u)return i}}return null}(n,l,c)}function tt(t){const e=t[0].parent.parent.children,s=q(e);let n=Number.POSITIVE_INFINITY,r=-1,o=Number.POSITIVE_INFINITY,i=-1;const a=new Set;return t.forEach((t=>{const l=e.indexOf(t.parent),c=Z(t,e,s),{colSpan:h,rowSpan:u}=X(t),d=l,E=l+u-1,T=c,p=c+h-1;for(let t=d;t<=E;t++)for(let e=T;e<=p;e++)a.add(`${t},${e}`);n=Math.min(n,d),r=Math.max(r,E),o=Math.min(o,T),i=Math.max(i,p)})),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:t[0],coveredPositions:a}}function et(t){let e=0;const s=J(t)[0];for(const t of s.children){const{colSpan:s}=X(t);e+=s}return e}function st(t){if(1===t.length)return!0;const e=tt(t),{minRow:s,maxRow:n,minCol:r,maxCol:o,coveredPositions:i}=e;return i.size===(n-s+1)*(o-r+1)}function nt(t,e,s,o,i){const a=t.annotationMap.get(n.CUSTOM_ATTRIBUTE),l=a?Object.assign({},a.customAttribute):{};delete l.colspan,delete l.rowspan,e>1&&(l.colspan=String(e));const c=et(o)+(i?1:0);if(s>1&&e!==c&&(l.rowspan=String(s)),Object.keys(l).length>0){const e=new r(l);t.annotationMap.set(n.CUSTOM_ATTRIBUTE,e)}else t.annotationMap.delete(n.CUSTOM_ATTRIBUTE)}function rt(t){const e=Y(t);return"table-head-cell"===t?RTETableHeadCellBlock.from(e):RTETableCellBlock.from(e)}function ot(t,e,s){for(let n=0;n<s;n++){const s=t[n],r=e.children.find((t=>t.id===s));if(r&&!(r instanceof RTETableHeadCellBlock))return n}return-1}function it(t){const e=new Map;return t.forEach((t=>{for(let s=0;s<t.length;s++){const n=t[s];n&&!e.has(n)&&e.set(n,s)}})),e}function at(t,e,s,n){if(0===t.length)return[0,-1];const r=s||J(e),o=null!=n?n:q(r);let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const e=Z(t,r,o);i=Math.min(i,e),a=Math.max(a,e)})),[i,a]}!function(t){t.HEADER_ROW="HEADER_ROW",t.ADD_ROW_ABOVE="ADD_ROW_ABOVE",t.ADD_ROW_BELOW="ADD_ROW_BELOW",t.DELETE_ROW="DELETE_ROW",t.SELECT_ROW="SELECT_ROW"}(W||(W={}));class lt extends B{canHandle(t){return t[0]===k.ROW}execute(t,e){const s=t[1];switch(s){case W.ADD_ROW_ABOVE:case W.ADD_ROW_BELOW:this.handleInsertRow(s,e);break;case W.DELETE_ROW:this.handleDeleteRow(e);break;case W.HEADER_ROW:this.handleToggleHeader(e);break;case W.SELECT_ROW:this.handleSelectRow(e)}}handleInsertRow(t,e){const s=this.getAllSelectedRows(e);if(s.length>0){const e=t===W.ADD_ROW_ABOVE?D.ABOVE:D.BELOW,n=e===D.ABOVE?s[0]:s[s.length-1],r=n.parent instanceof RTETableBodyBlock,o=this.shouldInsertHeaderRow(n,e)||r?new v(e,s):new N(e,s);this.applyActionToTable(s[0],o)}}shouldInsertHeaderRow(t,e){if(e===D.ABOVE)return t.parent instanceof RTETableHeadBlock;{const e=t.parent;return e instanceof RTETableHeadBlock&&e.children[e.children.length-1]!==t}}handleDeleteRow(t){const e=this.getAllSelectedRows(t);if(e.length){const t=new S(e);this.applyActionToTable(e[0],t)}}handleToggleHeader(t){const e=this.getAllSelectedRows(t);if(e.length>0){const t=new x(e);this.applyActionToTable(e[0],t)}}handleSelectRow(t){const e=this.getAllSelectedRows(t);if(e.length>0&&t&&t.tableSelection){const s=e.flatMap((t=>t.children));t.tableSelection.setSelectedCells(s)}}getAllSelectedRows(t){const e=new Set;if(t&&t.tableSelection){const{tableSelection:s}=t;s.getSelectedCells().forEach((t=>{const s=U(t,RTETableRowBlock);s&&e.add(s)}))}return Array.from(e)}applyActionToTable(t,e){const s=U(t,RTETableBlock);s&&s.apply(e)}}const ct="REPLACE_TABLE_CELL";class ht extends s{constructor(t){super(),this.isFlushable=!0,this.type="REPLACE_TABLE_CELL",this.payload=t}}const ut="SPLIT_TABLE_CELL";class dt extends s{constructor(t){super(),this.isFlushable=!0,this.type="SPLIT_TABLE_CELL",this.payload=t}}class Et extends i{getBoundaryCellColumnRange(t,e,s){let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const o=Z(t,e,s);n=Math.min(n,o),r=Math.max(r,o)})),[n,r]}}class Tt extends Et{static isFullHeaderSelection(t){if(0===t.length)return!1;const e=U(t[0],RTETableBlock);if(e){const s=J(e),n=q(s),r=new Map;s.forEach((t=>{t.children.forEach((t=>r.set(t.id,t)))}));const[o,i]=at(t,e,s,n);for(const t of n)for(let e=o;e<=i;e++){const s=r.get(t[e]);if(s&&!(s instanceof RTETableHeadCellBlock))return!1}return!0}return!1}handleAction(t,e){const s=t.headerOn,n=J(e),r=q(n),[o,i]=this.getBoundaryCellColumnRange(t.tableCellHeaderRange,n,r);(s||!s&&o>0)&&this.toggleHeadRows(e,n,r,s,i,o),this.toggleBodyRows(e,n,r,s,o,i);const a=this.getRootContent(e);if(a&&t.tableCellHeaderRange[0].parent){const e=t.tableCellHeaderRange[0].parent.getFirstNode();e&&a.apply(new T(e,0))}}toggleHeadRows(t,e,s,n,r,o){var i;const a=((null===(i=t.children.find((t=>t instanceof RTETableHeadBlock)))||void 0===i?void 0:i.children)||[]).length;for(let i=0;i<a;i++)this.toggleCellType(t,e[i],s[i],0,n?r:o-1,(()=>!0),(t=>RTETableHeadCellBlock.from(t.toJSON())))}toggleBodyRows(t,e,s,n,r,o){var i;const a=s[0].length,l=(null===(i=t.children.find((t=>t instanceof RTETableBodyBlock)))||void 0===i?void 0:i.children)||[],c=e.length-l.length;for(let i=0;i<l.length;i++){const l=i+c,h=e[l],u=s[l],d=ot(u,h,a);n?d>-1&&this.toggleCellType(t,h,u,d,o,(t=>!(t instanceof RTETableHeadCellBlock)),(t=>RTETableHeadCellBlock.from(t.toJSON()))):this.toggleCellType(t,h,u,r,-1===d?a-1:d-1,(t=>t instanceof RTETableHeadCellBlock),(t=>RTETableCellBlock.from(t.toJSON())))}}toggleCellType(t,e,s,n,r,o,i){for(let a=n;a<=r;a++){const n=s[a],l=e.children.find((t=>t.id===n));if(l&&o(l)){const o=s.indexOf(n),c={table:t,cell:l,col:a,cellStartCol:o,endCol:r,targetCellType:i(l).type},h=o+l.colSpan-1;if(h>r||o<a){if(e.apply(new dt(c)),h>r)return;a=h;continue}e.apply(new ht(c))}l&&(a+=l.colSpan-1)}}}const pt="DELETE_TABLE_COLUMN";class bt extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_COLUMN",this.tableCellDeleteRange=t}}const ft="INSERT_TABLE_COLUMN";var Ct;!function(t){t.LEFT="LEFT",t.RIGHT="RIGHT"}(Ct||(Ct={}));class Lt extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="INSERT_TABLE_COLUMN",this.tableCellInsertRange=e,this.insertDirection=t}}const gt="SELECT_TABLE_COLUMN";class Rt extends s{constructor(t,e){super(),this.type="SELECT_TABLE_COLUMN",this.tableCellSelectRange=t,this.selectCellCallback=e}}const _t="TOGGLE_HEADER_TABLE_COLUMN";class Ot extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_TABLE_COLUMN",this.headerOn=!1,this.tableCellHeaderRange=t,this.headerOn=e}}var mt;!function(t){t.HEADER_COLUMN="HEADER_COLUMN",t.ADD_COLUMN_LEFT="ADD_COLUMN_LEFT",t.ADD_COLUMN_RIGHT="ADD_COLUMN_RIGHT",t.DELETE_COLUMN="DELETE_COLUMN",t.SELECT_COLUMN="SELECT_COLUMN"}(mt||(mt={}));class kt extends B{canHandle(t){return t[0]===k.COLUMN}execute(t,e){const s=e.tableSelection.getSelectedCells();if(!s||0===s.length)return;const n=t[1];switch(n){case mt.ADD_COLUMN_LEFT:case mt.ADD_COLUMN_RIGHT:this.handleInsertColumn(n,s);break;case mt.DELETE_COLUMN:this.handleDeleteColumn(s);break;case mt.SELECT_COLUMN:this.handleSelectColumn(s,e);break;case mt.HEADER_COLUMN:this.handleToggleHeaderColumn(s)}}handleInsertColumn(t,e){const s=new Lt(t===mt.ADD_COLUMN_LEFT?Ct.LEFT:Ct.RIGHT,e);this.applyActionOnTable(s,e[0])}handleDeleteColumn(t){const e=new bt(t);this.applyActionOnTable(e,t[0])}handleSelectColumn(t,e){const s=new Rt(t,(t=>{e.tableSelection.setSelectedCells(t)}));this.applyActionOnTable(s,t[0])}handleToggleHeaderColumn(t){const e=!Tt.isFullHeaderSelection(t),s=new Ot(t,e);this.applyActionOnTable(s,t[0])}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}const At="SPLIT_CELL_HORIZONTALLY";class Bt extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_HORIZONTALLY"}}const wt="SPLIT_CELL_VERTICALLY";class St extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_VERTICALLY"}}var yt;!function(t){t.SPLIT_CELL_HORIZONTALLY="SPLIT_CELL_HORIZONTALLY",t.SPLIT_CELL_VERTICALLY="SPLIT_CELL_VERTICALLY"}(yt||(yt={}));class Nt extends B{canHandle(t){return t[0]===k.SPLIT_CELL}execute(t,e){const s=e.tableSelection.getSelectedCells();if(s&&1===s.length){const e=s[0];switch(t[1]){case yt.SPLIT_CELL_HORIZONTALLY:this.handleSplitCellHorizontally(e);break;case yt.SPLIT_CELL_VERTICALLY:this.handleSplitCellVertically(e)}}}handleSplitCellHorizontally(t){const e=new Bt;t.apply(e)}handleSplitCellVertically(t){const e=new St;t.apply(e)}}export{at as $,RTETableRowBlock as A,Z as B,kt as C,D,g as E,y as F,M as G,w as H,Ct as I,I as J,ft as K,pt as L,G as M,_t as N,Tt as O,ut as P,ct as Q,m as R,B as S,k as T,At as U,C as V,wt as W,gt as X,F as Y,L as Z,mt as _,R as a,W as a0,yt as a1,st as a2,Q as a3,A as b,H as c,RTETableHeadCellBlock as d,lt as e,Nt as f,_ as g,RTETableBlock as h,V as i,RTETableCellBlock as j,RTETableHeadBlock as k,RTETableBodyBlock as l,U as m,j as n,Et as o,J as p,q,z as r,nt as s,Y as t,it as u,et as v,K as w,X as x,rt as y,P as z}
1
+ import{B as t,d as e,M as s,C as n,o as r,i as o,g as i}from"./p-a2b8d49d.js";import{c as a}from"./p-a841cf13.js";import{V as l}from"./p-8aee6b74.js";import"./p-6e1ab235.js";import{I as c,c as h}from"./p-9a6bd32c.js";import{r as u}from"./p-ec2a1d4c.js";import{i as d}from"./p-78ba7ca9.js";import{g as E}from"./p-8b5d3a52.js";import{U as T,V as p}from"./p-e8ea3b16.js";const b=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"overrideColors"===e,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"reset"===e,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"toggleDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"isDarkMode"===e,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(t,e)=>"ThemeManager"===t&&"applyBranding"===e,payloadValue:()=>!0}];class f{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=h(f,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],b)}async overrideColors(t){l.overrideColors(t)}async reset(){l.reset()}toggleDarkMode(t){l.toggleDarkMode(t)}isDarkMode(){return l.isDarkMode()}applyBranding(t){l.applyBranding(t)}}!function(t,e,s,n){var r,o=arguments.length,i=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(i=(o<3?r(i):o>3?r(e,s,i):r(e,s))||i);o>3&&i&&Object.defineProperty(e,s,i)}([c()],f.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const C=new f,L=["none","solid","dashed","dotted","double","groove","ridge","inset","outset"],g=[{key:"white",dark:"#04041C",light:"#FCFCFC"},{key:"red",dark:"#AA091C",light:"#FF4C61"},{key:"orange",dark:"#974502",light:"#FDAB68"},{key:"yellow",dark:"#735C00",light:"#FFDC4C"},{key:"green",dark:"#2E6D18",light:"#7BDA58"},{key:"teal",dark:"#287171",light:"#7BD1D1"},{key:"gray",dark:"#595959",light:"#999999"},{key:"black",dark:"#FCFCFC",light:"#04041C"}],R={key:"default-head-bg",dark:"#181830",light:"#F0F3F7"};class _{static getTableColors(){return _.TABLE_COLORS}static setTableColors(t){_.TABLE_COLORS=t}static getColorKey(t,e=!1){var s;let n=null;const r=_.TABLE_COLORS,o=e?[...r,R]:r;if(o){const e=null===(s=u(t))||void 0===s?void 0:s.toUpperCase();if(e)n=o.find((t=>C.isDarkMode()?t.dark===e:t.light===e));else for(const e of o)if(e.key===t){n=e;break}}return n?n.key:""}}_.TABLE_COLORS=g;class O extends t{constructor(t){super(),this.type=m.COLOR,this.colorKey=t,t&&(this.color=this.formatColor(t))}renderStyle(){return{color:this.color?l.isDarkMode()?this.color.dark:this.color.light:this.colorKey||""}}renderClass(){return null}toJSON(){var t;return{color:(null===(t=this.color)||void 0===t?void 0:t.key)||this.colorKey||""}}clone(){return new O(this.colorKey)}formatColor(t){return _.getTableColors().find((e=>e.key===t))}}var m,k;!function(t){t.TABLE="EXTENSION_TABLE",t.CELL="EXTENSION_TABLE_CELL",t.CAPTION="EXTENSION_TABLE_CAPTION",t.COLOR="EXTENSION_TABLE_COLOR"}(m||(m={}));class A extends t{constructor({backgroundColor:t,border:e,width:s,height:n,alignment:r,borderCollapse:o}={},i=!0){super(),this.type=m.TABLE,this.useInternalStyle=i,this.backgroundColor=t,this.border=e,this.width=s,this.height=n,this.alignment=i&&void 0===r?A.DEFAULT_ALIGNMENT:r,this.backgroundColorAnnotation=new O(t),this.borderColorAnnotation=new O(null==e?void 0:e.color),this.borderCollapse=i&&void 0===o?A.DEFAULT_BORDER_COLLAPSE:o}static from(t,e=!0){return[m.TABLE,new A(t,e)]}static getDefaultStyles(){return{borderCollapse:A.DEFAULT_BORDER_COLLAPSE,margin:A.DEFAULT_ALIGNMENT_STYLE_VALUE}}get borderStr(){return this.border?`${this.border.style} ${this.border.width} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}clone(){return new A({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse},this.useInternalStyle)}toJSON(){return{table:a({backgroundColor:this.backgroundColor,border:this.border,width:this.width,height:this.height,alignment:this.alignment,borderCollapse:this.borderCollapse})}}renderStyle(){const t=this.backgroundColorAnnotation.renderStyle().color,e=Object.assign({border:this.borderStr,width:this.width,height:this.height,borderCollapse:this.borderCollapse},this.renderAlignmentStyle());return t&&(e.backgroundColor=t),a(e)}renderClass(){return"v-rte--extension-table"}renderAlignmentStyle(){return this.alignment?{margin:"center"===this.alignment?A.DEFAULT_ALIGNMENT_STYLE_VALUE:"left"===this.alignment?"0":"0 0 0 auto"}:{}}}A.DEFAULT_BORDER_COLLAPSE="collapse",A.DEFAULT_ALIGNMENT="center",A.DEFAULT_ALIGNMENT_STYLE_VALUE="0 auto";class RTETableBlock extends e{constructor(t,e){super(t),this.type="table-block",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.TABLE,new A)}static from(t,e){var s;const n=new RTETableBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),n.children=super.generateBlockChildren(t.children,e,n),(null===(s=t.annotations)||void 0===s?void 0:s.table)&&n.annotationMap.set(...A.from(t.annotations.table,null==e?void 0:e.autoMatchFormat)),n}clone(t){const e=new RTETableBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}getFirstNode(){return this.hasCaption()?this.children[0].children[0].getLastNode():this.children[0].children[0].children[0].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<table${super.generateAttributeString(t)}>${e}</table>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCaption(){const t=this.children.find((t=>"table-caption"===t.type));return null!=t?t:null}setCaption(t){const e=this.children.findIndex((t=>"table-caption"===t.type));t?(t.parent=this,e>=0?this.children[e]=t:this.children.unshift(t)):e>=0&&this.children.splice(e,1)}hasCaption(){return d(this.getCaption())}}!function(t){t.ROW="ROW",t.CAPTION="CAPTION",t.COLUMN="COLUMN",t.MERGE_CELLS="MERGE_CELLS",t.TABLE="TABLE",t.CELL="CELL",t.SPLIT_CELL="SPLIT_CELL"}(k||(k={}));class B{syncCursorPosition(t,e){const s=this.findRootContent(t);if(e&&s){const t=e.getRangeEndOffset();s.apply(new T(e,t))}}findRootContent(t){let e=t.parent;for(;e;){if(e instanceof p)return e;e=e.parent}}}const w="DELETE_TABLE_ROW";class S extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_ROW",this.rowsToBeRemoved=t}}const y="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION";class N extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const M="INSERT_TABLE_ROW_INTO_SAME_SECTION";var D;!function(t){t.ABOVE="ABOVE",t.BELOW="BELOW"}(D||(D={}));class v extends s{constructor(t,e=[]){super(),this.isFlushable=!0,this.type="INSERT_TABLE_ROW_INTO_SAME_SECTION",this.selectedRows=[],this.insertDirection=t,this.selectedRows=e}}const I="TOGGLE_HEADER_ROW";class x extends s{constructor(t){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_ROW",this.selectedRows=t}}class RTETableBodyBlock extends e{constructor(t){super(t),this.type="table-body",this.children=[]}static from(t,e){const s=new RTETableBodyBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableBodyBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tbody${super.generateAttributeString(t)}>${e}</tbody>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableHeadBlock extends e{constructor(t){super(t),this.type="table-head",this.children=[]}static from(t,e){const s=new RTETableHeadBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableHeadBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<thead${super.generateAttributeString(t)}>${e}</thead>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class RTETableRowBlock extends e{constructor(t){super(t),this.type="table-row",this.children=[]}static from(t,e){const s=new RTETableRowBlock(t.id);return super.convertAnnotationsToMap(s.annotationMap,Object.assign({},t.annotations)),s.children=super.generateBlockChildren(t.children,e,s),s}clone(t){const e=new RTETableRowBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<tr${super.generateAttributeString(t)}>${e}</tr>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}class H extends t{constructor({backgroundColor:t,padding:e,border:s,width:n,height:r,textAlign:o,verticalAlign:i,minWidth:a,boxSizing:l}={},c=!0){super(),this.type=m.CELL,this.useInternalStyle=c,this.backgroundColor=t,this.width=n,this.height=r,this.border=c&&void 0===s?H.DEFAULT_BORDER:s,this.padding=c&&void 0===e?H.DEFAULT_PADDING:e,this.textAlign=c&&void 0===o?H.DEFAULT_HORIZONTAL_TEXT_ALIGN:o,this.verticalAlign=c&&void 0===i?H.DEFAULT_VERTICAL_TEXT_ALIGN:i,this.minWidth=c&&void 0===a?H.DEFAULT_CELL_MIN_WIDTH:a,this.boxSizing=c&&void 0===l?H.DEFAULT_BOX_SIZING:l}static from(t,e){return[m.CELL,new H(t,e)]}static getDefaultStyles(t=!0){return{padding:H.DEFAULT_PADDING,textAlign:H.DEFAULT_HORIZONTAL_TEXT_ALIGN,verticalAlign:H.DEFAULT_VERTICAL_TEXT_ALIGN,minWidth:H.DEFAULT_CELL_MIN_WIDTH,boxSizing:H.DEFAULT_BOX_SIZING,border:`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${t?H.DEFAULT_BORDER.color:H.DEFAULT_BORDER_RGB_COLOR}`}}get borderStr(){return this.border?`${this.border.style||""} ${this.border.width||""} ${this.borderColorAnnotation.renderStyle().color}`.trim():null}set backgroundColor(t){this._backgroundColor=t,this.backgroundColorAnnotation=new O(t)}get backgroundColor(){return this._backgroundColor}set border(t){this._border=t,this.borderColorAnnotation=new O(null==t?void 0:t.color)}get border(){return this._border}clone(){return new H({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}toJSON(){return{tableCell:a({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing})}}renderStyle(t){const e=this.backgroundColorAnnotation.renderStyle().color,s={padding:this.padding,border:this.borderStr,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing};return e&&(s.backgroundColor=e),a((null==t?void 0:t.standalone)?s:this.removeDefaultValues(s),{cleanEmptyString:!0})}renderClass(){return null}removeDefaultValues(t){const e=Object.assign({},t);return e.padding===H.DEFAULT_PADDING&&delete e.padding,e.border===`${H.DEFAULT_BORDER.style} ${H.DEFAULT_BORDER.width} ${H.DEFAULT_BORDER.color}`&&delete e.border,e.textAlign===H.DEFAULT_HORIZONTAL_TEXT_ALIGN&&delete e.textAlign,e.verticalAlign===H.DEFAULT_VERTICAL_TEXT_ALIGN&&delete e.verticalAlign,e.minWidth===H.DEFAULT_CELL_MIN_WIDTH&&delete e.minWidth,e.boxSizing===H.DEFAULT_BOX_SIZING&&delete e.boxSizing,e}}H.DEFAULT_PADDING="12px",H.DEFAULT_BORDER={style:"solid",width:"1px",color:"#ddd"},H.DEFAULT_BORDER_RGB_COLOR="rgb(221, 221, 221)",H.DEFAULT_HORIZONTAL_TEXT_ALIGN="left",H.DEFAULT_VERTICAL_TEXT_ALIGN="middle",H.DEFAULT_CELL_MIN_WIDTH="55px",H.DEFAULT_BOX_SIZING="border-box";class RTETableCellBlock extends e{constructor(t,e){super(t),this.type="table-cell",this.children=[];const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new H)}static from(t,e){var s;const n=new RTETableCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...H.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}get rowSpan(){const t=this.getCustomAttributeByName("rowspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}get colSpan(){const t=this.getCustomAttributeByName("colspan");return isNaN(Number(t))?1:Math.max(Number(t),1)}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<td${super.generateAttributeString(t)}>${e}</td>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}getCustomAttributeByName(t){const e=this.getCustomAttributesAnnotation();if(e)return(e.toJSON().customAttribute||{})[t]}}class j extends H{constructor(t={},e=!0){super(t,e)}static from(t,e){return[m.CELL,new j(t,e)]}static getDefaultBackgroundColor(){return l.isDarkMode()?R.dark:R.light}clone(){return new j({backgroundColor:this.backgroundColor,padding:this.padding,border:this.border,width:this.width,height:this.height,textAlign:this.textAlign,verticalAlign:this.verticalAlign,minWidth:this.minWidth,boxSizing:this.boxSizing},this.useInternalStyle)}renderStyle(t){var e;const s=super.renderStyle(t);return a(Object.assign(Object.assign({},s),{backgroundColor:null!==(e=s.backgroundColor)&&void 0!==e?e:j.getDefaultBackgroundColor()}))}}class RTETableHeadCellBlock extends RTETableCellBlock{constructor(t,e){super(t,e),this.type="table-head-cell";const{autoMatchFormat:s}=e||{autoMatchFormat:!0};s&&this.annotationMap.set(m.CELL,new j)}static from(t,e){var s;const n=new RTETableHeadCellBlock(t.id,e);return super.convertAnnotationsToMap(n.annotationMap,Object.assign({},t.annotations)),(null===(s=t.annotations)||void 0===s?void 0:s.tableCell)&&n.annotationMap.set(...j.from(t.annotations.tableCell,null==e?void 0:e.autoMatchFormat)),n.children=super.generateBlockChildren(t.children,e,n),n}clone(t){const e=new RTETableHeadCellBlock(this.id);return e.children=this.children.map((t=>t.clone(e))),e.parent=t,e.annotationMap=super.cloneAnnotations(),e}toHtml(t){const e=this.children.map((e=>e.toHtml(t))).join("");return`<th${super.generateAttributeString(t)}>${e}</th>`}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,children:this.children.map((t=>t.toJSON()))})}}const F="MERGE_CELLS";class $ extends s{constructor(t,e,s,n,r){super(),this.type="MERGE_CELLS",this.isFlushable=!0,this.targetCell=t,this.mergeCells=e,this.colSpan=s,this.rowSpan=n,this.direction=r}}var P,W;!function(t){t.MERGE_CELLS="MERGE_CELLS",t.MERGE_CELL_UP="MERGE_CELL_UP",t.MERGE_CELL_RIGHT="MERGE_CELL_RIGHT",t.MERGE_CELL_DOWN="MERGE_CELL_DOWN",t.MERGE_CELL_LEFT="MERGE_CELL_LEFT"}(P||(P={}));class G extends B{canHandle(t){return t[0]===k.MERGE_CELLS}execute(t,e){const s=e.tableSelection.getSelectedCells(),n=t[1];switch(n){case P.MERGE_CELL_UP:case P.MERGE_CELL_RIGHT:case P.MERGE_CELL_DOWN:case P.MERGE_CELL_LEFT:{const t=this.getDirectionMergeCells(n,s[0]);this.handleMergeCells(t,n)}break;default:s.length>1&&this.handleMergeCells(s,P.MERGE_CELLS)}}getDirectionMergeCells(t,e){const s=Q(e,t);if(!s)return[e];switch(t){case P.MERGE_CELL_UP:return[s,e];case P.MERGE_CELL_DOWN:return[e,s];case P.MERGE_CELL_LEFT:return[s,e];default:return[e,s]}}handleMergeCells(t,e){if(t.length<2)return;const s=tt(t),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:a}=s,l=new $(a,t,i-o+1,r-n+1,e);this.applyActionOnTable(l,a)}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}function U(t,e){return t?t instanceof e?t:U(t.parent,e):null}function V(t,e){return{id:E(),type:"table-body",children:Array.from({length:t},(()=>function(t){return{id:E(),type:"table-row",children:Array.from({length:t},(()=>Y("table-cell")))}}(e)))}}function J(t){return t.children.filter((t=>t instanceof RTETableBodyBlock||t instanceof RTETableHeadBlock)).flatMap((t=>t.children))}function K(t){if(!t||!t.children||!t.children[0])return null;const e=t.children[0];return e instanceof o?e:K(e)}function z(t,e){for(const s of t){const t=s.children.find((t=>t.id===e));if(t)return t}return null}function Y(t){const e=E();return{id:e,type:t,children:[{id:`${e}-p`,type:"paragraph",nodes:[{id:`${e}-p-t`,type:"text",text:""}]}]}}function X(t){return{colSpan:t.colSpan,rowSpan:t.rowSpan}}function Z(t,e,s){const n=null!=s?s:q(e);for(let e=0;e<n.length;e++){const s=n[e];for(let e=0;e<s.length;e++)if(s[e]===t.id)return e}return-1}function q(t){const e=[];return t.forEach(((t,s)=>{e[s]||(e[s]=[]);let n=0;t.children.forEach((t=>{const{colSpan:r,rowSpan:o}=X(t);for(;void 0!==e[s][n];)n++;for(let i=0;i<o;i++)for(let o=0;o<r;o++)e[s+i]||(e[s+i]=[]),e[s+i][n+o]=t.id;n+=r}))})),e}function Q(t,e){if(!t)return null;const s=t.parent,n=s.parent.children,r=n.indexOf(s),{colSpan:o,rowSpan:i}=X(t),a=Z(t,n);let l=r,c=a;switch(e){case P.MERGE_CELL_LEFT:c=a-1;break;case P.MERGE_CELL_RIGHT:c=a+o;break;case P.MERGE_CELL_UP:l=r-1;break;default:l=r+i}return function(t,e,s){const n=q(t);for(let r=0;r<t.length;r++){const o=t[r];for(const i of o.children){const{colSpan:o,rowSpan:a}=X(i),l=Z(i,t,n),c=r+a-1,h=l+o-1,u=s>=l&&s<=h;if(e>=r&&e<=c&&u)return i}}return null}(n,l,c)}function tt(t){const e=t[0].parent.parent.children,s=q(e);let n=Number.POSITIVE_INFINITY,r=-1,o=Number.POSITIVE_INFINITY,i=-1;const a=new Set;return t.forEach((t=>{const l=e.indexOf(t.parent),c=Z(t,e,s),{colSpan:h,rowSpan:u}=X(t),d=l,E=l+u-1,T=c,p=c+h-1;for(let t=d;t<=E;t++)for(let e=T;e<=p;e++)a.add(`${t},${e}`);n=Math.min(n,d),r=Math.max(r,E),o=Math.min(o,T),i=Math.max(i,p)})),{minRow:n,maxRow:r,minCol:o,maxCol:i,targetCell:t[0],coveredPositions:a}}function et(t){let e=0;const s=J(t)[0];for(const t of s.children){const{colSpan:s}=X(t);e+=s}return e}function st(t){if(1===t.length)return!0;const e=tt(t),{minRow:s,maxRow:n,minCol:r,maxCol:o,coveredPositions:i}=e;return i.size===(n-s+1)*(o-r+1)}function nt(t,e,s,o,i){const a=t.annotationMap.get(n.CUSTOM_ATTRIBUTE),l=a?Object.assign({},a.customAttribute):{};delete l.colspan,delete l.rowspan,e>1&&(l.colspan=String(e));const c=et(o)+(i?1:0);if(s>1&&e!==c&&(l.rowspan=String(s)),Object.keys(l).length>0){const e=new r(l);t.annotationMap.set(n.CUSTOM_ATTRIBUTE,e)}else t.annotationMap.delete(n.CUSTOM_ATTRIBUTE)}function rt(t){const e=Y(t);return"table-head-cell"===t?RTETableHeadCellBlock.from(e):RTETableCellBlock.from(e)}function ot(t,e,s){for(let n=0;n<s;n++){const s=t[n],r=e.children.find((t=>t.id===s));if(r&&!(r instanceof RTETableHeadCellBlock))return n}return-1}function it(t){const e=new Map;return t.forEach((t=>{for(let s=0;s<t.length;s++){const n=t[s];n&&!e.has(n)&&e.set(n,s)}})),e}function at(t,e,s,n){if(0===t.length)return[0,-1];const r=s||J(e),o=null!=n?n:q(r);let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const e=Z(t,r,o);i=Math.min(i,e),a=Math.max(a,e)})),[i,a]}!function(t){t.HEADER_ROW="HEADER_ROW",t.ADD_ROW_ABOVE="ADD_ROW_ABOVE",t.ADD_ROW_BELOW="ADD_ROW_BELOW",t.DELETE_ROW="DELETE_ROW",t.SELECT_ROW="SELECT_ROW"}(W||(W={}));class lt extends B{canHandle(t){return t[0]===k.ROW}execute(t,e){const s=t[1];switch(s){case W.ADD_ROW_ABOVE:case W.ADD_ROW_BELOW:this.handleInsertRow(s,e);break;case W.DELETE_ROW:this.handleDeleteRow(e);break;case W.HEADER_ROW:this.handleToggleHeader(e);break;case W.SELECT_ROW:this.handleSelectRow(e)}}handleInsertRow(t,e){const s=this.getAllSelectedRows(e);if(s.length>0){const e=t===W.ADD_ROW_ABOVE?D.ABOVE:D.BELOW,n=e===D.ABOVE?s[0]:s[s.length-1],r=n.parent instanceof RTETableBodyBlock,o=this.shouldInsertHeaderRow(n,e)||r?new v(e,s):new N(e,s);this.applyActionToTable(s[0],o)}}shouldInsertHeaderRow(t,e){if(e===D.ABOVE)return t.parent instanceof RTETableHeadBlock;{const e=t.parent;return e instanceof RTETableHeadBlock&&e.children[e.children.length-1]!==t}}handleDeleteRow(t){const e=this.getAllSelectedRows(t);if(e.length){const t=new S(e);this.applyActionToTable(e[0],t)}}handleToggleHeader(t){const e=this.getAllSelectedRows(t);if(e.length>0){const t=new x(e);this.applyActionToTable(e[0],t)}}handleSelectRow(t){const e=this.getAllSelectedRows(t);if(e.length>0&&t&&t.tableSelection){const s=e.flatMap((t=>t.children));t.tableSelection.setSelectedCells(s)}}getAllSelectedRows(t){const e=new Set;if(t&&t.tableSelection){const{tableSelection:s}=t;s.getSelectedCells().forEach((t=>{const s=U(t,RTETableRowBlock);s&&e.add(s)}))}return Array.from(e)}applyActionToTable(t,e){const s=U(t,RTETableBlock);s&&s.apply(e)}}const ct="REPLACE_TABLE_CELL";class ht extends s{constructor(t){super(),this.isFlushable=!0,this.type="REPLACE_TABLE_CELL",this.payload=t}}const ut="SPLIT_TABLE_CELL";class dt extends s{constructor(t){super(),this.isFlushable=!0,this.type="SPLIT_TABLE_CELL",this.payload=t}}class Et extends i{getBoundaryCellColumnRange(t,e,s){let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.forEach((t=>{const o=Z(t,e,s);n=Math.min(n,o),r=Math.max(r,o)})),[n,r]}}class Tt extends Et{static isFullHeaderSelection(t){if(0===t.length)return!1;const e=U(t[0],RTETableBlock);if(e){const s=J(e),n=q(s),r=new Map;s.forEach((t=>{t.children.forEach((t=>r.set(t.id,t)))}));const[o,i]=at(t,e,s,n);for(const t of n)for(let e=o;e<=i;e++){const s=r.get(t[e]);if(s&&!(s instanceof RTETableHeadCellBlock))return!1}return!0}return!1}handleAction(t,e){const s=t.headerOn,n=J(e),r=q(n),[o,i]=this.getBoundaryCellColumnRange(t.tableCellHeaderRange,n,r);(s||!s&&o>0)&&this.toggleHeadRows(e,n,r,s,i,o),this.toggleBodyRows(e,n,r,s,o,i);const a=this.getRootContent(e);if(a&&t.tableCellHeaderRange[0].parent){const e=t.tableCellHeaderRange[0].parent.getFirstNode();e&&a.apply(new T(e,0))}}toggleHeadRows(t,e,s,n,r,o){var i;const a=((null===(i=t.children.find((t=>t instanceof RTETableHeadBlock)))||void 0===i?void 0:i.children)||[]).length;for(let i=0;i<a;i++)this.toggleCellType(t,e[i],s[i],0,n?r:o-1,(()=>!0),(t=>RTETableHeadCellBlock.from(t.toJSON())))}toggleBodyRows(t,e,s,n,r,o){var i;const a=s[0].length,l=(null===(i=t.children.find((t=>t instanceof RTETableBodyBlock)))||void 0===i?void 0:i.children)||[],c=e.length-l.length;for(let i=0;i<l.length;i++){const l=i+c,h=e[l],u=s[l],d=ot(u,h,a);n?d>-1&&this.toggleCellType(t,h,u,d,o,(t=>!(t instanceof RTETableHeadCellBlock)),(t=>RTETableHeadCellBlock.from(t.toJSON()))):this.toggleCellType(t,h,u,r,-1===d?a-1:d-1,(t=>t instanceof RTETableHeadCellBlock),(t=>RTETableCellBlock.from(t.toJSON())))}}toggleCellType(t,e,s,n,r,o,i){for(let a=n;a<=r;a++){const n=s[a],l=e.children.find((t=>t.id===n));if(l&&o(l)){const o=s.indexOf(n),c={table:t,cell:l,col:a,cellStartCol:o,endCol:r,targetCellType:i(l).type},h=o+l.colSpan-1;if(h>r||o<a){if(e.apply(new dt(c)),h>r)return;a=h;continue}e.apply(new ht(c))}l&&(a+=l.colSpan-1)}}}const pt="DELETE_TABLE_COLUMN";class bt extends s{constructor(t){super(),this.isFlushable=!0,this.type="DELETE_TABLE_COLUMN",this.tableCellDeleteRange=t}}const ft="INSERT_TABLE_COLUMN";var Ct;!function(t){t.LEFT="LEFT",t.RIGHT="RIGHT"}(Ct||(Ct={}));class Lt extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="INSERT_TABLE_COLUMN",this.tableCellInsertRange=e,this.insertDirection=t}}const gt="SELECT_TABLE_COLUMN";class Rt extends s{constructor(t,e){super(),this.type="SELECT_TABLE_COLUMN",this.tableCellSelectRange=t,this.selectCellCallback=e}}const _t="TOGGLE_HEADER_TABLE_COLUMN";class Ot extends s{constructor(t,e){super(),this.isFlushable=!0,this.type="TOGGLE_HEADER_TABLE_COLUMN",this.headerOn=!1,this.tableCellHeaderRange=t,this.headerOn=e}}var mt;!function(t){t.HEADER_COLUMN="HEADER_COLUMN",t.ADD_COLUMN_LEFT="ADD_COLUMN_LEFT",t.ADD_COLUMN_RIGHT="ADD_COLUMN_RIGHT",t.DELETE_COLUMN="DELETE_COLUMN",t.SELECT_COLUMN="SELECT_COLUMN"}(mt||(mt={}));class kt extends B{canHandle(t){return t[0]===k.COLUMN}execute(t,e){const s=e.tableSelection.getSelectedCells();if(!s||0===s.length)return;const n=t[1];switch(n){case mt.ADD_COLUMN_LEFT:case mt.ADD_COLUMN_RIGHT:this.handleInsertColumn(n,s);break;case mt.DELETE_COLUMN:this.handleDeleteColumn(s);break;case mt.SELECT_COLUMN:this.handleSelectColumn(s,e);break;case mt.HEADER_COLUMN:this.handleToggleHeaderColumn(s)}}handleInsertColumn(t,e){const s=new Lt(t===mt.ADD_COLUMN_LEFT?Ct.LEFT:Ct.RIGHT,e);this.applyActionOnTable(s,e[0])}handleDeleteColumn(t){const e=new bt(t);this.applyActionOnTable(e,t[0])}handleSelectColumn(t,e){const s=new Rt(t,(t=>{e.tableSelection.setSelectedCells(t)}));this.applyActionOnTable(s,t[0])}handleToggleHeaderColumn(t){const e=!Tt.isFullHeaderSelection(t),s=new Ot(t,e);this.applyActionOnTable(s,t[0])}applyActionOnTable(t,e){const s=U(e,RTETableBlock);s&&s.apply(t)}}const At="SPLIT_CELL_HORIZONTALLY";class Bt extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_HORIZONTALLY"}}const wt="SPLIT_CELL_VERTICALLY";class St extends s{constructor(){super(),this.isFlushable=!0,this.type="SPLIT_CELL_VERTICALLY"}}var yt;!function(t){t.SPLIT_CELL_HORIZONTALLY="SPLIT_CELL_HORIZONTALLY",t.SPLIT_CELL_VERTICALLY="SPLIT_CELL_VERTICALLY"}(yt||(yt={}));class Nt extends B{canHandle(t){return t[0]===k.SPLIT_CELL}execute(t,e){const s=e.tableSelection.getSelectedCells();if(s&&1===s.length){const e=s[0];switch(t[1]){case yt.SPLIT_CELL_HORIZONTALLY:this.handleSplitCellHorizontally(e);break;case yt.SPLIT_CELL_VERTICALLY:this.handleSplitCellVertically(e)}}}handleSplitCellHorizontally(t){const e=new Bt;t.apply(e)}handleSplitCellVertically(t){const e=new St;t.apply(e)}}export{at as $,RTETableRowBlock as A,Z as B,kt as C,D,g as E,y as F,M as G,w as H,Ct as I,I as J,ft as K,pt as L,G as M,_t as N,Tt as O,ut as P,ct as Q,m as R,B as S,k as T,At as U,C as V,wt as W,gt as X,F as Y,L as Z,mt as _,R as a,W as a0,yt as a1,st as a2,Q as a3,A as b,H as c,RTETableHeadCellBlock as d,lt as e,Nt as f,_ as g,RTETableBlock as h,V as i,RTETableCellBlock as j,RTETableHeadBlock as k,RTETableBodyBlock as l,U as m,j as n,Et as o,J as p,q,z as r,nt as s,Y as t,it as u,et as v,K as w,X as x,rt as y,P as z}
@@ -1 +1 @@
1
- import{c as t,M as s,V as e}from"./p-6e1ab235.js";import{O as i}from"./p-331a62d5.js";import{C as o}from"./p-2d0d575f.js";import{f as a}from"./p-6e70d3cc.js";import{d as c}from"./p-f28a6074.js";import{j as n,k as l}from"./p-6c43d54a.js";var h=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)})),o.register(c.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(c.getSubject(this.parent,n),this.subStateObserver)}componentWillLoad(){this.pullStates()}getParent(){return"string"==typeof this.observerEntry.parent?a(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(c.getSubject(this.parent,l),{host:this.parent,stateName:t.parentStateName,callback:s=>{this.updateState(t,s)}})}))}}h([t()],r.prototype,"host",void 0),h([s("connectedCallback")],r.prototype,"connectedCallback",null),h([s("disconnectedCallback")],r.prototype,"disconnectedCallback",null),h([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}from"./p-331a62d5.js";import{C as o}from"./p-2d0d575f.js";import{f as a}from"./p-ec2a1d4c.js";import{d as c}from"./p-11e2dcf5.js";import{j as n,k as l}from"./p-3a93730e.js";var h=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)})),o.register(c.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(c.getSubject(this.parent,n),this.subStateObserver)}componentWillLoad(){this.pullStates()}getParent(){return"string"==typeof this.observerEntry.parent?a(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(c.getSubject(this.parent,l),{host:this.parent,stateName:t.parentStateName,callback:s=>{this.updateState(t,s)}})}))}}h([t()],r.prototype,"host",void 0),h([s("connectedCallback")],r.prototype,"connectedCallback",null),h([s("disconnectedCallback")],r.prototype,"disconnectedCallback",null),h([s("componentWillLoad")],r.prototype,"componentWillLoad",null);export{r as S}
@@ -1 +1 @@
1
- import{C as t}from"./p-2d0d575f.js";import{O as s}from"./p-331a62d5.js";import{b as e}from"./p-6e70d3cc.js";class i{constructor(t,s){this.title=t,this.host=s}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const r=new class{constructor(){this.cache=new Map}getSubject(t,s){return this.isExist(t,s)?this.cache.get(t).get(s):this.setSubject(t,s)}isExist(t,s){return!!t&&this.cache.has(t)&&void 0!==this.cache.get(t)&&this.cache.get(t).has(s)}getSubjectFromParentNodeByEventId(t,s){let i;for(const r of this.cache)if(e(t,r[0])&&r[1].has(s)){i=r[1].get(s);break}return i}setSubject(t,s){const e=`${t.tagName}:${s.getName()}`,r=new i(e,t);return this.cache.get(t)||this.cache.set(t,new Map),this.cache.get(t).set(s,r),r}},o=()=>!0;class n{static addUniqueObserverToNode(e,i,c,a){if(e){const h=new s("function"==typeof a?a.bind(null):o,c);n.removeUniqueObserverFromNode(e,i),t.register(r.getSubject(e,i),h)}}static removeUniqueObserverFromNode(s,e){r.isExist(s,e)&&t.clearObserversBySubject(r.getSubject(s,e))}}export{n as D,r as d}
1
+ import{C as t}from"./p-2d0d575f.js";import{O as s}from"./p-331a62d5.js";import{b as e}from"./p-ec2a1d4c.js";class i{constructor(t,s){this.title=t,this.host=s}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const r=new class{constructor(){this.cache=new Map}getSubject(t,s){return this.isExist(t,s)?this.cache.get(t).get(s):this.setSubject(t,s)}isExist(t,s){return!!t&&this.cache.has(t)&&void 0!==this.cache.get(t)&&this.cache.get(t).has(s)}getSubjectFromParentNodeByEventId(t,s){let i;for(const r of this.cache)if(e(t,r[0])&&r[1].has(s)){i=r[1].get(s);break}return i}setSubject(t,s){const e=`${t.tagName}:${s.getName()}`,r=new i(e,t);return this.cache.get(t)||this.cache.set(t,new Map),this.cache.get(t).set(s,r),r}},o=()=>!0;class n{static addUniqueObserverToNode(e,i,c,a){if(e){const h=new s("function"==typeof a?a.bind(null):o,c);n.removeUniqueObserverFromNode(e,i),t.register(r.getSubject(e,i),h)}}static removeUniqueObserverFromNode(s,e){r.isExist(s,e)&&t.clearObserversBySubject(r.getSubject(s,e))}}export{n as D,r as d}
@@ -1 +1 @@
1
- import{r as t,h as i,H as s,g as e}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as n,I as a}from"./p-4415ad28.js";var h=function(t,i,s,e){var o,r=arguments.length,n=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(i,s,n):o(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const l=class{constructor(i){t(this,i),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new n,this.dot=!1,this.color="bg-danger",this.count=0,this.offset=[0,0]}render(){return o(i(s,null,i("div",{class:{dot:this.count>0&&this.dot,counter:this.count>0&&!this.dot,"multi-digit":this.count>=10&&!this.dot,"v-bg-danger":"bg-action"!=this.color,"v-bg-action":"bg-action"==this.color,"default-position":this.count>0},style:{right:-this.offset[0]+"px",top:`${this.offset[1]}px`}},this.renderCounter()),i("slot",null)),this.host)}renderCounter(){if(this.count>0&&!this.dot)return i("span",null,this.count>99?"99+":this.count)}get host(){return e(this)}};h([a()],l.prototype,"globalSlimmers",void 0),h([r()],l.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),l.style=':host{display:block;position:relative;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .dot{display:inline-block;position:absolute;border-radius:9999px;width:9px;height:9px}:host .counter{display:flex;position:absolute;height:20px;min-width:20px;border-radius:9999px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));justify-content:center;align-items:center;font-family:"Inter", sans-serif;font-weight:700;font-size:12px;line-height:15px}:host .default-position{top:0px;right:0px;transform:scale(1) translate(50%, -50%)}:host .multi-digit{padding-left:4px;padding-right:4px}:host .v-bg-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}:host .v-bg-action{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}';export{l as vega_counter_badge}
1
+ import{r as t,h as i,H as e,g as s}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as n,I as a}from"./p-8ce9e214.js";var h=function(t,i,e,s){var o,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(i,e,n):o(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const l=class{constructor(i){t(this,i),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new n,this.dot=!1,this.color="bg-danger",this.count=0,this.offset=[0,0]}render(){return o(i(e,null,i("div",{class:{dot:this.count>0&&this.dot,counter:this.count>0&&!this.dot,"multi-digit":this.count>=10&&!this.dot,"v-bg-danger":"bg-action"!=this.color,"v-bg-action":"bg-action"==this.color,"default-position":this.count>0},style:{right:-this.offset[0]+"px",top:`${this.offset[1]}px`}},this.renderCounter()),i("slot",null)),this.host)}renderCounter(){if(this.count>0&&!this.dot)return i("span",null,this.count>99?"99+":this.count)}get host(){return s(this)}};h([a()],l.prototype,"globalSlimmers",void 0),h([r()],l.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),l.style=':host{display:block;position:relative;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host .dot{display:inline-block;position:absolute;border-radius:9999px;width:9px;height:9px}:host .counter{display:flex;position:absolute;height:20px;min-width:20px;border-radius:9999px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));justify-content:center;align-items:center;font-family:"Inter", sans-serif;font-weight:700;font-size:12px;line-height:15px}:host .default-position{top:0px;right:0px;transform:scale(1) translate(50%, -50%)}:host .multi-digit{padding-left:4px;padding-right:4px}:host .v-bg-danger{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}:host .v-bg-action{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}';export{l as vega_counter_badge}
@@ -1 +1 @@
1
- import{c as t,M as e}from"./p-6e1ab235.js";import{a9 as s,c as i,ac as n,af as o,k as r,s as a,d as c,i as h,G as d,E as f}from"./p-84eb3b9c.js";import{d as l}from"./p-1bc5b3bc.js";import{g as u}from"./p-519a7d55.js";import{C as p}from"./p-2d0d575f.js";import{d as m,D as O}from"./p-f28a6074.js";import{e as b,c as w}from"./p-6c43d54a.js";import{O as g}from"./p-331a62d5.js";import{R as v}from"./p-e1709e59.js";import{A as C}from"./p-4d65756f.js";import{i as N}from"./p-6e70d3cc.js";import{K as S}from"./p-a87cb7ac.js";let j=!1;class y{constructor(){this.rangeCount=0,this.ranges=[]}getRangeAt(t){return this.ranges[t]}addRange(t){if(this.ranges.push(t),this.rangeCount=this.ranges.length,!j){const e=window.getSelection();e.removeAllRanges(),e.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}}removeAllRanges(){this.ranges=[],this.rangeCount=0}}const R=new class{constructor(){this.supportShadowSelection="function"==typeof window.ShadowRoot.prototype.getSelection,this.supportBeforeInput="function"==typeof window.InputEvent.prototype.getTargetRanges,this.isFirefox=window.navigator.userAgent.toLowerCase().indexOf("firefox")>0,this.listen()}getSelection(t){return this.supportShadowSelection?t.getSelection():this.isFirefox?this.getFirefoxSelection():this.polyfilledShadowSelection}getFirefoxSelection(){const t=document.getSelection();if(t.rangeCount>0){const e=t.getRangeAt(0),s=e.startContainer,i=e.endContainer;if(s!==i&&s.textContent.length===e.startOffset){const t=s.nodeType===Node.TEXT_NODE?s.parentNode.nextSibling:s.nextSibling;e.setStart(t.firstChild,0)}if(i!==s&&0===e.endOffset){const t=i.nodeType===Node.TEXT_NODE?i.parentNode.previousSibling:i.previousSibling;e.setEnd(t.lastChild,t.lastChild.textContent.length)}}return t}listen(){this.isFirefox||this.supportShadowSelection||!this.supportBeforeInput||(this.polyfilledShadowSelection=new y,window.addEventListener("selectionchange",(()=>{if(!j){j=!0;const t=u();t&&t.hasAttribute("contenteditable")?document.execCommand("indent"):this.polyfilledShadowSelection.removeAllRanges(),j=!1}}),!0),window.addEventListener("beforeinput",(t=>{if(j){const e=t.getTargetRanges()[0],s=new Range;s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),this.polyfilledShadowSelection.removeAllRanges(),this.polyfilledShadowSelection.addRange(s),t.preventDefault(),t.stopImmediatePropagation()}}),!0))}};class k{constructor(t){this.range=t}clone(){const t=this.range.clone();return new k(t)}}var x=function(t,e,s,i){var n,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r};class D extends C{constructor(){super(1),this.currentRange=new v,this.handleSelectionWithDebounce=l(this.handleSelectionChange,D.SELECTION_CHANGE_DEBOUNCE_TIME,this),this.pendingRestoreSelectionNodes=[],this.doTask=async()=>{await Promise.resolve();const t=this.currentRange.toNativeRange();t&&this.setSelectionRange(t)}}connectedCallback(){this.registerSelectionRangeChangeObserver()}disconnectedCallback(){p.unregister(m.getSubject(this.host,b),this.selectionRangeChangeObserver),O.removeUniqueObserverFromNode(this.host,w)}componentDidLoad(){document.addEventListener("selectionchange",this.handleSelectionWithDebounce),this.registerUpdateCaretPositionObserver()}watchValueUpdate(){this.prepareRestoreSelectionState(),this.restoreSelection()}getCurrentRange(){return this.currentRange}getSelectedNodes(){return Array.from(this.selectionMap.values()).flat()}setSelectedNodes(t,e){this.clearSelectionMap(),this.addNodesToSelectionMap(t),e&&(this.currentRange=this.currentRange.updateRTERange(e))}getSelectedBlocks(){return Array.from(this.selectionMap.keys())}setSelectionState(t){this.selectionState=t}enqueueSelectionRangeFutureState(t,e,i,n,o=!1){t instanceof s?this.internalCodeBlockSelectionController.enqueueSelectionRangeFutureState(t,e,o):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:i=i||t,startOffset:e,endOffset:n=n||0===n?n:e}),super.enqueueTheTaskIntoQueue(o))}setSelectionRange(t){const e=this.getSelection();e&&(e.removeAllRanges(),e.addRange(t),this.saveSelection())}getSelection(){const t=this.vegaRichTextEditorRenderer.getRichTextContentRef();return R.getSelection(t.shadowRoot)}saveSelection(){const t=this.getSelection();if(t&&t.rangeCount>0&&0===this.autoRunTaskQueue.queue.length&&!this.insertCompositionTextController.isComposing()){const e=t.getRangeAt(0),{startContainer:s,endContainer:i,startOffset:n,endOffset:o}=e;this.currentRange=this.currentRange.updateRTERange({startNode:s,endNode:i,startOffset:n,endOffset:o},e)}}restoreSelection(){if(this.selectionState){const{startNode:t,endNode:e,startOffset:s,endOffset:o}=this.selectionState.range;t instanceof i&&t===e&&0===t.text.length?this.enqueueSelectionRangeFutureState(t,n.length):t===e&&t instanceof i&&!t.isContentEditable()||this.enqueueSelectionRangeFutureState(t,s,e,o),this.selectionState=null}}handleSelectionChange(){if(this.disabled||this.sourceView)return;this.clearSelectionMap();const t=this.getSelection();if(!t||0===t.rangeCount)return;this.saveSelection();const e=t.getRangeAt(0),s=[],i=t=>{if(e.intersectsNode(t)){if(t.nodeType===Node.TEXT_NODE){const e=a.getEntityByDOM(t.parentElement);if(e instanceof h)return void s.push(e)}if(N(t)){const i=d.isDecoratorNodeContainerElement(t)?d.getDecoratorNodeElement(t):t,n=a.getEntityByDOM(i);if(n instanceof f)return void(this.internalCodeBlockSelectionController.isCodeBlockSelected(n,e)&&s.push(n.children[0]));if(n instanceof h)return void s.push(n);if(n instanceof c&&e.collapsed)return void this.tryToFindTheNearestSelectedNode(e,s)}t.childNodes.forEach(i)}};i(e.commonAncestorContainer),this.addNodesToSelectionMap(s),this.getSelectedNodes().forEach((t=>t.apply(new o(e))))}addNodesToSelectionMap(t){t.forEach((t=>{this.selectionMap.has(t.parent)?this.selectionMap.get(t.parent).push(t):this.selectionMap.set(t.parent,[t])}))}clearSelectionMap(){this.getSelectedNodes().filter((t=>"CODE_BLOCK_NODE"!==t.type)).forEach((t=>{t.annotationMap.delete(r.SELECTION_RANGE)})),this.selectionMap=new Map}isAcceptableSelectionRangeChange(){return!0}registerSelectionRangeChangeObserver(){this.selectionRangeChangeObserver=new g(this.isAcceptableSelectionRangeChange.bind(this),(t=>{t.updateDirectly?this.enqueueSelectionRangeFutureState(t.node,t.offset):this.pendingRestoreSelectionNodes.push(t.node)})),p.register(m.getSubject(this.host,b),this.selectionRangeChangeObserver)}prepareRestoreSelectionState(){if(this.pendingRestoreSelectionNodes.length>0){const t=this.pendingRestoreSelectionNodes[0],e=this.pendingRestoreSelectionNodes.length>1?this.pendingRestoreSelectionNodes[this.pendingRestoreSelectionNodes.length-1]:t,{startOffset:s,endOffset:i,endContainer:n,startContainer:o}=this.currentRange;o&&a.getDOMByEntity(t)===o.parentElement&&n&&a.getDOMByEntity(e)===n.parentElement?(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:s,endOffset:i}),this.selectionState=new k(this.currentRange)):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:0,endOffset:e.getRangeEndOffset()}),this.selectionState=new k(this.currentRange)),this.pendingRestoreSelectionNodes=[]}}registerUpdateCaretPositionObserver(){O.addUniqueObserverToNode(this.host,w,(t=>{const{node:e,updateDirectly:s}=t,i="number"==typeof t.offset?t.offset:e.getRangeEndOffset();this.enqueueSelectionRangeFutureState(e,i,e,i,s)}))}tryToFindTheNearestSelectedNode(t,e){const{startContainer:s,startOffset:i,collapsed:n}=t;if(0===e.length&&N(s)&&n){const n=a.getEntityByDOM(s);if(n instanceof c&&n.children.length>=i){const s=this.detectNearestElement(n,i);if(s){const{startNode:i,startOffset:n}=s;e.push(i),this.currentRange=this.currentRange.updateRTERange({startNode:i,endNode:i,startOffset:n,endOffset:n},t)}else this.selectionMap.set(n,[])}}}detectNearestElement(t,e){if(t.children){const s=t.children[e],i=t.children[e-1];if(s&&s instanceof h)return{startNode:s,startOffset:0};if(i&&i instanceof h)return{startNode:i,startOffset:i.getRangeEndOffset()}}}}D.SELECTION_CHANGE_DEBOUNCE_TIME=50,x([t()],D.prototype,"vegaRichTextEditorRenderer",void 0),x([t({writable:!0})],D.prototype,"selectionMap",void 0),x([t()],D.prototype,"host",void 0),x([t()],D.prototype,"value",void 0),x([t()],D.prototype,"disabled",void 0),x([t()],D.prototype,"sourceView",void 0),x([t()],D.prototype,"valueController",void 0),x([t()],D.prototype,"insertCompositionTextController",void 0),x([t()],D.prototype,"historyController",void 0),x([t()],D.prototype,"internalCodeBlockSelectionController",void 0),x([e("connectedCallback")],D.prototype,"connectedCallback",null),x([e("disconnectedCallback")],D.prototype,"disconnectedCallback",null),x([e("componentDidLoad")],D.prototype,"componentDidLoad",null),x([e("watchValueUpdate")],D.prototype,"watchValueUpdate",null);class E extends S{constructor(){super((()=>this.getKeyboardShortcutOptions.call(this))),this.redoStack=[],this.undoStack=[],this.registerHistoryDelay=300,this.registerHistoryDebounced=l((t=>{this.internalRegisterHistory(t)}),this.registerHistoryDelay,this)}registerHistory(t,e=!1){e?this.internalRegisterHistory(t):this.registerHistoryDebounced(t)}internalRegisterHistory(t){this.redoStack=[],this.undoStack.push(t)}getKeyboardShortcutOptions(){const t={keyCode:"KeyZ",activeElementInScope:this.getEffectiveTargets(),activeElementOutScope:this.getIneffectiveTargets.bind(this),eventName:"keydown",modifierPressed:!0};return[Object.assign(Object.assign({},t),{shiftKey:!1,callback:t=>{t.preventDefault(),this.undoStack.length>0&&this.undo()}}),Object.assign(Object.assign({},t),{shiftKey:!0,callback:t=>{t.preventDefault(),this.redoStack.length>0&&this.redo()}})]}}export{E as C,k as R,R as S,D as a}
1
+ import{c as t,M as e}from"./p-6e1ab235.js";import{a9 as s,c as i,ad as n,ag as o,k as r,s as a,d as c,i as h,G as d,E as f}from"./p-a2b8d49d.js";import{d as l}from"./p-1bc5b3bc.js";import{g as u}from"./p-519a7d55.js";import{C as p}from"./p-2d0d575f.js";import{d as m,D as O}from"./p-11e2dcf5.js";import{e as b,c as g}from"./p-3a93730e.js";import{O as w}from"./p-331a62d5.js";import{R as v}from"./p-72e2a587.js";import{A as C}from"./p-4d65756f.js";import{i as N}from"./p-ec2a1d4c.js";import{K as S}from"./p-296c5e52.js";let j=!1;class y{constructor(){this.rangeCount=0,this.ranges=[]}getRangeAt(t){return this.ranges[t]}addRange(t){if(this.ranges.push(t),this.rangeCount=this.ranges.length,!j){const e=window.getSelection();e.removeAllRanges(),e.setBaseAndExtent(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}}removeAllRanges(){this.ranges=[],this.rangeCount=0}}const R=new class{constructor(){this.supportShadowSelection="function"==typeof window.ShadowRoot.prototype.getSelection,this.supportBeforeInput="function"==typeof window.InputEvent.prototype.getTargetRanges,this.isFirefox=window.navigator.userAgent.toLowerCase().indexOf("firefox")>0,this.listen()}getSelection(t){return this.supportShadowSelection?t.getSelection():this.isFirefox?this.getFirefoxSelection():this.polyfilledShadowSelection}getFirefoxSelection(){const t=document.getSelection();if(t.rangeCount>0){const e=t.getRangeAt(0),s=e.startContainer,i=e.endContainer;if(s!==i&&s.textContent.length===e.startOffset){const t=s.nodeType===Node.TEXT_NODE?s.parentNode.nextSibling:s.nextSibling;e.setStart(t.firstChild,0)}if(i!==s&&0===e.endOffset){const t=i.nodeType===Node.TEXT_NODE?i.parentNode.previousSibling:i.previousSibling;e.setEnd(t.lastChild,t.lastChild.textContent.length)}}return t}listen(){this.isFirefox||this.supportShadowSelection||!this.supportBeforeInput||(this.polyfilledShadowSelection=new y,window.addEventListener("selectionchange",(()=>{if(!j){j=!0;const t=u();t&&t.hasAttribute("contenteditable")?document.execCommand("indent"):this.polyfilledShadowSelection.removeAllRanges(),j=!1}}),!0),window.addEventListener("beforeinput",(t=>{if(j){const e=t.getTargetRanges()[0],s=new Range;s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),this.polyfilledShadowSelection.removeAllRanges(),this.polyfilledShadowSelection.addRange(s),t.preventDefault(),t.stopImmediatePropagation()}}),!0))}};class k{constructor(t){this.range=t}clone(){const t=this.range.clone();return new k(t)}}var x=function(t,e,s,i){var n,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,s,r):n(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r};class D extends C{constructor(){super(1),this.currentRange=new v,this.handleSelectionWithDebounce=l(this.handleSelectionChange,D.SELECTION_CHANGE_DEBOUNCE_TIME,this),this.pendingRestoreSelectionNodes=[],this.doTask=async()=>{await Promise.resolve();const t=this.currentRange.toNativeRange();t&&this.setSelectionRange(t)}}connectedCallback(){this.registerSelectionRangeChangeObserver()}disconnectedCallback(){p.unregister(m.getSubject(this.host,b),this.selectionRangeChangeObserver),O.removeUniqueObserverFromNode(this.host,g)}componentDidLoad(){document.addEventListener("selectionchange",this.handleSelectionWithDebounce),this.registerUpdateCaretPositionObserver()}watchValueUpdate(){this.prepareRestoreSelectionState(),this.restoreSelection()}getCurrentRange(){return this.currentRange}getSelectedNodes(){return Array.from(this.selectionMap.values()).flat()}setSelectedNodes(t,e){this.clearSelectionMap(),this.addNodesToSelectionMap(t),e&&(this.currentRange=this.currentRange.updateRTERange(e))}getSelectedBlocks(){return Array.from(this.selectionMap.keys())}setSelectionState(t){this.selectionState=t}enqueueSelectionRangeFutureState(t,e,i,n,o=!1){t instanceof s?this.internalCodeBlockSelectionController.enqueueSelectionRangeFutureState(t,e,o):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:i=i||t,startOffset:e,endOffset:n=n||0===n?n:e}),super.enqueueTheTaskIntoQueue(o))}setSelectionRange(t){const e=this.getSelection();e&&(e.removeAllRanges(),e.addRange(t),this.saveSelection())}getSelection(){const t=this.vegaRichTextEditorRenderer.getRichTextContentRef();return R.getSelection(t.shadowRoot)}saveSelection(){const t=this.getSelection();if(t&&t.rangeCount>0&&0===this.autoRunTaskQueue.queue.length&&!this.insertCompositionTextController.isComposing()){const e=t.getRangeAt(0),{startContainer:s,endContainer:i,startOffset:n,endOffset:o}=e;this.currentRange=this.currentRange.updateRTERange({startNode:s,endNode:i,startOffset:n,endOffset:o},e)}}restoreSelection(){if(this.selectionState){const{startNode:t,endNode:e,startOffset:s,endOffset:o}=this.selectionState.range;t instanceof i&&t===e&&0===t.text.length?this.enqueueSelectionRangeFutureState(t,n.length):t===e&&t instanceof i&&!t.isContentEditable()||this.enqueueSelectionRangeFutureState(t,s,e,o),this.selectionState=null}}handleSelectionChange(){if(this.disabled||this.sourceView)return;this.clearSelectionMap();const t=this.getSelection();if(!t||0===t.rangeCount)return;this.saveSelection();const e=t.getRangeAt(0),s=[],i=t=>{if(e.intersectsNode(t)){if(t.nodeType===Node.TEXT_NODE){const e=a.getEntityByDOM(t.parentElement);if(e instanceof h)return void s.push(e)}if(N(t)){const i=d.isDecoratorNodeContainerElement(t)?d.getDecoratorNodeElement(t):t,n=a.getEntityByDOM(i);if(n instanceof f)return void(this.internalCodeBlockSelectionController.isCodeBlockSelected(n,e)&&s.push(n.children[0]));if(n instanceof h)return void s.push(n);if(n instanceof c&&e.collapsed)return void this.tryToFindTheNearestSelectedNode(e,s)}t.childNodes.forEach(i)}};i(e.commonAncestorContainer),this.addNodesToSelectionMap(s),this.getSelectedNodes().forEach((t=>t.apply(new o(e))))}addNodesToSelectionMap(t){t.forEach((t=>{this.selectionMap.has(t.parent)?this.selectionMap.get(t.parent).push(t):this.selectionMap.set(t.parent,[t])}))}clearSelectionMap(){this.getSelectedNodes().filter((t=>"CODE_BLOCK_NODE"!==t.type)).forEach((t=>{t.annotationMap.delete(r.SELECTION_RANGE)})),this.selectionMap=new Map}isAcceptableSelectionRangeChange(){return!0}registerSelectionRangeChangeObserver(){this.selectionRangeChangeObserver=new w(this.isAcceptableSelectionRangeChange.bind(this),(t=>{t.updateDirectly?this.enqueueSelectionRangeFutureState(t.node,t.offset):this.pendingRestoreSelectionNodes.push(t.node)})),p.register(m.getSubject(this.host,b),this.selectionRangeChangeObserver)}prepareRestoreSelectionState(){if(this.pendingRestoreSelectionNodes.length>0){const t=this.pendingRestoreSelectionNodes[0],e=this.pendingRestoreSelectionNodes.length>1?this.pendingRestoreSelectionNodes[this.pendingRestoreSelectionNodes.length-1]:t,{startOffset:s,endOffset:i,endContainer:n,startContainer:o}=this.currentRange;o&&a.getDOMByEntity(t)===o.parentElement&&n&&a.getDOMByEntity(e)===n.parentElement?(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:s,endOffset:i}),this.selectionState=new k(this.currentRange)):(this.currentRange=this.currentRange.updateRTERange({startNode:t,endNode:e,startOffset:0,endOffset:e.getRangeEndOffset()}),this.selectionState=new k(this.currentRange)),this.pendingRestoreSelectionNodes=[]}}registerUpdateCaretPositionObserver(){O.addUniqueObserverToNode(this.host,g,(t=>{const{node:e,updateDirectly:s}=t,i="number"==typeof t.offset?t.offset:e.getRangeEndOffset();this.enqueueSelectionRangeFutureState(e,i,e,i,s)}))}tryToFindTheNearestSelectedNode(t,e){const{startContainer:s,startOffset:i,collapsed:n}=t;if(0===e.length&&N(s)&&n){const n=a.getEntityByDOM(s);if(n instanceof c&&n.children.length>=i){const s=this.detectNearestElement(n,i);if(s){const{startNode:i,startOffset:n}=s;e.push(i),this.currentRange=this.currentRange.updateRTERange({startNode:i,endNode:i,startOffset:n,endOffset:n},t)}else this.selectionMap.set(n,[])}}}detectNearestElement(t,e){if(t.children){const s=t.children[e],i=t.children[e-1];if(s&&s instanceof h)return{startNode:s,startOffset:0};if(i&&i instanceof h)return{startNode:i,startOffset:i.getRangeEndOffset()}}}}D.SELECTION_CHANGE_DEBOUNCE_TIME=50,x([t()],D.prototype,"vegaRichTextEditorRenderer",void 0),x([t({writable:!0})],D.prototype,"selectionMap",void 0),x([t()],D.prototype,"host",void 0),x([t()],D.prototype,"value",void 0),x([t()],D.prototype,"disabled",void 0),x([t()],D.prototype,"sourceView",void 0),x([t()],D.prototype,"valueController",void 0),x([t()],D.prototype,"insertCompositionTextController",void 0),x([t()],D.prototype,"historyController",void 0),x([t()],D.prototype,"internalCodeBlockSelectionController",void 0),x([e("connectedCallback")],D.prototype,"connectedCallback",null),x([e("disconnectedCallback")],D.prototype,"disconnectedCallback",null),x([e("componentDidLoad")],D.prototype,"componentDidLoad",null),x([e("watchValueUpdate")],D.prototype,"watchValueUpdate",null);class E extends S{constructor(){super((()=>this.getKeyboardShortcutOptions.call(this))),this.redoStack=[],this.undoStack=[],this.registerHistoryDelay=300,this.registerHistoryDebounced=l((t=>{this.internalRegisterHistory(t)}),this.registerHistoryDelay,this)}registerHistory(t,e=!1){e?this.internalRegisterHistory(t):this.registerHistoryDebounced(t)}internalRegisterHistory(t){this.redoStack=[],this.undoStack.push(t)}getKeyboardShortcutOptions(){const t={keyCode:"KeyZ",activeElementInScope:this.getEffectiveTargets(),activeElementOutScope:this.getIneffectiveTargets.bind(this),eventName:"keydown",modifierPressed:!0};return[Object.assign(Object.assign({},t),{shiftKey:!1,callback:t=>{t.preventDefault(),this.undoStack.length>0&&this.undo()}}),Object.assign(Object.assign({},t),{shiftKey:!0,callback:t=>{t.preventDefault(),this.redoStack.length>0&&this.redo()}})]}}export{E as C,k as R,R as S,D as a}
@@ -0,0 +1 @@
1
+ import{h as e,F as t,r as i,c as o,H as n,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as r,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-8ce9e214.js";import{P as v}from"./p-81dd00d0.js";import{e as u}from"./p-272440e8.js";import{F as g}from"./p-dcf162e9.js";import{l as m,m as x,f as b}from"./p-ec2a1d4c.js";import{V as C}from"./p-724df1f5.js";import{I as w}from"./p-781fd6e0.js";import{g as y}from"./p-49a2e141.js";import{I as j}from"./p-6399b5ed.js";import{c as k}from"./p-04a65b3f.js";import{R as O,S as R,T as S,a as L,U as H}from"./p-2927b7a1.js";import{C as I}from"./p-2bb5a232.js";import{D as A,d as z}from"./p-11e2dcf5.js";import{O as V,P as M,Q as N,R as E,S as _}from"./p-3a93730e.js";import{c as G}from"./p-341d5e4e.js";import{B as D}from"./p-7cd2b93b.js";import{V as W}from"./p-8aee6b74.js";import{c as U}from"./p-1ec763ab.js";import{c as B}from"./p-613ddaab.js";import{C as T}from"./p-2d0d575f.js";import{O as Z}from"./p-331a62d5.js";import{S as F}from"./p-10fa27d2.js";import{c as K}from"./p-2a9960c9.js";import{f as P}from"./p-19adf714.js";import"./p-b75ee3ba.js";import"./p-982747ef.js";import"./p-1704ff25.js";import"./p-9a6bd32c.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-262ec334.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-8077b117.js";import"./p-78ba7ca9.js";import"./p-d884c644.js";import"./p-0a261b66.js";import"./p-a528714c.js";import"./p-4dd02704.js";import"./p-4866e390.js";import"./p-f0e828d8.js";import"./p-fb5ea4b2.js";import"./p-a841cf13.js";import"./p-b02b985d.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-281fa1e0.js";var X=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class $ extends v{constructor(){super({callback:()=>{this.updateMainContentUI(this.openState)}}),this.isVoiceOverClick=!1,this.triggerElement=null,this.handleClickEvent=e=>{this.isVoiceOverClick=m(e)}}componentDidLoad(){!0===this.open?(this.openState="open",g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.add("disableAnimation")):this.openState="close",window.addEventListener("click",this.handleClickEvent,{capture:!0})}componentDidRender(){}async toggle(){"close"===this.openState?(this.triggerElement=document.activeElement,this.openState="open"):this.openState="close"}watchOpen(e){this.openState=e?"open":"close"}watchOpenState(e){this.updateMainContentUI(e),"open"===e?this.open=!0:(this.open=!1,g.isEnabled("VEGA_LEFT_NAV.DISABLE_ANIMATION_ON_LOAD")&&this.host.classList.contains("disableAnimation")&&this.host.classList.remove("disableAnimation")),this.stateUpdateEventEmitter.emit(this.openState),"open"===e?this.focusFirstFocusableInDialog():this.focusFirstFocusableOutsideDialog()}watchShowAsOverlay(){this.updateMainContentUI(this.openState)}setOpenState(e){this.openState=e}focusFirstFocusableInDialog(){if(!this.isVoiceOverClick)return;const e=this.host,t=x(e);t&&u((()=>t.focus()),e,300)}focusFirstFocusableOutsideDialog(){var e;const t=this.triggerElement;this.triggerElement=null;const i=this.host;if(t&&t.isConnected)return void(null!==(e=x(t))&&void 0!==e?e:t).focus();const o=this.findFirstFocusableOutside(i);o&&o.focus()}findFirstFocusableOutside(e){const t=i=>{const o=Array.from(i.children);for(const i of o){if(i===e||e.contains(i))continue;if(i.contains(e)){const e=t(i);if(e)return e;continue}const o=x(i);if(o)return o}return null};return t(document.body)}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"),u((()=>{this.open||(this.host.style.display="none")}),this.host))}}X([r()],$.prototype,"host",void 0),X([r({writable:!0})],$.prototype,"open",void 0),X([r({writable:!0})],$.prototype,"openState",void 0),X([r()],$.prototype,"stateUpdateEventEmitter",void 0),X([r()],$.prototype,"backdropController",void 0),X([l("componentDidLoad")],$.prototype,"componentDidLoad",null),X([l("componentDidRender")],$.prototype,"componentDidRender",null),X([l("toggle")],$.prototype,"toggle",null),X([l("watchOpen")],$.prototype,"watchOpen",null),X([l("watchOpenState")],$.prototype,"watchOpenState",null),X([l("watchShowAsOverlay")],$.prototype,"watchShowAsOverlay",null);const Q=()=>e("div",{class:"header-footer-separator-container"},e("div",{class:"header-footer-separator"}));var q=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class J extends c{componentWillLoad(){this.hasHeaderSlot=!!this.host.querySelector('[slot="header-slot"]')}render(){return this.renderHeader()}renderHeader(){const{title:i,subtitle:o}=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):this.renderHeaderLogo(),o&&e("div",{class:"header-subtitle"},o)),e(Q,null))}renderHeaderLogo(){return"gp"===this.currentBranding?e("vega-brand-logo",{name:"global-payments",size:"small"}):"genius"===this.currentBranding?e("vega-brand-logo",{name:"genius",size:"small"}):e("vega-icon",{icon:C.getIconKey("heartland-logo")})}}C.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}}),q([r()],J.prototype,"host",void 0),q([r()],J.prototype,"headerConfig",void 0),q([r()],J.prototype,"currentBranding",void 0),q([l("componentWillLoad")],J.prototype,"componentWillLoad",null);var Y=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ee 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(Q,null),e("div",{class:"footer-container"},this.hasFooterSlot?e("slot",{name:"footer-slot"}):e("div",{class:"footer-footnote"},this.footnote)))}}Y([r()],ee.prototype,"host",void 0),Y([r()],ee.prototype,"footnote",void 0),Y([l("componentWillLoad")],ee.prototype,"componentWillLoad",null);var te=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ie extends c{watchOpenState(){this.updateZIndex()}updateZIndex(){const e=this.backdropController.getBackdrop();"open"==this.openState?(e&&w.setZIndex(e,"base"),w.setZIndex(this.host,"base")):u((()=>{e&&w.removeZIndex(e,"base"),w.removeZIndex(this.host,"base")}),this.host,300)}}te([r()],ie.prototype,"host",void 0),te([r()],ie.prototype,"openState",void 0),te([r()],ie.prototype,"backdropController",void 0),te([l("watchOpenState")],ie.prototype,"watchOpenState",null);var oe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ne extends v{constructor(){super({callback:()=>{this.updateBackdropUI(this.openState)}}),this.backdrop=null}connectedCallback(){this.backdrop&&this.backdrop.isConnected||(this.backdrop=this.createBackdrop())}disconnectedCallback(){this.backdrop&&this.backdrop.remove(),this.backdrop=null}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"),i=this.backdrop;i&&(i.visible="open"===e&&(!t||this.shouldShowBackdrop()))}isLargeScreen(){const e=y();return"L"==e||"XL"==e}}oe([r()],ne.prototype,"openState",void 0),oe([r()],ne.prototype,"showAsOverlay",void 0),oe([r()],ne.prototype,"openStateController",void 0),oe([l("connectedCallback")],ne.prototype,"connectedCallback",null),oe([l("disconnectedCallback")],ne.prototype,"disconnectedCallback",null),oe([l("watchOpenState")],ne.prototype,"watchOpenState",null),oe([l("watchShowAsOverlay")],ne.prototype,"watchShowAsOverlay",null);class ae 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",{itemKey:t.key,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",{itemKey:t.key,key:t.key||t.name,icon:t.icon,label:t.name,"open-by-default":t.openByDefault},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",{itemKey:t.key,key:t.key||t.name,icon:t.icon,url:t.url,target:t.target,selected:t.selected,counterBadge:t.counterBadge},t.name)}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],ae.prototype,"source",void 0);var se=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class re extends c{registerMenuClickObserver(){A.addUniqueObserverToNode(this.host,V,(()=>{this.shouldAutoCollapse()&&this.openStateController.setOpenState("close")}))}unregisterMenuClickObserver(){A.removeUniqueObserverFromNode(this.host,V)}shouldAutoCollapse(){return this.autoCollapseOnOverlay&&this.backdropController.shouldShowBackdrop()&&"open"===this.openState}}se([r()],re.prototype,"host",void 0),se([r()],re.prototype,"openState",void 0),se([r()],re.prototype,"autoCollapseOnOverlay",void 0),se([r()],re.prototype,"showAsOverlay",void 0),se([r()],re.prototype,"backdropController",void 0),se([r()],re.prototype,"openStateController",void 0),se([l("connectedCallback")],re.prototype,"registerMenuClickObserver",null),se([l("disconnectedCallback")],re.prototype,"unregisterMenuClickObserver",null);const le=[{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 ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const de=class{constructor(e){i(this,e),this.vegaStateUpdate=o(this,"vegaStateUpdate",7),this.stateUpdate=o(this,"stateUpdate",7),this.globalSlimmers={},this.headerRenderer=new J,this.footerRenderer=new ee,this.openStateController=new $,this.backdropController=new ne,this.zIndexController=new ie,this.listRenderer=new ae,this.vegaLeftNavAutoCollapseController=new re,this.stateUpdateEventEmitter=k(de,O),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(le),this.autoCollapseGroupsNotifySlimmer=G(de,"autoCollapseGroups","watchAutoCollapseGroups"),this.brandSwitchControllerSlimmer=new D,this.currentBranding=W.getBranding(),this.openState="close",this.open=!1,this.headerConfig={},this.footnote="",this.showAsOverlay=!0,this.autoCollapseOnOverlay=!1,this.autoCollapseGroups=!1}watchOpenState(){}watchOpen(){}watchShowAsOverlay(){}watchAutoCollapseGroups(){}componentWillLoad(){"string"==typeof this.autoCollapseGroups&&(this.autoCollapseGroups.includes("true")?this.autoCollapseGroups=!0:this.autoCollapseGroups.includes("false")&&(this.autoCollapseGroups=!1))}async toggle(){}render(){return p(e("slot",null)),s(e(n,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"]}}};ce([f()],de.prototype,"globalSlimmers",void 0),ce([d()],de.prototype,"headerRenderer",void 0),ce([d()],de.prototype,"footerRenderer",void 0),ce([d()],de.prototype,"openStateController",void 0),ce([d()],de.prototype,"backdropController",void 0),ce([d()],de.prototype,"zIndexController",void 0),ce([d()],de.prototype,"listRenderer",void 0),ce([d()],de.prototype,"vegaLeftNavAutoCollapseController",void 0),ce([d()],de.prototype,"stateUpdateEventEmitter",void 0),ce([d()],de.prototype,"componentGlobalStyleSlimmer",void 0),ce([d()],de.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ce([d()],de.prototype,"autoCollapseGroupsNotifySlimmer",void 0),ce([d()],de.prototype,"brandSwitchControllerSlimmer",void 0),ce([j((e=>[{keyCode:"Escape",activeElementInScope:()=>{const t=e.backdropController.getBackdrop();return t&&t.visible?[document.body]:[e.host]},callback:()=>{const t=e.backdropController.getBackdrop();t&&t.visible&&e.openStateController.setOpenState("close")}}]))],de.prototype,"host",void 0),de.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[icon="v-internal-icon heartland-logo"]+.header-subtitle{margin-top:8px}';var pe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class he extends c{constructor(){super(...arguments),this.handleClick=e=>{const t=e.currentTarget;if(t&&"$1"===t.dataset.root){e.preventDefault(),this.vegaLeftNavGroupOpenStateController.toggle();const t=this.vegaLeftNavGroupOpenStateController.isOpen();this.groupClickEventEmitter.emit(t?"EXPAND":"COLLAPSE"),this.notifyOtherGroup()}}}getGroupContainer(){return this.groupContainer}render(){return e("div",{class:"vega-li-main "+(this.openByDefault?"open":""),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:C.getIconKey("chevron-down"),size:"size-12"}),e("vega-icon",{icon:C.getIconKey("chevron-up"),size:"size-12"}))),e("div",{class:"vega-nav-list-sub"},e("slot",null)))}notifyOtherGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,M),{host:this.host})}}C.register({"chevron-up":U,"chevron-down":B}),pe([r()],he.prototype,"host",void 0),pe([r()],he.prototype,"autoCollapseGroups",void 0),pe([r()],he.prototype,"icon",void 0),pe([r()],he.prototype,"label",void 0),pe([r()],he.prototype,"groupClickEventEmitter",void 0),pe([r()],he.prototype,"vegaLeftNavHierarchyController",void 0),pe([r()],he.prototype,"openByDefault",void 0),pe([r()],he.prototype,"itemKey",void 0),pe([r()],he.prototype,"vegaLeftNavGroupOpenStateController",void 0);var fe=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ve extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,N),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,N),this.observer))}isAcceptableObserver(e){return!this.host.contains(e.host)}shouldCollapse(){return"on-link-click"===this.autoCollapseGroups||!0===this.autoCollapseGroups||!1===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}fe([r()],ve.prototype,"host",void 0),fe([r()],ve.prototype,"autoCollapseGroups",void 0),fe([r()],ve.prototype,"vegaLeftNavGroupOpenStateController",void 0),fe([r()],ve.prototype,"vegaLeftNavHierarchyController",void 0),fe([r()],ve.prototype,"openByDefault",void 0),fe([l("disconnectedCallback")],ve.prototype,"disconnectedCallback",null),fe([l("componentWillLoad")],ve.prototype,"componentWillLoad",null);var ue=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class ge extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,M),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,M),this.observer))}isAcceptableObserver(e){return e.host!==this.host&&!this.host.contains(e.host)}shouldCollapse(){return 1==this.autoCollapseGroups||"on-group-click"===this.autoCollapseGroups||"always"===this.autoCollapseGroups}observerListener(){this.shouldCollapse()&&this.vegaLeftNavGroupOpenStateController.close()}}ue([r()],ge.prototype,"host",void 0),ue([r()],ge.prototype,"autoCollapseGroups",void 0),ue([r()],ge.prototype,"vegaLeftNavGroupOpenStateController",void 0),ue([r()],ge.prototype,"vegaLeftNavHierarchyController",void 0),ue([l("disconnectedCallback")],ge.prototype,"disconnectedCallback",null),ue([l("componentWillLoad")],ge.prototype,"componentWillLoad",null);var me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class xe extends F{constructor(){super({parent:"vega-left-nav",subStates:[{subStateName:"autoCollapseGroups",parentStateName:"autoCollapseGroups"}]})}}me([r()],xe.prototype,"host",void 0),me([r({writable:!0})],xe.prototype,"autoCollapseGroups",void 0);class be extends c{isOpen(){return this.renderer.getGroupContainer().classList.contains("open")}open(){this.renderer.getGroupContainer().classList.add("open")}close(){this.renderer.getGroupContainer().classList.remove("open")}toggle(){this.isOpen()?this.close():this.open()}}!function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);a>3&&s&&Object.defineProperty(t,i,s)}([r()],be.prototype,"renderer",void 0);var Ce=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class we extends c{componentWillLoad(){const e=b(this.host,"vega-left-nav"),t=b(this.host,"vega-nav-card");(e||t)&&(this.parent=e||t)}getTopParent(){return this.parent}}Ce([r()],we.prototype,"host",void 0),Ce([l("componentWillLoad")],we.prototype,"componentWillLoad",null);var ye=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class je extends c{disconnectedCallback(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.unregister(z.getSubject(e,E),this.observer)}componentWillLoad(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&!this.openByDefault&&(this.observer=new Z(this.isAcceptableObserver.bind(this),this.observerListener.bind(this)),T.register(z.getSubject(e,E),this.observer))}isAcceptableObserver(e){return this.host.contains(e.host)}observerListener(){this.vegaLeftNavGroupOpenStateController.open()}}ye([r()],je.prototype,"host",void 0),ye([r()],je.prototype,"vegaLeftNavGroupOpenStateController",void 0),ye([r()],je.prototype,"vegaLeftNavHierarchyController",void 0),ye([r()],je.prototype,"openByDefault",void 0),ye([l("disconnectedCallback")],je.prototype,"disconnectedCallback",null),ye([l("componentWillLoad")],je.prototype,"componentWillLoad",null);var ke=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Oe=class{constructor(e){i(this,e),this.vegaGroupClick=o(this,"vegaGroupClick",7),this.groupClick=o(this,"groupClick",7),this.globalSlimmers={},this.renderer=new he,this.vegaLeftNavHierarchyController=new we,this.linkClickObserverController=new ve,this.otherGroupsClickObserverController=new ge,this.groupClickEventEmitter=k(Oe,R),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.vegaLeftNavGroupStateController=new xe,this.vegaLeftNavGroupOpenStateController=new be,this.vegaLeftNavGroupForInitializeSelectedController=new je,this.autoCollapseGroups=!1,this.label="",this.openByDefault=!1}render(){return p(e("slot",null)),e(n,{"data-key":this.itemKey},s(this.renderer.render(),this.host))}get host(){return a(this)}};ke([f()],Oe.prototype,"globalSlimmers",void 0),ke([d()],Oe.prototype,"renderer",void 0),ke([d()],Oe.prototype,"vegaLeftNavHierarchyController",void 0),ke([d()],Oe.prototype,"linkClickObserverController",void 0),ke([d()],Oe.prototype,"otherGroupsClickObserverController",void 0),ke([d()],Oe.prototype,"groupClickEventEmitter",void 0),ke([d()],Oe.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupOpenStateController",void 0),ke([d()],Oe.prototype,"vegaLeftNavGroupForInitializeSelectedController",void 0),Oe.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}@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{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.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 Re=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Se extends c{constructor(){super(...arguments),this.handleClick=()=>{this.selected||this.customSelectionEnabled||this.controller.setSelected(!0),this.menuClickEventEmitter.emit(),this.notifyVegaLeftNav(),this.notifyVegaLeftGroup()}}render(){return e(n,{class:!0===this.selected?"selected":"","data-key":this.itemKey},e("a",{href:this.url||"javascript:void(0);",target:this.target,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)),!!this.deprecatedPropertySlimmer.getValue()&&e("div",{class:"vega-counter-badge"},e("vega-counter-badge",{count:this.deprecatedPropertySlimmer.getValue(),color:this.counterBadge.color}))))}notifyVegaLeftNav(){const e=b(this.host,"vega-left-nav");e&&T.notify(z.getSubject(e,V),{host:this.host})}notifyVegaLeftGroup(){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,N),{host:this.host})}}Re([r()],Se.prototype,"host",void 0),Re([r()],Se.prototype,"selected",void 0),Re([r()],Se.prototype,"url",void 0),Re([r()],Se.prototype,"counterBadge",void 0),Re([r()],Se.prototype,"icon",void 0),Re([r()],Se.prototype,"menuClickEventEmitter",void 0),Re([r()],Se.prototype,"controller",void 0),Re([r()],Se.prototype,"deprecatedPropertySlimmer",void 0),Re([r()],Se.prototype,"customSelectionEnabled",void 0),Re([r()],Se.prototype,"itemKey",void 0),Re([r()],Se.prototype,"target",void 0),Re([r()],Se.prototype,"vegaLeftNavHierarchyController",void 0);var Le=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class He extends c{disconnectedCallback(){const e=this.getObserverSubject();e&&T.unregister(e,this.observer)}componentWillLoad(){this.observer=new Z(this.isAcceptableNavListObserver.bind(this),this.observerListener.bind(this));const e=this.getObserverSubject();e&&T.register(e,this.observer)}isAcceptableNavListObserver(e){return e instanceof HTMLElement&&b(this.host,".vega-nav-list-container")===b(e,".vega-nav-list-container")}}Le([l("disconnectedCallback")],He.prototype,"disconnectedCallback",null),Le([l("componentWillLoad")],He.prototype,"componentWillLoad",null);var Ie=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ae extends He{componentWillRender(){if(this.selected){const e=this.vegaLeftNavHierarchyController.getTopParent();e&&T.notify(z.getSubject(e,E),{host:this.host})}}componentDidRender(){if(this.selected){const e=this.getObserverSubject();e&&T.notify(e,this.host)}}setSelected(e){this.customSelectionEnabled||(this.selected=e)}observerListener(e){e!==this.host&&this.setSelected(!1)}getObserverSubject(){const e=this.vegaLeftNavHierarchyController.getTopParent();return e?z.getSubject(e,_):null}}Ie([r()],Ae.prototype,"host",void 0),Ie([r({writable:!0})],Ae.prototype,"selected",void 0),Ie([r()],Ae.prototype,"customSelectionEnabled",void 0),Ie([r()],Ae.prototype,"vegaLeftNavHierarchyController",void 0),Ie([l("componentWillRender")],Ae.prototype,"componentWillRender",null),Ie([l("componentDidRender")],Ae.prototype,"componentDidRender",null);var ze=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Ve=class{constructor(e){i(this,e),this.vegaMenuClick=o(this,"vegaMenuClick",7),this.menuClick=o(this,"menuClick",7),this.globalSlimmers={},this.renderer=new Se,this.vegaLeftNavHierarchyController=new we,this.controller=new Ae,this.menuClickEventEmitter=k(Ve,S),this.deprecatedPropertySlimmer=K(Ve,"counterBadge.count","counterBadge.counter",void 0),this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.selected=!1,this.customSelectionEnabled=!1,this.target="_self"}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};ze([f()],Ve.prototype,"globalSlimmers",void 0),ze([d()],Ve.prototype,"renderer",void 0),ze([d()],Ve.prototype,"vegaLeftNavHierarchyController",void 0),ze([d()],Ve.prototype,"controller",void 0),ze([d()],Ve.prototype,"menuClickEventEmitter",void 0),ze([d()],Ve.prototype,"deprecatedPropertySlimmer",void 0),ze([d()],Ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ve.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(var(--v-bg-selected, 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:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}';var Me=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class Ne extends c{render(){return e(n,{"data-key":this.itemKey},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,L,(()=>{this.actionClickEventEmitter.emit()}))}}))}}Me([r()],Ne.prototype,"sectionHeader",void 0),Me([r()],Ne.prototype,"actionClickEventEmitter",void 0),Me([r()],Ne.prototype,"itemKey",void 0);var Ee=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const _e=class{constructor(e){i(this,e),this.vegaActionClick=o(this,"vegaActionClick",7),this.actionClick=o(this,"actionClick",7),this.globalSlimmers={},this.renderer=new Ne,this.actionClickEventEmitter=k(_e,H),this.vegaComponentUsageRuntimeMetricsSlimmer=new h}render(){return p(e("slot",null)),s(this.renderer.render(),this.host)}get host(){return a(this)}};Ee([f()],_e.prototype,"globalSlimmers",void 0),Ee([d()],_e.prototype,"renderer",void 0),Ee([d()],_e.prototype,"actionClickEventEmitter",void 0),Ee([d()],_e.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_e.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 Ge=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};class De extends v{constructor(){super({callback:()=>{this.updateMaxHeight()}})}watchMaxHeight(){this.updateMaxHeight()}updateMaxHeight(){const e=P(this.maxHeight,"widthAndHeight");this.currentMaxHeight=e}}Ge([r()],De.prototype,"maxHeight",void 0),Ge([r({writable:!0})],De.prototype,"currentMaxHeight",void 0),Ge([l("watchMaxHeight")],De.prototype,"watchMaxHeight",null);const We=[{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 Ue=function(e,t,i,o){var n,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const Be=class{constructor(e){i(this,e),this.globalSlimmers={},this.listRenderer=new ae,this.maxHeightController=new De,this.vegaComponentUsageRuntimeMetricsSlimmer=new h(We)}watchMaxHeight(){}render(){return p(e("slot",null)),s(e(n,{style:{maxHeight:this.currentMaxHeight}},this.listRenderer.render()),this.host)}get host(){return a(this)}static get watchers(){return{maxHeight:["watchMaxHeight"]}}};Ue([f()],Be.prototype,"globalSlimmers",void 0),Ue([d()],Be.prototype,"listRenderer",void 0),Ue([d()],Be.prototype,"maxHeightController",void 0),Ue([d()],Be.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Be.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{de as vega_left_nav,Oe as vega_left_nav_group,Ve as vega_left_nav_link,_e as vega_left_nav_section,Be as vega_nav_card}
@@ -1 +1 @@
1
- import"./p-6e1ab235.js";import{I as e,c as a}from"./p-593e0f80.js";const c=[{payloadKey:"IS_REGISTER_METHOD_CALLED",payloadDescription:"Indicate if the method register of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"register"===a,payloadValue:()=>!0},{payloadKey:"IS_GETICON_METHOD_CALLED",payloadDescription:"Indicate if the method getIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"getIcon"===a,payloadValue:()=>!0},{payloadKey:"IS_HASICON_METHOD_CALLED",payloadDescription:"Indicate if the method hasIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"hasIcon"===a,payloadValue:()=>!0}];class t{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(t,["register","getIcon","hasIcon"],c),this.icons=new Map}register(e){for(const a in e)this.icons.has(a)||this.icons.set(a,e[a])}getIcon(e){return this.icons.get(e)}hasIcon(e){return this.icons.has(e)}}!function(e,a,c,t){var o,n=arguments.length,i=n<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,c):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,c,t);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(i=(n<3?o(i):n>3?o(a,c,i):o(a,c))||i);n>3&&i&&Object.defineProperty(a,c,i)}([e()],t.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const o=new t;export{o as V}
1
+ import"./p-6e1ab235.js";import{I as e,c as a}from"./p-9a6bd32c.js";const c=[{payloadKey:"IS_REGISTER_METHOD_CALLED",payloadDescription:"Indicate if the method register of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"register"===a,payloadValue:()=>!0},{payloadKey:"IS_GETICON_METHOD_CALLED",payloadDescription:"Indicate if the method getIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"getIcon"===a,payloadValue:()=>!0},{payloadKey:"IS_HASICON_METHOD_CALLED",payloadDescription:"Indicate if the method hasIcon of public API IconManager is called",canAccept:(e,a)=>"IconManager"===e&&"hasIcon"===a,payloadValue:()=>!0}];class t{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(t,["register","getIcon","hasIcon"],c),this.icons=new Map}register(e){for(const a in e)this.icons.has(a)||this.icons.set(a,e[a])}getIcon(e){return this.icons.get(e)}hasIcon(e){return this.icons.has(e)}}!function(e,a,c,t){var o,n=arguments.length,i=n<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,c):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,c,t);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(i=(n<3?o(i):n>3?o(a,c,i):o(a,c))||i);n>3&&i&&Object.defineProperty(a,c,i)}([e()],t.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const o=new t;export{o as V}
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t,H as a,g as r}from"./p-6b2342e0.js";import{c as n}from"./p-3a620268.js";import{s as o}from"./p-519a7d55.js";import{C as s}from"./p-590fd123.js";import{C as c}from"./p-2d0d575f.js";import{C as h,F as l,g as d}from"./p-a528714c.js";import{O as p}from"./p-331a62d5.js";import{f as g,a as x}from"./p-ec2a1d4c.js";import{c as b,M as v,V as f,I as m}from"./p-6e1ab235.js";import{V as u,I as k}from"./p-8ce9e214.js";import{F as w}from"./p-2d694684.js";import{c as y}from"./p-04a65b3f.js";import{i as j}from"./p-2927b7a1.js";import{h as z}from"./p-3a93730e.js";import{d as C}from"./p-11e2dcf5.js";import{C as I}from"./p-ab04eff6.js";import{A as R}from"./p-bdb5180c.js";import{R as V}from"./p-280cbcdb.js";import{C as D}from"./p-75b58efe.js";import{C as O}from"./p-77fb5d5c.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-0a261b66.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-10fa27d2.js";import"./p-4dd02704.js";import"./p-5f377954.js";import"./p-dcf162e9.js";import"./p-982747ef.js";var E=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};class F extends f{connectedCallback(){this.checkboxGroup=g(this.host,"vega-checkbox-group")||g(this.host,"vega-selection-tile-group"),this.fieldErrorObserver=new p(this.canAcceptFieldErrorObserver.bind(this),this.fieldErrorObserverListener.bind(this)),c.register(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}disconnectedCallback(){c.unregister(C.getSubject(this.checkboxGroup||this.host,z),this.fieldErrorObserver)}canAcceptFieldErrorObserver(){return!0}fieldErrorObserverListener(e){this.showError=e.showError}}E([b({writable:!0})],F.prototype,"showError",void 0),E([b()],F.prototype,"host",void 0),E([v("connectedCallback")],F.prototype,"connectedCallback",null),E([v("disconnectedCallback")],F.prototype,"disconnectedCallback",null);var G=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const A=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.vegaCheckboxShowErrorController=new F,this.ariaAttributesValueMapper=new R((()=>this.host.shadowRoot.querySelector("input")),{"aria-label":{dependency:["data-aria-label","identifier"],defaultValue:"No label defined"}}),this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new s:null}],defaultValue:e=>""!==e.identifier&&"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>[this.inputRef]}),this.changeEventEmitter=y(A,j),this.dropdownEventPrevent=new I([j],(()=>this.host),{customPreventHandle:e=>{e.stopPropagation()}}),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.groupDisabled=!1,this.showError=!1,this.identifier="",this.value=""!==this.identifier&&"",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.size="default",this.required=!1,this.isValid=null,this.onCheckBoxChange=e=>{this.indeterminate&&(this.indeterminate=!1),this.checked=e.currentTarget.checked},this.onSelectedIconClick=e=>{e.stopPropagation()}}watchValueChange(e){this.checked=""!==this.identifier?e===this.identifier:!0===e}watchCheckedChange(){this.initValue(),this.changeEventEmitter.emit(this.value),c.notify(h,{host:this.host,detail:this.value}),c.notify(l,{host:this.host,detail:this.value})}disconnectedCallback(){this.unRegisterGroupDisabledObserver()}componentWillLoad(){!this.checked&&(""!==this.identifier?this.value===this.identifier:!0===this.value||"true"===this.value)&&(this.checked=!0),this.initValue(),this.initAndRegisterGroupDisabledObserver()}componentDidRender(){""===this.host.innerHTML.trim()&&this.labelElement.classList.add("vega-hidden"),this.syncNativeIndeterminate()}async setValue(e){this.checked=this.identifier?e===this.identifier:!0===e}render(){var e;const i="VEGA-CHECKBOX-GROUP"==(null===(e=this.host.parentElement)||void 0===e?void 0:e.nodeName);return o(t(a,{class:{"vega-flex-shrink-0 v-min-w-min":i,checked:this.checked,indeterminate:this.indeterminate,disabled:this.isDisabled()}},t("label",{class:x(["vega-checkbox-container",this.showError&&"error",this.size&&`size-${this.size}`]),ref:e=>this.inputContainerRef=e},t("input",{ref:e=>this.inputRef=e,type:"checkbox",checked:this.checked,value:this.identifier,onChange:this.onCheckBoxChange,"aria-checked":this.indeterminate?"mixed":void 0,disabled:this.isDisabled(),tabIndex:0,onKeyDown:n()}),t("span",{class:"vega-checkbox-icon",onClick:this.onSelectedIconClick,tabIndex:-1,"aria-hidden":"true"},this.renderIconDom()),t("div",{class:"vega-checkbox-label-container",ref:e=>this.labelElement=e},this.renderLabelDom(),this.renderRequireDom()))),this.host)}renderIconDom(){return this.indeterminate?t("vega-icon",{icon:"minus-sign",size:"small"===this.size?"size-12":"size-16"}):this.checked?t("vega-icon",{icon:"checkmark",size:"small"===this.size?"size-12":"size-16"}):null}renderLabelDom(){return t("span",{class:"vega-checkbox-label"},t("slot",null))}renderRequireDom(){return t("span",{class:{"vega-require":this.required}},this.required?"*":"")}initValue(){this.value=""!==this.identifier?this.checked?this.identifier:"":this.checked}syncNativeIndeterminate(){this.inputRef&&(this.inputRef.indeterminate=this.indeterminate)}isDisabled(){return this.disabled||this.groupDisabled}canAcceptGroupDisabledObserver(e){return g(this.host,"vega-checkbox-group")===e.host}groupDisabledObserverListener(e){this.groupDisabled=e.host.disabled}initAndRegisterGroupDisabledObserver(){g(this.host,"vega-checkbox-group")&&(this.groupDisabledObserver=new p(this.canAcceptGroupDisabledObserver.bind(this),this.groupDisabledObserverListener.bind(this)),c.register(d,this.groupDisabledObserver))}unRegisterGroupDisabledObserver(){this.groupDisabledObserver&&c.unregister(d,this.groupDisabledObserver)}get host(){return r(this)}static get watchers(){return{value:["watchValueChange"],checked:["watchCheckedChange"]}}};G([k()],A.prototype,"globalSlimmers",void 0),G([m()],A.prototype,"vegaCheckboxShowErrorController",void 0),G([m()],A.prototype,"ariaAttributesValueMapper",void 0),G([m()],A.prototype,"formFieldController",void 0),G([m()],A.prototype,"changeEventEmitter",void 0),G([m()],A.prototype,"dropdownEventPrevent",void 0),G([m()],A.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),A.style=':host{display:inline-block;vertical-align:middle}.vega-checkbox-container{position:relative;display:flex;-webkit-tap-highlight-color:transparent}.vega-checkbox-container>input[type=checkbox]{position:absolute;left:0px;top:0px;opacity:0;width:24px;height:24px;padding:0px;margin:0px}.vega-checkbox-container>.vega-checkbox-icon{display:inline-block;box-sizing:border-box;width:24px;height:24px;border-style:solid;border-width:2px;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1));position:relative;left:0px;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:4px;min-width:24px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));display:inline-flex;align-items:center;justify-content:center}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:hover,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.vega-checkbox-container>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px}.vega-checkbox-container>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-action-active, 29, 65, 195, 1))}:host(.checked) .vega-checkbox-container>.vega-checkbox-icon:active,:host(.indeterminate) .vega-checkbox-container>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}:host(.disabled) .vega-checkbox-container{cursor:not-allowed}:host(:not(.disabled)) .vega-checkbox-container{cursor:pointer}.vega-checkbox-container .vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px;vertical-align:middle}.vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon{background-color:rgba(var(--v-bg-danger, 189, 41, 71, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:hover,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon:hover{background-color:rgba(var(--v-bg-danger-hover, 233, 71, 104, 1))}.vega-checkbox-container.error>input[type=checkbox]:focus-visible+.vega-checkbox-icon{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px}:host(.checked) .vega-checkbox-container.error>.vega-checkbox-icon:active,:host(.indeterminate) .vega-checkbox-container.error>.vega-checkbox-icon:active{background-color:rgba(var(--v-bg-danger-active, 230, 50, 87, 1))}.vega-checkbox-container.error>.vega-checkbox-icon:active{border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1))}:host(.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon,:host(.indeterminate.disabled) .vega-checkbox-container>.vega-checkbox-icon{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.checked.disabled) .vega-checkbox-container>.vega-checkbox-icon>vega-icon,:host(.indeterminate.disabled) .vega-checkbox-container>.vega-checkbox-icon>vega-icon{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}.vega-checkbox-container>.vega-checkbox-label-container{display:inline-block;margin-left:12px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-checkbox-container>.vega-checkbox-label-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){.vega-checkbox-container>.vega-checkbox-label-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){.vega-checkbox-container>.vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.disabled) .vega-checkbox-container>.vega-checkbox-label-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-checkbox-label-container.vega-hidden{display:none}.vega-hidden{display:none}.size-default input[type=checkbox]{width:24px;height:24px}.size-default .vega-checkbox-icon{width:24px;height:24px;min-width:24px;border-radius:4px}.size-default .vega-checkbox-label-container{margin-left:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-default .vega-checkbox-label-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){.size-default .vega-checkbox-label-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){.size-default .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}.size-small input[type=checkbox]{width:16px;height:16px}.size-small .vega-checkbox-icon{width:16px;height:16px;min-width:16px;border-radius:2px}.size-small .vega-checkbox-label-container{margin-left:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.size-small .vega-checkbox-label-container{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}';var P=function(e,i,t,a){var r,n=arguments.length,o=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,i,t,a);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(n<3?r(o):n>3?r(i,t,o):r(i,t))||o);return n>3&&o&&Object.defineProperty(i,t,o),o};const q=class{constructor(t){e(this,t),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.globalSlimmers={},this.formFieldController=new w({propertyRules:[{propertyName:"required",ruleFactory:e=>e?new V:null}],defaultValue:[],validationRulesName:"validationRules",attributeGetter:e=>this[e],inputContainerGetter:()=>this.inputContainerRef,touchableAreaGetter:()=>this.touchableAreaGetter()}),this.checkboxValueChangeObserver=new O(h,(e=>this.childCheckboxValueChange(e))),this.checkboxEventPrevent=new I([j],(()=>this.vegaFlexElement)),this.changeEventEmitter=y(q,j),this.vegaComponentUsageRuntimeMetricsSlimmer=new u,this.label="",this.value=[],this.vegaFlexProp={},this.disabled=!1,this.required=!1,this.hint="",this.isValid=null,this.autoValidation=!0,this.validationRules=[],this.childCheckboxValueChange=e=>{this.syncCheckboxItemsValue(e.detail,e.host.identifier)},this.touchableAreaGetter=()=>{const e=[];return this.vegaCheckboxArray&&this.vegaCheckboxArray.forEach((async i=>{e.push(i.shadowRoot.querySelector("input"))})),e}}async watchValue(){this.initCheckboxArray(),this.changeEventEmitter.emit(this.value),c.notify(l,{host:this.host,detail:this.value})}watchVegaFlexProp(){this.setVegaFlexProperty()}async watchDisabled(){this.notifyGroupDisabledChange()}watchValidationRules(){}componentDidLoad(){this.setVegaFlexProperty(),this.initCheckboxArray(),this.notifyGroupDisabledChange()}render(){return o(t(a,null,this.renderLabelDom(),t("div",{class:"vega-checkbox-group-container",ref:e=>this.inputContainerRef=e},t("vega-flex",{ref:e=>{this.vegaFlexElement=e}},t("slot",null))),this.renderHintDom()),this.host)}renderLabelDom(){return this.label&&t("div",{class:"vega-label"},t("label",{"aria-label":this.label},this.label,this.renderRequireDom()))}renderRequireDom(){return this.required?t("span",{class:"vega-require"},"*"):null}renderHintDom(){return this.hint&&t("div",{class:"vega-hint"},t("label",null,this.hint))}setVegaFlexProperty(){this.vegaFlexProp&&Object.assign(this.vegaFlexElement,{gap:"size-16",direction:"col"},this.vegaFlexProp)}syncCheckboxItemsValue(e,i){e&&!this.value.includes(i)?this.value=[...this.value,i]:!e&&this.value.includes(i)&&(this.value=[...this.value.filter((e=>e!==i))])}initCheckboxArray(){this.vegaCheckboxArray=Array.from(this.host.querySelectorAll("vega-checkbox")),this.vegaCheckboxArray.forEach((e=>{e.checked=!!(this.value&&this.value.length>0)&&this.value.includes(e.identifier)}))}notifyGroupDisabledChange(){c.notify(d,{host:this.host})}get host(){return r(this)}static get watchers(){return{value:["watchValue"],vegaFlexProp:["watchVegaFlexProp"],disabled:["watchDisabled"],validationRules:["watchValidationRules"]}}};P([k()],q.prototype,"globalSlimmers",void 0),P([m()],q.prototype,"formFieldController",void 0),P([m()],q.prototype,"checkboxValueChangeObserver",void 0),P([m()],q.prototype,"checkboxEventPrevent",void 0),P([m()],q.prototype,"changeEventEmitter",void 0),P([m()],q.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),P([D()],q.prototype,"watchVegaFlexProp",null),q.style=':host{display:block;text-align:left;line-height:normal}.vega-error{display:block;margin-top:12px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}.vega-hidden{display:none}.vega-label{margin-bottom:16px}.vega-label label{font-family:"Inter", sans-serif;font-size:18px;font-weight:500;line-height:30px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-label label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:28px;letter-spacing:0px}}.vega-require{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}.vega-hint{padding-top:12px}.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-hint>label{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}';export{A as vega_checkbox,q as vega_checkbox_group}
@@ -1 +1 @@
1
- import{P as e}from"./p-e4c4ea35.js";import{I as r}from"./p-abd7aeaa.js";class t extends r{constructor(e){super(),this.config=e}evaluate(r){if(!this.isAcceptedInputType(r))throw new Error(`Invalid date value ${r} for mode ${this.config.mode}`);let t;switch(this.config.mode){case"single":t=e(r);break;case"range":t=Array.isArray(r)&&2===r.length&&r.every(e)}return{isValid:t,message:t?"":"This field is required"}}canEvaluate(e,r){return r?this.isAcceptedInputType(e)&&!r.disabled&&r.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){if(null==e)return!0;if(!this.config.mode)throw new Error(`Unexpected type of mode: ${this.config.mode}`);switch(this.config.mode){case"single":return"string"==typeof e;case"range":return Array.isArray(e);default:return!1}}}export{t as D}
1
+ import{P as e}from"./p-78ba7ca9.js";import{I as r}from"./p-abd7aeaa.js";class t extends r{constructor(e){super(),this.config=e}evaluate(r){if(!this.isAcceptedInputType(r))throw new Error(`Invalid date value ${r} for mode ${this.config.mode}`);let t;switch(this.config.mode){case"single":t=e(r);break;case"range":t=Array.isArray(r)&&2===r.length&&r.every(e)}return{isValid:t,message:t?"":"This field is required"}}canEvaluate(e,r){return r?this.isAcceptedInputType(e)&&!r.disabled&&r.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){if(null==e)return!0;if(!this.config.mode)throw new Error(`Unexpected type of mode: ${this.config.mode}`);switch(this.config.mode){case"single":return"string"==typeof e;case"range":return Array.isArray(e);default:return!1}}}export{t as D}
@@ -1 +1 @@
1
- import{j as r,k as a,l as t,m as o,n,o as e,p as s,q as i,h as f,r as u,B as c,C as d,f as b,s as p}from"./p-e4c4ea35.js";import{B as l}from"./p-ed45b3b6.js";import{L as m}from"./p-6e1ab235.js";import{R as $}from"./p-031c0cf7.js";import{a as v}from"./p-d884c644.js";import{S as j,a as g,b as k}from"./p-1a869f0e.js";import{B as h}from"./p-d4ea8e22.js";const w=new class{format(a,t){switch(t){case"backgroundColor":return r.format(a);case"borderColor":return k.format(a);case"shadow":return g.format(a);case"border":return j.format(a);default:throw new Error(`Invalid flag ${t} passed into StateFormatFacade`)}}};function O(r,a,t){m.warn(`The ${r} value ${a} is invalid, it must be a value of: `,t)}function x(r,a){let t="";return a.includes("dark")&&(t+=` dark:v-dark-${r}`),t}function B(r){if(a(r))return`v-p-${r}`;O("padding",r,Object.keys(f))}function C(r){if(u(r))return`v-border-${r}`;O("border-style",r,h)}function F(r){if(t(r))return`v-${r}`;O("border-radius",r,Object.keys(c))}function S(r){if(o(r))return`v-${r}`;O("border-color",r,d.filter((()=>/^border-color-.+$/.test)))}function q(r,a=[]){if(n(r))return`v-${r}`+x(r,a);O("background-color",r,d.filter((()=>/^bg-.+$/.test)))}function y(r,a=[]){if(e(r))return`v-${r}`+x(r,a);O("text-color",r,d.filter((()=>/^text-.+$/.test)))}function E(r){if(s(r))return`vega-flex-${r}`;O("breakpoint",r,Object.keys(l))}function I(r){if(s(r))return l[r];O("breakpoint",r,Object.keys(l))}function L(r){if(a(r))return`v-gap-${r}`;O("gap",r,Object.keys(f))}function R(r,a=[]){if(i(r))return`v-${r}`+x(r,a);O("shadows",r,b)}function T(r,a){if(null!=r)return $.format(r,a)}function z(r){if(p(r))return`v-${r}`;O("font",r,v)}function A(r,a){if(null!=r)return w.format(r,a)}export{L as a,R as b,I as c,q as d,S as e,T as f,F as g,B as h,y as i,A as j,C as k,E as l,z as m}
1
+ import{j as r,k as a,l as t,m as o,n,o as s,p as e,q as i,h as f,r as u,B as c,C as d,f as b,s as p}from"./p-78ba7ca9.js";import{B as l}from"./p-ed45b3b6.js";import{L as m}from"./p-6e1ab235.js";import{R as $}from"./p-b02b985d.js";import{a as v}from"./p-d884c644.js";import{S as j,a as g,b as k}from"./p-281fa1e0.js";import{B as h}from"./p-d4ea8e22.js";const w=new class{format(a,t){switch(t){case"backgroundColor":return r.format(a);case"borderColor":return k.format(a);case"shadow":return g.format(a);case"border":return j.format(a);default:throw new Error(`Invalid flag ${t} passed into StateFormatFacade`)}}};function O(r,a,t){m.warn(`The ${r} value ${a} is invalid, it must be a value of: `,t)}function x(r,a){let t="";return a.includes("dark")&&(t+=` dark:v-dark-${r}`),t}function B(r){if(a(r))return`v-p-${r}`;O("padding",r,Object.keys(f))}function C(r){if(u(r))return`v-border-${r}`;O("border-style",r,h)}function F(r){if(t(r))return`v-${r}`;O("border-radius",r,Object.keys(c))}function S(r){if(o(r))return`v-${r}`;O("border-color",r,d.filter((()=>/^border-color-.+$/.test)))}function q(r,a=[]){if(n(r))return`v-${r}`+x(r,a);O("background-color",r,d.filter((()=>/^bg-.+$/.test)))}function y(r,a=[]){if(s(r))return`v-${r}`+x(r,a);O("text-color",r,d.filter((()=>/^text-.+$/.test)))}function E(r){if(e(r))return`vega-flex-${r}`;O("breakpoint",r,Object.keys(l))}function I(r){if(e(r))return l[r];O("breakpoint",r,Object.keys(l))}function L(r){if(a(r))return`v-gap-${r}`;O("gap",r,Object.keys(f))}function R(r,a=[]){if(i(r))return`v-${r}`+x(r,a);O("shadows",r,b)}function T(r,a){if(null!=r)return $.format(r,a)}function z(r){if(p(r))return`v-${r}`;O("font",r,v)}function A(r,a){if(null!=r)return w.format(r,a)}export{L as a,R as b,I as c,q as d,S as e,T as f,F as g,B as h,y as i,A as j,C as k,E as l,z as m}
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,H as r,g as s}from"./p-6b2342e0.js";import{R as o}from"./p-280cbcdb.js";import{c as a}from"./p-6ac8e655.js";import{s as n}from"./p-519a7d55.js";import{a as p,h as l,c as h}from"./p-6e70d3cc.js";import{F as d}from"./p-c347e08a.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-4415ad28.js";import{F as g}from"./p-a528714c.js";import{c as x}from"./p-6b5cb920.js";import{C as b}from"./p-2d0d575f.js";import{i as v}from"./p-9af0e2e7.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-f28a6074.js";import"./p-6c43d54a.js";import"./p-3b791b5d.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-af5cb9bc.js";import"./p-f1c672e4.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,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(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 j=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 o:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=x(j,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.columns=8,this.renderColorPickerContainer=()=>{const e=this.getValidColumns();return i("div",{class:p([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8",alignItems:"center",style:{maxWidth:34*e-8+"px"}},this.colors.map((e=>{const t=this.value===e;return i("div",{id:e,class:{"color-picker-inline-items":!0,selected:t},ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:a()},t?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})}getValidColumns(){const e=Math.floor(this.columns);return Number.isFinite(e)&&e>0?e:1}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),s=this.getLuminance(t),o=this.getLuminance(i);return r>Math.sqrt((s+.05)*(o+.05))-.05}getLuminance(e){const t=[l(e).r/255,l(e).g/255,l(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()],j.prototype,"globalSlimmers",void 0),w([c()],j.prototype,"formFieldController",void 0),w([c()],j.prototype,"changeEventEmitter",void 0),w([c()],j.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),j.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))}: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 .color-picker-inline-items.selected{border-color:rgba(var(--v-bg-inverted-primary, 4, 4, 28, 1))}:host .color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .color-picker-inline-items:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));box-shadow:0px 0px 0px 1px rgba(var(--v-bg-primary, 252, 252, 252, 1)) inset;border:1px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}: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}';export{j as vega_color_picker}
1
+ import{r as e,c as t,h as i,H as r,g as s}from"./p-6b2342e0.js";import{R as o}from"./p-280cbcdb.js";import{c as a}from"./p-3a620268.js";import{s as n}from"./p-519a7d55.js";import{a as p,h as l,c as h}from"./p-ec2a1d4c.js";import{F as d}from"./p-2d694684.js";import{I as c}from"./p-6e1ab235.js";import{V as m,I as f}from"./p-8ce9e214.js";import{F as g}from"./p-a528714c.js";import{c as x}from"./p-04a65b3f.js";import{C as b}from"./p-2d0d575f.js";import{i as v}from"./p-2927b7a1.js";import"./p-abd7aeaa.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-8b5d3a52.js";import"./p-6a334573.js";import"./p-11e2dcf5.js";import"./p-3a93730e.js";import"./p-0a261b66.js";import"./p-f0e828d8.js";import"./p-b75ee3ba.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-10fa27d2.js";import"./p-4dd02704.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,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(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 j=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 o:null}],validationRulesName:"validationRules",defaultValue:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.colorPickerContainerRef,touchableAreaGetter:()=>[this.colorPickerTouchableAreaRef]}),this.changeEventEmitter=x(j,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.columns=8,this.renderColorPickerContainer=()=>{const e=this.getValidColumns();return i("div",{class:p([this.isInline?null:"color-picker-inline"]),ref:e=>this.colorPickerContainerRef=e},i("vega-flex",{direction:"row",gap:"size-8",alignItems:"center",style:{maxWidth:34*e-8+"px"}},this.colors.map((e=>{const t=this.value===e;return i("div",{id:e,class:{"color-picker-inline-items":!0,selected:t},ref:e=>this.colorPickerTouchableAreaRef=e,style:{backgroundColor:e},onClick:this.updateValueProp,role:"button",tabIndex:0,"aria-label":"color",onKeyDown:a()},t?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})}getValidColumns(){const e=Math.floor(this.columns);return Number.isFinite(e)&&e>0?e:1}isDarkColorCheckmark(e,t="#fcfcfc",i="#203645"){const r=this.getLuminance(e),s=this.getLuminance(t),o=this.getLuminance(i);return r>Math.sqrt((s+.05)*(o+.05))-.05}getLuminance(e){const t=[l(e).r/255,l(e).g/255,l(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()],j.prototype,"globalSlimmers",void 0),w([c()],j.prototype,"formFieldController",void 0),w([c()],j.prototype,"changeEventEmitter",void 0),w([c()],j.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),j.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))}: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 .color-picker-inline-items.selected{border-color:rgba(var(--v-bg-inverted-primary, 4, 4, 28, 1))}:host .color-picker-inline-items:hover{box-shadow:0 0 0 4px rgba(var(--v-ring-input-focus, 19, 98, 226, 0.25))}:host .color-picker-inline-items:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));box-shadow:0px 0px 0px 1px rgba(var(--v-bg-primary, 252, 252, 252, 1)) inset;border:1px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}: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}';export{j as vega_color_picker}
@@ -1 +1 @@
1
- import{r as t,h as e,g as s,H as r}from"./p-6b2342e0.js";import{I as n,s as o,B as i,p as a,a as c,L as h,P as d,b as u,c as p}from"./p-e4917e76.js";import{s as l}from"./p-519a7d55.js";import{I as m}from"./p-6e1ab235.js";import{V as f,I as v}from"./p-4415ad28.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-d884c644.js";import"./p-0c667d6a.js";class w extends n{constructor(){super(...arguments),this.eventType="mouseover"}createShouldHandle(){return this.shouldHandle}createHandle(){return this.handle}shouldHandle(t){return t.target.classList.contains("vega-chart-arc-path")}handle(t){const e=o(t.currentTarget),s=t.target,r=s.dataset.name;e.selectAll(".vega-chart-arc-path").each((function(){const t=this;if(t!==s&&t.classList.contains("hover")){t.classList.remove("hover");const e=t.getAttribute("d"),s=t.dataset.d;t.dataset.d=e,o(this).transition(100).duration(100).attr("d",s)}else if(!s.classList.contains("hover")){s.classList.add("hover");const t=s.getAttribute("d"),n=s.dataset.d;s.dataset.d=t,o(s).transition(100).duration(100).attr("d",n),e.select(".vega-chart-draw-g text").text(r)}}))}}class j extends i{constructor(){super(...arguments),this.arcPathHoverEntryGenerator=new w}addInteractionSupport(t){this.interactor.register(this,t,this.arcPathHoverEntryGenerator.generate())}draw(){const{data:t,colors:e,donutRadius:s,outerRadius:r,center:n}=this.options.renderOptions;return t.map(((t,o)=>{const i=this.getColorFromToken(this.getColorByIndex(o,e));return this.renderer.drawArcPath(n,t,i,r,s)}))}}class g extends i{addInteractionSupport(){}draw(){this.options.renderOptions.forEach((t=>{const{position:e,text:s,styleToken:r,textAnchor:n,rotate:o}=t;this.renderer.drawText(e,s,this.getStyleTextFromToken(r),n,o)}))}}class b{process(t,e){const{dataSource:s,colors:r}=t,{radius:n,innerRadius:o,center:i}=e;return{data:a().value((t=>t.value))(s),colors:r,outerRadius:n,donutRadius:o,center:i}}}class O{process(t){const{center:e}=t;return[{text:"",position:e,textAnchor:"middle",styleToken:"v-font-footnote2-short"}]}}class R{process(t){const e=t.dataSource.filter((t=>!(!t.name||!t.value)));return t.dataSource=e,t}}class x{process(t,e){const{type:s,donutRadius:r}=t,{innerWidth:n,innerHeight:o}=e,i=Math.min(n,o)/2;return{radius:i,innerRadius:("Donut"===s?!r||r<=0?.6:Math.min(r,.9):0)*i,center:{x:n/2,y:o/2}}}}class y extends c{constructor(){super(...arguments),this.layoutInputProcessor=new h,this.filterInputProcessor=new R,this.radiusInputProcessor=new x,this.arcPathInputProcessorChain=new d([this.filterInputProcessor,this.layoutInputProcessor,this.radiusInputProcessor,new b]),this.textInputProcessor=new O,this.legendInputProcessChain=new d([this.layoutInputProcessor,new u])}createDrawerChain(t,e){const s=this.arcPathInputProcessorChain.process(this.options),r=this.legendInputProcessChain.process(this.options);return[new j(t,e,{renderOptions:s}),new g(t,e,{renderOptions:this.textInputProcessor.process(s)}),new p(t,e,{renderOptions:r})]}}var S=function(t,e,s,r){var n,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o<3?n(i):o>3?n(e,s,i):n(e,s))||i);return o>3&&i&&Object.defineProperty(e,s,i),i};const H=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new f}watchOptionsHandel(t){this.updateChart(t)}disconnectedCallback(){this.chart=null,this.reRenderTimer&&clearTimeout(this.reRenderTimer)}componentWillLoad(){this.updateChart(this.options)}async reRender(){this.reRenderTimer&&clearTimeout(this.reRenderTimer),this.reRenderTimer=setTimeout((()=>{this.chart.reRender()}),0)}render(){return l(e(r,null),this.host)}updateChart(t){if(!t)return;const{mode:e="svg",dataSource:s}=t,r=function(t,e){var s={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(s[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(s[r[n]]=t[r[n]])}return s}(t,["mode","dataSource"]),n=Object.assign(Object.assign({},r),{mode:e,container:this.host,dataSource:s||[]});this.chart?this.chart.updateOptions(n):(this.chart=new y(n),this.chart.render())}get host(){return s(this)}static get watchers(){return{options:["watchOptionsHandel"]}}};S([v()],H.prototype,"globalSlimmers",void 0),S([m()],H.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),H.style=".vega-chart-legend-item{cursor:pointer}.vega-chart-line-path:hover{stroke-width:5}:host{display:block}";export{H as vega_pie_chart}
1
+ import{r as t,h as e,g as s,H as r}from"./p-6b2342e0.js";import{I as n,s as o,B as i,p as a,a as c,L as h,P as d,b as u,c as p}from"./p-e4917e76.js";import{s as l}from"./p-519a7d55.js";import{I as m}from"./p-6e1ab235.js";import{V as f,I as v}from"./p-8ce9e214.js";import"./p-d27ae9ff.js";import"./p-262ec334.js";import"./p-d884c644.js";import"./p-0c667d6a.js";class w extends n{constructor(){super(...arguments),this.eventType="mouseover"}createShouldHandle(){return this.shouldHandle}createHandle(){return this.handle}shouldHandle(t){return t.target.classList.contains("vega-chart-arc-path")}handle(t){const e=o(t.currentTarget),s=t.target,r=s.dataset.name;e.selectAll(".vega-chart-arc-path").each((function(){const t=this;if(t!==s&&t.classList.contains("hover")){t.classList.remove("hover");const e=t.getAttribute("d"),s=t.dataset.d;t.dataset.d=e,o(this).transition(100).duration(100).attr("d",s)}else if(!s.classList.contains("hover")){s.classList.add("hover");const t=s.getAttribute("d"),n=s.dataset.d;s.dataset.d=t,o(s).transition(100).duration(100).attr("d",n),e.select(".vega-chart-draw-g text").text(r)}}))}}class j extends i{constructor(){super(...arguments),this.arcPathHoverEntryGenerator=new w}addInteractionSupport(t){this.interactor.register(this,t,this.arcPathHoverEntryGenerator.generate())}draw(){const{data:t,colors:e,donutRadius:s,outerRadius:r,center:n}=this.options.renderOptions;return t.map(((t,o)=>{const i=this.getColorFromToken(this.getColorByIndex(o,e));return this.renderer.drawArcPath(n,t,i,r,s)}))}}class g extends i{addInteractionSupport(){}draw(){this.options.renderOptions.forEach((t=>{const{position:e,text:s,styleToken:r,textAnchor:n,rotate:o}=t;this.renderer.drawText(e,s,this.getStyleTextFromToken(r),n,o)}))}}class b{process(t,e){const{dataSource:s,colors:r}=t,{radius:n,innerRadius:o,center:i}=e;return{data:a().value((t=>t.value))(s),colors:r,outerRadius:n,donutRadius:o,center:i}}}class O{process(t){const{center:e}=t;return[{text:"",position:e,textAnchor:"middle",styleToken:"v-font-footnote2-short"}]}}class R{process(t){const e=t.dataSource.filter((t=>!(!t.name||!t.value)));return t.dataSource=e,t}}class x{process(t,e){const{type:s,donutRadius:r}=t,{innerWidth:n,innerHeight:o}=e,i=Math.min(n,o)/2;return{radius:i,innerRadius:("Donut"===s?!r||r<=0?.6:Math.min(r,.9):0)*i,center:{x:n/2,y:o/2}}}}class y extends c{constructor(){super(...arguments),this.layoutInputProcessor=new h,this.filterInputProcessor=new R,this.radiusInputProcessor=new x,this.arcPathInputProcessorChain=new d([this.filterInputProcessor,this.layoutInputProcessor,this.radiusInputProcessor,new b]),this.textInputProcessor=new O,this.legendInputProcessChain=new d([this.layoutInputProcessor,new u])}createDrawerChain(t,e){const s=this.arcPathInputProcessorChain.process(this.options),r=this.legendInputProcessChain.process(this.options);return[new j(t,e,{renderOptions:s}),new g(t,e,{renderOptions:this.textInputProcessor.process(s)}),new p(t,e,{renderOptions:r})]}}var S=function(t,e,s,r){var n,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o<3?n(i):o>3?n(e,s,i):n(e,s))||i);return o>3&&i&&Object.defineProperty(e,s,i),i};const H=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new f}watchOptionsHandel(t){this.updateChart(t)}disconnectedCallback(){this.chart=null,this.reRenderTimer&&clearTimeout(this.reRenderTimer)}componentWillLoad(){this.updateChart(this.options)}async reRender(){this.reRenderTimer&&clearTimeout(this.reRenderTimer),this.reRenderTimer=setTimeout((()=>{this.chart.reRender()}),0)}render(){return l(e(r,null),this.host)}updateChart(t){if(!t)return;const{mode:e="svg",dataSource:s}=t,r=function(t,e){var s={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(s[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(s[r[n]]=t[r[n]])}return s}(t,["mode","dataSource"]),n=Object.assign(Object.assign({},r),{mode:e,container:this.host,dataSource:s||[]});this.chart?this.chart.updateOptions(n):(this.chart=new y(n),this.chart.render())}get host(){return s(this)}static get watchers(){return{options:["watchOptionsHandel"]}}};S([v()],H.prototype,"globalSlimmers",void 0),S([m()],H.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),H.style=".vega-chart-legend-item{cursor:pointer}.vega-chart-line-path:hover{stroke-width:5}:host{display:block}";export{H as vega_pie_chart}