@heartlandone/vega 2.82.0 → 2.83.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-3350d580.js → app-globals-40b1b1b2.js} +1 -1
- package/dist/cjs/{dto-renderer-manager-ae5fcbba.js → dto-renderer-manager-7eb5c5ce.js} +42 -2
- package/dist/cjs/{element-appender-slimmer-dedd3a34.js → element-appender-slimmer-52c2b455.js} +84 -8
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{token-extension-9b213b6b.js → token-extension-361273fb.js} +77 -20
- package/dist/cjs/vega-banner.cjs.entry.js +13 -2
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +37 -4
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-dialog_2.cjs.entry.js +27 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +1 -1
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +8 -9
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +1 -1
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +54 -9
- package/dist/cjs/vega-text.cjs.entry.js +10 -0
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/vega.cjs.js +4 -4
- package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-renderer.js +11 -2
- package/dist/collection/components/vega-banner/vega-banner.js +3 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.css +19 -14
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +57 -3
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.js +9 -3
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.js +17 -2
- package/dist/collection/components/vega-pagination/internal/vega-pagination-go-to.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination-page-selector-mobile/slimmers/renderers/page-selector-mobile-renderer.js +1 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +12 -10
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +28 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +24 -6
- package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.js +23 -8
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +18 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +8 -3
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +47 -0
- package/dist/collection/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.js +10 -0
- package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +42 -2
- package/dist/collection/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.js +73 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-container-controller.js +6 -0
- package/dist/esm/{app-globals-0b7e8b50.js → app-globals-f67d0eaf.js} +1 -1
- package/dist/esm/{dto-renderer-manager-12bc9121.js → dto-renderer-manager-abc7eb5f.js} +42 -2
- package/dist/esm/{element-appender-slimmer-5aca1bca.js → element-appender-slimmer-29c94a18.js} +84 -8
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{token-extension-9d717a35.js → token-extension-0710dbc5.js} +77 -20
- package/dist/esm/vega-banner.entry.js +13 -2
- package/dist/esm/vega-checkbox_2.entry.js +37 -4
- package/dist/esm/vega-date-picker_2.entry.js +1 -1
- package/dist/esm/vega-dialog_2.entry.js +27 -5
- package/dist/esm/vega-dropdown_5.entry.js +1 -1
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +1 -1
- package/dist/esm/vega-progress-tracker_2.entry.js +8 -9
- package/dist/esm/vega-rich-text-content.entry.js +1 -1
- package/dist/esm/vega-rich-text-editor_4.entry.js +54 -9
- package/dist/esm/vega-text.entry.js +10 -0
- package/dist/esm/vega-time-picker_2.entry.js +1 -1
- package/dist/esm/vega-tooltip_2.entry.js +1 -1
- package/dist/esm/vega.js +4 -4
- package/dist/sri/vega-sri-manifest.json +70 -70
- package/dist/types/components/vega-banner/slimmers/renderers/vega-banner-renderer.d.ts +6 -0
- package/dist/types/components/vega-banner/vega-banner.d.ts +2 -0
- package/dist/types/components/vega-checkbox/vega-checkbox.d.ts +22 -1
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-backdrop-controller.d.ts +1 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-nested-modal-controller.d.ts +3 -2
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +8 -9
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +20 -2
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-extension.d.ts +13 -2
- package/dist/types/components/vega-rich-text-editor/extensions/languages/language-toolbar-button-renderer.d.ts +15 -4
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +4 -3
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +14 -1
- package/dist/types/components/vega-text/slimmers/renderers/vega-text-tooltip-renderer.d.ts +1 -0
- package/dist/types/components.d.ts +29 -5
- package/dist/types/helpers/rte-manager/dto-renderer-manager.d.ts +26 -1
- package/dist/types/helpers/slimmers/element-appender/body-positioned-wrapper/third-party-dialog-wrapper.d.ts +45 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-container-controller.d.ts +2 -0
- package/dist/types/types/components.type.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-0bcb2945.entry.js +1 -0
- package/dist/vega/{p-a30ae8a1.js → p-0bf8743f.js} +1 -1
- package/dist/vega/p-142f371b.entry.js +1 -0
- package/dist/vega/p-158c6a9f.entry.js +1 -0
- package/dist/vega/p-1b48e8a5.entry.js +1 -0
- package/dist/vega/p-380abceb.entry.js +1 -0
- package/dist/vega/{p-3505f7cc.entry.js → p-54ba35e3.entry.js} +1 -1
- package/dist/vega/p-5be546c5.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-246eb001.entry.js → p-608f234f.entry.js} +1 -1
- package/dist/vega/p-81a11dc6.entry.js +1 -0
- package/dist/vega/{p-23c840dc.entry.js → p-8559e36f.entry.js} +1 -1
- package/dist/vega/p-90cb665e.entry.js +1 -0
- package/dist/vega/{p-88b6184c.entry.js → p-a4738b70.entry.js} +1 -1
- package/dist/vega/p-b6c3ce6d.js +1 -0
- package/dist/vega/p-b9728ca8.js +1 -0
- package/dist/vega/{p-7faaa5e1.entry.js → p-cc00135a.entry.js} +1 -1
- package/dist/vega/{p-97f36f4e.entry.js → p-e00fb667.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-1dd6ba67.js +0 -1
- package/dist/vega/p-1efb47fe.entry.js +0 -1
- package/dist/vega/p-4f938ee4.entry.js +0 -1
- package/dist/vega/p-6d95390b.entry.js +0 -1
- package/dist/vega/p-a5bd3ecd.entry.js +0 -1
- package/dist/vega/p-c366e7f7.entry.js +0 -1
- package/dist/vega/p-d872beb1.entry.js +0 -1
- package/dist/vega/p-d9d5c693.entry.js +0 -1
- package/dist/vega/p-dd6211cd.js +0 -1
- package/dist/vega/p-fcabf0dc.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,H as t,F as i,r as a,c as n,g as r}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{D as s}from"./p-b9947846.js";import{a0 as d,P as h,a1 as l,a2 as c,a3 as m,a4 as p,a5 as g,a6 as f}from"./p-b9386dd0.js";import{I as x}from"./p-abd7aeaa.js";import{c as v,V as u,L as w,M as y,I as b}from"./p-6e1ab235.js";import{V as _,I as C}from"./p-4415ad28.js";import{F as D}from"./p-42141782.js";import{a as k,e as I,g as z,D as R}from"./p-6e70d3cc.js";import{D as j,d as S}from"./p-f28a6074.js";import{a as M,s as O,r as P,q as E,P as V,f as L,h as A,V as $,t as T,u as Y}from"./p-c5eb0fa6.js";import{V as F}from"./p-e1fbfd20.js";import{c as H}from"./p-86194314.js";import{i as B}from"./p-d27ae9ff.js";import{V as N}from"./p-d5531d3c.js";import{F as W}from"./p-18e8d9b7.js";import{t as K}from"./p-b75ee3ba.js";import{g as U}from"./p-8b5d3a52.js";import{F as Z}from"./p-a528714c.js";import{C as G}from"./p-2d0d575f.js";import{S as q}from"./p-103d20f5.js";import{S as J}from"./p-02467b61.js";import{K as X}from"./p-9751c801.js";import{C as Q}from"./p-75b58efe.js";import{c as ee}from"./p-44044ed7.js";import{C as te}from"./p-edda10f7.js";import{T as ie}from"./p-6572e038.js";import{c as ae}from"./p-6a334573.js";import{E as ne}from"./p-dd6211cd.js";import{S as re}from"./p-1fb56e14.js";import{C as oe}from"./p-8187878e.js";import{A as se}from"./p-0caf52e0.js";import{z as de,A as he}from"./p-aa985d73.js";import{O as le}from"./p-331a62d5.js";import{M as ce}from"./p-a07c0f8c.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-02841589.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-a0c3968b.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-262ec334.js";import"./p-5a25014f.js";import"./p-ab829745.js";import"./p-38af89b9.js";import"./p-085de8fc.js";import"./p-6e9f832f.js";import"./p-5f377954.js";import"./p-781fd6e0.js";import"./p-fc7ab79d.js";import"./p-0c667d6a.js";class me extends x{canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=new Date(e[0]),i=new Date(e[1]),a=d(t,i);return{isValid:a,message:a?"":"The end date should be later than start date"}}isAcceptedInputType(e){return Array.isArray(e)&&2===e.length&&e.every(h)}}class pe extends x{constructor(e){super(),this.evaluateSingleDate=e=>{const t=new Date(e);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=e=>{const t=new Date(e[0]),i=new Date(e[1]);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&c(i,this.maxDate)?this.invalidResult({key:"The end date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""}),this.config=e,this.minDate=e.minDate?new Date(e.minDate):null,this.maxDate=e.maxDate?new Date(e.maxDate):null}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);return"string"==typeof e?this.evaluateSingleDate(e):this.evaluateRangeDates(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return"string"==typeof e&&h(e)||Array.isArray(e)&&2===e.length&&e.every(h)}}const ge={"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 448 512" fill="currentColor">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M199 401c9.4 9.4 24.6 9.4 33.9 0L425 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L41 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L199 401z"/></svg>'},"bulls-eye":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zm0-272a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 176a16 16 0 1 0 0-32 16 16 0 1 0 0 32zm0-80a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>'}};var fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class xe extends u{constructor(){super(...arguments),this.renderInputPrefix=()=>e("div",{class:"vega-input-prefix","aria-hidden":"true"},e("vega-icon",{icon:F.getIconKey("calendar"),color:"text-secondary",onClick:async()=>{this.disabled||(await this.focusInput(),await this.vegaDatePickerCalendarRenderer.triggerRepick("start"))}})),this.isInputEnabled=()=>!this.readOnly&&!this.isMobileDevice,this.renderLabel=()=>this.label&&e("vega-field-label",{ref:e=>{j.addUniqueObserverToNode(e,M,(async()=>{await this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=async()=>{var e,t;null===(e=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===e||e.focus(),null===(t=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===t||t.focus(),await this.calendarOpenStateController.showCalendar()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.isMobileDevice?"mobile":""];return e(t,{class:{disabled:this.disabled}},this.renderLabel(),e("div",{class:k(i),ref:e=>this.datePickerContainer=e},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render()),this.vegaDatePickerCalendarRenderer.render())}}F.register({calendar:ge.calendar}),fe([v()],xe.prototype,"disabled",void 0),fe([v()],xe.prototype,"size",void 0),fe([v()],xe.prototype,"mode",void 0),fe([v()],xe.prototype,"label",void 0),fe([v()],xe.prototype,"required",void 0),fe([v()],xe.prototype,"readOnly",void 0),fe([v()],xe.prototype,"autoValidation",void 0),fe([v()],xe.prototype,"host",void 0),fe([v()],xe.prototype,"isMobileDevice",void 0),fe([v()],xe.prototype,"vegaDatePickerSingleInputRenderer",void 0),fe([v()],xe.prototype,"vegaDatePickerRangeInputRenderer",void 0),fe([v()],xe.prototype,"vegaDatePickerCalendarRenderer",void 0),fe([v()],xe.prototype,"calendarOpenStateController",void 0);var ve=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ue extends u{constructor(){super(...arguments),this.onClickClearIcon=async()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:""),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar(),this.focusInput()},this.isClearIconVisible=()=>{if("range"===this.mode){const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&!B(e,["",""])}{const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(e.length)}}}renderClearIcon(){return e(i,null,this.showClearIcon&&this.isClearIconVisible()&&e("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:H()},e("vega-icon",{icon:"close"})))}}ve([v()],ue.prototype,"disabled",void 0),ve([v()],ue.prototype,"showClearIcon",void 0),ve([v()],ue.prototype,"mode",void 0),ve([v()],ue.prototype,"isCalendarShow",void 0),ve([v()],ue.prototype,"vegaDatePickerValueController",void 0),ve([v()],ue.prototype,"calendarOpenStateController",void 0);var we=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ye extends ue{constructor(){super(...arguments),this.render=()=>e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:e=>this.singleDateInputRef=e,onChange:this.onSingleDateChange,disabled:this.disabled,role:"combobox","aria-label":this.label?`${this.label}, ${this.translationSlimmer.t("date picker")}`:this.translationSlimmer.t("date picker"),"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:()=>this.calendarOpenStateController.showCalendar()}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(w.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(t)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",w.warn("The date value of ${date} is invalid"))}}getSingleDateInputRef(){return this.singleDateInputRef}focusInput(){this.singleDateInputRef.focus()}}we([v()],ye.prototype,"placeholder",void 0),we([v()],ye.prototype,"format",void 0),we([v()],ye.prototype,"label",void 0),we([v()],ye.prototype,"isCalendarShow",void 0),we([v()],ye.prototype,"vegaDatePickerFormatController",void 0),we([v()],ye.prototype,"vegaDatePickerRenderer",void 0),we([v()],ye.prototype,"calendarOpenStateController",void 0),we([v()],ye.prototype,"vegaDatePickerCalendarRenderer",void 0),we([v()],ye.prototype,"translationSlimmer",void 0);var be=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class _e extends ue{constructor(){super(...arguments),this.render=()=>{const t=this.label?`, ${this.label}`:"",a=`, ${this.translationSlimmer.t("date picker")}`,n=`${this.translationSlimmer.t("Start Date")}${t}${a}`,r=`${this.translationSlimmer.t("End Date")}${t}${a}`;return e(i,null,e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:e=>this.startDateInputRef=e,onChange:this.onStartDateChange,disabled:this.disabled,role:"combobox","aria-label":n,"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:async()=>await this.onInputClicked("start")})),e("span",{class:{"range-input-divider":!0}}),e("div",{class:"date-picker-input"},e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:e=>this.endDateInputRef=e,onChange:this.onEndDateChange,disabled:this.disabled,role:"combobox","aria-label":r,"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:async()=>await this.onInputClicked("end")}),this.renderClearIcon()))},this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(w.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((e=>this.translationSlimmer.t(e)))):["Start Date","End Date"].map((e=>this.translationSlimmer.t(e))),this.onStartDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(t),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",w.warn("The date value of ${date} is invalid"))},this.onEndDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(t)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",w.warn("The date value of ${date} is invalid"))}}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}focusInput(){this.startDateInputRef.focus()}async onInputClicked(e){await this.calendarOpenStateController.showCalendar(),await this.vegaDatePickerCalendarRenderer.triggerRepick(e)}}be([v()],_e.prototype,"placeholder",void 0),be([v()],_e.prototype,"label",void 0),be([v()],_e.prototype,"isCalendarShow",void 0),be([v()],_e.prototype,"vegaDatePickerFormatController",void 0),be([v()],_e.prototype,"vegaDatePickerRenderer",void 0),be([v()],_e.prototype,"calendarOpenStateController",void 0),be([v()],_e.prototype,"translationSlimmer",void 0),be([v()],_e.prototype,"allowRepick",void 0),be([v()],_e.prototype,"format",void 0),be([v()],_e.prototype,"vegaDatePickerCalendarRenderer",void 0);var Ce=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class De extends u{constructor(){super(...arguments),this.calendarId=U()}componentDidLoad(){this.appendCalendarToBodyIfMobile()}getCalendarContentBoxRef(){return this.calendarContentBoxRef}getCalendarRef(){return this.calendarRef}getCalendarId(){return this.calendarId}getMobileModalRef(){return this.mobileModalRef}async triggerRepick(e){this.allowRepick&&"range"===this.mode&&await this.calendarRef.triggerRepick(e)}render(){return this.isMobileDevice?this.mobileRender():this.renderCalendar()}mobileRender(){return e("vega-modal",{showCloseButton:!1,size:De.calendarModalSize,padding:"0",isVerticallyCentered:!0,backdropColor:"semi",ref:e=>{this.mobileModalRef=e,this.addModalObserver(e)}},e("div",{slot:"modal-content"},this.renderCalendar()))}renderCalendar(){const t=this.label?`${this.label}, `:"",i=`${this.translationSlimmer.t("date picker")}`;return e("vega-box",Object.assign({},this.isMobileDevice?{}:{role:"dialog","aria-modal":"true","aria-label":`${t}${i}`},{id:this.calendarId,padding:{default:"size-12",S:"size-32"},corners:"rounded-12",backgroundColor:"bg-primary",shadow:"shadow-dropdown-menu",border:"border-input-field",ref:e=>{this.calendarContentBoxRef=e},class:"date-picker-content-box"}),e("vega-box",{width:this.getDefaultCalendarDimension("width"),height:this.getDefaultCalendarDimension("height")},e("vega-date-picker-calendar",{selection:this.value,mode:this.mode,minDate:this.minDate,maxDate:this.maxDate,clearButton:this.clearButton,format:this.format,staticHeight:!1!==this.dropdownConfig.staticHeight,showYearMonthDropdowns:this.showYearMonthDropdowns,timezone:this.timezone,yearMonthDropdownProps:{isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")},ref:e=>{this.calendarRef=e,this.addCalendarObserver(e)},isDateDisabled:e=>this.isDateDisabled(e)})))}addCalendarObserver(e){j.addUniqueObserverToNode(e,O,(async e=>{await this.onCalendarSelected(e.detail)})),j.addUniqueObserverToNode(e,P,(async()=>{await this.calendarOpenStateController.hideCalendar()})),j.addUniqueObserverToNode(e,E,(async e=>{this.monthYearChangeEventEmitter.emit(e.detail)}))}addModalObserver(e){j.addUniqueObserverToNode(e,V,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!0)})),j.addUniqueObserverToNode(e,L,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!1)}))}async onCalendarSelected(e){("single"===this.mode||"range"===this.mode)&&this.vegaDatePickerValueController.setValue(e),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar()}appendCalendarToBodyIfMobile(){const e=K();this.isMobileDevice&&e&&e.body.append(this.mobileModalRef)}getDefaultCalendarDimension(e){if("height"===e&&!1===this.dropdownConfig.staticHeight)return"auto";let t=("range"!==this.mode||this.isMobileDevice?De.regularDatePickerCalendarDimensionsForSingle:De.regularDatePickerCalendarDimensionsForRange)[e];return"height"===e&&this.clearButton&&(t+=40),`${t}px`}}De.calendarModalSize=344,De.regularDatePickerCalendarDimensionsForSingle={width:280,height:320},De.regularDatePickerCalendarDimensionsForRange={width:608,height:358},Ce([v()],De.prototype,"format",void 0),Ce([v()],De.prototype,"value",void 0),Ce([v()],De.prototype,"mode",void 0),Ce([v()],De.prototype,"minDate",void 0),Ce([v()],De.prototype,"maxDate",void 0),Ce([v()],De.prototype,"clearButton",void 0),Ce([v()],De.prototype,"dropdownConfig",void 0),Ce([v()],De.prototype,"showYearMonthDropdowns",void 0),Ce([v()],De.prototype,"timezone",void 0),Ce([v()],De.prototype,"isMobileDevice",void 0),Ce([v()],De.prototype,"isCalendarShow",void 0),Ce([v()],De.prototype,"isDateDisabled",void 0),Ce([v()],De.prototype,"allowRepick",void 0),Ce([v()],De.prototype,"disabled",void 0),Ce([v()],De.prototype,"label",void 0),Ce([v()],De.prototype,"monthYearChangeEventEmitter",void 0),Ce([v()],De.prototype,"translationSlimmer",void 0),Ce([v()],De.prototype,"vegaDatePickerValueController",void 0),Ce([v()],De.prototype,"calendarOpenStateController",void 0),Ce([y("componentDidLoad")],De.prototype,"componentDidLoad",null);var ke=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ie extends u{componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(e,t){"range"===this.mode&&B(e,t)||(this.valueGuard(e)||this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),G.notify(Z,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(e){this.valueGuard(e)&&(this.value=e)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(e){let t;switch(this.mode){case"single":t=e&&"string"==typeof e&&!!m.fromString(e,this.format)||""===e;break;case"range":t=Array.isArray(e)&&2===e.length&&e.every((e=>!!m.fromString(e,this.format)||""===e))}return t||w.warn(`Invalid date picker value ${e} for ${this.mode} mode`),t}}ke([v({writable:!0})],Ie.prototype,"value",void 0),ke([v()],Ie.prototype,"mode",void 0),ke([v()],Ie.prototype,"format",void 0),ke([v()],Ie.prototype,"changeEventEmitter",void 0),ke([v()],Ie.prototype,"host",void 0),ke([v()],Ie.prototype,"isCalendarShow",void 0),ke([v()],Ie.prototype,"vegaDatePickerCalendarRenderer",void 0),ke([v()],Ie.prototype,"calendarOpenStateController",void 0),ke([y("componentWillLoad")],Ie.prototype,"componentWillLoad",null),ke([y("watchValue")],Ie.prototype,"watchValue",null),ke([y("watchMode")],Ie.prototype,"watchMode",null);var ze=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Re extends J{constructor(e){super(),this.formatDate=e=>m.fromString(e,this.format).toString(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=e=>{const t=e.match(/M/gi);return new q({mask:e.replace(/[MDY]/gi,"9"),slot:"9",accept:(t&&t.length)>2?/\w/g:/\d/g})},this.inputType=e}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(e){this.setupStringFormatter(e)}setupStringFormatter(e){this.datePickerFormatStrategy=this.getDateFormatMask(e),this.setup()}}ze([v()],Re.prototype,"format",void 0),ze([v()],Re.prototype,"mode",void 0),ze([v()],Re.prototype,"vegaDatePickerCalendarRenderer",void 0),ze([v()],Re.prototype,"vegaDatePickerSingleInputRenderer",void 0),ze([v()],Re.prototype,"vegaDatePickerRangeInputRenderer",void 0),ze([y("componentDidLoad")],Re.prototype,"componentDidLoad",null),ze([y("watchFormat")],Re.prototype,"watchFormat",null);var je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Se extends X{constructor(){super((e=>[{keyCode:"Enter",activeElementInScope:()=>[e.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),e.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),e.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),e.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()],eventName:"keydown",callback:e=>{var t;const i=(null===(t=e.target.shadowRoot)||void 0===t?void 0:t.activeElement)||e.target;return null==i?void 0:i.click()}}]))}}je([v()],Se.prototype,"vegaDatePickerCalendarRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerSingleInputRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerRangeInputRenderer",void 0);const Me=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!1===e.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:e=>"single"===e.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:e=>"range"===e.mode}];var Oe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Pe extends ne{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>new oe),"isCalendarShow"),this.ariaDialogFocusableTrapSlimmer=ae(Pe,se,[],[{mapFrom:"show",mapTo:"show"}],[{triggerEl:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),dialogEl:()=>this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()}]),this.clearCalendarStateTaskQueue=new re}connectedCallback(){this.isMobileDevice||super.connectedCallback()}disconnectedCallback(){this.isMobileDevice||super.disconnectedCallback()}componentDidLoad(){this.isMobileDevice||super.componentDidLoad()}async componentDidRender(){await this.clearCalendarStateTaskQueue.runTask()}async doOpen(){await this.showCalendar()}async doClose(){await this.hideCalendar()}async watchDisabled(){await this.hideCalendar()}async watchIsCalendarShow(){await this.clearCalendarSelectingState()}async showCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("show"):this.show()}async hideCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("hide"):this.hide(),this.focusContainerWithAnnouncement()}updateIsCalendarShowState(e){this.isCalendarShow=e}focusContainerWithAnnouncement(){const e=I();if((null==e?void 0:e.matches)&&e.matches(":focus-visible")){const e=this.vegaDatePickerRenderer.getDatePickerContainer();if(e){const t=this.buildAriaAnnouncement(this.value);e.setAttribute("role","group"),e.setAttribute("aria-label",t),e.setAttribute("tabindex","-1"),e.addEventListener("blur",(()=>{e.removeAttribute("role"),e.removeAttribute("aria-label"),e.removeAttribute("tabindex")}),{once:!0}),setTimeout((()=>e.focus()),0)}}}buildAriaAnnouncement(e){let t=null,i=null;return"single"===this.mode&&"string"==typeof e?t=e?m.fromString(e,this.format):null:"range"===this.mode&&Array.isArray(e)&&(t=e[0]?m.fromString(e[0],this.format):null,i=e[1]?m.fromString(e[1],this.format):null),`\n\t\t\t${p({startDate:t,endDate:i,mode:this.mode})},\n\t\t\t${N.t("date picker")}\n\t\t`}async clearCalendarSelectingState(){if(!this.isCalendarShow){const e=this.vegaDatePickerCalendarRenderer.getCalendarRef();await this.clearCalendarStateTaskQueue.enqueue({run:async()=>await e.reset()},!1)}}}Oe([v()],Pe.prototype,"dropdownConfig",void 0),Oe([v()],Pe.prototype,"vegaDatePickerRenderer",void 0),Oe([v()],Pe.prototype,"vegaDatePickerCalendarRenderer",void 0),Oe([v()],Pe.prototype,"value",void 0),Oe([v()],Pe.prototype,"format",void 0),Oe([v()],Pe.prototype,"mode",void 0),Oe([v({writable:!0})],Pe.prototype,"isCalendarShow",void 0),Oe([v()],Pe.prototype,"isMobileDevice",void 0),Oe([b()],Pe.prototype,"ariaDialogFocusableTrapSlimmer",void 0),Oe([y("componentDidRender")],Pe.prototype,"componentDidRender",null),Oe([y("doOpen")],Pe.prototype,"doOpen",null),Oe([y("doClose")],Pe.prototype,"doClose",null),Oe([y("watchDisabled")],Pe.prototype,"watchDisabled",null),Oe([y("watchIsCalendarShow")],Pe.prototype,"watchIsCalendarShow",null);var Ee=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const Ve=class{constructor(e){a(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.globalSlimmers={},this.translationSlimmer=new ie,this.calendarOpenStateController=new Pe,this.vegaDatePickerValueController=new Ie,this.vegaDatePickerFormatController=new Re("single"),this.startInputFormatController=new Re("rangeStart"),this.endInputFormatController=new Re("rangeEnd"),this.vegaDatePickerKeyboardController=new Se,this.vegaDatePickerRenderer=new xe,this.vegaDatePickerSingleInputRenderer=new ye,this.vegaDatePickerRangeInputRenderer=new _e,this.vegaDatePickerCalendarRenderer=new De,this.formFieldController=new D({propertyRules:[{propertyName:"required",ruleFactory:(e,t)=>e?new s({mode:t}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:e=>"range"===e?new me:null},{propertyName:"minDate",ruleFactory:(e,t)=>new pe({minDate:e,maxDate:t}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(e,t)=>new pe({minDate:t,maxDate:e}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:e=>"range"===e.mode?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=ee(Ve,A),this.monthYearChangeEventEmitter=ee(Ve,E),this.inputEventPrevent=new te([A,P,E],(()=>this.vegaDatePickerCalendarRenderer.getCalendarRef())),this.vegaComponentUsageRuntimeMetricsSlimmer=new _(Me),this.isMobileDevice=z()===R.MOBILE,this.isCalendarShow=!1,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}watchIsCalendarShow(){}watchMode(){}watchValue(e,t){}watchFormat(e){}watchValidationRules(){}watchMinDate(e){}watchMaxDate(e){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{isCalendarShow:["watchIsCalendarShow"],mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};Ee([C()],Ve.prototype,"globalSlimmers",void 0),Ee([b()],Ve.prototype,"translationSlimmer",void 0),Ee([b()],Ve.prototype,"calendarOpenStateController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerValueController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerFormatController",void 0),Ee([b()],Ve.prototype,"startInputFormatController",void 0),Ee([b()],Ve.prototype,"endInputFormatController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerKeyboardController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerSingleInputRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerRangeInputRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerCalendarRenderer",void 0),Ee([b()],Ve.prototype,"formFieldController",void 0),Ee([b()],Ve.prototype,"changeEventEmitter",void 0),Ee([b()],Ve.prototype,"monthYearChangeEventEmitter",void 0),Ee([b()],Ve.prototype,"inputEventPrevent",void 0),Ee([b()],Ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ee([Q()],Ve.prototype,"watchValue",null),Ve.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))}';var Le=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ae extends u{render(){return e("div",{class:{calendar:!0,"static-height":this.staticHeight}},e("div",{class:"container__main"},this.headerRenderer.render(),this.renderContainer(),this.renderFooter()),e("div",{class:"aria-announcement","aria-live":"polite","aria-atomic":"true"},this.buildAnnouncement()))}renderContainer(){return e("div",{class:"container__months"},this.isDualMonths?this.renderRangeMonth():this.monthItemRenderer.render("start"))}renderRangeMonth(){return e(i,null,this.monthItemRenderer.render("start"),this.monthItemRenderer.render("end"))}renderFooter(){return this.clearButton&&e("div",{class:"footer-container"},e("vega-button-link",{ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.clearCalendar()}))},label:this.translationSlimmer.t("Clear")}))}clearCalendar(){this.clearEventEmitter.emit(),G.notify(S.getSubject(this.host,de),{})}buildAnnouncement(){const{startDate:e,endDate:t}=this.calendarSelection;return p({mode:this.mode,startDate:e,endDate:t})}}Le([v()],Ae.prototype,"host",void 0),Le([v()],Ae.prototype,"clearButton",void 0),Le([v()],Ae.prototype,"calendarSelection",void 0),Le([v()],Ae.prototype,"monthItemRenderer",void 0),Le([v()],Ae.prototype,"staticHeight",void 0),Le([v()],Ae.prototype,"translationSlimmer",void 0),Le([v()],Ae.prototype,"mode",void 0),Le([v()],Ae.prototype,"clearEventEmitter",void 0),Le([v()],Ae.prototype,"headerRenderer",void 0),Le([v()],Ae.prototype,"isDualMonths",void 0);const $e=["January","February","March","April","May","June","July","August","September","October","November","December"];var Te=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ye extends u{render(){return(!this.isDualMonths||this.showYearMonthDropdowns)&&e("vega-flex",{justifyContent:"center"},this.showYearMonthDropdowns?this.renderMonthDropdownSwitcher():this.renderCurrentMonth(),this.showYearMonthDropdowns?this.renderYearDropdownSwitcher():this.renderCurrentYear())}getMonthDropdownOptions(){const e=this.currentPeriod.current.year;return $e.map(((t,i)=>({key:`${i}`,label:this.translationSlimmer.t(t),disabled:this.isDisabledMonth(e,i+1)})))}isDisabledMonth(e,t){var i,a,n,r;const o=null===(i=this.minCalendarDate)||void 0===i?void 0:i.month,s=null===(a=this.minCalendarDate)||void 0===a?void 0:a.year,d=null===(n=this.maxCalendarDate)||void 0===n?void 0:n.month,h=null===(r=this.maxCalendarDate)||void 0===r?void 0:r.year;return e<s||e>h||e===s&&o>t||e===h&&d<t}getYearDropdownOptions(){var e,t,i,a;const n=(new Date).getFullYear(),r=(null===(e=this.minCalendarDate)||void 0===e?void 0:e.year)||Math.min((null===(t=this.maxCalendarDate)||void 0===t?void 0:t.year)||n,n)-Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,o=(null===(i=this.maxCalendarDate)||void 0===i?void 0:i.year)||Math.max((null===(a=this.minCalendarDate)||void 0===a?void 0:a.year)||n,n)+Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR,s=[];for(let e=r;e<=o;e++)s.push({key:String(e),label:String(e)});return s}renderMonthDropdownSwitcher(){const{month:t}=this.currentPeriod.current,i=t-1;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getMonthDropdownOptions(),selectedSourceKey:i.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,$,(e=>{const t=parseInt(e.detail);this.setDateBasedOnSelectedMonth(t)}))}},this.renderCurrentMonth())}renderYearDropdownSwitcher(){const{year:t}=this.currentPeriod.current;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getYearDropdownOptions(),selectedSourceKey:t.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,$,(e=>{this.setDateBasedOnSelectedYear(parseInt(e.detail))}))}},this.renderCurrentYear())}onDropdownShowOrHide(e){j.addUniqueObserverToNode(e,T,(async()=>{e.classList.add("active")})),j.addUniqueObserverToNode(e,Y,(()=>{const t=e.closest(".calendar");if(t){const e=t.querySelector("vega-dropdown.active");e&&e.classList.remove("active")}}))}renderCurrentMonth(){const t=this.translationSlimmer.t(this.currentPeriod.current.getMonthName());return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-name",size:"small",label:t}):e("div",{class:"month-item-name",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?H():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderCurrentYear(){const t=this.currentPeriod.current.year.toString();return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-year",size:"small",label:t}):e("div",{class:"month-item-year",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?H():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderDropdownSwitchIcon(){return this.showYearMonthDropdowns&&e("vega-icon",{icon:F.getIconKey("caret-down"),color:"text-link"})}setDateBasedOnSelectedMonth(e){const{year:t}=this.currentPeriod.current,i=new Date(t,e,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}setDateBasedOnSelectedYear(e){const{month:t}=this.currentPeriod.current,i=new Date(e,t-1,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}}F.register({"caret-down":ge["caret-down"]}),Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,Te([v()],Ye.prototype,"currentPeriodController",void 0),Te([v()],Ye.prototype,"showYearMonthDropdowns",void 0),Te([v()],Ye.prototype,"translationSlimmer",void 0),Te([v()],Ye.prototype,"minCalendarDate",void 0),Te([v()],Ye.prototype,"maxCalendarDate",void 0),Te([v()],Ye.prototype,"yearMonthDropdownProps",void 0),Te([v()],Ye.prototype,"currentPeriod",void 0),Te([v()],Ye.prototype,"size",void 0),Te([v()],Ye.prototype,"mode",void 0),Te([v()],Ye.prototype,"isDualMonths",void 0);var Fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class He extends u{connectedCallback(){this.initCalendarClearObserver()}disconnectedCallback(){this.removeCalendarClearObserver()}initCalendarClearObserver(){this.calendarClearObserver=new le(this.canAcceptClearEvent.bind(this),this.clear.bind(this)),G.register(S.getSubject(this.host,de),this.calendarClearObserver)}removeCalendarClearObserver(){G.unregister(S.getSubject(this.host,de),this.calendarClearObserver)}canAcceptClearEvent(){return!0}}Fe([v()],He.prototype,"host",void 0),Fe([y("connectedCallback")],He.prototype,"connectedCallback",null),Fe([y("disconnectedCallback")],He.prototype,"disconnectedCallback",null);var Be=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ne extends He{connectedCallback(){super.connectedCallback(),this.initCalendarPeriodUpdateObserver()}disconnectedCallback(){super.disconnectedCallback(),this.removeCalendarPeriodUpdateObserver()}componentWillLoad(){this.setCurrentMonthPeriod()}watchMaxCalendarDate(){this.setCurrentMonthPeriod()}watchMinCalendarDate(){this.setCurrentMonthPeriod()}watchCurrentPeriod(){this.monthYearChangeEventEmitter.emit(this.getCurrentYearMonthByPeriod())}resetCurrentPeriod(){this.setCurrentMonthPeriod()}clear(){this.setCurrentMonthPeriod()}gotoNextPeriod(){const e=this.isDualMonths?this.currentPeriod.next().next():this.currentPeriod.next();this.updateCalendarPeriod(e)}gotoPreviousPeriod(){const e=this.isDualMonths?this.currentPeriod.previous().previous():this.currentPeriod.previous();this.updateCalendarPeriod(e)}updateCalendarPeriod(e){this.currentPeriod&&this.currentPeriod.equal(e)||(this.currentPeriod=e)}setCurrentMonthPeriod(){let e;const t=this.calendarSelection.startDate;e=f(t)?t:this.minCalendarDate&&(this.today.isBefore(this.minCalendarDate)||this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate))?this.minCalendarDate:this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate)?this.maxCalendarDate:this.today,this.updateCalendarPeriod(new g(e,!0,this.timezone))}getCurrentYearMonthByPeriod(){const e={month:$e[this.currentPeriod.current.month-1],year:`${this.currentPeriod.current.year}`};return"range"===this.mode?[e,{month:$e[this.currentPeriod.endDate.month-1],year:`${this.currentPeriod.endDate.year}`}]:e}initCalendarPeriodUpdateObserver(){j.addUniqueObserverToNode(this.host,he,this.setCurrentMonthPeriod.bind(this))}removeCalendarPeriodUpdateObserver(){j.removeUniqueObserverFromNode(this.host,he)}}Be([v({writable:!0})],Ne.prototype,"currentPeriod",void 0),Be([v()],Ne.prototype,"host",void 0),Be([v()],Ne.prototype,"today",void 0),Be([v()],Ne.prototype,"mode",void 0),Be([v()],Ne.prototype,"format",void 0),Be([v()],Ne.prototype,"timezone",void 0),Be([v()],Ne.prototype,"minCalendarDate",void 0),Be([v()],Ne.prototype,"maxCalendarDate",void 0),Be([v()],Ne.prototype,"isMobileDevice",void 0),Be([v()],Ne.prototype,"monthYearChangeEventEmitter",void 0),Be([v()],Ne.prototype,"calendarSelection",void 0),Be([v()],Ne.prototype,"isDualMonths",void 0),Be([y("connectedCallback")],Ne.prototype,"connectedCallback",null),Be([y("disconnectedCallback")],Ne.prototype,"disconnectedCallback",null),Be([y("componentWillLoad")],Ne.prototype,"componentWillLoad",null),Be([y("watchMaxCalendarDate")],Ne.prototype,"watchMaxCalendarDate",null),Be([y("watchMinCalendarDate")],Ne.prototype,"watchMinCalendarDate",null),Be([y("watchCurrentPeriod")],Ne.prototype,"watchCurrentPeriod",null),Be([y("reset")],Ne.prototype,"resetCurrentPeriod",null);var We=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ke extends u{connectedCallback(){this.setToday()}watchTimezone(){this.setToday()}setToday(){this.today=m.from(new Date,this.timezone)}}We([v()],Ke.prototype,"timezone",void 0),We([v({writable:!0})],Ke.prototype,"today",void 0),We([y("connectedCallback")],Ke.prototype,"connectedCallback",null),We([y("watchTimezone")],Ke.prototype,"watchTimezone",null);var Ue=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ze extends u{constructor(){super(...arguments),this.monthViewGenerator=new ce}render(t){const i="end"===t?this.currentPeriod.next():this.currentPeriod,a=this.monthViewGenerator.generate(i);return e("div",{class:"month-item"},this.renderCurrentYearMonth(i),this.renderWeek(a),this.renderDays(a,i))}renderCurrentYearMonth(t){return this.isDualMonths&&e("vega-box",{class:"current-month-year"},this.translationSlimmer.t(t.current.getMonthName())," ",t.current.year)}renderWeek(t){return e("vega-grid",{class:"month-item-weekdays-row",column:"7-auto",row:1,"aria-hidden":"true"},t.weekdays.map((t=>e("div",{key:t},this.translationSlimmer.t(`${t}-short`)))))}renderDays(t,i){return e("vega-grid",{class:"container__days",column:"7-auto",row:this.staticHeight?6:"6-auto"},t.dateItems.flat().filter((e=>e.month<=i.current.month||e.year<i.current.year)).map((e=>this.renderItem(e,i))))}renderItem(e,t){const i=this.dateIndicator(e.toDate()),a=this.renderDay(e,t);return i&&i.text?this.renderDayWithIndicator(i,a):a}renderDayWithIndicator(t,i){return e("vega-tooltip",Object.assign({},t),i)}renderDay(t,i){const a=t.month===i.current.month,n=this.isBeforeMinDate(t)||this.isAfterMaxDate(t),r=this.getCurrentRangeDates(),o=this.isDateDisabled(t.toDate()),s=t.isAfter(r[0])&&t.isBefore(r[1]),d=a&&!n&&!o,h=this.translationSlimmer.t(`${t.getWeekDayShortName()}-full`);return e("div",{key:`${t.month}-${t.date}`,class:a&&{"day-item":!0,"is-today":t.equal(this.today),"is-start-date":t.equal(r[0]),"is-in-range":s,"is-end-date":t.equal(r[1]),"is-locked":n,"is-disabled":o},onClick:()=>d&&this.selectionController.onDayClick(t),onMouseEnter:()=>d&&this.selectionController.onDayHover(t),onKeyDown:H(),role:"menuitem","aria-label":`${t.getMonthName()} ${t.date} ${t.year} ${h}`,"aria-hidden":a?void 0:"true","aria-disabled":n||o?"true":void 0,tabIndex:d?0:-1},e("div",{class:"day-content","aria-hidden":"true"},a?t.date:""))}getCurrentRangeDates(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;return f(e)&&!t&&this.hoverDate?this.hoverDate.isBefore(e)?[this.hoverDate,e]:[e,this.hoverDate]:!f(e)&&t&&this.hoverDate?this.hoverDate.isBefore(t)?[this.hoverDate,t]:[t,this.hoverDate]:[e,t]}isBeforeMinDate(e){return this.minCalendarDate&&e.isBefore(this.minCalendarDate)}isAfterMaxDate(e){return this.maxCalendarDate&&e.isAfter(this.maxCalendarDate)}}Ue([v()],Ze.prototype,"currentPeriod",void 0),Ue([v()],Ze.prototype,"today",void 0),Ue([v()],Ze.prototype,"translationSlimmer",void 0),Ue([v()],Ze.prototype,"hoverDate",void 0),Ue([v()],Ze.prototype,"maxCalendarDate",void 0),Ue([v()],Ze.prototype,"minCalendarDate",void 0),Ue([v()],Ze.prototype,"selectionController",void 0),Ue([v()],Ze.prototype,"calendarSelection",void 0),Ue([v()],Ze.prototype,"staticHeight",void 0),Ue([v()],Ze.prototype,"mode",void 0),Ue([v()],Ze.prototype,"size",void 0),Ue([v()],Ze.prototype,"isDualMonths",void 0),Ue([v()],Ze.prototype,"isDateDisabled",void 0),Ue([v()],Ze.prototype,"dateIndicator",void 0);class Ge{constructor(e,t,i){if(this.startDate=e,this.endDate=t,this.mode=i,"range"===this.mode&&this.startDate&&this.endDate&&this.startDate.isAfter(this.endDate)){const e=this.startDate;this.startDate=this.endDate,this.endDate=e}}static fromSelection(e,t,i){let a=null,n=null;if(this.isValidSelection(e,t,i))if("single"===t&&"string"==typeof e){const t=m.fromString(e,i);a=t,n=t}else"range"===t&&Array.isArray(e)&&(a=m.fromString(e[0],i),n=m.fromString(e[1],i));return new Ge(a,n,t)}static isValidSelection(e,t,i){let a;switch(t){case"single":a=this.isValidDateString(e,i);break;case"range":a=Array.isArray(e)&&2===e.length&&e.every((e=>this.isValidDateString(e,i)))}return a||w.warn(`Invalid date picker calendar selection ${e} for ${t} mode`),a}static isValidDateString(e,t){return e&&"string"==typeof e&&!!m.fromString(e,t)||""===e}toSelection(e){var t,i,a;return"range"===this.mode?[(null===(t=this.startDate)||void 0===t?void 0:t.toString(e))||"",(null===(i=this.endDate)||void 0===i?void 0:i.toString(e))||""]:(null===(a=this.startDate)||void 0===a?void 0:a.toString(e))||""}equals(e){if(!e)return!1;const t=this.startDate&&e.startDate?this.startDate.equal(e.startDate):this.startDate===this.endDate,i=this.endDate&&e.endDate?this.endDate.equal(e.endDate):this.endDate===e.endDate;return t&&i}isCompleted(){return f(this.startDate)&&("range"!==this.mode||f(this.endDate))}isEmpty(){return!f(this.startDate)&&!f(this.endDate)}}var qe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Je extends He{componentWillLoad(){this.setCalendarSelectionBySelection(this.selection)}watchSelection(e){!this.isSameSelection(e,this.calendarSelection.toSelection(this.format))&&(this.setCalendarSelectionBySelection(e),this.notifyPeriodChange())}resetRange(){const e=!this.calendarSelection.isCompleted()&&!this.calendarSelection.isEmpty()&&!!this.previousCalendarSelection;this.setCalendarSelectionBySelection(e?this.previousCalendarSelection.toSelection(this.format):this.selection),this.hoverDate=null}watchCalendarSelection(){(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&this.setSelection(this.calendarSelection.toSelection(this.format))}clear(){this.setCalendarSelectionByRange(null,null),this.hoverDate=null}onDayClick(e){"single"===this.mode?this.setCalendarSelectionByRange(e,e):"range"===this.mode&&(this.calendarSelection.startDate&&!this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.startDate,e):!this.calendarSelection.startDate&&this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.endDate,e):this.setCalendarSelectionByRange(e,null),this.hoverDate=null)}onDayHover(e){const t=this.allowRepickController.getRepickType();t&&"range"===this.mode&&this.calendarSelection.isCompleted()&&("start"===t?this.setCalendarSelectionByRange(null,this.calendarSelection.endDate):this.setCalendarSelectionByRange(this.calendarSelection.startDate,null)),this.calendarSelection.isEmpty()||this.calendarSelection.isCompleted()||(this.hoverDate=e)}setCalendarSelectionBySelection(e){const t=Ge.fromSelection(e,this.mode,this.format);this.calendarSelection&&(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&(this.previousCalendarSelection=this.calendarSelection),t.equals(this.calendarSelection)||(this.calendarSelection=t),this.setSelection(t.toSelection(this.format))}setCalendarSelectionByRange(e,t){this.calendarSelection=new Ge(e,t,this.mode)}setSelection(e){this.isSameSelection(e,this.selection)||(this.selection=e,this.vegaSelectionChangeEventEmitter.emit(this.selection))}isSameSelection(e,t){return"range"===this.mode&&Array.isArray(e)&&Array.isArray(t)?B(e,t):e===t}notifyPeriodChange(){G.notify(S.getSubject(this.host,he),{})}}qe([v()],Je.prototype,"host",void 0),qe([v()],Je.prototype,"mode",void 0),qe([v()],Je.prototype,"format",void 0),qe([v({writable:!0})],Je.prototype,"selection",void 0),qe([v({writable:!0})],Je.prototype,"calendarSelection",void 0),qe([v({writable:!0})],Je.prototype,"hoverDate",void 0),qe([v()],Je.prototype,"clearEventEmitter",void 0),qe([v()],Je.prototype,"vegaSelectionChangeEventEmitter",void 0),qe([v()],Je.prototype,"allowRepickController",void 0),qe([v()],Je.prototype,"translationSlimmer",void 0),qe([y("componentWillLoad")],Je.prototype,"componentWillLoad",null),qe([y("watchSelection")],Je.prototype,"watchSelection",null),qe([y("reset")],Je.prototype,"resetRange",null),qe([y("watchCalendarSelection")],Je.prototype,"watchCalendarSelection",null);var Xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Qe extends u{componentWillLoad(){this.setMaxCalendarDate(),this.setMinCalendarDate()}watchMaxDate(){this.setMaxCalendarDate()}watchMinDate(){this.setMinCalendarDate()}setMaxCalendarDate(){this.maxCalendarDate=m.fromString(this.maxDate,this.format)}setMinCalendarDate(){this.minCalendarDate=m.fromString(this.minDate,this.format)}}Xe([v()],Qe.prototype,"maxDate",void 0),Xe([v()],Qe.prototype,"minDate",void 0),Xe([v()],Qe.prototype,"format",void 0),Xe([v({writable:!0})],Qe.prototype,"maxCalendarDate",void 0),Xe([v({writable:!0})],Qe.prototype,"minCalendarDate",void 0),Xe([y("componentWillLoad")],Qe.prototype,"componentWillLoad",null),Xe([y("watchMaxDate")],Qe.prototype,"watchMaxDate",null),Xe([y("watchMinDate")],Qe.prototype,"watchMinDate",null);var et=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class tt extends u{triggerRepick(e){this.repickType=e,"end"===e&&this.setEndDateAsCurrentMonthPeriod()}watchCalendarSelection(){this.calendarSelection.isCompleted()&&(this.repickType=null)}getRepickType(){return this.repickType}setEndDateAsCurrentMonthPeriod(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;if(t){const i=f(e)&&e.compare(t).inMonth?e:this.isMobileDevice?t:t.add(0,-1);this.currentPeriodController.updateCalendarPeriod(new g(i))}}}et([v()],tt.prototype,"calendarSelection",void 0),et([v()],tt.prototype,"isMobileDevice",void 0),et([v()],tt.prototype,"currentPeriodController",void 0),et([y("triggerRepick")],tt.prototype,"triggerRepick",null),et([y("watchCalendarSelection")],tt.prototype,"watchCalendarSelection",null);var it=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class at extends u{render(){return e("vega-flex",{class:"month-item-header",alignItems:"center"},this.renderSwitcher(),this.yearMonthSwitcherRender.render())}renderSwitcher(){return e("vega-flex",{gap:"size-8",alignItems:"center"},this.renderPrevIcon(),this.renderToday(),this.renderNextIcon())}renderPrevIcon(){const t=this.currentPeriod.current.firstDateOfMonth(),i=this.minCalendarDate&&(t.isBefore(this.minCalendarDate)||t.equal(this.minCalendarDate));return e("vega-button-circle",{class:{"button-previous-month":!0,disabled:i},variant:"icon-only",icon:F.getIconKey("chevron-left"),"data-aria-label":this.translationSlimmer.t("Previous month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoPreviousPeriod()}))},iconColor:i?"text-disabled":"text-link",size:this.getNavigationIconSize(),disabled:i})}renderNextIcon(){const t=(this.isDualMonths?this.currentPeriod.next():this.currentPeriod).current.lastDateOfMonth(),i=this.maxCalendarDate&&(t.isAfter(this.maxCalendarDate)||t.equal(this.maxCalendarDate));return e("vega-button-circle",{class:{"button-next-month":!0,disabled:i},variant:"icon-only",icon:F.getIconKey("chevron-right"),"data-aria-label":this.translationSlimmer.t("Next month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoNextPeriod()}))},size:this.getNavigationIconSize(),iconColor:i?"text-disabled":"text-link",disabled:i})}renderToday(){const t=this.isDualMonths&&"small"!==this.size;return e("vega-button-link",{class:{"button-today":!0,"with-label":t},"data-aria-label":this.translationSlimmer.t("Today"),label:t?this.translationSlimmer.t("Today"):"",ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.updateCalendarPeriod(new g(this.today,!0,this.timezone))}))},size:"large"===this.size?"default":"small",icon:F.getIconKey("bulls-eye")})}getNavigationIconSize(){return"large"===this.size?"small":"extra-small"}}F.register({"chevron-left":ge["chevron-left"],"chevron-right":ge["chevron-right"],"bulls-eye":ge["bulls-eye"]}),it([v()],at.prototype,"currentPeriod",void 0),it([v()],at.prototype,"today",void 0),it([v()],at.prototype,"translationSlimmer",void 0),it([v()],at.prototype,"yearMonthSwitcherRender",void 0),it([v()],at.prototype,"currentPeriodController",void 0),it([v()],at.prototype,"maxCalendarDate",void 0),it([v()],at.prototype,"minCalendarDate",void 0),it([v()],at.prototype,"size",void 0),it([v()],at.prototype,"timezone",void 0),it([v()],at.prototype,"isDualMonths",void 0);var nt=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class rt extends u{componentWillLoad(){this.setIsDualMonths()}watchMode(){this.setIsDualMonths()}watchDualMonths(){this.setIsDualMonths()}setIsDualMonths(){this.isDualMonths=!this.isMobileDevice&&("boolean"==typeof this.dualMonths?this.dualMonths:"range"===this.mode)}}nt([v()],rt.prototype,"mode",void 0),nt([v()],rt.prototype,"dualMonths",void 0),nt([v({writable:!0})],rt.prototype,"isDualMonths",void 0),nt([v()],rt.prototype,"isMobileDevice",void 0),nt([y("componentWillLoad")],rt.prototype,"componentWillLoad",null),nt([y("watchMode")],rt.prototype,"watchMode",null),nt([y("watchDualMonths")],rt.prototype,"watchDualMonths",null);var ot=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const st=class{constructor(e){a(this,e),this.vegaClear=n(this,"vegaClear",7),this.clear=n(this,"clear",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.vegaSelectionChange=n(this,"vegaSelectionChange",7),this.selectionChange=n(this,"selectionChange",7),this.globalSlimmers={},this.renderer=new Ae,this.isDualMonthsController=new rt,this.monthItemRenderer=new Ze,this.headerRenderer=new at,this.translationSlimmer=new ie,this.todayController=new Ke,this.selectionController=new Je,this.minMaxDateController=new Qe,this.currentPeriodController=new Ne,this.yearMonthSwitcherRender=new Ye,this.allowRepickController=new tt,this.vegaComponentUsageRuntimeMetricsSlimmer=new _,this.clearEventEmitter=ee(st,P),this.monthYearChangeEventEmitter=ee(st,E),this.vegaSelectionChangeEventEmitter=ee(st,O),this.isMobileDevice=z()===R.MOBILE,this.size="regular",this.mode="single",this.selection="range"===this.mode?["",""]:"",this.format="MM/DD/YYYY",this.clearButton=!1,this.staticHeight=!1,this.showYearMonthDropdowns=!1,this.yearMonthDropdownProps={},this.isDateDisabled=()=>!1,this.dateIndicator=()=>null}watchCurrentPeriod(){}watchCalendarSelection(){}watchMaxCalendarDate(){}watchMinCalendarDate(){}watchMode(){}watchSelection(){}watchMinDate(){}watchMaxDate(){}watchTimezone(){}watchDualMonths(){}async reset(){}async triggerRepick(e){}render(){return o(e(t,{class:{[this.size]:!0,[this.mode]:!0,mobile:this.isMobileDevice,"dual-months":this.isDualMonths}},this.renderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriod"],calendarSelection:["watchCalendarSelection"],maxCalendarDate:["watchMaxCalendarDate"],minCalendarDate:["watchMinCalendarDate"],mode:["watchMode"],selection:["watchSelection"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],timezone:["watchTimezone"],dualMonths:["watchDualMonths"]}}};ot([C()],st.prototype,"globalSlimmers",void 0),ot([b()],st.prototype,"renderer",void 0),ot([b()],st.prototype,"isDualMonthsController",void 0),ot([b()],st.prototype,"monthItemRenderer",void 0),ot([b()],st.prototype,"headerRenderer",void 0),ot([b()],st.prototype,"translationSlimmer",void 0),ot([b()],st.prototype,"todayController",void 0),ot([b()],st.prototype,"selectionController",void 0),ot([b()],st.prototype,"minMaxDateController",void 0),ot([b()],st.prototype,"currentPeriodController",void 0),ot([b()],st.prototype,"yearMonthSwitcherRender",void 0),ot([b()],st.prototype,"allowRepickController",void 0),ot([b()],st.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ot([b()],st.prototype,"clearEventEmitter",void 0),ot([b()],st.prototype,"monthYearChangeEventEmitter",void 0),ot([b()],st.prototype,"vegaSelectionChangeEventEmitter",void 0),st.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7)}.calendar,.calendar .container__main,.calendar .container__months{height:100%}:host(.small.dual-months) .calendar.static-height .container__main,:host(.regular.dual-months) .calendar.static-height .container__main,:host(.large.dual-months) .calendar.static-height .container__main{aspect-ratio:1/1}:host .month-item-header .button-today::part(link){color:rgba(var(--v-text-link, 19, 98, 226, 1));vertical-align:top}:host .month-item-header vega-dropdown .month-item-name,:host .month-item-header vega-dropdown .month-item-year{display:flex;gap:8px;align-items:center;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host .month-item-header vega-dropdown.active .month-item-name,:host .month-item-header vega-dropdown.active .month-item-year{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .month-item-header .button-previous-month.disabled,:host .month-item-header .button-next-month.disabled{pointer-events:none}:host(.small.single) vega-dropdown .month-item-name span{max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.small){--vega-litepicker-day-width:28px;--vega-litepicker-day-height:28px;--vega-date-picker-calendar-range-space-size:16px}:host(.small) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header{gap:8px;margin-bottom:12px}:host(.small) .month-item-header .button-today{height:16px}:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header .month-item-name{margin-right:4px}:host(.small) .month-item-header vega-dropdown .month-item-name{margin-right:8px}:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:4px;padding-right:4px;font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;gap:2px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .month-item-header vega-dropdown .month-item-name vega-icon,:host(.small) .month-item-header vega-dropdown .month-item-year vega-icon{width:12px;height:12px}:host(.small) .month-item-header .small-month-item-name{margin-right:8px}:host(.small) .month-item-header .small-month-item-name::part(label-container),:host(.small) .month-item-header .small-month-item-year::part(label-container){font-size:14px}:host(.small) .month-item .current-month-year{margin-bottom:4px}:host(.small) .calendar .container__main{max-width:360px;max-height:360px}:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;margin-bottom:4px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .calendar .container__days .day-item .day-content{width:18px;height:18px}:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;width:18px;height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.small.dual-months) .calendar .container__main{width:100%;max-width:600px;max-height:360px}:host(.regular){--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px;--vega-date-picker-calendar-range-space-size:24px}:host(.regular) .current-month-year{text-align:center;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){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header{gap:16px;margin-bottom:24px}:host(.regular) .month-item-header .button-today{height:16px}:host(.regular) .month-item-header .button-today.with-label{height:18px}:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{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){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header .month-item-name{margin-right:4px}:host(.regular) .month-item-header vega-dropdown .month-item-name{margin-right:16px}:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:8px;padding-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}:host(.regular) .month-item .current-month-year{margin-bottom:12px}:host(.regular) .calendar .container__main{max-width:450px;max-height:450px}:host(.regular) .calendar .container__months .month-item-header{margin-bottom:12px}:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item .day-content{width:24px;height:24px}:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.regular.dual-months) .calendar .container__main{width:100%;max-width:900px;max-height:450px}:host(.large){--vega-litepicker-day-width:56px;--vega-litepicker-day-height:56px;--vega-date-picker-calendar-range-space-size:40px}:host(.large) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header{gap:16px;margin-bottom:24px}:host(.large) .month-item-header .button-today{height:16px}:host(.large) .month-item-header .button-today.with-label{height:24px}:host(.large) .month-item-header .month-item-name{margin-right:4px}:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header vega-dropdown .month-item-name{margin-right:24px}:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{border-radius:8px;padding-left:12px;padding-right:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;padding-top:7px;padding-bottom:7px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{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(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{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(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.large) .month-item .current-month-year{margin-bottom:16px}:host(.large) .calendar .container__main{max-width:600px;max-height:600px}:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;margin-bottom:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .day-content{width:36px;height:36px}:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days vega-tooltip .day-item .day-content:after{width:6px;height:6px;bottom:-4px;left:calc(50% - 3px)}:host(.regular) .container__days .day-item.is-today .day-content,:host(.large) .container__days .day-item.is-today .day-content{border:1px solid rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.regular) .container__days .day-item.is-today.is-start-date .day-content,:host(.regular) .container__days .day-item.is-today.is-end-date .day-content,:host(.regular) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content,:host(.large) .container__days .day-item.is-today.is-start-date .day-content,:host(.large) .container__days .day-item.is-today.is-end-date .day-content,:host(.large) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content{border-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.large.dual-months) .calendar .container__main{width:100%;max-width:1200px;max-height:600px}.calendar .container__main{display:flex;flex-direction:column}.calendar .container__months{display:flex}:host(.dual-months) .calendar .container__months{width:100%;flex-direction:row}:host(.dual-months) .calendar .container__months .month-item:first-of-type{padding-right:var(--vega-date-picker-calendar-range-space-size)}:host(.dual-months) .calendar .container__months .month-item:last-of-type{padding-left:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months .month-item{box-sizing:content-box;position:relative;width:100%;height:100%;z-index:1;display:flex;flex-direction:column}.calendar .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:"";display:block}.calendar .container__months .month-item-weekdays-row{color:rgba(var(--v-text-primary, 32, 54, 69, 1));place-items:center}.calendar .aria-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.calendar .container__days{text-align:center;place-items:center;flex:1 1 auto}.calendar.static-height .container__days{align-content:flex-start}.calendar:not(.static-height) .container__days{flex:none}.calendar .container__months .month-item-weekdays-row>div,.calendar .container__days>div,.calendar .container__days>vega-tooltip>div,.calendar .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:100%;min-width:var(--vega-litepicker-day-width)}.calendar .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:center;border-radius:9999px;cursor:default}.calendar .container__days .day-item .day-content{display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box}.calendar .container__days .day-item:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.calendar .container__days .day-item:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));border-width:0px;outline:none}.calendar .container__days .day-item:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days .day-item.is-locked,.calendar .container__days .day-item.is-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));-webkit-tap-highlight-color:transparent;cursor:not-allowed}.calendar .container__days .day-item.is-locked:hover,.calendar .container__days .day-item.is-disabled:hover{border-width:0px}.calendar .container__days .day-item.is-locked:active,.calendar .container__days .day-item.is-disabled:active{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:none}.calendar .container__days .day-item.is-disabled{text-decoration:line-through}.calendar .container__days .day-item.is-start-date,.calendar .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));position:relative;border-width:0px}.calendar .container__days .day-item.is-start-date:hover,.calendar .container__days .day-item.is-end-date:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar .container__days .day-item.is-start-date:active,.calendar .container__days .day-item.is-end-date:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar .container__days .day-item.is-start-date:focus-visible,.calendar .container__days .day-item.is-end-date:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1))}.calendar .container__days .day-item.is-start-date.is-disabled,.calendar .container__days .day-item.is-start-date.is-locked,.calendar .container__days .day-item.is-end-date.is-disabled,.calendar .container__days .day-item.is-end-date.is-locked{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}.calendar .container__days .day-item.is-start-date.is-end-date:after{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.calendar .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))}.calendar .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))}.calendar .container__days .day-item.is-in-range{border-radius:0px;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1));border-width:0px}.calendar .container__days .day-item.is-in-range:hover{position:relative}.calendar .container__days .day-item.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:" "}.calendar .container__days .day-item.is-in-range:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days vega-tooltip{width:100%}.calendar .container__days vega-tooltip .day-item .day-content{position:relative}.calendar .container__days vega-tooltip .day-item .day-content:after{position:absolute;border-radius:9999px;content:" ";background-color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar .container__days vega-tooltip .day-item.is-start-date .day-content:after,.calendar .container__days vega-tooltip .day-item.is-end-date .day-content:after,.calendar .container__days vega-tooltip .day-item:active:not(.is-locked):not(.is-disabled) .day-content:after{background-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-date-picker-calendar-day-height)}.calendar .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){.calendar .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){.calendar .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){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.calendar .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.calendar{left:initial !important;top:initial !important;position:initial !important}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.calendar .container__days>div:not(.day-item){-webkit-tap-highlight-color:transparent}';export{Ve as vega_date_picker,st as vega_date_picker_calendar}
|
|
1
|
+
import{h as e,H as t,F as i,r as a,c as n,g as r}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{D as s}from"./p-b9947846.js";import{a0 as d,P as h,a1 as l,a2 as c,a3 as m,a4 as p,a5 as g,a6 as f}from"./p-b9386dd0.js";import{I as x}from"./p-abd7aeaa.js";import{c as v,V as u,L as w,M as y,I as b}from"./p-6e1ab235.js";import{V as _,I as C}from"./p-4415ad28.js";import{F as D}from"./p-42141782.js";import{a as k,e as I,g as z,D as R}from"./p-6e70d3cc.js";import{D as j,d as S}from"./p-f28a6074.js";import{a as M,s as O,r as P,q as E,P as V,f as L,h as A,V as $,t as T,u as Y}from"./p-c5eb0fa6.js";import{V as F}from"./p-e1fbfd20.js";import{c as H}from"./p-86194314.js";import{i as B}from"./p-d27ae9ff.js";import{V as N}from"./p-d5531d3c.js";import{F as W}from"./p-18e8d9b7.js";import{t as K}from"./p-b75ee3ba.js";import{g as U}from"./p-8b5d3a52.js";import{F as Z}from"./p-a528714c.js";import{C as G}from"./p-2d0d575f.js";import{S as q}from"./p-103d20f5.js";import{S as J}from"./p-02467b61.js";import{K as X}from"./p-9751c801.js";import{C as Q}from"./p-75b58efe.js";import{c as ee}from"./p-44044ed7.js";import{C as te}from"./p-edda10f7.js";import{T as ie}from"./p-6572e038.js";import{c as ae}from"./p-6a334573.js";import{E as ne}from"./p-b9728ca8.js";import{S as re}from"./p-1fb56e14.js";import{C as oe}from"./p-8187878e.js";import{A as se}from"./p-0caf52e0.js";import{z as de,A as he}from"./p-aa985d73.js";import{O as le}from"./p-331a62d5.js";import{M as ce}from"./p-a07c0f8c.js";import"./p-ed45b3b6.js";import"./p-d4ea8e22.js";import"./p-d884c644.js";import"./p-02841589.js";import"./p-f0e828d8.js";import"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-78a57a17.js";import"./p-52b8f2d2.js";import"./p-a0c3968b.js";import"./p-e6adf829.js";import"./p-593e0f80.js";import"./p-262ec334.js";import"./p-5a25014f.js";import"./p-ab829745.js";import"./p-38af89b9.js";import"./p-085de8fc.js";import"./p-6e9f832f.js";import"./p-5f377954.js";import"./p-781fd6e0.js";import"./p-fc7ab79d.js";import"./p-0c667d6a.js";class me extends x{canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);const t=new Date(e[0]),i=new Date(e[1]),a=d(t,i);return{isValid:a,message:a?"":"The end date should be later than start date"}}isAcceptedInputType(e){return Array.isArray(e)&&2===e.length&&e.every(h)}}class pe extends x{constructor(e){super(),this.evaluateSingleDate=e=>{const t=new Date(e);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.evaluateRangeDates=e=>{const t=new Date(e[0]),i=new Date(e[1]);return this.minDate&&l(t,this.minDate)?this.invalidResult({key:"The start date should be later than {0}",args:[this.config.minDate]}):this.maxDate&&c(t,this.maxDate)?this.invalidResult({key:"The start date should be earlier than {0}",args:[this.config.maxDate]}):i&&this.maxDate&&c(i,this.maxDate)?this.invalidResult({key:"The end date should be earlier than {0}",args:[this.config.maxDate]}):this.validResult()},this.invalidResult=e=>({isValid:!1,message:e}),this.validResult=()=>({isValid:!0,message:""}),this.config=e,this.minDate=e.minDate?new Date(e.minDate):null,this.maxDate=e.maxDate?new Date(e.maxDate):null}canEvaluate(e,t){return t?this.isAcceptedInputType(e)&&!t.disabled&&t.visible:this.isAcceptedInputType(e)}evaluate(e){if(!this.isAcceptedInputType(e))throw new Error(`Unexpected type of input: ${typeof e}: ${e}`);return"string"==typeof e?this.evaluateSingleDate(e):this.evaluateRangeDates(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(e){return"string"==typeof e&&h(e)||Array.isArray(e)&&2===e.length&&e.every(h)}}const ge={"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 448 512" fill="currentColor">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M199 401c9.4 9.4 24.6 9.4 33.9 0L425 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L41 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L199 401z"/></svg>'},"bulls-eye":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path d="M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM256 368a112 112 0 1 0 0-224 112 112 0 1 0 0 224zm0-272a160 160 0 1 1 0 320 160 160 0 1 1 0-320zm0 176a16 16 0 1 0 0-32 16 16 0 1 0 0 32zm0-80a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"/></svg>'}};var fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class xe extends u{constructor(){super(...arguments),this.renderInputPrefix=()=>e("div",{class:"vega-input-prefix","aria-hidden":"true"},e("vega-icon",{icon:F.getIconKey("calendar"),color:"text-secondary",onClick:async()=>{this.disabled||(await this.focusInput(),await this.vegaDatePickerCalendarRenderer.triggerRepick("start"))}})),this.isInputEnabled=()=>!this.readOnly&&!this.isMobileDevice,this.renderLabel=()=>this.label&&e("vega-field-label",{ref:e=>{j.addUniqueObserverToNode(e,M,(async()=>{await this.focusInput()}))},isFieldRequired:this.required,disabled:this.disabled,label:this.label}),this.focusInput=async()=>{var e,t;null===(e=this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef())||void 0===e||e.focus(),null===(t=this.vegaDatePickerRangeInputRenderer.getStartDateInputRef())||void 0===t||t.focus(),await this.calendarOpenStateController.showCalendar()}}getDatePickerContainer(){return this.datePickerContainer}render(){const i=["vega-input-container",this.size,`${this.mode}-mode`,this.isMobileDevice?"mobile":""];return e(t,{class:{disabled:this.disabled}},this.renderLabel(),e("div",{class:k(i),ref:e=>this.datePickerContainer=e},"range"===this.mode?this.vegaDatePickerRangeInputRenderer.render():this.vegaDatePickerSingleInputRenderer.render()),this.vegaDatePickerCalendarRenderer.render())}}F.register({calendar:ge.calendar}),fe([v()],xe.prototype,"disabled",void 0),fe([v()],xe.prototype,"size",void 0),fe([v()],xe.prototype,"mode",void 0),fe([v()],xe.prototype,"label",void 0),fe([v()],xe.prototype,"required",void 0),fe([v()],xe.prototype,"readOnly",void 0),fe([v()],xe.prototype,"autoValidation",void 0),fe([v()],xe.prototype,"host",void 0),fe([v()],xe.prototype,"isMobileDevice",void 0),fe([v()],xe.prototype,"vegaDatePickerSingleInputRenderer",void 0),fe([v()],xe.prototype,"vegaDatePickerRangeInputRenderer",void 0),fe([v()],xe.prototype,"vegaDatePickerCalendarRenderer",void 0),fe([v()],xe.prototype,"calendarOpenStateController",void 0);var ve=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ue extends u{constructor(){super(...arguments),this.onClickClearIcon=async()=>{this.vegaDatePickerValueController.setValue("range"===this.mode?["",""]:""),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar(),this.focusInput()},this.isClearIconVisible=()=>{if("range"===this.mode){const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&!B(e,["",""])}{const e=this.vegaDatePickerValueController.getValue();return!this.disabled&&Boolean(e.length)}}}renderClearIcon(){return e(i,null,this.showClearIcon&&this.isClearIconVisible()&&e("div",{class:"vega-input-clear-icon",tabIndex:-1,"aria-label":"clear input",role:"button",onClick:this.onClickClearIcon,onKeyDown:H()},e("vega-icon",{icon:"close"})))}}ve([v()],ue.prototype,"disabled",void 0),ve([v()],ue.prototype,"showClearIcon",void 0),ve([v()],ue.prototype,"mode",void 0),ve([v()],ue.prototype,"isCalendarShow",void 0),ve([v()],ue.prototype,"vegaDatePickerValueController",void 0),ve([v()],ue.prototype,"calendarOpenStateController",void 0);var we=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class ye extends ue{constructor(){super(...arguments),this.render=()=>e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getSinglePlaceholder(),value:this.vegaDatePickerValueController.getValue(),ref:e=>this.singleDateInputRef=e,onChange:this.onSingleDateChange,disabled:this.disabled,role:"combobox","aria-label":this.label?`${this.label}, ${this.translationSlimmer.t("date picker")}`:this.translationSlimmer.t("date picker"),"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:()=>this.calendarOpenStateController.showCalendar()}),this.renderClearIcon()),this.getSinglePlaceholder=()=>this.placeholder?"string"!=typeof this.placeholder?(w.warn("The placeholder should be a string"),this.format):this.placeholder:this.format,this.onSingleDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue(this.vegaDatePickerFormatController.formatDate(t)):(this.vegaDatePickerValueController.setValue(""),this.singleDateInputRef.value="",w.warn("The date value of ${date} is invalid"))}}getSingleDateInputRef(){return this.singleDateInputRef}focusInput(){this.singleDateInputRef.focus()}}we([v()],ye.prototype,"placeholder",void 0),we([v()],ye.prototype,"format",void 0),we([v()],ye.prototype,"label",void 0),we([v()],ye.prototype,"isCalendarShow",void 0),we([v()],ye.prototype,"vegaDatePickerFormatController",void 0),we([v()],ye.prototype,"vegaDatePickerRenderer",void 0),we([v()],ye.prototype,"calendarOpenStateController",void 0),we([v()],ye.prototype,"vegaDatePickerCalendarRenderer",void 0),we([v()],ye.prototype,"translationSlimmer",void 0);var be=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class _e extends ue{constructor(){super(...arguments),this.render=()=>{const t=this.label?`, ${this.label}`:"",a=`, ${this.translationSlimmer.t("date picker")}`,n=`${this.translationSlimmer.t("Start Date")}${t}${a}`,r=`${this.translationSlimmer.t("End Date")}${t}${a}`;return e(i,null,e("div",{class:"date-picker-input"},this.vegaDatePickerRenderer.renderInputPrefix(),e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[0],value:this.vegaDatePickerValueController.getValue()[0],ref:e=>this.startDateInputRef=e,onChange:this.onStartDateChange,disabled:this.disabled,role:"combobox","aria-label":n,"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:async()=>await this.onInputClicked("start")})),e("span",{class:{"range-input-divider":!0}}),e("div",{class:"date-picker-input"},e("input",{readOnly:!this.vegaDatePickerRenderer.isInputEnabled(),placeholder:this.getRangePlaceholder()[1],value:this.vegaDatePickerValueController.getValue()[1],ref:e=>this.endDateInputRef=e,onChange:this.onEndDateChange,disabled:this.disabled,role:"combobox","aria-label":r,"aria-haspopup":"dialog","aria-expanded":`${this.isCalendarShow}`,"aria-controls":this.vegaDatePickerCalendarRenderer.getCalendarId(),onClick:async()=>await this.onInputClicked("end")}),this.renderClearIcon()))},this.getRangePlaceholder=()=>this.placeholder?Array.isArray(this.placeholder)&&2===this.placeholder.length?this.placeholder:(w.warn("The placeholder should be an array, including start and end placeholder"),["Start Date","End Date"].map((e=>this.translationSlimmer.t(e)))):["Start Date","End Date"].map((e=>this.translationSlimmer.t(e))),this.onStartDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerFormatController.formatDate(t),this.vegaDatePickerValueController.getValue()[1]]):(this.vegaDatePickerValueController.setValue(["",this.vegaDatePickerValueController.getValue()[1]]),this.startDateInputRef.value="",w.warn("The date value of ${date} is invalid"))},this.onEndDateChange=e=>{const t=e.currentTarget.value;m.fromString(t,this.format)?this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],this.vegaDatePickerFormatController.formatDate(t)]):(this.vegaDatePickerValueController.setValue([this.vegaDatePickerValueController.getValue()[0],""]),this.endDateInputRef.value="",w.warn("The date value of ${date} is invalid"))}}getStartDateInputRef(){return this.startDateInputRef}getEndDateInputRef(){return this.endDateInputRef}focusInput(){this.startDateInputRef.focus()}async onInputClicked(e){await this.calendarOpenStateController.showCalendar(),await this.vegaDatePickerCalendarRenderer.triggerRepick(e)}}be([v()],_e.prototype,"placeholder",void 0),be([v()],_e.prototype,"label",void 0),be([v()],_e.prototype,"isCalendarShow",void 0),be([v()],_e.prototype,"vegaDatePickerFormatController",void 0),be([v()],_e.prototype,"vegaDatePickerRenderer",void 0),be([v()],_e.prototype,"calendarOpenStateController",void 0),be([v()],_e.prototype,"translationSlimmer",void 0),be([v()],_e.prototype,"allowRepick",void 0),be([v()],_e.prototype,"format",void 0),be([v()],_e.prototype,"vegaDatePickerCalendarRenderer",void 0);var Ce=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class De extends u{constructor(){super(...arguments),this.calendarId=U()}componentDidLoad(){this.appendCalendarToBodyIfMobile()}getCalendarContentBoxRef(){return this.calendarContentBoxRef}getCalendarRef(){return this.calendarRef}getCalendarId(){return this.calendarId}getMobileModalRef(){return this.mobileModalRef}async triggerRepick(e){this.allowRepick&&"range"===this.mode&&await this.calendarRef.triggerRepick(e)}render(){return this.isMobileDevice?this.mobileRender():this.renderCalendar()}mobileRender(){return e("vega-modal",{showCloseButton:!1,size:De.calendarModalSize,padding:"0",isVerticallyCentered:!0,backdropColor:"semi",ref:e=>{this.mobileModalRef=e,this.addModalObserver(e)}},e("div",{slot:"modal-content"},this.renderCalendar()))}renderCalendar(){const t=this.label?`${this.label}, `:"",i=`${this.translationSlimmer.t("date picker")}`;return e("vega-box",Object.assign({},this.isMobileDevice?{}:{role:"dialog","aria-modal":"true","aria-label":`${t}${i}`},{id:this.calendarId,padding:{default:"size-12",S:"size-32"},corners:"rounded-12",backgroundColor:"bg-primary",shadow:"shadow-dropdown-menu",border:"border-input-field",ref:e=>{this.calendarContentBoxRef=e},class:"date-picker-content-box"}),e("vega-box",{width:this.getDefaultCalendarDimension("width"),height:this.getDefaultCalendarDimension("height")},e("vega-date-picker-calendar",{selection:this.value,mode:this.mode,minDate:this.minDate,maxDate:this.maxDate,clearButton:this.clearButton,format:this.format,staticHeight:!1!==this.dropdownConfig.staticHeight,showYearMonthDropdowns:this.showYearMonthDropdowns,timezone:this.timezone,yearMonthDropdownProps:{isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")},ref:e=>{this.calendarRef=e,this.addCalendarObserver(e)},isDateDisabled:e=>this.isDateDisabled(e)})))}addCalendarObserver(e){j.addUniqueObserverToNode(e,O,(async e=>{await this.onCalendarSelected(e.detail)})),j.addUniqueObserverToNode(e,P,(async()=>{await this.calendarOpenStateController.hideCalendar()})),j.addUniqueObserverToNode(e,E,(async e=>{this.monthYearChangeEventEmitter.emit(e.detail)}))}addModalObserver(e){j.addUniqueObserverToNode(e,V,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!0)})),j.addUniqueObserverToNode(e,L,(()=>{this.calendarOpenStateController.updateIsCalendarShowState(!1)}))}async onCalendarSelected(e){("single"===this.mode||"range"===this.mode)&&this.vegaDatePickerValueController.setValue(e),this.isCalendarShow&&await this.calendarOpenStateController.hideCalendar()}appendCalendarToBodyIfMobile(){const e=K();this.isMobileDevice&&e&&e.body.append(this.mobileModalRef)}getDefaultCalendarDimension(e){if("height"===e&&!1===this.dropdownConfig.staticHeight)return"auto";let t=("range"!==this.mode||this.isMobileDevice?De.regularDatePickerCalendarDimensionsForSingle:De.regularDatePickerCalendarDimensionsForRange)[e];return"height"===e&&this.clearButton&&(t+=40),`${t}px`}}De.calendarModalSize=344,De.regularDatePickerCalendarDimensionsForSingle={width:280,height:320},De.regularDatePickerCalendarDimensionsForRange={width:608,height:358},Ce([v()],De.prototype,"format",void 0),Ce([v()],De.prototype,"value",void 0),Ce([v()],De.prototype,"mode",void 0),Ce([v()],De.prototype,"minDate",void 0),Ce([v()],De.prototype,"maxDate",void 0),Ce([v()],De.prototype,"clearButton",void 0),Ce([v()],De.prototype,"dropdownConfig",void 0),Ce([v()],De.prototype,"showYearMonthDropdowns",void 0),Ce([v()],De.prototype,"timezone",void 0),Ce([v()],De.prototype,"isMobileDevice",void 0),Ce([v()],De.prototype,"isCalendarShow",void 0),Ce([v()],De.prototype,"isDateDisabled",void 0),Ce([v()],De.prototype,"allowRepick",void 0),Ce([v()],De.prototype,"disabled",void 0),Ce([v()],De.prototype,"label",void 0),Ce([v()],De.prototype,"monthYearChangeEventEmitter",void 0),Ce([v()],De.prototype,"translationSlimmer",void 0),Ce([v()],De.prototype,"vegaDatePickerValueController",void 0),Ce([v()],De.prototype,"calendarOpenStateController",void 0),Ce([y("componentDidLoad")],De.prototype,"componentDidLoad",null);var ke=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ie extends u{componentWillLoad(){this.value&&this.valueGuard(this.value)||this.setDefaultValueByMode()}watchValue(e,t){"range"===this.mode&&B(e,t)||(this.valueGuard(e)||this.setDefaultValueByMode(),this.changeEventEmitter.emit(this.value),G.notify(Z,{host:this.host,detail:this.value}))}watchMode(){this.setDefaultValueByMode()}getValue(){return this.valueGuard(this.value),this.value}setValue(e){this.valueGuard(e)&&(this.value=e)}setDefaultValueByMode(){"range"===this.mode&&this.setValue(["",""]),"single"===this.mode&&this.setValue("")}valueGuard(e){let t;switch(this.mode){case"single":t=e&&"string"==typeof e&&!!m.fromString(e,this.format)||""===e;break;case"range":t=Array.isArray(e)&&2===e.length&&e.every((e=>!!m.fromString(e,this.format)||""===e))}return t||w.warn(`Invalid date picker value ${e} for ${this.mode} mode`),t}}ke([v({writable:!0})],Ie.prototype,"value",void 0),ke([v()],Ie.prototype,"mode",void 0),ke([v()],Ie.prototype,"format",void 0),ke([v()],Ie.prototype,"changeEventEmitter",void 0),ke([v()],Ie.prototype,"host",void 0),ke([v()],Ie.prototype,"isCalendarShow",void 0),ke([v()],Ie.prototype,"vegaDatePickerCalendarRenderer",void 0),ke([v()],Ie.prototype,"calendarOpenStateController",void 0),ke([y("componentWillLoad")],Ie.prototype,"componentWillLoad",null),ke([y("watchValue")],Ie.prototype,"watchValue",null),ke([y("watchMode")],Ie.prototype,"watchMode",null);var ze=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Re extends J{constructor(e){super(),this.formatDate=e=>m.fromString(e,this.format).toString(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=e=>{const t=e.match(/M/gi);return new q({mask:e.replace(/[MDY]/gi,"9"),slot:"9",accept:(t&&t.length)>2?/\w/g:/\d/g})},this.inputType=e}componentDidLoad(){this.setupStringFormatter(this.format)}watchFormat(e){this.setupStringFormatter(e)}setupStringFormatter(e){this.datePickerFormatStrategy=this.getDateFormatMask(e),this.setup()}}ze([v()],Re.prototype,"format",void 0),ze([v()],Re.prototype,"mode",void 0),ze([v()],Re.prototype,"vegaDatePickerCalendarRenderer",void 0),ze([v()],Re.prototype,"vegaDatePickerSingleInputRenderer",void 0),ze([v()],Re.prototype,"vegaDatePickerRangeInputRenderer",void 0),ze([y("componentDidLoad")],Re.prototype,"componentDidLoad",null),ze([y("watchFormat")],Re.prototype,"watchFormat",null);var je=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Se extends X{constructor(){super((e=>[{keyCode:"Enter",activeElementInScope:()=>[e.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),e.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),e.vegaDatePickerRangeInputRenderer.getEndDateInputRef(),e.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()],eventName:"keydown",callback:e=>{var t;const i=(null===(t=e.target.shadowRoot)||void 0===t?void 0:t.activeElement)||e.target;return null==i?void 0:i.click()}}]))}}je([v()],Se.prototype,"vegaDatePickerCalendarRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerSingleInputRenderer",void 0),je([v()],Se.prototype,"vegaDatePickerRangeInputRenderer",void 0);const Me=[{payloadKey:"AUTO_VALIDATION_IS_TRUE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!0===e.autoValidation},{payloadKey:"AUTO_VALIDATION_IS_FALSE",payloadDescription:"Determines whether automatic validation should be implemented when a date or range is selected",payloadValue:e=>!1===e.autoValidation},{payloadKey:"MODE_IS_SINGLE",payloadDescription:"Specifies the selection mode of the date picker. Use `single` to allow selecting a single date",payloadValue:e=>"single"===e.mode},{payloadKey:"MODE_IS_RANGE",payloadDescription:"Specifies the selection mode of the date picker. Use `range` to allow selecting a date range",payloadValue:e=>"range"===e.mode}];var Oe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Pe extends ne{constructor(){super((()=>({target:this.vegaDatePickerRenderer.getDatePickerContainer(),appendableElement:this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef(),positionRelativeTo:this.dropdownConfig.positionRelativeTo,translocation:{X:0,Y:8},placement:["bottom","top"],alignment:["start","end"],isScreenPosition:W.isEnabled("VEGA_DATE_PICKER.ENABLE_CALCULATION_POSITION_BY_SCREEN")})),(()=>new oe),"isCalendarShow"),this.ariaDialogFocusableTrapSlimmer=ae(Pe,se,[],[{mapFrom:"show",mapTo:"show"}],[{triggerEl:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),dialogEl:()=>this.vegaDatePickerCalendarRenderer.getCalendarContentBoxRef()}]),this.clearCalendarStateTaskQueue=new re}connectedCallback(){this.isMobileDevice||super.connectedCallback()}disconnectedCallback(){this.isMobileDevice||super.disconnectedCallback()}componentDidLoad(){this.isMobileDevice||super.componentDidLoad()}async componentDidRender(){await this.clearCalendarStateTaskQueue.runTask()}async doOpen(){await this.showCalendar()}async doClose(){await this.hideCalendar()}async watchDisabled(){await this.hideCalendar()}async watchIsCalendarShow(){await this.clearCalendarSelectingState()}async showCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("show"):this.show()}async hideCalendar(){this.isMobileDevice?await this.vegaDatePickerCalendarRenderer.getMobileModalRef().modal("hide"):this.hide(),this.focusContainerWithAnnouncement()}updateIsCalendarShowState(e){this.isCalendarShow=e}focusContainerWithAnnouncement(){const e=I();if((null==e?void 0:e.matches)&&e.matches(":focus-visible")){const e=this.vegaDatePickerRenderer.getDatePickerContainer();if(e){const t=this.buildAriaAnnouncement(this.value);e.setAttribute("role","group"),e.setAttribute("aria-label",t),e.setAttribute("tabindex","-1"),e.addEventListener("blur",(()=>{e.removeAttribute("role"),e.removeAttribute("aria-label"),e.removeAttribute("tabindex")}),{once:!0}),setTimeout((()=>e.focus()),0)}}}buildAriaAnnouncement(e){let t=null,i=null;return"single"===this.mode&&"string"==typeof e?t=e?m.fromString(e,this.format):null:"range"===this.mode&&Array.isArray(e)&&(t=e[0]?m.fromString(e[0],this.format):null,i=e[1]?m.fromString(e[1],this.format):null),`\n\t\t\t${p({startDate:t,endDate:i,mode:this.mode})},\n\t\t\t${N.t("date picker")}\n\t\t`}async clearCalendarSelectingState(){if(!this.isCalendarShow){const e=this.vegaDatePickerCalendarRenderer.getCalendarRef();await this.clearCalendarStateTaskQueue.enqueue({run:async()=>await e.reset()},!1)}}}Oe([v()],Pe.prototype,"dropdownConfig",void 0),Oe([v()],Pe.prototype,"vegaDatePickerRenderer",void 0),Oe([v()],Pe.prototype,"vegaDatePickerCalendarRenderer",void 0),Oe([v()],Pe.prototype,"value",void 0),Oe([v()],Pe.prototype,"format",void 0),Oe([v()],Pe.prototype,"mode",void 0),Oe([v({writable:!0})],Pe.prototype,"isCalendarShow",void 0),Oe([v()],Pe.prototype,"isMobileDevice",void 0),Oe([b()],Pe.prototype,"ariaDialogFocusableTrapSlimmer",void 0),Oe([y("componentDidRender")],Pe.prototype,"componentDidRender",null),Oe([y("doOpen")],Pe.prototype,"doOpen",null),Oe([y("doClose")],Pe.prototype,"doClose",null),Oe([y("watchDisabled")],Pe.prototype,"watchDisabled",null),Oe([y("watchIsCalendarShow")],Pe.prototype,"watchIsCalendarShow",null);var Ee=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const Ve=class{constructor(e){a(this,e),this.vegaChange=n(this,"vegaChange",7),this.change=n(this,"change",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.globalSlimmers={},this.translationSlimmer=new ie,this.calendarOpenStateController=new Pe,this.vegaDatePickerValueController=new Ie,this.vegaDatePickerFormatController=new Re("single"),this.startInputFormatController=new Re("rangeStart"),this.endInputFormatController=new Re("rangeEnd"),this.vegaDatePickerKeyboardController=new Se,this.vegaDatePickerRenderer=new xe,this.vegaDatePickerSingleInputRenderer=new ye,this.vegaDatePickerRangeInputRenderer=new _e,this.vegaDatePickerCalendarRenderer=new De,this.formFieldController=new D({propertyRules:[{propertyName:"required",ruleFactory:(e,t)=>e?new s({mode:t}):null,dependence:"mode"},{propertyName:"mode",ruleFactory:e=>"range"===e?new me:null},{propertyName:"minDate",ruleFactory:(e,t)=>new pe({minDate:e,maxDate:t}),dependence:"maxDate"},{propertyName:"maxDate",ruleFactory:(e,t)=>new pe({minDate:t,maxDate:e}),dependence:"minDate"}],validationRulesName:"validationRules",defaultValue:e=>"range"===e.mode?["",""]:"",attributeGetter:e=>this[e],inputContainerGetter:()=>this.vegaDatePickerRenderer.getDatePickerContainer(),touchableAreaGetter:()=>[this.vegaDatePickerSingleInputRenderer.getSingleDateInputRef(),this.vegaDatePickerRangeInputRenderer.getStartDateInputRef(),this.vegaDatePickerRangeInputRenderer.getEndDateInputRef()].filter(Boolean)}),this.changeEventEmitter=ee(Ve,A),this.monthYearChangeEventEmitter=ee(Ve,E),this.inputEventPrevent=new te([A,P,E],(()=>this.vegaDatePickerCalendarRenderer.getCalendarRef())),this.vegaComponentUsageRuntimeMetricsSlimmer=new _(Me),this.isMobileDevice=z()===R.MOBILE,this.isCalendarShow=!1,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}watchIsCalendarShow(){}watchMode(){}watchValue(e,t){}watchFormat(e){}watchValidationRules(){}watchMinDate(e){}watchMaxDate(e){}watchAllowRepick(){}watchShowYearMonthDropdowns(){}watchDisabled(){}async doClose(){}async doOpen(){}render(){return o(this.vegaDatePickerRenderer.render(),this.host)}get host(){return r(this)}static get watchers(){return{isCalendarShow:["watchIsCalendarShow"],mode:["watchMode"],value:["watchValue"],format:["watchFormat"],validationRules:["watchValidationRules"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],allowRepick:["watchAllowRepick"],showYearMonthDropdowns:["watchShowYearMonthDropdowns"],disabled:["watchDisabled"]}}};Ee([C()],Ve.prototype,"globalSlimmers",void 0),Ee([b()],Ve.prototype,"translationSlimmer",void 0),Ee([b()],Ve.prototype,"calendarOpenStateController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerValueController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerFormatController",void 0),Ee([b()],Ve.prototype,"startInputFormatController",void 0),Ee([b()],Ve.prototype,"endInputFormatController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerKeyboardController",void 0),Ee([b()],Ve.prototype,"vegaDatePickerRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerSingleInputRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerRangeInputRenderer",void 0),Ee([b()],Ve.prototype,"vegaDatePickerCalendarRenderer",void 0),Ee([b()],Ve.prototype,"formFieldController",void 0),Ee([b()],Ve.prototype,"changeEventEmitter",void 0),Ee([b()],Ve.prototype,"monthYearChangeEventEmitter",void 0),Ee([b()],Ve.prototype,"inputEventPrevent",void 0),Ee([b()],Ve.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ee([Q()],Ve.prototype,"watchValue",null),Ve.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))}';var Le=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ae extends u{render(){return e("div",{class:{calendar:!0,"static-height":this.staticHeight}},e("div",{class:"container__main"},this.headerRenderer.render(),this.renderContainer(),this.renderFooter()),e("div",{class:"aria-announcement","aria-live":"polite","aria-atomic":"true"},this.buildAnnouncement()))}renderContainer(){return e("div",{class:"container__months"},this.isDualMonths?this.renderRangeMonth():this.monthItemRenderer.render("start"))}renderRangeMonth(){return e(i,null,this.monthItemRenderer.render("start"),this.monthItemRenderer.render("end"))}renderFooter(){return this.clearButton&&e("div",{class:"footer-container"},e("vega-button-link",{ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.clearCalendar()}))},label:this.translationSlimmer.t("Clear")}))}clearCalendar(){this.clearEventEmitter.emit(),G.notify(S.getSubject(this.host,de),{})}buildAnnouncement(){const{startDate:e,endDate:t}=this.calendarSelection;return p({mode:this.mode,startDate:e,endDate:t})}}Le([v()],Ae.prototype,"host",void 0),Le([v()],Ae.prototype,"clearButton",void 0),Le([v()],Ae.prototype,"calendarSelection",void 0),Le([v()],Ae.prototype,"monthItemRenderer",void 0),Le([v()],Ae.prototype,"staticHeight",void 0),Le([v()],Ae.prototype,"translationSlimmer",void 0),Le([v()],Ae.prototype,"mode",void 0),Le([v()],Ae.prototype,"clearEventEmitter",void 0),Le([v()],Ae.prototype,"headerRenderer",void 0),Le([v()],Ae.prototype,"isDualMonths",void 0);const $e=["January","February","March","April","May","June","July","August","September","October","November","December"];var Te=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ye extends u{render(){return(!this.isDualMonths||this.showYearMonthDropdowns)&&e("vega-flex",{justifyContent:"center"},this.showYearMonthDropdowns?this.renderMonthDropdownSwitcher():this.renderCurrentMonth(),this.showYearMonthDropdowns?this.renderYearDropdownSwitcher():this.renderCurrentYear())}getMonthDropdownOptions(){const e=this.currentPeriod.current.year;return $e.map(((t,i)=>({key:`${i}`,label:this.translationSlimmer.t(t),disabled:this.isDisabledMonth(e,i+1)})))}isDisabledMonth(e,t){var i,a,n,r;const o=null===(i=this.minCalendarDate)||void 0===i?void 0:i.month,s=null===(a=this.minCalendarDate)||void 0===a?void 0:a.year,d=null===(n=this.maxCalendarDate)||void 0===n?void 0:n.month,h=null===(r=this.maxCalendarDate)||void 0===r?void 0:r.year;return e<s||e>h||e===s&&o>t||e===h&&d<t}getYearDropdownOptions(){var e,t,i,a;const n=(new Date).getFullYear(),r=(null===(e=this.minCalendarDate)||void 0===e?void 0:e.year)||Math.min((null===(t=this.maxCalendarDate)||void 0===t?void 0:t.year)||n,n)-Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR,o=(null===(i=this.maxCalendarDate)||void 0===i?void 0:i.year)||Math.max((null===(a=this.minCalendarDate)||void 0===a?void 0:a.year)||n,n)+Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR,s=[];for(let e=r;e<=o;e++)s.push({key:String(e),label:String(e)});return s}renderMonthDropdownSwitcher(){const{month:t}=this.currentPeriod.current,i=t-1;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getMonthDropdownOptions(),selectedSourceKey:i.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,$,(e=>{const t=parseInt(e.detail);this.setDateBasedOnSelectedMonth(t)}))}},this.renderCurrentMonth())}renderYearDropdownSwitcher(){const{year:t}=this.currentPeriod.current;return e("vega-dropdown",{trigger:"click",selectType:"single",source:this.getYearDropdownOptions(),selectedSourceKey:t.toString(),"max-height":"300",isScreenPosition:this.yearMonthDropdownProps.isScreenPosition,ref:e=>{this.onDropdownShowOrHide(e),j.addUniqueObserverToNode(e,$,(e=>{this.setDateBasedOnSelectedYear(parseInt(e.detail))}))}},this.renderCurrentYear())}onDropdownShowOrHide(e){j.addUniqueObserverToNode(e,T,(async()=>{e.classList.add("active")})),j.addUniqueObserverToNode(e,Y,(()=>{const t=e.closest(".calendar");if(t){const e=t.querySelector("vega-dropdown.active");e&&e.classList.remove("active")}}))}renderCurrentMonth(){const t=this.translationSlimmer.t(this.currentPeriod.current.getMonthName());return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-name",size:"small",label:t}):e("div",{class:"month-item-name",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?H():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderCurrentYear(){const t=this.currentPeriod.current.year.toString();return"small"===this.size&&this.showYearMonthDropdowns?e("vega-button-link",{class:"small-month-item-year",size:"small",label:t}):e("div",{class:"month-item-year",role:this.showYearMonthDropdowns?"button":void 0,tabIndex:this.showYearMonthDropdowns?0:void 0,"aria-label":this.showYearMonthDropdowns?t:void 0,onKeyDown:this.showYearMonthDropdowns?H():void 0},e("span",null,t),this.renderDropdownSwitchIcon())}renderDropdownSwitchIcon(){return this.showYearMonthDropdowns&&e("vega-icon",{icon:F.getIconKey("caret-down"),color:"text-link"})}setDateBasedOnSelectedMonth(e){const{year:t}=this.currentPeriod.current,i=new Date(t,e,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}setDateBasedOnSelectedYear(e){const{month:t}=this.currentPeriod.current,i=new Date(e,t-1,1),a=new g(m.from(i));this.currentPeriodController.updateCalendarPeriod(a)}}F.register({"caret-down":ge["caret-down"]}),Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_BEFORE_CURRENT_YEAR=10,Ye.DEFAULT_MINIMUM_DROPDOWN_YEAR_AFTER_CURRENT_YEAR=10,Te([v()],Ye.prototype,"currentPeriodController",void 0),Te([v()],Ye.prototype,"showYearMonthDropdowns",void 0),Te([v()],Ye.prototype,"translationSlimmer",void 0),Te([v()],Ye.prototype,"minCalendarDate",void 0),Te([v()],Ye.prototype,"maxCalendarDate",void 0),Te([v()],Ye.prototype,"yearMonthDropdownProps",void 0),Te([v()],Ye.prototype,"currentPeriod",void 0),Te([v()],Ye.prototype,"size",void 0),Te([v()],Ye.prototype,"mode",void 0),Te([v()],Ye.prototype,"isDualMonths",void 0);var Fe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class He extends u{connectedCallback(){this.initCalendarClearObserver()}disconnectedCallback(){this.removeCalendarClearObserver()}initCalendarClearObserver(){this.calendarClearObserver=new le(this.canAcceptClearEvent.bind(this),this.clear.bind(this)),G.register(S.getSubject(this.host,de),this.calendarClearObserver)}removeCalendarClearObserver(){G.unregister(S.getSubject(this.host,de),this.calendarClearObserver)}canAcceptClearEvent(){return!0}}Fe([v()],He.prototype,"host",void 0),Fe([y("connectedCallback")],He.prototype,"connectedCallback",null),Fe([y("disconnectedCallback")],He.prototype,"disconnectedCallback",null);var Be=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ne extends He{connectedCallback(){super.connectedCallback(),this.initCalendarPeriodUpdateObserver()}disconnectedCallback(){super.disconnectedCallback(),this.removeCalendarPeriodUpdateObserver()}componentWillLoad(){this.setCurrentMonthPeriod()}watchMaxCalendarDate(){this.setCurrentMonthPeriod()}watchMinCalendarDate(){this.setCurrentMonthPeriod()}watchCurrentPeriod(){this.monthYearChangeEventEmitter.emit(this.getCurrentYearMonthByPeriod())}resetCurrentPeriod(){this.setCurrentMonthPeriod()}clear(){this.setCurrentMonthPeriod()}gotoNextPeriod(){const e=this.isDualMonths?this.currentPeriod.next().next():this.currentPeriod.next();this.updateCalendarPeriod(e)}gotoPreviousPeriod(){const e=this.isDualMonths?this.currentPeriod.previous().previous():this.currentPeriod.previous();this.updateCalendarPeriod(e)}updateCalendarPeriod(e){this.currentPeriod&&this.currentPeriod.equal(e)||(this.currentPeriod=e)}setCurrentMonthPeriod(){let e;const t=this.calendarSelection.startDate;e=f(t)?t:this.minCalendarDate&&(this.today.isBefore(this.minCalendarDate)||this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate))?this.minCalendarDate:this.maxCalendarDate&&this.today.isAfter(this.maxCalendarDate)?this.maxCalendarDate:this.today,this.updateCalendarPeriod(new g(e,!0,this.timezone))}getCurrentYearMonthByPeriod(){const e={month:$e[this.currentPeriod.current.month-1],year:`${this.currentPeriod.current.year}`};return"range"===this.mode?[e,{month:$e[this.currentPeriod.endDate.month-1],year:`${this.currentPeriod.endDate.year}`}]:e}initCalendarPeriodUpdateObserver(){j.addUniqueObserverToNode(this.host,he,this.setCurrentMonthPeriod.bind(this))}removeCalendarPeriodUpdateObserver(){j.removeUniqueObserverFromNode(this.host,he)}}Be([v({writable:!0})],Ne.prototype,"currentPeriod",void 0),Be([v()],Ne.prototype,"host",void 0),Be([v()],Ne.prototype,"today",void 0),Be([v()],Ne.prototype,"mode",void 0),Be([v()],Ne.prototype,"format",void 0),Be([v()],Ne.prototype,"timezone",void 0),Be([v()],Ne.prototype,"minCalendarDate",void 0),Be([v()],Ne.prototype,"maxCalendarDate",void 0),Be([v()],Ne.prototype,"isMobileDevice",void 0),Be([v()],Ne.prototype,"monthYearChangeEventEmitter",void 0),Be([v()],Ne.prototype,"calendarSelection",void 0),Be([v()],Ne.prototype,"isDualMonths",void 0),Be([y("connectedCallback")],Ne.prototype,"connectedCallback",null),Be([y("disconnectedCallback")],Ne.prototype,"disconnectedCallback",null),Be([y("componentWillLoad")],Ne.prototype,"componentWillLoad",null),Be([y("watchMaxCalendarDate")],Ne.prototype,"watchMaxCalendarDate",null),Be([y("watchMinCalendarDate")],Ne.prototype,"watchMinCalendarDate",null),Be([y("watchCurrentPeriod")],Ne.prototype,"watchCurrentPeriod",null),Be([y("reset")],Ne.prototype,"resetCurrentPeriod",null);var We=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ke extends u{connectedCallback(){this.setToday()}watchTimezone(){this.setToday()}setToday(){this.today=m.from(new Date,this.timezone)}}We([v()],Ke.prototype,"timezone",void 0),We([v({writable:!0})],Ke.prototype,"today",void 0),We([y("connectedCallback")],Ke.prototype,"connectedCallback",null),We([y("watchTimezone")],Ke.prototype,"watchTimezone",null);var Ue=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Ze extends u{constructor(){super(...arguments),this.monthViewGenerator=new ce}render(t){const i="end"===t?this.currentPeriod.next():this.currentPeriod,a=this.monthViewGenerator.generate(i);return e("div",{class:"month-item"},this.renderCurrentYearMonth(i),this.renderWeek(a),this.renderDays(a,i))}renderCurrentYearMonth(t){return this.isDualMonths&&e("vega-box",{class:"current-month-year"},this.translationSlimmer.t(t.current.getMonthName())," ",t.current.year)}renderWeek(t){return e("vega-grid",{class:"month-item-weekdays-row",column:"7-auto",row:1,"aria-hidden":"true"},t.weekdays.map((t=>e("div",{key:t},this.translationSlimmer.t(`${t}-short`)))))}renderDays(t,i){return e("vega-grid",{class:"container__days",column:"7-auto",row:this.staticHeight?6:"6-auto"},t.dateItems.flat().filter((e=>e.month<=i.current.month||e.year<i.current.year)).map((e=>this.renderItem(e,i))))}renderItem(e,t){const i=this.dateIndicator(e.toDate()),a=this.renderDay(e,t);return i&&i.text?this.renderDayWithIndicator(i,a):a}renderDayWithIndicator(t,i){return e("vega-tooltip",Object.assign({},t),i)}renderDay(t,i){const a=t.month===i.current.month,n=this.isBeforeMinDate(t)||this.isAfterMaxDate(t),r=this.getCurrentRangeDates(),o=this.isDateDisabled(t.toDate()),s=t.isAfter(r[0])&&t.isBefore(r[1]),d=a&&!n&&!o,h=this.translationSlimmer.t(`${t.getWeekDayShortName()}-full`);return e("div",{key:`${t.month}-${t.date}`,class:a&&{"day-item":!0,"is-today":t.equal(this.today),"is-start-date":t.equal(r[0]),"is-in-range":s,"is-end-date":t.equal(r[1]),"is-locked":n,"is-disabled":o},onClick:()=>d&&this.selectionController.onDayClick(t),onMouseEnter:()=>d&&this.selectionController.onDayHover(t),onKeyDown:H(),role:"menuitem","aria-label":`${t.getMonthName()} ${t.date} ${t.year} ${h}`,"aria-hidden":a?void 0:"true","aria-disabled":n||o?"true":void 0,tabIndex:d?0:-1},e("div",{class:"day-content","aria-hidden":"true"},a?t.date:""))}getCurrentRangeDates(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;return f(e)&&!t&&this.hoverDate?this.hoverDate.isBefore(e)?[this.hoverDate,e]:[e,this.hoverDate]:!f(e)&&t&&this.hoverDate?this.hoverDate.isBefore(t)?[this.hoverDate,t]:[t,this.hoverDate]:[e,t]}isBeforeMinDate(e){return this.minCalendarDate&&e.isBefore(this.minCalendarDate)}isAfterMaxDate(e){return this.maxCalendarDate&&e.isAfter(this.maxCalendarDate)}}Ue([v()],Ze.prototype,"currentPeriod",void 0),Ue([v()],Ze.prototype,"today",void 0),Ue([v()],Ze.prototype,"translationSlimmer",void 0),Ue([v()],Ze.prototype,"hoverDate",void 0),Ue([v()],Ze.prototype,"maxCalendarDate",void 0),Ue([v()],Ze.prototype,"minCalendarDate",void 0),Ue([v()],Ze.prototype,"selectionController",void 0),Ue([v()],Ze.prototype,"calendarSelection",void 0),Ue([v()],Ze.prototype,"staticHeight",void 0),Ue([v()],Ze.prototype,"mode",void 0),Ue([v()],Ze.prototype,"size",void 0),Ue([v()],Ze.prototype,"isDualMonths",void 0),Ue([v()],Ze.prototype,"isDateDisabled",void 0),Ue([v()],Ze.prototype,"dateIndicator",void 0);class Ge{constructor(e,t,i){if(this.startDate=e,this.endDate=t,this.mode=i,"range"===this.mode&&this.startDate&&this.endDate&&this.startDate.isAfter(this.endDate)){const e=this.startDate;this.startDate=this.endDate,this.endDate=e}}static fromSelection(e,t,i){let a=null,n=null;if(this.isValidSelection(e,t,i))if("single"===t&&"string"==typeof e){const t=m.fromString(e,i);a=t,n=t}else"range"===t&&Array.isArray(e)&&(a=m.fromString(e[0],i),n=m.fromString(e[1],i));return new Ge(a,n,t)}static isValidSelection(e,t,i){let a;switch(t){case"single":a=this.isValidDateString(e,i);break;case"range":a=Array.isArray(e)&&2===e.length&&e.every((e=>this.isValidDateString(e,i)))}return a||w.warn(`Invalid date picker calendar selection ${e} for ${t} mode`),a}static isValidDateString(e,t){return e&&"string"==typeof e&&!!m.fromString(e,t)||""===e}toSelection(e){var t,i,a;return"range"===this.mode?[(null===(t=this.startDate)||void 0===t?void 0:t.toString(e))||"",(null===(i=this.endDate)||void 0===i?void 0:i.toString(e))||""]:(null===(a=this.startDate)||void 0===a?void 0:a.toString(e))||""}equals(e){if(!e)return!1;const t=this.startDate&&e.startDate?this.startDate.equal(e.startDate):this.startDate===this.endDate,i=this.endDate&&e.endDate?this.endDate.equal(e.endDate):this.endDate===e.endDate;return t&&i}isCompleted(){return f(this.startDate)&&("range"!==this.mode||f(this.endDate))}isEmpty(){return!f(this.startDate)&&!f(this.endDate)}}var qe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Je extends He{componentWillLoad(){this.setCalendarSelectionBySelection(this.selection)}watchSelection(e){!this.isSameSelection(e,this.calendarSelection.toSelection(this.format))&&(this.setCalendarSelectionBySelection(e),this.notifyPeriodChange())}resetRange(){const e=!this.calendarSelection.isCompleted()&&!this.calendarSelection.isEmpty()&&!!this.previousCalendarSelection;this.setCalendarSelectionBySelection(e?this.previousCalendarSelection.toSelection(this.format):this.selection),this.hoverDate=null}watchCalendarSelection(){(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&this.setSelection(this.calendarSelection.toSelection(this.format))}clear(){this.setCalendarSelectionByRange(null,null),this.hoverDate=null}onDayClick(e){"single"===this.mode?this.setCalendarSelectionByRange(e,e):"range"===this.mode&&(this.calendarSelection.startDate&&!this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.startDate,e):!this.calendarSelection.startDate&&this.calendarSelection.endDate?this.setCalendarSelectionByRange(this.calendarSelection.endDate,e):this.setCalendarSelectionByRange(e,null),this.hoverDate=null)}onDayHover(e){const t=this.allowRepickController.getRepickType();t&&"range"===this.mode&&this.calendarSelection.isCompleted()&&("start"===t?this.setCalendarSelectionByRange(null,this.calendarSelection.endDate):this.setCalendarSelectionByRange(this.calendarSelection.startDate,null)),this.calendarSelection.isEmpty()||this.calendarSelection.isCompleted()||(this.hoverDate=e)}setCalendarSelectionBySelection(e){const t=Ge.fromSelection(e,this.mode,this.format);this.calendarSelection&&(this.calendarSelection.isCompleted()||this.calendarSelection.isEmpty())&&(this.previousCalendarSelection=this.calendarSelection),t.equals(this.calendarSelection)||(this.calendarSelection=t),this.setSelection(t.toSelection(this.format))}setCalendarSelectionByRange(e,t){this.calendarSelection=new Ge(e,t,this.mode)}setSelection(e){this.isSameSelection(e,this.selection)||(this.selection=e,this.vegaSelectionChangeEventEmitter.emit(this.selection))}isSameSelection(e,t){return"range"===this.mode&&Array.isArray(e)&&Array.isArray(t)?B(e,t):e===t}notifyPeriodChange(){G.notify(S.getSubject(this.host,he),{})}}qe([v()],Je.prototype,"host",void 0),qe([v()],Je.prototype,"mode",void 0),qe([v()],Je.prototype,"format",void 0),qe([v({writable:!0})],Je.prototype,"selection",void 0),qe([v({writable:!0})],Je.prototype,"calendarSelection",void 0),qe([v({writable:!0})],Je.prototype,"hoverDate",void 0),qe([v()],Je.prototype,"clearEventEmitter",void 0),qe([v()],Je.prototype,"vegaSelectionChangeEventEmitter",void 0),qe([v()],Je.prototype,"allowRepickController",void 0),qe([v()],Je.prototype,"translationSlimmer",void 0),qe([y("componentWillLoad")],Je.prototype,"componentWillLoad",null),qe([y("watchSelection")],Je.prototype,"watchSelection",null),qe([y("reset")],Je.prototype,"resetRange",null),qe([y("watchCalendarSelection")],Je.prototype,"watchCalendarSelection",null);var Xe=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class Qe extends u{componentWillLoad(){this.setMaxCalendarDate(),this.setMinCalendarDate()}watchMaxDate(){this.setMaxCalendarDate()}watchMinDate(){this.setMinCalendarDate()}setMaxCalendarDate(){this.maxCalendarDate=m.fromString(this.maxDate,this.format)}setMinCalendarDate(){this.minCalendarDate=m.fromString(this.minDate,this.format)}}Xe([v()],Qe.prototype,"maxDate",void 0),Xe([v()],Qe.prototype,"minDate",void 0),Xe([v()],Qe.prototype,"format",void 0),Xe([v({writable:!0})],Qe.prototype,"maxCalendarDate",void 0),Xe([v({writable:!0})],Qe.prototype,"minCalendarDate",void 0),Xe([y("componentWillLoad")],Qe.prototype,"componentWillLoad",null),Xe([y("watchMaxDate")],Qe.prototype,"watchMaxDate",null),Xe([y("watchMinDate")],Qe.prototype,"watchMinDate",null);var et=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class tt extends u{triggerRepick(e){this.repickType=e,"end"===e&&this.setEndDateAsCurrentMonthPeriod()}watchCalendarSelection(){this.calendarSelection.isCompleted()&&(this.repickType=null)}getRepickType(){return this.repickType}setEndDateAsCurrentMonthPeriod(){const e=this.calendarSelection.startDate,t=this.calendarSelection.endDate;if(t){const i=f(e)&&e.compare(t).inMonth?e:this.isMobileDevice?t:t.add(0,-1);this.currentPeriodController.updateCalendarPeriod(new g(i))}}}et([v()],tt.prototype,"calendarSelection",void 0),et([v()],tt.prototype,"isMobileDevice",void 0),et([v()],tt.prototype,"currentPeriodController",void 0),et([y("triggerRepick")],tt.prototype,"triggerRepick",null),et([y("watchCalendarSelection")],tt.prototype,"watchCalendarSelection",null);var it=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class at extends u{render(){return e("vega-flex",{class:"month-item-header",alignItems:"center"},this.renderSwitcher(),this.yearMonthSwitcherRender.render())}renderSwitcher(){return e("vega-flex",{gap:"size-8",alignItems:"center"},this.renderPrevIcon(),this.renderToday(),this.renderNextIcon())}renderPrevIcon(){const t=this.currentPeriod.current.firstDateOfMonth(),i=this.minCalendarDate&&(t.isBefore(this.minCalendarDate)||t.equal(this.minCalendarDate));return e("vega-button-circle",{class:{"button-previous-month":!0,disabled:i},variant:"icon-only",icon:F.getIconKey("chevron-left"),"data-aria-label":this.translationSlimmer.t("Previous month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoPreviousPeriod()}))},iconColor:i?"text-disabled":"text-link",size:this.getNavigationIconSize(),disabled:i})}renderNextIcon(){const t=(this.isDualMonths?this.currentPeriod.next():this.currentPeriod).current.lastDateOfMonth(),i=this.maxCalendarDate&&(t.isAfter(this.maxCalendarDate)||t.equal(this.maxCalendarDate));return e("vega-button-circle",{class:{"button-next-month":!0,disabled:i},variant:"icon-only",icon:F.getIconKey("chevron-right"),"data-aria-label":this.translationSlimmer.t("Next month"),ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.gotoNextPeriod()}))},size:this.getNavigationIconSize(),iconColor:i?"text-disabled":"text-link",disabled:i})}renderToday(){const t=this.isDualMonths&&"small"!==this.size;return e("vega-button-link",{class:{"button-today":!0,"with-label":t},"data-aria-label":this.translationSlimmer.t("Today"),label:t?this.translationSlimmer.t("Today"):"",ref:e=>{j.addUniqueObserverToNode(e,M,(()=>{this.currentPeriodController.updateCalendarPeriod(new g(this.today,!0,this.timezone))}))},size:"large"===this.size?"default":"small",icon:F.getIconKey("bulls-eye")})}getNavigationIconSize(){return"large"===this.size?"small":"extra-small"}}F.register({"chevron-left":ge["chevron-left"],"chevron-right":ge["chevron-right"],"bulls-eye":ge["bulls-eye"]}),it([v()],at.prototype,"currentPeriod",void 0),it([v()],at.prototype,"today",void 0),it([v()],at.prototype,"translationSlimmer",void 0),it([v()],at.prototype,"yearMonthSwitcherRender",void 0),it([v()],at.prototype,"currentPeriodController",void 0),it([v()],at.prototype,"maxCalendarDate",void 0),it([v()],at.prototype,"minCalendarDate",void 0),it([v()],at.prototype,"size",void 0),it([v()],at.prototype,"timezone",void 0),it([v()],at.prototype,"isDualMonths",void 0);var nt=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};class rt extends u{componentWillLoad(){this.setIsDualMonths()}watchMode(){this.setIsDualMonths()}watchDualMonths(){this.setIsDualMonths()}setIsDualMonths(){this.isDualMonths=!this.isMobileDevice&&("boolean"==typeof this.dualMonths?this.dualMonths:"range"===this.mode)}}nt([v()],rt.prototype,"mode",void 0),nt([v()],rt.prototype,"dualMonths",void 0),nt([v({writable:!0})],rt.prototype,"isDualMonths",void 0),nt([v()],rt.prototype,"isMobileDevice",void 0),nt([y("componentWillLoad")],rt.prototype,"componentWillLoad",null),nt([y("watchMode")],rt.prototype,"watchMode",null),nt([y("watchDualMonths")],rt.prototype,"watchDualMonths",null);var ot=function(e,t,i,a){var n,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(r<3?n(o):r>3?n(t,i,o):n(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const st=class{constructor(e){a(this,e),this.vegaClear=n(this,"vegaClear",7),this.clear=n(this,"clear",7),this.vegaMonthYearChange=n(this,"vegaMonthYearChange",7),this.monthYearChange=n(this,"monthYearChange",7),this.vegaSelectionChange=n(this,"vegaSelectionChange",7),this.selectionChange=n(this,"selectionChange",7),this.globalSlimmers={},this.renderer=new Ae,this.isDualMonthsController=new rt,this.monthItemRenderer=new Ze,this.headerRenderer=new at,this.translationSlimmer=new ie,this.todayController=new Ke,this.selectionController=new Je,this.minMaxDateController=new Qe,this.currentPeriodController=new Ne,this.yearMonthSwitcherRender=new Ye,this.allowRepickController=new tt,this.vegaComponentUsageRuntimeMetricsSlimmer=new _,this.clearEventEmitter=ee(st,P),this.monthYearChangeEventEmitter=ee(st,E),this.vegaSelectionChangeEventEmitter=ee(st,O),this.isMobileDevice=z()===R.MOBILE,this.size="regular",this.mode="single",this.selection="range"===this.mode?["",""]:"",this.format="MM/DD/YYYY",this.clearButton=!1,this.staticHeight=!1,this.showYearMonthDropdowns=!1,this.yearMonthDropdownProps={},this.isDateDisabled=()=>!1,this.dateIndicator=()=>null}watchCurrentPeriod(){}watchCalendarSelection(){}watchMaxCalendarDate(){}watchMinCalendarDate(){}watchMode(){}watchSelection(){}watchMinDate(){}watchMaxDate(){}watchTimezone(){}watchDualMonths(){}async reset(){}async triggerRepick(e){}render(){return o(e(t,{class:{[this.size]:!0,[this.mode]:!0,mobile:this.isMobileDevice,"dual-months":this.isDualMonths}},this.renderer.render()),this.host)}get host(){return r(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriod"],calendarSelection:["watchCalendarSelection"],maxCalendarDate:["watchMaxCalendarDate"],minCalendarDate:["watchMinCalendarDate"],mode:["watchMode"],selection:["watchSelection"],minDate:["watchMinDate"],maxDate:["watchMaxDate"],timezone:["watchTimezone"],dualMonths:["watchDualMonths"]}}};ot([C()],st.prototype,"globalSlimmers",void 0),ot([b()],st.prototype,"renderer",void 0),ot([b()],st.prototype,"isDualMonthsController",void 0),ot([b()],st.prototype,"monthItemRenderer",void 0),ot([b()],st.prototype,"headerRenderer",void 0),ot([b()],st.prototype,"translationSlimmer",void 0),ot([b()],st.prototype,"todayController",void 0),ot([b()],st.prototype,"selectionController",void 0),ot([b()],st.prototype,"minMaxDateController",void 0),ot([b()],st.prototype,"currentPeriodController",void 0),ot([b()],st.prototype,"yearMonthSwitcherRender",void 0),ot([b()],st.prototype,"allowRepickController",void 0),ot([b()],st.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),ot([b()],st.prototype,"clearEventEmitter",void 0),ot([b()],st.prototype,"monthYearChangeEventEmitter",void 0),ot([b()],st.prototype,"vegaSelectionChangeEventEmitter",void 0),st.style=':host{--vega-litepicker-container-width:calc(var(--vega-litepicker-day-width) * 7)}.calendar,.calendar .container__main,.calendar .container__months{height:100%}:host(.small.dual-months) .calendar.static-height .container__main,:host(.regular.dual-months) .calendar.static-height .container__main,:host(.large.dual-months) .calendar.static-height .container__main{aspect-ratio:1/1}:host .month-item-header .button-today::part(link){color:rgba(var(--v-text-link, 19, 98, 226, 1));vertical-align:top}:host .month-item-header vega-dropdown .month-item-name,:host .month-item-header vega-dropdown .month-item-year{display:flex;gap:8px;align-items:center;cursor:pointer;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border:1px solid rgba(var(--v-border-input-field, 171, 198, 216, 1))}:host .month-item-header vega-dropdown.active .month-item-name,:host .month-item-header vega-dropdown.active .month-item-year{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1))}:host .month-item-header .button-previous-month.disabled,:host .month-item-header .button-next-month.disabled{pointer-events:none}:host(.small.single) vega-dropdown .month-item-name span{max-width:48px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.small){--vega-litepicker-day-width:28px;--vega-litepicker-day-height:28px;--vega-date-picker-calendar-range-space-size:16px}:host(.small) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .current-month-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header{gap:8px;margin-bottom:12px}:host(.small) .month-item-header .button-today{height:16px}:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .month-item-header .month-item-name,:host(.small) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .month-item-header .month-item-name{margin-right:4px}:host(.small) .month-item-header vega-dropdown .month-item-name{margin-right:8px}:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:4px;padding-right:4px;font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;gap:2px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .month-item-header vega-dropdown .month-item-name,:host(.small) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .month-item-header vega-dropdown .month-item-name vega-icon,:host(.small) .month-item-header vega-dropdown .month-item-year vega-icon{width:12px;height:12px}:host(.small) .month-item-header .small-month-item-name{margin-right:8px}:host(.small) .month-item-header .small-month-item-name::part(label-container),:host(.small) .month-item-header .small-month-item-year::part(label-container){font-size:14px}:host(.small) .month-item .current-month-year{margin-bottom:4px}:host(.small) .calendar .container__main{max-width:360px;max-height:360px}:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;margin-bottom:4px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.small) .calendar .container__days .day-item .day-content{width:18px;height:18px}:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;width:18px;height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.small) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days .day-item:focus-visible .day-content{width:16px}:host(.small) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.small.dual-months) .calendar .container__main{width:100%;max-width:600px;max-height:360px}:host(.regular){--vega-litepicker-day-width:40px;--vega-litepicker-day-height:40px;--vega-date-picker-calendar-range-space-size:24px}:host(.regular) .current-month-year{text-align:center;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){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .current-month-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header{gap:16px;margin-bottom:24px}:host(.regular) .month-item-header .button-today{height:16px}:host(.regular) .month-item-header .button-today.with-label{height:18px}:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{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){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header .month-item-name,:host(.regular) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .month-item-header .month-item-name{margin-right:4px}:host(.regular) .month-item-header vega-dropdown .month-item-name{margin-right:16px}:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{border-radius:4px;padding-left:8px;padding-right:8px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px;padding-top:3px;padding-bottom:3px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .month-item-header vega-dropdown .month-item-name,:host(.regular) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:16px}}:host(.regular) .month-item .current-month-year{margin-bottom:12px}:host(.regular) .calendar .container__main{max-width:450px;max-height:450px}:host(.regular) .calendar .container__months .month-item-header{margin-bottom:12px}:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .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){:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .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){:host(.regular) .calendar .container__days .day-item .is-start-date,:host(.regular) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days .day-item .day-content{width:24px;height:24px}:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.regular) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}:host(.regular) .calendar .container__days vega-tooltip .day-item .day-content:after{width:4px;height:4px;bottom:-3px;left:calc(50% - 2px)}:host(.regular.dual-months) .calendar .container__main{width:100%;max-width:900px;max-height:450px}:host(.large){--vega-litepicker-day-width:56px;--vega-litepicker-day-height:56px;--vega-date-picker-calendar-range-space-size:40px}:host(.large) .current-month-year{text-align:center;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .current-month-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header{gap:16px;margin-bottom:24px}:host(.large) .month-item-header .button-today{height:16px}:host(.large) .month-item-header .button-today.with-label{height:24px}:host(.large) .month-item-header .month-item-name{margin-right:4px}:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .month-item-header .month-item-name,:host(.large) .month-item-header .month-item-year{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .month-item-header vega-dropdown .month-item-name{margin-right:24px}:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{border-radius:8px;padding-left:12px;padding-right:12px;font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;padding-top:7px;padding-bottom:7px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{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(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{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(.large) .month-item-header vega-dropdown .month-item-name,:host(.large) .month-item-header vega-dropdown .month-item-year{font-family:"Inter", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host(.large) .month-item .current-month-year{margin-bottom:16px}:host(.large) .calendar .container__main{max-width:600px;max-height:600px}:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px;margin-bottom:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-header{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__months .month-item-weekdays-row div{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item .is-start-date,:host(.large) .calendar .container__days .day-item .is-end-date{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days .day-item .day-content{width:36px;height:36px}:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.large) .calendar .container__days .day-item.is-today .day-content{font-family:"Inter", sans-serif;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0px}}:host(.large) .calendar .container__days vega-tooltip .day-item .day-content:after{width:6px;height:6px;bottom:-4px;left:calc(50% - 3px)}:host(.regular) .container__days .day-item.is-today .day-content,:host(.large) .container__days .day-item.is-today .day-content{border:1px solid rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.regular) .container__days .day-item.is-today.is-start-date .day-content,:host(.regular) .container__days .day-item.is-today.is-end-date .day-content,:host(.regular) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content,:host(.large) .container__days .day-item.is-today.is-start-date .day-content,:host(.large) .container__days .day-item.is-today.is-end-date .day-content,:host(.large) .container__days .day-item.is-today:active:not(.is-locked):not(.is-disabled) .day-content{border-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.large.dual-months) .calendar .container__main{width:100%;max-width:1200px;max-height:600px}.calendar .container__main{display:flex;flex-direction:column}.calendar .container__months{display:flex}:host(.dual-months) .calendar .container__months{width:100%;flex-direction:row}:host(.dual-months) .calendar .container__months .month-item:first-of-type{padding-right:var(--vega-date-picker-calendar-range-space-size)}:host(.dual-months) .calendar .container__months .month-item:last-of-type{padding-left:var(--vega-date-picker-calendar-range-space-size)}.calendar .container__months .month-item{box-sizing:content-box;position:relative;width:100%;height:100%;z-index:1;display:flex;flex-direction:column}.calendar .container__months .month-item:nth-child(2)::before{background-color:rgba(var(--v-bg-divider, 171, 198, 216, 1));margin-bottom:32px;position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:none;width:1px;content:"";display:block}.calendar .container__months .month-item-weekdays-row{color:rgba(var(--v-text-primary, 32, 54, 69, 1));place-items:center}.calendar .aria-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.calendar .container__days{text-align:center;place-items:center;flex:1 1 auto}.calendar.static-height .container__days{align-content:flex-start}.calendar:not(.static-height) .container__days{flex:none}.calendar .container__months .month-item-weekdays-row>div,.calendar .container__days>div,.calendar .container__days>vega-tooltip>div,.calendar .container__days>a{padding:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:var(--vega-litepicker-day-height);width:100%;min-width:var(--vega-litepicker-day-width)}.calendar .container__days .day-item{color:rgba(var(--v-text-primary, 32, 54, 69, 1));text-align:center;border-radius:9999px;cursor:default}.calendar .container__days .day-item .day-content{display:flex;align-items:center;justify-content:center;border-radius:4px;box-sizing:border-box}.calendar .container__days .day-item:hover{border:1px solid rgba(var(--v-border-input-field-hover, 115, 160, 190, 1))}.calendar .container__days .day-item:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));border-width:0px;outline:none}.calendar .container__days .day-item:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days .day-item.is-locked,.calendar .container__days .day-item.is-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1));-webkit-tap-highlight-color:transparent;cursor:not-allowed}.calendar .container__days .day-item.is-locked:hover,.calendar .container__days .day-item.is-disabled:hover{border-width:0px}.calendar .container__days .day-item.is-locked:active,.calendar .container__days .day-item.is-disabled:active{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:none}.calendar .container__days .day-item.is-disabled{text-decoration:line-through}.calendar .container__days .day-item.is-start-date,.calendar .container__days .day-item.is-end-date{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));color:rgba(var(--v-text-on-action, 252, 252, 252, 1));position:relative;border-width:0px}.calendar .container__days .day-item.is-start-date:hover,.calendar .container__days .day-item.is-end-date:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar .container__days .day-item.is-start-date:active,.calendar .container__days .day-item.is-end-date:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar .container__days .day-item.is-start-date:focus-visible,.calendar .container__days .day-item.is-end-date:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px;background-color:rgba(var(--v-bg-action-focus, 19, 98, 226, 1))}.calendar .container__days .day-item.is-start-date.is-disabled,.calendar .container__days .day-item.is-start-date.is-locked,.calendar .container__days .day-item.is-end-date.is-disabled,.calendar .container__days .day-item.is-end-date.is-locked{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1));color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}.calendar .container__days .day-item.is-start-date.is-end-date:after{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0))}.calendar .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))}.calendar .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))}.calendar .container__days .day-item.is-in-range{border-radius:0px;background-color:rgba(var(--v-bg-date-picker-range, 229, 239, 255, 1));border-width:0px}.calendar .container__days .day-item.is-in-range:hover{position:relative}.calendar .container__days .day-item.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:" "}.calendar .container__days .day-item.is-in-range:focus-visible{border:2px solid rgba(var(--v-border-secondary-btn, 19, 98, 226, 1));outline:none}.calendar .container__days vega-tooltip{width:100%}.calendar .container__days vega-tooltip .day-item .day-content{position:relative}.calendar .container__days vega-tooltip .day-item .day-content:after{position:absolute;border-radius:9999px;content:" ";background-color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar .container__days vega-tooltip .day-item.is-start-date .day-content:after,.calendar .container__days vega-tooltip .day-item.is-end-date .day-content:after,.calendar .container__days vega-tooltip .day-item:active:not(.is-locked):not(.is-disabled) .day-content:after{background-color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar.mobilefriendly[data-plugins*=mobilefriendly] .container__days>div{height:var(--vega-date-picker-calendar-day-height)}.calendar .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){.calendar .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){.calendar .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){.calendar .clear-button{font-family:"Inter", sans-serif;font-size:16px;font-weight:700;line-height:24px;letter-spacing:0px}}.calendar .footer-container{margin-top:16px;height:24px}:host(.vega-force-hidden){display:none !important}.calendar{left:initial !important;top:initial !important;position:initial !important}.button-next-month svg,.button-previous-month svg{width:12px;height:16px}.calendar .container__days>div:not(.day-item){-webkit-tap-highlight-color:transparent}';export{Ve as vega_date_picker,st as vega_date_picker_calendar}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as s,g as e}from"./p-6b2342e0.js";import{c as o,M as h,I as l}from"./p-6e1ab235.js";import{V as a,I as n}from"./p-4415ad28.js";import{j as r,k as c}from"./p-6e70d3cc.js";import{P as d}from"./p-81dd00d0.js";import"./p-49a2e141.js";import"./p-d4ea8e22.js";import"./p-ed45b3b6.js";import"./p-b75ee3ba.js";var p=function(t,i,s,e){var o,h=arguments.length,l=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(h<3?o(l):h>3?o(i,s,l):o(i,s))||l);return h>3&&l&&Object.defineProperty(i,s,l),l};class v extends d{constructor(){super({target:()=>[this.host,document.body],callback:()=>{"ellipsis"===this.overflow&&(this.tooltipRef&&(this.tooltipRef.innerText=this.content),this.handleTooltip())},isDeferred:!0}),this.handleTooltip=async()=>{0!==this.host.clientWidth&&(r(this.host)?this.createTooltip().componentOnReady().then((()=>{this.updateTooltipDisplayText()})):(this.tooltipRef&&this.tooltipRef.classList.contains("hydrated")&&(this.host.innerText=this.content,this.tooltipRef.remove(),this.tooltipRef=null),this.host.style.minWidth="auto"))},this.createTooltip=()=>{var t,i,s;return this.tooltipRef=this.host.querySelector("vega-tooltip"),this.tooltipRef||(this.tooltipRef=document.createElement("vega-tooltip"),this.tooltipRef.text=this.content,this.tooltipRef.innerText=this.content,this.tooltipRef.placement=null===(t=this.tooltip)||void 0===t?void 0:t.placement,this.tooltipRef.maxWidth=null===(i=this.tooltip)||void 0===i?void 0:i.maxWidth,this.tooltipRef.minWidth=null===(s=this.tooltip)||void 0===s?void 0:s.minWidth,this.host.replaceChildren(this.tooltipRef)),this.tooltipRef},this.updateTooltipDisplayText=async()=>{let t=parseFloat(c(this.host,"font-size"));t=isNaN(t)?v.DEFAULT_FONT_SIZE:t;const i=Math.floor(this.host.getBoundingClientRect().width/Math.floor(t/2));if(r(this.tooltipRef))for(let t=i;t>=1&&(this.tooltipRef.textContent=this.truncateStringWithEllipsis(t),r(this.tooltipRef));t--)if(t<=1){this.insertMinWidthStyle();break}},this.truncateStringWithEllipsis=t=>this.content.substring(0,t)+"...",this.initTextContent=()=>{this.content=this.host.textContent}}componentDidLoad(){this.initTextContent()}watchTooltip(){var t,i,s;this.tooltipRef&&(this.tooltipRef.placement=null===(t=this.tooltip)||void 0===t?void 0:t.placement,this.tooltipRef.maxWidth=null===(i=this.tooltip)||void 0===i?void 0:i.maxWidth,this.tooltipRef.minWidth=null===(s=this.tooltip)||void 0===s?void 0:s.minWidth)}insertMinWidthStyle(){let t=this.host.shadowRoot.querySelector("#min-width-placeholder");t||(t=document.createElement("span"),t.id="min-width-placeholder",t.style.cssText="position:absolute; visibility:hidden; word-break:keep-all;",this.host.shadowRoot.appendChild(t)),t.textContent=this.truncateStringWithEllipsis(1),this.host.style.minWidth=t.getBoundingClientRect().width+"px"}}v.DEFAULT_FONT_SIZE=16,p([o()],v.prototype,"host",void 0),p([o()],v.prototype,"tooltip",void 0),p([o()],v.prototype,"overflow",void 0),p([h("componentDidLoad")],v.prototype,"componentDidLoad",null),p([h("watchTooltip")],v.prototype,"watchTooltip",null);var u=function(t,i,s,e){var o,h=arguments.length,l=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(l=(h<3?o(l):h>3?o(i,s,l):o(i,s))||l);return h>3&&l&&Object.defineProperty(i,s,l),l};const f=class{constructor(i){t(this,i),this.globalSlimmers={},this.tooltipRenderer=new v,this.vegaComponentUsageRuntimeMetricsSlimmer=new a,this.overflow="newline"}watchTooltip(){}componentDidLoad(){}render(){return i(s,{class:{"vega-container-text-ellipsis":"ellipsis"===this.overflow,"vega-container-text-newline":"newline"===this.overflow}},i("slot",null))}get host(){return e(this)}static get watchers(){return{tooltip:["watchTooltip"]}}};u([n()],f.prototype,"globalSlimmers",void 0),u([l()],f.prototype,"tooltipRenderer",void 0),u([l()],f.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),f.style=":host{display:block}:host(.vega-container-text-newline){overflow-wrap:break-word}:host(.vega-container-text-ellipsis){word-break:break-all}";export{f as vega_text}
|