@globalpayments/vega 2.100.0 → 2.101.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.
- package/dist/cjs/{action-color-accessibility-validator-b8a9ef0f.js → action-color-accessibility-validator-61af71ae.js} +1 -1
- package/dist/cjs/{app-globals-48d067a7.js → app-globals-275ea7c7.js} +15 -7
- package/dist/cjs/{aria-dialog-focusable-trap-slimmer-62147489.js → aria-dialog-focusable-trap-slimmer-c79cc3f8.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-e0ac8467.js → child-nodes-event-prevent-slimmer-d720d7e9.js} +1 -1
- package/dist/cjs/{code-block-3b42c364.js → code-block-c598832d.js} +793 -781
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-bbe3bcaf.js → component-value-history-controller-slimmer.abstract-4bd47aa1.js} +3 -3
- package/dist/cjs/{content-state-87a06c1a.js → content-state-da23e822.js} +2 -2
- package/dist/cjs/countries-a8e3812a.js +251 -0
- package/dist/cjs/{dark-mode-style-controller-f3da3342.js → dark-mode-style-controller-ec04ece9.js} +45 -45
- package/dist/cjs/{element-appender-slimmer-f7ba5d9a.js → element-appender-slimmer-2aaf8e24.js} +20 -1
- package/dist/cjs/{event-emit-slimmer-34aa195e.js → event-emit-slimmer-67b5c186.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-fbaddc91.js → form-field-controller-slimmer-ac9337f4.js} +2 -2
- package/dist/cjs/{image-annotation-action-03d3e01a.js → image-annotation-action-378838c2.js} +4 -4
- package/dist/cjs/{image-extension-ccda26d3.js → image-extension-673ebe7f.js} +2 -2
- package/dist/cjs/index.cjs.js +14 -12
- package/dist/cjs/{internal-vega-event-manager-7003c84a.js → internal-vega-event-manager-976b9526.js} +10 -2
- package/dist/cjs/{link-extension-71eeaa9f.js → link-extension-f493e432.js} +2 -2
- package/dist/cjs/loader.cjs.js +13 -12
- package/dist/cjs/{public-rules-3dc5d02d.js → public-rules-bae12c47.js} +5 -5
- package/dist/cjs/{range-d29751e3.js → range-9f42fb40.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-05de7f0c.js → rich-text-editor-required-rule-bb232741.js} +1 -1
- package/dist/cjs/{split-cell-operation-ef783850.js → split-cell-operation-0d33123e.js} +3 -3
- package/dist/cjs/{string-input-formatter-slimmer-9747039f.js → string-input-formatter-slimmer-2e0a838e.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-e264a120.js → sub-state-notify-slimmer-3b33e31c.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-6033b824.js → sub-state-observer-slimmer-5b68ba3f.js} +1 -1
- package/dist/cjs/{token-extension-8d7bd451.js → token-extension-4badb962.js} +9 -9
- package/dist/cjs/vega-accordion.cjs.entry.js +3 -3
- package/dist/cjs/vega-app-footer.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -1
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-group_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-link.cjs.entry.js +5 -5
- package/dist/cjs/vega-button.cjs.entry.js +6 -6
- package/dist/cjs/vega-calendar_5.cjs.entry.js +122 -16
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
- package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-swatch.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +7 -7
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-dialog_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +9 -9
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-58afed7a.js → vega-event-id-987a170c.js} +2 -0
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
- package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
- package/dist/cjs/vega-form.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-numeric.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-passcode.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +16 -269
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +16 -33
- package/dist/cjs/vega-input.cjs.entry.js +8 -8
- package/dist/cjs/{vega-internal-event-id-f4d33037.js → vega-internal-event-id-98d499d7.js} +6 -2
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +7 -7
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +5 -5
- package/dist/cjs/vega-popover_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +18 -18
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +8 -8
- package/dist/cjs/vega-segment-control.cjs.entry.js +11 -4
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -6
- package/dist/cjs/vega-stepper.cjs.entry.js +7 -7
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +620 -661
- package/dist/cjs/vega-textarea.cjs.entry.js +7 -7
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +2 -2
- package/dist/cjs/vega.cjs.js +13 -12
- package/dist/cjs/{wait-for-component-did-render-44d006ee.js → wait-for-component-did-render-90edbc1a.js} +1 -1
- package/dist/collection/components/vega-button/vega-button.css +3 -3
- package/dist/collection/components/vega-button-circle/vega-button-circle.css +3 -3
- package/dist/collection/components/vega-button-link/vega-button-link.css +4 -4
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +45 -5
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +43 -1
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +23 -4
- package/dist/collection/components/vega-calendar/vega-calendar.js +77 -1
- package/dist/collection/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.js +6 -6
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +4 -8
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.js +8 -28
- package/dist/collection/components/vega-input-select/vega-input-select.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +18 -6
- package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.js +8 -1
- package/dist/collection/components/vega-segment-control/vega-segment-control.js +23 -0
- package/dist/collection/components/vega-table/slimmers/controllers/dto/column-render-input-model.js +25 -8
- package/dist/collection/components/vega-table/slimmers/controllers/dto/row-render-input-model.js +41 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.js +1 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +316 -18
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-renderer.js +6 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-header-renderer.js +1 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +33 -530
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +1 -0
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.css +10 -0
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +25 -8
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.js +14 -6
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +20 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.js +7 -0
- package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +21 -2
- package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.css +10 -0
- package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +12 -1
- package/dist/collection/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.js +20 -13
- package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.css +26 -0
- package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.js +12 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +10 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +19 -6
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +21 -46
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.css +16 -7
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +9 -2
- package/dist/collection/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.js +28 -13
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +26 -0
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +11 -0
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-border-tokens.js +1 -1
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-color-tokens.js +20 -20
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-ring-tokens.js +1 -1
- package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-shadow-tokens.js +1 -1
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-border-tokens.js +1 -1
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-color-tokens.js +19 -19
- package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-shadow-tokens.js +1 -1
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +8 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +10 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -1
- package/dist/collection/helpers/public-api.js +1 -0
- package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +8 -0
- package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +10 -0
- package/dist/collection/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.js +2 -0
- package/dist/collection/helpers/ui/element-appender.js +1 -0
- package/dist/esm/{action-color-accessibility-validator-08877515.js → action-color-accessibility-validator-3e824a59.js} +1 -1
- package/dist/esm/{app-globals-1e1371d5.js → app-globals-ad3c7cea.js} +15 -7
- package/dist/esm/{aria-dialog-focusable-trap-slimmer-b2a24a45.js → aria-dialog-focusable-trap-slimmer-27a6aa19.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-82626871.js → child-nodes-event-prevent-slimmer-0ebcbf47.js} +1 -1
- package/dist/esm/{code-block-741d6b8e.js → code-block-1cdf7a51.js} +793 -781
- package/dist/esm/{component-value-history-controller-slimmer.abstract-2bcd749e.js → component-value-history-controller-slimmer.abstract-bdeeb43f.js} +3 -3
- package/dist/esm/{content-state-2f6f4204.js → content-state-6eb610b8.js} +2 -2
- package/dist/esm/countries-50d3339b.js +249 -0
- package/dist/esm/{dark-mode-style-controller-352f15ff.js → dark-mode-style-controller-4e04a2d3.js} +45 -45
- package/dist/esm/{element-appender-slimmer-c820c0bf.js → element-appender-slimmer-dd4e2908.js} +20 -1
- package/dist/esm/{event-emit-slimmer-e8bb2292.js → event-emit-slimmer-12ee1593.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-02165dbe.js → form-field-controller-slimmer-5c794b4d.js} +2 -2
- package/dist/esm/{image-annotation-action-972c1074.js → image-annotation-action-cdd50dcc.js} +4 -4
- package/dist/esm/{image-extension-59484e9a.js → image-extension-f6dbd70c.js} +2 -2
- package/dist/esm/index.js +13 -12
- package/dist/esm/{internal-vega-event-manager-2ecc9186.js → internal-vega-event-manager-0c381f3b.js} +10 -2
- package/dist/esm/{link-extension-e89acb5c.js → link-extension-bc234cf7.js} +2 -2
- package/dist/esm/loader.js +13 -12
- package/dist/esm/{public-rules-c154201b.js → public-rules-8dc3fb00.js} +5 -5
- package/dist/esm/{range-c818a1eb.js → range-d2439ba7.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-878e91c6.js → rich-text-editor-required-rule-a0663a84.js} +1 -1
- package/dist/esm/{split-cell-operation-cc0cdf90.js → split-cell-operation-1a889fa0.js} +3 -3
- package/dist/esm/{string-input-formatter-slimmer-76fe52d3.js → string-input-formatter-slimmer-69887c40.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-e306c849.js → sub-state-notify-slimmer-ba72f30b.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-bd85f381.js → sub-state-observer-slimmer-bee1c7fa.js} +1 -1
- package/dist/esm/{token-extension-35c66684.js → token-extension-530d9bde.js} +9 -9
- package/dist/esm/vega-accordion.entry.js +3 -3
- package/dist/esm/vega-app-footer.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-brand-logo.entry.js +1 -1
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +6 -6
- package/dist/esm/vega-button-group_2.entry.js +7 -7
- package/dist/esm/vega-button-link.entry.js +5 -5
- package/dist/esm/vega-button.entry.js +6 -6
- package/dist/esm/vega-calendar_5.entry.js +122 -16
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +7 -7
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-code-block.entry.js +9 -9
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
- package/dist/esm/vega-color-swatch.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +7 -7
- package/dist/esm/vega-date-picker_2.entry.js +11 -11
- package/dist/esm/vega-dialog_2.entry.js +6 -6
- package/dist/esm/vega-dropdown_5.entry.js +9 -9
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-f55f6977.js → vega-event-id-59cd9297.js} +2 -1
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +6 -6
- package/dist/esm/vega-form.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +8 -8
- package/dist/esm/vega-input-credit-card.entry.js +7 -7
- package/dist/esm/vega-input-numeric.entry.js +8 -8
- package/dist/esm/vega-input-passcode.entry.js +7 -7
- package/dist/esm/vega-input-phone-number.entry.js +13 -266
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +17 -34
- package/dist/esm/vega-input.entry.js +8 -8
- package/dist/esm/{vega-internal-event-id-86fce049.js → vega-internal-event-id-02093067.js} +4 -2
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +7 -7
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +5 -5
- package/dist/esm/vega-popover_2.entry.js +6 -6
- package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +7 -7
- package/dist/esm/vega-rich-text-content.entry.js +9 -9
- package/dist/esm/vega-rich-text-editor_4.entry.js +18 -18
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +3 -3
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +3 -3
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +8 -8
- package/dist/esm/vega-segment-control.entry.js +11 -4
- package/dist/esm/vega-selection-chip_2.entry.js +8 -8
- package/dist/esm/vega-selection-tile_2.entry.js +8 -8
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +6 -6
- package/dist/esm/vega-stepper.entry.js +7 -7
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +620 -661
- package/dist/esm/vega-textarea.entry.js +7 -7
- package/dist/esm/vega-time-picker_2.entry.js +8 -8
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +2 -2
- package/dist/esm/vega.js +13 -12
- package/dist/esm/{wait-for-component-did-render-9b91a826.js → wait-for-component-did-render-9e84d92d.js} +1 -1
- package/dist/sri/vega-sri-manifest.json +308 -304
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +18 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.d.ts +9 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +9 -1
- package/dist/types/components/vega-calendar/types.d.ts +22 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +23 -1
- package/dist/types/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.d.ts +2 -2
- package/dist/types/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.d.ts +0 -1
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.d.ts +2 -14
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +11 -1
- package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.d.ts +1 -0
- package/dist/types/components/vega-segment-control/types.d.ts +2 -0
- package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +7 -1
- package/dist/types/components/vega-table/slimmers/controllers/dto/column-render-input-model.d.ts +17 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/row-render-input-model.d.ts +39 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +71 -7
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +3 -88
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.d.ts +1 -1
- package/dist/types/components/vega-table/vega-table-expand-row/vega-table-expand-row.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.d.ts +1 -3
- package/dist/types/components/vega-table/vega-table-foot-row/vega-table-foot-row.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +0 -4
- package/dist/types/components/vega-table/vega-table-head-row/vega-table-head-row.d.ts +2 -2
- package/dist/types/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.d.ts +2 -3
- package/dist/types/components/vega-table/vega-table-row/vega-table-row.d.ts +4 -0
- package/dist/types/components.d.ts +33 -2
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -1
- package/dist/types/helpers/public-api.d.ts +1 -0
- package/dist/types/helpers/slimmers/position-calculation/position-calculation-controller.d.ts +6 -0
- package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +6 -0
- package/dist/types/helpers/slimmers/position-calculation/screen-scroll-position-update.d.ts +2 -1
- package/dist/types/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.d.ts +2 -1
- package/dist/types/types/components.type.d.ts +7 -1
- package/dist/types/types/public-api.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-85de755f.js → p-022cbf8a.js} +1 -1
- package/dist/vega/{p-284a8828.entry.js → p-02c1284e.entry.js} +1 -1
- package/dist/vega/{p-a488447f.js → p-069bbb4a.js} +1 -1
- package/dist/vega/{p-9efa5d76.js → p-08fd229c.js} +1 -1
- package/dist/vega/{p-e11c6ec4.entry.js → p-131ce9df.entry.js} +1 -1
- package/dist/vega/{p-bedb575c.entry.js → p-143ee395.entry.js} +1 -1
- package/dist/vega/p-178634f3.js +1 -0
- package/dist/vega/{p-9e9f49f4.js → p-1836a6a5.js} +1 -1
- package/dist/vega/p-1dbf8d1f.js +1 -0
- package/dist/vega/p-2dda5c65.entry.js +1 -0
- package/dist/vega/{p-3abb793c.entry.js → p-30010c41.entry.js} +1 -1
- package/dist/vega/p-32f5a6dd.entry.js +1 -0
- package/dist/vega/{p-7ddc0bec.entry.js → p-3460a1c5.entry.js} +1 -1
- package/dist/vega/{p-b07f587a.entry.js → p-34b523da.entry.js} +1 -1
- package/dist/vega/{p-5b9b1631.entry.js → p-357c0226.entry.js} +1 -1
- package/dist/vega/p-361f8996.js +1 -0
- package/dist/vega/p-36ee9d54.js +1 -0
- package/dist/vega/{p-2c8dc0d2.entry.js → p-37d5c37e.entry.js} +1 -1
- package/dist/vega/{p-3f2a4b34.entry.js → p-45ad2d90.entry.js} +1 -1
- package/dist/vega/{p-5d9be870.entry.js → p-4b117bfd.entry.js} +1 -1
- package/dist/vega/p-4e70836a.entry.js +1 -0
- package/dist/vega/{p-8fc0a820.js → p-4ea477d5.js} +1 -1
- package/dist/vega/{p-cd0a108b.entry.js → p-50e8e24f.entry.js} +1 -1
- package/dist/vega/{p-7e22610b.entry.js → p-522a6eec.entry.js} +1 -1
- package/dist/vega/p-53e3f259.js +1 -0
- package/dist/vega/{p-2c737fc8.js → p-5536146c.js} +1 -1
- package/dist/vega/{p-5789690b.entry.js → p-55c2c0df.entry.js} +1 -1
- package/dist/vega/p-587130f6.entry.js +1 -0
- package/dist/vega/{p-379736e2.js → p-58c8a4ac.js} +1 -1
- package/dist/vega/{p-c422ee02.entry.js → p-5c17ddda.entry.js} +1 -1
- package/dist/vega/{p-ea1a0046.entry.js → p-5c9c0c0d.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-60010f14.entry.js +1 -0
- package/dist/vega/p-6098c4bb.js +1 -0
- package/dist/vega/{p-debf9e06.entry.js → p-61e63c0e.entry.js} +1 -1
- package/dist/vega/{p-7469d0d1.entry.js → p-62254dc7.entry.js} +1 -1
- package/dist/vega/{p-7a03ef96.entry.js → p-62ae9327.entry.js} +1 -1
- package/dist/vega/p-66245bc0.entry.js +1 -0
- package/dist/vega/{p-46f22f6c.entry.js → p-68ca8d3c.entry.js} +1 -1
- package/dist/vega/p-6a6c1279.js +1 -0
- package/dist/vega/{p-61ed7268.entry.js → p-6ae93679.entry.js} +1 -1
- package/dist/vega/{p-c7d46740.entry.js → p-6d90d28d.entry.js} +1 -1
- package/dist/vega/{p-6fd8f14b.js → p-6fae6768.js} +1 -1
- package/dist/vega/{p-8cfdd0e8.entry.js → p-71813a9e.entry.js} +1 -1
- package/dist/vega/{p-816b5fd2.entry.js → p-729529d6.entry.js} +1 -1
- package/dist/vega/{p-7ae4cf82.entry.js → p-75bfbffe.entry.js} +1 -1
- package/dist/vega/{p-bfe5dff7.entry.js → p-764b4e51.entry.js} +1 -1
- package/dist/vega/{p-5c3649f9.js → p-7d3419c7.js} +1 -1
- package/dist/vega/{p-a48468b5.entry.js → p-8e8b5790.entry.js} +1 -1
- package/dist/vega/{p-bc0e5598.entry.js → p-9236b8d9.entry.js} +1 -1
- package/dist/vega/p-9402f32f.js +1 -0
- package/dist/vega/{p-02b5d4ac.entry.js → p-942f9ea6.entry.js} +1 -1
- package/dist/vega/{p-c032f626.entry.js → p-9fdf66a8.entry.js} +1 -1
- package/dist/vega/{p-edd7aa92.entry.js → p-a2c45173.entry.js} +1 -1
- package/dist/vega/{p-ab253867.entry.js → p-a54ed341.entry.js} +1 -1
- package/dist/vega/{p-0f344e02.entry.js → p-a8a246e8.entry.js} +1 -1
- package/dist/vega/{p-bc119e75.entry.js → p-af0e9bd5.entry.js} +1 -1
- package/dist/vega/p-b1557bbe.js +1 -0
- package/dist/vega/p-b94f164a.entry.js +1 -0
- package/dist/vega/{p-01ca92e6.entry.js → p-bbfffe6b.entry.js} +1 -1
- package/dist/vega/{p-5006404e.entry.js → p-beccc38c.entry.js} +1 -1
- package/dist/vega/{p-b52d7724.js → p-c51de680.js} +1 -1
- package/dist/vega/{p-fe985b52.js → p-c601eea6.js} +1 -1
- package/dist/vega/{p-d340ee3d.entry.js → p-c6d2513c.entry.js} +1 -1
- package/dist/vega/{p-4d1896e0.entry.js → p-ca6bd3a0.entry.js} +1 -1
- package/dist/vega/{p-411cadbc.entry.js → p-cab890be.entry.js} +1 -1
- package/dist/vega/p-cb1cd15f.entry.js +1 -0
- package/dist/vega/p-d1f47512.js +1 -0
- package/dist/vega/{p-23db0a92.entry.js → p-d37d2ea4.entry.js} +1 -1
- package/dist/vega/{p-76999ea1.entry.js → p-d3e99d4a.entry.js} +1 -1
- package/dist/vega/{p-7cc8855d.entry.js → p-d6bd3ce4.entry.js} +1 -1
- package/dist/vega/{p-cd04b149.entry.js → p-d7838f6e.entry.js} +1 -1
- package/dist/vega/{p-79b49e8d.entry.js → p-d8c9ea46.entry.js} +1 -1
- package/dist/vega/p-d9588b3f.entry.js +1 -0
- package/dist/vega/{p-74b20563.entry.js → p-db69a5c9.entry.js} +1 -1
- package/dist/vega/{p-9ba2fdff.js → p-de1d0284.js} +1 -1
- package/dist/vega/{p-e0a51e49.js → p-de6fc52c.js} +1 -1
- package/dist/vega/{p-efc08027.entry.js → p-e48b7a8a.entry.js} +1 -1
- package/dist/vega/{p-d897acd5.js → p-e6f67a44.js} +1 -1
- package/dist/vega/{p-844ad6aa.entry.js → p-e8e3bf74.entry.js} +1 -1
- package/dist/vega/p-eadc10bc.entry.js +1 -0
- package/dist/vega/p-ee329596.entry.js +1 -0
- package/dist/vega/p-f01bc6a2.js +1 -0
- package/dist/vega/p-f324e90e.js +1 -0
- package/dist/vega/{p-493108d5.js → p-f48519d2.js} +1 -1
- package/dist/vega/{p-35d37477.entry.js → p-f8d13d01.entry.js} +1 -1
- package/dist/vega/{p-aaaf21eb.entry.js → p-f99f054c.entry.js} +1 -1
- package/dist/vega/{p-49de5559.entry.js → p-fe41e3b6.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-06a42a9f.entry.js +0 -1
- package/dist/vega/p-0cd362f3.entry.js +0 -1
- package/dist/vega/p-0e10798b.entry.js +0 -1
- package/dist/vega/p-401c6764.js +0 -1
- package/dist/vega/p-4a2fe3a4.js +0 -1
- package/dist/vega/p-5447a8e8.js +0 -1
- package/dist/vega/p-5a086e93.js +0 -1
- package/dist/vega/p-5b3c8a56.js +0 -1
- package/dist/vega/p-6336d446.entry.js +0 -1
- package/dist/vega/p-7f395622.entry.js +0 -1
- package/dist/vega/p-8663314e.js +0 -1
- package/dist/vega/p-86fb46d2.entry.js +0 -1
- package/dist/vega/p-8c30a60d.js +0 -1
- package/dist/vega/p-9034f709.js +0 -1
- package/dist/vega/p-a306bb39.js +0 -1
- package/dist/vega/p-a647c856.entry.js +0 -1
- package/dist/vega/p-a92cd703.js +0 -1
- package/dist/vega/p-ad367b48.entry.js +0 -1
- package/dist/vega/p-d1bb6e7a.entry.js +0 -1
- package/dist/vega/p-e5abc288.entry.js +0 -1
- package/dist/vega/p-ef1bbf14.js +0 -1
- package/dist/vega/p-f8bf379c.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-36a57431.js";import{e as s,f as n}from"./p-53e3f259.js";import{d as r,c as i}from"./p-02841589.js";import{L as o}from"./p-6e1ab235.js";import{i as c}from"./p-941a83db.js";import{T as a}from"./p-b438e68b.js";import{g as l}from"./p-8b5d3a52.js";import{V as u}from"./p-d1f47512.js";import{c as h}from"./p-a841cf13.js";import{f as d}from"./p-aa135628.js";var f,p;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(f||(f={}));class w{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(p||(p={}));class g extends w{}const m=new class{constructor(){this.domToEntity=new WeakMap,this.entityToDOM=new WeakMap,this.contentEntityToRootDom=new Map,this.rootDomToContentEntity=new WeakMap}register(t,e){this.isVegaRTEContent(e)?this.registerRootDomAndContentEntity(t,e):(this.domToEntity.set(t,e),this.entityToDOM.set(e,t))}getEntityByDOM(t){return this.domToEntity.get(t)}getDOMByEntity(t){return this.isVegaRTEContent(t)?this.contentEntityToRootDom.get(t):this.entityToDOM.get(t)}removeDirtyDomRef(t){this.domToEntity.delete(t)}registerRootDomAndContentEntity(t,e){const s=this.rootDomToContentEntity.get(t);s&&s!==e&&this.contentEntityToRootDom.delete(s),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.dtoName}};var x,S,A,y;!function(t){t.DELETE_CHILDREN="DELETE_CHILDREN",t.DELETE_NEST_LIST="DELETE_NEST_LIST",t.UPDATE_TEXT="UPDATE_TEXT",t.REPLACE_SELECTED_TEXT="REPLACE_SELECTED_TEXT",t.APPEND_CHILDREN="APPEND_CHILDREN",t.INSERT_CHILDREN_AFTER="INSERT_CHILDREN_AFTER",t.INSERT_CHILDREN_BEFORE="INSERT_CHILDREN_BEFORE",t.SPLIT_BLOCK_WITH_NODE="SPLIT_BLOCK_WITH_NODE",t.REPLACE_CHILD_NODES="REPLACE_CHILD_NODES",t.REPLACE_NEST_LIST="REPLACE_NEST_LIST",t.MERGE_TWO_BLOCKS_NODES="MERGE_TWO_BLOCKS_NODES",t.INSERT_NEW_PARAGRAPH="INSERT_NEW_PARAGRAPH",t.LINE_BREAK_SINGLE_BLOCK="LINE_BREAK_SINGLE_BLOCK",t.LINE_BREAK_MULTIPLE_BLOCKS="LINE_BREAK_MULTIPLE_BLOCKS",t.TRANSFORM_LIST_BLOCK="TRANSFORM_LIST_BLOCK",t.TRANSFORM_PARAGRAPH_BLOCK="TRANSFORM_PARAGRAPH_BLOCK",t.NEST_LIST_ITEMS="NEST_LIST_ITEMS",t.UNNEST_LIST_ITEMS="UNNEST_LIST_ITEMS",t.DELETE_BLOCK_CONTENT="DELETE_BLOCK_CONTENT",t.INSERT_IMAGE_TO_BLOCK="INSERT_IMAGE_TO_BLOCK",t.UPDATE_IMAGE_NODE_URL="UPDATE_IMAGE_NODE_URL",t.TRANSFORM_TO_CODE_BLOCK="TRANSFORM_TO_CODE_BLOCK",t.UPDATE_CODE_BLOCK="UPDATE_CODE_BLOCK",t.SWITCH_OUT_FROM_CODE_BLOCK="SWITCH_OUT_FROM_CODE_BLOCK",t.DELETE_CODE_BLOCK="DELETE_CODE_BLOCK",t.UNLINK_LINK_GROUP="UNLINK_LINK_GROUP",t.LINK_GROUP_NODE_SPLIT="LINK_GROUP_NODE_SPLIT",t.DELETE_LINK_GROUP="DELETE_LINK_GROUP",t.UPDATE_CURSOR_POSITION="UPDATE_CURSOR_POSITION",t.INSERT_TEXT_TO_DECORATOR_NODE="INSERT_TEXT_TO_DECORATOR_NODE",t.INSERT_NODE_TO_NEAREST_ROOT="INSERT_NODE_TO_NEAREST_ROOT",t.PASTE_CONTENT="PASTE_CONTENT",t.DELETE_SELECTED_CONTENT="DELETE_SELECTED_CONTENT"}(x||(x={}));class O{constructor(){this.isFlushable=!1}}function T(t){const e={},s=t.getAttribute("style");if(!s)return e;const n=function(t){const e=[];let s="",n=0;for(let r=0;r<t.length;r++){const i=t[r];"("===i?(n++,s+=i):")"===i?(n--,s+=i):";"===i&&0===n?(e.push(s),s=""):s+=i}return s&&e.push(s),e}(s);for(const t of n){const s=t.trim(),n=s.indexOf(":"),i=s.substring(0,n).trim(),o=s.substring(n+1).trim();e[r(i)]=o}return e}function E(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function v(t){return E(t).replace(/"/g,""").replace(/'/g,"'")}function N(t){return t.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]+|#[0-9]+|#x[a-fA-F0-9]+);)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}class b{constructor(){this.classNameToBeAdded=""}filterAnnotations(t){const e=t.customStyle;return e?(this.extractAndDeleteMatchedStyles(e),0===Object.keys(e).length&&delete t.customStyle,t):t}filterAndDeleteStyles(t,e,s){const n=new Set(e);return this.extractAndDeleteMatchedStyles(t)&&this.classNameToBeAdded&&n.add(this.classNameToBeAdded),{styles:t,classNames:Array.from(n)}}refillStyles(t){this.classNameToBeAdded&&t.classList.remove(this.classNameToBeAdded);const e=T(t),s=Object.assign(Object.assign({},this.stylesToBeFiltered),e),n=Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("");t.setAttribute("style",n)}canFilter(t){return!1}canRefill(t,e){return!1}toCssText(){return""}get alwaysFilter(){return!1}extractAndDeleteMatchedStyles(t){let e=!1;const s=this.stylesToBeFiltered;if(t&&s){const n=Object.keys(s);for(const r of n)t[r]===s[r]&&(delete t[r],e=!0)}return e}buildCssTextForStyles(t,e){return`${`.${b.RTE_CONTENT_CONTAINER_CLASS_NAME}`+(e?` .${e}`:` ${t}`)} { ${Object.entries(this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")} }`}convertStylesMapToCssText(t){return Object.entries(t||this.stylesToBeFiltered).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}isBlockOrNodeStylesMatchFilterStyles(t,e){const s=t.getStyles({standalone:!0});return this.isMatchFilterStyles(s,e)}isMatchFilterStyles(t,e){return(e&&e.length>0?e:Object.keys(this.stylesToBeFiltered)).every((e=>t[e]===this.stylesToBeFiltered[e]))}}b.RTE_CONTENT_CONTAINER_CLASS_NAME="vega-rte-content",function(t){t.BOLD="BOLD",t.ITALIC="ITALIC",t.UNDERLINE="UNDERLINE",t.STRIKETHROUGH="STRIKETHROUGH",t.SELECTION_RANGE="SELECTION_RANGE",t.IMAGE="IMAGE",t.CODE="CODE",t.TEXT_COLOR="TEXT_COLOR",t.LINK="LINK",t.INLINE_HTML="INLINE_HTML",t.PLAIN_TEXT="PLAIN_TEXT"}(S||(S={}));class C extends w{}class L{static isTextBlock(t){return t===this.RTE_TEXT_BLOCK_CLASS_NAME}static isCodeBlock(t){return"RTECodeBlock"===t}static isListBlock(t){return"RTEListBlock"===t}static isListItemBlock(t){return"RTEListItemBlock"===t}static isTextNode(t){return t===this.RTE_TEXT_NODE_CLASS_NAME}static isLinkNode(t){return this.isTextNode(t.dtoName)&&!!t.getAnnotationByType(S.LINK)}static isCodeNode(t){if(this.isTextNode(t.dtoName)){const e=t.getAnnotationByType(S.CODE);return!!e&&e.code}return!1}static isImageNode(t){return"RTEImageNode"===t.dtoName}static isCodeBlockNode(t){return"RTECodeBlockNode"===t.dtoName}}L.RTE_TEXT_NODE_CLASS_NAME="RTETextNode",L.RTE_TEXT_BLOCK_CLASS_NAME="RTETextBlock";class R extends b{constructor(){super(...arguments),this.stylesToBeFiltered=k.getDefaultStyles(),this.elementTagName="a"}filterAnnotations(t){const e=t.link;return(null==e?void 0:e.customStyle)?(this.extractAndDeleteMatchedStyles(e.customStyle),0===Object.keys(e.customStyle).length&&delete e.customStyle,t):t}canFilter(t){return L.isLinkNode(t)}canRefill(t,e){return"RTETextNode"===t&&e.matches(this.elementTagName)}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}filterLinkGroupInlineStyles(t){const e=t.style,s=t.class?t.class.split(" "):[],n=this.filterAndDeleteStyles(e,s);return n.styles&&Object.keys(n.styles).length>0&&(t.style=n.styles),n.classNames&&n.classNames.length>0&&(t.class=n.classNames.join(" ")),t.style&&0===Object.keys(t.style).length&&delete t.style,t}}class k extends w{constructor(t){super(),this.type=f.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}static getDefaultStyles(){return{color:"rgba(var(--v-text-link, 19, 98, 226, 1))"}}clone(){const t=new k("");return this.linkGroups.forEach(((e,s)=>{t.linkGroups.set(s,e.map((t=>t.clone(t.parent))))})),t}toString(t,e){let s=this.toJsx(t,e);return(null==e?void 0:e.filterInlineStyles)&&(s=k.linkGroupFilterStylesStrategy.filterLinkGroupInlineStyles(s)),Object.entries(s).map((([t,e])=>{const s="string"==typeof e?e:this.formatStyleToString(e);return`${i(t)}="${s}"`})).join(" ")}toJsx(t,e){const s=this.getStyle(t,e),n=this.getClass(t,e),r=this.getAttribute(t);return n.length>0&&(r.class=n.join(" ")),s&&Object.keys(s).length>0&&(r.style=s),r}getClass(t,e){const s=[];return t.link.customClass&&s.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&s.push("v-rte--link"),s}getStyle(t,e){const s={};return t.link.customStyle&&Object.assign(s,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&Object.assign(s,k.getDefaultStyles()),s}getAttribute(t){const{href:e,customAttribute:s={}}=t.link,n=t.useInternalStyle,r=s.target||(n?"_blank":"");return Object.assign(Object.assign(Object.assign({},s),e||n?{href:e}:{}),r?{target:r}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${i(t)}: ${e};`)).join(" ")}}k.linkGroupFilterStylesStrategy=new R;class j extends g{constructor(t){super(),this.type=p.ALIGNMENT,this.textAlign=t}static from(t){return[p.ALIGNMENT,new j(t)]}static getDefaultStyles(t){switch(t){case"right":case"center":case"justify":return{textAlign:t};case"left":default:return{textAlign:"left"}}}toJSON(){return{textAlign:this.textAlign}}renderClass(t){if(null==t?void 0:t.standalone)return null;switch(this.textAlign){case"right":case"center":case"justify":return`v-rte--horizontal-alignment-${this.textAlign}`;case"left":default:return"v-rte--horizontal-alignment-left"}}clone(){return new j(this.textAlign)}renderStyle(t){return(null==t?void 0:t.standalone)?j.getDefaultStyles(this.textAlign):null}}class _ extends g{constructor(t){super(),this.type=p.INDENT,this.indent=Math.max(0,t)}static from(t){return[p.INDENT,new _(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new _(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class ${static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).has(t)||this.registry.get(e).set(t,new Set),this.registry.get(e).get(t).add(s)}static unregister(t,e,s){const n=this.registry.get(e);if(n){const e=n.get(t);e&&e.delete(s)}}static get(t,e){const s=t instanceof O?t.type:t.constructor.name,n=this.registry.get(e.constructor.name);if(n){const r=n.get(s);if(r&&r.size>0)return Array.from(r).find((s=>s.canIntercept(t,e)))}}}$.registry=new Map;class I{static register(t,e,s){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,s)}static unregister(t,e){const s=this.registry.get(e);s&&s.delete(t)}static get(t,e){const s=this.registry.get(e);if(s)return s.get(t)}static executeTheStrategy(t,e){const s=$.get(t,e),n=()=>{const s=t instanceof O?t.type:t.constructor.name,n=I.get(s,e.constructor.name);if(n)return t.executedFlag=!0,n.execute(t,e);o.warn(`Type ${s} action handle strategy is not registered in class ${e.constructor.name}`)};return s?s.intercept(n,t,e):n()}static canHandle(t,e){return!!I.get(t,e.constructor.name)}}I.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(A||(A={}));class B extends w{}class D extends B{constructor(t){super(),this.type=A.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[A.CUSTOM_ATTRIBUTE,new D(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new D(this.customAttribute)}toString(t=[]){const e=t.map((t=>t.split("=")[0]));return Object.keys(this.customAttribute).map((t=>e.includes(t)?null:`${t}="${this.customAttribute[t]}"`)).filter(c)}render(t={}){var e;const s=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete s[t])),Object.keys(s).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===s[t]&&(s[t]="true")})),s}}class M extends B{constructor(t){super(),this.type=A.CUSTOM_CLASS,this.customClass=t}static from(t){return[A.CUSTOM_CLASS,new M(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new M(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class P extends B{constructor(t){super(),this.type=A.CUSTOM_STYLE,this.customStyle=t}static from(t){return[A.CUSTOM_STYLE,new P(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new P(this.customStyle)}renderStyle(){return this.customStyle}removeStyles(t){const e=Object.assign({},this.customStyle);return t.forEach((t=>delete e[t])),e}toString(){return`style="${N(Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" "))}"`}}class F extends g{constructor(t){super(),this.type=p.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[p.INTERNAL_WRAPPER,new F(t)]}clone(){return new F(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class H{constructor(t){this.dtoName=t instanceof W?"block":"node",this.annotationMap=t.annotationMap}toCssText(t={standalone:!1},e,s){return s=s||this.toJSON(t,e),Object.entries(Object.assign({},s)).map((([t,e])=>`${i(t)}: ${e};`)).join("")}toJSON(t={standalone:!1},e){const s=Array.from(this.annotationMap.values()).filter((t=>this.filterAnnotation(t)||t instanceof P)).map((e=>e.renderStyle(t))).filter(c);return e&&e.length>0?this.mergeAnnotationStyles(s,e):s.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})}filterAnnotation(t){return"block"===this.dtoName?t instanceof g:t instanceof C}mergeAnnotationStyles(t,e){const s={};for(const n of t)for(const t in n){const r=n[t],i=s[t];s[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return s}}class J{static register(t,e){var s;const n=null!==(s=this.registry.get(t))&&void 0!==s?s:new Set;n.add(e),this.registry.set(t,n)}static getStrategies(t){var e;return Array.from(null!==(e=this.registry.get(t))&&void 0!==e?e:[])}static executeTheStrategyFilterAction(t,e,s){return this.getStrategies(t.dtoName).filter((e=>e.canFilter(t))).reduce(((e,s)=>s.filterAndDeleteStyles(e.styles,e.classNames,t)),{styles:e,classNames:s})}static executeTheStrategyRefillAction(t,e){this.getStrategies(t).filter((s=>s.canRefill(t,e))).forEach((t=>{t.refillStyles(e)}))}static generateAllStylesContent(t=!1){const e=[];return t&&(e.push("/* Font-face imports begin */\n"),e.push(Object.keys(a).map((t=>`@import url('${a[t].url}');\n`)).join(" ")),e.push("/* Font-face imports end */\n")),this.registry.forEach((t=>{t.forEach((t=>{const s=t.toCssText();s&&!e.includes(s)&&e.push(s)}))})),e.join(" ")}}J.registry=new Map,function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(y||(y={}));class K{constructor(t,e){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t,e&&(this.annotationMap=e)}static from(t,e,s){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${s}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return P.from(e)}}getAnnotationByType(t){return this.annotationMap.get(t)}deleteAnnotationByType(t){this.annotationMap.delete(t),this.flushChange()}apply(t){return this.doApply(t),t.isFlushable&&this.flushChange(),this}getStyles(t={standalone:!1}){return new H(this).toJSON(t,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof C||t instanceof M)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}getPlainText(){return""}getElementRef(){return m.getDOMByEntity(this)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0},["textDecoration"]),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=J.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${N(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}}const U=new class{constructor(){this.RTE_BLOCK_DTO_CLASS_MAP=new Map,this.RTE_NODE_DTO_CLASS_MAP=new Map}registerRTEDTOClass(t,e){if(e.prototype instanceof W)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof K))throw new Error(`Invalid RTE DTO class type: ${t}`);this.RTE_NODE_DTO_CLASS_MAP.set(t,e)}}getRTEBlockClass(t){return this.RTE_BLOCK_DTO_CLASS_MAP.get(t)}getRTENodeClass(t){return this.RTE_NODE_DTO_CLASS_MAP.get(t)}};class W{constructor(t){this.annotationMap=new Map,this.dtoName=this.constructor.name,this.id=t}static from(t,e){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}) is not implemented. Please implement this method in the subclass.`)}static generateBlockChildren(t,e,s){return t.map((t=>{const n=U.getRTEBlockClass(t.type);if(n){const r=n.from(t,e);return r.parent=s,r}})).filter(c)}static createAnnotationEntity(t,e){switch(t){case"textAlign":return j.from(e);case"indent":return _.from(e);case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return P.from(e);case"internalWrapper":return F.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,s])=>{const n=this.createAnnotationEntity(e,s);c(n)&&t.set(...n)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(p.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof k||t instanceof F))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof B)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{})}getAnnotationByType(t){return this.annotationMap.get(t)}apply(n){if(this.doApply(n),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}allowsCaretDescend(){return!0}getFirstNode(){if(!this.children||!this.children[0])return null;const t=this.children[0];return t instanceof W?t.getFirstNode():t}getPlainText(){var t;return(null!==(t=this.children)&&void 0!==t?t:[]).map((t=>t.getPlainText())).join("")}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){const e=new H(this).toJSON(t);return Object.assign(Object.assign({},e),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof g||t instanceof M)).map((e=>e.renderClass(t))).filter(c).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(A.CUSTOM_ATTRIBUTE)}generateAttributeString(t,...e){var s;const n=new H(this),r=n.toJSON({standalone:!0}),i=this.annotationMap.get(A.CUSTOM_CLASS);let o=r,a=null==i?void 0:i.renderClass();if(t&&t.filterInlineStyles){const t=J.executeTheStrategyFilterAction(this,r,a);o=t.styles,a=t.classNames}const l=[...(null===(s=this.getCustomAttributesAnnotation())||void 0===s?void 0:s.toString(e))||[],a&&a.length>0?`class="${a.join(" ")}"`:null,o&&Object.keys(o).length>0?`style="${N(n.toCssText({standalone:!0},void 0,o))}"`:null,...e].filter(c);return l.length?` ${l.join(" ")}`:""}doApply(t){t instanceof O?I.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();if(e instanceof k||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply)this.doAnnotationActionApply(t);else{const e=I.get(t.constructor.name,this.constructor.name);e&&e.execute(t,this)}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}class z extends O{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}const G="500",V={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",minHeight:"22px",fontWeight:"500"},X=Object.assign(Object.assign({},V),{marginTop:"0px",marginBottom:"0px"}),q={paragraph:X,title:Object.assign(Object.assign({},V),{fontSize:"36px",lineHeight:"40px",minHeight:"40px"}),subtitle:Object.assign(Object.assign({},V),{fontSize:"28px",lineHeight:"32px",minHeight:"32px"}),"heading-1":Object.assign(Object.assign({},X),{fontSize:"22px",lineHeight:"24px",minHeight:"24px"}),"heading-2":Object.assign(Object.assign({},X),{fontSize:"20px",lineHeight:"24px",minHeight:"24px"}),"heading-3":Object.assign(Object.assign({},X),{fontSize:"18px"}),"heading-4":Object.assign({},X),"heading-5":Object.assign(Object.assign({},X),{fontSize:"14px"}),"heading-6":Object.assign(Object.assign({},X),{fontSize:"12px"})};class Y extends g{constructor(t){super(),this.type=p.TEXT_STYLE,this.textStyle=t}static from(t){return[p.TEXT_STYLE,new Y(t)]}static getDefaultStyles(t){return t?q[t]:null}toJSON(){return{textStyle:this.textStyle}}clone(){return new Y(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.textStyle?Y.getDefaultStyles(this.textStyle):null}}class Z{}class Q extends Z{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new Y(this.textStyle)}}class tt extends C{constructor(t,e=!0){super(),this.type=S.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[S.LINK,new tt(t,e)]}toJSON(){return{link:this.link}}clone(){return new tt(this.link,this.useInternalStyle)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class et extends Z{constructor(){super(...arguments),this.doSplit=!0}}class st extends et{constructor({link:t,newText:e,needMergeNode:s,doSplit:n,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=s,this.newText=e,this.type=r,c(n)&&(this.doSplit=n)}toAnnotation(){return new tt(this.link)}}class nt extends Z{constructor(t,e,s){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=s}toAnnotation(){return new k(this.groupKey)}}const rt="700",it="bold",ot="italic",ct="underline",at="line-through";class lt extends C{constructor(t){super(),this.type=S.BOLD,this.bold=t}static from(t){return[S.BOLD,new lt(t)]}toJSON(){return{bold:this.bold}}clone(){return new lt(this.bold)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.bold?"v-rte--bold":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.bold?{fontWeight:"700"}:null}}class ut extends et{constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new lt(this.bold)}}class ht extends Z{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class dt{execute(t,e){return o.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const s=t.annotationMap.get(A.CUSTOM_STYLE);s&&this.isCustomStyle(s,e)&&t.annotationMap.set(s.type,new P(s.removeStyles(e)))}createNewParagraph(t){const e=U.getRTEBlockClass("paragraph");if(e)return e.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.dtoName?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,s){return e===t.children[0]&&0===s}isCaretPositionAtBlockEnd(t,e,s){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,s):this.isCaretPositionAtDecoratorBlockEnd(t,e,s)}getDOMByEntity(t){return m.getDOMByEntity(t)}isCaretPositionAtTextBlockEnd(t,e,s){const n=t.children[t.children.length-1];return e===n&&(e.isEmpty()||s===n.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,s){return e===t.children[t.children.length-1]&&0!==s}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class ft extends dt{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new ut(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new ht(S.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}class pt extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class wt extends O{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class gt extends dt{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,s){if(t){const n=t.text.slice(0,e),r=t.text.slice(e),i=s.children.indexOf(t);if(i>-1){const o=s.children.slice(0,i),c=s.children.slice(i+1);t.isContentEditable()?(n&&o.push(t.cloneWithText(n)),r&&c.unshift(t.cloneWithText(r))):e>0?o.push(t):c.unshift(t),s.apply(new wt(o));const a=s.cloneWithNodes(c);return s.parent.apply(new pt(s,a)),a}}}}class mt extends dt{handleAction(t,e){e.children=[],e.apply(new z(t.newChildNodes))}}class xt extends O{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class St extends w{constructor(t){super(),this.type=f.SELECTION_RANGE,this.range=t}clone(){return new St(this.range)}}class At extends C{constructor(t){super(),this.type=S.STRIKETHROUGH,this.strikethrough=t}static from(t){return[S.STRIKETHROUGH,new At(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new At(this.strikethrough)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.strikethrough?"v-rte--strikethrough":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.strikethrough?{textDecoration:"line-through"}:null}}class yt extends C{constructor(t){super(),this.type=S.UNDERLINE,this.underline=t}static from(t){return[S.UNDERLINE,new yt(t)]}toJSON(){return{underline:this.underline}}clone(){return new yt(this.underline)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.underline?"v-rte--underline":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.underline?{textDecoration:"underline"}:null}}class Ot extends C{constructor(t){super(),this.type=S.ITALIC,this.italic=t}static from(t){return[S.ITALIC,new Ot(t)]}toJSON(){return{italic:this.italic}}clone(){return new Ot(this.italic)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.italic?"v-rte--italic":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.italic?{fontStyle:"italic"}:null}}class Tt extends C{constructor(t,e=!0){super(),this.type=S.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[S.CODE,new Tt(t,e)]}static getDefaultStyles(){return{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}}toJSON(){return{code:this.code}}clone(){return new Tt(this.code,this.useInternalStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.code&&this.useInternalStyle?"v-rte--code":null}renderStyle(t){return(null==t?void 0:t.standalone)&&this.code&&this.useInternalStyle?Tt.getDefaultStyles():null}}const Et={key:"black",light:"#111128",dark:"#E3E3E8"},vt=[Et,{key:"gray",light:"#5E5E6D",dark:"#B9B9C1"},{key:"green",light:"#01801F",dark:"#59D977"},{key:"red",light:"#BD2947",dark:"#FFB2B5"},{key:"purple",light:"#563D82",dark:"#BEB2FF"},{key:"teal",light:"#17758F",dark:"#4CD8FF"}],Nt="";var bt;!function(t){t.Default="default",t.Composition="composition"}(bt||(bt={}));const Ct="__updateSource",Lt=[{key:"title"},{key:"subtitle"},{key:"heading-1"},{key:"heading-2"},{key:"heading-3"},{key:"paragraph"}],Rt=[["textStyles"],["bold","italic","underline","strikethrough","code"],["textColor"],["horizontalAlignment","bulletsNumbers"],["moreIndent","lessIndent"],["link"],["image"],["clearStyle"]],kt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),jt=22,_t="url",$t="email",It=["url","email"],Bt="data-vega-rte-block-boundary",Dt="application/x-vega-rte-paste-mode",Mt="word",Pt="rte-word-count";class Ft extends C{constructor(t){super(),this.type=S.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[S.TEXT_COLOR,new Ft(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new Ft(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:u.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return vt.find((e=>e.key===t))||vt[0]}}class Ht extends Z{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}class Jt extends O{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class Kt extends dt{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const s=e.getAnnotationByType(f.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof et&&t.doSplit&&s){const{startContainer:t,endContainer:n,startOffset:r,endOffset:i}=s.range,o=t===n&&r===i;e.parent.children=e.parent.children.flatMap((t=>{if(t.id===e.id){if(o)return this.insertNewNode(r,e);if(this.shouldSplitSelection(s.range)&&e.isContentEditable()){const n=this.splitTextNode(s.range,e);return t.annotationMap.has("LINK")&&t.apply(new Jt(n)),n}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const s=e.cloneWithText("");this.setApplyTargetNode(s);const n=e.parent.children.findIndex((t=>t===e));return 0===t||!e.isContentEditable()&&t===n?[s,e]:t===e.text.length||!e.isContentEditable()&&t===n+1?[e,s]:[e.cloneWithText(e.text.substring(0,t)),s,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:s,startOffset:n,endOffset:r}=t;return e!==s||n>0||r<(s.textContent?s.textContent.length:0)}splitTextNode(t,e){const{startContainer:s,endContainer:n,startOffset:r}=t,i=s.parentElement,o=n.parentElement,c=(t,s,n)=>{const r=t.substring(0,s),i=t.substring(s,n),o=t.substring(n);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},a=i&&m.getEntityByDOM(i),l=o&&m.getEntityByDOM(o);if(a&&a.id===e.id){const i=s===n?t.endOffset:e.text.length,[o,a,l]=c(e.text,r,i);return this.setApplyTargetNode(a),[o,a,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[s,n,r]=c(e.text,0,t.endOffset);return this.setApplyTargetNode(n),[s,n,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class Ut extends w{constructor(){super(...arguments),this.type=f.CLEAR_FORMATTING,this.items=[S.BOLD,S.ITALIC,S.UNDERLINE,S.STRIKETHROUGH,S.TEXT_COLOR,S.CODE,A.CUSTOM_STYLE]}}class Wt extends et{constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new Ut}}class zt extends et{constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new Tt(this.code)}}class Gt extends et{constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new Ot(this.italic)}}class Vt extends et{constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new At(this.strikethrough)}}class Xt extends et{constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new yt(this.underline)}}class qt extends dt{handleAction(t,e){const s=t.toAnnotation();if(t instanceof ht)e.annotationMap.delete(t.annotationType);else{if(!(s instanceof Ut))return s instanceof C||s instanceof St?(t instanceof st&&(c(t.newText)&&(e.text=t.newText),e.parent.apply(new nt(t.link.groupKey,[e],t.type))),t instanceof zt&&this.handleAction(new Wt,e),t instanceof ut&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof Gt&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof Xt||t instanceof Vt)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(s.type,s)):void 0;s.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class Yt extends O{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class Zt extends dt{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new Yt)}}class Qt extends O{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class te extends dt{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,s){if(e&&e.startContainer&&e.endContainer){const{startContainer:n,endContainer:r,startOffset:i,endOffset:o}=e;let c=s.text;if(n===r&&i===o&&t)c=s.text.slice(0,i)+t+s.text.slice(i);else{const e=n.parentElement,a=r.parentElement,l=e&&m.getEntityByDOM(e),u=a&&m.getEntityByDOM(a);let h=0,d=s.text.length;l&&l===s?(h=i,d=n===r?o:d):u&&u===s&&(d=o),c=s.text.slice(0,h)+t+s.text.slice(d)}s.apply(new Qt(c))}}}class ee extends w{constructor(t){super(),this.type=S.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:s,customStyle:n,customClass:r,customAttribute:i}=t,o=new ee(e);return o.groupId=t.groupId,o.child=s?ee.from(s)[1]:void 0,o.customAttribute=i?D.from(i)[1]:void 0,o.customClass=r?M.from(r)[1]:void 0,o.customStyle=n?P.from(n)[1]:void 0,[S.INLINE_HTML,o]}clone(){var t,e,s,n;const r=new ee(this.htmlTag);return r.groupId=this.groupId,r.child=null===(t=this.child)||void 0===t?void 0:t.clone(),r.customAttribute=null===(e=this.customAttribute)||void 0===e?void 0:e.clone(),r.customClass=null===(s=this.customClass)||void 0===s?void 0:s.clone(),r.customStyle=null===(n=this.customStyle)||void 0===n?void 0:n.clone(),r}renderProps(){var t,e,s;return Object.assign(Object.assign({},null===(t=this.customAttribute)||void 0===t?void 0:t.render()),{style:null===(e=this.customStyle)||void 0===e?void 0:e.renderStyle(),class:null===(s=this.customClass)||void 0===s?void 0:s.renderClass().join(" ")})}toJSON(){var t,e,s,n;return{inlineHtml:h({htmlTag:this.htmlTag,groupId:this.groupId,child:null===(t=this.child)||void 0===t?void 0:t.toJSON().inlineHtml,customAttribute:null===(e=this.customAttribute)||void 0===e?void 0:e.toJSON().customAttribute,customClass:null===(s=this.customClass)||void 0===s?void 0:s.toJSON().customClass,customStyle:null===(n=this.customStyle)||void 0===n?void 0:n.toJSON().customStyle})}}}class se extends dt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const n=e.annotationMap.get("LINK").link.groupKey,r=s.linkGroups.get(n);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),s.linkGroups.set(n,r))}}}}class ne extends dt{handleAction(t,e){const s=e.parent.getAnnotationByType(f.LINK_GROUP);if(s){const t=e.annotationMap.get(S.LINK).link.groupKey,n=s.linkGroups.get(t);if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&s.linkGroups.delete(t),0===s.linkGroups.size&&e.parent.annotationMap.delete(f.LINK_GROUP)}}e.annotationMap.delete(S.LINK)}}class re extends C{constructor(t){super(),this.type=S.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[S.PLAIN_TEXT,new re(t)]}clone(){return new re(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return this.plainText?{plainText:this.plainText}:void 0}}class ie extends et{constructor(t){super(),this.isFlushable=!0,this.textColor=t}toAnnotation(){return new Ft(this.textColor)}}class oe extends K{constructor(t,e,s,n){super(t,n),this.dtoName=oe.dtoName,this.type=y.TEXT,this.parent=s,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,s={autoMatchFormat:!0}){const n=new oe(t.id,t.text,e),{annotations:r}=t;return r&&(n.annotationMap=this.generateTextAnnotationMap(r,s,e,n)),n}static generateTextAnnotationMap(t,e,s,n){return new Map(Object.keys(t).map((r=>("link"===r&&t.link&&s&&n&&s.apply(new nt(t.link.groupKey,[n],"link")),this.createAnnotationEntity(r,t[r],e)))).filter(c))}static createAnnotationEntity(t,e,s){const n=!(!s||!s.autoMatchFormat);switch(t){case"bold":return lt.from(e);case"italic":return Ot.from(e);case"underline":return yt.from(e);case"strikethrough":return At.from(e);case"code":return Tt.from(e,n);case"textColor":return Ft.from(e);case"link":return tt.from(e,n);case"inlineHtml":return ee.from(e);case"plainText":return re.from(e)}return K.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof C||t instanceof B||t instanceof ee)).reduce(((t,e)=>Object.assign(Object.assign({},t),e.toJSON())),{});return Object.assign(Object.assign({id:this.id},Object.keys(t).length>0?{annotations:t}:{}),{type:"text",text:this.text})}toHtml(t){const e=this.getAnnotationByType(S.INLINE_HTML);return e?this.renderWithWrapperStr(e,t):this.renderTextStr(t)}cloneWithText(t){return new oe(l(),t,this.parent,super.cloneAnnotations())}clone(t){return new oe(this.id,this.text,t,super.cloneAnnotations())}isEmpty(){return!(this.getAnnotationByType(S.INLINE_HTML)||this.text&&""!==this.text&&"\n"!==this.text)}isTextNode(){return!0}getRangeEndOffset(){return!this.isContentEditable()&&this.parent?this.parent.children.indexOf(this)+1:"\n"===this.text?0:this.text.length}getRangeContainer(){const t=this.getElementRef();if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}getPlainText(){return this.text}getInlineHtmlTagAtDepth(t){const e=this.getInlineHtmlAnnotationAtDepth(t);return e?kt.has(e.htmlTag)?null:{htmlTag:e.htmlTag,attrStr:this.annotationAttrStr(e),groupId:e.groupId,annotation:e}:null}renderHtmlFromDepth(t,e){if(0===t)return this.toHtml(e);const s=this.getInlineHtmlAnnotationAtDepth(t);return s?this.renderWithWrapperStr(s,e):this.renderTextStr(e)}getInlineHtmlAnnotationAtDepth(t){let e=this.getAnnotationByType(S.INLINE_HTML);for(let s=0;s<t&&e;s++)e=e.child;return e}registerModifyStrategy(){const t=this.constructor.name;oe.registerActionStrategyStatus[t]||(this.isContentEditable()&&(I.register(x.UPDATE_TEXT,t,new Zt),I.register(x.REPLACE_SELECTED_TEXT,t,new te),I.register(x.LINK_GROUP_NODE_SPLIT,t,new se),I.register(st.name,t,new qt)),I.register(et.name,t,new Kt),I.register(x.DELETE_LINK_GROUP,t,new ne),I.register(ut.name,t,new qt),I.register(Wt.name,t,new qt),I.register(Gt.name,t,new qt),I.register(Xt.name,t,new qt),I.register(ie.name,t,new qt),I.register(Vt.name,t,new qt),I.register(zt.name,t,new qt),I.register(Z.name,t,new qt),oe.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(f.SELECTION_RANGE);if(t instanceof et&&t.doSplit&&e){const e=I.get(et.name,this.constructor.name);if(e){const s=e.execute(t,this);s&&this.applyActionToNode(s,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){I.executeTheStrategy(t,this)}applyActionToNode(t,e){const s=e.toAnnotation();if(e instanceof Ht)return void this.syncUpSelectedNodes(t);s instanceof St||this.syncUpSelectedNodes(t);const n=I.get(e.constructor.name,t.constructor.name);if(n)return void n.execute(e,t);const r=I.get(Z.name,oe.name);r&&r.execute(e,t)}syncUpSelectedNodes(s){const r=this.getElementRef();if(r){const i=e.getSubjectFromParentNodeByEventId(r,n);i&&t.notify(i,{node:s})}}renderWithWrapperStr(t,e){const{htmlTag:s,child:n}=t,r=this.annotationAttrStr(t);return n?`<${s}${r}>${this.renderWithWrapperStr(n,e)}</${s}>`:kt.has(s)?`<${s}${r}>`:this.text?`<${s}${r}>${this.renderTextStr(e)}</${s}>`:`<${s}${r}></${s}>`}annotationAttrStr(t){const{customAttribute:e,customClass:s,customStyle:n}=t,r=[...(null==e?void 0:e.toString())||[],null==s?void 0:s.toString(),null==n?void 0:n.toString()].filter(c);return r.length>0?` ${r.join(" ")}`:""}renderTextStr(t){var e;const s=(null===(e=this.getAnnotationByType(S.CODE))||void 0===e?void 0:e.code)?"code":"span",n=super.generateAttributeString(t);return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${s}${n}>${"code"===s?v(this.text):this.text}</${s}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(S.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof C&&!(t instanceof tt)&&!(t instanceof re)||t instanceof B)).length}}oe.registerActionStrategyStatus={},oe.htmlTag="span",oe.dtoName="RTETextNode";class ce extends dt{handleAction(t,e){const s=t.blockNeedToBeMerged;if(e.type===s.type||"image"!==e.type&&"image"!==s.type){let t=s.children;"image"!==s.type&&(t=s.children.filter((t=>t.text))),e.apply(new z(t)),"image"!==e.type&&this.transferLinkGroups(t,e),s.parent.apply(new xt(s))}}transferLinkGroups(t,e){t.forEach((t=>{if(!(t instanceof oe))return;const s=t.getAnnotationByType(S.LINK);s&&e.apply(new nt(s.link.groupKey,[t],"link"))}))}}class ae extends dt{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,s){if(t){const n=new oe(l(),"\n",s),r=t.text.slice(0,e),i=t.text.slice(e),o=s.children.indexOf(t);if(o>-1){const c=s.children.slice(0,o),a=s.children.slice(o+1);t.isContentEditable()?(r&&c.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i))):e>0?c.push(t):a.unshift(t),this.mergeLineBreakNodes(c,n,a,s)}return n}}mergeLineBreakNodes(t,e,s,n){if(0===s.length||s[0]&&""===s[0].text){const e=t[t.length-1];s.push(new oe(l(),"\n",n,e&&new Map(e.annotationMap)))}n.apply(new wt([...t,e,...s]))}}class le extends dt{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const s=e.children,n=new oe(l(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(s,n,r,e),n}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new xt(t)))})),e}mergeLineBreakNodes(t,e,s,n){(0===s.length||s[0]&&""===s[0].text)&&s.push(new oe(l(),"\n",n,t[t.length-1]&&t[t.length-1].annotationMap)),n.apply(new wt([...t,e,...s]))}}class ue extends O{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class he extends O{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}function de(t,e){const s=new Set(t.filter((t=>"RTEListItemBlock"===t.dtoName)));return t.filter((t=>{if("RTEListItemBlock"!==t.dtoName)return!0;let n=t.parent;for(;n.parent&&"RTEListItemBlock"===n.parent.dtoName;){const r=n.parent;if(s.has(r))return t.parent.type=e,!1;n=r.parent}return!0}))}class fe extends Z{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new j(this.textAlign)}}class pe extends dt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class we extends Z{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new _(this.indent)}}class ge extends W{constructor(t,e,s){super(t),this.dtoName=ge.dtoName,this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&(this.annotationMap=ge.isAcceptableTextStyle(e)?new Map([Y.from(e)]):new Map([Y.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var s,n;const r=new ge(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(n=null===(s=t.annotations)||void 0===s?void 0:s.textStyle)&&void 0!==n?n:r.type}):t.annotations;return r.children=ge.convertNodes(t.nodes,r,e),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static convertNodes(t,e,s){return t.map((t=>{const n=U.getRTENodeClass(t.type);if(n)return n.from(t,e,s)})).filter(c)}static createAnnotationEntity(t,e){return"textStyle"===t?Y.from(e):super.createAnnotationEntity(t,e)}static isAcceptableTextStyle(t){return["title","subtitle","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6"].includes(t)}mergeNodes(t){this.children=this.children.reduce(((e,s)=>{const n=e.at(-1);if(t instanceof st&&t.needMergeNode){const t=null==n?void 0:n.getAnnotationByType(S.LINK),r=s.getAnnotationByType(S.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,s]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),s=super.generateAttributeString(t),n=this.getChildrenHtml(t);return super.shouldRenderAsInternalWrapper()?n:[`<${e}${s}>`,n,`</${e}>`].join("")}cloneWithNodes(t){const e=new ge(l(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new z(t)),e}clone(t){const e=new ge(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}isNotEmpty(){return this.children.length>0&&this.children.some((t=>!t.isEmpty()))}getLastNode(){return this.children[this.children.length-1]}getBlockTag(){switch(this.type){case"title":case"subtitle":return"div";case"heading-1":return"h1";case"heading-2":return"h2";case"heading-3":return"h3";case"heading-4":return"h4";case"heading-5":return"h5";case"heading-6":return"h6";case"paragraph":default:return"p"}}getChildrenHtml(t){if(!this.isNotEmpty())return"<br>";const e=this.getAnnotationByType(f.LINK_GROUP);let s=this.renderGroupedNodesAtDepth(this.children,0,t);return e&&this.children.length>0&&(s=this.generateLinkHtml(e,s,t)),s}doAnnotationActionApply(t){const e=I.get(t.constructor.name,ge.name);e&&e.execute(t,this)}renderGroupedNodesAtDepth(t,e,s){var n;let r="",i=0;for(;i<t.length;){const o=t[i].getInlineHtmlTagAtDepth(e);if(!(null==o?void 0:o.groupId)){r+=t[i].renderHtmlFromDepth(e,s),i++;continue}let c=i+1;for(;c<t.length&&(null===(n=t[c].getInlineHtmlTagAtDepth(e))||void 0===n?void 0:n.groupId)===o.groupId;)c++;if(c===i+1)r+=t[i].renderHtmlFromDepth(e,s);else{const n=this.renderGroupedNodesAtDepth(t.slice(i,c),e+1,s);r+=`<${o.htmlTag}${o.attrStr}>${n}</${o.htmlTag}>`}i=c}return r}generateLinkHtml(t,e,s){e="";let n=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(S.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(S.LINK):null;if(i){if(n.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,filterInlineStyles:null==s?void 0:s.filterInlineStyles});e+=[`<a${r?` ${r}`:""}>`,this.renderGroupedNodesAtDepth(n,0,s),"</a>"].join(""),n=[]}}else e+=this.children[r].toHtml(s)}return e}}I.register(Q.name,ge.name,new ft),I.register(fe.name,ge.name,new pe),I.register(we.name,ge.name,new class extends dt{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),I.register(nt.name,ge.name,new class extends dt{handleAction(t,e){let s=e.getAnnotationByType(f.LINK_GROUP);if("update_link"===t.type){if(s){const e=s.linkGroups.get(t.groupKey);e&&s.linkGroups.set(t.groupKey,[e[0]])}}else{if(s){const e=s.linkGroups.get(t.groupKey)||[];s.linkGroups.set(t.groupKey,[...e,...t.nodes])}else s=t.toAnnotation(),s.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(f.LINK_GROUP,s)}}}),I.register(x.UNLINK_LINK_GROUP,ge.name,new class extends dt{handleAction(t,e){const s=e.getAnnotationByType(f.LINK_GROUP);s&&(s.linkGroups.size>1?s.linkGroups.delete(t.groupKey):e.annotationMap.delete(f.LINK_GROUP))}}),I.register(x.SPLIT_BLOCK_WITH_NODE,ge.name,new gt),I.register(x.REPLACE_CHILD_NODES,ge.name,new mt),I.register(x.MERGE_TWO_BLOCKS_NODES,ge.name,new ce),I.register(x.LINE_BREAK_SINGLE_BLOCK,ge.name,new ae),I.register(x.LINE_BREAK_MULTIPLE_BLOCKS,ge.name,new le),I.register(x.INSERT_IMAGE_TO_BLOCK,ge.name,new class extends dt{handleAction(t,e){const s=t.splitPointNode,n=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,s,n))e.parent.apply(new pt(e,r));else if(this.isCaretPositionAtBlockStart(e,s,n))e.parent.apply(new ue(e,r));else{const t=new he(s,n);e.apply(t),e.parent.apply(new pt(e,r))}}}),I.register(x.TRANSFORM_LIST_BLOCK,ge.name,new class extends dt{handleAction(t,e){const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=s.createList(t.listType),i=de(t.selectedBlocks,t.listType),o=i.map((t=>s.toListItem(t)));r.apply(new z(o)),n.apply(new pt(t.selectedBlocks[0],r)),i.forEach((t=>{t.parent.apply(new xt(t))}))}}),ge.dtoName="RTETextBlock";class me extends dt{copyListAnnotations(t,e){t.annotationMap.forEach(((t,s)=>{e.annotationMap.set(s,t.clone())}))}haveSameListAnnotations(t,e){var s,n;const r=Array.from(t.annotationMap.keys()).sort(),i=Array.from(e.annotationMap.keys()).sort();return JSON.stringify(r)===JSON.stringify(i)&&JSON.stringify(this.normalizeAnnotationValue(null!==(s=t.toJSON().annotations)&&void 0!==s?s:{}))===JSON.stringify(this.normalizeAnnotationValue(null!==(n=e.toJSON().annotations)&&void 0!==n?n:{}))}normalizeAnnotationValue(t){if(Array.isArray(t))return t.map((t=>this.normalizeAnnotationValue(t)));if(t&&"object"==typeof t){const e=t;return Object.keys(e).sort().reduce(((t,s)=>(t[s]=this.normalizeAnnotationValue(e[s]),t)),{})}return t}}class xe extends ge{constructor(t,e,s){super(t,"list-item",s),this.dtoName=xe.dtoName,this.nestList=[],this.nestList=e}static from(t,e={autoMatchFormat:!0}){const s=new xe(t.id,void 0,e);s.children=xe.convertNodes(t.nodes,s,e),t.children&&(s.nestList=t.children.map((t=>{const n=ve.from(t,e);return n.parent=s,n})));const{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s}toJSON(){var t;return Object.assign(Object.assign({},super.toJSON()),{type:"list-item",children:null===(t=this.nestList)||void 0===t?void 0:t.map((t=>t.toJSON()))})}toHtml(t){var e;const s=super.generateAttributeString(t),n=(null===(e=this.nestList)||void 0===e?void 0:e.length)?this.nestList.map((e=>e.toHtml(t))).join(""):"";return[`<li${s}>`,this.getChildrenHtml(t),n,"</li>"].join("")}cloneWithNodes(t){const e=new xe(l());return e.children=[],e.apply(new z(t)),e}getLastNode(){return this.nestList&&this.nestList.length>0?this.nestList[this.nestList.length-1].getLastNode():super.getLastNode()}getPlainText(){var t;const e=(null!==(t=this.nestList)&&void 0!==t?t:[]).map((t=>t.getPlainText())).join("");return super.getPlainText()+e}createNewListItem(){return new xe(l())}clone(t){var e;const s=new xe(this.id);return s.children=this.children.map((t=>t.clone(s))),s.annotationMap=super.cloneAnnotations(),s.nestList=null===(e=this.nestList)||void 0===e?void 0:e.map((t=>t.clone(s))),s.parent=t,s}}I.register(Q.name,xe.name,new ft),I.register(fe.name,xe.name,new pe),I.register(x.LINE_BREAK_SINGLE_BLOCK,xe.name,new ae),I.register(x.LINE_BREAK_MULTIPLE_BLOCKS,xe.name,new le),I.register(x.DELETE_NEST_LIST,xe.name,new class extends dt{handleAction(t,e){e.nestList&&(e.nestList=e.nestList.length>1?e.nestList.filter((e=>e!==t.nestListBlockToBeRemoved)):void 0)}}),I.register(x.SPLIT_BLOCK_WITH_NODE,xe.name,new gt),I.register(x.REPLACE_CHILD_NODES,xe.name,new mt),I.register(x.REPLACE_NEST_LIST,xe.name,new class extends me{handleAction(t,e){const s=this.mergeAdjacentSameType(t.newList);s.forEach((t=>{t.parent=e})),e.nestList=s}mergeAdjacentSameType(t){if(t.length<=1)return t;const e=[t[0]];for(let s=1;s<t.length;s++){const n=e[e.length-1],r=t[s];n.type===r.type&&this.haveSameListAnnotations(n,r)?(r.children.forEach((t=>{t.parent=n})),n.children=n.children.concat(r.children)):e.push(r)}return e}}),I.register(x.MERGE_TWO_BLOCKS_NODES,xe.name,new ce),I.register(x.INSERT_IMAGE_TO_BLOCK,xe.name,new class extends dt{handleAction(t,e){e.parent.apply(t)}}),xe.dtoName="RTEListItemBlock";class Se extends O{constructor(t){super(),this.type=x.REPLACE_NEST_LIST,this.newList=t}}class Ae extends O{constructor(t){super(),this.type=x.TRANSFORM_PARAGRAPH_BLOCK,this.isFlushable=!0,this.selectedBlocks=t}}class ye extends W{constructor(t,e){super(t),this.dtoName=ye.dtoName,this.type="html-block",this.children=[],this.htmlTag=e}static from(t,e){const s=new ye(t.id,t.htmlTag),{annotations:n}=t;return n&&super.convertAnnotationsToMap(s.annotationMap,n),s.children=this.generateBlockChildren(t.children,e,s),s}clone(t){const e=new ye(this.id,this.htmlTag);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return!0}toHtml(t){const e=this.htmlTag,s=super.generateAttributeString(t);return kt.has(this.htmlTag)?`<${e}${s}>`:[`<${e}${s}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,htmlTag:this.htmlTag,children:this.children.map((t=>t.toJSON()))})}}ye.dtoName="RTEHtmlBlock";class Oe extends dt{getOrderedContiguousItems(t,e){const s=[...e].sort(((e,s)=>t.children.indexOf(e)-t.children.indexOf(s))),n=t.children.indexOf(s[0]);return n<0?[]:t.children.slice(n,n+s.length).every(((t,e)=>t===s[e]))?s:[]}}class Te extends O{constructor(t){super(),this.type=x.DELETE_NEST_LIST,this.nestListBlockToBeRemoved=t}}class Ee extends g{constructor(){super(...arguments),this.type=p.LIST}static getDefaultStyles(){return{paddingLeft:"8px",marginLeft:"16px"}}static getDefaultMarkerStyles(){return{fontSize:"16px"}}renderStyle(t){return(null==t?void 0:t.standalone)?Ee.getDefaultStyles():null}renderClass(t){return(null==t?void 0:t.standalone)?null:"v-rte--list"}clone(){return new Ee}toJSON(){}}class ve extends W{constructor(t,e,s){super(t),this.dtoName=ve.dtoName,this.type="bullet-list",this.children=[],this.type=e;const{autoMatchFormat:n}=s||{autoMatchFormat:!0};n&&this.annotationMap.set(p.LIST,new Ee)}static from(t,e={autoMatchFormat:!0}){const s=new ve(t.id,t.type,e),{annotations:n}=t;return n&&Object.entries(n).forEach((([t,e])=>{const n=this.createAnnotationEntity(t,e);c(n)&&s.annotationMap.set(...n)})),s.children=t.blocks.map((t=>{const n=xe.from(t,e);return n.parent=s,n})),s}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return D.from(e);case"customClass":return M.from(e);case"customStyle":return P.from(e)}}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,blocks:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag();return[`<${e}${super.generateAttributeString(t)}>`,this.children.map((e=>e.toHtml(t))).join(""),`</${e}>`].join("")}isNotEmpty(){return this.children.length>0}getLastNode(){return this.children[this.children.length-1].getLastNode()}clone(t){const e=new ve(this.id,this.type);return e.children=this.children.map((t=>t.clone(e))),e.annotationMap=super.cloneAnnotations(),e.parent=t,e}getBlockTag(){return"number-list"===this.type?"ol":"ul"}}I.register(x.TRANSFORM_LIST_BLOCK,ve.name,new class extends me{handleAction(t,e){var s;const n=t.selectedBlocks,r=n.every((t=>t.parent===e)),i=this.getRootContent(e);if(!i)return;if(e.parent instanceof xe){if(r){const r=this.createListFromSource(i,e,t.listType);r.apply(new z(e.children));const o=e.parent,c=(null!==(s=o.nestList)&&void 0!==s?s:[]).map((t=>t===e?r:t));o.apply(new Se(c)),n.forEach((t=>t.children.map((t=>t.apply(new Ht)))))}else this.handleCrossListTransform(t,e);return}if(!r&&n.every((t=>t instanceof xe))){const e=new Set(n.map((t=>t.parent))),s=new Set;e.forEach((e=>{e.type!==t.listType&&this.convertListTypeInPlace(e,t.listType)}));const r=new Set;return n.forEach((t=>{const e=t.parent;e.parent instanceof xe||(s.add(e),r.add(e.parent))})),r.forEach((t=>{for(let e=0;e<t.children.length-1;){const n=t.children[e],r=t.children[e+1];n instanceof ve&&r instanceof ve&&n.type===r.type&&this.haveSameListAnnotations(n,r)&&s.has(n)&&s.has(r)?(n.apply(new z([...r.children])),t.apply(new xt(r)),s.delete(r)):e++}})),void n.forEach((t=>t.children.map((t=>t.apply(new Ht)))))}const o=this.createListFromSource(i,e,t.listType),c=e.parent;if(r)o.apply(new z(e.children)),c.apply(new pt(e,o)),c.apply(new xt(e)),n.forEach((t=>t.children.map((t=>t.apply(new Ht)))));else{const s=de(t.selectedBlocks,t.listType),n=s.map((t=>i.toListItem(t)));o.apply(new z(n)),c.apply(new pt(e,o)),s.forEach((t=>{t.parent.apply(new xt(t))})),0===e.children.length&&c.apply(new xt(e))}}convertListTypeInPlace(t,e){var s;const n=this.getRootContent(t);if(!n)return;const r=t.parent,i=this.createListFromSource(n,t,e);if(i.apply(new z([...t.children])),r instanceof xe){const e=(null!==(s=r.nestList)&&void 0!==s?s:[]).map((e=>e===t?i:e));r.apply(new Se(e))}else r.apply(new pt(t,i)),r.apply(new xt(t))}handleCrossListTransform(t,e){if(!(e.parent instanceof xe))return;const s=this.getRootContent(e);if(!s)return;const n=e.parent,r=n.nestList,i=new Set(t.selectedBlocks.filter((t=>t instanceof xe)).map((t=>t.parent)).filter((t=>r.includes(t))));if(!i.size)return;const o=r.map((e=>{if(!i.has(e))return e;const n=this.createListFromSource(s,e,t.listType);return n.apply(new z(e.children)),n}));n.apply(new Se(o)),t.selectedBlocks.forEach((t=>t.children.map((t=>t.apply(new Ht)))))}createListFromSource(t,e,s){const n=t.createList(s);return this.copyListAnnotations(e,n),n}}),I.register(x.TRANSFORM_PARAGRAPH_BLOCK,ve.name,new class extends me{handleAction(t,e){const s=this.getSelectedSegments(t.selectedBlocks);0!==s.length&&this.hasConsistentTargetAndRoot(s,e)&&(this.syncSelection(s),[...s].reverse().forEach((t=>this.transformSegment(t))))}hasConsistentTargetAndRoot(t,e){if(t[0][0].parent!==e)return!1;const s=this.getRootContent(e);return Boolean(s&&t.every((t=>t.every((t=>this.getRootContent(t)===s)))))}syncSelection(t){t.forEach((t=>{t.forEach((t=>{t.children.forEach((t=>t.apply(new Ht)))}))}))}transformSegment(t){const e=t[0].parent,s=new Ae(t);e.parent instanceof xe?this.handleNestedListCase(s,e):this.handleRootListCase(s,e)}handleRootListCase(t,e){const s=this.getRootContent(e);let n=!1,r=!1;const i=t.selectedBlocks,o=[];if(i.forEach((t=>{var s;t===e.children[0]&&(n=!0),t===e.children[e.children.length-1]&&(r=!0),o.push(this.toParagraph(t));for(const e of null!==(s=t.nestList)&&void 0!==s?s:[])this.appendListBlock(o,e)})),n)e.parent.apply(new ue(e,...o));else if(r)e.parent.apply(new pt(e,...o));else{const t=e.children.indexOf(i[0]),n=e.children.indexOf(i[i.length-1]),r=this.createListFromSource(s,e);r.apply(new z(e.children.slice(0,t)));const c=this.createListFromSource(s,e);c.apply(new z(e.children.slice(n+1)));const a=o[o.length-1];a instanceof ve&&c.children.length>0&&a.type===c.type&&this.haveSameListAnnotations(a,c)?(a.apply(new z(c.children)),e.parent.apply(new ue(e,r,...o))):e.parent.apply(new ue(e,r,...o,c)),e.parent.apply(new xt(e))}if(i.map((t=>{t.nestList=[],e.apply(new xt(t))})),0===e.children.length)e.parent.apply(new xt(e));else if(n){const t=o[o.length-1];t instanceof ve&&t.type===e.type&&this.haveSameListAnnotations(t,e)&&(t.apply(new z([...e.children])),e.parent.apply(new xt(e)))}}handleNestedListCase(t,e){const s=t.selectedBlocks,n=this.getRootContent(e),r=e.children.indexOf(s[0]),i=[];s.forEach((t=>{var e;i.push(this.toParagraph(t));for(const s of null!==(e=t.nestList)&&void 0!==e?e:[])this.appendListBlock(i,s)}));const o=e.children.indexOf(s[s.length-1]),c=e.children.slice(o+1),a=[];let l=e;for(;l.parent instanceof xe;){const t=l.parent,e=t.parent,s=e.children.indexOf(t),n=t.nestList,r=n.indexOf(l),i=n.slice(r+1);a.push({list:e,ancestorIndex:s,trailingNestLists:i}),l=e}const u=l,h=u.parent,d=[];c.length>0&&d.push({items:c,sourceList:e});for(const t of a){for(const e of t.trailingNestLists)e.children.length>0&&d.push({items:[...e.children],sourceList:e});const e=t.list.children.slice(t.ancestorIndex+1);e.length>0&&d.push({items:e,sourceList:t.list})}const f=[];for(const t of d){const e=f[f.length-1];e&&e.sourceList.type===t.sourceList.type&&this.haveSameListAnnotations(e.sourceList,t.sourceList)?e.items.push(...t.items):f.push({items:[...t.items],sourceList:t.sourceList})}f.map((t=>{const e=this.createListFromSource(n,t.sourceList);return e.apply(new z(t.items)),e})).forEach((t=>this.appendListBlock(i,t))),e.children=e.children.slice(0,r);const p=e.parent,w=p.nestList,g=w.indexOf(e);let m=w.slice(0,g+1);0===e.children.length&&(m=m.filter((t=>t!==e))),p.apply(new Se(m));for(const t of a)if(t.list.children=t.list.children.slice(0,t.ancestorIndex+1),t.trailingNestLists.length>0){const e=t.list.children[t.ancestorIndex],s=e.nestList,n=s.indexOf(t.trailingNestLists[0]);if(n>=0){const t=s.slice(0,n);e.apply(new Se(t))}}h.apply(new pt(u,...i))}getSelectedSegments(t){const e=Array.from(new Set(t.filter((t=>t instanceof xe)))).map((t=>({item:t,path:this.getStructuralPath(t)}))).filter((t=>null!==t.path)).sort(((t,e)=>this.compareStructuralPaths(t.path,e.path))).map((t=>t.item)),s=[];for(const t of e){const e=s[s.length-1],n=null==e?void 0:e[e.length-1];(null==n?void 0:n.parent)===t.parent&&t.parent.children.indexOf(t)-t.parent.children.indexOf(n)==1?e.push(t):s.push([t])}return s}getStructuralPath(t){var e;const s=[],n=new Set;let r=t,i=t.parent;for(;!n.has(i);){n.add(i);const t=i.children.indexOf(r);if(t<0)return null;if(s.unshift(t),"VegaRTEContent"===i.parent.dtoName||"RTEHtmlBlock"===i.parent.dtoName){const t=this.getContainerPath(i);return t?[...t,...s]:null}if(!(i.parent instanceof xe))return null;const o=i.parent,c=(null!==(e=o.nestList)&&void 0!==e?e:[]).indexOf(i);if(c<0)return null;s.unshift(c),r=o,i=o.parent}return null}getContainerPath(t){const e=[],s=new Set;let n=t,r=t.parent;for(;r instanceof ye;){if(s.has(r))return null;s.add(r);const t=r.children.indexOf(n);if(t<0)return null;e.unshift(t),n=r,r=r.parent}const i=r.children.indexOf(n);return i<0?null:(e.unshift(i),e)}compareStructuralPaths(t,e){const s=Math.min(t.length,e.length);for(let n=0;n<s;n++)if(t[n]!==e[n])return t[n]-e[n];return t.length-e.length}appendListBlock(t,e){const s=t[t.length-1];s instanceof ve&&s.type===e.type&&this.haveSameListAnnotations(s,e)?s.apply(new z([...e.children])):t.push(e)}createListFromSource(t,e){const s=t.createList(e.type);return this.copyListAnnotations(e,s),s}toParagraph(t){const e=new ge(l(),"paragraph");return e.apply(new z(t.children)),e.annotationMap=t.annotationMap,e}}),I.register(x.INSERT_IMAGE_TO_BLOCK,ve.name,new class extends dt{handleAction(t,e){e.parent.apply("list-item"!==e.parent.type?new pt(e,t.imageBlockToBeInserted):t)}}),I.register(x.NEST_LIST_ITEMS,ve.name,new class extends Oe{handleAction(t,e){var s,n;const r=this.getOrderedContiguousItems(e,t.selectedBlocks);if(!r.length)return;const i=e.children.indexOf(r[0]);if(i<=0)return;const o=e.children[i-1],c=new Set(r);let a=null===(s=o.nestList)||void 0===s?void 0:s[o.nestList.length-1];a||(a=new ve(l(),e.type),o.apply(new Se([...null!==(n=o.nestList)&&void 0!==n?n:[],a]))),e.children=e.children.filter((t=>!c.has(t))),a.children=a.children.concat(r),r.forEach((t=>{var e;t.parent=a,(null===(e=t.nestList)||void 0===e?void 0:e.length)&&this.unifyDescendantNestLists(t,t.nestList[0].type),t.children.forEach((t=>t.apply(new Ht)))}))}unifyDescendantNestLists(t,e){var s;if(!(null===(s=t.nestList)||void 0===s?void 0:s.length))return;let n=!1;for(const s of t.nestList){s.type!==e&&(s.type=e,n=!0);for(const t of s.children)this.unifyDescendantNestLists(t,e)}n&&t.apply(new Se([...t.nestList]))}}),I.register(x.UNNEST_LIST_ITEMS,ve.name,new class extends Oe{handleAction(t,e){var s;const n=this.getOrderedContiguousItems(e,t.selectedBlocks),r=e.parent;if(!(n.length&&r instanceof xe))return;const i=e.children.indexOf(n[0]),o=e.children.indexOf(n[n.length-1]);if(i<0||o<i)return;const c=r,a=c.parent,u=a.children.indexOf(c);if(u<0)return;const h=e.children.slice(o+1),d=new Set(n);if(e.children=e.children.filter((t=>!d.has(t))),a.children=[...a.children.slice(0,u+1),...n,...a.children.slice(u+1)],n.forEach((t=>{t.parent=a,t.children.forEach((t=>t.apply(new Ht)))})),h.length>0){const t=new Set(h);e.children=e.children.filter((e=>!t.has(e)));const r=n[n.length-1];let i=null===(s=r.nestList)||void 0===s?void 0:s[r.nestList.length-1];if(i&&i.type!==e.type&&(i=null),!i){i=new ve(l(),e.type);const t=Array.isArray(r.nestList)?r.nestList:[];r.apply(new Se([...t,i]))}i.children=i.children.concat(h),h.forEach((t=>{t.parent=i}))}const f=this.collectTrailingNestLists(c,e);if(f.length>0){const t=n[n.length-1],e=Array.isArray(t.nestList)?t.nestList:[];t.apply(new Se([...e,...f]))}0===e.children.length&&c.apply(new Te(e))}collectTrailingNestLists(t,e){var s;const n=null!==(s=t.nestList)&&void 0!==s?s:[],r=n.indexOf(e);if(r<0||r>=n.length-1)return[];const i=n.slice(r+1);return t.apply(new Se(n.slice(0,r+1))),i}}),ve.dtoName="RTEListBlock";class Ne extends dt{getPreviousNode(t){var e;const s=t.parent,n=s.children.indexOf(t);if(n>0)return s.children[n-1];if(s.parent){if(s.isListItemBlock()&&0===s.parent.children.indexOf(s)&&s.parent.parent instanceof xe){const t=s.parent.parent;if(0!==(null!==(e=t.nestList)&&void 0!==e?e:[]).indexOf(s.parent)){const t=this.getPreviousBlock(s);return t?this.getBlockLastNode(t):null}const n=t.children;return n.length>0?n[n.length-1]:null}const t=this.getPreviousBlock(s);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,s=e.children.indexOf(t);if(e.children[s+1])return e.children[s+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,s=e.children.indexOf(t),n=e.parent;if(e.isListItemBlock()){const t=n.parent;return 0===s&&Array.isArray(n.children)&&n.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===n}return 0===s&&Array.isArray(n.children)&&n.children[0]===e}getPreviousBlock(t){var e;if(t.parent instanceof xe){const s=null!==(e=t.parent.nestList)&&void 0!==e?e:[],n=s.indexOf(t);if(n>0)return s[n-1];if(0===n)return t.parent}if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(this.isRTEBlock(t.parent)&&0===e)return this.getPreviousBlock(t.parent)}}getBlockLastNode(t){return t.getLastNode()}getBlockFirstNode(t){if("number-list"===t.type||"bullet-list"===t.type){if(t.children)return this.getBlockFirstNode(t.children[0])}else if(t.children)return t.children[0]}getNextBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(t.parent.children[e+1])return t.parent.children[e+1];if("list-item"===t.type&&t.parent.children.length===e+1)return this.getNextBlock(t.parent)}}isRTEBlock(t){return t&&"VegaRTEContent"!==t.dtoName}}class be extends O{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class Ce extends Z{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new St(this.range)}}class Le extends K{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(Le.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${Le.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=this.getElementRef();if(t)return d(t,`.${Le.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}Le.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",Le.DECORATOR_NODE_CLASS="v-internal-decorator-node";class Re extends b{constructor(){super(...arguments),this.stylesToBeFiltered=Re.STYLES,this.elementTagName="pre code"}canFilter(t){return L.isCodeBlockNode(t)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}Re.STYLES={boxSizing:"border-box",color:"rgba(var(--v-text-primary, 32, 54, 69, 1))",textAlign:"left",fontFamily:"'Roboto Mono'",fontWeight:"400",lineHeight:"22px",fontSize:"16px",whiteSpace:"pre-wrap",minHeight:"22px",tabSize:"2px"};class ke extends Le{constructor(t,e,s,n){super(t),this.dtoName=ke.dtoName,this.type=y.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=n,this.language=s,this.annotationMap.set(A.CUSTOM_STYLE,new P(Re.STYLES))}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}getPlainText(){return this.text}toHtml(t){return`<code${this.generateAttributeString(t)}>${E(this.text)}</code>`}clone(t){return new ke(this.id,this.text,this.language,t)}doAnnotationActionApply(t){I.executeTheStrategy(t,this)}doModifyActionApply(t){I.executeTheStrategy(t,this)}}I.register(x.UPDATE_CODE_BLOCK,ke.name,new class extends dt{handleAction(t,e){const{content:s,language:n}=t;e.language=n,e.text=s}}),I.register(Ce.name,ke.name,new class extends dt{handleAction(t,e){e.annotationMap.set(f.SELECTION_RANGE,t.toAnnotation())}}),ke.dtoName="RTECodeBlockNode";var je;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(je||(je={}));class _e extends dt{handleAction(t,e){e.children=e.children.filter((e=>e!==t.entityToBeRemoved)),0===e.children.length&&"parent"in e&&e.parent&&(e.isListItemBlock()&&e.nestList&&e.nestList.length||e.parent.apply(new xt(e)))}}class $e extends b{constructor(){super(...arguments),this.stylesToBeFiltered=$e.STYLES,this.elementTagName="pre"}canFilter(t){return L.isCodeBlock(t.dtoName)}canRefill(t,e){return!1}toCssText(){return this.buildCssTextForStyles(this.elementTagName,this.classNameToBeAdded)}}$e.STYLES={backgroundColor:"rgba(var(--v-bg-secondary, 245, 247, 247, 1))",padding:"12px"};class Ie extends W{constructor(t,e,s){super(t),this.dtoName=Ie.dtoName,this.type="code-block",this.annotationMap=new Map([P.from($e.STYLES)]),this.children=[new ke(`${t}-1`,e,s,this)]}static from(t){return new Ie(t.id,t.content,t.language)}toJSON(){const{language:t,text:e}=this.children[0];return{id:this.id,type:"code-block",content:e,language:t}}toHtml(t){const{language:e=je["Plain Text"]}=this.children[0];return`<pre data-language="${e}"${super.generateAttributeString(t)}>${this.children.map((e=>e.toHtml(t)))}</pre>`}clone(t){const e=Ie.from(this.toJSON());return e.parent=t,e}apply(n){if(n instanceof O&&I.executeTheStrategy(n,this),n.isFlushable){const n=m.getDOMByEntity(this);if(n){const r=e.getSubjectFromParentNodeByEventId(n,s);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(f.SELECTION_RANGE)}}I.register(x.DELETE_CODE_BLOCK,Ie.name,new class extends Ne{handleAction(t,e){const s=e.children[0],n=e.parent;if(n){let t=this.getPreviousNode(s),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(s),r=0),n.apply(new xt(e));const i=t?m.getDOMByEntity(t):null;if(0===n.children.length){const s=ge.from({id:l(),type:"paragraph",nodes:[{id:l(),type:"text",text:""}]});e.parent.apply(new z([s])),t=s.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(s,r,i,o){const c=m.getDOMByEntity(o);if(c){const o=e.getSubjectFromParentNodeByEventId(c,n);o&&t.notify(o,{node:s,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t?t.getRangeEndOffset():0}}),I.register(x.DELETE_CHILDREN,Ie.name,new _e),I.register(x.SWITCH_OUT_FROM_CODE_BLOCK,Ie.name,new class extends dt{handleAction(s,r){const{content:i,language:o}=s,c=i.split("\n"),a=new be(c.slice(0,c.length-2).join("\n"),o);a.isFlushable=!1,r.children[0].apply(a);const u=ge.from({id:l(),type:"paragraph",nodes:[{id:l(),text:"",type:"text"}]});r.parent.apply(new pt(r,u));const h=m.getDOMByEntity(r);if(h){const s=e.getSubjectFromParentNodeByEventId(h,n);s&&t.notify(s,{node:u.children[0]})}}}),I.register(x.INSERT_IMAGE_TO_BLOCK,Ie.name,new class extends dt{handleAction(t,e){e.parent.apply(new pt(e,t.imageBlockToBeInserted))}}),Ie.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element",Ie.dtoName="RTECodeBlock";export{ot as $,I as A,g as B,A as C,B as D,wt as E,ce as F,mt as G,kt as H,pt as I,fe as J,pe as K,Ne as L,O as M,S as N,_e as O,Te as P,Se as Q,oe as R,he as S,ve as T,Qt as U,Rt as V,it as W,rt as X,T as Y,vt as Z,Et as _,W as a,at as a0,ct as a1,Y as a2,ye as a3,L as a4,Ee as a5,j as a6,Tt as a7,G as a8,R as a9,Mt as aA,Ct as aB,$t as aC,_t as aD,It as aE,$e as aa,Re as ab,Ht as ac,$ as ad,je as ae,M as af,Lt as ag,Nt as ah,st as ai,be as aj,Ce as ak,ie as al,jt as am,ut as an,Gt as ao,Xt as ap,Q as aq,lt as ar,p as as,Wt as at,zt as au,Vt as av,we as aw,Ae as ax,bt as ay,v as az,ge as b,Bt as c,H as d,dt as e,z as f,K as g,ue as h,f as i,x as j,Z as k,xt as l,D as m,U as n,b as o,Le as p,Ie as q,xe as r,m as s,ke as t,P as u,J as v,Dt as w,Pt as x,C as y,y as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as n,g as a}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as l,I as s}from"./p-8ce9e214.js";import{c as v}from"./p-8fc0a820.js";import{a as g}from"./p-5447a8e8.js";import{C as b}from"./p-2c737fc8.js";import{h as d,e as c}from"./p-cc569b54.js";import{A as u}from"./p-68744e7e.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-36a57431.js";import"./p-331a62d5.js";import"./p-aa135628.js";import"./p-8c30a60d.js";import"./p-b75ee3ba.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-78a57a17.js";const h=[{payloadKey:"EVENTFUL_IS_TRUE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.",payloadValue:t=>!0===t.eventful},{payloadKey:"EVENTFUL_IS_FALSE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.",payloadValue:t=>!1===t.eventful}];var p=function(t,e,i,n){var a,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const f=class{constructor(i){t(this,i),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=v(f,g),this.eventPrevent=new b([g],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new l(h),this.ariaAttributesValueMapper=new u((()=>this.host.shadowRoot.querySelector("a")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"}}),this.link=f.defaultLink,this.size="default",this.iconType="icon",this.iconAlign="left",this.label="",this.disabled=!1,this.danger=!1,this.eventful=!1,this.target="_self",this.onClick=t=>{(this.isButton()||this.eventful)&&(this.disabled||this.clickEventEmitter.emit(this.host.dataset.key,t).defaultPrevented)&&t.preventDefault()}}componentWillLoad(){this.label||(this.label=this.host.textContent),this.host.innerHTML=d.sanitize("",c)}render(){const t=this.isButton(),e=t?f.defaultLink:this.link;return o(i(n,{class:{"vega-button-link-disabled":this.disabled}},i("a",{part:"link",tabIndex:this.disabled?-1:0,role:t?"button":"link","aria-label":this.label.trim()||"No label defined","aria-disabled":this.disabled?"true":null,href:e,onClick:this.onClick,class:{"vega-button-link":!0,[`vega-button-link-size-${this.size}`]:!0,"vega-button-link-left-button":this.hasIconButton("left"),"vega-button-link-right-button":this.hasIconButton("right"),"vega-button-link-danger":this.danger,icon:!!this.icon,[this.size]:!0},rel:"noopener noreferrer",target:this.target},i("div",{class:"vega-button-link-content","aria-hidden":"true"},this.renderContent()))),this.host)}hasIconButton(t){return this.icon&&"button"===this.iconType&&this.iconAlign===t}renderContent(){return this.icon?i("vega-flex",{alignItems:"center",gap:this.getGapByButtonSize(),justifyContent:"center"},"left"===this.iconAlign&&this.renderIcon(),this.renderLabel(),"right"===this.iconAlign&&this.renderIcon()):this.renderLabel()}getGapByButtonSize(){return"large"===this.size?"icon"===this.iconType?"size-8":"size-12":"small"===this.size?"icon"===this.iconType?"size-4":"size-8":"default"===this.size?"size-8":void 0}renderLabel(){return this.label&&i("span",{class:"vega-button-link-label",part:"label-container"},i("vega-text",{part:"label-text",text:this.label}))}renderIcon(){return i("div",{class:`vega-button-link-${this.iconType} vega-flex-shrink-0 v-min-w-min`},"icon"===this.iconType?this.renderVegaIcon():i("div",{class:"vega-button-link-button-container"},this.renderVegaIcon()))}renderVegaIcon(){return i("vega-icon",{icon:this.icon,size:"large"===this.size?"size-24":"size-16"})}isButton(){return!this.link||this.link===f.defaultLink}get host(){return a(this)}};f.defaultLink="javascript:void(0);",p([s()],f.prototype,"globalSlimmers",void 0),p([r()],f.prototype,"clickEventEmitter",void 0),p([r()],f.prototype,"eventPrevent",void 0),p([r()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),p([r()],f.prototype,"ariaAttributesValueMapper",void 0),f.style=':host{display:inline-block;position:relative;margin:0px;line-height:normal}a{text-decoration:none;color:rgba(var(--v-text-link, 19, 98, 226, 1));background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));display:inline-block;outline:none}a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}a.default:focus-visible,a.large:focus-visible{border-radius:8px}a.small:focus-visible{border-radius:4px}a.icon:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:4px}a:not(.vega-button-link-danger):visited vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):visited vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:active{text-decoration:none}a:active:hover .vega-button-link-label{text-decoration:none}a.vega-button-link-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}a.vega-button-link-danger:hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-danger:focus-visible{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}a.vega-button-link-danger:focus-visible.default:focus-visible,a.vega-button-link-danger:focus-visible.large:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:4px}a.vega-button-link-danger:focus-visible.small:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}a .vega-button-link-button-container{border-radius:9999px;cursor:pointer;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1));box-sizing:border-box;border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));display:flex;align-items:center;justify-content:center}a:visited .vega-button-link-button-container{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1));border-color:var(--v-text-link-visited)}a:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a.vega-button-link-danger .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn, 230, 50, 87, 1))}a.vega-button-link-danger:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-danger-btn-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-size-default .vega-button-link-button-container{width:40px;height:40px;padding:10px}a.vega-button-link-size-large .vega-button-link-button-container{width:56px;height:56px;padding:14px}a.vega-button-link-size-small .vega-button-link-button-container{width:32px;height:32px;padding:6px}a.vega-button-link-size-default .vega-button-link-icon,a.vega-button-link-size-small .vega-button-link-icon{width:16px;height:16px;line-height:16px}a.vega-button-link-size-large .vega-button-link-icon{width:24px;height:24px;line-height:24px}a .vega-button-link-label{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.vega-button-link-disabled){pointer-events:none}:host(.vega-button-link-disabled) a{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));text-decoration:none;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}:host(.vega-button-link-disabled) a.vega-button-link .vega-button-link-button-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a:focus>.vega-button-link-content{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.button-group-item-button-tertiary.vega-button-link-disabled) a{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}';export{f as vega_button_link}
|
|
1
|
+
import{r as t,c as e,h as i,H as n,g as a}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{I as r}from"./p-6e1ab235.js";import{V as l,I as s}from"./p-8ce9e214.js";import{c as v}from"./p-4ea477d5.js";import{a as g}from"./p-6a6c1279.js";import{C as b}from"./p-5536146c.js";import{h as d,e as c}from"./p-cc569b54.js";import{A as u}from"./p-68744e7e.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-36a57431.js";import"./p-331a62d5.js";import"./p-aa135628.js";import"./p-1dbf8d1f.js";import"./p-b75ee3ba.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-78a57a17.js";const h=[{payloadKey:"EVENTFUL_IS_TRUE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to true, the event will be emitted.",payloadValue:t=>!0===t.eventful},{payloadKey:"EVENTFUL_IS_FALSE",payloadDescription:"@deprecated Specifies whether the button link will emit a vegaClick event when clicked. If set to false, the component will function as a regular link to another page or URL, and no events will be emitted.",payloadValue:t=>!1===t.eventful}];var p=function(t,e,i,n){var a,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const f=class{constructor(i){t(this,i),this.vegaClick=e(this,"vegaClick",7),this.click=e(this,"click",7),this.globalSlimmers={},this.clickEventEmitter=v(f,g),this.eventPrevent=new b([g],(()=>this.host)),this.vegaComponentUsageRuntimeMetricsSlimmer=new l(h),this.ariaAttributesValueMapper=new u((()=>this.host.shadowRoot.querySelector("a")),{"aria-label":{dependency:["data-aria-label","label"],defaultValue:"No label defined"}}),this.link=f.defaultLink,this.size="default",this.iconType="icon",this.iconAlign="left",this.label="",this.disabled=!1,this.danger=!1,this.eventful=!1,this.target="_self",this.onClick=t=>{(this.isButton()||this.eventful)&&(this.disabled||this.clickEventEmitter.emit(this.host.dataset.key,t).defaultPrevented)&&t.preventDefault()}}componentWillLoad(){this.label||(this.label=this.host.textContent),this.host.innerHTML=d.sanitize("",c)}render(){const t=this.isButton(),e=t?f.defaultLink:this.link;return o(i(n,{class:{"vega-button-link-disabled":this.disabled}},i("a",{part:"link",tabIndex:this.disabled?-1:0,role:t?"button":"link","aria-label":this.label.trim()||"No label defined","aria-disabled":this.disabled?"true":null,href:e,onClick:this.onClick,class:{"vega-button-link":!0,[`vega-button-link-size-${this.size}`]:!0,"vega-button-link-left-button":this.hasIconButton("left"),"vega-button-link-right-button":this.hasIconButton("right"),"vega-button-link-danger":this.danger,icon:!!this.icon,[this.size]:!0},rel:"noopener noreferrer",target:this.target},i("div",{class:"vega-button-link-content","aria-hidden":"true"},this.renderContent()))),this.host)}hasIconButton(t){return this.icon&&"button"===this.iconType&&this.iconAlign===t}renderContent(){return this.icon?i("vega-flex",{alignItems:"center",gap:this.getGapByButtonSize(),justifyContent:"center"},"left"===this.iconAlign&&this.renderIcon(),this.renderLabel(),"right"===this.iconAlign&&this.renderIcon()):this.renderLabel()}getGapByButtonSize(){return"large"===this.size?"icon"===this.iconType?"size-8":"size-12":"small"===this.size?"icon"===this.iconType?"size-4":"size-8":"default"===this.size?"size-8":void 0}renderLabel(){return this.label&&i("span",{class:"vega-button-link-label",part:"label-container"},i("vega-text",{part:"label-text",text:this.label}))}renderIcon(){return i("div",{class:`vega-button-link-${this.iconType} vega-flex-shrink-0 v-min-w-min`},"icon"===this.iconType?this.renderVegaIcon():i("div",{class:"vega-button-link-button-container"},this.renderVegaIcon()))}renderVegaIcon(){return i("vega-icon",{icon:this.icon,size:"large"===this.size?"size-24":"size-16"})}isButton(){return!this.link||this.link===f.defaultLink}get host(){return a(this)}};f.defaultLink="javascript:void(0);",p([s()],f.prototype,"globalSlimmers",void 0),p([r()],f.prototype,"clickEventEmitter",void 0),p([r()],f.prototype,"eventPrevent",void 0),p([r()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),p([r()],f.prototype,"ariaAttributesValueMapper",void 0),f.style=':host{display:inline-block;position:relative;margin:0px;line-height:normal}a{text-decoration:none;color:rgba(var(--v-text-link, 19, 98, 226, 1));background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));display:inline-block;outline:none}a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}a.default:focus-visible,a.large:focus-visible{border-radius:8px}a.small:focus-visible{border-radius:4px}a.icon:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:4px}a:not(.vega-button-link-danger):visited vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):visited vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):hover vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):active vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[fill=currentColor]{fill:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:not(.vega-button-link-danger):focus-visible vega-icon svg *[stroke=currentColor]{stroke:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}a:active{text-decoration:none}a:active:hover .vega-button-link-label{text-decoration:none}a.vega-button-link-danger{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}a.vega-button-link-danger:hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-danger:focus-visible{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}a.vega-button-link-danger:focus-visible.default:focus-visible,a.vega-button-link-danger:focus-visible.large:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:4px}a.vega-button-link-danger:focus-visible.small:focus-visible{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}a .vega-button-link-button-container{border-radius:9999px;cursor:pointer;background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1));color:rgba(var(--v-text-link, 19, 98, 226, 1));box-sizing:border-box;border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));display:flex;align-items:center;justify-content:center}a:visited .vega-button-link-button-container{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1));border-color:var(--v-text-link-visited)}a:hover .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-hover, 4, 112, 236, 1));background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1));color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}a:focus .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1))}a:active .vega-button-link-button-container{border:2px solid rgba(var(--v-border-secondary-btn-active, 29, 65, 195, 1));background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1));color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}a.vega-button-link-danger .vega-button-link-button-container{border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1));color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}a.vega-button-link-danger:hover .vega-button-link-button-container{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1));background-color:rgba(var(--v-bg-danger-tertiary-hover, 255, 87, 114, 0.2));color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}a.vega-button-link-danger:focus .vega-button-link-button-container{border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1))}a.vega-button-link-danger:active .vega-button-link-button-container{border-color:rgba(var(--v-border-color-danger-active, 189, 41, 71, 1));background-color:rgba(var(--v-bg-danger-tertiary-active, 189, 41, 71, 0.2));color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}a.vega-button-link-size-default .vega-button-link-button-container{width:40px;height:40px;padding:10px}a.vega-button-link-size-large .vega-button-link-button-container{width:56px;height:56px;padding:14px}a.vega-button-link-size-small .vega-button-link-button-container{width:32px;height:32px;padding:6px}a.vega-button-link-size-default .vega-button-link-icon,a.vega-button-link-size-small .vega-button-link-icon{width:16px;height:16px;line-height:16px}a.vega-button-link-size-large .vega-button-link-icon{width:24px;height:24px;line-height:24px}a .vega-button-link-label{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content}a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-small .vega-button-link-label{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;letter-spacing:0px}}a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-default .vega-button-link-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){a.vega-button-link-size-large .vega-button-link-label{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.vega-button-link-disabled){pointer-events:none}:host(.vega-button-link-disabled) a{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));text-decoration:none;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}:host(.vega-button-link-disabled) a.vega-button-link .vega-button-link-button-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));border:2px solid rgba(var(--v-border-secondary-btn-disabled, 176, 180, 181, 1));background-color:rgba(var(--v-bg-action-secondary, 252, 252, 252, 1))}:host(.vega-button-link-disabled) a:focus>.vega-button-link-content{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.button-group-item-button-tertiary.vega-button-link-disabled) a{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}';export{f as vega_button_link}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as r,r as e,c as t,H as o,g as s}from"./p-6b2342e0.js";import{V as a,I as i}from"./p-8ce9e214.js";import{c as l,V as c,I as h}from"./p-6e1ab235.js";import{s as d}from"./p-519a7d55.js";import{T as n}from"./p-fb5ea4b2.js";import{c as b}from"./p-8387896e.js";import{i as p}from"./p-
|
|
1
|
+
import{h as r,r as e,c as t,H as o,g as s}from"./p-6b2342e0.js";import{V as a,I as i}from"./p-8ce9e214.js";import{c as l,V as c,I as h}from"./p-6e1ab235.js";import{s as d}from"./p-519a7d55.js";import{T as n}from"./p-fb5ea4b2.js";import{c as b}from"./p-8387896e.js";import{i as p}from"./p-1dbf8d1f.js";import{c as v}from"./p-4ea477d5.js";import{a as w}from"./p-6a6c1279.js";import{T as m}from"./p-8ebe30a8.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-36a57431.js";import"./p-331a62d5.js";import"./p-aa135628.js";import"./p-b75ee3ba.js";import"./p-f485448a.js";import"./p-cb378636.js";var f=function(r,e,t,o){var s,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i};class g extends c{constructor(){super(...arguments),this.handleClick=r=>{this.disabled?r.stopPropagation():("vega"!==p.getSemantics(this.host).namespace&&r.stopPropagation(),this.clickEventEmitter.emit())}}render(){const e="clear"===this.variant,t=!e&&!!this.color;return r("div",{class:{"vega-color-swatch-container":!0,[`size-${this.size}`]:!0,[`shape-${this.shape}`]:!0,"swatch-clear":e},role:"button",part:"swatch-container","aria-label":this.getAriaLabel(),"aria-disabled":this.disabled?"true":"false",tabIndex:this.disabled?-1:0,onClick:this.handleClick,onKeyDown:b({composed:!0})},r("div",{class:"swatch",part:"swatch"},t&&r("span",{class:"color-fill",style:this.getFillColorStyles()}),e&&r("span",{class:"clear-line"}),this.selected&&!e&&r("vega-icon",{class:"check-icon",icon:"checkmark",size:"size-16",color:this.getCheckMarkColor()})),this.label&&this.renderLabel())}renderLabel(){return r("vega-font",{class:"swatch-label",variant:"font-field-value",color:this.disabled?"text-disabled":"text-primary"},this.label)}getAriaLabel(){return this.label?this.label:"clear"===this.variant?this.translationSlimmer.t("Clear color"):this.color?this.translationSlimmer.t("Color {0}",this.color):this.translationSlimmer.t("Color swatch")}getFillColorStyles(){const r={};return this.color&&(r.backgroundColor=this.color),r}getCheckMarkColor(){return this.color?new n(this.color).isDark()?"text-white":"text-black":"text-primary"}}f([l()],g.prototype,"host",void 0),f([l()],g.prototype,"variant",void 0),f([l()],g.prototype,"label",void 0),f([l()],g.prototype,"color",void 0),f([l()],g.prototype,"selected",void 0),f([l()],g.prototype,"size",void 0),f([l()],g.prototype,"disabled",void 0),f([l()],g.prototype,"shape",void 0),f([l()],g.prototype,"clickEventEmitter",void 0),f([l()],g.prototype,"translationSlimmer",void 0);var u=function(r,e,t,o){var s,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i};const x=class{constructor(r){e(this,r),this.vegaClick=t(this,"vegaClick",7),this.click=t(this,"click",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.translationSlimmer=new m,this.vegaColorSwatchRenderer=new g,this.clickEventEmitter=v(x,w),this.color="",this.selected=!1,this.label="",this.size="small",this.disabled=!1,this.variant="swatch",this.shape="basket"}render(){return d(r(o,{class:{disabled:this.disabled}},this.vegaColorSwatchRenderer.render()),this.host)}get host(){return s(this)}};u([i()],x.prototype,"globalSlimmers",void 0),u([h()],x.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),u([h()],x.prototype,"translationSlimmer",void 0),u([h()],x.prototype,"vegaColorSwatchRenderer",void 0),u([h()],x.prototype,"clickEventEmitter",void 0),x.style=":host{display:inline-block;vertical-align:middle}.vega-color-swatch-container{display:flex;flex-direction:row;align-items:center;border-radius:4px}.swatch{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:relative;flex-shrink:0;overflow:hidden}.shape-basket .swatch{border-radius:8px}.shape-block .swatch{border-radius:0px}.check-icon{position:relative;z-index:1}.swatch-clear .swatch{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:1px;border-style:solid;border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1))}.swatch-clear .swatch .clear-line{position:absolute;width:141%;height:0;border-top-width:1px;border-left-width:0px;border-bottom-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-danger, 230, 50, 87, 1));transform:rotate(-45deg);transform-origin:center}.color-fill{position:absolute;display:block;top:0;left:0;width:100%;height:100%}.size-extra-small .swatch{width:24px;height:24px;min-width:24px}.size-extra-small.shape-basket .swatch{border-radius:4px}.size-small .swatch{width:40px;height:40px;min-width:40px}.size-small.shape-basket{border-radius:8px}.size-medium .swatch{width:48px;height:48px;min-width:48px}.size-medium.shape-basket{border-radius:8px}@media (hover: hover){:host(:not(.disabled)) .swatch:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host(:not(.disabled)) .swatch-clear .swatch:hover{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}:host(:not(.disabled)) .swatch-clear .swatch:hover .clear-line{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}}.vega-color-swatch-container:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.vega-color-swatch-container:focus-visible .swatch{border-width:1px;border-style:solid;border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.vega-color-swatch-container:focus-visible.swatch-clear{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:2px}.vega-color-swatch-container:focus-visible.swatch-clear .swatch{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}.vega-color-swatch-container:focus-visible.swatch-clear .swatch .clear-line{border-color:rgba(var(--v-border-color-danger-hover, 255, 87, 114, 1))}:host(:not(.disabled)) .vega-color-swatch-container{cursor:pointer}:host(.disabled) .vega-color-swatch-container{cursor:not-allowed}:host(.disabled) .swatch{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1));pointer-events:none}:host(.disabled) .swatch .color-fill,:host(.disabled) .swatch .check-icon{opacity:0.5}:host(.disabled) .swatch .label-container{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.disabled) .swatch .clear-line{border-color:rgba(var(--v-border-color-input-field-disabled, 222, 225, 227, 1))}.swatch-label{margin-left:8px}";export{x as vega_color_swatch}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,F as e,r as i,c as s,H as a,g as n}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as o,V as l,I as p}from"./p-6e1ab235.js";import{V as h,I as c}from"./p-8ce9e214.js";import{V as d}from"./p-
|
|
1
|
+
import{h as t,F as e,r as i,c as s,H as a,g as n}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as o,V as l,I as p}from"./p-6e1ab235.js";import{V as h,I as c}from"./p-8ce9e214.js";import{V as d}from"./p-d1f47512.js";import{B as f}from"./p-b3420fcf.js";import{c as m}from"./p-4ea477d5.js";import{f as g}from"./p-6a6c1279.js";import"./p-cb378636.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-fb5ea4b2.js";import"./p-4866e390.js";import"./p-b75ee3ba.js";import"./p-cc569b54.js";import"./p-6a334573.js";import"./p-36a57431.js";import"./p-aa135628.js";import"./p-1dbf8d1f.js";const x=`© ${(new Date).getFullYear()} Heartland Payment Systems, LLC – a Global Payments company. All rights reserved.`,v=`© ${(new Date).getFullYear()} Global Payments Inc. All rights reserved.`;var w=function(t,e,i,s){var a,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(r=(n<3?a(r):n>3?a(e,i,r):a(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class u extends l{render(){return this.additionalLinks.length>0&&t(e,null,this.hideDefaultLinks?null:t("span",{class:"v-separator"}),this.additionalLinks.map(((t,e)=>this.renderAdditionalLink(t,e))))}renderAdditionalLink(i,s){return i.URL&&i.label&&t(e,null,t("a",{id:i.id,target:i.target,href:i.URL,onClick:t=>this.onAdditionalLinkClick(t,i)},i.label),this.additionalLinks.length===s+1?null:t("span",{class:"v-separator"}))}onAdditionalLinkClick(t,e){this.additionalLinkClickEventEmitter.emit(e).defaultPrevented&&t.preventDefault()}}w([o()],u.prototype,"additionalLinks",void 0),w([o()],u.prototype,"hideDefaultLinks",void 0),w([o()],u.prototype,"additionalLinkClickEventEmitter",void 0);var y=function(t,e,i,s){var a,n=arguments.length,r=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(r=(n<3?a(r):n>3?a(e,i,r):a(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const b=class{constructor(t){i(this,t),this.vegaAdditionalLinkClick=s(this,"vegaAdditionalLinkClick",7),this.additionalLinkClick=s(this,"additionalLinkClick",7),this.globalSlimmers={},this.additionalLinkClickEventEmitter=m(b,g),this.additionalLinksRenderer=new u,this.vegaComponentUsageRuntimeMetricsSlimmer=new h,this.brandSwitchControllerSlimmer=new f,this.googlePrivacyPolicyUrl="https://policies.google.com/privacy",this.googleTermsOfServiceUrl="https://policies.google.com/terms",this.currentBranding=d.getBranding(),this.content=this.getDefaultContent(),this.termOfUseLabel="Terms of Use",this.termOfUseUrl=this.getDefaultTermsOfUseUrl(),this.termOfUseUrlTarget="_self",this.privacyPolicyLabel="Privacy Policy",this.privacyPolicyUrl=this.getDefaultPrivacyPolicyUrl(),this.privacyPolicyUrlTarget="_self",this.hideDefaultLinks=!1,this.additionalLinks=[],this.showDisclaimer=!1,this.disclaimerUrlTarget="_self"}render(){return r(t(a,{class:"v-text-center"},this.renderContent(),this.renderLinks(),this.renderDisclaimer()),this.host)}getDefaultContent(){return"heartland"===d.getBranding()?x:v}getDefaultTermsOfUseUrl(){return"heartland"===d.getBranding()?"https://www.heartland.us/terms":"https://www.globalpayments.com/terms-of-use"}getDefaultPrivacyPolicyUrl(){return"heartland"===d.getBranding()?"https://www.heartland.us/privacy-policy":"https://www.globalpayments.com/privacy-statement"}renderContent(){return t("div",{class:"vega-app-footer-content"},this.content!==v&&this.content!==x?this.content:this.getDefaultContent())}renderLinks(){return t("div",{class:"vega-link"},this.hideDefaultLinks?null:this.renderDefaultLinks(),this.additionalLinksRenderer.render())}renderDefaultLinks(){return t(e,null,t("a",{id:this.termOfUseUrlId,target:this.termOfUseUrlTarget,href:this.getTermsOfUseUrl()},this.termOfUseLabel),t("span",{class:"v-separator"}),t("a",{id:this.privacyPolicyUrlId,target:this.privacyPolicyUrlTarget,href:this.getPrivacyPolicyUrl()},this.privacyPolicyLabel))}getTermsOfUseUrl(){return"https://www.heartland.us/terms"!==this.termOfUseUrl&&"https://www.globalpayments.com/terms-of-use"!==this.termOfUseUrl?this.termOfUseUrl:this.getDefaultTermsOfUseUrl()}getPrivacyPolicyUrl(){return"https://www.heartland.us/privacy-policy"!==this.privacyPolicyUrl&&"https://www.globalpayments.com/privacy-statement"!==this.privacyPolicyUrl?this.privacyPolicyUrl:this.getDefaultPrivacyPolicyUrl()}renderDisclaimer(){return this.showDisclaimer&&t("div",{class:"vega-app-footer-disclaimer"},t("div",{class:"h-separator"}),t("div",{class:"vega-app-footer-disclaimer-content vega-link"},"This site is protected by reCAPTCHA and the"," ",t("a",{target:this.disclaimerUrlTarget,href:this.googlePrivacyPolicyUrl}," ","Google Privacy Policy"," ")," ","and"," ",t("a",{target:this.disclaimerUrlTarget,href:this.googleTermsOfServiceUrl}," ","Google Terms of Service"," "),"apply."))}get host(){return n(this)}};y([c()],b.prototype,"globalSlimmers",void 0),y([p()],b.prototype,"additionalLinkClickEventEmitter",void 0),y([p()],b.prototype,"additionalLinksRenderer",void 0),y([p()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),y([p()],b.prototype,"brandSwitchControllerSlimmer",void 0),b.style=':host{display:block;padding-left:0px;padding-right:0px}:host .h-separator{height:1px;background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-top:20px;margin-bottom:20px}:host .v-separator{display:inline-block;width:1px;margin-left:8px;margin-right:8px;background-color:rgba(70, 71, 101, 0.8)}:host>.vega-link{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap}:host>.vega-link a{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host>.vega-link a{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-link a{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-link a{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-app-footer-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));margin-bottom:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-app-footer-content{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-app-footer-content{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-app-footer-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-app-footer-disclaimer-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-app-footer-disclaimer-content{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){:host .vega-app-footer-disclaimer-content{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){:host .vega-app-footer-disclaimer-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;letter-spacing:0px}}:host(.v-text-center){text-align:center}:host .vega-link a{color:rgba(var(--v-text-link, 19, 98, 226, 1));border-radius:4px;text-decoration:none}:host .vega-link a:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host .vega-link a:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1));text-decoration:underline}:host .vega-link a:focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}:host .vega-link a:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1));text-decoration:underline}';export{b as vega_app_footer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,F as t,r as o,c as i,H as r,g as s}from"./p-6b2342e0.js";import{c as n,M as l,V as a,I as c}from"./p-6e1ab235.js";import{V as d,I as h}from"./p-8ce9e214.js";import{T as p}from"./p-8ebe30a8.js";import{s as g}from"./p-519a7d55.js";import{V as m}from"./p-6031bed1.js";import{A as u,a as b,b as v,c as f}from"./p-c78fe943.js";import{C as w}from"./p-5536146c.js";import{d as x,M as y,a as C,c as j,V as k,A as z,B as R}from"./p-6a6c1279.js";import{D as S}from"./p-36a57431.js";import{c as H}from"./p-8387896e.js";import{Z as V,T as M,O as L,_ as I,$ as A,v as F,m as B,h as D,a0 as O,k as _,l as P,a1 as K,a2 as T,z as W,a3 as E}from"./p-de1d0284.js";import{V as N}from"./p-d1f47512.js";import{D as $}from"./p-4edd7f8c.js";import{A as q}from"./p-68744e7e.js";import{f as U,a as G}from"./p-aa135628.js";import{K as J}from"./p-60a74fb7.js";import{c as Z}from"./p-613ddaab.js";import{b as Q}from"./p-53e3f259.js";import{i as X}from"./p-d27ae9ff.js";import"./p-f485448a.js";import"./p-2d0d575f.js";import"./p-cb378636.js";import"./p-ffdc25ec.js";import"./p-afcd8f04.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-1dbf8d1f.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-331a62d5.js";import"./p-6098c4bb.js";import"./p-02841589.js";import"./p-941a83db.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-a841cf13.js";import"./p-c51de680.js";import"./p-fb5ea4b2.js";import"./p-4866e390.js";import"./p-b75ee3ba.js";import"./p-cc569b54.js";import"./p-78a57a17.js";import"./p-6e9e7131.js";import"./p-262ec334.js";var Y=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class ee extends a{constructor(){super(...arguments),this.formTouched=!1,this.markFormTouched=()=>{this.formTouched=!0},this.resetTouchedState=()=>{this.formTouched=!1}}initialFormState(e){this.resetTouchedState(),this.resetColorRelatedFields(e),this.setFormFieldValues(e)}getFormRef(){return this.formRef}isFormTouched(){return this.formTouched}render(){return e("vega-form",{class:"table-properties-form",ref:e=>this.formRef=e,onMouseDown:this.markFormTouched},"TABLE"===this.type?this.tableFormRenderer.renderPropertiesFields():this.cellFormRenderer.renderPropertiesFields())}setFormFieldValues(e){this.formRef&&this.formRef.reset(e)}resetColorRelatedFields(e){if(this.formRef){if(e.borderColor){const e=this.formRef.querySelector('[data-vega-form="borderColor"]');e&&(e.value="")}if(e.backgroundColor){const e=this.formRef.querySelector('[data-vega-form="backgroundColor"]');e&&(e.value="")}}}}m.register({"align-center":u,"align-justify":b,"align-left":v,"align-right":f,"align-top":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M24 0H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 48 0 37.3 0 24S10.7 0 24 0zM64 176c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48V464c0 26.5-21.5 48-48 48H112c-26.5 0-48-21.5-48-48V176zm224 0c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48V336c0 26.5-21.5 48-48 48H336c-26.5 0-48-21.5-48-48V176z"/></svg>'},"align-bottom":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M24 512l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 464c-13.3 0-24 10.7-24 24s10.7 24 24 24zM64 336c0 26.5 21.5 48 48 48h64c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48l0 288zm224 0c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-160c0-26.5-21.5-48-48-48H336c-26.5 0-48 21.5-48 48l0 160z"/></svg>'},"align-middle":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M64 80c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48V232h64V144c0-26.5 21.5-48 48-48h64c26.5 0 48 21.5 48 48v88h40c13.3 0 24 10.7 24 24s-10.7 24-24 24H448v88c0 26.5-21.5 48-48 48H336c-26.5 0-48-21.5-48-48V280H224V432c0 26.5-21.5 48-48 48H112c-26.5 0-48-21.5-48-48V280H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H64V80z"/></svg>'},"objects-align-left":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill=\'currentColor\' d="M0 24C0 10.7 10.7 0 24 0S48 10.7 48 24l0 464c0 13.3-10.7 24-24 24s-24-10.7-24-24L0 24zM176 176l288 0 0-64-288 0 0 64zm-48-64c0-26.5 21.5-48 48-48l288 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-288 0c-26.5 0-48-21.5-48-48l0-64zm48 288l160 0 0-64-160 0 0 64zm-48-64c0-26.5 21.5-48 48-48l160 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-160 0c-26.5 0-48-21.5-48-48l0-64z"/></svg>'},"objects-align-center":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill=\'currentColor\' d="M400 176L48 176l0-64 352 0 0 64zm48-64c0-26.5-21.5-48-48-48L248 64l0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L48 64C21.5 64 0 85.5 0 112l0 64c0 26.5 21.5 48 48 48l152 0 0 64-88 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l88 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 88 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-88 0 0-64 152 0c26.5 0 48-21.5 48-48l0-64zM336 400l-224 0 0-64 224 0 0 64z"/></svg>'},"objects-align-right":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill=\'currentColor\' d="M512 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 464c0 13.3 10.7 24 24 24s24-10.7 24-24l0-464zM336 176L48 176l0-64 288 0 0 64zm48-64c0-26.5-21.5-48-48-48L48 64C21.5 64 0 85.5 0 112l0 64c0 26.5 21.5 48 48 48l288 0c26.5 0 48-21.5 48-48l0-64zM336 400l-160 0 0-64 160 0 0 64zm48-64c0-26.5-21.5-48-48-48l-160 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-64z"/></svg>'}}),Y([n()],ee.prototype,"type",void 0),Y([n()],ee.prototype,"tableFormRenderer",void 0),Y([n()],ee.prototype,"cellFormRenderer",void 0),Y([l("watchDefaultValueChange")],ee.prototype,"initialFormState",null);var te=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class oe extends a{getColors(){let e=[];return this.colors&&(e=this.colors.map((e=>this.isInDarkMode?e.dark:e.light))),e}getColorKey(e){let t="";if(this.colors){const o=this.colors.find((t=>this.isInDarkMode?t.dark===e:t.light===e));t=o?o.key:""}return t}getColorByKey(e){let t="";if(this.colors){const o=this.colors.find((t=>t.key===e));t=o?this.isInDarkMode?o.dark:o.light:""}return t}}te([n()],oe.prototype,"colors",void 0),te([n({writable:!0})],oe.prototype,"isInDarkMode",void 0);var ie=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class re extends a{constructor(){super(...arguments),this.dimensionFieldValidationRule=[{canEvaluate:e=>!!e,shouldShowError:()=>!0,evaluate:e=>({isValid:/^[0-9]*\.?[0-9]+(px|em|rem|%)?$/.test(e),message:""})}],this.handleFormChange=e=>{S.addUniqueObserverToNode(e,x,(async t=>{if(this.formRef){if((await this.formRef.valid()).isValid&&this.renderer.isFormTouched()){const t=await this.formRef.getValue();this.emitFormDataChange(e.dataset.vegaForm,t)}this.updateBorderDisplayColor(t.host),this.updateBackgroundDisplayColor(t.host)}})),e&&"VEGA-INPUT"===e.tagName&&S.addUniqueObserverToNode(e,y,this.markFormTouched)},this.emitFormDataChange=(e,t)=>{this.vegaChange.emit(t)},this.handleAlignmentButtonClick=async e=>{const t=e.currentTarget,o=t.dataset.formFieldName;this.formRef&&await this.formRef.setValue({[o]:t.dataset.id},{skipInvisible:!1})},this.clearBorderColor=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.borderColorPickerRef&&(this.borderColorPickerRef.value="",this.formRef&&this.formRef.setValue({borderColor:""})),this.colorPickerPopoverRef&&this.colorPickerPopoverRef.hide()}))},this.applyBorderColor=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.borderColorPickerRef&&this.formRef&&this.formRef.setValue({borderColor:this.controller.getColorKey(this.borderColorPickerRef.value)}),this.colorPickerPopoverRef&&this.colorPickerPopoverRef.hide()}))},this.handleBackgroundColorPickerChange=e=>{S.addUniqueObserverToNode(e,x,(e=>{const t=e.detail,o=this.controller.getColorKey(t)||t;this.formRef&&this.formRef.setValue({backgroundColor:o})}))},this.clearBackgroundColor=e=>{e.stopPropagation(),this.formRef&&this.formRef.setValue({backgroundColor:null})},this.markFormTouched=()=>{this.renderer.markFormTouched()}}get formRef(){return this.renderer.getFormRef()}renderBorderFields(){return e("vega-flex",{gap:"size-16",direction:"row",alignItems:"center"},e("vega-input-select",{"data-vega-form":"borderStyle",label:"Border Style",placeholder:"Select style",vegaDropdownProps:{searchable:!1,matchTargetWidth:!1},source:re.TABLE_BORDER_STYLES,ref:this.handleFormChange}),e("vega-input",{ref:this.handleFormChange,"data-vega-form":"borderWidth",label:"Weight",validationRules:this.dimensionFieldValidationRule}),this.renderBorderColorPicker())}renderBackgroundColorPicker(){return e("div",{class:"background-color-group"},e("vega-font",{class:"field-label",variant:"font-field-label",color:"text-primary"},"Background Color"),e("div",{class:"color-picker-container"},e("span",{role:"button",tabIndex:0,"aria-label":"Clear background color",onClick:this.clearBackgroundColor,onKeyDown:H(),class:"color-none"}),e("vega-divider",{direction:"vertical"}),e("vega-color-picker",{isInline:!0,ref:this.handleBackgroundColorPickerChange,colors:this.controller.getColors()}),e("vega-input",{ref:this.handleFormChange,type:"hidden","data-vega-form":"backgroundColor"})))}renderDimensionFields(t=!1){return e("vega-flex",{gap:"size-16",direction:"row",alignItems:"end"},e("vega-input",{ref:this.handleFormChange,"data-vega-form":"width",label:"Width",validationRules:this.dimensionFieldValidationRule}),e("vega-input",{ref:this.handleFormChange,"data-vega-form":"height",label:"Height",validationRules:this.dimensionFieldValidationRule}),t&&e("vega-input",{ref:this.handleFormChange,"data-vega-form":"padding",label:"Padding",validationRules:this.dimensionFieldValidationRule}))}renderAlignmentField(t,o,i,r){return e("vega-flex",{direction:"row",gap:"0",class:"text-alignment-button-group"},e("vega-input",{ref:this.handleFormChange,"data-vega-form":i,type:"hidden"}),t.map((t=>e("button",{"data-id":t,"data-form-field-name":i,class:`text-alignment-${t}`,"aria-label":r[t],onClick:this.handleAlignmentButtonClick},e("vega-icon",{icon:m.getIconKey(`${o}${t}`)})))))}renderActionButtons(){return e("div",{class:"action-buttons"},e("vega-button-link",{ref:this.handleSave},"Save"),e("vega-button-link",{ref:this.handleCancel},"Cancel"))}renderBorderColorPicker(){return e("div",{class:"color-picker-group"},e("vega-font",{class:"field-label",variant:"font-field-label",color:"text-primary"},"Color"),e("vega-popover",{ref:e=>{this.colorPickerPopoverRef=e,S.addUniqueObserverToNode(e,j,(async()=>{if(this.formRef&&this.borderColorPickerRef){const e=await this.formRef.getValue();this.borderColorPickerRef.value=this.controller.getColorByKey(e.borderColor)}}))},trigger:"click",isScreenPosition:!0},e("div",{slot:"popover-content",class:"color-picker-container"},e("vega-input",{ref:this.handleFormChange,"data-vega-form":"borderColor",type:"hidden"}),e("span",{role:"button",tabIndex:0,"aria-label":"Clear border color",onKeyDown:H(),class:"display-color-placeholder color-none"})),e("vega-box",{slot:"popover"},e("vega-color-picker",{ref:e=>{this.borderColorPickerRef=e},isInline:!0,colors:this.controller.getColors()}),e("vega-flex",{margin:{top:"size-16"},justifyContent:"end",gap:"size-16"},e("vega-button-link",{ref:this.clearBorderColor},"Clear"),e("vega-button-link",{ref:this.applyBorderColor},"Apply")))))}updateBorderDisplayColor(e){if(e&&"borderColor"===e.dataset.vegaForm){const t=this.controller.getColorByKey(e.value),o=e.nextElementSibling;o.style.backgroundColor=t,t?o.classList.remove("color-none"):o.classList.add("color-none"),this.borderColorPickerRef&&t!==this.borderColorPickerRef.value&&(this.borderColorPickerRef.value=t)}}updateBackgroundDisplayColor(e){if(e&&"backgroundColor"===e.dataset.vegaForm){const t=this.controller.getColorByKey(e.value);e.previousElementSibling.value=t}}}re.TABLE_BORDER_STYLES=V.map((e=>({id:e,displayName:e.charAt(0).toUpperCase()+e.slice(1)}))),ie([n()],re.prototype,"controller",void 0),ie([n()],re.prototype,"defaultValue",void 0),ie([n()],re.prototype,"translationSlimmer",void 0),ie([n()],re.prototype,"renderer",void 0),ie([n()],re.prototype,"styleMap",void 0),ie([n()],re.prototype,"vegaChange",void 0),ie([n()],re.prototype,"vegaCancel",void 0),ie([n()],re.prototype,"vegaSave",void 0);class se extends re{constructor(){super(...arguments),this.handleSave=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.vegaSave.emit()}))},this.handleCancel=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.vegaCancel.emit(this.defaultValue)}))}}renderPropertiesFields(){return e(t,null,e("vega-font",{variant:"font-h6",color:"text-primary"},"Table properties"),e("vega-divider",{direction:"horizontal"}),this.renderBorderFields(),e("vega-divider",{direction:"horizontal"}),this.renderBackgroundColorPicker(),e("vega-divider",{direction:"horizontal"}),this.renderDimensionFields(),e("vega-divider",{direction:"horizontal"}),this.renderTextAlignmentField(),e("vega-divider",{direction:"horizontal"}),this.renderActionButtons())}renderTextAlignmentField(){return e("div",{class:"text-alignment-container"},e("vega-font",{variant:"font-field-label",color:"text-primary"},"Alignment"),e("vega-flex",{direction:"row",gap:"size-16"},this.renderAlignmentField(["left","center","right"],"objects-align-","textAlign",{left:this.translationSlimmer.t("Align table left"),center:this.translationSlimmer.t("Align table center"),right:this.translationSlimmer.t("Align table right")})))}}class ne extends re{constructor(){super(...arguments),this.changesNeedApply={},this.emitFormDataChange=(e,t)=>{this.vegaChange.emit(this.mergeFormDataWithStyleMap({[e]:t[e]}))},this.handleSave=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.vegaSave.emit()}))},this.handleCancel=e=>{S.addUniqueObserverToNode(e,C,(()=>{this.vegaCancel.emit(this.styleMap)}))}}onDefaultValueChange(){this.resetChangesNeedApply()}renderPropertiesFields(){return e(t,null,e("vega-font",{variant:"font-h6",color:"text-primary"},"Cell properties"),e("vega-divider",{direction:"horizontal"}),super.renderBorderFields(),e("vega-divider",{direction:"horizontal"}),super.renderBackgroundColorPicker(),e("vega-divider",{direction:"horizontal"}),this.renderDimensionFields(!0),e("vega-divider",{direction:"horizontal"}),this.renderTextAlignmentField(),e("vega-divider",{direction:"horizontal"}),this.renderActionButtons())}renderTextAlignmentField(){return e("div",{class:"text-alignment-container"},e("vega-font",{variant:"font-field-label",color:"text-primary"},"Text Alignment"),e("vega-flex",{direction:"row",gap:"size-16"},this.renderAlignmentField(["left","center","right","justify"],"align-","textAlign",{left:this.translationSlimmer.t("Align text left"),center:this.translationSlimmer.t("Align text center"),right:this.translationSlimmer.t("Align text right"),justify:this.translationSlimmer.t("Justify text")}),this.renderAlignmentField(["top","middle","bottom"],"align-","verticalAlign",{top:this.translationSlimmer.t("Align vertically top"),middle:this.translationSlimmer.t("Align vertically middle"),bottom:this.translationSlimmer.t("Align vertically bottom")})))}mergeFormDataWithStyleMap(e){this.changesNeedApply=Object.assign(Object.assign({},this.changesNeedApply),e);const t={};for(const e in this.styleMap)t[e]=Object.assign(Object.assign({},this.styleMap[e]),this.changesNeedApply);return t}resetChangesNeedApply(){this.changesNeedApply={}}}!function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);s>3&&n&&Object.defineProperty(t,o,n)}([l("watchDefaultValueChange")],ne.prototype,"onDefaultValueChange",null);var le=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const ae=class{constructor(e){o(this,e),this.vegaChange=i(this,"vegaChange",1),this.vegaCancel=i(this,"vegaCancel",1),this.vegaSave=i(this,"vegaSave",1),this.globalSlimmers={},this.translationSlimmer=new p,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.renderer=new ee,this.tableFormRenderer=new se,this.cellFormRenderer=new ne,this.controller=new oe,this.darkModeStateSlimmer=new $,this.ariaAttributesValueMapper=new q((()=>this.host),{"aria-label":{dependency:["data-aria-label"],defaultValue:()=>this.translationSlimmer.t("CELL"===this.type?"Cell properties":"Table properties")}}),this.changeEventPreventSlimmer=new w([x],(()=>this.renderer.getFormRef())),this.isInDarkMode=N.isDarkMode(),this.type="TABLE",this.colors=[]}watchDefaultValueChange(e){}render(){return g(e(r,{role:"form"},this.renderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{defaultValue:["watchDefaultValueChange"]}}};le([h()],ae.prototype,"globalSlimmers",void 0),le([c()],ae.prototype,"translationSlimmer",void 0),le([c()],ae.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),le([c()],ae.prototype,"renderer",void 0),le([c()],ae.prototype,"tableFormRenderer",void 0),le([c()],ae.prototype,"cellFormRenderer",void 0),le([c()],ae.prototype,"controller",void 0),le([c()],ae.prototype,"darkModeStateSlimmer",void 0),le([c()],ae.prototype,"ariaAttributesValueMapper",void 0),le([c()],ae.prototype,"changeEventPreventSlimmer",void 0),ae.style=':host{display:block;max-width:420px}:host .table-properties-form{display:flex;flex-direction:column;gap:16px}:host .color-picker-group{display:flex;gap:8px;flex-direction:column}:host .color-picker-group .color-picker-container{flex-shrink:0}:host .color-picker-group .display-color-placeholder{display:block;box-sizing:border-box;border-radius:4px;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));width:24px;height:24px}:host .color-picker-group .display-color-placeholder.color-none{box-sizing:content-box}:host .text-alignment-container>vega-font{display:block;margin-bottom:8px}:host .text-alignment-button-group button{display:flex;justify-content:center;align-items:center;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));padding-top:16px;padding-bottom:16px;padding-left:16px;padding-right:16px;position:relative;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host .text-alignment-button-group button:not(:first-of-type){margin-left:-1px}:host .text-alignment-button-group button:first-of-type{border-top-left-radius:4px;border-bottom-left-radius:4px}:host .text-alignment-button-group button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}:host .text-alignment-button-group button:hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1));z-index:1}:host .text-alignment-button-group button:active{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));z-index:1}:host .text-alignment-button-group button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:-2px;z-index:2}:host .text-alignment-button-group vega-input[value=left]~.text-alignment-left,:host .text-alignment-button-group vega-input[value=center]~.text-alignment-center,:host .text-alignment-button-group vega-input[value=right]~.text-alignment-right,:host .text-alignment-button-group vega-input[value=justify]~.text-alignment-justify,:host .text-alignment-button-group vega-input[value=top]~.text-alignment-top,:host .text-alignment-button-group vega-input[value=middle]~.text-alignment-middle,:host .text-alignment-button-group vega-input[value=bottom]~.text-alignment-bottom{border:1px solid rgba(var(--v-border-input-field-focus, 19, 98, 226, 1));background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1));z-index:1}:host .action-buttons{text-align:right}:host .action-buttons vega-button-link{margin-left:24px}:host .background-color-group{display:flex;gap:8px;flex-direction:column}:host .color-picker-container{box-sizing:border-box;border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));border-radius:8px;padding-left:12px;padding-right:12px;display:flex;gap:8px;align-items:center;padding-top:11px;padding-bottom:11px}:host .color-picker-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .color-picker-container:focus-within{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .color-picker-container vega-divider{height:24px !important}:host .color-picker-container .color-none{display:block;box-sizing:border-box;border-radius:4px;width:24px;height:24px;border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1));overflow:hidden;cursor:pointer;position:relative}:host .color-picker-container .color-none:hover{box-shadow:0 0 0 4px rgba(230, 50, 87, 0.25)}:host .color-picker-container .color-none:before{content:"";position:absolute;border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1));border-left-width:0px;border-right-width:0px;border-bottom-width:0px;top:0;left:-10px;width:32px;height:0;transform-origin:top right;transform:rotate(-45deg)}:host(.vega-hidden){display:none}';var ce=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class de extends a{constructor(){super(...arguments),this.handleWidgetSelection=e=>{e.stopPropagation(),this.isSelected=!0},this.handleEditorContentClick=()=>{this.isSelected=!1},this.registerEditorContentClickListener=()=>{this.editorContentContainerRef&&this.editorContentContainerRef.addEventListener("mousedown",this.handleEditorContentClick)},this.unRegisterEditorContentClickListener=()=>{this.editorContentContainerRef&&this.editorContentContainerRef.removeEventListener("mousedown",this.handleEditorContentClick)}}connectedCallback(){this.editorContentContainerRef=U(this.host,".rich-text-editor-container")}disconnectedCallback(){this.unRegisterEditorContentClickListener()}watchIsSelected(e){e?this.registerEditorContentClickListener():this.unRegisterEditorContentClickListener()}getWidgetHandleRef(){return this.widgetHandleRef}render(){return e("div",{class:G(["v-rte-widget__selection",this.isSelected?"selected":""]),contentEditable:!1},e("button",{tabIndex:0,class:"v-rte-widget__selection-handle",ref:e=>this.widgetHandleRef=e,onClick:this.handleWidgetSelection}),e("div",{class:"v-rte-widget__selection-content"},e("slot",null)))}}ce([n()],de.prototype,"host",void 0),ce([n({writable:!0})],de.prototype,"isSelected",void 0),ce([l("connectedCallback")],de.prototype,"connectedCallback",null),ce([l("disconnectedCallback")],de.prototype,"disconnectedCallback",null),ce([l("watchIsSelected")],de.prototype,"watchIsSelected",null);var he=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class pe extends J{constructor(){super((()=>[{keyCode:["Backspace","Delete"],eventName:"keydown",activeElementInScope:[this.selectionWidgetRenderer.getWidgetHandleRef()],callback:this.handleDeleteKeyDown}])),this.handleDeleteKeyDown=()=>{this.vegaRemove.emit()}}}he([n()],pe.prototype,"vegaRemove",void 0),he([n()],pe.prototype,"selectionWidgetRenderer",void 0);var ge=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const me=class{constructor(e){o(this,e),this.vegaRemove=i(this,"vegaRemove",7),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.selectionWidgetRenderer=new de,this.keyboardController=new pe,this.isSelected=!1}watchIsSelected(e){}render(){return g(e(r,null,this.selectionWidgetRenderer.render()),this.host)}get host(){return s(this)}static get watchers(){return{isSelected:["watchIsSelected"]}}};ge([h()],me.prototype,"globalSlimmers",void 0),ge([c()],me.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ge([c()],me.prototype,"selectionWidgetRenderer",void 0),ge([c()],me.prototype,"keyboardController",void 0),me.style=':host{display:block;position:relative;padding-top:19px}:host(:hover) .v-rte-widget__selection-content{outline:2px solid rgb(255, 200, 61)}:host(:hover) .v-rte-widget__selection-handle{display:revert;background:rgb(255, 200, 61)}.v-rte-widget__selection.selected .v-rte-widget__selection-content{outline:2px solid rgb(38, 42, 255)}.v-rte-widget__selection.selected .v-rte-widget__selection-handle{display:revert;background:rgb(38, 42, 255)}.v-rte-widget__selection-handle{border:none;outline:none;width:15px;height:15px;position:absolute;top:2px;left:-2px;padding:2px;box-sizing:border-box;display:none}.v-rte-widget__selection-handle:after{content:"";border:1px dashed rgb(255, 255, 255);width:auto;height:100%;display:block}';var ue=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const be=["rte-table-column","rte-table-row","rte-table-merge-cells","rte-table-properties","rte-table-cell-properties","rte-table-caption"];class ve extends a{render(){return e("div",{class:"rte-table-setting-content"},be.map((e=>this.renderButton(e))))}renderButton(e){switch(e){case"rte-table-column":return this.columnButtonSlimmer.render();case"rte-table-row":return this.rowButtonSlimmer.render();case"rte-table-merge-cells":return this.mergeCellsButtonSlimmer.render();case"rte-table-properties":return this.tablePropertiesButtonSlimmer.render();case"rte-table-cell-properties":return this.cellPropertiesButtonSlimmer.render();default:return this.captionButtonSlimmer.render()}}}ue([n()],ve.prototype,"captionButtonSlimmer",void 0),ue([n()],ve.prototype,"columnButtonSlimmer",void 0),ue([n()],ve.prototype,"rowButtonSlimmer",void 0),ue([n()],ve.prototype,"tablePropertiesButtonSlimmer",void 0),ue([n()],ve.prototype,"cellPropertiesButtonSlimmer",void 0),ue([n()],ve.prototype,"mergeCellsButtonSlimmer",void 0);var fe=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};class we extends a{constructor({icon:t,title:o,showArrowIcon:i,ariaLabel:r}){super(),this.renderBtn=()=>{const t=this.isSelected(),o=this.isDisabled();return e("vega-tooltip",{role:"presentation",key:`table-setting-${this.icon}`,text:this.getTitle(),placement:["bottom","top"],trigger:"hover"},e("button",{type:"button","aria-label":this.ariaLabel,class:{"rte-table-setting-item":!0,"rte-table-setting-item-disabled":o,"rte-table-setting-item-selected":t},disabled:o,onClick:e=>{o||this.handleClick(e)},onKeyDown:this.preventDefaultEvent,onMouseDown:this.preventDefaultEvent},e("vega-flex",{alignItems:"center",justifyContent:"center","aria-hidden":"true"},e("vega-icon",{icon:m.getIconKey(this.icon),size:"size-16",color:this.getIconColor()}),this.showArrowIcon?e("vega-icon",{size:"size-8",style:{marginLeft:"8px"},icon:m.getIconKey("chevron-down"),color:this.getIconColor()}):null)))},this.icon=t,this.title=o,this.showArrowIcon=i,this.ariaLabel=r}render(){return"function"==typeof this.renderBtnWrapper?this.renderBtnWrapper(this.renderBtn):this.renderBtn()}emitClickEvent(e){this.vegaClick.emit(e)}preventDefaultEvent(e){e.preventDefault()}getTitle(){return this.title}getIconColor(){const e=this.isSelected(),t=this.isDisabled();return e?"text-link-active":t?"text-disabled":"text-primary"}}fe([n()],we.prototype,"hasCaption",void 0),fe([n()],we.prototype,"vegaClick",void 0),fe([n()],we.prototype,"selectedCells",void 0);class xe extends we{constructor(){super({icon:"rte-table-caption",title:"caption off",showArrowIcon:!1,ariaLabel:"Insert/Edit Caption"})}isSelected(){return this.hasCaption}isDisabled(){return!1}handleClick(){this.emitClickEvent([M.CAPTION,this.hasCaption?"":"rte-table-caption"])}getTitle(){return this.hasCaption?"caption on":"caption off"}}class ye extends we{constructor(){super({icon:"rte-table-column",title:"Column",showArrowIcon:!0,ariaLabel:"Column Operations"}),this.handleDropdownItemClick=e=>{this.emitClickEvent([M.COLUMN,e.detail])},this.handleDropdownVisibilityChange=({eventName:e})=>{this.isColumnDropdownOpen=e.toLocaleLowerCase().indexOf("show")>=0}}renderBtnWrapper(t){return e("vega-dropdown",{role:"presentation",isScreenPosition:!0,minWidth:210,trigger:"click",ref:e=>{S.addUniqueObserverToNode(e,k,this.handleDropdownItemClick),S.addUniqueObserverToNode(e,z,this.handleDropdownVisibilityChange),S.addUniqueObserverToNode(e,R,this.handleDropdownVisibilityChange)}},t(),this.renderActionList())}isSelected(){return this.isColumnDropdownOpen}isDisabled(){return 0===this.selectedCells.length}handleClick(){}renderActionList(){const t=L.isFullHeaderSelection(this.selectedCells);return e("div",{tabIndex:0,role:"menu",slot:"items",onMouseDown:this.preventDefaultEvent,onKeyDown:this.preventDefaultEvent},e("vega-dropdown-item",{itemKey:I.HEADER_COLUMN,label:"Header Column"},e("vega-flex",{alignItems:"center",gap:"size-8","aria-hidden":"true"},e("vega-toggle-switch",{checked:t,size:"small",label:"Header Column"}))),e("vega-dropdown-item",{itemKey:I.ADD_COLUMN_LEFT,label:"Insert column left"},"Insert column left"),e("vega-dropdown-item",{itemKey:I.ADD_COLUMN_RIGHT,label:"Insert column right"},"Insert column right"),e("vega-dropdown-item",{itemKey:I.DELETE_COLUMN,label:"Delete column",disabled:this.allColumnSelected(this.selectedCells)},"Delete column"),e("vega-dropdown-item",{itemKey:I.SELECT_COLUMN,label:"Select column"},"Select column"))}allColumnSelected(e){if(0===e.length)return!1;const t=B(e[0],D);if(!t)return!1;const[o,i]=A(e,t);return i-o+1===F(t)}}!function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);s>3&&n&&Object.defineProperty(t,o,n)}([n({writable:!0})],ye.prototype,"isColumnDropdownOpen",void 0);class Ce extends we{constructor(){super({icon:"rte-table-properties",title:"table properties",showArrowIcon:!1,ariaLabel:"Table Properties"})}renderBtnWrapper(e){return e()}isSelected(){return!1}isDisabled(){return!1}handleClick(){this.emitClickEvent([M.TABLE])}}class je extends we{constructor(){super({icon:"rte-table-row",title:"Row",showArrowIcon:!0,ariaLabel:"Row Operations"}),this.handleDropdownItemClick=e=>{this.emitClickEvent([M.ROW,e.detail])},this.handleDropdownVisibilityChange=({eventName:e})=>{this.isRowDropdownOpen=e.toLocaleLowerCase().indexOf("show")>=0}}renderBtnWrapper(t){return e("vega-dropdown",{role:"presentation",isScreenPosition:!0,minWidth:180,trigger:"click",ref:e=>{S.addUniqueObserverToNode(e,k,this.handleDropdownItemClick),S.addUniqueObserverToNode(e,z,this.handleDropdownVisibilityChange),S.addUniqueObserverToNode(e,R,this.handleDropdownVisibilityChange)}},t(),this.renderActionList())}isDisabled(){return 0===this.selectedCells.length}isSelected(){return!1}handleClick(){}renderActionList(){const t=this.areSelectedRowsHeaderRows();return e("div",{tabIndex:0,role:"menu",slot:"items",onMouseDown:this.preventDefaultEvent,onKeyDown:this.preventDefaultEvent},e("vega-dropdown-item",{itemKey:O.HEADER_ROW,label:"Header Row"},e("vega-flex",{alignItems:"center",direction:"row",gap:"size-8","aria-hidden":"true"},e("vega-toggle-switch",{key:t.toString(),size:"small",checked:t,label:"Header Row"}))),e("vega-dropdown-item",{itemKey:O.ADD_ROW_ABOVE,label:"Insert row above"},"Insert row above"),e("vega-dropdown-item",{itemKey:O.ADD_ROW_BELOW,label:"Insert row below"},"Insert row below"),e("vega-dropdown-item",{disabled:this.areAllRowsSelected(),itemKey:O.DELETE_ROW,label:"Delete row"},"Delete row"),e("vega-dropdown-item",{itemKey:O.SELECT_ROW,label:"Select row"},"Select row"))}areSelectedRowsHeaderRows(){const e=this.getSelectedRows();return e.length>0&&e.every((e=>e.parent instanceof _))}areAllRowsSelected(){let e=!1;const t=this.getSelectedRows();if(t.length){const o=B(t[0],D);if(o){const i=o.children.filter((e=>e instanceof _||e instanceof P)).flatMap((e=>e.children));e=t.length===i.length}}return e}getSelectedRows(){const e=new Set;return this.selectedCells&&this.selectedCells.length&&this.selectedCells.forEach((t=>{t.parent&&e.add(t.parent)})),Array.from(e)}}!function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);s>3&&n&&Object.defineProperty(t,o,n)}([n({writable:!0})],je.prototype,"isRowDropdownOpen",void 0);class ke extends we{constructor(){super({icon:"rte-table-cell-properties",title:"cell properties",showArrowIcon:!1,ariaLabel:"Cell Properties"})}renderBtnWrapper(e){return e()}isSelected(){return!1}isDisabled(){return 0===this.selectedCells.length}handleClick(){this.emitClickEvent([M.CELL])}}class ze extends we{constructor(){super({icon:"rte-table-merge-cells",title:"Merge cells",showArrowIcon:!0,ariaLabel:"Merge Cells"}),this.handleDropdownItemClick=e=>{Object.values(K).includes(e.detail)?this.emitClickEvent([M.SPLIT_CELL,e.detail]):this.emitClickEvent([M.MERGE_CELLS,e.detail])},this.handleDropdownVisibilityChange=({eventName:e})=>{this.isMergeCellsDropdownOpen=e.toLocaleLowerCase().indexOf("show")>=0}}renderBtnWrapper(t){return e("vega-dropdown",{role:"presentation",isScreenPosition:!0,minWidth:150,trigger:"click",ref:e=>{S.addUniqueObserverToNode(e,k,this.handleDropdownItemClick),S.addUniqueObserverToNode(e,z,this.handleDropdownVisibilityChange),S.addUniqueObserverToNode(e,R,this.handleDropdownVisibilityChange)}},t(),this.renderActionList())}isSelected(){return this.isMergeCellsDropdownOpen}isDisabled(){if(0===this.selectedCells.length)return!0;const e=this.selectedCells.some((e=>"table-cell"===e.type)),t=this.selectedCells.some((e=>"table-head-cell"===e.type));return!(!e||!t)||!T(this.selectedCells)}handleClick(){this.isMergeCellsDropdownOpen=!0}renderActionList(){const t=this.getMergeDirectionDisabledMap();return e("div",{tabIndex:0,role:"menu",slot:"items",onMouseDown:this.preventDefaultEvent,onKeyDown:this.preventDefaultEvent},e("vega-dropdown-item",{itemKey:W.MERGE_CELLS,label:"Merge cells"},"Merge cells"),e("vega-dropdown-item",{itemKey:W.MERGE_CELL_UP,label:"Merge cell up",disabled:t[W.MERGE_CELL_UP]},"Merge cell up"),e("vega-dropdown-item",{itemKey:W.MERGE_CELL_RIGHT,label:"Merge cell right",disabled:t[W.MERGE_CELL_RIGHT]},"Merge cell right"),e("vega-dropdown-item",{itemKey:W.MERGE_CELL_DOWN,label:"Merge cell down",disabled:t[W.MERGE_CELL_DOWN]},"Merge cell down"),e("vega-dropdown-item",{itemKey:W.MERGE_CELL_LEFT,label:"Merge cell left",disabled:t[W.MERGE_CELL_LEFT]},"Merge cell left"),e("vega-dropdown-item",{itemKey:K.SPLIT_CELL_VERTICALLY,label:"Split cell vertically",disabled:!this.selectSingleCell()},"Split cell vertically"),e("vega-dropdown-item",{itemKey:K.SPLIT_CELL_HORIZONTALLY,label:"Split cell horizontally",disabled:!this.selectSingleCell()},"Split cell horizontally"))}selectSingleCell(){return 1===this.selectedCells.length}getMergeDirectionDisabledMap(){if(1!==this.selectedCells.length)return{[W.MERGE_CELL_UP]:!0,[W.MERGE_CELL_RIGHT]:!0,[W.MERGE_CELL_DOWN]:!0,[W.MERGE_CELL_LEFT]:!0};const e=this.selectedCells[0],t=e.parent,o=t.parent,i=o.children.indexOf(t),r=t.children.indexOf(e),s=i===o.children.length-1,n=0===r,l=r===t.children.length-1,a=(t,o)=>{if(o)return!0;const i=E(e,t);return!i||!T([e,i])};return{[W.MERGE_CELL_UP]:a(W.MERGE_CELL_UP,0===i),[W.MERGE_CELL_RIGHT]:a(W.MERGE_CELL_RIGHT,l),[W.MERGE_CELL_DOWN]:a(W.MERGE_CELL_DOWN,s),[W.MERGE_CELL_LEFT]:a(W.MERGE_CELL_LEFT,n)}}}!function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);s>3&&n&&Object.defineProperty(t,o,n)}([n({writable:!0})],ze.prototype,"isMergeCellsDropdownOpen",void 0);var Re=function(e,t,o,i){var r,s=arguments.length,n=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(n=(s<3?r(n):s>3?r(t,o,n):r(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};const Se=class{constructor(e){o(this,e),this.vegaClick=i(this,"vegaClick",7),this.globalSlimmers={},this.translationSlimmer=new p,this.vegaComponentUsageRuntimeMetricsSlimmer=new d,this.renderer=new ve,this.captionButtonSlimmer=new xe,this.columnButtonSlimmer=new ye,this.tablePropertiesButtonSlimmer=new Ce,this.rowButtonSlimmer=new je,this.cellPropertiesButtonSlimmer=new ke,this.mergeCellsButtonSlimmer=new ze,this.isColumnDropdownOpen=!1,this.isRowDropdownOpen=!1,this.isMergeCellsDropdownOpen=!1,this.hasCaption=!1,this.selectedCells=[]}connectedCallback(){this.registerTableCellSelectionChangeObserver()}disconnectedCallback(){this.target&&S.removeUniqueObserverFromNode(this.target,Q)}render(){return g(e(r,null,this.renderer.render()),this.host)}registerTableCellSelectionChangeObserver(){this.target&&S.addUniqueObserverToNode(this.target,Q,(e=>{X(this.selectedCells,e.detail)||(this.selectedCells=e.detail)}))}get host(){return s(this)}};m.register(Object.assign(Object.assign({},{"rte-table-column":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M48 416V160H232V432H64c-8.8 0-16-7.2-16-16zm232 16V160H464V416c0 8.8-7.2 16-16 16H280zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>'},"rte-table-row":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M448 432l-320 0 0-152 336 0 0 136c0 8.8-7.2 16-16 16zm16-200l-336 0 0-152 320 0c8.8 0 16 7.2 16 16l0 136zM0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416z"/></svg>'},"rte-table-merge-cells":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M464 416c0 8.8-7.2 16-16 16H128V192H0V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H160V160H464V416zM64 32C28.7 32 0 60.7 0 96v64H128V32H64zM414.8 246.1c2.5-6 1.1-12.9-3.5-17.4l-32-32c-6.2-6.2-16.4-6.2-22.6 0l-32 32c-4.6 4.6-5.9 11.5-3.5 17.4s8.3 9.9 14.8 9.9h16v48c0 8.8-7.2 16-16 16H288V304c0-6.5-3.9-12.3-9.9-14.8s-12.9-1.1-17.4 3.5l-32 32c-6.2 6.2-6.2 16.4 0 22.6l32 32c4.6 4.6 11.5 5.9 17.4 3.5s9.9-8.3 9.9-14.8V352h48c26.5 0 48-21.5 48-48V256h16c6.5 0 12.3-3.9 14.8-9.9z"/></svg>'},"rte-table-properties":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M48 160V416c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V160H128v64c0 8.8 7.2 16 16 16h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-5.6 0-11-1-16-2.7V320c0 8.8 7.2 16 16 16h96c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-26.5 0-48-21.5-48-48V224 160H48zM0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM224 240c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H240c-8.8 0-16-7.2-16-16V240zm80 80h96c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H304c-8.8 0-16-7.2-16-16V336c0-8.8 7.2-16 16-16z"/></svg>'},"rte-table-cell-properties":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M360 80v88H464V96c0-8.8-7.2-16-16-16H360zm-48 0H200v88H312V80zM152 80H64c-8.8 0-16 7.2-16 16v72H152V80zM48 216v80H152V216H48zm0 128v72c0 8.8 7.2 16 16 16h88V344H48zm152 88H312V344H200v88zm160 0h88c8.8 0 16-7.2 16-16V344H360v88zM464 296V216H360v80H464zM0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM200 296H312V216H200v80z"/></svg>'},"rte-table-caption":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M464 224c0-8.8-7.2-16-16-16L64 208c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-224zm-16-64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l384 0zm-8-80c13.3 0 24 10.7 24 24s-10.7 24-24 24L72 128c-13.3 0-24-10.7-24-24s10.7-24 24-24l368 0zM392 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L120 48c-13.3 0-24-10.7-24-24s10.7-24 24-24L392 0z"/></svg>'}}),{"chevron-down":Z})),Re([h()],Se.prototype,"globalSlimmers",void 0),Re([c()],Se.prototype,"translationSlimmer",void 0),Re([c()],Se.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Re([c()],Se.prototype,"renderer",void 0),Re([c()],Se.prototype,"captionButtonSlimmer",void 0),Re([c()],Se.prototype,"columnButtonSlimmer",void 0),Re([c()],Se.prototype,"tablePropertiesButtonSlimmer",void 0),Re([c()],Se.prototype,"rowButtonSlimmer",void 0),Re([c()],Se.prototype,"cellPropertiesButtonSlimmer",void 0),Re([c()],Se.prototype,"mergeCellsButtonSlimmer",void 0),Re([l("connectedCallback")],Se.prototype,"connectedCallback",null),Re([l("disconnectedCallback")],Se.prototype,"disconnectedCallback",null),Se.style=":host .rte-table-setting-content{display:flex;gap:8px;align-items:center}:host .rte-table-setting-item{border:none;border-radius:4px;padding-top:4px;padding-bottom:4px;padding-left:4px;padding-right:4px;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host .rte-table-setting-item:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:-1px}:host .rte-table-setting-item:not(.rte-table-setting-item-disabled,.rte-table-setting-item-selected):hover{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}:host .rte-table-setting-item-disabled{cursor:default}:host .rte-table-setting-item-selected{background-color:rgba(var(--v-bg-quaternary, 241, 248, 251, 1))}";export{ae as vega_rich_text_table_properties,me as vega_rich_text_table_selection_widget,Se as vega_rich_text_table_setting}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,F as t,r as i,c as a,H as r,g as n}from"./p-6b2342e0.js";import{c as s,V as o,I as l}from"./p-6e1ab235.js";import{g as m,D as d}from"./p-aa135628.js";import{V as c,I as p}from"./p-8ce9e214.js";import{D as h}from"./p-36a57431.js";import{a as b}from"./p-5447a8e8.js";import{s as f}from"./p-519a7d55.js";import{C as g}from"./p-2c737fc8.js";import{c as x}from"./p-8fc0a820.js";import{C as v}from"./p-3091b105.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-8c30a60d.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-4866e390.js";import"./p-cc569b54.js";var u=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class w extends o{getBreadcrumbContainerRef(){return this.vegaBreadcrumbContainerRef}render(){return e("div",{class:{"vega-breadcrumb":!0,"compact-mode":this.isCompactMode,"last-item-clickable":this.lastItemClickable,collapsed:this.isCollapsed(),single:1===this.items.length},ref:e=>this.vegaBreadcrumbContainerRef=e},this.renderItems())}renderItems(){const i=this.items.map(((e,t)=>this.itemRenderer.render(e,{isCompactMode:this.isCompactMode,isLastItem:this.items.length===t+1})));return this.isCollapsed()&&i.splice(1,0,this.collapsedItemRenderer.render(this.items.slice(1,this.items.length-1))),e(t,null,i)}isCollapsed(){return!this.isCompactMode&&"none"!==this.maxItems&&this.maxItems>=4&&this.items.length>this.maxItems}get isCompactMode(){return this.compactOnMobile&&m()===d.MOBILE}}u([s()],w.prototype,"items",void 0),u([s()],w.prototype,"compactOnMobile",void 0),u([s()],w.prototype,"lastItemClickable",void 0),u([s()],w.prototype,"maxItems",void 0),u([s()],w.prototype,"itemRenderer",void 0),u([s()],w.prototype,"collapsedItemRenderer",void 0);class y extends o{render(t){return e("div",{class:"vega-breadcrumb-item"},e("vega-dropdown",{placement:["bottom"],alignment:"center",maxHeight:200},e("vega-text",{text:"..."}),e("vega-box",{slot:"items"},t.map((t=>e("vega-dropdown-item",{key:t.label,label:t.label},this.itemRenderer.render(t,{isInDropdown:!0})))))),e("vega-icon",{icon:"chevron-right-rounded",size:"size-12",color:"text-secondary"}))}}!function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);n>3&&s&&Object.defineProperty(t,i,s)}([s()],y.prototype,"itemRenderer",void 0);var j=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class I extends o{constructor(){super(...arguments),this.onButtonLinkClick=(e,t)=>{const i=this.clickEventEmitter.emit(t);i&&i.defaultPrevented&&e.preventDefault()}}render(t,i){return e("div",{class:"vega-breadcrumb-item",key:t.label},this.renderContent(t,i))}renderContent(i,a){return!a.isCompactMode||a.isLastItem&&!this.lastItemClickable?a.isLastItem?this.renderLabel(i,!this.lastItemClickable):a.isInDropdown?this.renderLink(i,!1,!0):e(t,null,this.renderLabel(i),this.renderIcon("chevron-right-rounded","text-secondary")):e(t,null,this.renderIcon("chevron-left-rounded","text-link"),this.renderLabel(i))}renderIcon(t,i){return e("vega-icon",{icon:t,size:"size-12",color:i})}renderLabel(t,i){return t.tooltip?e("vega-tooltip",{text:t.tooltip,placement:["bottom"]},this.renderLink(t,i)):this.renderLink(t,i)}renderLink(t,i,a=!1){return i?e("span",{class:"vega-breadcrumb-last-label"},t.label):e("vega-button-link",{label:t.label,link:t.href,eventful:!0,class:{"vega-breadcrumb-dropdown-link":a},ref:e=>{h.addUniqueObserverToNode(e,b,(e=>{this.onButtonLinkClick(e,t)}))}})}}j([s()],I.prototype,"lastItemClickable",void 0),j([s()],I.prototype,"clickEventEmitter",void 0);var k=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const z=class{constructor(e){i(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.globalSlimmers={},this.renderer=new w,this.collapsedItemRenderer=new y,this.itemRenderer=new I,this.eventsPrevent=new g([b],(()=>this.renderer.getBreadcrumbContainerRef())),this.clickEventEmitter=x(z,b),this.componentGlobalStyleSlimmer=new v(".vega-breadcrumb-dropdown-link::part(label-text){color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new c,this.maxItems=4,this.items=[],this.compactOnMobile=!0,this.lastItemClickable=!1}render(){return f(e(r,null,this.renderer.render()),this.host)}get host(){return n(this)}};k([p()],z.prototype,"globalSlimmers",void 0),k([l()],z.prototype,"renderer",void 0),k([l()],z.prototype,"collapsedItemRenderer",void 0),k([l()],z.prototype,"itemRenderer",void 0),k([l()],z.prototype,"eventsPrevent",void 0),k([l()],z.prototype,"clickEventEmitter",void 0),k([l()],z.prototype,"componentGlobalStyleSlimmer",void 0),k([l()],z.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),z.style=':host{display:block}:host .vega-breadcrumb{display:flex;gap:8px;flex-wrap:wrap}:host .vega-breadcrumb-hidden{display:none !important}:host .vega-breadcrumb-item{display:flex;gap:8px;align-items:center}:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-dropdown vega-text{cursor:pointer;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-icon{flex-shrink:0}:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-button-link::part(label-container){text-decoration:none}:host .vega-breadcrumb.compact-mode>.vega-breadcrumb-item{display:none}:host .vega-breadcrumb.compact-mode .vega-breadcrumb-item:nth-last-child(2){display:flex}:host .vega-breadcrumb.compact-mode.last-item-clickable .vega-breadcrumb-item:nth-last-child(2){display:none}:host .vega-breadcrumb.compact-mode.last-item-clickable .vega-breadcrumb-item:last-child{display:flex}:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{display:flex;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb.collapsed .vega-breadcrumb-item:nth-child(n+3):not(:last-child){display:none}';export{z as vega_breadcrumb}
|
|
1
|
+
import{h as e,F as t,r as i,c as a,H as r,g as n}from"./p-6b2342e0.js";import{c as s,V as o,I as l}from"./p-6e1ab235.js";import{g as m,D as d}from"./p-aa135628.js";import{V as c,I as p}from"./p-8ce9e214.js";import{D as h}from"./p-36a57431.js";import{a as b}from"./p-6a6c1279.js";import{s as f}from"./p-519a7d55.js";import{C as g}from"./p-5536146c.js";import{c as x}from"./p-4ea477d5.js";import{C as v}from"./p-3091b105.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-1dbf8d1f.js";import"./p-5f377954.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-4866e390.js";import"./p-cc569b54.js";var u=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class w extends o{getBreadcrumbContainerRef(){return this.vegaBreadcrumbContainerRef}render(){return e("div",{class:{"vega-breadcrumb":!0,"compact-mode":this.isCompactMode,"last-item-clickable":this.lastItemClickable,collapsed:this.isCollapsed(),single:1===this.items.length},ref:e=>this.vegaBreadcrumbContainerRef=e},this.renderItems())}renderItems(){const i=this.items.map(((e,t)=>this.itemRenderer.render(e,{isCompactMode:this.isCompactMode,isLastItem:this.items.length===t+1})));return this.isCollapsed()&&i.splice(1,0,this.collapsedItemRenderer.render(this.items.slice(1,this.items.length-1))),e(t,null,i)}isCollapsed(){return!this.isCompactMode&&"none"!==this.maxItems&&this.maxItems>=4&&this.items.length>this.maxItems}get isCompactMode(){return this.compactOnMobile&&m()===d.MOBILE}}u([s()],w.prototype,"items",void 0),u([s()],w.prototype,"compactOnMobile",void 0),u([s()],w.prototype,"lastItemClickable",void 0),u([s()],w.prototype,"maxItems",void 0),u([s()],w.prototype,"itemRenderer",void 0),u([s()],w.prototype,"collapsedItemRenderer",void 0);class y extends o{render(t){return e("div",{class:"vega-breadcrumb-item"},e("vega-dropdown",{placement:["bottom"],alignment:"center",maxHeight:200},e("vega-text",{text:"..."}),e("vega-box",{slot:"items"},t.map((t=>e("vega-dropdown-item",{key:t.label,label:t.label},this.itemRenderer.render(t,{isInDropdown:!0})))))),e("vega-icon",{icon:"chevron-right-rounded",size:"size-12",color:"text-secondary"}))}}!function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);n>3&&s&&Object.defineProperty(t,i,s)}([s()],y.prototype,"itemRenderer",void 0);var j=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};class I extends o{constructor(){super(...arguments),this.onButtonLinkClick=(e,t)=>{const i=this.clickEventEmitter.emit(t);i&&i.defaultPrevented&&e.preventDefault()}}render(t,i){return e("div",{class:"vega-breadcrumb-item",key:t.label},this.renderContent(t,i))}renderContent(i,a){return!a.isCompactMode||a.isLastItem&&!this.lastItemClickable?a.isLastItem?this.renderLabel(i,!this.lastItemClickable):a.isInDropdown?this.renderLink(i,!1,!0):e(t,null,this.renderLabel(i),this.renderIcon("chevron-right-rounded","text-secondary")):e(t,null,this.renderIcon("chevron-left-rounded","text-link"),this.renderLabel(i))}renderIcon(t,i){return e("vega-icon",{icon:t,size:"size-12",color:i})}renderLabel(t,i){return t.tooltip?e("vega-tooltip",{text:t.tooltip,placement:["bottom"]},this.renderLink(t,i)):this.renderLink(t,i)}renderLink(t,i,a=!1){return i?e("span",{class:"vega-breadcrumb-last-label"},t.label):e("vega-button-link",{label:t.label,link:t.href,eventful:!0,class:{"vega-breadcrumb-dropdown-link":a},ref:e=>{h.addUniqueObserverToNode(e,b,(e=>{this.onButtonLinkClick(e,t)}))}})}}j([s()],I.prototype,"lastItemClickable",void 0),j([s()],I.prototype,"clickEventEmitter",void 0);var k=function(e,t,i,a){var r,n=arguments.length,s=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(n<3?r(s):n>3?r(t,i,s):r(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s};const z=class{constructor(e){i(this,e),this.vegaClick=a(this,"vegaClick",7),this.click=a(this,"click",7),this.globalSlimmers={},this.renderer=new w,this.collapsedItemRenderer=new y,this.itemRenderer=new I,this.eventsPrevent=new g([b],(()=>this.renderer.getBreadcrumbContainerRef())),this.clickEventEmitter=x(z,b),this.componentGlobalStyleSlimmer=new v(".vega-breadcrumb-dropdown-link::part(label-text){color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}"),this.vegaComponentUsageRuntimeMetricsSlimmer=new c,this.maxItems=4,this.items=[],this.compactOnMobile=!0,this.lastItemClickable=!1}render(){return f(e(r,null,this.renderer.render()),this.host)}get host(){return n(this)}};k([p()],z.prototype,"globalSlimmers",void 0),k([l()],z.prototype,"renderer",void 0),k([l()],z.prototype,"collapsedItemRenderer",void 0),k([l()],z.prototype,"itemRenderer",void 0),k([l()],z.prototype,"eventsPrevent",void 0),k([l()],z.prototype,"clickEventEmitter",void 0),k([l()],z.prototype,"componentGlobalStyleSlimmer",void 0),k([l()],z.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),z.style=':host{display:block}:host .vega-breadcrumb{display:flex;gap:8px;flex-wrap:wrap}:host .vega-breadcrumb-hidden{display:none !important}:host .vega-breadcrumb-item{display:flex;gap:8px;align-items:center}:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item vega-button-link::part(label-text){font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-dropdown vega-text{cursor:pointer;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item vega-dropdown vega-text{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-icon{flex-shrink:0}:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb-item .vega-breadcrumb-last-label{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb-item vega-button-link::part(label-container){text-decoration:none}:host .vega-breadcrumb.compact-mode>.vega-breadcrumb-item{display:none}:host .vega-breadcrumb.compact-mode .vega-breadcrumb-item:nth-last-child(2){display:flex}:host .vega-breadcrumb.compact-mode.last-item-clickable .vega-breadcrumb-item:nth-last-child(2){display:none}:host .vega-breadcrumb.compact-mode.last-item-clickable .vega-breadcrumb-item:last-child{display:flex}:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{display:flex;font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-breadcrumb.compact-mode.single .vega-breadcrumb-item{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host .vega-breadcrumb.collapsed .vega-breadcrumb-item:nth-child(n+3):not(:last-child){display:none}';export{z as vega_breadcrumb}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{constructor(e,a){this.vegaName=e,this.nativeName=a}getName(){return this.getVegaName()}getCurrentName(e){return"native"!==e.namespace?this.getVegaName():this.getNativeName()}getVegaName(){return this.vegaName}getNativeName(){return this.nativeName}isBrowserRawEvent(){return te.includes(this)}}const a=new e("vegaChange","change"),n=new e("vegaUserChange","userChange"),t=new e("vegaClick","click"),g=new e("vegaFocus","focus"),s=new e("vegaBlur","blur"),w=new e("vegaClose","close"),o=new e("vegaOpen","modalOpen"),v=new e("vegaValidate","validate"),i=new e("vegaFormSubmit","formSubmit"),r=new e("vegaFormReset","formReset"),l=new e("vegaRowClick","rowClick"),c=new e("vegaRowExpand","rowExpand"),C=new e("vegaRowDragDrop","rowDragDrop"),d=new e("vegaSelectChange","selectChange"),h=new e("vegaRowSelect","rowSelect"),p=new e("vegaRowSelectAll","rowSelectAll"),k=new e("vegaSelectAllChange","selectAllChange"),u=new e("vegaPageSizeChange","pageSizeChange"),S=new e("vegaDropdownClick","dropdownClick"),m=new e("vegaDropdownSelectAllClick","dropdownSelectAllClick"),A=new e("vegaCreate","create"),R=new e("vegaSearch","search"),D=new e("vegaSearchTrigger","searchTrigger"),E=new e("vegaHide","hide"),P=new e("vegaShow","show"),b=new e("vegaPopoverShow","popoverShow"),I=new e("vegaPopoverHide","popoverHide"),U=new e("vegaCancel","cancel"),y=new e("vegaRemove","remove"),B=new e("vegaPageUpdate","pageUpdate"),N=new e("vegaCurrentStepUpdate","currentStepUpdate"),x=new e("vegaToggleStatus","toggleStatus"),F=new e("vegaStateUpdate","stateUpdate"),H=new e("vegaGroupClick","groupClick"),T=new e("vegaMenuClick","menuClick"),f=new e("vegaExpand","expand"),L=new e("vegaShow","dropdownShow"),M=new e("vegaHide","dropdownHide"),z=new e("vegaSearch","dropdownSearch"),O=new e("vegaActionClick","actionClick"),V=new e("vegaEventClick","eventClick"),Y=new e("vegaEventPreview","eventPreview"),G=new e("vegaDateDblClick","dateDblClick"),j=new e("vegaDateClick","dateClick"),q=new e("vegaCountryChange","countryChange"),J=new e("vegaActionButtonClick","actionButtonClick"),K=new e("vegaMoreActionClick","moreActionClick"),Q=new e("vegaSelectedFileChange","selectedFileChange"),W=new e("vegaImageInserted","imageInserted"),X=new e("vegaRetry","retry"),Z=new e("vegaPreview","preview"),$=new e("vegaLabelButtonClick","labelButtonClick"),_=new e("vegaReset","reset"),ee=new e("vegaClear","clear"),ae=new e("vegaComplete","complete"),ne=new e("vegaPaste","paste"),te=[a,t,g,s,ne],ge=new e("vegaMonthYearChange","monthYearChange"),se=new e("vegaSelectionChange","selectionChange"),we=new e("vegaTodayClick","todayClick"),oe=new e("vegaSuggestionItemClick","suggestionItemClick"),ve=new e("vegaNativeInputChange","nativeInputChange"),ie=new e("vegaSourceCodeChange","sourceCodeChange"),re=new e("vegaEventEdit","eventEdit"),le=new e("vegaAdditionalLinkClick","additionalLinkClick");export{u as $,L as A,M as B,D as C,$ as D,Q as E,X as F,Z as G,i as H,r as I,v as J,U as K,ve as L,g as M,s as N,oe as O,ne as P,ae as Q,q as R,P as S,E as T,x as U,S as V,o as W,F as X,H as Y,T as Z,O as _,t as a,N as a0,W as a1,ie as a2,d as a3,k as a4,l as a5,c as a6,C as a7,h as a8,p as a9,I as b,b as c,a as d,f as e,le as f,_ as g,z as h,w as i,J as j,V as k,Y as l,G as m,K as n,j as o,re as p,B as q,n as r,y as s,A as t,R as u,m as v,ge as w,ee as x,se as y,we as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,f as e,r as s,H as o,g as i}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as a,V as n,M as
|
|
1
|
+
import{h as t,f as e,r as s,H as o,g as i}from"./p-6b2342e0.js";import{s as r}from"./p-519a7d55.js";import{c as a,V as n,M as c,L as p,I as l}from"./p-6e1ab235.js";import{V as f,I as d}from"./p-8ce9e214.js";import{V as m}from"./p-6031bed1.js";import{V as h}from"./p-ffdc25ec.js";import{f as j}from"./p-4b35c748.js";import{f as u}from"./p-cb378636.js";import{O as b}from"./p-331a62d5.js";import{C as v}from"./p-2d0d575f.js";import"./p-afcd8f04.js";import"./p-6a334573.js";import"./p-8b5d3a52.js";import"./p-941a83db.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-b438e68b.js";import"./p-f485448a.js";import"./p-e14323f3.js";import"./p-49a2e141.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-87a4d75f.js";import"./p-982747ef.js";import"./p-ab9d53e9.js";var g=function(t,e,s,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(a=(r<3?i(a):r>3?i(e,s,a):i(e,s))||a);return r>3&&a&&Object.defineProperty(e,s,a),a};class y extends n{render(){const e=m.getIconKey(this.country),s=h.hasIcon(e),o=j(this.size,"widthAndHeight"),i=`calc(${o} * 4 / 3)`;return s?t("vega-icon",{icon:e,size:this.size,style:{"--vega-icon-width":i}}):t("vega-skeleton",{type:"image",corners:"rounded-2",height:o,width:i})}}g([a()],y.prototype,"size",void 0),g([a()],y.prototype,"country",void 0);var R=function(t,e,s,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(a=(r<3?i(a):r>3?i(e,s,a):i(e,s))||a);return r>3&&a&&Object.defineProperty(e,s,a),a};class w extends n{constructor(){super(...arguments),this.isAcceptObserver=()=>!0,this.listenerCallback=()=>{e(this.host)}}connectedCallback(){this.country&&(this.isFlagForCountryCodeLoaded(this.country)||this.registerObserver())}unRegisterObserver(){this.observer&&(v.unregister(u,this.observer),this.observer=null)}registerObserver(){this.observer=new b(this.isAcceptObserver.bind(this),this.listenerCallback.bind(this)),v.register(u,this.observer)}isFlagForCountryCodeLoaded(t){const e=m.getIconKey(t);return m.hasIcon(e)}}!async function(){try{const t=(await import("./p-3e258753.js")).CountryFlags;m.register(t),v.notify(u,{})}catch(t){p.error("Error loading flag module:",t)}}(),R([a()],w.prototype,"host",void 0),R([a()],w.prototype,"country",void 0),R([c("connectedCallback")],w.prototype,"connectedCallback",null),R([c("disconnectedCallback")],w.prototype,"unRegisterObserver",null);var O=function(t,e,s,o){var i,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(a=(r<3?i(a):r>3?i(e,s,a):i(e,s))||a);return r>3&&a&&Object.defineProperty(e,s,a),a};const C=class{constructor(t){s(this,t),this.globalSlimmers={},this.renderer=new y,this.vegaFlagIconController=new w,this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.size="size-16"}render(){return r(t(o,null,this.renderer.render()),this.host)}get host(){return i(this)}};O([d()],C.prototype,"globalSlimmers",void 0),O([l()],C.prototype,"renderer",void 0),O([l()],C.prototype,"vegaFlagIconController",void 0),O([l()],C.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),C.style=":host{display:inline-block}:host vega-icon,:host vega-skeleton,:host svg{display:block;border-radius:2px}:host vega-icon{width:var(--vega-icon-width, 24px)}";export{C as vega_flag_icon}
|