@globalpayments/vega 2.60.0 → 2.62.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/{app-globals-8a3536ba.js → app-globals-8f5fa42a.js} +23 -15
- package/dist/cjs/base-renderer-0a3b62b7.js +9 -0
- package/dist/cjs/{child-nodes-event-prevent-slimmer-5df43771.js → child-nodes-event-prevent-slimmer-4e96270e.js} +1 -1
- package/dist/cjs/{code-block-7d901dfc.js → code-block-eb66d852.js} +74 -23
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-d61e5129.js → component-value-history-controller-slimmer.abstract-62cdf04c.js} +17 -183
- package/dist/cjs/{design-token-52f9da81.js → design-token-76bb47bd.js} +1 -1
- package/dist/cjs/{dom-node-subject-factory-bad99695.js → dom-node-subject-observer-factory-58e3c010.js} +45 -0
- package/dist/cjs/{content-state-2096aa5a.js → dto-renderer-manager-f3894490.js} +1648 -1502
- package/dist/cjs/{element-appender-slimmer-2a3e1e51.js → element-appender-slimmer-e8dac628.js} +8 -9
- package/dist/cjs/{event-emit-slimmer-efc70b94.js → event-emit-slimmer-428d8802.js} +3 -4
- package/dist/cjs/{form-field-controller-slimmer-772d1892.js → form-field-controller-slimmer-cc6e53a4.js} +5 -6
- package/dist/cjs/{image-annotation-action-8c1ecc99.js → image-annotation-action-a628ec9b.js} +24 -81
- package/dist/cjs/{index-10199ee8.js → index-5505e8dd.js} +4 -4
- package/dist/cjs/index.cjs.js +50 -24
- package/dist/cjs/{icon-manager-9072356d.js → internal-icon-manager-32f9ed63.js} +51 -0
- package/dist/cjs/{internal-vega-event-manager-83065493.js → internal-vega-event-manager-28b957c8.js} +73 -73
- package/dist/cjs/language-extension-20a1dba5.js +207 -0
- package/dist/cjs/loader.cjs.js +15 -13
- package/dist/cjs/{public-rules-c711fae3.js → public-rules-5d0f3a5f.js} +6 -6
- package/dist/cjs/range-cfc45f9e.js +178 -0
- package/dist/cjs/{responsive-format-facade-3ab3b18c.js → responsive-format-facade-7e933525.js} +4 -3
- package/dist/cjs/{rich-text-editor-required-rule-4d92437f.js → rich-text-editor-required-rule-72170c10.js} +2 -2
- package/dist/cjs/{string-input-formatter-slimmer-941eaec2.js → string-input-formatter-slimmer-f6c7a255.js} +5 -5
- package/dist/cjs/{style-formatter-dcb443fb.js → style-formatter-702df81e.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-943eb7cc.js → sub-state-notify-slimmer-bb64fcfc.js} +5 -5
- package/dist/cjs/{sub-state-observer-slimmer-0788232a.js → sub-state-observer-slimmer-84175d61.js} +5 -5
- package/dist/cjs/{vega-skeleton-loader-controller-b1971f43.js → token-extension-23ccff1d.js} +679 -3
- package/dist/cjs/vega-accordion.cjs.entry.js +15 -16
- package/dist/cjs/vega-app-header-button.cjs.entry.js +20 -21
- package/dist/cjs/vega-banner.cjs.entry.js +7 -9
- package/dist/cjs/vega-box.cjs.entry.js +13 -12
- package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +8 -9
- package/dist/cjs/vega-button-circle.cjs.entry.js +16 -16
- package/dist/cjs/vega-button-group_2.cjs.entry.js +12 -13
- package/dist/cjs/vega-button-link.cjs.entry.js +7 -8
- package/dist/cjs/vega-button.cjs.entry.js +15 -15
- package/dist/cjs/vega-calendar_4.cjs.entry.js +204 -102
- package/dist/cjs/vega-card.cjs.entry.js +12 -11
- package/dist/cjs/vega-carousel.cjs.entry.js +13 -13
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +13 -14
- package/dist/cjs/vega-chip.cjs.entry.js +17 -17
- package/dist/cjs/vega-code-block.cjs.entry.js +17 -18
- package/dist/cjs/vega-color-picker.cjs.entry.js +7 -8
- package/dist/cjs/vega-combo-box.cjs.entry.js +15 -16
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +350 -143
- package/dist/cjs/vega-dialog_2.cjs.entry.js +27 -27
- package/dist/cjs/vega-divider.cjs.entry.js +12 -11
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -33
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +6 -7
- package/dist/cjs/vega-file-uploader.cjs.entry.js +16 -18
- package/dist/cjs/vega-flag-icon.cjs.entry.js +13 -13
- package/dist/cjs/vega-flex.cjs.entry.js +13 -12
- package/dist/cjs/vega-font.cjs.entry.js +12 -11
- package/dist/cjs/vega-form.cjs.entry.js +14 -15
- package/dist/cjs/vega-grid.cjs.entry.js +12 -11
- package/dist/cjs/vega-icon.cjs.entry.js +15 -14
- package/dist/cjs/vega-image-uploader.cjs.entry.js +19 -19
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +15 -17
- package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -12
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +21 -22
- package/dist/cjs/vega-input-range.cjs.entry.js +12 -13
- package/dist/cjs/vega-input-select.cjs.entry.js +28 -29
- package/dist/cjs/vega-input.cjs.entry.js +14 -15
- package/dist/cjs/{vega-internal-event-id-ae6e2c13.js → vega-internal-event-id-9647aaf8.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -6
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +34 -35
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +13 -12
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +2 -3
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +9 -10
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +4 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +19 -19
- package/dist/cjs/vega-popover_2.cjs.entry.js +19 -19
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +5 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +14 -15
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +54 -49
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +388 -262
- package/dist/cjs/vega-segment-control.cjs.entry.js +5 -6
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +21 -21
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +14 -15
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +25 -26
- package/dist/cjs/vega-signature-capture.cjs.entry.js +16 -17
- package/dist/cjs/vega-stepper.cjs.entry.js +13 -14
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +8 -9
- package/dist/cjs/vega-table_8.cjs.entry.js +140 -122
- package/dist/cjs/vega-textarea.cjs.entry.js +10 -11
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +25 -25
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +8 -9
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +12 -12
- package/dist/cjs/vega.cjs.js +15 -13
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-date-block-renderer.abstract.js +82 -0
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +26 -21
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +47 -38
- package/dist/collection/components/vega-calendar/vega-calendar.js +83 -3
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-month-year-change-event-controller.js +139 -0
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.js +21 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +48 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +59 -1
- package/dist/collection/components/vega-input/vega-input.css +4 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-split-text-strategy.js +6 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-or-decorator-node-strategy.js +12 -6
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-node-to-nearest-root-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/update-cursor-position-strategy.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-node-to-nearest-root-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +36 -10
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +10 -4
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +145 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +97 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +113 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +90 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/insert-token-node-action.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/insert-token-node-strategy.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +67 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +88 -0
- package/dist/collection/components/vega-rich-text-editor/public-api.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +97 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +8 -6
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +9 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +43 -18
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +44 -11
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-children-controller.js +31 -16
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-renderer.js +8 -4
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +4 -1
- package/dist/collection/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.js +0 -16
- package/dist/collection/components/vega-table/vega-table-cell/slimmers/controllers/{vega-table-row-state-controller.js → vega-table-row-state-subscriber.js} +15 -14
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +3 -3
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.js +4 -0
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +1 -1
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.js +20 -0
- package/dist/collection/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-state-controller.js +0 -7
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +1 -1
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +61 -1
- package/dist/collection/constants/ui.js +2 -0
- package/dist/collection/global/scripts/before-vega-load.js +9 -0
- package/dist/collection/helpers/code-format/test/code-formatter.test.js +1 -1
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -3
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/public-api.js +1 -1
- package/dist/collection/helpers/rte-manager/dto-action-strategy-manager.js +2 -0
- package/dist/collection/utils/spec-utils.js +28 -0
- package/dist/esm/{app-globals-c7699395.js → app-globals-aaff0b25.js} +13 -5
- package/dist/esm/base-renderer-101f6d04.js +7 -0
- package/dist/esm/{child-nodes-event-prevent-slimmer-6b5b31f5.js → child-nodes-event-prevent-slimmer-7fe3dc57.js} +1 -1
- package/dist/esm/{code-block-055cae13.js → code-block-68300b47.js} +68 -18
- package/dist/esm/{component-value-history-controller-slimmer.abstract-7a64c05a.js → component-value-history-controller-slimmer.abstract-ac2f1bfd.js} +14 -180
- package/dist/esm/{design-token-e1821e4a.js → design-token-1a36307e.js} +1 -1
- package/dist/esm/{dom-node-subject-factory-202655e7.js → dom-node-subject-observer-factory-c7bc3035.js} +43 -1
- package/dist/esm/{content-state-460f6254.js → dto-renderer-manager-af66bbd9.js} +1644 -1503
- package/dist/esm/{element-appender-slimmer-4260c020.js → element-appender-slimmer-fe68ec2d.js} +4 -5
- package/dist/esm/{event-emit-slimmer-40973ec2.js → event-emit-slimmer-3922d816.js} +2 -3
- package/dist/esm/{form-field-controller-slimmer-47820eaa.js → form-field-controller-slimmer-f7e8845b.js} +3 -4
- package/dist/esm/{image-annotation-action-95cc9118.js → image-annotation-action-f61c2693.js} +20 -76
- package/dist/esm/{index-18a340fb.js → index-7fe93427.js} +2 -2
- package/dist/esm/index.js +14 -11
- package/dist/esm/{icon-manager-2ee1c619.js → internal-icon-manager-f0486245.js} +51 -1
- package/dist/esm/{internal-vega-event-manager-526f8ed1.js → internal-vega-event-manager-cb06e987.js} +3 -3
- package/dist/esm/language-extension-1ada2a9d.js +204 -0
- package/dist/esm/loader.js +15 -13
- package/dist/esm/{public-rules-71e1883d.js → public-rules-9f62069a.js} +6 -6
- package/dist/esm/range-c2eeb794.js +176 -0
- package/dist/esm/{responsive-format-facade-dbeffcd6.js → responsive-format-facade-5711c77d.js} +4 -3
- package/dist/esm/{rich-text-editor-required-rule-6cfdcaaf.js → rich-text-editor-required-rule-de738309.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-6d99bb4f.js → string-input-formatter-slimmer-69117deb.js} +3 -3
- package/dist/esm/{style-formatter-41ca4df2.js → style-formatter-2479dc61.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-b3524c09.js → sub-state-notify-slimmer-4252a90e.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-c823d69c.js → sub-state-observer-slimmer-baa8853a.js} +2 -2
- package/dist/esm/{vega-skeleton-loader-controller-38864fcd.js → token-extension-6fc5e1f5.js} +672 -4
- package/dist/esm/vega-accordion.entry.js +13 -14
- package/dist/esm/vega-app-header-button.entry.js +14 -15
- package/dist/esm/vega-banner.entry.js +4 -6
- package/dist/esm/vega-box.entry.js +13 -12
- package/dist/esm/vega-brand-logo.entry.js +1 -2
- package/dist/esm/vega-breadcrumb.entry.js +4 -5
- package/dist/esm/vega-button-circle.entry.js +14 -14
- package/dist/esm/vega-button-group_2.entry.js +7 -8
- package/dist/esm/vega-button-link.entry.js +5 -6
- package/dist/esm/vega-button.entry.js +13 -13
- package/dist/esm/vega-calendar_4.entry.js +190 -88
- package/dist/esm/vega-card.entry.js +12 -11
- package/dist/esm/vega-carousel.entry.js +12 -12
- package/dist/esm/vega-checkbox_2.entry.js +7 -8
- package/dist/esm/vega-chip.entry.js +14 -14
- package/dist/esm/vega-code-block.entry.js +9 -10
- package/dist/esm/vega-color-picker.entry.js +6 -7
- package/dist/esm/vega-combo-box.entry.js +7 -8
- package/dist/esm/vega-date-picker_2.entry.js +341 -134
- package/dist/esm/vega-dialog_2.entry.js +15 -15
- package/dist/esm/vega-divider.entry.js +12 -11
- package/dist/esm/vega-dropdown_5.entry.js +16 -16
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +4 -5
- package/dist/esm/vega-file-uploader.entry.js +7 -9
- package/dist/esm/vega-flag-icon.entry.js +12 -12
- package/dist/esm/vega-flex.entry.js +13 -12
- package/dist/esm/vega-font.entry.js +12 -11
- package/dist/esm/vega-form.entry.js +8 -9
- package/dist/esm/vega-grid.entry.js +12 -11
- package/dist/esm/vega-icon.entry.js +12 -11
- package/dist/esm/vega-image-uploader.entry.js +13 -13
- package/dist/esm/vega-input-credit-card.entry.js +8 -10
- package/dist/esm/vega-input-numeric.entry.js +8 -9
- package/dist/esm/vega-input-phone-number.entry.js +13 -14
- package/dist/esm/vega-input-range.entry.js +8 -9
- package/dist/esm/vega-input-select.entry.js +15 -16
- package/dist/esm/vega-input.entry.js +9 -10
- package/dist/esm/{vega-internal-event-id-b7c865de.js → vega-internal-event-id-5a143cd2.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +3 -4
- package/dist/esm/vega-left-nav_5.entry.js +15 -16
- package/dist/esm/vega-loader-wrapper_2.entry.js +11 -10
- package/dist/esm/vega-page-notification_2.entry.js +1 -2
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -5
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -3
- package/dist/esm/vega-pagination.entry.js +11 -11
- package/dist/esm/vega-popover_2.entry.js +15 -15
- package/dist/esm/vega-progress-tracker.entry.js +3 -4
- package/dist/esm/vega-radio_2.entry.js +7 -8
- package/dist/esm/vega-rich-text-content.entry.js +25 -20
- package/dist/esm/vega-rich-text-editor_4.entry.js +343 -217
- package/dist/esm/vega-segment-control.entry.js +4 -5
- package/dist/esm/vega-selection-chip_2.entry.js +16 -16
- package/dist/esm/vega-selection-tile_2.entry.js +8 -9
- package/dist/esm/vega-sidenav_3.entry.js +17 -18
- package/dist/esm/vega-signature-capture.entry.js +14 -15
- package/dist/esm/vega-stepper.entry.js +7 -8
- package/dist/esm/vega-tab-group_2.entry.js +4 -5
- package/dist/esm/vega-table_8.entry.js +94 -76
- package/dist/esm/vega-textarea.entry.js +7 -8
- package/dist/esm/vega-time-picker_2.entry.js +15 -15
- package/dist/esm/vega-toggle-switch.entry.js +7 -8
- package/dist/esm/vega-tooltip_2.entry.js +12 -12
- package/dist/esm/vega.js +15 -13
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-date-block-renderer.abstract.d.ts +58 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.d.ts +10 -9
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +14 -8
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +22 -2
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-month-year-change-event-controller.d.ts +46 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-month-year-dropdown-renderer.d.ts +12 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +16 -0
- package/dist/types/components/vega-date-picker/types.d.ts +7 -0
- package/dist/types/components/vega-date-picker/vega-date-picker.d.ts +17 -1
- package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-node-to-nearest-root-strategy.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-node-to-nearest-root-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.d.ts +4 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -3
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +11 -1
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +95 -2
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +82 -0
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-extension.d.ts +50 -0
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.d.ts +54 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/insert-token-node-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/insert-token-node-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/span-to-token-node-strategy.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +38 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +39 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +47 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +52 -1
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +10 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.d.ts +4 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.d.ts +7 -7
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +10 -0
- package/dist/types/components/vega-table/interface.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-children-controller.d.ts +13 -1
- 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-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.d.ts +0 -1
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/{vega-table-row-state-controller.d.ts → vega-table-row-state-subscriber.d.ts} +3 -6
- package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +2 -2
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-expand-row/vega-table-expand-row.d.ts +6 -0
- package/dist/types/components/vega-table/vega-table-row/slimmers/controllers/vega-table-row-state-controller.d.ts +0 -1
- package/dist/types/components/vega-table/vega-table-row/vega-table-row.d.ts +16 -4
- package/dist/types/components.d.ts +86 -3
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/public-api.d.ts +1 -1
- package/dist/types/types/components.type.d.ts +2 -0
- package/dist/types/types/public-api.d.ts +11 -0
- package/dist/types/utils/spec-utils.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-03cc47b7.entry.js +1 -0
- package/dist/vega/p-07836d27.entry.js +1 -0
- package/dist/vega/p-079f5d94.entry.js +1 -0
- package/dist/vega/p-09cb98f3.entry.js +1 -0
- package/dist/vega/{p-62898294.entry.js → p-0b91bb73.entry.js} +1 -1
- package/dist/vega/{p-b5bef48a.js → p-0e954b9b.js} +1 -1
- package/dist/vega/p-15a78afd.entry.js +1 -0
- package/dist/vega/p-16075b30.entry.js +1 -0
- package/dist/vega/{p-c883bce1.entry.js → p-1c08077c.entry.js} +1 -1
- package/dist/vega/{p-bbb96a13.js → p-1da54ff3.js} +1 -1
- package/dist/vega/p-20a180e4.js +1 -0
- package/dist/vega/p-25ddb070.entry.js +1 -0
- package/dist/vega/p-2788afe7.entry.js +1 -0
- package/dist/vega/p-2a1b3108.entry.js +1 -0
- package/dist/vega/p-2ee4def0.js +1 -0
- package/dist/vega/p-2f88ba36.entry.js +1 -0
- package/dist/vega/p-327cd6ec.entry.js +1 -0
- package/dist/vega/p-39c185a5.js +1 -0
- package/dist/vega/p-3b1bedaf.entry.js +1 -0
- package/dist/vega/p-3c96bbe1.entry.js +1 -0
- package/dist/vega/p-3cdbee7e.js +1 -0
- package/dist/vega/p-3d0d8a21.entry.js +1 -0
- package/dist/vega/p-3d53858c.entry.js +1 -0
- package/dist/vega/{p-d35243c8.entry.js → p-3f3bbaaa.entry.js} +2 -2
- package/dist/vega/p-42c364e0.entry.js +1 -0
- package/dist/vega/p-4f56a427.entry.js +1 -0
- package/dist/vega/p-4f5a2b0c.entry.js +1 -0
- package/dist/vega/p-51d40b0d.entry.js +1 -0
- package/dist/vega/p-5420c1d4.entry.js +1 -0
- package/dist/vega/p-589b7ea3.entry.js +1 -0
- package/dist/vega/p-5d3c6a06.entry.js +1 -0
- package/dist/vega/p-5dec47da.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-6244b0ad.entry.js +1 -0
- package/dist/vega/p-63212cc1.js +1 -0
- package/dist/vega/p-6585cfd5.entry.js +1 -0
- package/dist/vega/p-6ba27010.js +1 -0
- package/dist/vega/{p-200ba358.js → p-6caa6bb2.js} +1 -1
- package/dist/vega/p-74ac2a48.js +1 -0
- package/dist/vega/p-76c7538a.entry.js +1 -0
- package/dist/vega/p-7d8eaca9.entry.js +1 -0
- package/dist/vega/p-7da6e7bd.js +1 -0
- package/dist/vega/p-81765b4b.entry.js +1 -0
- package/dist/vega/p-81fbf18f.entry.js +1 -0
- package/dist/vega/p-8682ee0a.entry.js +1 -0
- package/dist/vega/p-893d5dfa.js +1 -0
- package/dist/vega/p-8a484812.entry.js +1 -0
- package/dist/vega/p-8a6b820a.entry.js +1 -0
- package/dist/vega/p-8c9ea6f4.js +1 -0
- package/dist/vega/p-8e58d6cb.entry.js +1 -0
- package/dist/vega/p-8e812dca.entry.js +1 -0
- package/dist/vega/p-8f056ac2.js +1 -0
- package/dist/vega/{p-b56e2c89.entry.js → p-9125ba84.entry.js} +1 -1
- package/dist/vega/p-92469fa1.entry.js +1 -0
- package/dist/vega/p-9ab3bb6f.entry.js +1 -0
- package/dist/vega/p-9ca0bdcc.js +1 -0
- package/dist/vega/p-a1362aa4.entry.js +1 -0
- package/dist/vega/p-a61e4bba.entry.js +1 -0
- package/dist/vega/p-a646b66d.js +1 -0
- package/dist/vega/p-a7b5f497.js +1 -0
- package/dist/vega/p-ac5c5221.entry.js +1 -0
- package/dist/vega/p-b1a5ff74.entry.js +1 -0
- package/dist/vega/p-b32f7aac.entry.js +1 -0
- package/dist/vega/{p-dd6a4ea6.entry.js → p-baafe7d9.entry.js} +1 -1
- package/dist/vega/{p-68eae19d.entry.js → p-bb51e020.entry.js} +1 -1
- package/dist/vega/{p-9773c913.js → p-bb61f015.js} +1 -1
- package/dist/vega/p-bc0ae89a.entry.js +1 -0
- package/dist/vega/p-bd39af8a.entry.js +1 -0
- package/dist/vega/{p-1bd516c5.js → p-bdd9ef3b.js} +1 -1
- package/dist/vega/{p-e4fbd2b7.entry.js → p-c167fa41.entry.js} +1 -1
- package/dist/vega/{p-0dcec258.js → p-c2377afa.js} +1 -1
- package/dist/vega/p-c671f57e.js +1 -0
- package/dist/vega/p-c6a354b1.js +1 -0
- package/dist/vega/p-c7726252.js +1 -0
- package/dist/vega/p-ce1766fa.js +1 -0
- package/dist/vega/p-cfb2af9c.entry.js +1 -0
- package/dist/vega/p-d2790023.entry.js +13 -0
- package/dist/vega/p-d3bbfb1b.js +1 -0
- package/dist/vega/{p-f1a2658b.entry.js → p-d9617358.entry.js} +1 -1
- package/dist/vega/p-d982babe.entry.js +1 -0
- package/dist/vega/p-dcae53cf.entry.js +1 -0
- package/dist/vega/p-ddfad815.entry.js +1 -0
- package/dist/vega/p-e00ed9bd.entry.js +1 -0
- package/dist/vega/p-e365aba9.entry.js +1 -0
- package/dist/vega/p-ebfc5739.entry.js +1 -0
- package/dist/vega/p-f1436035.js +1 -0
- package/dist/vega/p-fe2cb3a1.entry.js +1 -0
- package/dist/vega/p-ff3a8907.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/dom-node-subject-observer-factory-df6e6df0.js +0 -45
- package/dist/cjs/internal-icon-manager-f8677abb.js +0 -55
- package/dist/esm/dom-node-subject-observer-factory-999e21e3.js +0 -43
- package/dist/esm/internal-icon-manager-7eac52c8.js +0 -53
- package/dist/vega/p-09ddae74.entry.js +0 -1
- package/dist/vega/p-0c247128.entry.js +0 -1
- package/dist/vega/p-0cd89fb6.js +0 -1
- package/dist/vega/p-10063072.entry.js +0 -1
- package/dist/vega/p-1152850b.entry.js +0 -1
- package/dist/vega/p-165054fb.entry.js +0 -1
- package/dist/vega/p-1652cfc6.entry.js +0 -1
- package/dist/vega/p-16c6c22f.entry.js +0 -1
- package/dist/vega/p-17d517c8.entry.js +0 -1
- package/dist/vega/p-1852ca80.entry.js +0 -1
- package/dist/vega/p-1b222c94.entry.js +0 -1
- package/dist/vega/p-1b91a882.js +0 -1
- package/dist/vega/p-1cabeb33.js +0 -1
- package/dist/vega/p-1f8c46c4.entry.js +0 -1
- package/dist/vega/p-1fdf0f74.entry.js +0 -1
- package/dist/vega/p-20b8b626.entry.js +0 -1
- package/dist/vega/p-21873037.js +0 -1
- package/dist/vega/p-27b5f69c.entry.js +0 -1
- package/dist/vega/p-2e4bc8aa.entry.js +0 -1
- package/dist/vega/p-334e31a3.entry.js +0 -1
- package/dist/vega/p-394dfa02.entry.js +0 -1
- package/dist/vega/p-433ea113.entry.js +0 -1
- package/dist/vega/p-446d0317.entry.js +0 -1
- package/dist/vega/p-4474bc63.js +0 -1
- package/dist/vega/p-460bbd22.entry.js +0 -1
- package/dist/vega/p-46973cf9.entry.js +0 -1
- package/dist/vega/p-4a368e1e.js +0 -1
- package/dist/vega/p-4b7edf72.entry.js +0 -1
- package/dist/vega/p-4fc18f2f.entry.js +0 -1
- package/dist/vega/p-52c1dde9.entry.js +0 -1
- package/dist/vega/p-594ecdab.js +0 -1
- package/dist/vega/p-606d1f7c.entry.js +0 -1
- package/dist/vega/p-61d1f3cb.entry.js +0 -1
- package/dist/vega/p-636f7b17.entry.js +0 -1
- package/dist/vega/p-69119f58.entry.js +0 -1
- package/dist/vega/p-6b71d5d1.entry.js +0 -1
- package/dist/vega/p-70939752.entry.js +0 -1
- package/dist/vega/p-741a8b61.entry.js +0 -1
- package/dist/vega/p-7a3b142b.js +0 -1
- package/dist/vega/p-7e4fdccb.js +0 -1
- package/dist/vega/p-847dbae4.entry.js +0 -1
- package/dist/vega/p-850a6305.entry.js +0 -1
- package/dist/vega/p-8539e05e.js +0 -1
- package/dist/vega/p-8c46e116.js +0 -1
- package/dist/vega/p-95ac7c7e.js +0 -1
- package/dist/vega/p-95c30aed.entry.js +0 -1
- package/dist/vega/p-a433fef4.js +0 -1
- package/dist/vega/p-a7baad6d.entry.js +0 -1
- package/dist/vega/p-ae21e5f5.entry.js +0 -1
- package/dist/vega/p-af2de012.entry.js +0 -1
- package/dist/vega/p-af464251.js +0 -1
- package/dist/vega/p-b4be8573.entry.js +0 -1
- package/dist/vega/p-b5822a21.js +0 -1
- package/dist/vega/p-b8f50c69.entry.js +0 -1
- package/dist/vega/p-b9821a7f.entry.js +0 -1
- package/dist/vega/p-bca1f8f9.js +0 -1
- package/dist/vega/p-c81cb852.entry.js +0 -1
- package/dist/vega/p-cc2ceaa8.entry.js +0 -1
- package/dist/vega/p-d1ebec08.js +0 -1
- package/dist/vega/p-d45f79ce.entry.js +0 -1
- package/dist/vega/p-dbe5daa7.js +0 -1
- package/dist/vega/p-dc5026e7.entry.js +0 -1
- package/dist/vega/p-e3bb1cce.entry.js +0 -13
- package/dist/vega/p-e45f8a67.entry.js +0 -1
- package/dist/vega/p-e9ad8223.entry.js +0 -1
- package/dist/vega/p-eaa43f31.entry.js +0 -1
- package/dist/vega/p-ebbaa112.entry.js +0 -1
- package/dist/vega/p-ed50233f.entry.js +0 -1
- package/dist/vega/p-f08a4adf.js +0 -1
- package/dist/vega/p-f47de801.entry.js +0 -1
- package/dist/vega/p-fc4c5265.entry.js +0 -1
- package/dist/vega/p-fe6ea6cf.entry.js +0 -1
package/dist/vega/p-d1ebec08.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as t}from"./p-2d0d575f.js";import{d as e}from"./p-b5822a21.js";import{b as n,c as s}from"./p-b5bef48a.js";import{c as r}from"./p-02841589.js";import{L as i}from"./p-6e1ab235.js";import{i as o}from"./p-b1faebe0.js";import{g as a}from"./p-a4670e23.js";import{V as c}from"./p-7e8f055d.js";import{c as l}from"./p-bf19682d.js";import{f as h}from"./p-575235c8.js";var u,d;!function(t){t.SELECTION_RANGE="SELECTION_RANGE",t.CLEAR_FORMATTING="CLEAR_FORMATTING",t.LINK_GROUP="LINK_GROUP"}(u||(u={}));class p{}!function(t){t.ALIGNMENT="ALIGNMENT",t.TEXT_STYLE="TEXT_STYLE",t.INDENT="INDENT",t.LIST="LIST",t.INTERNAL_WRAPPER="INTERNAL_WRAPPER"}(d||(d={}));class f extends p{}const g=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 n=this.rootDomToContentEntity.get(t);n&&n!==e&&this.contentEntityToRootDom.delete(n),this.rootDomToContentEntity.set(t,e),this.contentEntityToRootDom.set(e,t)}isVegaRTEContent(t){return t&&"VegaRTEContent"===t.constructor.name}};var x,m,w,A;!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.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"}(x||(x={}));class y{constructor(){this.isFlushable=!1}}class E extends p{constructor(t){super(),this.type=u.LINK_GROUP,this.linkGroups=new Map,this.linkGroups=new Map([[t,[]]])}clone(){const t=new E("");return this.linkGroups.forEach(((e,n)=>{t.linkGroups.set(n,e.map((t=>t.clone())))})),t}toString(t,e){const n=this.toJsx(t,e);return Object.entries(n).map((([t,e])=>{const n="string"==typeof e?e:this.formatStyleToString(e);return`${r(t)}="${n}"`})).join(" ")}toJsx(t,e){const n=this.getStyle(t,e),s=this.getClass(t,e),r=this.getAttribute(t,e);return s.length>0&&(r.class=s.join(" ")),n&&Object.keys(n).length>0&&(r.style=n),r}getClass(t,e){const n=[];return t.link.customClass&&n.push(...t.link.customClass),!(null==e?void 0:e.standalone)&&t.useInternalStyle&&n.push("v-rte--link"),n}getStyle(t,e){const n={};return t.link.customStyle&&Object.assign(n,t.link.customStyle),(null==e?void 0:e.standalone)&&t.useInternalStyle&&(n.color="rgba(var(--v-text-link, 19, 98, 226, 1))"),n}getAttribute(t,e){var n;const{href:s,customAttribute:r={}}=t.link,i=null===(n=null==e?void 0:e.autoMatchFormat)||void 0===n||n,o=r.target||(i?"_blank":"");return Object.assign(Object.assign(Object.assign({},r),s||i?{href:s}:{}),o?{target:o}:{})}formatStyleToString(t){return Object.entries(t).map((([t,e])=>`${r(t)}: ${e};`)).join(" ")}}class O extends f{constructor(t){super(),this.type=d.ALIGNMENT,this.textAlign=t}static from(t){return[d.ALIGNMENT,new O(t)]}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 O(this.textAlign)}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;switch(this.textAlign){case"right":case"center":case"justify":return{textAlign:this.textAlign};case"left":default:return{textAlign:"left"}}}}class S extends f{constructor(t){super(),this.type=d.INDENT,this.indent=Math.max(0,t)}static from(t){return[d.INDENT,new S(t)]}toJSON(){return this.indent>0?{indent:this.indent}:null}clone(){return new S(this.indent)}renderClass(){return null}renderStyle(){return this.indent>0?{marginLeft:16*this.indent+"px"}:null}}class T{static register(t,e,n){this.registry.has(e)||this.registry.set(e,new Map),this.registry.get(e).set(t,n)}static get(t,e){const n=this.registry.get(e);if(n)return n.get(t)}static executeTheStrategy(t,e){const n=t instanceof y?t.type:t.constructor.name,s=T.get(n,e.constructor.name);if(s)return s.execute(t,e);i.error(`Type ${n} action handle strategy is not registered in class ${e.constructor.name}`)}}T.registry=new Map,function(t){t.CUSTOM_ATTRIBUTE="CUSTOM_ATTRIBUTE",t.CUSTOM_CLASS="CUSTOM_CLASS",t.CUSTOM_STYLE="CUSTOM_STYLE"}(m||(m={}));class N extends p{}class C extends N{constructor(t){super(),this.type=m.CUSTOM_ATTRIBUTE,this.BOOLEAN_ATTRS=new Set(["controls","disabled","checked","readonly","multiple","required","autoplay","muted"]),this.customAttribute=t}static from(t){return[m.CUSTOM_ATTRIBUTE,new C(t)]}toJSON(){return{customAttribute:this.customAttribute}}clone(){return new C(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(o)}render(t={}){var e;const n=Object.assign({},this.customAttribute);return null===(e=t.filterAttributes)||void 0===e||e.forEach((t=>delete n[t])),Object.keys(n).forEach((t=>{this.BOOLEAN_ATTRS.has(t)&&""===n[t]&&(n[t]="true")})),n}}class v extends N{constructor(t){super(),this.type=m.CUSTOM_CLASS,this.customClass=t}static from(t){return[m.CUSTOM_CLASS,new v(t)]}toJSON(){return{customClass:this.customClass}}clone(){return new v(this.customClass)}toString(){return`class="${this.customClass.join(" ")}"`}renderClass(){return this.customClass}}class b extends N{constructor(t){super(),this.type=m.CUSTOM_STYLE,this.customStyle=t}static from(t){return[m.CUSTOM_STYLE,new b(t)]}toJSON(){return{customStyle:this.customStyle}}clone(){return new b(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="${Object.entries(this.customStyle).map((([t,e])=>`${t}: ${e};`)).join(" ")}"`}}class _ extends f{constructor(t){super(),this.type=d.INTERNAL_WRAPPER,this.internalWrapper=t}static from(t){return[d.INTERNAL_WRAPPER,new _(t)]}clone(){return new _(this.internalWrapper)}renderClass(){}renderStyle(){}toJSON(){return this.internalWrapper?{internalWrapper:this.internalWrapper}:void 0}}class L{constructor(t){this.annotationMap=new Map,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 createAnnotationEntity(t,e){switch(t){case"textAlign":return O.from(e);case"indent":return S.from(e);case"customAttribute":return C.from(e);case"customClass":return v.from(e);case"customStyle":return b.from(e);case"internalWrapper":return _.from(e)}}static convertAnnotationsToMap(t,e){Object.entries(e).forEach((([e,n])=>{const s=this.createAnnotationEntity(e,n);o(s)&&t.set(...s)}))}shouldRenderAsInternalWrapper(){const t=this.getAnnotationByType(d.INTERNAL_WRAPPER);return!!t&&t.internalWrapper&&0===Array.from(this.annotationMap.values()).filter((t=>!(t instanceof E||t instanceof _))).length}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof N)).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(s){if(this.doApply(s),s.isFlushable){const s=g.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}}isListItemBlock(){return"list-item"===this.type}getStyles(t={standalone:!1}){return Object.assign(Object.assign({},Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof b)).map((e=>e.renderStyle(t))).filter(o).reduce(((t,e)=>Object.assign(Object.assign({},t),e)),{})),this.shouldRenderAsInternalWrapper()?{display:"contents"}:{})}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof f||t instanceof v)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(m.CUSTOM_ATTRIBUTE)}generateAttributeString(...t){var e;const n=Object.entries(Object.assign({},this.getStyles({standalone:!0}))).map((([t,e])=>`${r(t)}: ${e};`)).join(""),s=this.annotationMap.get(m.CUSTOM_CLASS),i=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==s?void 0:s.toString(),n?`style="${n}"`:null,...t].filter(o);return i.length?` ${i.join(" ")}`:""}doApply(t){t instanceof y?T.executeTheStrategy(t,this):this.applyAnnotationAction(t)}applyAnnotationAction(t){const e=t.toAnnotation();e instanceof E||this.annotationMap.set(e.type,e),"function"==typeof this.doAnnotationActionApply&&this.doAnnotationActionApply(t)}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}}!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"}(w||(w={}));class R extends p{}!function(t){t.TEXT="TEXT",t.IMAGE="IMAGE",t.CODE_BLOCK_NODE="CODE_BLOCK_NODE"}(A||(A={}));class I{constructor(t,e){this.annotationMap=new Map,this.id=t,e&&(this.annotationMap=e)}static from(t,e,n){throw new Error(`[Vega] ${this.constructor.name}.from(${JSON.stringify(t)}, ${e}, ${n}) is not implemented. Please implement this method in the subclass.`)}static createAnnotationEntity(t,e){switch(t){case"customAttribute":return C.from(e);case"customClass":return v.from(e);case"customStyle":return b.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}){const e=Array.from(this.annotationMap.values()).filter((t=>t instanceof R||t instanceof b)).map((e=>e.renderStyle(t))).filter(Boolean);return this.mergeAnnotationStyles(e,["textDecoration"])}getClasses(t={standalone:!1}){return Array.from(this.annotationMap.values()).filter((t=>t instanceof R||t instanceof v)).map((e=>e.renderClass(t))).filter(o).reduce(((t,e)=>[t,e].join(" ").trim()),"")}getCustomAttributesAnnotation(){return this.annotationMap.get(m.CUSTOM_ATTRIBUTE)}isTextNode(){return!1}generateAttributeString(...t){var e;const n=Object.entries(Object.assign({},this.getStyles({standalone:!0}))).map((([t,e])=>`${r(t)}: ${e};`)).join(""),s=this.annotationMap.get(m.CUSTOM_CLASS),i=[...(null===(e=this.getCustomAttributesAnnotation())||void 0===e?void 0:e.toString(t))||[],null==s?void 0:s.toString(),n?`style="${n}"`:null,...t].filter(o);return i.length?` ${i.join(" ")}`:""}doApply(t){t instanceof y?this.doModifyActionApply(t):this.doAnnotationActionApply(t)}flushChange(){const s=g.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}cloneAnnotations(){return new Map(Array.from(this.annotationMap.entries()).map((([t,e])=>[t,e.clone()])))}doAnnotationActionApply(t){}doModifyActionApply(t){}mergeAnnotationStyles(t,e){const n={};for(const s of t)for(const t in s){const r=s[t],i=n[t];n[t]="string"==typeof i&&"string"==typeof r&&e.includes(t)?Array.from(new Set(`${i} ${r}`.split(/\s+/).filter(Boolean))).join(" "):r}return n}}class B{}class $ extends B{constructor(){super(...arguments),this.doSplit=!0}}class D extends p{constructor(t){super(),this.type=u.SELECTION_RANGE,this.range=t}clone(){return new D(this.range)}}class k extends R{constructor(t){super(),this.type=w.STRIKETHROUGH,this.strikethrough=t}static from(t){return[w.STRIKETHROUGH,new k(t)]}toJSON(){return{strikethrough:this.strikethrough}}clone(){return new k(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 M extends R{constructor(t){super(),this.type=w.UNDERLINE,this.underline=t}static from(t){return[w.UNDERLINE,new M(t)]}toJSON(){return{underline:this.underline}}clone(){return new M(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 j extends R{constructor(t){super(),this.type=w.ITALIC,this.italic=t}static from(t){return[w.ITALIC,new j(t)]}toJSON(){return{italic:this.italic}}clone(){return new j(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 P extends R{constructor(t){super(),this.type=w.BOLD,this.bold=t}static from(t){return[w.BOLD,new P(t)]}toJSON(){return{bold:this.bold}}clone(){return new P(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 F extends R{constructor(t,e=!0){super(),this.type=w.CODE,this.code=t,this.useInternalStyle=e}static from(t,e){return[w.CODE,new F(t,e)]}toJSON(){return{code:this.code}}clone(){return new F(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?{fontFamily:"Roboto Mono",whiteSpace:"pre-wrap"}:null}}const H={key:"black",light:"#111128",dark:"#E3E3E8"},W=[H,{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"}],K="";class J extends R{constructor(t){super(),this.type=w.TEXT_COLOR,this.textColor=this.formatTextColor(t)}static from(t){return[w.TEXT_COLOR,new J(t)]}toJSON(){return{textColor:this.textColor.key}}clone(){return new J(this.textColor.key)}renderClass(){return null}renderStyle(){return{color:c.isDarkMode()?this.textColor.dark:this.textColor.light}}formatTextColor(t){return W.find((e=>e.key===t))||W[0]}}class U extends R{constructor(t,e=!0){super(),this.type=w.LINK,this.link=t,this.useInternalStyle=e}static from(t,e=!0){return[w.LINK,new U(t,e)]}toJSON(){return{link:this.link}}clone(){return new U(this.link)}toEqual(t){return this.link.groupKey===t.link.groupKey}renderClass(){return null}renderStyle(){return null}}class G extends B{constructor(t,e,n){super(),this.isFlushable=!1,this.groupKey=t,this.nodes=e,this.type=n}toAnnotation(){return new E(this.groupKey)}}class z extends B{constructor(){super(),this.isFlushable=!1}toAnnotation(){return null}}const X=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 L)this.RTE_BLOCK_DTO_CLASS_MAP.set(t,e);else{if(!(e.prototype instanceof I))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 V{execute(t,e){return i.log(`Executing action ${t.constructor.name} on ${e.constructor.name} ${e.id}`),this.handleAction(t,e)}updateCustomStyleAnnotation(t,e){const n=t.annotationMap.get(m.CUSTOM_STYLE);n&&this.isCustomStyle(n,e)&&t.annotationMap.set(n.type,new b(n.removeStyles(e)))}createNewParagraph(t){const e=X.getRTEBlockClass("paragraph");if(e)return e.from({id:a(),type:"paragraph",nodes:[{id:a(),type:"text",text:t}]})}getRootContent(t){const e=t.parent;if(e)return"VegaRTEContent"===e.constructor.name?e:this.getRootContent(e)}isCaretPositionAtBlockStart(t,e,n){return e===t.children[0]&&0===n}isCaretPositionAtBlockEnd(t,e,n){return e.isContentEditable()?this.isCaretPositionAtTextBlockEnd(t,e,n):this.isCaretPositionAtDecoratorBlockEnd(t,e,n)}isCaretPositionAtTextBlockEnd(t,e,n){const s=t.children[t.children.length-1];return e===s&&(e.isEmpty()||n===s.text.length)}isCaretPositionAtDecoratorBlockEnd(t,e,n){return e===t.children[t.children.length-1]&&0!==n}isCustomStyle(t,e){return e.some((e=>Object.keys(t.customStyle).includes(e)))}}class q extends y{constructor(t){super(),this.type=x.LINK_GROUP_NODE_SPLIT,this.splittedTextNodes=t}}class Y extends V{constructor(){super(...arguments),this.applyTargetNode=null}handleAction(t,e){const n=e.getAnnotationByType(u.SELECTION_RANGE);if(this.setApplyTargetNode(null),t instanceof $&&t.doSplit&&n){const{startContainer:t,endContainer:s,startOffset:r,endOffset:i}=n.range,o=t===s&&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(n.range)){const s=this.splitTextNode(n.range,e);return t.annotationMap.has("LINK")&&t.apply(new q(s)),s}return this.setApplyTargetNode(e),e}return t}))}return this.applyTargetNode}insertNewNode(t,e){const n=e.cloneWithText("");return this.setApplyTargetNode(n),0===t?[n,e]:t===e.text.length?[e,n]:[e.cloneWithText(e.text.substring(0,t)),n,e.cloneWithText(e.text.substring(t))]}shouldSplitSelection(t){const{startContainer:e,endContainer:n,startOffset:s,endOffset:r}=t;return e!==n||s>0||r<(n.textContent?n.textContent.length:0)}splitTextNode(t,e){const{startContainer:n,endContainer:s,startOffset:r}=t,i=n.parentElement,o=s.parentElement,a=(t,n,s)=>{const r=t.substring(0,n),i=t.substring(n,s),o=t.substring(s);return[e.cloneWithText(r),e.cloneWithText(i),e.cloneWithText(o)]},c=i&&g.getEntityByDOM(i),l=o&&g.getEntityByDOM(o);if(c&&c.id===e.id){const i=n===s?t.endOffset:e.text.length,[o,c,l]=a(e.text,r,i);return this.setApplyTargetNode(c),[o,c,l].filter((t=>!!t.text))}if(l&&l.id===e.id){const[n,s,r]=a(e.text,0,t.endOffset);return this.setApplyTargetNode(s),[n,s,r].filter((t=>!!t.text))}return this.setApplyTargetNode(e),e}setApplyTargetNode(t){this.applyTargetNode=t}}class Q extends ${constructor(t){super(),this.isFlushable=!0,this.bold=t}toAnnotation(){return new P(this.bold)}}class Z extends p{constructor(){super(...arguments),this.type=u.CLEAR_FORMATTING,this.items=[w.BOLD,w.ITALIC,w.UNDERLINE,w.STRIKETHROUGH,w.TEXT_COLOR,w.CODE,m.CUSTOM_STYLE]}}class tt extends ${constructor(){super(...arguments),this.isFlushable=!0}toAnnotation(){return new Z}}class et extends ${constructor(t){super(),this.isFlushable=!0,this.code=t}toAnnotation(){return new F(this.code)}}class nt extends B{constructor(t){super(),this.isFlushable=!0,this.annotationType=t}toAnnotation(){}}class st extends ${constructor(t){super(),this.isFlushable=!0,this.italic=t}toAnnotation(){return new j(this.italic)}}class rt extends ${constructor({link:t,newText:e,needMergeNode:n,doSplit:s,type:r}){super(),this.isFlushable=!0,this.link=t,this.needMergeNode=n,this.newText=e,this.type=r,o(s)&&(this.doSplit=s)}toAnnotation(){return new U(this.link)}}class it extends ${constructor(t){super(),this.isFlushable=!0,this.strikethrough=t}toAnnotation(){return new k(this.strikethrough)}}class ot extends ${constructor(t){super(),this.isFlushable=!0,this.underline=t}toAnnotation(){return new M(this.underline)}}class at extends V{handleAction(t,e){const n=t.toAnnotation();if(t instanceof nt)e.annotationMap.delete(t.annotationType);else{if(!(n instanceof Z))return n instanceof R||n instanceof D?(t instanceof rt&&(o(t.newText)&&(e.text=t.newText),e.parent.apply(new G(t.link.groupKey,[e],t.type))),t instanceof et&&this.handleAction(new tt,e),t instanceof Q&&this.updateCustomStyleAnnotation(e,["fontWeight"]),t instanceof st&&this.updateCustomStyleAnnotation(e,["fontStyle"]),(t instanceof ot||t instanceof it)&&this.updateCustomStyleAnnotation(e,["textDecoration"]),void e.annotationMap.set(n.type,n)):void 0;n.items.forEach((t=>{e.deleteAnnotationByType(t)}))}}}class ct extends y{constructor(){super(...arguments),this.type=x.DELETE_LINK_GROUP}}class lt extends V{handleAction(t,e){e.text=t.newTextContent,!e.text&&e.annotationMap.has("LINK")&&e.apply(new ct)}}class ht extends y{constructor(t){super(),this.type=x.UPDATE_TEXT,this.newTextContent="",this.newTextContent=t}}class ut extends V{handleAction(t,e){this.replaceSelectedText(t.textToBeInsert,t.currentRange,e)}replaceSelectedText(t,e,n){if(e&&e.startContainer&&e.endContainer){const{startContainer:s,endContainer:r,startOffset:i,endOffset:o}=e;let a=n.text;if(s===r&&i===o&&t)a=n.text.slice(0,i)+t+n.text.slice(i);else{const e=s.parentElement,c=r.parentElement,l=e&&g.getEntityByDOM(e),h=c&&g.getEntityByDOM(c);let u=0,d=n.text.length;l&&l===n?(u=i,d=s===r?o:d):h&&h===n&&(d=o),a=n.text.slice(0,u)+t+n.text.slice(d)}n.apply(new ht(a))}}}class dt extends p{constructor(t){super(),this.type=w.INLINE_HTML,this.htmlTag=t}static from(t){const{htmlTag:e,child:n,customStyle:s,customClass:r,customAttribute:i}=t,o=new dt(e);return o.child=n?dt.from(n)[1]:void 0,o.customAttribute=i?C.from(i)[1]:void 0,o.customClass=r?v.from(r)[1]:void 0,o.customStyle=s?b.from(s)[1]:void 0,[w.INLINE_HTML,o]}clone(){var t,e,n,s;const r=new dt(this.htmlTag);return 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===(n=this.customClass)||void 0===n?void 0:n.clone(),r.customStyle=null===(s=this.customStyle)||void 0===s?void 0:s.clone(),r}toJSON(){var t,e,n,s;return{inlineHtml:l({htmlTag:this.htmlTag,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===(n=this.customClass)||void 0===n?void 0:n.toJSON().customClass,customStyle:null===(s=this.customStyle)||void 0===s?void 0:s.toJSON().customStyle})}}}class pt extends V{handleAction(t,e){const n=e.parent.getAnnotationByType(u.LINK_GROUP);if(n){const s=e.annotationMap.get("LINK").link.groupKey,r=n.linkGroups.get(s);if(r){const i=r.indexOf(e);-1!==i&&(r.splice(i,1,...Array.isArray(t.splittedTextNodes)?t.splittedTextNodes:[t.splittedTextNodes]),n.linkGroups.set(s,r))}}}}class ft extends V{handleAction(t,e){const n=e.parent.getAnnotationByType(u.LINK_GROUP);if(n){const t=e.annotationMap.get(w.LINK).link.groupKey,s=n.linkGroups.get(t);if(s){const r=s.indexOf(e);-1!==r&&s.splice(r,1),0===s.length&&n.linkGroups.delete(t),0===n.linkGroups.size&&e.parent.annotationMap.delete(u.LINK_GROUP)}}e.annotationMap.delete(w.LINK)}}class gt extends R{constructor(t){super(),this.type=w.PLAIN_TEXT,this.plainText=!0,this.plainText=t}static from(t){return[w.PLAIN_TEXT,new gt(t)]}clone(){return new gt(this.plainText)}renderClass(){}renderStyle(){}toJSON(){return{plainText:this.plainText}}}class xt extends I{constructor(t,e,n,s){super(t,s),this.type=A.TEXT,this.parent=n,this.text=e,this.registerModifyStrategy()}static supportsHtmlTag(t){return["span","code"].includes(t)}static from(t,e,n={autoMatchFormat:!0}){const s=new xt(t.id,t.text,e),{annotations:r}=t;return r&&(s.annotationMap=new Map(Object.keys(r).map((t=>("link"===t&&r.link&&e&&e.apply(new G(r.link.groupKey,[s],"link")),this.createAnnotationEntity(t,r[t],n)))).filter(o))),s}static createAnnotationEntity(t,e,n){const s=!(!n||!n.autoMatchFormat);switch(t){case"bold":return P.from(e);case"italic":return j.from(e);case"underline":return M.from(e);case"strikethrough":return k.from(e);case"code":return F.from(e,s);case"textColor":return J.from(e);case"link":return U.from(e,s);case"inlineHtml":return dt.from(e);case"plainText":return gt.from(e)}return I.createAnnotationEntity(t,e)}toJSON(){const t=Array.from(this.annotationMap.values()).filter((t=>t instanceof R||t instanceof N||t instanceof dt)).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(){const t=this.getAnnotationByType(w.INLINE_HTML);return t?this.renderWithWrapperStr(t):this.renderTextStr()}cloneWithText(t){return new xt(a(),t,this.parent,super.cloneAnnotations())}clone(){return new xt(this.id,this.text,this.parent,super.cloneAnnotations())}isEmpty(){return!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=g.getDOMByEntity(this);if(t)return this.isContentEditable()?t.firstChild:t.parentElement}isContentEditable(){return!0}registerModifyStrategy(){const t=this.constructor.name;xt.registerActionStrategyStatus[t]||(this.isContentEditable()&&(T.register(x.UPDATE_TEXT,t,new lt),T.register(x.REPLACE_SELECTED_TEXT,t,new ut),T.register($.name,t,new Y)),T.register(x.LINK_GROUP_NODE_SPLIT,t,new pt),T.register(x.DELETE_LINK_GROUP,t,new ft),T.register(B.name,t,new at),xt.registerActionStrategyStatus[t]=!0)}doAnnotationActionApply(t){const e=this.getAnnotationByType(u.SELECTION_RANGE);if(t instanceof $&&t.doSplit&&e){const e=T.get($.name,this.constructor.name);if(e){const n=e.execute(t,this);n&&this.applyActionToNode(n,t)}}else this.applyActionToNode(this,t);"function"==typeof this.parent.mergeNodes&&this.parent.mergeNodes(t)}doModifyActionApply(t){T.executeTheStrategy(t,this)}applyActionToNode(t,e){const n=e.toAnnotation();if(e instanceof z)return void this.syncUpSelectedNodes(t);n instanceof D||this.syncUpSelectedNodes(t);const s=T.get(B.name,xt.name);s&&s.execute(e,t)}syncUpSelectedNodes(n){const r=g.getDOMByEntity(this);if(r){const i=e.getSubjectFromParentNodeByEventId(r,s);i&&t.notify(i,{node:n})}}renderWithWrapperStr(t){const{htmlTag:e,customAttribute:n,customClass:s,customStyle:r,child:i}=t,a=[...(null==n?void 0:n.toString())||[],null==s?void 0:s.toString(),null==r?void 0:r.toString()].filter(o),c=a.length>0?` ${a.join(" ")}`:"";return i?`<${e}${c}>${this.renderWithWrapperStr(i)}</${e}>`:`<${e}${c}>${this.renderTextStr()}</${e}>`}renderTextStr(){var t;const e=(null===(t=this.getAnnotationByType(w.CODE))||void 0===t?void 0:t.code)?"code":"span",n=super.generateAttributeString();return"\n"===this.text?"<br>":this.shouldRenderAsPlainText()?this.text:`<${e}${n}>${this.text}</${e}>`}shouldRenderAsPlainText(){const t=super.getAnnotationByType(w.PLAIN_TEXT);return!!t&&t.plainText&&0===Array.from(this.annotationMap.values()).filter((t=>t instanceof R&&!(t instanceof U)&&!(t instanceof gt)||t instanceof N)).length}}xt.registerActionStrategyStatus={},xt.htmlTag="span";class mt extends y{constructor(t){super(),this.type=x.APPEND_CHILDREN,this.entityToBeAppended=t}}class wt extends f{constructor(t){super(),this.type=d.TEXT_STYLE,this.textStyle=t}static from(t){return[d.TEXT_STYLE,new wt(t)]}toJSON(){return{textStyle:this.textStyle}}clone(){return new wt(this.textStyle)}renderClass(t){return(null==t?void 0:t.standalone)?null:this.textStyle?`v-rte--text-style-${this.textStyle}`:null}renderStyle(t){if(!(null==t?void 0:t.standalone))return null;const e={fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};switch(this.textStyle){case"paragraph":return e;case"title":return{fontFamily:"Inter",fontSize:"36px",lineHeight:"40px",fontWeight:"500"};case"subtitle":return{fontFamily:"Inter",fontSize:"28px",lineHeight:"32px",fontWeight:"500"};case"heading-1":return{fontFamily:"Inter",fontSize:"22px",lineHeight:"24px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-2":return{fontFamily:"Inter",fontSize:"20px",lineHeight:"24px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-3":return{fontFamily:"Inter",fontSize:"18px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-4":return{fontFamily:"Inter",fontSize:"16px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-5":return{fontFamily:"Inter",fontSize:"14px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"};case"heading-6":return{fontFamily:"Inter",fontSize:"12px",lineHeight:"22px",fontWeight:"500",marginTop:"0px",marginBottom:"0px"}}}}class At extends B{constructor(t,e){super(),this.isFlushable=!0,this.textStyle=t,this.bold=e}toAnnotation(){return new wt(this.textStyle)}}class yt extends y{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_AFTER,this.referChildren=t,this.childrenToBeInserted=e}}class Et extends y{constructor(t){super(),this.type=x.REPLACE_CHILD_NODES,this.newChildNodes=t}}class Ot extends V{handleAction(t,e){t.newBlock=this.splitTextNodeBlock(t.splitPointNode,t.startOffsetOfNode,e)}splitTextNodeBlock(t,e,n){if(t){const s=t.text.slice(0,e),r=t.text.slice(e),i=n.children.indexOf(t);if(i>-1){const e=n.children.slice(0,i),o=n.children.slice(i+1);s&&e.push(t.cloneWithText(s)),r&&o.unshift(t.cloneWithText(r)),n.apply(new Et(e));const a=n.cloneWithNodes(o);return n.parent.apply(new yt(n,a)),a}}}}class St extends V{handleAction(t,e){e.children=[],e.apply(new mt(t.newChildNodes))}}class Tt extends y{constructor(t){super(),this.type=x.DELETE_CHILDREN,this.entityToBeRemoved=t}}class Nt extends V{handleAction(t,e){const n=t.blockNeedToBeMerged;if(e.type===n.type||"image"!==e.type&&"image"!==n.type){let t=n.children;"image"!==n.type&&(t=n.children.filter((t=>t.text))),e.apply(new mt(t)),n.parent.apply(new Tt(n))}}}class Ct extends V{handleAction(t,e){t.lineBreakNode=this.lineBreakSingleBlock(t.startContainerNode,t.startOffset,e)}lineBreakSingleBlock(t,e,n){if(t){const s=new xt(a(),"\n",n),r=t.text.slice(0,e),i=t.text.slice(e),o=n.children.indexOf(t);if(o>-1){const e=n.children.slice(0,o),a=n.children.slice(o+1);r&&e.push(t.cloneWithText(r)),i&&a.unshift(t.cloneWithText(i)),this.mergeLineBreakNodes(e,s,a,n)}return s}}mergeLineBreakNodes(t,e,n,s){(0===n.length||n[0]&&""===n[0].text)&&n.push(new xt(a(),"\n",s,t[t.length-1]&&t[t.length-1].annotationMap)),s.apply(new Et([...t,e,...n]))}}class vt extends V{handleAction(t,e){t.lineBreakNode=this.lineBreakMultipleBlocks(t.selectedBlocks,e)}lineBreakMultipleBlocks(t,e){const n=e.children,s=new xt(a(),"\n",e),r=this.concatBlocksNodes(t.slice(1));return this.mergeLineBreakNodes(n,s,r,e),s}concatBlocksNodes(t){const e=[];return t.map((t=>{"image"!==t.type&&(e.push(...t.children),t.parent.apply(new Tt(t)))})),e}mergeLineBreakNodes(t,e,n,s){(0===n.length||n[0]&&""===n[0].text)&&n.push(new xt(a(),"\n",s,t[t.length-1]&&t[t.length-1].annotationMap)),s.apply(new Et([...t,e,...n]))}}class bt extends y{constructor(t,...e){super(),this.type=x.INSERT_CHILDREN_BEFORE,this.referChildren=t,this.childrenToBeInserted=e}}class _t extends y{constructor(t,e){super(),this.type=x.SPLIT_BLOCK_WITH_NODE,this.splitPointNode=t,this.startOffsetOfNode=e}}class Lt extends B{constructor(t){super(),this.isFlushable=!0,this.textAlign=t}toAnnotation(){return new O(this.textAlign)}}class Rt extends V{handleAction(t,e){this.updateCustomStyleAnnotation(e,["textAlign"])}}class It extends B{constructor(t){super(),this.isFlushable=!0,this.indent=t}toAnnotation(){return new S(this.indent)}}class Bt extends L{constructor(t,e,n){super(t),this.children=[],this.type=e;const{autoMatchFormat:s}=n||{autoMatchFormat:!0};s&&(this.annotationMap=Bt.isAcceptableTextStyle(e)?new Map([wt.from(e)]):new Map([wt.from("paragraph")]))}static from(t,e={autoMatchFormat:!0}){var n,s;const r=new Bt(t.id,t.type,e),i=e.autoMatchFormat?Object.assign(Object.assign({},t.annotations),{textStyle:null!==(s=null===(n=t.annotations)||void 0===n?void 0:n.textStyle)&&void 0!==s?s:r.type}):t.annotations;return r.children=t.nodes.map((t=>{const n=X.getRTENodeClass(t.type);if(n)return n.from(t,r,e)})).filter(o),i&&super.convertAnnotationsToMap(r.annotationMap,i),r}static createAnnotationEntity(t,e){return"textStyle"===t?wt.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,n)=>{const s=e.at(-1);if(t instanceof rt&&t.needMergeNode){const t=null==s?void 0:s.getAnnotationByType(w.LINK),r=n.getAnnotationByType(w.LINK);if(t&&r&&t.toEqual(r))return e}return[...e,n]}),[])}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{type:this.type,nodes:this.children.map((t=>t.toJSON()))})}toHtml(t){const e=this.getBlockTag(),n=super.generateAttributeString(),s=this.getAnnotationByType(u.LINK_GROUP);let r=this.children.map((t=>t.toHtml())).join("");return s&&this.children.length>0&&(r=this.generateLinkHtml(s,r,t)),super.shouldRenderAsInternalWrapper()?r:[`<${e}${n}>`,r,`</${e}>`].join("")}cloneWithNodes(t){const e=new Bt(a(),this.type);return e.annotationMap=super.cloneAnnotations(),e.apply(new mt(t)),e}clone(){const t=new Bt(this.id,this.type);return t.children=this.children.map((e=>{const n=e.clone();return n.parent=t,n})),t.annotationMap=super.cloneAnnotations(),t.parent=this.parent,t}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"}}doAnnotationActionApply(t){const e=T.get(t.constructor.name,Bt.name);e&&e.execute(t,this)}generateLinkHtml(t,e,n){e="";let s=[];for(let r=0;r<this.children.length;r++){const i=this.children[r].getAnnotationByType(w.LINK),o=this.children[r+1]?this.children[r+1].getAnnotationByType(w.LINK):null;if(i){if(s.push(this.children[r]),!o||i.link.groupKey!==o.link.groupKey){const r=t.toString(i,{standalone:!0,autoMatchFormat:null==n?void 0:n.autoMatchFormat});e+=[`<a${r?` ${r}`:""}>`,s.map((t=>t.toHtml())).join(""),"</a>"].join(""),s=[]}}else e+=this.children[r].toHtml()}return e}}T.register(At.name,Bt.name,new class extends V{handleAction(t,e){"list-item"!==e.type&&(e.type=t.textStyle),e.children.forEach(t.bold?t=>{const e=new Q(!0);e.doSplit=!1,t.apply(e)}:t=>{t.apply(new nt(w.BOLD))}),this.updateCustomStyleAnnotation(e,["fontFamily","lineHeight","fontWeight","fontSize"])}}),T.register(Lt.name,Bt.name,new Rt),T.register(It.name,Bt.name,new class extends V{handleAction(t,e){this.updateCustomStyleAnnotation(e,["marginLeft"])}}),T.register(G.name,Bt.name,new class extends V{handleAction(t,e){let n=e.getAnnotationByType(u.LINK_GROUP);if("update_link"===t.type){if(n){const e=n.linkGroups.get(t.groupKey);e&&n.linkGroups.set(t.groupKey,[e[0]])}}else{if(n){const e=n.linkGroups.get(t.groupKey)||[];n.linkGroups.set(t.groupKey,[...e,...t.nodes])}else n=t.toAnnotation(),n.linkGroups.set(t.groupKey,[...t.nodes]);e.annotationMap.set(u.LINK_GROUP,n)}}}),T.register(x.UNLINK_LINK_GROUP,Bt.name,new class extends V{handleAction(t,e){const n=e.getAnnotationByType(u.LINK_GROUP);n&&(n.linkGroups.size>1?n.linkGroups.delete(t.groupKey):e.annotationMap.delete(u.LINK_GROUP))}}),T.register(x.SPLIT_BLOCK_WITH_NODE,Bt.name,new Ot),T.register(x.REPLACE_CHILD_NODES,Bt.name,new St),T.register(x.MERGE_TWO_BLOCKS_NODES,Bt.name,new Nt),T.register(x.LINE_BREAK_SINGLE_BLOCK,Bt.name,new Ct),T.register(x.LINE_BREAK_MULTIPLE_BLOCKS,Bt.name,new vt),T.register(x.INSERT_IMAGE_TO_BLOCK,Bt.name,new class extends V{handleAction(t,e){const n=t.splitPointNode,s=t.startOffsetOfNode,r=t.imageBlockToBeInserted;if(this.isCaretPositionAtBlockEnd(e,n,s))e.parent.apply(new yt(e,r));else if(this.isCaretPositionAtBlockStart(e,n,s))e.parent.apply(new bt(e,r));else{const t=new _t(n,s);e.apply(t),e.parent.apply(new yt(e,r))}}}),T.register(x.TRANSFORM_LIST_BLOCK,Bt.name,new class extends V{handleAction(t,e){const n=e.parent,s=n.createList(t.listType),r=t.selectedBlocks,i=r.map((t=>n.toListItem(t)));s.apply(new mt(i)),n.apply(new yt(t.selectedBlocks[0],s)),r.forEach((t=>{t.parent.apply(new Tt(t))}))}});class $t extends V{getPreviousNode(t){const e=t.parent,n=e.children.indexOf(t);if(n>0)return e.children[n-1];if(e.parent){const t=this.getPreviousBlock(e);if(t)return this.getBlockLastNode(t)}}getNextNode(t){const e=t.parent,n=e.children.indexOf(t);if(e.children[n+1])return e.children[n+1];if(e.parent){const t=this.getNextBlock(e);if(t)return this.getBlockFirstNode(t)}}isContentFirstNode(t){const e=t.parent,n=e.children.indexOf(t),s=e.parent;if(e.isListItemBlock()){const t=s.parent;return 0===n&&Array.isArray(s.children)&&s.children[0]===e&&"list-item"!==t.type&&Array.isArray(t.children)&&t.children[0]===s}return 0===n&&Array.isArray(s.children)&&s.children[0]===e}getPreviousBlock(t){if(t&&t.parent&&t.parent.children){const e=t.parent.children.indexOf(t);if(e>0)return t.parent.children[e-1];if(("number-list"===t.parent.type||"bullet-list"===t.parent.type)&&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)}}}class Dt extends y{constructor(t,e){super(),this.isFlushable=!0,this.type=x.UPDATE_CODE_BLOCK,this.content=t,this.language=e}}class kt extends B{constructor(t){super(),this.isFlushable=!1,this.range=t}toAnnotation(){return new D(this.range)}}class Mt extends I{constructor(){super(...arguments),this.type="decorator-node",this.isSelected=!1}static isDecoratorNodeContainerElement(t){return t&&t.classList.contains(Mt.DECORATOR_CONTAINER_CLASS)}static getDecoratorNodeElement(t){return t.querySelector(`.${Mt.DECORATOR_NODE_CLASS}`)}getRangeEndOffset(){return 1}getRangeContainer(){const t=g.getDOMByEntity(this);if(t)return h(t,`.${Mt.DECORATOR_CONTAINER_CLASS}`)}isContentEditable(){return!1}}Mt.DECORATOR_CONTAINER_CLASS="v-internal-decorator-container",Mt.DECORATOR_NODE_CLASS="v-internal-decorator-node";class jt extends Mt{constructor(t,e,n,s){super(t),this.type=A.CODE_BLOCK_NODE,this.text="",this.annotationMap=new Map,this.text=e,this.parent=s,this.language=n}toJSON(){return{id:this.id,type:"text",text:this.text,language:this.language}}toHtml(){return`<code style='box-sizing: border-box;color: rgba(var(--v-text-primary, 32, 54, 69, 1));text-align: left;font-family: "Roboto Mono";font-weight: 400;line-height: 22px;font-size: 16px;white-space: pre-wrap;min-height: 22px;tab-size: 2px;'>${this.text}</code>`}clone(){return new jt(this.id,this.text,this.language,this.parent)}doAnnotationActionApply(t){T.executeTheStrategy(t,this)}doModifyActionApply(t){T.executeTheStrategy(t,this)}}T.register(x.UPDATE_CODE_BLOCK,jt.name,new class extends V{handleAction(t,e){const{content:n,language:s}=t;e.language=s,e.text=n}}),T.register(kt.name,jt.name,new class extends V{handleAction(t,e){e.annotationMap.set(u.SELECTION_RANGE,t.toAnnotation())}});var Pt;!function(t){t.CSS="css",t.HTML="html",t.JavaScript="js",t.JSX="jsx",t["Plain Text"]="plainText",t.TypeScript="ts",t.TSX="tsx"}(Pt||(Pt={}));class Ft extends V{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 Tt(e)))}}class Ht extends L{constructor(t,e,n){super(t),this.type="code-block",this.children=[new jt(`${t}-1`,e,n,this)]}static from(t){return new Ht(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(){const{language:t=Pt["Plain Text"]}=this.children[0];return`<pre data-language="${t}" style="background-color: rgba(var(--v-bg-secondary, 245, 247, 247, 1)); padding: 12px">${this.children.map((t=>t.toHtml()))}</pre>`}clone(){const t=Ht.from(this.toJSON());return t.parent=this.parent,t}apply(s){if(s instanceof y&&T.executeTheStrategy(s,this),s.isFlushable){const s=g.getDOMByEntity(this);if(s){const r=e.getSubjectFromParentNodeByEventId(s,n);r&&t.notify(r,{})}}}isNotEmpty(){return!!this.children.length}getLastNode(){return this.children[0]}isSelected(){return this.children[0].annotationMap.has(u.SELECTION_RANGE)}}T.register(x.DELETE_CODE_BLOCK,Ht.name,new class extends $t{handleAction(t,e){const n=e.children[0],s=e.parent;if(s){let t=this.getPreviousNode(n),r=this.getRTENodeEndOffset(t);t||(t=this.getNextNode(n),r=0),s.apply(new Tt(e));const i=t?g.getDOMByEntity(t):null;if(0===s.children.length){const n=Bt.from({id:a(),type:"paragraph",nodes:[{id:a(),type:"text",text:""}]});e.parent.apply(new mt([n])),t=n.children[0],r=0}this.notifyUpdateSelection(t,i,r,e)}}notifyUpdateSelection(n,r,i,o){const a=g.getDOMByEntity(o);if(a){const o=e.getSubjectFromParentNodeByEventId(a,s);o&&t.notify(o,{node:n,updateDirectly:!!r,offset:i})}}getRTENodeEndOffset(t){return t&&"CODE_BLOCK_NODE"!==t.type?"IMAGE"!==t.type?t.text.length:1:0}}),T.register(x.DELETE_CHILDREN,Ht.name,new Ft),T.register(x.SWITCH_OUT_FROM_CODE_BLOCK,Ht.name,new class extends V{handleAction(n,r){const{content:i,language:o}=n,c=i.split("\n"),l=new Dt(c.slice(0,c.length-2).join("\n"),o);l.isFlushable=!1,r.children[0].apply(l);const h=Bt.from({id:a(),type:"paragraph",nodes:[{id:a(),text:"",type:"text"}]});r.parent.apply(new yt(r,h));const u=g.getDOMByEntity(r);if(u){const n=e.getSubjectFromParentNodeByEventId(u,s);n&&t.notify(n,{node:h.children[0]})}}}),T.register(x.INSERT_IMAGE_TO_BLOCK,Ht.name,new class extends V{handleAction(t,e){e.parent.apply(new yt(e,t.imageBlockToBeInserted))}}),Ht.CODE_BLOCK_PLACEHOLDER_CLASS_NAME="code-block-placeholder-element";export{ot as $,V as A,Ct as B,b as C,$t as D,Ft as E,W as F,H as G,Lt as H,yt as I,I as J,Pt as K,rt as L,x as M,R as N,u as O,m as P,Dt as Q,Bt as R,z as S,kt as T,ht as U,$ as V,J as W,jt as X,Q as Y,K as Z,st as _,xt as a,At as a0,wt as a1,P as a2,tt as a3,et as a4,it as a5,It as a6,mt as b,T as c,vt as d,Ot as e,St as f,Nt as g,Tt as h,bt as i,f as j,d as k,L as l,v as m,C as n,Ht as o,w as p,Mt as q,A as r,g as s,N as t,B as u,Et as v,y as w,_t as x,Rt as y,X as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,F as t,r as i,c as n,H as a,g as r}from"./p-48a58baf.js";import{c as s,V as o,I as l}from"./p-6e1ab235.js";import{g as d,D as c}from"./p-575235c8.js";import{V as m,I as p}from"./p-d849e0f5.js";import{D as h}from"./p-0cd89fb6.js";import{b as f,a as b}from"./p-b5822a21.js";import{s as g}from"./p-519a7d55.js";import{C as x}from"./p-bbb96a13.js";import{c as v}from"./p-4474bc63.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-af464251.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";var u=function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class w extends o{constructor(){super(...arguments),this.isMobile=d()===c.MOBILE}getBreadcrumbContainerRef(){return this.vegaBreadcrumbContainerRef}render(){return e("div",{class:{"vega-breadcrumb":!0,mobile:this.isMobile,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,{isMobile:this.isMobile,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.isMobile&&"none"!==this.maxItems&&this.maxItems>=4&&this.items.length>this.maxItems}}u([s()],w.prototype,"items",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){const i=t.map((e=>({label:e.label,key:e.label})));return e("div",{class:"vega-breadcrumb-item"},e("vega-dropdown",{source:i,placement:["bottom"],alignment:"center",maxHeight:200,ref:e=>{h.addUniqueObserverToNode(e,f,(e=>{this.clickController.dropdownClick(e.detail)}))}},e("vega-text",null,"...")),e("vega-icon",{icon:"chevron-right-rounded",size:"size-12",color:"text-secondary"}))}}!function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([s()],y.prototype,"clickController",void 0);class j extends o{render(t,i){return e("div",{class:"vega-breadcrumb-item",key:t.label},this.renderContent(t,i))}renderContent(i,n){return n.isMobile&&!n.isLastItem?e(t,null,this.renderIcon("chevron-left-rounded","text-link"),this.renderLabel(i)):n.isLastItem?this.renderLabel(i,!0):e(t,null,this.renderLabel(i),this.renderIcon("chevron-right-rounded","text-secondary"))}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){return i?e("span",{class:"vega-breadcrumb-last-label"},t.label):e("vega-button-link",{label:t.label,ref:e=>{h.addUniqueObserverToNode(e,b,(()=>{this.clickController.click(t)}))}})}}!function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([s()],j.prototype,"clickController",void 0);var I=function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class k extends o{click(e){const t=this.clickEventEmitter.emit(e);t&&!t.defaultPrevented&&e.href&&(window.location.href=e.href)}dropdownClick(e){const t=this.items.find((t=>t.label===e));t&&this.click(t)}}I([s()],k.prototype,"items",void 0),I([s()],k.prototype,"clickEventEmitter",void 0);var R=function(e,t,i,n){var a,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var o=e.length-1;o>=0;o--)(a=e[o])&&(s=(r<3?a(s):r>3?a(t,i,s):a(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};const z=class{constructor(e){i(this,e),this.vegaClick=n(this,"vegaClick",7),this.click=n(this,"click",7),this.globalSlimmers={},this.renderer=new w,this.collapsedItemRenderer=new y,this.itemRenderer=new j,this.clickController=new k,this.eventsPrevent=new x([b],(()=>this.renderer.getBreadcrumbContainerRef())),this.clickEventEmitter=v(z,b),this.vegaComponentUsageRuntimeMetricsSlimmer=new m,this.maxItems=4,this.items=[]}render(){return g(e(a,null,this.renderer.render()),this.host)}get host(){return r(this)}};R([p()],z.prototype,"globalSlimmers",void 0),R([l()],z.prototype,"renderer",void 0),R([l()],z.prototype,"collapsedItemRenderer",void 0),R([l()],z.prototype,"itemRenderer",void 0),R([l()],z.prototype,"clickController",void 0),R([l()],z.prototype,"eventsPrevent",void 0),R([l()],z.prototype,"clickEventEmitter",void 0),R([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.mobile>.vega-breadcrumb-item{display:none}:host .vega-breadcrumb.mobile .vega-breadcrumb-item:nth-last-child(2){display:flex}:host .vega-breadcrumb.mobile.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.mobile.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.mobile.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.mobile.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}
|
package/dist/vega/p-dbe5daa7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{V as e}from"./p-8539e05e.js";import{I as r}from"./p-abd7aeaa.js";class i extends r{evaluate(e){var r,i;if(!this.isAcceptedInputType(e))throw new Error(`Invalid value ${e} for rich text editor`);const t=(null===(r=null==e?void 0:e.children)||void 0===r?void 0:r.length)>1||1===(null===(i=null==e?void 0:e.children)||void 0===i?void 0:i.length)&&e.children.some((e=>e.isNotEmpty()));return{isValid:t,message:t?"":"This field is required"}}canEvaluate(e,r){return r?this.isAcceptedInputType(e)&&!r.disabled&&r.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(r){return null==r||r instanceof e}}export{i as R}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t,r as e,c as i,H as s,g as n}from"./p-48a58baf.js";import{s as o}from"./p-519a7d55.js";import{c as r,V as a,I as l}from"./p-6e1ab235.js";import{V as f,I as p}from"./p-d849e0f5.js";import{c as d}from"./p-4474bc63.js";import{a as c,s as h}from"./p-b5822a21.js";import{c as m}from"./p-86194314.js";import"./p-6a334573.js";import"./p-2d0d575f.js";import"./p-0cd89fb6.js";import"./p-331a62d5.js";import"./p-af464251.js";import"./p-b75ee3ba.js";import"./p-575235c8.js";var b=function(t,e,i,s){var n,o=arguments.length,r=o<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 a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};class x extends a{constructor(){super(...arguments),this.handleSuffixButtonClick=t=>{t.stopPropagation(),this.suffixButtonClickEventEmitter.emit()}}render(){if(this.suffixButtonProps){const{icon:e,tooltipText:i,trigger:s="hover"}=this.suffixButtonProps;return t("div",{class:"label-suffix-button",role:"button",tabIndex:0,onClick:this.handleSuffixButtonClick,onKeyDown:m()},i?t("vega-tooltip",{trigger:s,text:i},this.renderSuffixButton(e)):this.renderSuffixButton(e))}}renderSuffixButton(e){return t("vega-button-circle",{size:"extra-small",variant:"icon-only",iconColor:"text-link",showTooltip:!1,icon:e})}}b([r()],x.prototype,"suffixButtonProps",void 0),b([r()],x.prototype,"suffixButtonClickEventEmitter",void 0);var v=function(t,e,i,s){var n,o=arguments.length,r=o<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 a=t.length-1;a>=0;a--)(n=t[a])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const u=class{constructor(t){e(this,t),this.vegaClick=i(this,"vegaClick",7),this.vegaLabelButtonClick=i(this,"vegaLabelButtonClick",1),this.labelButtonClick=i(this,"labelButtonClick",1),this.globalSlimmers={},this.clickEventEmitter=d(u,c),this.suffixButtonClickEventEmitter=d(u,h),this.vegaComponentUsageRuntimeMetricsSlimmer=new f,this.suffixElementRenderer=new x,this.suffixButtonProps=null,this.label="",this.isFieldRequired=!1,this.disabled=!1,this.handleClick=t=>{this.clickEventEmitter.emit(void 0,t)}}componentWillLoad(){""===this.label&&(this.label=this.host.textContent,this.host.textContent="")}render(){return o(t(s,{class:{hidden:""===this.label,disabled:this.disabled},onClick:this.handleClick},t("label",null,t("span",{class:"vega-field-label"},this.label),t("span",{class:{"vega-field-label-required":!0,hidden:!this.isFieldRequired}},"*")),this.suffixElementRenderer.render()),this.host)}get host(){return n(this)}};v([p()],u.prototype,"globalSlimmers",void 0),v([l()],u.prototype,"clickEventEmitter",void 0),v([l()],u.prototype,"suffixButtonClickEventEmitter",void 0),v([l()],u.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),v([l()],u.prototype,"suffixElementRenderer",void 0),u.style=':host{display:inline-block}:host(.disabled){pointer-events:none}:host(.hidden){display:none}label:first-of-type{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;word-break:break-word}@media screen and (min-width: 768px) and (max-width: 1023px){label:first-of-type{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){label:first-of-type{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){label:first-of-type{font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px}}:host(.disabled)>label>span.vega-field-label{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-field-label-required{color:rgba(var(--v-text-error, 189, 41, 71, 1));margin-left:4px}.vega-field-label-required.hidden{display:none}.label-suffix-button{display:inline-block;margin-left:4px;vertical-align:top}';export{u as vega_field_label}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{h as t,H as e,F as i,r as n,c as r,g as s}from"./p-48a58baf.js";import{s as o}from"./p-519a7d55.js";import{D as a}from"./p-8fae8f9e.js";import{c as h,i as d,b as c,d as l}from"./p-08835909.js";import{I as p}from"./p-abd7aeaa.js";import{c as u,V as f,M as m,L as v,I as g}from"./p-6e1ab235.js";import{V as w,I as x}from"./p-d849e0f5.js";import{F as b}from"./p-7a3b142b.js";import{a as y,g as k,D}from"./p-575235c8.js";import{D as _}from"./p-0cd89fb6.js";import{a as j,b as M,d as R,f as I}from"./p-b5822a21.js";import{V as O}from"./p-f08a4adf.js";import{c as C}from"./p-86194314.js";import{i as E}from"./p-d27ae9ff.js";import{c as S}from"./p-112455b1.js";import{I as z}from"./p-4a368e1e.js";import{b as T}from"./p-8a877e12.js";import{C as V}from"./p-2d0d575f.js";import{S as P}from"./p-71f9c4d4.js";import{S as L}from"./p-0dcec258.js";import{E as A}from"./p-7e4fdccb.js";import"./p-5f377954.js";import{F as Y}from"./p-e77a83e4.js";import"./p-8c46e116.js";import"./p-5d676a94.js";import"./p-bf0ced3c.js";import"./p-8539e05e.js";import{K as N}from"./p-743c5baf.js";import{C as H}from"./p-75b58efe.js";import{c as F}from"./p-4474bc63.js";import{C as B}from"./p-bbb96a13.js";import{T as W}from"./p-02b29c18.js";import{r as Z}from"./p-77e64f26.js";import{q as $}from"./p-b5bef48a.js";import"./p-02841589.js";import"./p-331a62d5.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-7d9cd9c8.js";import"./p-74168615.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-1bd516c5.js";import"./p-262ec334.js";import"./p-7e8f055d.js";import"./p-af464251.js";import"./p-867a4970.js";import"./p-b1faebe0.js";import"./p-d884c644.js";import"./p-bca1f8f9.js";import"./p-21873037.js";import"./p-0c667d6a.js";import"./p-db8cdba6.js";import"./p-d1ebec08.js";import"./p-bf19682d.js";import"./p-2608b9fe.js";class U extends p{canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const e=new Date(t[0]),i=new Date(t[1]),n=h(e,i);return{isValid:n,message:n?"":"The end date should be later than start date"}}isAcceptedInputType(t){return Array.isArray(t)&&2===t.length&&t.every(d)}}class G extends p{constructor(t){super(),this.evaluateSingleDate=t=>{const e=new Date(t);return this.minDate&&c(e,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&l(e,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=t=>{const e=new Date(t[0]),i=new Date(t[1]);return this.minDate&&c(e,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&l(e,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&l(i,this.maxDate)?this.invalidResult({key:"The end date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.invalidResult=t=>({isValid:!1,message:t}),this.validResult=()=>({isValid:!0,message:""}),this.config=t,this.minDate=t.minDate?new Date(t.minDate):null,this.maxDate=t.maxDate?new Date(t.maxDate):null}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}evaluate(t){if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);return"string"==typeof t?this.evaluateSingleDate(t):this.evaluateRangeDates(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t&&d(t)||Array.isArray(t)&&2===t.length&&t.every(d)}}const K={"chevron-left":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M1.2937 7.29414C0.903076 7.68477 0.903076 8.31914 1.2937 8.70977L7.2937 14.7098C7.68433 15.1004 8.3187 15.1004 8.70933 14.7098C9.09995 14.3191 9.09995 13.6848 8.70933 13.2941L3.41558 8.00039L8.7062 2.70664C9.09683 2.31602 9.09683 1.68164 8.7062 1.29102C8.31558 0.900391 7.6812 0.900391 7.29058 1.29102L1.29058 7.29102L1.2937 7.29414Z" fill="currentColor"/></svg>'},"chevron-right":{icon:'<svg width="12" height="16" viewBox="0 0 12 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M10.7063 7.29414C11.0969 7.68477 11.0969 8.31914 10.7063 8.70977L4.70627 14.7098C4.31565 15.1004 3.68127 15.1004 3.29065 14.7098C2.90002 14.3191 2.90002 13.6848 3.29065 13.2941L8.5844 8.00039L3.29377 2.70664C2.90315 2.31602 2.90315 1.68164 3.29377 1.29102C3.6844 0.900391 4.31877 0.900391 4.7094 1.29102L10.7094 7.29102L10.7063 7.29414Z" fill="currentColor"/></svg>'},calendar:{icon:'<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_41275_12898)"><path d="M5.75 2H10.25V0.75C10.25 0.335938 10.5844 0 11 0C11.4156 0 11.75 0.335938 11.75 0.75V2H13C14.1031 2 15 2.89531 15 4V14C15 15.1031 14.1031 16 13 16H3C1.89531 16 1 15.1031 1 14V4C1 2.89531 1.89531 2 3 2H4.25V0.75C4.25 0.335938 4.58437 0 5 0C5.41563 0 5.75 0.335938 5.75 0.75V2ZM2.5 7.75H5V6H2.5V7.75ZM2.5 9.25V11.25H5V9.25H2.5ZM6.5 9.25V11.25H9.5V9.25H6.5ZM11 9.25V11.25H13.5V9.25H11ZM13.5 6H11V7.75H13.5V6ZM13.5 12.75H11V14.5H13C13.275 14.5 13.5 14.275 13.5 14V12.75ZM9.5 12.75H6.5V14.5H9.5V12.75ZM5 12.75H2.5V14C2.5 14.275 2.72375 14.5 3 14.5H5V12.75ZM9.5 6H6.5V7.75H9.5V6Z" fill="currentColor"/></g><defs><clipPath id="clip0_41275_12898"><rect width="14" height="16" fill="white" transform="translate(1)"/></clipPath></defs></svg>'},"caret-down":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\x3c!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--\x3e<path fill="currentColor" d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>'}};var q=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class X extends f{constructor(){super(...arguments),this.renderInputPrefix=()=>t("div",{class:"vega-input-prefix"},t("vega-icon",{icon:O.getIconKey("calendar"),color:"text-secondary",onClick:()=>{this.disabled||this.focusInput()}})),this.isInputEnabled=()=>!this.readOnly&&!this.vegaDatePickerMobileController.getIsMobileDevice(),this.renderLabel=()=>this.label&&t("vega-field-label",{ref:t=>{_.addUniqueObserverToNode(t,j,(()=>{this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=()=>{var t,e;null===(t=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===t||t.focus(),null===(e=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===e||e.focus(),this.vegaDatePickerCalendarRenderer.getDatePicker().show()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.vegaDatePickerMobileController.getIsMobileDevice()?"mobile":""];return t(e,{class:{disabled:this.disabled}},this.renderLabel(),t("div",{class:y(i),ref:t=>this.datePickerContainer=t},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render(),this.showYearMonthDropdowns&&this.monthYearDropdownRenderer.render()))}}O.register({calendar:K.calendar}),q([u()],X.prototype,"disabled",void 0),q([u()],X.prototype,"size",void 0),q([u()],X.prototype,"mode",void 0),q([u()],X.prototype,"label",void 0),q([u()],X.prototype,"required",void 0),q([u()],X.prototype,"readOnly",void 0),q([u()],X.prototype,"autoValidation",void 0),q([u()],X.prototype,"host",void 0),q([u()],X.prototype,"showYearMonthDropdowns",void 0),q([u()],X.prototype,"vegaDatePickerMobileController",void 0),q([u()],X.prototype,"vegaDatePickerSingleInputRenderer",void 0),q([u()],X.prototype,"vegaDatePickerRangeInputRenderer",void 0),q([u()],X.prototype,"vegaDatePickerCalendarRenderer",void 0),q([u()],X.prototype,"monthYearDropdownRenderer",void 0);var J=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class Q extends f{constructor(){super(...arguments),this.isMobileDevice=k()===D.MOBILE}getIsMobileDevice(){return this.isMobileDevice}preventElementTouchMoveInMobile(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");t&&(t.removeEventListener("touchmove",(t=>t.preventDefault())),t.addEventListener("touchmove",(t=>t.preventDefault()))),this.vegaDatePickerCalendarRenderer.getCalendarContainerRef().removeEventListener("touchmove",(t=>t.preventDefault())),this.vegaDatePickerCalendarRenderer.getCalendarContainerRef().addEventListener("touchmove",(t=>t.preventDefault()))}}J([u()],Q.prototype,"host",void 0),J([u()],Q.prototype,"vegaDatePickerCalendarRenderer",void 0);var tt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class et extends f{constructor(){super(...arguments),this.onClickClearIcon=()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:"")},this.isClearIconVisible=()=>{if("range"===this.mode){const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&!E(t,["",""])}{const t=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(t.length)}}}renderClearIcon(){return t(i,null,this.showClearIcon&&this.isClearIconVisible()&&t("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:C()},t("vega-icon",{icon:"close"})))}}tt([u()],et.prototype,"disabled",void 0),tt([u()],et.prototype,"showClearIcon",void 0),tt([u()],et.prototype,"mode",void 0),tt([u()],et.prototype,"vegaDatePickerValueController",void 0);var it=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class nt extends et{constructor(){super(...arguments),this.render=()=>t("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:t=>this.singleDateInputRef=t,onChange:this.onSingleDateChange,disabled:this.disabled,onClick:()=>{this.vegaDatePickerCalendarRenderer.getDatePicker().show()}}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(v.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=t=>{const e=t.currentTarget.value;d(e)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(e)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",v.warn("The date value of ${date} is invalid"))}}componentWillRender(){this.oldSingleDateInputRef=this.singleDateInputRef}getSingleDateInputRef(){return this.singleDateInputRef}getOldSingleDateInputRef(){return this.oldSingleDateInputRef}}it([u()],nt.prototype,"placeholder",void 0),it([u()],nt.prototype,"format",void 0),it([u()],nt.prototype,"vegaDatePickerFormatController",void 0),it([u()],nt.prototype,"vegaDatePickerRenderer",void 0),it([u()],nt.prototype,"vegaDatePickerCalendarRenderer",void 0),it([m("componentWillRender")],nt.prototype,"componentWillRender",null);var rt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class st extends et{constructor(){super(...arguments),this.render=()=>t(i,null,t("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:t=>this.startDateInputRef=t,onChange:this.onStartDateChange,disabled:this.disabled})),t("span",{class:{"range-input-divider":!0}}),t("div",{class:"date-picker-input"},t("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:t=>this.endDateInputRef=t,onChange:this.onEndDateChange,disabled:this.disabled}),this.renderClearIcon())),this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(v.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((t=>this.translationSlimmer.t(t)))):["Start Date","End Date"].map((t=>this.translationSlimmer.t(t))),this.onStartDateChange=t=>{const e=t.currentTarget.value;d(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(e),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",v.warn("The date value of ${date} is invalid"))},this.onEndDateChange=t=>{const e=t.currentTarget.value;d(e)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(e)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",v.warn("The date value of ${date} is invalid"))}}componentWillRender(){this.oldStartDateInputRef=this.startDateInputRef,this.oldEndDateInputRef=this.endDateInputRef}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}getOldStartDateInputRef(){return this.oldStartDateInputRef}getOldEndDateInputRef(){return this.oldEndDateInputRef}}rt([u()],st.prototype,"placeholder",void 0),rt([u()],st.prototype,"vegaDatePickerFormatController",void 0),rt([u()],st.prototype,"vegaDatePickerRenderer",void 0),rt([u()],st.prototype,"translationSlimmer",void 0),rt([m("componentWillRender")],st.prototype,"componentWillRender",null);var ot=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class at extends f{constructor(){super(...arguments),this.handleClear=()=>{this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection(),this.vegaDatePickerValueController.setDefaultValueByMode(),this.vegaDatePickerCalendarRenderer.getDatePicker().hide()},this.shouldUpdateCalendar=t=>{var e,i;const n=(null===(e=this.vegaDatePickerCalendarRenderer.getDatePicker().getStartDate())||void 0===e?void 0:e.format(this.format))||"",r=(null===(i=this.vegaDatePickerCalendarRenderer.getDatePicker().getEndDate())||void 0===i?void 0:i.format(this.format))||"";("single"===this.mode&&t!==n||"range"===this.mode&&!E(t,[n,r]))&&this.updateCalendar()},this.onDatePickerSelected=(t,e)=>{if("range"===this.mode){const i=t.format(this.format),n=e.format(this.format);this.vegaDatePickerRangeInputRenderer.getStartDateInputRef().value=i,this.vegaDatePickerRangeInputRenderer.getEndDateInputRef().value=n,this.vegaDatePickerValueController.syncUpValueWithCalendar()}else this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef().value=t.format(this.format),this.vegaDatePickerValueController.syncUpValueWithCalendar()},this.getDefaultLitePickerConfig=()=>{const t=Object.assign(Object.assign({},this.getModeConfig()),{splitView:!1,showTooltip:!1,firstDay:0,minDate:this.minDate,maxDate:this.maxDate,allowRepick:this.allowRepick,format:this.format,plugins:[this.vegaDatePickerMobileController.getIsMobileDevice()?"mobilefriendly":null].filter(Boolean),parentEl:this.vegaDatePickerCalendarRenderer.getCalendarContainerRef()});if(this.showYearMonthDropdowns){const e=this.minDate?new Date(this.minDate).getFullYear():(new Date).getFullYear()-at.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,i=this.maxDate?new Date(this.maxDate).getFullYear():(new Date).getFullYear()+at.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR;t.dropdowns={months:!0,years:!0,minYear:e,maxYear:i}}return t},this.getModeConfig=()=>({singleMode:"single"===this.mode,numberOfMonths:"single"===this.mode?1:2,numberOfColumns:"single"===this.mode?1:2,startDate:"range"===this.mode?this.vegaDatePickerValueController.getValue()[0]:this.vegaDatePickerValueController.getValue(),endDate:"range"===this.mode?this.vegaDatePickerValueController.getValue()[1]:null,element:"range"===this.mode?this.vegaDatePickerRangeInputRenderer.getStartDateInputRef():this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),elementEnd:"range"===this.mode?this.vegaDatePickerRangeInputRenderer.getEndDateInputRef():null})}watchMinDate(t){this.minDate=t?this.vegaDatePickerFormatController.formatDate(t):"",this.vegaDatePickerCalendarRenderer.getDatePicker().setOptions({minDate:this.minDate?this.minDate:null}),this.goToDate()}watchMaxDate(t){this.maxDate=t?this.vegaDatePickerFormatController.formatDate(t):"",this.vegaDatePickerCalendarRenderer.getDatePicker().setOptions({maxDate:this.maxDate?this.maxDate:null}),this.goToDate()}watchValue(){this.goToDate()}goToDate(){const t="range"===this.mode?this.vegaDatePickerValueController.getValue()[0]:this.vegaDatePickerValueController.getValue(),e=this.vegaDatePickerCalendarRenderer.getDatePicker(),i=new Date;t?e.gotoDate(t,0):this.minDate&&(c(i,new Date(this.minDate))||this.maxDate&&l(i,new Date(this.maxDate)))?e.gotoDate(this.minDate,0):this.maxDate&&l(i,new Date(this.maxDate))?e.gotoDate(this.maxDate,0):e.gotoDate(i,0)}updateCalendar(){if(this.vegaDatePickerCalendarRenderer.getDatePicker()&&("single"===this.mode&&(this.vegaDatePickerValueController.getValue()?this.vegaDatePickerCalendarRenderer.getDatePicker().setDate(this.vegaDatePickerValueController.getValue()):this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection()),"range"===this.mode)){const t=this.vegaDatePickerValueController.getValue()[0],e=this.vegaDatePickerValueController.getValue()[1];t&&e?this.vegaDatePickerCalendarRenderer.getDatePicker().setDateRange(t,e):""===t&&""===e&&this.vegaDatePickerCalendarRenderer.getDatePicker().clearSelection()}}}at.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,at.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,ot([u({writable:!0})],at.prototype,"minDate",void 0),ot([u({writable:!0})],at.prototype,"maxDate",void 0),ot([u()],at.prototype,"allowRepick",void 0),ot([u()],at.prototype,"format",void 0),ot([u()],at.prototype,"mode",void 0),ot([u()],at.prototype,"showYearMonthDropdowns",void 0),ot([u()],at.prototype,"vegaDatePickerMobileController",void 0),ot([u()],at.prototype,"vegaDatePickerValueController",void 0),ot([u()],at.prototype,"vegaDatePickerFormatController",void 0),ot([u()],at.prototype,"vegaDatePickerSingleInputRenderer",void 0),ot([u()],at.prototype,"vegaDatePickerRangeInputRenderer",void 0),ot([u()],at.prototype,"vegaDatePickerCalendarRenderer",void 0),ot([m("watchMinDate")],at.prototype,"watchMinDate",null),ot([m("watchMaxDate")],at.prototype,"watchMaxDate",null),ot([m("watchValue")],at.prototype,"watchValue",null);var ht=S((function(t){
|
|
2
|
-
/*!
|
|
3
|
-
*
|
|
4
|
-
* litepicker.umd.js
|
|
5
|
-
* Litepicker v2.0.12 (https://github.com/wakirin/Litepicker)
|
|
6
|
-
* Package: litepicker (https://www.npmjs.com/package/litepicker)
|
|
7
|
-
* License: MIT (https://github.com/wakirin/Litepicker/blob/master/LICENCE.md)
|
|
8
|
-
* Copyright 2019-2021 Rinat G.
|
|
9
|
-
*
|
|
10
|
-
* Hash: f46190e781537007f2f2
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(e,i,n){void 0===e&&(e=null),void 0===i&&(i=null),void 0===n&&(n="en-US"),this.dateInstance="object"==typeof i&&null!==i?i.parse(e instanceof t?e.clone().toJSDate():e):"string"==typeof i?t.parseDateTime(e,i,n):t.parseDateTime(e||new Date),this.lang=n}return t.parseDateTime=function(e,i,n){if(void 0===i&&(i="YYYY-MM-DD"),void 0===n&&(n="en-US"),!e)return new Date(NaN);if(e instanceof Date)return new Date(e);if(e instanceof t)return e.clone().toJSDate();if(/^-?\d{10,}$/.test(e))return t.getDateZeroTime(new Date(Number(e)));if("string"==typeof e){for(var r=[],s=null;null!=(s=t.regex.exec(i));)"\\"!==s[1]&&r.push(s);if(r.length){var o={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};r[0].index>0&&(o.value+=".*?");for(var a=0,h=Object.entries(r);a<h.length;a++){var d=h[a],c=d[1],l=Number(d[0]),p=t.formatPatterns(c[0],n),u=p.pattern;o[p.group]=l+1,o.value+=u,o.value+=".*?"}var f=new RegExp("^"+o.value+"$");if(f.test(e)){var m=f.exec(e),v=Number(m[o.year]),g=null;o.month?g=Number(m[o.month])-1:o.shortMonth?g=t.shortMonths(n).indexOf(m[o.shortMonth]):o.longMonth&&(g=t.longMonths(n).indexOf(m[o.longMonth]));var w=Number(m[o.day])||1;return new Date(v,g,w,0,0,0,0)}}}return t.getDateZeroTime(new Date(e))},t.convertArray=function(e,i){return e.map((function(e){return e instanceof Array?e.map((function(e){return new t(e,i)})):new t(e,i)}))},t.getDateZeroTime=function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},t.shortMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"short"})}))},t.longMonths=function(e){return t.MONTH_JS.map((function(t){return new Date(2019,t).toLocaleString(e,{month:"long"})}))},t.formatPatterns=function(e,i){switch(e){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+e.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+t.shortMonths(i).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+t.longMonths(i).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},t.prototype.toJSDate=function(){return this.dateInstance},t.prototype.toLocaleString=function(t,e){return this.dateInstance.toLocaleString(t,e)},t.prototype.toDateString=function(){return this.dateInstance.toDateString()},t.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},t.prototype.getDay=function(){return this.dateInstance.getDay()},t.prototype.getTime=function(){return this.dateInstance.getTime()},t.prototype.getDate=function(){return this.dateInstance.getDate()},t.prototype.getMonth=function(){return this.dateInstance.getMonth()},t.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},t.prototype.setMonth=function(t){return this.dateInstance.setMonth(t)},t.prototype.setHours=function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.dateInstance.setHours(t,e,i,n)},t.prototype.setSeconds=function(t){return this.dateInstance.setSeconds(t)},t.prototype.setDate=function(t){return this.dateInstance.setDate(t)},t.prototype.setFullYear=function(t){return this.dateInstance.setFullYear(t)},t.prototype.getWeek=function(t){var e=new Date(this.timestamp()),i=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-i);var n=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((n-e.getTime())/6048e5)},t.prototype.clone=function(){return new t(this.toJSDate())},t.prototype.isBetween=function(t,e,i){switch(void 0===i&&(i="()"),i){default:case"()":return this.timestamp()>t.getTime()&&this.timestamp()<e.getTime();case"[)":return this.timestamp()>=t.getTime()&&this.timestamp()<e.getTime();case"(]":return this.timestamp()>t.getTime()&&this.timestamp()<=e.getTime();case"[]":return this.timestamp()>=t.getTime()&&this.timestamp()<=e.getTime()}},t.prototype.isBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},t.prototype.isSameOrBefore=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return t.getTime()>=this.getTime();case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},t.prototype.isAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw new Error("isAfter: Invalid unit!")},t.prototype.isSameOrAfter=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()>=t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},t.prototype.isSame=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":return this.getTime()===t.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},t.prototype.add=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()+t);break;case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this},t.prototype.subtract=function(t,e){switch(void 0===e&&(e="seconds"),e){case"second":case"seconds":this.setSeconds(this.getSeconds()-t);break;case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this},t.prototype.diff=function(t,e){switch(void 0===e&&(e="seconds"),e){default:case"second":case"seconds":return this.getTime()-t.getTime();case"day":case"days":return Math.round((this.timestamp()-t.getTime())/864e5);case"month":case"months":}},t.prototype.format=function(e,i){if(void 0===i&&(i="en-US"),"object"==typeof e)return e.output(this.clone().toJSDate());for(var n="",r=[],s=null;null!=(s=t.regex.exec(e));)"\\"!==s[1]&&r.push(s);if(r.length){r[0].index>0&&(n+=e.substring(0,r[0].index));for(var o=0,a=Object.entries(r);o<a.length;o++){var h=a[o],d=h[1],c=Number(h[0]);n+=this.formatTokens(d[0],i),r[c+1]&&(n+=e.substring(d.index+d[0].length,r[c+1].index)),c===r.length-1&&(n+=e.substring(d.index+d[0].length))}}return n.replace(/\\/g,"")},t.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},t.prototype.formatTokens=function(e,i){switch(e){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return t.shortMonths(i)[this.getMonth()];case"MMMM":return t.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},t.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,t.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],t}();e.DateTime=i},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,r++)n[r]=s[o];return n};Object.defineProperty(e,"__esModule",{value:!0});var o=i(5),a=i(0),h=i(3),d=i(2),c=function(t){function e(e){var i=t.call(this,e)||this;return i.preventClick=!1,i.bindEvents(),i}return r(e,t),e.prototype.scrollToDate=function(t){if(this.options.scrollToDate){var e=this.options.startDate instanceof a.DateTime?this.options.startDate.clone():null,i=this.options.endDate instanceof a.DateTime?this.options.endDate.clone():null;!this.options.startDate||t&&t!==this.options.element?t&&this.options.endDate&&t===this.options.elementEnd&&(i.setDate(1),this.options.numberOfMonths>1&&i.isAfter(e)&&i.setMonth(i.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=i.clone()):(e.setDate(1),this.calendars[0]=e.clone())}},e.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=h.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},e.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var t=this.options.startDate,e=this.options.endDate;if(this.options.singleMode&&t)this.options.element.value=t.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&t&&e){var i=t.format(this.options.format,this.options.lang),n=e.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=i,this.options.elementEnd.value=n):this.options.element.value=""+i+this.options.delimiter+n}t||e||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},e.prototype.isSamePicker=function(t){return t.closest("."+h.litepicker)===this.ui},e.prototype.shouldShown=function(t){return!t.disabled&&(t===this.options.element||this.options.elementEnd&&t===this.options.elementEnd)},e.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},e.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},e.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},e.prototype.onClick=function(t){var e=t.target;if(t.target.shadowRoot&&(e=t.composedPath()[0]),e&&this.ui)if(this.shouldShown(e))this.show(e);else if(e.closest("."+h.litepicker)||!this.isShowning()){if(this.isSamePicker(e))if(this.emit("before:click",e),this.preventClick)this.preventClick=!1;else{if(e.classList.contains(h.dayItem)){if(t.preventDefault(),e.classList.contains(h.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new a.DateTime(e.dataset.time),this.shouldSwapDatePicked()){var i=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=i.clone()}return this.shouldCheckLockDays()&&d.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,s(["preselect"],s(this.datePicked).map((function(t){return t.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(e.classList.contains(h.buttonPreviousMonth)){t.preventDefault();var n=0,r=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var o=e.closest("."+h.monthItem);n=d.findNestedMonthItem(o),r=1}return this.calendars[n].setMonth(this.calendars[n].getMonth()-r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n)}if(e.classList.contains(h.buttonNextMonth))return t.preventDefault(),n=0,r=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(o=e.closest("."+h.monthItem),n=d.findNestedMonthItem(o),r=1),this.calendars[n].setMonth(this.calendars[n].getMonth()+r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n);e.classList.contains(h.buttonCancel)&&(t.preventDefault(),this.hide(),this.emit("button:cancel")),e.classList.contains(h.buttonApply)&&(t.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},e.prototype.showTooltip=function(t,e){var i=this.ui.querySelector("."+h.containerTooltip);i.style.visibility="visible",i.innerHTML=e;var n=this.ui.getBoundingClientRect(),r=i.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.top,a=s.left;if(this.options.inlineMode&&this.options.parentEl){var d=this.ui.parentNode.getBoundingClientRect();o-=d.top,a-=d.left}else o-=n.top,a-=n.left;a-=r.width/2,a+=s.width/2,i.style.top=(o-=r.height)+"px",i.style.left=a+"px",this.emit("tooltip",i,t)},e.prototype.hideTooltip=function(){this.ui.querySelector("."+h.containerTooltip).style.visibility="hidden"},e.prototype.shouldAllowMouseEnter=function(t){return!this.options.singleMode&&!t.classList.contains(h.isLocked)},e.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},e.prototype.isDayItem=function(t){return t.classList.contains(h.dayItem)},e.prototype.onMouseEnter=function(t){var e=this,i=t.target;if(this.isDayItem(i)&&this.shouldAllowMouseEnter(i)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var n=this.ui.querySelector("."+h.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),r=this.datePicked[0].clone(),s=new a.DateTime(i.dataset.time),o=!1;if(r.getTime()>s.getTime()){var d=r.clone();r=s.clone(),s=d.clone(),o=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+h.dayItem)).forEach((function(t){var i=new a.DateTime(t.dataset.time),n=e.renderDay(i);i.isBetween(r,s)&&n.classList.add(h.isInRange),t.className=n.className})),i.classList.add(h.isEndDate),o?(n&&n.classList.add(h.isFlipped),i.classList.add(h.isFlipped)):(n&&n.classList.remove(h.isFlipped),i.classList.remove(h.isFlipped)),this.options.showTooltip){var c=s.diff(r,"day")+1;if("function"==typeof this.options.tooltipNumber&&(c=this.options.tooltipNumber.call(this,c)),c>0){var l=this.pluralSelector(c);this.showTooltip(i,c+" "+(this.options.tooltipText[l]?this.options.tooltipText[l]:"["+l+"]"));var p=window.navigator.userAgent,u=/(iphone|ipad)/i.test(p),f=/OS 1([0-2])/i.test(p);u&&f&&i.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},e.prototype.onMouseLeave=function(){this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},e.prototype.onInput=function(t){var e=this.parseInput(),i=e[0],n=e[1],r=this.options.format;if(this.options.elementEnd?i instanceof a.DateTime&&n instanceof a.DateTime&&i.format(r)===this.options.element.value&&n.format(r)===this.options.elementEnd.value:this.options.singleMode?i instanceof a.DateTime&&i.format(r)===this.options.element.value:i instanceof a.DateTime&&n instanceof a.DateTime&&""+i.format(r)+this.options.delimiter+n.format(r)===this.options.element.value){if(n&&i.getTime()>n.getTime()){var s=i.clone();i=n.clone(),n=s.clone()}this.options.startDate=new a.DateTime(i,this.options.format,this.options.lang),n&&(this.options.endDate=new a.DateTime(n,this.options.format,this.options.lang)),this.updateInput(),this.render();var o=i.clone(),h=0;(this.options.elementEnd?i.format(r)===t.target.value:t.target.value.startsWith(i.format(r)))||(o=n.clone(),h=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(o,h)}},e}(o.Calendar);e.Litepicker=c},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.findNestedMonthItem=function(t){for(var e=t.parentNode.childNodes,i=0;i<e.length;i+=1)if(e.item(i)===t)return i;return 0},e.dateIsLocked=function(t,e,i){var n=!1;return e.lockDays.length&&(n=e.lockDays.filter((function(i){return i instanceof Array?t.isBetween(i[0],i[1],e.lockDaysInclusivity):i.isSame(t,"day")})).length),n||"function"!=typeof e.lockDaysFilter||(n=e.lockDaysFilter.call(this,t.clone(),null,i)),n},e.rangeIsLocked=function(t,e){var i=!1;return e.lockDays.length&&(i=e.lockDays.filter((function(i){if(i instanceof Array){var n=t[0].toDateString()===i[0].toDateString()&&t[1].toDateString()===i[1].toDateString();return i[0].isBetween(t[0],t[1],e.lockDaysInclusivity)||i[1].isBetween(t[0],t[1],e.lockDaysInclusivity)||n}return i.isBetween(t[0],t[1],e.lockDaysInclusivity)})).length),i||"function"!=typeof e.lockDaysFilter||(i=e.lockDaysFilter.call(this,t[0].clone(),t[1].clone(),t)),i}},function(t){t.exports={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"}},function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0});var n=i(1);e.Litepicker=n.Litepicker,i(8),window.Litepicker=n.Litepicker,e.default=n.Litepicker},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var s=i(6),o=i(0),a=i(3),h=i(2),d=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.render=function(){var t=this;this.emit("before:render",this.ui);var e=document.createElement("div");e.className=a.containerMain;var i=document.createElement("div");i.className=a.containerMonths,a["columns"+this.options.numberOfColumns]&&(i.classList.remove(a.columns2,a.columns3,a.columns4),i.classList.add(a["columns"+this.options.numberOfColumns])),this.options.splitView&&i.classList.add(a.splitView),this.options.showWeekNumbers&&i.classList.add(a.showWeekNumbers);for(var n=this.calendars[0].clone(),r=n.getMonth(),s=n.getMonth()+this.options.numberOfMonths,o=0,h=r;h<s;h+=1){var d=n.clone();d.setDate(1),d.setHours(0,0,0,0),this.options.splitView?d=this.calendars[o].clone():d.setMonth(h),i.appendChild(this.renderMonth(d,o)),o+=1}if(this.ui.innerHTML="",e.appendChild(i),this.options.resetButton){var c=void 0;"function"==typeof this.options.resetButton?c=this.options.resetButton.call(this):((c=document.createElement("button")).type="button",c.className=a.resetButton,c.innerHTML=this.options.buttonText.reset),c.addEventListener("click",(function(e){e.preventDefault(),t.clearSelection()})),e.querySelector("."+a.monthItem+":last-child").querySelector("."+a.monthItemHeader).appendChild(c)}this.ui.appendChild(e),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},e.prototype.renderMonth=function(t){var e=this,i=t.clone(),n=32-new Date(i.getFullYear(),i.getMonth(),32).getDate(),r=document.createElement("div");r.className=a.monthItem;var s=document.createElement("div");s.className=a.monthItemHeader;var d=document.createElement("div");if(this.options.dropdowns.months){var c=document.createElement("select");c.className=a.monthItemName;for(var l=0;l<12;l+=1){var p=document.createElement("option"),u=new o.DateTime(new Date(t.getFullYear(),l,2,0,0,0)),f=new o.DateTime(new Date(t.getFullYear(),l,1,0,0,0));p.value=String(l),p.text=u.toLocaleString(this.options.lang,{month:"long"}),p.disabled=this.options.minDate&&f.isBefore(new o.DateTime(this.options.minDate),"month")||this.options.maxDate&&f.isAfter(new o.DateTime(this.options.maxDate),"month"),p.selected=f.getMonth()===t.getMonth(),c.appendChild(p)}c.addEventListener("change",(function(t){var i=t.target,n=0;if(e.options.splitView){var r=i.closest("."+a.monthItem);n=h.findNestedMonthItem(r)}e.calendars[n].setMonth(Number(i.value)),e.render(),e.emit("change:month",e.calendars[n],n,t)})),d.appendChild(c)}else(u=document.createElement("strong")).className=a.monthItemName,u.innerHTML=t.toLocaleString(this.options.lang,{month:"long"}),d.appendChild(u);if(this.options.dropdowns.years){var m=document.createElement("select");m.className=a.monthItemYear;var v=this.options.dropdowns.minYear,g=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(t.getFullYear()>g&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),l=g;l>=v;l-=1){p=document.createElement("option");var w=new o.DateTime(new Date(l,0,1,0,0,0));p.value=String(l),p.text=String(l),p.disabled=this.options.minDate&&w.isBefore(new o.DateTime(this.options.minDate),"year")||this.options.maxDate&&w.isAfter(new o.DateTime(this.options.maxDate),"year"),p.selected=t.getFullYear()===l,m.appendChild(p)}if(t.getFullYear()<v&&((p=document.createElement("option")).value=String(t.getFullYear()),p.text=String(t.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),"asc"===this.options.dropdowns.years){var x=Array.prototype.slice.call(m.childNodes).reverse();m.innerHTML="",x.forEach((function(t){t.innerHTML=t.value,m.appendChild(t)}))}m.addEventListener("change",(function(t){var i=t.target,n=0;if(e.options.splitView){var r=i.closest("."+a.monthItem);n=h.findNestedMonthItem(r)}e.calendars[n].setFullYear(Number(i.value)),e.render(),e.emit("change:year",e.calendars[n],n,t)})),d.appendChild(m)}else{var b=document.createElement("span");b.className=a.monthItemYear,b.innerHTML=String(t.getFullYear()),d.appendChild(b)}var y=document.createElement("button");y.type="button",y.className=a.buttonPreviousMonth,y.innerHTML=this.options.buttonText.previousMonth;var k=document.createElement("button");k.type="button",k.className=a.buttonNextMonth,k.innerHTML=this.options.buttonText.nextMonth,s.appendChild(y),s.appendChild(d),s.appendChild(k),this.options.minDate&&i.isSameOrBefore(new o.DateTime(this.options.minDate),"month")&&r.classList.add(a.noPreviousMonth),this.options.maxDate&&i.isSameOrAfter(new o.DateTime(this.options.maxDate),"month")&&r.classList.add(a.noNextMonth);var D=document.createElement("div");D.className=a.monthItemWeekdaysRow,this.options.showWeekNumbers&&(D.innerHTML="<div>W</div>");for(var _=1;_<=7;_+=1){var j=3+this.options.firstDay+_,M=document.createElement("div");M.innerHTML=this.weekdayName(j),M.title=this.weekdayName(j,"long"),D.appendChild(M)}var R=document.createElement("div");R.className=a.containerDays;var I=this.calcSkipDays(i);this.options.showWeekNumbers&&I&&R.appendChild(this.renderWeekNumber(i));for(var O=0;O<I;O+=1){var C=document.createElement("div");R.appendChild(C)}for(O=1;O<=n;O+=1)i.setDate(O),this.options.showWeekNumbers&&i.getDay()===this.options.firstDay&&R.appendChild(this.renderWeekNumber(i)),R.appendChild(this.renderDay(i));return r.appendChild(s),r.appendChild(D),r.appendChild(R),this.emit("render:month",r,t),r},e.prototype.renderDay=function(t){t.setHours();var e=document.createElement("div");if(e.className=a.dayItem,e.innerHTML=String(t.getDate()),e.dataset.time=String(t.getTime()),t.toDateString()===(new Date).toDateString()&&e.classList.add(a.isToday),this.datePicked.length)this.datePicked[0].toDateString()===t.toDateString()&&(e.classList.add(a.isStartDate),this.options.singleMode&&e.classList.add(a.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===t.toDateString()&&e.classList.add(a.isEndDate),2===this.datePicked.length&&t.isBetween(this.datePicked[0],this.datePicked[1])&&e.classList.add(a.isInRange);else if(this.options.startDate){var i=this.options.startDate,n=this.options.endDate;i.toDateString()===t.toDateString()&&(e.classList.add(a.isStartDate),this.options.singleMode&&e.classList.add(a.isEndDate)),n&&n.toDateString()===t.toDateString()&&e.classList.add(a.isEndDate),i&&n&&t.isBetween(i,n)&&e.classList.add(a.isInRange)}if(this.options.minDate&&t.isBefore(new o.DateTime(this.options.minDate))&&e.classList.add(a.isLocked),this.options.maxDate&&t.isAfter(new o.DateTime(this.options.maxDate))&&e.classList.add(a.isLocked),this.options.minDays>1&&1===this.datePicked.length){var r=this.options.minDays-1,s=this.datePicked[0].clone().subtract(r,"day"),d=this.datePicked[0].clone().add(r,"day");t.isBetween(s,this.datePicked[0],"(]")&&e.classList.add(a.isLocked),t.isBetween(this.datePicked[0],d,"[)")&&e.classList.add(a.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var c=this.options.maxDays;s=this.datePicked[0].clone().subtract(c,"day"),d=this.datePicked[0].clone().add(c,"day"),t.isSameOrBefore(s)&&e.classList.add(a.isLocked),t.isSameOrAfter(d)&&e.classList.add(a.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&t.isBefore(this.datePicked[0])&&e.classList.add(a.isLocked),this.options.selectBackward&&1===this.datePicked.length&&t.isAfter(this.datePicked[0])&&e.classList.add(a.isLocked),h.dateIsLocked(t,this.options,this.datePicked)&&e.classList.add(a.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(e){return e instanceof Array?t.isBetween(e[0],e[1],"[]"):e.isSame(t,"day")})).length&&e.classList.add(a.isHighlighted),e.tabIndex=e.classList.contains("is-locked")?-1:0,this.emit("render:day",e,t),e},e.prototype.renderFooter=function(){var t=document.createElement("div");if(t.className=a.containerFooter,t.innerHTML=this.options.footerHTML?this.options.footerHTML:'\n <span class="'+a.previewDateRange+'"></span>\n <button type="button" class="'+a.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n <button type="button" class="'+a.buttonApply+'">'+this.options.buttonText.apply+"</button>\n ",this.options.singleMode){if(1===this.datePicked.length){var e=this.datePicked[0].format(this.options.format,this.options.lang);t.querySelector("."+a.previewDateRange).innerHTML=e}}else if(1===this.datePicked.length&&t.querySelector("."+a.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){e=this.datePicked[0].format(this.options.format,this.options.lang);var i=this.datePicked[1].format(this.options.format,this.options.lang);t.querySelector("."+a.previewDateRange).innerHTML=""+e+this.options.delimiter+i}return this.emit("render:footer",t),t},e.prototype.renderWeekNumber=function(t){var e=document.createElement("div"),i=t.getWeek(this.options.firstDay);return e.className=a.weekNumber,e.innerHTML=53===i&&0===t.getMonth()?"53 / 1":i,e},e.prototype.renderTooltip=function(){var t=document.createElement("div");return t.className=a.containerTooltip,t},e.prototype.weekdayName=function(t,e){return void 0===e&&(e="short"),new Date(1970,0,t,12,0,0,0).toLocaleString(this.options.lang,{weekday:e})},e.prototype.calcSkipDays=function(t){var e=t.getDay()-this.options.firstDay;return e<0&&(e+=7),e},e}(s.LPCore);e.Calendar=d},function(t,e,i){var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=i(7),a=i(0),h=i(1),d=function(t){function e(e){var i=t.call(this)||this;i.datePicked=[],i.calendars=[],i.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n </svg>'},tooltipText:{one:"day",other:"days"}},i.options=s(s({},i.options),e.element.dataset),Object.keys(i.options).forEach((function(t){"true"!==i.options[t]&&"false"!==i.options[t]||(i.options[t]="true"===i.options[t])}));var n=s(s({},i.options.dropdowns),e.dropdowns),r=s(s({},i.options.buttonText),e.buttonText),o=s(s({},i.options.tooltipText),e.tooltipText);i.options=s(s({},i.options),e),i.options.dropdowns=s({},n),i.options.buttonText=s({},r),i.options.tooltipText=s({},o),i.options.elementEnd||(i.options.allowRepick=!1),i.options.lockDays.length&&(i.options.lockDays=a.DateTime.convertArray(i.options.lockDays,i.options.lockDaysFormat)),i.options.highlightedDays.length&&(i.options.highlightedDays=a.DateTime.convertArray(i.options.highlightedDays,i.options.highlightedDaysFormat));var h=i.parseInput(),d=h[0],c=h[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(d=new a.DateTime(i.options.startDate,i.options.format,i.options.lang)),d&&i.options.endDate&&(c=new a.DateTime(i.options.endDate,i.options.format,i.options.lang)),d instanceof a.DateTime&&!isNaN(d.getTime())&&(i.options.startDate=d),i.options.startDate&&c instanceof a.DateTime&&!isNaN(c.getTime())&&(i.options.endDate=c),!i.options.singleMode||i.options.startDate instanceof a.DateTime||(i.options.startDate=null),i.options.singleMode||i.options.startDate instanceof a.DateTime&&i.options.endDate instanceof a.DateTime||(i.options.startDate=null,i.options.endDate=null);for(var l=0;l<i.options.numberOfMonths;l+=1){var p=i.options.startDate instanceof a.DateTime?i.options.startDate.clone():new a.DateTime;if(!i.options.startDate&&(0===l||i.options.splitView)){var u=i.options.maxDate?new a.DateTime(i.options.maxDate):null,f=i.options.minDate?new a.DateTime(i.options.minDate):null,m=i.options.numberOfMonths-1;f&&u&&p.isAfter(u)?(p=f.clone()).setDate(1):!f&&u&&p.isAfter(u)&&((p=u.clone()).setDate(1),p.setMonth(p.getMonth()-m))}p.setDate(1),p.setMonth(p.getMonth()+l),i.calendars[l]=p}if(i.options.showTooltip)if(i.options.tooltipPluralSelector)i.pluralSelector=i.options.tooltipPluralSelector;else try{var v=new Intl.PluralRules(i.options.lang);i.pluralSelector=v.select.bind(v)}catch(t){i.pluralSelector=function(t){return 0===Math.abs(t)?"one":"other"}}return i}return r(e,t),e.add=function(t,e){h.Litepicker.prototype[t]=e},e.prototype.DateTime=function(t,e){return t?new a.DateTime(t,e):new a.DateTime},e.prototype.init=function(){var t=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(e){h.Litepicker.prototype.hasOwnProperty(e)?h.Litepicker.prototype[e].init.call(t,t):console.warn("Litepicker: plugin «"+e+"» not found.")}))},e.prototype.parseInput=function(){var t=this.options.delimiter,e=new RegExp(""+t),i=this.options.element instanceof HTMLInputElement?this.options.element.value.split(t):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new a.DateTime(this.options.element.value,this.options.format),new a.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new a.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&e.test(this.options.element.value)&&i.length&&i.length%2==0){var n=i.slice(0,i.length/2).join(t),r=i.slice(i.length/2).join(t);return[new a.DateTime(n,this.options.format),new a.DateTime(r,this.options.format)]}return[]},e.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},e.prototype.findPosition=function(t){var e=t.getBoundingClientRect(),i=this.ui.getBoundingClientRect(),n=this.options.position.split(" "),r=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset,o=0,a=0;if("auto"!==n[0]&&/top|bottom/.test(n[0]))o=e[n[0]]+s,"top"===n[0]&&(o-=i.height);else{o=e.bottom+s;var h=e.bottom+i.height>window.innerHeight;h&&e.top+s-i.height>=i.height&&(o=e.top+s-i.height)}return/left|right/.test(n[0])||n[1]&&"auto"!==n[1]&&/left|right/.test(n[1])?(a=/left|right/.test(n[0])?e[n[0]]+r:e[n[1]]+r,"right"!==n[0]&&"right"!==n[1]||(a-=i.width)):(a=e.left+r,(h=e.left+i.width>window.innerWidth)&&e.right+r-i.width>=0&&(a=e.right+r-i.width)),{left:a,top:o}},e}(o.EventEmitter);e.LPCore=d},function(t){var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var o=10;function a(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,i,n){var r,s,o;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events),o=s[e]),void 0===o)o=s[e]=i,++t._eventsCount;else if("function"==typeof o?o=s[e]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=a(t))>0&&o.length>r&&!o.warned){o.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=o.length,console&&console.warn&&console.warn(h)}return t}function d(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,n(this.listener,this.target,t))}function c(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=d.bind(n);return r.listener=i,n.wrapFn=r,r}function l(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):u(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function u(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");o=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return a(this)},s.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,s=this._events;if(void 0!==s)r=r&&void 0===s.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var h=s[t];if(void 0===h)return!1;if("function"==typeof h)n(h,this,e);else{var d=h.length,c=u(h,d);for(i=0;i<d;++i)n(c[i],this,e)}return!0},s.prototype.on=s.prototype.addListener=function(t,e){return h(this,t,e,!1)},s.prototype.prependListener=function(t,e){return h(this,t,e,!0)},s.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,c(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,c(this,t,e)),this},s.prototype.off=s.prototype.removeListener=function(t,e){var i,n,r,s,o;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,s=i.length-1;s>=0;s--)if(i[s]===e||i[s].listener===e){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,o||e)}return this},s.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,s=Object.keys(i);for(n=0;n<s.length;++n)"removeListener"!==(r=s[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return l(this,t,!0)},s.prototype.rawListeners=function(t){return l(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},function(t,e,i){var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=i(0),s=i(1),o=i(2);s.Litepicker.prototype.show=function(t){void 0===t&&(t=null),this.emit("before:show",t);var e=t||this.options.element;if(this.triggerElement=e,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(t),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var i=this.findPosition(e);this.ui.style.top=i.top+"px",this.ui.style.left=i.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",t)}},s.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},s.Litepicker.prototype.getDate=function(){return this.getStartDate()},s.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},s.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},s.Litepicker.prototype.setDate=function(t,e){void 0===e&&(e=!1);var i=new r.DateTime(t,this.options.format,this.options.lang);o.dateIsLocked(i,this.options,[i])&&!e?this.emit("error:date",i):(this.setStartDate(t),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},s.Litepicker.prototype.setStartDate=function(t){t&&(this.options.startDate=new r.DateTime(t,this.options.format,this.options.lang),this.updateInput())},s.Litepicker.prototype.setEndDate=function(t){t&&(this.options.endDate=new r.DateTime(t,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new r.DateTime(t,this.options.format,this.options.lang)),this.updateInput())},s.Litepicker.prototype.setDateRange=function(t,e,i){void 0===i&&(i=!1),this.triggerElement=void 0;var n=new r.DateTime(t,this.options.format,this.options.lang),s=new r.DateTime(e,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?o.rangeIsLocked([n,s],this.options):o.dateIsLocked(n,this.options,[n,s])||o.dateIsLocked(s,this.options,[n,s]))&&!i?this.emit("error:range",[n,s]):(this.setStartDate(n),this.setEndDate(s),this.options.inlineMode&&this.render(),this.updateInput(),this.emit("selected",this.getStartDate(),this.getEndDate()))},s.Litepicker.prototype.gotoDate=function(t,e){void 0===e&&(e=0);var i=new r.DateTime(t);i.setDate(1),this.calendars[e]=i.clone(),this.render()},s.Litepicker.prototype.setLockDays=function(t){this.options.lockDays=r.DateTime.convertArray(t,this.options.lockDaysFormat),this.render()},s.Litepicker.prototype.setHighlightedDays=function(t){this.options.highlightedDays=r.DateTime.convertArray(t,this.options.highlightedDaysFormat),this.render()},s.Litepicker.prototype.setOptions=function(t){delete t.element,delete t.elementEnd,delete t.parentEl,t.startDate&&(t.startDate=new r.DateTime(t.startDate,this.options.format,this.options.lang)),t.endDate&&(t.endDate=new r.DateTime(t.endDate,this.options.format,this.options.lang));var e=n(n({},this.options.dropdowns),t.dropdowns),i=n(n({},this.options.buttonText),t.buttonText),s=n(n({},this.options.tooltipText),t.tooltipText);this.options=n(n({},this.options),t),this.options.dropdowns=n({},e),this.options.buttonText=n({},i),this.options.tooltipText=n({},s),!this.options.singleMode||this.options.startDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof r.DateTime&&this.options.endDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var o=0;o<this.options.numberOfMonths;o+=1){var a=this.options.startDate?this.options.startDate.clone():new r.DateTime;a.setDate(1),a.setMonth(a.getMonth()+o),this.calendars[o]=a}this.options.lockDays.length&&(this.options.lockDays=r.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=r.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},s.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},s.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])})),dt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class ct extends f{constructor(){super(...arguments),this.alterLitePickerHeader=t=>{this.showYearMonthDropdowns?this.monthYearDropdownRenderer.renderMonthYearDropdowns(this.datePicker):this.renderMonthName(t),this.renderWeekdays(t),this.renderPrevAndNextMonthButtons(t)},this.alterLitePickerFooter=t=>{this.clearButton&&this.renderClearButton(t)},this.alterLitePickerHeight=t=>{!1===this.dropdownConfig.staticHeight?t.classList.remove("static-height"):t.classList.add("static-height")},this.renderWeekdays=t=>{t.querySelectorAll(".month-item-weekdays-row").forEach((t=>{Array.from(t.children).forEach((t=>{t.innerText=t.innerText.replace(/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun)$/,(t=>this.translationSlimmer.t(`${t}-short`)))}))}))},this.renderPrevAndNextMonthButtons=t=>{t.querySelectorAll(".button-previous-month").forEach((t=>{t.innerHTML=K["chevron-left"].icon})),t.querySelectorAll(".button-next-month").forEach((t=>{t.innerHTML=K["chevron-right"].icon}))},this.renderClearButton=t=>{const e=document.createElement("div");e.className="footer-container";const i=document.createElement("vega-button-link");i.label=this.translationSlimmer.t("Clear"),i.addEventListener("click",this.vegaDatePickerCalendarController.handleClear),e.append(i);const n=t.querySelector(".container__main");n&&n.append(e)},this.getSystemTimeZone=()=>Intl.DateTimeFormat().resolvedOptions().timeZone}connectedCallback(){null===this.datePicker&&this.initDatePicker(),this.calendarContainerRef=document.createElement("vega-date-picker-calendar"),document.body.append(this.calendarContainerRef)}disconnectedCallback(){var t;null===(t=this.datePicker)||void 0===t||t.destroy(),this.datePicker=null,this.calendarContainerRef.remove()}async componentWillLoad(){this.vegaDatePickerMobileController.getIsMobileDevice()&&await import("./p-a10b9f2e.js")}componentDidLoad(){this.initDatePicker()}componentDidRender(){(this.requireRefreshLitePicker||this.vegaDatePickerSingleInputRenderer.getOldSingleDateInputRef()&&this.vegaDatePickerSingleInputRenderer.getOldSingleDateInputRef()!==this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef()||this.vegaDatePickerRangeInputRenderer.getOldStartDateInputRef()&&this.vegaDatePickerRangeInputRenderer.getOldStartDateInputRef()!==this.vegaDatePickerRangeInputRenderer.getStartDateInputRef()||this.vegaDatePickerRangeInputRenderer.getOldEndDateInputRef()&&this.vegaDatePickerRangeInputRenderer.getOldEndDateInputRef()!==this.vegaDatePickerRangeInputRenderer.getEndDateInputRef())&&this.refreshLitePicker()}doOpen(){this.datePicker.show()}doClose(){this.datePicker.hide()}watchAllowRepick(){this.datePicker.setOptions({allowRepick:this.allowRepick})}watchDisabled(){this.datePicker.hide()}watchFormat(){this.datePicker.setOptions({format:this.format})}watchMode(){this.requireRefreshLitePicker=!0}watchShowYearMonthDropdowns(){this.requireRefreshLitePicker=!0}getDatePicker(){return this.datePicker}getCalendarContainerRef(){return this.calendarContainerRef}refreshLitePicker(){this.datePicker&&(this.datePicker.destroy(),this.initDatePicker(),this.requireRefreshLitePicker=!1)}renderMonthName(t){t.querySelectorAll(".month-item-name").forEach((t=>{t.innerText=this.translationSlimmer.t(t.innerText)}))}resetTodayByTimezone(){if(this.timezone&&this.timezone!==this.getSystemTimeZone())try{const t=new Intl.DateTimeFormat([],{timeZone:this.timezone,year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date),e=new Date(t.split("/").join("-")).getTime(),i=this.calendarContainerRef.shadowRoot.querySelectorAll(".day-item");for(let t=0;t<i.length;t++)i[t].classList.contains("is-today")&&Number(i[t].dataset.time)!==e&&i[t].classList.remove("is-today"),i[t].classList.contains("is-today")||Number(i[t].dataset.time)!==e||i[t].classList.add("is-today")}catch(t){v.warn("Invalid timezone: ",this.timezone)}}initDatePicker(){this.datePicker=new ht.Litepicker(this.vegaDatePickerCalendarController.getDefaultLitePickerConfig()).on("render",(t=>{this.alterLitePickerHeader(t),this.alterLitePickerFooter(t),this.alterLitePickerHeight(t),this.litepickerRef=t,this.getCalendarContainerRef().shadowRoot.append(this.litepickerRef),this.vegaDatePickerMobileController.getIsMobileDevice()&&this.vegaDatePickerMobileController.preventElementTouchMoveInMobile(),this.resetTodayByTimezone()})).on("selected",this.vegaDatePickerCalendarController.onDatePickerSelected).on("before:show",(()=>{this.vegaDatePickerCalendarController.goToDate()})).on("show",(()=>{this.vegaDatePickerElementAppenderController.show()})).on("render:day",((t,e)=>{this.isDateDisabled(e.toJSDate())&&(t.classList.add("is-locked"),t.classList.add("is-disabled"),t.tabIndex=-1)})).on("mobilefriendly.show",(()=>{this.vegaDatePickerZIndexController.setZIndex(),this.getCalendarContainerRef().style.position="fixed",this.getCalendarContainerRef().style.top="50%",this.getCalendarContainerRef().style.left="50%",this.getCalendarContainerRef().style.transform="translate(-50%, -50%)",this.getCalendarContainerRef().classList.remove("vega-force-hidden")})).on("hide",(()=>{this.vegaDatePickerValueController.syncUpValueWithCalendar(),this.vegaDatePickerMobileController.getIsMobileDevice()?(this.getCalendarContainerRef().classList.add("vega-force-hidden"),this.vegaDatePickerZIndexController.removeZIndex()):this.vegaDatePickerElementAppenderController.hide()}))}}dt([u()],ct.prototype,"clearButton",void 0),dt([u()],ct.prototype,"dropdownConfig",void 0),dt([u()],ct.prototype,"allowRepick",void 0),dt([u()],ct.prototype,"format",void 0),dt([u()],ct.prototype,"showYearMonthDropdowns",void 0),dt([u()],ct.prototype,"vegaDatePickerCalendarController",void 0),dt([u()],ct.prototype,"vegaDatePickerMobileController",void 0),dt([u()],ct.prototype,"vegaDatePickerElementAppenderController",void 0),dt([u()],ct.prototype,"vegaDatePickerZIndexController",void 0),dt([u()],ct.prototype,"vegaDatePickerValueController",void 0),dt([u()],ct.prototype,"vegaDatePickerSingleInputRenderer",void 0),dt([u()],ct.prototype,"vegaDatePickerRangeInputRenderer",void 0),dt([u()],ct.prototype,"monthYearDropdownRenderer",void 0),dt([u()],ct.prototype,"translationSlimmer",void 0),dt([u()],ct.prototype,"timezone",void 0),dt([u()],ct.prototype,"isDateDisabled",void 0),dt([m("connectedCallback")],ct.prototype,"connectedCallback",null),dt([m("disconnectedCallback")],ct.prototype,"disconnectedCallback",null),dt([m("componentWillLoad")],ct.prototype,"componentWillLoad",null),dt([m("componentDidLoad")],ct.prototype,"componentDidLoad",null),dt([m("componentDidRender")],ct.prototype,"componentDidRender",null),dt([m("doOpen")],ct.prototype,"doOpen",null),dt([m("doClose")],ct.prototype,"doClose",null),dt([m("watchAllowRepick")],ct.prototype,"watchAllowRepick",null),dt([m("watchDisabled")],ct.prototype,"watchDisabled",null),dt([m("watchFormat")],ct.prototype,"watchFormat",null),dt([m("watchMode")],ct.prototype,"watchMode",null),dt([m("watchShowYearMonthDropdowns")],ct.prototype,"watchShowYearMonthDropdowns",null);var lt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class pt extends f{setZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");z.setZIndex(t,"base"),z.setZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}removeZIndex(){const t=this.host.shadowRoot.querySelector(".litepicker-backdrop");z.removeZIndex(t,"base"),z.removeZIndex(this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),"base")}}lt([u()],pt.prototype,"host",void 0),lt([u()],pt.prototype,"vegaDatePickerCalendarRenderer",void 0);var ut=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class ft extends f{constructor(){super(...arguments),this.syncUpValueWithCalendar=()=>{var t,e;const i=(null===(t=this.vegaDatePickerCalendarRenderer.getDatePicker().getStartDate())||void 0===t?void 0:t.format(this.format))||"",n=(null===(e=this.vegaDatePickerCalendarRenderer.getDatePicker().getEndDate())||void 0===e?void 0:e.format(this.format))||"";"range"!==this.mode||E(this.getValue(),[i,n])||this.setValue([i,n]),"single"===this.mode&&this.getValue()!==i&&this.setValue(i)}}componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(t,e){"range"===this.mode&&E(t,e)||(this.valueGuard(t)?this.vegaDatePickerCalendarController.shouldUpdateCalendar(t):this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),V.notify(T,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(t){this.valueGuard(t)&&(this.value=t)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(t){let e;switch(this.mode){case"single":e=t&&"string"==typeof t&&d(t)||""===t;break;case"range":e=Array.isArray(t)&&2===t.length&&t.every((t=>d(t)||""===t))}return e||v.warn(`Invalid date picker value ${t} for ${this.mode} mode`),e}}ut([u({writable:!0})],ft.prototype,"value",void 0),ut([u()],ft.prototype,"mode",void 0),ut([u()],ft.prototype,"format",void 0),ut([u()],ft.prototype,"changeEventEmitter",void 0),ut([u()],ft.prototype,"host",void 0),ut([u()],ft.prototype,"vegaDatePickerCalendarController",void 0),ut([u()],ft.prototype,"vegaDatePickerCalendarRenderer",void 0),ut([m("componentWillLoad")],ft.prototype,"componentWillLoad",null),ut([m("watchValue")],ft.prototype,"watchValue",null),ut([m("watchMode")],ft.prototype,"watchMode",null);var mt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class vt extends L{constructor(t){super(),this.formatDate=t=>this.vegaDatePickerCalendarRenderer.getDatePicker().DateTime(t).format(this.format),this.getInputElementRef=()=>{switch(this.inputType){case"single":return this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef();case"rangeStart":return this.vegaDatePickerRangeInputRenderer.getStartDateInputRef();case"rangeEnd":return this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()}},this.getInputModeStrategy=()=>this.datePickerFormatStrategy,this.getBlurModeStrategy=()=>null,this.getDateFormatMask=t=>{const e=t.match(/M/gi);return new P({mask:t.replace(/[MDY]/gi,"9"),slot:"9",accept:(e&&e.length)>2?/\w/g:/\d/g})},this.inputType=t}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(t){this.setupStringFormatter(t)}setupStringFormatter(t){this.datePickerFormatStrategy=this.getDateFormatMask(t),this.setup()}}mt([u()],vt.prototype,"format",void 0),mt([u()],vt.prototype,"mode",void 0),mt([u()],vt.prototype,"vegaDatePickerCalendarRenderer",void 0),mt([u()],vt.prototype,"vegaDatePickerSingleInputRenderer",void 0),mt([u()],vt.prototype,"vegaDatePickerRangeInputRenderer",void 0),mt([m("componentDidLoad")],vt.prototype,"componentDidLoad",null),mt([m("watchFormat")],vt.prototype,"watchFormat",null);var gt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class wt extends A{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:Y.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>"none"))}}gt([u()],wt.prototype,"dropdownConfig",void 0),gt([u()],wt.prototype,"vegaDatePickerRenderer",void 0),gt([u()],wt.prototype,"vegaDatePickerCalendarRenderer",void 0);var xt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class bt extends N{constructor(){super((t=>[{keyCode:"Enter",activeElementInScope:()=>[t.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),t.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),t.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),t.vegaDatePickerCalendarRenderer.getCalendarContainerRef()],eventName:"keydown",callback:t=>{var e;const i=(null===(e=t.target.shadowRoot)||void 0===e?void 0:e.activeElement)||t.target;return null==i?void 0:i.click()}}]))}}xt([u()],bt.prototype,"vegaDatePickerCalendarRenderer",void 0),xt([u()],bt.prototype,"vegaDatePickerSingleInputRenderer",void 0),xt([u()],bt.prototype,"vegaDatePickerRangeInputRenderer",void 0);const yt=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:t=>!0===t.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:t=>!1===t.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:t=>"single"===t.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:t=>"range"===t.mode}];var kt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};class Dt extends f{constructor(){super(...arguments),this.startDropdownRef={month:null,year:null},this.endDropdownRef={month:null,year:null},this.onVegaDropdownContentBoxClick=t=>{"VEGA-DROPDOWN-CONTENT-BOX"===t.target.tagName&&(this.datePickerCalendar.classList.remove("vega-force-hidden"),this.datePickerCalendar.shadowRoot.querySelector(".litepicker").style.display="block")},this.onVegaDropdownContentBoxActivate=t=>{const e=t.target;"VEGA-DROPDOWN-CONTENT-BOX"===e.tagName?(this.isMonthsOrYearsDropdownContentBoxOnFocus=!0,e.classList.remove("vega-force-hidden")):this.isMonthsOrYearsDropdownContentBoxOnFocus=!1}}renderMonthYearDropdowns(t){this.datePicker=t,this.datePickerCalendar=this.vegaDatePickerCalendarRenderer.getCalendarContainerRef(),this.renderMonthButton(this.datePicker.ui),this.renderYearButton(this.datePicker.ui),this.initSetup()}render(){return t("div",{class:"month-year-dropdown-container",style:{display:"none"}},t("div",{class:"start-date-month-year"},this.renderDropdown("month","start"),this.renderDropdown("year","start")),t("div",{class:"end-date-month-year"},this.renderDropdown("month","end"),this.renderDropdown("year","end")))}renderMonthButton(t){t.querySelectorAll("select.month-item-name").forEach(((t,e)=>{this.syncDropdownOptions("month",t,e);const i=this.getSelectedOptionFromSelect(t),n=Dt.monthName[parseInt(i)],r=document.createElement("span");r.classList.add("dropdown-current-value"),r.innerText=`${this.translationSlimmer.t(n)}`,this.appendDropdownIconToButton(r),t.parentNode&&t.parentNode.replaceChild(r,t);const s=0===e?this.startDropdownRef.month:this.endDropdownRef.month;s&&this.updateDropdownValueAndTarget(r,s,t.value),r.addEventListener("click",(()=>{this.setDropdownAsActive(r)}))}))}renderYearButton(t){t.querySelectorAll("select.month-item-year").forEach(((t,e)=>{this.syncDropdownOptions("year",t,e);const i=this.getSelectedOptionFromSelect(t),n=document.createElement("span");n.classList.add("dropdown-current-value"),n.innerText=`${this.translationSlimmer.t(i)}`,this.appendDropdownIconToButton(n),t.parentNode&&t.parentNode.replaceChild(n,t);const r=0===e?this.startDropdownRef.year:this.endDropdownRef.year;r&&this.updateDropdownValueAndTarget(n,r,t.value),n.addEventListener("click",(()=>{this.setDropdownAsActive(n)}))}))}getSelectedOptionFromSelect(t){return Array.from(t.querySelectorAll("option")).find((t=>t.selected)).value}renderDropdown(e,i){return t("vega-dropdown",{trigger:"click",selectType:"single",class:"vega-force-hidden","match-target-width":"false","max-height":"300",ref:t=>{this.onDropdownShowOrHide(t),"start"===i?this.startDropdownRef[e]=t:this.endDropdownRef[e]=t,_.addUniqueObserverToNode(t,M,(n=>{this.setDefaultViewValues(e,t),this.monthYearDropdownClick(e,i,n.detail)}))}},t("span",null,e))}syncDropdownOptions(t,e,i){const n=e.querySelectorAll("option"),r=Array.from(n).map((t=>({key:t.value,label:this.translationSlimmer.t(t.text),disabled:!!t.disabled})));if("month"===t){const t=0===i?this.startDropdownRef.month:this.endDropdownRef.month;t&&(t.source=r)}if("year"===t){r.sort(((t,e)=>Number(t.key)-Number(e.key)));const t=0===i?this.startDropdownRef.year:this.endDropdownRef.year;t&&(t.source=r)}}onDropdownShowOrHide(t){null==t||t.addEventListener("vegaShow",(()=>{this.onDropdownShow()})),null==t||t.addEventListener("vegaHide",(()=>{this.onDropdownHide()}))}setDefaultViewValues(t,e){"month"===t?this.currentStartYearInView=parseInt(e.nextElementSibling.selectedSourceKey):this.currentStartMonthInView=parseInt(e.previousElementSibling.selectedSourceKey)}appendDropdownIconToButton(t){t.innerHTML+=`<vega-icon icon='${O.getIconKey("caret-down")}'></vega-icon>`,t.tabIndex=0}monthYearDropdownClick(t,e,i){const n=parseInt(i);this.updateDatePickerOnSelect(t,e,n)}updateDropdownValueAndTarget(t,e,i){const n=t.closest("div");n&&n.classList.add("dropdown-section"),e.selectedSourceKey=i,Z.call(R.getSubject(e,$),t)}updateDatePickerOnSelect(t,e,i){"month"===t?null!==this.currentStartYearInView&&("start"===e&&this.datePicker.gotoDate(new Date(this.currentStartYearInView,i,1)),"end"===e&&this.datePicker.gotoDate(new Date(this.currentStartYearInView,i-1,1))):null!==this.currentStartMonthInView&&("start"===e&&this.datePicker.gotoDate(new Date(i,this.currentStartMonthInView,1)),"end"===e&&this.datePicker.gotoDate(new Date(i,this.currentStartMonthInView-1,1)))}setDropdownAsActive(t){Array.from(this.datePicker.ui.querySelectorAll(".dropdown-current-value.active")).forEach((t=>t.classList.remove("active"))),t.classList.add("active")}removeActiveDropdownClass(){Array.from(this.datePicker.ui.querySelectorAll(".dropdown-current-value.active")).forEach((t=>t.classList.remove("active")))}onDropdownShow(){document.addEventListener("mouseenter",this.onVegaDropdownContentBoxActivate,!0),document.addEventListener("click",this.onVegaDropdownContentBoxClick)}onDropdownHide(){this.isMonthsOrYearsDropdownContentBoxOnFocus=!1,this.removeActiveDropdownClass(),document.removeEventListener("mouseenter",this.onVegaDropdownContentBoxActivate,!0),document.removeEventListener("click",this.onVegaDropdownContentBoxClick)}initSetup(){const t=this.datePicker.hide.bind(this.datePicker);this.datePicker.hide=async()=>{const e=document.activeElement;this.isMonthsOrYearsDropdownContentBoxOnFocus||"VEGA-DROPDOWN-CONTENT-BOX"===(null==e?void 0:e.tagName)||(await this.closeOpenDropdowns(),t())}}async closeOpenDropdowns(){const t=[this.startDropdownRef,this.endDropdownRef];await Promise.all(t.flatMap((t=>[t.month,t.year])).filter(Boolean).map((t=>{t&&t.hide()})))}}O.register({"caret-down":K["caret-down"]}),Dt.monthName=["January","February","March","April","May","June","July","August","September","October","November","December"],kt([u()],Dt.prototype,"translationSlimmer",void 0),kt([u()],Dt.prototype,"vegaDatePickerCalendarRenderer",void 0);var _t=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const jt=class{constructor(t){n(this,t),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.globalSlimmers={},this.translationSlimmer=new W,this.vegaDatePickerMobileController=new Q,this.vegaDatePickerCalendarController=new at,this.vegaDatePickerZIndexController=new pt,this.vegaDatePickerValueController=new ft,this.vegaDatePickerFormatController=new vt("single"),this.startInputFormatController=new vt("rangeStart"),this.endInputFormatController=new vt("rangeEnd"),this.vegaDatePickerElementAppenderController=new wt,this.vegaDatePickerKeyboardController=new bt,this.vegaDatePickerRenderer=new X,this.vegaDatePickerSingleInputRenderer=new nt,this.vegaDatePickerRangeInputRenderer=new st,this.vegaDatePickerCalendarRenderer=new ct,this.formFieldController=new b({propertyRules:[{propertyName:"required",ruleFactory:(t,e)=>t?new a({mode:e}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:t=>"range"===t?new U:null},{propertyName:"minDate",ruleFactory:(t,e)=>new G({minDate:t,maxDate:e}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(t,e)=>new G({minDate:e,maxDate:t}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:t=>"range"===t.mode?["",""]:"",attributeGetter:t=>this[t],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=F(jt,I),this.inputEventPrevent=new B([I],(()=>this.vegaDatePickerRenderer.getDatePickerContainer())),this.vegaComponentUsageRuntimeMetricsSlimmer=new w(yt),this.monthYearDropdownRenderer=new Dt,this.mode="single",this.value="range"===this.mode?["",""]:"",this.required=!1,this.isValid=null,this.autoValidation=!0,this.format="MM/DD/YYYY",this.size="default",this.validationRules=[],this.clearButton=!1,this.readOnly=!1,this.allowRepick=!1,this.dropdownConfig={},this.showClearIcon=!0,this.showYearMonthDropdowns=!1,this.disabled=!1,this.isDateDisabled=()=>!1}watchMode(){}watchValue(t,e){}watchFormat(t){}watchValidationRules(){}watchMinDate(t){}watchMaxDate(t){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return s(this)}static get watchers(){return{mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};_t([x()],jt.prototype,"globalSlimmers",void 0),_t([g()],jt.prototype,"translationSlimmer",void 0),_t([g()],jt.prototype,"vegaDatePickerMobileController",void 0),_t([g()],jt.prototype,"vegaDatePickerCalendarController",void 0),_t([g()],jt.prototype,"vegaDatePickerZIndexController",void 0),_t([g()],jt.prototype,"vegaDatePickerValueController",void 0),_t([g()],jt.prototype,"vegaDatePickerFormatController",void 0),_t([g()],jt.prototype,"startInputFormatController",void 0),_t([g()],jt.prototype,"endInputFormatController",void 0),_t([g()],jt.prototype,"vegaDatePickerElementAppenderController",void 0),_t([g()],jt.prototype,"vegaDatePickerKeyboardController",void 0),_t([g()],jt.prototype,"vegaDatePickerRenderer",void 0),_t([g()],jt.prototype,"vegaDatePickerSingleInputRenderer",void 0),_t([g()],jt.prototype,"vegaDatePickerRangeInputRenderer",void 0),_t([g()],jt.prototype,"vegaDatePickerCalendarRenderer",void 0),_t([g()],jt.prototype,"formFieldController",void 0),_t([g()],jt.prototype,"changeEventEmitter",void 0),_t([g()],jt.prototype,"inputEventPrevent",void 0),_t([g()],jt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),_t([g()],jt.prototype,"monthYearDropdownRenderer",void 0),_t([H()],jt.prototype,"watchValue",null),jt.style=':host{display:inline-block;width:100%;text-align:left;line-height:normal}:host vega-field-label{margin-bottom:8px}:host .vega-input-container{position:relative;display:block;border-radius:8px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1));display:flex;align-items:center}:host .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}:host .vega-input-container .date-picker-input{padding-left:16px;padding-right:16px;width:100%;box-sizing:border-box;display:flex;align-items:center}:host .vega-input-container.default .date-picker-input{padding-left:16px;padding-right:16px}:host .vega-input-container.small .date-picker-input{padding-left:12px;padding-right:12px}:host .vega-input-container.default .date-picker-input input{padding-top:12px;padding-bottom:12px}:host .vega-input-container.small .date-picker-input input{padding-top:8px;padding-bottom:8px}:host .vega-input-container.error{border:1px solid rgba(var(--v-border-input-field-danger, 230, 50, 87, 1))}:host .vega-input-container.error:hover{border:1px solid rgba(var(--v-border-input-field-danger-hover, 255, 87, 114, 1))}:host .vega-input-container.single-mode.error:focus-within,:host .vega-input-container.range-mode.error .date-picker-input:focus-within{outline:2px solid rgba(var(--v-border-color-danger, 230, 50, 87, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-danger-focus, 233, 71, 104, 1));border-radius:8px}:host .vega-input-container.range-mode.error .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode.error .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container.single-mode:not(.error):focus-within,:host .vega-input-container.range-mode:not(.error) .date-picker-input: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));border-radius:8px}:host .vega-input-container.range-mode .date-picker-input:first-of-type:focus-within{margin:-1px 0 -1px -1px}:host .vega-input-container.range-mode .date-picker-input:last-of-type:focus-within{margin:-1px -1px -1px 0}:host .vega-input-container input{width:100%;box-sizing:content-box;border-width:0px;margin:0px;outline:2px solid transparent;outline-offset:2px;background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-input-container input::placeholder{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px;color:rgba(var(--v-text-error, 189, 41, 71, 1));display:block;padding-left:8px;padding-right:8px;padding-top:12px}@media screen and (min-width: 768px) and (max-width: 1023px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .vega-error{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;letter-spacing:0px}}:host .vega-hidden{display:none}.vega-input-clear-icon{width:16px;height:16px;cursor:pointer;color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}.vega-input-clear-icon vega-icon{min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;flex-shrink:0}:host .range-input-divider{width:1px;height:24px;border-style:solid;border-right-width:1px;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-container.range-mode.mobile .range-input-divider{width:100%;height:1px;border-style:solid;border-right-width:0px;border-top-width:1px;border-bottom-width:0px;border-left-width:0px;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1))}:host .vega-input-prefix{display:flex;margin-right:8px}:host .vega-input-container.range-mode.mobile.small .vega-input-prefix{margin-right:8px}:host .vega-input-container.range-mode.mobile{flex-direction:column}:host .vega-input-container.range-mode.mobile .date-picker-input:last-of-type{padding-left:40px}:host .vega-input-container.range-mode.mobile.small .date-picker-input:last-of-type{padding-left:36px}:host(.disabled) .vega-input-container{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1));border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1));--tw-shadow:0 0 #0000;box-shadow:rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px}:host(.disabled) .vega-input-container:hover{border:1px solid rgba(var(--v-border-input-field-disabled, 222, 225, 227, 1))}:host(.disabled) .vega-input-container input{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}.litepicker-backdrop{display:none;background-color:var(--litepicker-mobilefriendly-backdrop-color-bg);opacity:0.3;position:fixed;top:0;right:0;bottom:0;left:0}';var Mt=function(t,e,i,n){var r,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const Rt=class{constructor(t){n(this,t),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new w}render(){return t(e,null)}get host(){return s(this)}};Mt([x()],Rt.prototype,"globalSlimmers",void 0),Mt([g()],Rt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Rt.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7);--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px}.litepicker{display:none}.litepicker button{border-width:0px;background:none}.litepicker .container__main{display:flex;flex-direction:column;padding:32px;border-radius:12px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));box-shadow:var(--v-shadow-dropdown-menu, 0px 2px 4px -2px rgba(0, 0, 0, 0.1), 0px 4px 6px -1px rgba(0, 0, 0, 0.1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}@media screen and (min-width: 320px) and (max-width: 350px){.litepicker .container__main{padding:12px}}.litepicker .container__months{display:flex}.litepicker .container__months.columns-2{width:100%}@media (min-width: 320px){.litepicker .container__months.columns-2{flex-direction:column}}@media (min-width: 768px){.litepicker .container__months.columns-2{flex-direction:row}}.litepicker .container__months .month-item{box-sizing:content-box;position:relative;width:var(--vega-litepicker-container-width);z-index:1}@media (min-width: 768px){.litepicker .container__months.columns-2 .month-item:first-of-type{padding-right:32px}}@media (min-width: 768px){.litepicker .container__months.columns-2 .month-item:last-of-type{padding-left:32px}}.litepicker .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-top:32px;margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:""}@media (min-width: 768px){.litepicker .container__months .month-item:nth-child(2)::before{display:block}}.litepicker .container__months .month-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;text-align:center;font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;color:rgba(var(--v-text-primary, 32, 54, 69, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px}}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.litepicker .container__months .month-item-weekdays-row{display:flex;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__months .month-item-weekdays-row>div{padding-top:12px;padding-bottom:12px;padding-left:8px;padding-right:8px;display:flex;align-items:center;justify-content:center;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;width:var(--vega-litepicker-day-width)}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__months .month-item-weekdays-row>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__months .month-item-weekdays-row>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__months .month-item-weekdays-row>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:flex;flex-wrap:wrap;justify-content:flex-start;text-align:center}.litepicker.static-height .container__days{align-content:flex-start;height:calc(var(--vega-litepicker-day-height) * 6)}.litepicker .container__days>div,.litepicker .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:var(--vega-litepicker-day-width)}.litepicker .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:16px;font-weight:500;line-height:22px;letter-spacing:0px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;text-align:center;border-radius:9999px;cursor:default}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-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){.litepicker .container__days .day-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){.litepicker .container__days .day-item{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){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.litepicker .container__days .day-item:not(.is-locked):active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));border-width:0px}.litepicker .day-item.is-start-date.is-end-date.is-locked:active{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1))}.litepicker .container__days .day-item:hover:before{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1));border-radius:9999px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;content:" ";z-index:-1}.litepicker .container__days .day-item.is-locked:hover:before,html.dark .litepicker .container__days .day-item.is-locked:hover:before{border-style:none}.litepicker .container__days .day-item:hover{position:relative}.litepicker .container__days .day-item.is-today{color:rgba(var(--v-text-link, 19, 98, 226, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item.is-today{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-in-range{border-radius:0px;position:relative;z-index:2;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.litepicker .container__days .day-item:not(.is-locked).is-in-range:hover:before{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1));border-radius:9999px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;content:" ";z-index:-1}.litepicker .container__days .day-item.is-start-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-radius:9999px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));position:relative}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-item.is-start-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item.is-start-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item.is-start-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-start-date:hover:before{z-index:2}.litepicker .container__days .day-item.is-start-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.litepicker .container__days .day-item.is-start-date.is-flipped{border-radius:9999px;position:relative}.litepicker .container__days .day-item.is-start-date.is-flipped:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-left-radius:0px;border-bottom-left-radius:0px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;content:" ";z-index:-1}.litepicker .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-radius:9999px;font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1));position:relative}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .container__days .day-item.is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.litepicker .container__days .day-item.is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.litepicker .container__days .day-item.is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.litepicker .container__days .day-item.is-end-date:hover:before{z-index:2}.litepicker .container__days .day-item.is-end-date:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-left-radius:0px;border-bottom-left-radius:0px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;content:" ";z-index:-1;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1))}.litepicker .container__days .day-item.is-end-date.is-flipped{border-radius:9999px;position:relative}.litepicker .container__days .day-item.is-end-date.is-flipped:after{position:absolute;top:0px;right:0px;bottom:0px;left:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;content:" ";z-index:-1}.litepicker .container__days .day-item.is-start-date.is-end-date{border-radius:9999px}.litepicker .container__days .day-item.is-start-date.is-end-date:after,html.dark .litepicker .container__days .day-item.is-start-date.is-end-date:after{background:none}.litepicker .container__tooltip{display:none}.litepicker .container__days .day-item.is-locked{color:rgba(var(--v-text-disabled, 176, 180, 181, 1));cursor:not-allowed}.litepicker .container__days .day-item.is-disabled{text-decoration:line-through}.litepicker.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-litepicker-day-height)}.litepicker .clear-button{font-family:"Inter", sans-serif;font-size:18px;font-weight:700;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.litepicker .clear-button{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){.litepicker .clear-button{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){.litepicker .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.litepicker .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.litepicker{left:initial !important;top:initial !important;position:initial !important}:host{position:absolute}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.litepicker .month-item-header>div.dropdown-section{display:flex;gap:12px}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value{position:relative;display:flex;gap:4px;align-items:center;cursor:pointer}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}.litepicker .month-item-header>div.dropdown-section .dropdown-current-value.active:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}';export{jt as vega_date_picker,Rt as vega_date_picker_calendar}
|