@getflip/swirl-components-react 0.2.0 → 0.2.1
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/{flip-action-list-item.entry.66f33805.js → flip-action-list-item.entry.8a7c3ed5.js} +1 -1
- package/dist/{flip-action-list-section.entry.2927ba41.js → flip-action-list-section.entry.da0cdb9e.js} +1 -1
- package/dist/{flip-action-list.entry.66352b19.js → flip-action-list.entry.b8a1ea41.js} +1 -1
- package/dist/{flip-avatar-group.entry.be7886a3.js → flip-avatar-group.entry.b0e66358.js} +1 -1
- package/dist/{flip-avatar.entry.f95286a1.js → flip-avatar.entry.6a8f2e19.js} +1 -1
- package/dist/{flip-badge.entry.3f2d34e9.js → flip-badge.entry.a6d07965.js} +1 -1
- package/dist/{flip-banner.entry.32f2ef57.js → flip-banner.entry.f53786a0.js} +1 -1
- package/dist/{flip-button-group.entry.ed86679b.js → flip-button-group.entry.0342e82d.js} +1 -1
- package/dist/{flip-button.entry.555b8fd4.js → flip-button.entry.b752e108.js} +1 -1
- package/dist/{flip-checkbox.entry.9768035f.js → flip-checkbox.entry.ade04b9c.js} +1 -1
- package/dist/{flip-chip.entry.5ebbf411.js → flip-chip.entry.42861041.js} +1 -1
- package/dist/{flip-date-input.entry.7bf9efc5.js → flip-date-input.entry.adafe713.js} +1 -1
- package/dist/{flip-date-picker_3.entry.54e0b84d.js → flip-date-picker_3.entry.4a72cca9.js} +4 -2
- package/dist/{flip-description-list-item.entry.f4e6faf7.js → flip-description-list-item.entry.0844c111.js} +1 -1
- package/dist/{flip-description-list.entry.2b1d4579.js → flip-description-list.entry.cdb5ba16.js} +1 -1
- package/dist/{flip-dialog.entry.2bbc3bff.js → flip-dialog.entry.cdfca16a.js} +1 -1
- package/dist/{flip-empty-state.entry.376592fa.js → flip-empty-state.entry.77f9c8ed.js} +1 -1
- package/dist/{flip-file-uploader.entry.c0ddf5a7.js → flip-file-uploader.entry.43c0b766.js} +1 -1
- package/dist/{flip-file-viewer-audio_6.entry.d60d1099.js → flip-file-viewer-audio_6.entry.c9978e1a.js} +1 -1
- package/dist/{flip-file-viewer.entry.0c2922e5.js → flip-file-viewer.entry.85af31ff.js} +1 -1
- package/dist/{flip-form-control.entry.71c275f5.js → flip-form-control.entry.ec90cfb9.js} +1 -1
- package/dist/{flip-form-group.entry.ad2385d5.js → flip-form-group.entry.6256d521.js} +1 -1
- package/dist/{flip-heading.entry.1245bdda.js → flip-heading.entry.472e3005.js} +1 -1
- package/dist/{flip-icon-add-photo.entry.c3178433.js → flip-icon-add-photo.entry.d8ca058c.js} +1 -1
- package/dist/{flip-icon-add.entry.708a8c7c.js → flip-icon-add.entry.79a8d7e6.js} +1 -1
- package/dist/{flip-icon-admin-panel-settings.entry.88af777a.js → flip-icon-admin-panel-settings.entry.abfc03bf.js} +1 -1
- package/dist/{flip-icon-arrow-back.entry.abd86e13.js → flip-icon-arrow-back.entry.eff9e6a3.js} +1 -1
- package/dist/{flip-icon-arrow-forward.entry.ef6e8b77.js → flip-icon-arrow-forward.entry.b0017297.js} +1 -1
- package/dist/{flip-icon-arrow-left.entry.70be0607.js → flip-icon-arrow-left.entry.234146e1.js} +1 -1
- package/dist/{flip-icon-arrow-right-small.entry.d342c71f.js → flip-icon-arrow-right-small.entry.dd9ec828.js} +1 -1
- package/dist/{flip-icon-arrow-right.entry.bd9eae8e.js → flip-icon-arrow-right.entry.d4a36d98.js} +1 -1
- package/dist/{flip-icon-attachment.entry.898243d2.js → flip-icon-attachment.entry.d41db045.js} +1 -1
- package/dist/{flip-icon-cancel.entry.fac41df2.js → flip-icon-cancel.entry.c5b57f7f.js} +1 -1
- package/dist/{flip-icon-chat-bubble.entry.016c1f0d.js → flip-icon-chat-bubble.entry.32859e94.js} +1 -1
- package/dist/{flip-icon-check-circle.entry.330f4038.js → flip-icon-check-circle.entry.cf0be0f3.js} +1 -1
- package/dist/{flip-icon-check-small.entry.590b928f.js → flip-icon-check-small.entry.c28df931.js} +1 -1
- package/dist/{flip-icon-check-strong.entry.8fb90e69.js → flip-icon-check-strong.entry.756abe1c.js} +1 -1
- package/dist/{flip-icon-check.entry.bf4892a9.js → flip-icon-check.entry.71f246f6.js} +1 -1
- package/dist/{flip-icon-chevron-left.entry.8a5cd7ef.js → flip-icon-chevron-left.entry.76299ff3.js} +1 -1
- package/dist/{flip-icon-chevron-right.entry.ba87bdc8.js → flip-icon-chevron-right.entry.56cd2638.js} +1 -1
- package/dist/{flip-icon-close-small.entry.d3ca39fb.js → flip-icon-close-small.entry.d5bce874.js} +1 -1
- package/dist/{flip-icon-close.entry.ebcf0fe6.js → flip-icon-close.entry.1c183b2c.js} +1 -1
- package/dist/{flip-icon-cloud-upload.entry.bf4e840b.js → flip-icon-cloud-upload.entry.780eefd8.js} +1 -1
- package/dist/{flip-icon-comment.entry.dd07b7a4.js → flip-icon-comment.entry.9c85f2af.js} +1 -1
- package/dist/{flip-icon-copy.entry.796dcb43.js → flip-icon-copy.entry.33ed327d.js} +1 -1
- package/dist/{flip-icon-date-range.entry.53c670dc.js → flip-icon-date-range.entry.739ecf4e.js} +1 -1
- package/dist/{flip-icon-delete.entry.df480685.js → flip-icon-delete.entry.f3cba347.js} +1 -1
- package/dist/{flip-icon-description.entry.da40cecc.js → flip-icon-description.entry.d0f9e65c.js} +1 -1
- package/dist/{flip-icon-download.entry.3926477e.js → flip-icon-download.entry.9adb287e.js} +1 -1
- package/dist/{flip-icon-edit.entry.0f50ba4c.js → flip-icon-edit.entry.7b9f186f.js} +1 -1
- package/dist/{flip-icon-emoji-mood.entry.4fa27f13.js → flip-icon-emoji-mood.entry.e0b32fe1.js} +1 -1
- package/dist/{flip-icon-emoji-satisfied.entry.9246c39b.js → flip-icon-emoji-satisfied.entry.5ef82f25.js} +1 -1
- package/dist/{flip-icon-error_3.entry.4e8dcd9e.js → flip-icon-error_3.entry.87fcf907.js} +1 -1
- package/dist/{flip-icon-expand-less_3.entry.f191352f.js → flip-icon-expand-less_3.entry.8f8fb508.js} +1 -1
- package/dist/{flip-icon-expand-more.entry.5dbcc3e3.js → flip-icon-expand-more.entry.d2c9bf62.js} +1 -1
- package/dist/{flip-icon-file.entry.64c3e030.js → flip-icon-file.entry.0d1868a4.js} +1 -1
- package/dist/{flip-icon-folder-shared.entry.87cd72cd.js → flip-icon-folder-shared.entry.f1f4317b.js} +1 -1
- package/dist/{flip-icon-fullscreen-exit.entry.b274fc5c.js → flip-icon-fullscreen-exit.entry.168a2e77.js} +1 -1
- package/dist/{flip-icon-fullscreen.entry.a0a70cc8.js → flip-icon-fullscreen.entry.d78bc3a4.js} +1 -1
- package/dist/{flip-icon-group-assign.entry.17e70921.js → flip-icon-group-assign.entry.2116431e.js} +1 -1
- package/dist/{flip-icon-groups-custom.entry.ed78b313.js → flip-icon-groups-custom.entry.415539b5.js} +1 -1
- package/dist/{flip-icon-groups.entry.ff8a5e63.js → flip-icon-groups.entry.25ce8212.js} +1 -1
- package/dist/{flip-icon-image.entry.b010afb8.js → flip-icon-image.entry.ce484f72.js} +1 -1
- package/dist/{flip-icon-info.entry.61351d50.js → flip-icon-info.entry.3f6c72bb.js} +1 -1
- package/dist/{flip-icon-inventory.entry.f0ffd90a.js → flip-icon-inventory.entry.fc8b1c79.js} +1 -1
- package/dist/{flip-icon-like.entry.6b0034de.js → flip-icon-like.entry.34ea69dc.js} +1 -1
- package/dist/{flip-icon-link.entry.9229312e.js → flip-icon-link.entry.94b7dd90.js} +1 -1
- package/dist/{flip-icon-lock.entry.03e5fa85.js → flip-icon-lock.entry.3e9c3e72.js} +1 -1
- package/dist/{flip-icon-logout.entry.8b073a7d.js → flip-icon-logout.entry.57363229.js} +1 -1
- package/dist/{flip-icon-mail.entry.91482af2.js → flip-icon-mail.entry.b37d0b32.js} +1 -1
- package/dist/{flip-icon-manage-accounts.entry.5de8be6f.js → flip-icon-manage-accounts.entry.fb4e9a6b.js} +1 -1
- package/dist/{flip-icon-mention.entry.ef803509.js → flip-icon-mention.entry.2bfbfa63.js} +1 -1
- package/dist/{flip-icon-message.entry.20ae73fb.js → flip-icon-message.entry.2df9486d.js} +1 -1
- package/dist/{flip-icon-more-horizontal.entry.9a2357f0.js → flip-icon-more-horizontal.entry.7f45f170.js} +1 -1
- package/dist/{flip-icon-more-vertikal.entry.0447fdab.js → flip-icon-more-vertikal.entry.8045a647.js} +1 -1
- package/dist/{flip-icon-notifications-active.entry.3aa487b9.js → flip-icon-notifications-active.entry.f03b2fc4.js} +1 -1
- package/dist/{flip-icon-notifications-off.entry.285c2bb6.js → flip-icon-notifications-off.entry.dd8c68fd.js} +1 -1
- package/dist/{flip-icon-notifications.entry.e60fed91.js → flip-icon-notifications.entry.edc9821c.js} +1 -1
- package/dist/{flip-icon-open-in-new.entry.9de4d7c0.js → flip-icon-open-in-new.entry.ff63ea33.js} +1 -1
- package/dist/{flip-icon-people-alt.entry.dd840fb1.js → flip-icon-people-alt.entry.aad60933.js} +1 -1
- package/dist/{flip-icon-person-off.entry.df6c63b6.js → flip-icon-person-off.entry.59a3c96c.js} +1 -1
- package/dist/{flip-icon-person.entry.37939889.js → flip-icon-person.entry.e69d335c.js} +1 -1
- package/dist/{flip-icon-phone.entry.08245320.js → flip-icon-phone.entry.d3656af0.js} +1 -1
- package/dist/{flip-icon-poll.entry.e0ff1d9f.js → flip-icon-poll.entry.16e1615e.js} +1 -1
- package/dist/{flip-icon-print.entry.f5fbd804.js → flip-icon-print.entry.16e54d5b.js} +1 -1
- package/dist/{flip-icon-recieved.entry.5b4e2a50.js → flip-icon-recieved.entry.7a850323.js} +1 -1
- package/dist/{flip-icon-remove.entry.98d516c6.js → flip-icon-remove.entry.88fa105e.js} +1 -1
- package/dist/{flip-icon-search-strong.entry.afcf6af9.js → flip-icon-search-strong.entry.fd001082.js} +1 -1
- package/dist/{flip-icon-search.entry.0f103075.js → flip-icon-search.entry.2efaf023.js} +1 -1
- package/dist/{flip-icon-send.entry.fd3001a2.js → flip-icon-send.entry.6a4cd99f.js} +1 -1
- package/dist/{flip-icon-settings.entry.2b1e4bb0.js → flip-icon-settings.entry.44aec164.js} +1 -1
- package/dist/{flip-icon-time-filled.entry.7fa814d7.js → flip-icon-time-filled.entry.bced668e.js} +1 -1
- package/dist/{flip-icon-time-outlined.entry.e3f601ce.js → flip-icon-time-outlined.entry.36bb857d.js} +1 -1
- package/dist/{flip-icon-user-assign.entry.4951e82f.js → flip-icon-user-assign.entry.f55379f5.js} +1 -1
- package/dist/{flip-icon-video-camera.entry.74f8a7b6.js → flip-icon-video-camera.entry.23798820.js} +1 -1
- package/dist/{flip-icon-warning.entry.76ebfb1e.js → flip-icon-warning.entry.ac7a7e4c.js} +1 -1
- package/dist/{flip-link.entry.f67e488c.js → flip-link.entry.31692150.js} +1 -1
- package/dist/{flip-list.entry.5cc5b288.js → flip-list.entry.1eac3a62.js} +1 -1
- package/dist/{flip-modal.entry.4921d0b4.js → flip-modal.entry.5df13219.js} +1 -1
- package/dist/{flip-option-list-item.entry.fd1d85dd.js → flip-option-list-item.entry.f911c3b8.js} +1 -1
- package/dist/{flip-option-list-section.entry.5509895e.js → flip-option-list-section.entry.0f67d7d7.js} +1 -1
- package/dist/{flip-option-list.entry.efe97de9.js → flip-option-list.entry.32d7928a.js} +1 -1
- package/dist/{flip-pagination.entry.b109c35d.js → flip-pagination.entry.278034c1.js} +1 -1
- package/dist/{flip-progress-indicator.entry.b7cf2985.js → flip-progress-indicator.entry.99e10b2c.js} +1 -1
- package/dist/{flip-radio-group.entry.dfc6ef8e.js → flip-radio-group.entry.7cc7a065.js} +1 -1
- package/dist/{flip-radio.entry.f153fc92.js → flip-radio.entry.eacccab0.js} +1 -1
- package/dist/{flip-resource-list-file-item.entry.26beeeee.js → flip-resource-list-file-item.entry.4fd698ae.js} +1 -1
- package/dist/{flip-resource-list-item.entry.7cac7a7c.js → flip-resource-list-item.entry.d9efc26d.js} +1 -1
- package/dist/{flip-resource-list.entry.75d10224.js → flip-resource-list.entry.dca2afcd.js} +1 -1
- package/dist/{flip-search.entry.eccdd9b5.js → flip-search.entry.7a786fe8.js} +1 -1
- package/dist/{flip-stack.entry.2448bd6b.js → flip-stack.entry.a2afebf5.js} +1 -1
- package/dist/{flip-switch.entry.71d04383.js → flip-switch.entry.9e81c9b0.js} +1 -1
- package/dist/{flip-tab.entry.184626dd.js → flip-tab.entry.b64631a4.js} +1 -1
- package/dist/{flip-tabs.entry.9434fd96.js → flip-tabs.entry.a42a1989.js} +1 -1
- package/dist/{flip-tag.entry.5df8a6b4.js → flip-tag.entry.c888703b.js} +1 -1
- package/dist/{flip-text-input.entry.55decf50.js → flip-text-input.entry.8deff49d.js} +1 -1
- package/dist/{flip-text.entry.2b6e3f56.js → flip-text.entry.4bcd3eae.js} +1 -1
- package/dist/{flip-theme-provider.entry.1570cb6b.js → flip-theme-provider.entry.1b167993.js} +1 -1
- package/dist/{flip-thumbnail.entry.54ea67cf.js → flip-thumbnail.entry.5f2effe1.js} +1 -1
- package/dist/{flip-toast-provider.entry.0ee21f8b.js → flip-toast-provider.entry.870ddb2c.js} +1 -1
- package/dist/{flip-toast.entry.29ea2ead.js → flip-toast.entry.f8bc132d.js} +1 -1
- package/dist/{flip-tooltip.entry.e6a904e4.js → flip-tooltip.entry.e4e0b3a6.js} +1 -1
- package/dist/{flip-video-thumbnail.entry.f3cf1c28.js → flip-video-thumbnail.entry.855576fe.js} +1 -1
- package/dist/{flip-visually-hidden.entry.47d25a46.js → flip-visually-hidden.entry.8d93e0bb.js} +1 -1
- package/dist/{index.b6e7bb76.js → index.b70d4c92.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +1 -1
- package/package.json +2 -2
|
@@ -41,7 +41,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
41
41
|
* maska v1.5.0
|
|
42
42
|
* (c) 2019-2021 Alexander Shabunevich
|
|
43
43
|
* Released under the MIT License.
|
|
44
|
-
*/(function(i,n){n(t)})(Ft,function(i){var n={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function r(D,S,w=n,P=!0){return m(S).length>1?function(j){const f=m(j).sort((N,k)=>N.length-k.length);return function(N,k,z,B=!0){const M=f.map($=>o(N,$,z,!1)).pop();for(const $ in f)if(_(M,f[$],z))return o(N,f[$],z,B);return""};function _(N,k,z){for(const B in z)z[B].escape&&(k=k.replace(new RegExp(B+".{1}","g"),""));return k.split("").filter(B=>z[B]&&z[B].pattern).length>=N.length}}(S)(D,S,w,P):o(D,S,w,P)}function m(D){try{return JSON.parse(D)}catch{return[D]}}function o(D,S,w,P=!0){let j=0,f=0,_="",N="";for(;j<S.length&&f<D.length;){let k=S[j];const z=D[f],B=w[k];if(B&&B.pattern)B.pattern.test(z)&&(_+=c(z,B),j++,P&&S[j]&&(w[S[j]]?w[S[j]]&&w[S[j]].escape&&(_+=S[j+1],j+=2):(_+=S[j],j++))),f++;else if(B&&B.repeat){const M=w[S[j-1]];M&&!M.pattern.test(z)?j++:j--}else B&&B.escape&&(j++,k=S[j]),P&&(_+=k),z===k&&f++,j++}for(;P&&j<S.length;){const k=S[j];if(w[k]){N="";break}N+=k,j++}return _+N}function c(D,S){return S.transform&&(D=S.transform(D)),S.uppercase?D.toLocaleUpperCase():S.lowercase?D.toLocaleLowerCase():D}function a(D){return D instanceof HTMLInputElement?D:D.querySelector("input")||D}function d(D){return Object.prototype.toString.call(D)==="[object String]"}class g{constructor(S,w={}){if(!S)throw new Error("Maska: no element for mask");if(w.preprocessor!=null&&typeof w.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(w.tokens)for(const P in w.tokens)w.tokens[P]={...w.tokens[P]},w.tokens[P].pattern&&d(w.tokens[P].pattern)&&(w.tokens[P].pattern=new RegExp(w.tokens[P].pattern));this._opts={mask:w.mask,tokens:{...n,...w.tokens},preprocessor:w.preprocessor},this._el=d(S)?document.querySelectorAll(S):S.length?S:[S],this.inputEvent=P=>this.updateValue(P.target,P),this.init()}init(){for(let S=0;S<this._el.length;S++){const w=a(this._el[S]);!this._opts.mask||w.dataset.mask&&w.dataset.mask===this._opts.mask||(w.dataset.mask=this._opts.mask),setTimeout(()=>this.updateValue(w),0),w.dataset.maskInited||(w.dataset.maskInited=!0,w.addEventListener("input",this.inputEvent),w.addEventListener("beforeinput",this.beforeInput))}}destroy(){for(let S=0;S<this._el.length;S++){const w=a(this._el[S]);w.removeEventListener("input",this.inputEvent),w.removeEventListener("beforeinput",this.beforeInput),delete w.dataset.mask,delete w.dataset.maskInited}}updateValue(S,w){if(!S||!S.type)return;const P=S.type.match(/^number$/i)&&S.validity.badInput;if(!S.value&&!P||!S.dataset.mask)return S.dataset.maskRawValue="",void this.dispatch("maska",S,w);let j=S.selectionEnd;const f=S.value,_=f[j-1];S.dataset.maskRawValue=r(S.value,S.dataset.mask,this._opts.tokens,!1);let N=S.value;this._opts.preprocessor&&(N=this._opts.preprocessor(N)),S.value=r(N,S.dataset.mask,this._opts.tokens),w&&w.inputType==="insertText"&&j===f.length&&(j=S.value.length),function(k,z,B){for(;z&&z<k.value.length&&k.value.charAt(z-1)!==B;)z++;(k.type?k.type.match(/^(text|search|password|tel|url)$/i):!k.type)&&k===document.activeElement&&(k.setSelectionRange(z,z),setTimeout(function(){k.setSelectionRange(z,z)},0))}(S,j,_),this.dispatch("maska",S,w),S.value!==f&&this.dispatch("input",S,w)}beforeInput(S){S&&S.target&&S.target.type&&S.target.type.match(/^number$/i)&&S.data&&isNaN(S.target.value+S.data)&&S.preventDefault()}dispatch(S,w,P){w.dispatchEvent(function(j,f=null){const _=document.createEvent("Event");return _.initEvent(j,!0,!0),f&&(_.inputType=f),_}(S,P&&P.inputType||null))}}var T=(()=>{const D=new WeakMap;return(S,w)=>{w.value&&(D.has(S)&&!function(P){return!(d(P.value)&&P.value===P.oldValue||Array.isArray(P.value)&&JSON.stringify(P.value)===JSON.stringify(P.oldValue)||P.value&&P.value.mask&&P.oldValue&&P.oldValue.mask&&P.value.mask===P.oldValue.mask)}(w)||D.set(S,new g(S,function(P){const j={};return P.mask?(j.mask=Array.isArray(P.mask)?JSON.stringify(P.mask):P.mask,j.tokens=P.tokens?{...P.tokens}:{},j.preprocessor=P.preprocessor):j.mask=Array.isArray(P)?JSON.stringify(P):P,j}(w.value))))}})();function R(D){D.directive("maska",T)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(R),i.create=function(D,S){return new g(D,S)},i.default=R,i.install=R,i.mask=r,i.maska=T,i.tokens=n,Object.defineProperty(i,"__esModule",{value:!0})})});const Hp=".sc-flip-date-input-h{display:flex;width:100%}.sc-flip-date-input-h *.sc-flip-date-input{box-sizing:border-box}.date-input.sc-flip-date-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);line-height:var(--s-line-height-sm)}.date-input__input.sc-flip-date-input{display:inline-flex;width:100%;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.date-input__input.sc-flip-date-input:focus{outline:none}.date-input__input.sc-flip-date-input:disabled{color:var(--s-text-disabled);background-color:transparent}.date-input__date-picker-button.sc-flip-date-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.date-input__date-picker-button.sc-flip-date-input:focus{outline-color:var(--s-focus-default)}.date-input__date-picker-button.sc-flip-date-input:disabled{cursor:default;color:var(--s-icon-disabled)}",Ks="yyyy-MM-dd",Gl=class{constructor(e){Le(this,e),this.valueChange=Ct(this,"valueChange",7),this.datePickerLabel="Date picker",this.format="yyyy-MM-dd",this.placeholder="yyyy-mm-dd",this.onChange=t=>{const i=t.target.value,n=Zl(i,this.format,new Date),r=new RegExp(`^${this.format.replace(/y|d|M/g,"\\d")}$`);if(!Boolean(i.match(r))||!Mo(n))return;const m=Fo(n,Ks);this.value=m,this.valueChange.emit(m)},this.onInput=t=>{this.onChange(t)},this.onClick=t=>{t.preventDefault()},this.onFocus=t=>{this.handleAutoSelect(t)},this.onPickDate=t=>{const i=t.detail,n=Fo(i,Ks);this.value=n,this.valueChange.emit(n),this.pickerPopover.close()}}componentWillLoad(){const e=document.querySelectorAll("flip-date-input").length;this.id=`flip-date-input-${e}`}componentDidLoad(){this.setupMask()}disconnectedCallback(){var e;(e=this.mask)===null||e===void 0||e.destroy()}watchFormat(){this.setupMask()}handleAutoSelect(e){!this.autoSelect||e.target.select()}setupMask(){var e;(e=this.mask)===null||e===void 0||e.destroy(),this.mask=Vp.create(`#${this.id}`,{mask:this.format.replace(/y|d|M/g,"#")})}render(){const e=this.invalid===!0?"true":this.invalid===!1?"false":void 0,t=Boolean(this.value)?Zl(this.value,Ks,new Date):void 0,i=Mo(t)?Fo(t,this.format):void 0;return l(et,null,l("div",{class:"date-input"},l("input",{"aria-describedby":this.flipAriaDescribedby,"aria-disabled":this.disabled?"true":void 0,"aria-invalid":e,autoFocus:this.autoFocus,class:"date-input__input",disabled:this.disabled,id:this.id,onClick:this.onClick,onFocus:this.onFocus,onInput:this.onInput,placeholder:this.placeholder,required:this.required,type:"text",value:i}),l("button",{"aria-hidden":"true",class:"date-input__date-picker-button",disabled:this.disabled,id:`${this.id}-trigger`,tabIndex:-1,type:"button"},l("flip-icon-today",null))),!this.disabled&&l("flip-popover",{label:this.datePickerLabel,placement:"bottom-end",popoverId:"popover",ref:n=>this.pickerPopover=n,trigger:`${this.id}-trigger`},l("flip-date-picker",{locale:this.locale,onValueChange:this.onPickDate,value:t})))}static get watchers(){return{format:["watchFormat"]}}};Gl.style=Hp;const Bp=Object.freeze(Object.defineProperty({__proto__:null,flip_date_input:Gl},Symbol.toStringTag,{value:"Module"}));function Qi(e){return e.split("-")[0]}function Qs(e){return e.split("-")[1]}function jr(e){return["top","bottom"].includes(Qi(e))?"x":"y"}function Yl(e){return e==="y"?"height":"width"}function ql(e,t,i){let{reference:n,floating:r}=e;const m=n.x+n.width/2-r.width/2,o=n.y+n.height/2-r.height/2,c=jr(t),a=Yl(c),d=n[a]/2-r[a]/2,g=Qi(t),T=c==="x";let R;switch(g){case"top":R={x:m,y:n.y-r.height};break;case"bottom":R={x:m,y:n.y+n.height};break;case"right":R={x:n.x+n.width,y:o};break;case"left":R={x:n.x-r.width,y:o};break;default:R={x:n.x,y:n.y}}switch(Qs(t)){case"start":R[c]-=d*(i&&T?-1:1);break;case"end":R[c]+=d*(i&&T?-1:1);break}return R}const jp=async(e,t,i)=>{const{placement:n="bottom",strategy:r="absolute",middleware:m=[],platform:o}=i,c=await(o.isRTL==null?void 0:o.isRTL(t));let a=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:g}=ql(a,n,c),T=n,R={},D=0;for(let S=0;S<m.length;S++){const{name:w,fn:P}=m[S],{x:j,y:f,data:_,reset:N}=await P({x:d,y:g,initialPlacement:n,placement:T,strategy:r,middlewareData:R,rects:a,platform:o,elements:{reference:e,floating:t}});if(d=j!=null?j:d,g=f!=null?f:g,R={...R,[w]:{...R[w],..._}},N&&D<=50){D++,typeof N=="object"&&(N.placement&&(T=N.placement),N.rects&&(a=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):N.rects),{x:d,y:g}=ql(a,T,c)),S=-1;continue}}return{x:d,y:g,placement:T,strategy:r,middlewareData:R}};function Wp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Up(e){return typeof e!="number"?Wp(e):{top:e,right:e,bottom:e,left:e}}function Wr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Xl(e,t){var i;t===void 0&&(t={});const{x:n,y:r,platform:m,rects:o,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:T="floating",altBoundary:R=!1,padding:D=0}=t,S=Up(D),P=c[R?T==="floating"?"reference":"floating":T],j=Wr(await m.getClippingRect({element:(i=await(m.isElement==null?void 0:m.isElement(P)))==null||i?P:P.contextElement||await(m.getDocumentElement==null?void 0:m.getDocumentElement(c.floating)),boundary:d,rootBoundary:g,strategy:a})),f=Wr(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await(m.getOffsetParent==null?void 0:m.getOffsetParent(c.floating)),strategy:a}):o[T]);return{top:j.top-f.top+S.top,bottom:f.bottom-j.bottom+S.bottom,left:j.left-f.left+S.left,right:f.right-j.right+S.right}}const Zp=Math.min,Gp=Math.max;function Kl(e,t,i){return Gp(e,Zp(t,i))}const Yp={left:"right",right:"left",bottom:"top",top:"bottom"};function Ur(e){return e.replace(/left|right|bottom|top/g,t=>Yp[t])}function qp(e,t,i){i===void 0&&(i=!1);const n=Qs(e),r=jr(e),m=Yl(r);let o=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[m]>t.floating[m]&&(o=Ur(o)),{main:o,cross:Ur(o)}}const Xp={start:"end",end:"start"};function Ql(e){return e.replace(/start|end/g,t=>Xp[t])}function Kp(e){const t=Ur(e);return[Ql(e),t,Ql(t)]}const Jl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i;const{placement:n,middlewareData:r,rects:m,initialPlacement:o,platform:c,elements:a}=t,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:T,fallbackStrategy:R="bestFit",flipAlignment:D=!0,...S}=e,w=Qi(n),j=T||(w===o||!D?[Ur(o)]:Kp(o)),f=[o,...j],_=await Xl(t,S),N=[];let k=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&N.push(_[w]),g){const{main:$,cross:A}=qp(n,m,await(c.isRTL==null?void 0:c.isRTL(a.floating)));N.push(_[$],_[A])}if(k=[...k,{placement:n,overflows:N}],!N.every($=>$<=0)){var z,B;const $=((z=(B=r.flip)==null?void 0:B.index)!=null?z:0)+1,A=f[$];if(A)return{data:{index:$,overflows:k},reset:{placement:A}};let p="bottom";switch(R){case"bestFit":{var M;const b=(M=k.map(E=>[E,E.overflows.filter(I=>I>0).reduce((I,V)=>I+V,0)]).sort((E,I)=>E[1]-I[1])[0])==null?void 0:M[0].placement;b&&(p=b);break}case"initialPlacement":p=o;break}if(n!==p)return{reset:{placement:p}}}return{}}}};async function Qp(e,t){const{placement:i,platform:n,elements:r}=e,m=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Qi(i),c=Qs(i),a=jr(i)==="x",d=["left","top"].includes(o)?-1:1,g=m&&a?-1:1,T=typeof t=="function"?t(e):t;let{mainAxis:R,crossAxis:D,alignmentAxis:S}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return c&&typeof S=="number"&&(D=c==="end"?S*-1:S),a?{x:D*g,y:R*d}:{x:R*d,y:D*g}}const Jp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:i,y:n}=t,r=await Qp(t,e);return{x:i+r.x,y:n+r.y,data:r}}}};function e4(e){return e==="x"?"y":"x"}const ec=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:r}=t,{mainAxis:m=!0,crossAxis:o=!1,limiter:c={fn:P=>{let{x:j,y:f}=P;return{x:j,y:f}}},...a}=e,d={x:i,y:n},g=await Xl(t,a),T=jr(Qi(r)),R=e4(T);let D=d[T],S=d[R];if(m){const P=T==="y"?"top":"left",j=T==="y"?"bottom":"right",f=D+g[P],_=D-g[j];D=Kl(f,D,_)}if(o){const P=R==="y"?"top":"left",j=R==="y"?"bottom":"right",f=S+g[P],_=S-g[j];S=Kl(f,S,_)}const w=c.fn({...t,[T]:D,[R]:S});return{...w,data:{x:w.x-i,y:w.y-n}}}}};function tc(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ri(e){if(e==null)return window;if(!tc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yt(e){return ri(e).getComputedStyle(e)}function oi(e){return tc(e)?"":e?(e.nodeName||"").toLowerCase():""}function ic(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function qt(e){return e instanceof ri(e).HTMLElement}function ui(e){return e instanceof ri(e).Element}function t4(e){return e instanceof ri(e).Node}function Fi(e){if(typeof ShadowRoot>"u")return!1;const t=ri(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zr(e){const{overflow:t,overflowX:i,overflowY:n}=Yt(e);return/auto|scroll|overlay|hidden/.test(t+n+i)}function i4(e){return["table","td","th"].includes(oi(e))}function nc(e){const t=/firefox/i.test(ic()),i=Yt(e);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||t&&i.willChange==="filter"||t&&(i.filter?i.filter!=="none":!1)}function rc(){return!/^((?!chrome|android).)*safari/i.test(ic())}const oc=Math.min,Ji=Math.max,Gr=Math.round;function si(e,t,i){var n,r,m,o;t===void 0&&(t=!1),i===void 0&&(i=!1);const c=e.getBoundingClientRect();let a=1,d=1;t&&qt(e)&&(a=e.offsetWidth>0&&Gr(c.width)/e.offsetWidth||1,d=e.offsetHeight>0&&Gr(c.height)/e.offsetHeight||1);const g=ui(e)?ri(e):window,T=!rc()&&i,R=(c.left+(T&&(n=(r=g.visualViewport)==null?void 0:r.offsetLeft)!=null?n:0))/a,D=(c.top+(T&&(m=(o=g.visualViewport)==null?void 0:o.offsetTop)!=null?m:0))/d,S=c.width/a,w=c.height/d;return{width:S,height:w,top:D,right:R+S,bottom:D+w,left:R,x:R,y:D}}function di(e){return((t4(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yr(e){return ui(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sc(e){return si(di(e)).left+Yr(e).scrollLeft}function n4(e){const t=si(e);return Gr(t.width)!==e.offsetWidth||Gr(t.height)!==e.offsetHeight}function r4(e,t,i){const n=qt(t),r=di(t),m=si(e,n&&n4(t),i==="fixed");let o={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(n||!n&&i!=="fixed")if((oi(t)!=="body"||Zr(r))&&(o=Yr(t)),qt(t)){const a=si(t,!0);c.x=a.x+t.clientLeft,c.y=a.y+t.clientTop}else r&&(c.x=sc(r));return{x:m.left+o.scrollLeft-c.x,y:m.top+o.scrollTop-c.y,width:m.width,height:m.height}}function ac(e){return oi(e)==="html"?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||di(e)}function lc(e){return!qt(e)||Yt(e).position==="fixed"?null:o4(e)}function o4(e){let{offsetParent:t}=e,i=e,n=!1;for(;i&&i!==t;){const{assignedSlot:r}=i;if(r){let m=r.offsetParent;if(Yt(r).display==="contents"){const o=r.hasAttribute("style"),c=r.style.display;r.style.display=Yt(i).display,m=r.offsetParent,r.style.display=c,o||r.removeAttribute("style")}i=r,t!==m&&(t=m,n=!0)}else if(Fi(i)&&i.host&&n)break;i=Fi(i)&&i.host||i.parentNode}return t}function s4(e){let t=ac(e);for(Fi(t)&&(t=t.host);qt(t)&&!["html","body"].includes(oi(t));){if(nc(t))return t;{const i=t.parentNode;t=Fi(i)?i.host:i}}return null}function Js(e){const t=ri(e);let i=lc(e);for(;i&&i4(i)&&Yt(i).position==="static";)i=lc(i);return i&&(oi(i)==="html"||oi(i)==="body"&&Yt(i).position==="static"&&!nc(i))?t:i||s4(e)||t}function cc(e){if(qt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=si(e);return{width:t.width,height:t.height}}function a4(e){let{rect:t,offsetParent:i,strategy:n}=e;const r=qt(i),m=di(i);if(i===m)return t;let o={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((r||!r&&n!=="fixed")&&((oi(i)!=="body"||Zr(m))&&(o=Yr(i)),qt(i))){const a=si(i,!0);c.x=a.x+i.clientLeft,c.y=a.y+i.clientTop}return{...t,x:t.x-o.scrollLeft+c.x,y:t.y-o.scrollTop+c.y}}function l4(e,t){const i=ri(e),n=di(e),r=i.visualViewport;let m=n.clientWidth,o=n.clientHeight,c=0,a=0;if(r){m=r.width,o=r.height;const d=rc();(d||!d&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}return{width:m,height:o,x:c,y:a}}function c4(e){var t;const i=di(e),n=Yr(e),r=(t=e.ownerDocument)==null?void 0:t.body,m=Ji(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Ji(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let c=-n.scrollLeft+sc(e);const a=-n.scrollTop;return Yt(r||i).direction==="rtl"&&(c+=Ji(i.clientWidth,r?r.clientWidth:0)-m),{width:m,height:o,x:c,y:a}}function uc(e){const t=ac(e);return["html","body","#document"].includes(oi(t))?e.ownerDocument.body:qt(t)&&Zr(t)?t:uc(t)}function qr(e,t){var i;t===void 0&&(t=[]);const n=uc(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),m=ri(n),o=r?[m].concat(m.visualViewport||[],Zr(n)?n:[]):n,c=t.concat(o);return r?c:c.concat(qr(o))}function u4(e,t){const i=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(i&&Fi(i)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function d4(e,t){const i=si(e,!1,t==="fixed"),n=i.top+e.clientTop,r=i.left+e.clientLeft;return{top:n,left:r,x:r,y:n,right:r+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function dc(e,t,i){return t==="viewport"?Wr(l4(e,i)):ui(t)?d4(t,i):Wr(c4(di(e)))}function h4(e){const t=qr(e),n=["absolute","fixed"].includes(Yt(e).position)&&qt(e)?Js(e):e;return ui(n)?t.filter(r=>ui(r)&&u4(r,n)&&oi(r)!=="body"):[]}function f4(e){let{element:t,boundary:i,rootBoundary:n,strategy:r}=e;const o=[...i==="clippingAncestors"?h4(t):[].concat(i),n],c=o[0],a=o.reduce((d,g)=>{const T=dc(t,g,r);return d.top=Ji(T.top,d.top),d.right=oc(T.right,d.right),d.bottom=oc(T.bottom,d.bottom),d.left=Ji(T.left,d.left),d},dc(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const p4={getClippingRect:f4,convertOffsetParentRelativeRectToViewportRelativeRect:a4,isElement:ui,getDimensions:cc,getOffsetParent:Js,getDocumentElement:di,getElementRects:e=>{let{reference:t,floating:i,strategy:n}=e;return{reference:r4(t,Js(i),n),floating:{...cc(i),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yt(e).direction==="rtl"};function m4(e,t,i,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:m=!0,elementResize:o=!0,animationFrame:c=!1}=n,a=r&&!c,d=m&&!c,g=a||d?[...ui(e)?qr(e):[],...qr(t)]:[];g.forEach(w=>{a&&w.addEventListener("scroll",i,{passive:!0}),d&&w.addEventListener("resize",i)});let T=null;if(o){let w=!0;T=new ResizeObserver(()=>{w||i(),w=!1}),ui(e)&&!c&&T.observe(e),T.observe(t)}let R,D=c?si(e):null;c&&S();function S(){const w=si(e);D&&(w.x!==D.x||w.y!==D.y||w.width!==D.width||w.height!==D.height)&&i(),D=w,R=requestAnimationFrame(S)}return i(),()=>{var w;g.forEach(P=>{a&&P.removeEventListener("scroll",i),d&&P.removeEventListener("resize",i)}),(w=T)==null||w.disconnect(),T=null,c&&cancelAnimationFrame(R)}}const hc=(e,t,i)=>jp(e,t,{platform:p4,...i});function g4(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}else return Array.from(e)}var ea=!1;if(typeof window<"u"){var fc={get passive(){ea=!0}};window.addEventListener("testPassive",null,fc),window.removeEventListener("testPassive",null,fc)}var Xr=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),wi=[],Kr=!1,pc=-1,en=void 0,Si=void 0,tn=void 0,mc=function(t){return wi.some(function(i){return!!(i.options.allowTouchMove&&i.options.allowTouchMove(t))})},Qr=function(t){var i=t||window.event;return mc(i.target)||i.touches.length>1?!0:(i.preventDefault&&i.preventDefault(),!1)},v4=function(t){if(tn===void 0){var i=!!t&&t.reserveScrollBarGap===!0,n=window.innerWidth-document.documentElement.clientWidth;if(i&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);tn=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}en===void 0&&(en=document.body.style.overflow,document.body.style.overflow="hidden")},b4=function(){tn!==void 0&&(document.body.style.paddingRight=tn,tn=void 0),en!==void 0&&(document.body.style.overflow=en,en=void 0)},C4=function(){return window.requestAnimationFrame(function(){if(Si===void 0){Si={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,i=t.scrollY,n=t.scrollX,r=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-i,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var m=r-window.innerHeight;m&&i>=r&&(document.body.style.top=-(i+m))})},300)}})},y4=function(){if(Si!==void 0){var t=-parseInt(document.body.style.top,10),i=-parseInt(document.body.style.left,10);document.body.style.position=Si.position,document.body.style.top=Si.top,document.body.style.left=Si.left,window.scrollTo(i,t),Si=void 0}},_4=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},w4=function(t,i){var n=t.targetTouches[0].clientY-pc;return mc(t.target)?!1:i&&i.scrollTop===0&&n>0||_4(i)&&n<0?Qr(t):(t.stopPropagation(),!0)},gc=function(t,i){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!wi.some(function(r){return r.targetElement===t})){var n={targetElement:t,options:i||{}};wi=[].concat(g4(wi),[n]),Xr?C4():v4(i),Xr&&(t.ontouchstart=function(r){r.targetTouches.length===1&&(pc=r.targetTouches[0].clientY)},t.ontouchmove=function(r){r.targetTouches.length===1&&w4(r,t)},Kr||(document.addEventListener("touchmove",Qr,ea?{passive:!1}:void 0),Kr=!0))}},ta=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}wi=wi.filter(function(i){return i.targetElement!==t}),Xr&&(t.ontouchstart=null,t.ontouchmove=null,Kr&&wi.length===0&&(document.removeEventListener("touchmove",Qr,ea?{passive:!1}:void 0),Kr=!1)),Xr?y4():b4()},S4=ni(function(e,t){(function(i,n){e.exports=n()})(Ft,function(){return function(){var i={d:function(x,h){for(var O in h)i.o(h,O)&&!i.o(x,O)&&Object.defineProperty(x,O,{enumerable:!0,get:h[O]})},o:function(x,h){return Object.prototype.hasOwnProperty.call(x,h)}},n={};i.d(n,{default:function(){return Se}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},m={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function o(x){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof x=="string"?h.querySelector(x):x}function c(){let{tagName:x="div",className:h="",innerHtml:O="",id:F="",attrs:u={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=document.createElement(x);return h&&v.classList.add(...h.split(" ")),F&&(v.id=F),O&&(v.innerHTML=O),u&&a(v,u),v}function a(x,h){for(let[O,F]of Object.entries(h))F!==void 0&&x.setAttribute(O,F);return x}function d(x){return new Date(x.getFullYear(),x.getMonth()+1,0).getDate()}function g(x){let h=x.getHours(),O=h%12==0?12:h%12;return{year:x.getFullYear(),month:x.getMonth(),fullMonth:x.getMonth()+1<10?"0"+(x.getMonth()+1):x.getMonth()+1,date:x.getDate(),fullDate:x.getDate()<10?"0"+x.getDate():x.getDate(),day:x.getDay(),hours:h,fullHours:T(h),hours12:O,fullHours12:T(O),minutes:x.getMinutes(),fullMinutes:x.getMinutes()<10?"0"+x.getMinutes():x.getMinutes()}}function T(x){return x<10?"0"+x:x}function R(x){let h=10*Math.floor(x.getFullYear()/10);return[h,h+9]}function D(){let x=[];for(var h=arguments.length,O=new Array(h),F=0;F<h;F++)O[F]=arguments[F];return O.forEach(u=>{if(typeof u=="object")for(let v in u)u[v]&&x.push(v);else u&&x.push(u)}),x.join(" ")}function S(x,h){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.days;if(!x||!h)return!1;let F=g(x),u=g(h);return{[r.days]:F.date===u.date&&F.month===u.month&&F.year===u.year,[r.months]:F.month===u.month&&F.year===u.year,[r.years]:F.year===u.year}[O]}function w(x,h,O){let F=j(x,!1).getTime(),u=j(h,!1).getTime();return O?F>=u:F>u}function P(x,h){return!w(x,h,!0)}function j(x){let h=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],O=new Date(x.getTime());return typeof h!="boolean"||h||f(O),O}function f(x){return x.setHours(0,0,0,0),x}function _(x,h,O){x.length?x.forEach(F=>{F.addEventListener(h,O)}):x.addEventListener(h,O)}function N(x,h){return!(!x||x===document||x instanceof DocumentFragment)&&(x.matches(h)?x:N(x.parentNode,h))}function k(x,h,O){return x>O?O:x<h?h:x}function z(x){for(var h=arguments.length,O=new Array(h>1?h-1:0),F=1;F<h;F++)O[F-1]=arguments[F];return O.filter(u=>u).forEach(u=>{for(let[v,y]of Object.entries(u))if(y!==void 0&&y.toString()==="[object Object]"){let L=x[v]!==void 0?x[v].toString():void 0,H=y.toString(),Y=Array.isArray(y)?[]:{};x[v]=x[v]?L!==H?Y:x[v]:Y,z(x[v],y)}else x[v]=y}),x}function B(x){let h=x;return x instanceof Date||(h=new Date(x)),isNaN(h.getTime())&&(console.log('Unable to convert value "'.concat(x,'" to Date object')),h=!1),h}function M(x){let h="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+h+")("+x+")($|<|"+h+")","g")}function $(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class A{constructor(){let{type:h,date:O,dp:F,opts:u,body:v}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),$(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),$(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),$(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),$(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),$(this,"onChangeFocusDate",y=>{if(!y)return void(this.focused&&this.removeFocus());let L=S(y,this.date,this.type);L?this.focus():!L&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),$(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this.$cell.adpCell=this,this.$cell)),this.type=h,this.singleType=this.type.slice(0,-1),this.date=O,this.dp=F,this.opts=u,this.body=v,this.customData=!1,this.init()}init(){let{range:h,onRenderCell:O}=this.opts;O&&(this.customData=O({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),h&&this._handleRangeStatus())}_bindDatepickerEvents(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var h;let{year:O,month:F,date:u}=g(this.date),v=((h=this.customData)===null||h===void 0?void 0:h.attrs)||{};this.$cell=c({className:this._getClassName(),attrs:{"data-year":O,"data-month":F,"data-date":u,...v}})}_getClassName(){var h,O;let F=new Date,{selectOtherMonths:u,selectOtherYears:v}=this.opts,{minDate:y,maxDate:L}=this.dp,{day:H}=g(this.date),Y=this._isOutOfMinMaxRange(),ie=(h=this.customData)===null||h===void 0?void 0:h.disabled,re=D("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":S(F,this.date,this.type),"-min-date-":y&&S(y,this.date,this.type),"-max-date-":L&&S(L,this.date,this.type)}),se="";switch(this.type){case r.days:se=D({"-weekend-":this.dp.isWeekend(H),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!u||Y||ie});break;case r.months:se=D({"-disabled-":Y||ie});break;case r.years:se=D({"-other-decade-":this.isOtherDecade,"-disabled-":Y||this.isOtherDecade&&!v||ie})}return D(re,se,(O=this.customData)===null||O===void 0?void 0:O.classes)}_getHtml(){var h;let{year:O,month:F,date:u}=g(this.date),{showOtherMonths:v,showOtherYears:y}=this.opts;if((h=this.customData)!==null&&h!==void 0&&h.html)return this.customData.html;switch(this.type){case r.days:return!v&&this.isOtherMonth?"":u;case r.months:return this.dp.locale[this.opts.monthsField][F];case r.years:return!y&&this.isOtherDecade?"":O}}_isOutOfMinMaxRange(){let{minDate:h,maxDate:O}=this.dp,{type:F,date:u}=this,{month:v,year:y,date:L}=g(u),H=F===r.days,Y=F===r.years,ie=!!h&&new Date(y,Y?h.getMonth():v,H?L:h.getDate()),re=!!O&&new Date(y,Y?O.getMonth():v,H?L:O.getDate());return h&&O?P(ie,h)||w(re,O):h?P(ie,h):O?w(re,O):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{rangeDateFrom:h,rangeDateTo:O}=this.dp,F=D({"-in-range-":h&&O&&(u=this.date,v=h,y=O,w(u,v)&&P(u,y)),"-range-from-":h&&S(this.date,h,this.type),"-range-to-":O&&S(this.date,O,this.type)});var u,v,y;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),F&&this.$cell.classList.add(...F.split(" "))}_handleSelectedStatus(){let h=this.dp._checkIfDateIsSelected(this.date,this.type);h?this.select():!h&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){S(this.dp.focusDate,this.date,this.type)&&this.focus()}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function p(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}let b={[r.days]:'<div class="air-datepicker-body--day-names"></div>'+'<div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),[r.months]:'<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),[r.years]:'<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>')};const E=".air-datepicker-cell";class I{constructor(h){let{dp:O,type:F,opts:u}=h;p(this,"handleClick",v=>{let y=v.target.closest(E).adpCell;if(y.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let L=this.dp._checkIfDateIsSelected(y.date,y.type);L?this.dp._handleAlreadySelectedDates(L,y.date):this.dp.selectDate(y.date)}),p(this,"handleDayNameClick",v=>{let y=v.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(y),datepicker:this.dp})}),p(this,"onChangeCurrentView",v=>{v!==this.type?this.hide():(this.show(),this.render())}),p(this,"onMouseOverCell",v=>{let y=N(v.target,E);this.dp.setFocusDate(!!y&&y.adpCell.date)}),p(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),p(this,"onClickBody",v=>{let{onClickDayName:y}=this.opts,L=v.target;L.closest(E)&&this.handleClick(v),y&&L.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(v)}),p(this,"onMouseDown",v=>{this.pressed=!0;let y=N(v.target,E),L=y&&y.adpCell;S(L.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),S(L.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),p(this,"onMouseMove",v=>{if(!this.pressed||!this.dp.isMinViewReached)return;v.preventDefault();let y=N(v.target,E),L=y&&y.adpCell,{selectedDates:H,rangeDateTo:Y,rangeDateFrom:ie}=this.dp;if(!L||L.isDisabled)return;let{date:re}=L;if(H.length===2){if(this.rangeFromFocused&&!w(re,Y)){let{hours:se,minutes:ve}=g(ie);re.setHours(se),re.setMinutes(ve),this.dp.rangeDateFrom=re,this.dp.replaceDate(ie,re)}if(this.rangeToFocused&&!P(re,ie)){let{hours:se,minutes:ve}=g(Y);re.setHours(se),re.setMinutes(ve),this.dp.rangeDateTo=re,this.dp.replaceDate(Y,re)}}}),p(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),p(this,"onChangeViewDate",(v,y)=>{if(!this.isVisible)return;let L=R(v),H=R(y);switch(this.dp.currentView){case r.days:if(S(v,y,r.months))return;break;case r.months:if(S(v,y,r.years))return;break;case r.years:if(L[0]===H[0]&&L[1]===H[1])return}this.render()}),p(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(v=>{this.$cells.appendChild(v.render())})}),this.dp=O,this.type=F,this.opts=u,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:h,dynamicRange:O}=this.opts;_(this.$el,"mouseover",this.onMouseOverCell),_(this.$el,"mouseout",this.onMouseOutCell),_(this.$el,"click",this.onClickBody),h&&O&&(_(this.$el,"mousedown",this.onMouseDown),_(this.$el,"mousemove",this.onMouseMove),_(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=c({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:b[this.type]}),this.$names=o(".air-datepicker-body--day-names",this.$el),this.$cells=o(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,O="",F=this.dp.isWeekend,{onClickDayName:u}=this.opts,v=h,y=0;for(;y<7;){let L=v%7,H=D("air-datepicker-body--day-name",{[r.cssClassWeekend]:F(L),"-clickable-":!!u}),Y=this.dp.locale.daysMin[L];O+='<div class="'.concat(H,`" data-day-index='`).concat(L,"'>").concat(Y,"</div>"),y++,v++}return O}_getDaysCells(){let{viewDate:h,locale:{firstDay:O}}=this.dp,F=d(h),{year:u,month:v}=g(h),y=new Date(u,v,1),L=new Date(u,v,F),H=y.getDay()-O,Y=6-L.getDay()+O;H=H<0?H+7:H,Y=Y>6?Y-7:Y;let ie=function(Ae,Fe){let{year:De,month:ze,date:Ye}=g(Ae);return new Date(De,ze,Ye-Fe)}(y,H),re=F+H+Y,se=ie.getDate(),{year:ve,month:me}=g(ie),we=0;for(;we<re;){let Ae=new Date(ve,me,se+we);this._generateCell(Ae),we++}}_generateCell(h){let{type:O,dp:F,opts:u}=this,v=new A({type:O,dp:F,opts:u,date:h,body:this});return this.cells.push(v),v}_generateDayCells(){this._getDaysCells()}_generateMonthCells(){let{year:h}=this.dp.parsedViewDate,O=0;for(;O<12;)this.cells.push(this._generateCell(new Date(h,O))),O++}_generateYearCells(){let h=R(this.dp.viewDate),O=h[0]-1,F=h[1]+1,u=O;for(;u<=F;)this.cells.push(this._generateCell(new Date(u,0))),u++}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCells(){switch(this.type){case r.days:this._generateDayCells();break;case r.months:this._generateMonthCells();break;case r.years:this._generateYearCells()}}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(h=>h.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)}}function V(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class q{constructor(h){let{dp:O,opts:F}=h;V(this,"onClickNav",u=>{let v=N(u.target,".air-datepicker-nav--action");if(!v)return;let y=v.dataset.action;this.dp[y]()}),V(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),V(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),V(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),V(this,"update",()=>{let{prevHtml:u,nextHtml:v}=this.opts;this.$prev.innerHTML=u,this.$next.innerHTML=v,this._resetNavStatus(),this.render(),this.handleNavStatus()}),V(this,"renderDelay",()=>{setTimeout(this.render)}),V(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(u,v){for(let y in v)v[y]?u.classList.add(y):u.classList.remove(y)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=O,this.opts=F,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=o(".air-datepicker-nav--title",this.$el),this.$prev=o('[data-action="prev"]',this.$el),this.$next=o('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))}destroy(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))}_createElement(){this.$el=c({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:h,opts:O}=this,F=O.navTitles[h.currentView];return typeof F=="function"?F(h):h.formatDate(h.viewDate,F)}handleNavStatus(){let{disableNavWhenOutOfRange:h}=this.opts,{minDate:O,maxDate:F}=this.dp;if(!O&&!F||!h)return;let{year:u,month:v}=this.dp.parsedViewDate,y=!!O&&g(O),L=!!F&&g(F);switch(this.dp.currentView){case r.days:O&&y.month>=v&&y.year>=u&&this._disableNav("prev"),F&&L.month<=v&&L.year<=u&&this._disableNav("next");break;case r.months:O&&y.year>=u&&this._disableNav("prev"),F&&L.year<=u&&this._disableNav("next");break;case r.years:{let H=R(this.dp.viewDate);O&&y.year>=H[0]&&this._disableNav("prev"),F&&L.year<=H[1]&&this._disableNav("next");break}}}_disableNav(h){o('[data-action="'+h+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(h){for(var O=arguments.length,F=new Array(O>1?O-1:0),u=1;u<O;u++)F[u-1]=arguments[u];h.length?h.forEach(v=>{v.classList.remove(...F)}):h.classList.remove(...F)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:h,nextHtml:O}=this.opts;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(h,"</div>")+'<div class="air-datepicker-nav--title"></div>'+'<div class="air-datepicker-nav--action" data-action="next">'.concat(O,"</div>")}get isNavIsFunction(){let{navTitles:h}=this.opts;return Object.keys(h).find(O=>typeof h[O]=="function")}}var W={today:{content:x=>x.locale.today,onClick:x=>x.setViewDate(new Date)},clear:{content:x=>x.locale.clear,onClick:x=>x.clear()}};class fe{constructor(h){let{dp:O,opts:F}=h;this.dp=O,this.opts=F,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=c({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:h}=this.opts;Array.isArray(h)||(h=[h]),h.forEach(O=>{let F=O;typeof O=="string"&&W[O]&&(F=W[O]);let u=this.createButton(F);F.onClick&&this.attachEventToButton(u,F.onClick),this.$el.appendChild(u)})}attachEventToButton(h,O){h.addEventListener("click",()=>{O(this.dp)})}createButton(h){let{content:O,className:F,tagName:u="button",attrs:v={}}=h,y=typeof O=="function"?O(this.dp):O;return c({tagName:u,innerHtml:"<span tabindex='-1'>".concat(y,"</span>"),className:D("air-datepicker-button",F),attrs:v})}render(){this.generateButtons()}}function ne(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class de{constructor(){let{opts:h,dp:O}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ne(this,"toggleTimepickerIsActive",u=>{this.dp.timepickerIsActive=u}),ne(this,"onChangeSelectedDate",u=>{let{date:v,updateTime:y=!1}=u;v&&(this.setMinMaxTime(v),this.setCurrentTime(!!y&&v),this.addTimeToDate(v))}),ne(this,"onChangeLastSelectedDate",u=>{u&&(this.setTime(u),this.render())}),ne(this,"onChangeInputRange",u=>{let v=u.target;this[v.getAttribute("name")]=v.value,this.updateText(),this.dp.trigger(r.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),ne(this,"onMouseEnterLeave",u=>{let v=u.target.getAttribute("name"),y=this.$minutesText;v==="hours"&&(y=this.$hoursText),y.classList.toggle("-focus-")}),ne(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),ne(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=h,this.dp=O;let{timeFormat:F}=this.dp.locale;F&&(F.match(M("h"))||F.match(M("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let h="input";navigator.userAgent.match(/trident/gi)&&(h="change"),_(this.$ranges,h,this.onChangeInputRange),_(this.$ranges,"mouseenter",this.onMouseEnterLeave),_(this.$ranges,"mouseleave",this.onMouseEnterLeave),_(this.$ranges,"focus",this.onFocus),_(this.$ranges,"mousedown",this.onFocus),_(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=c({className:D("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:h,hours:O,displayHours:F,minutes:u,minHours:v,minMinutes:y,maxHours:L,maxMinutes:H,dayPeriod:Y,opts:{hoursStep:ie,minutesStep:re}}=this;this.$el.innerHTML='<div class="air-datepicker-time--current">'+' <span class="air-datepicker-time--current-hours">'.concat(T(F),"</span>")+' <span class="air-datepicker-time--current-colon">:</span>'+' <span class="air-datepicker-time--current-minutes">'.concat(T(u),"</span>")+" ".concat(h?"<span class='air-datepicker-time--current-ampm'>".concat(Y,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(O,'" min="').concat(v,'" max="').concat(L,'" step="').concat(ie,'"/>')+' </div> <div class="air-datepicker-time--row">'+' <input type="range" name="minutes" value="'.concat(u,'" min="').concat(y,'" max="').concat(H,'" step="').concat(re,'"/>')+" </div></div>"}defineDOM(){let h=O=>o(O,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=h('[name="hours"]'),this.$minutes=h('[name="minutes"]'),this.$hoursText=h(".air-datepicker-time--current-hours"),this.$minutesText=h(".air-datepicker-time--current-minutes"),this.$ampm=h(".air-datepicker-time--current-ampm")}setTime(h){this.setMinMaxTime(h),this.setCurrentTime(h)}addTimeToDate(h){h&&(h.setHours(this.hours),h.setMinutes(this.minutes))}setMinMaxTime(h){if(this.setMinMaxTimeFromOptions(),h){let{minDate:O,maxDate:F}=this.dp;O&&S(h,O)&&this.setMinTimeFromMinDate(O),F&&S(h,F)&&this.setMaxTimeFromMaxDate(F)}}setCurrentTime(h){let{hours:O,minutes:F}=h?g(h):this;this.hours=k(O,this.minHours,this.maxHours),this.minutes=k(F,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:h,minMinutes:O,maxHours:F,maxMinutes:u}=this.opts;this.minHours=k(h,0,23),this.minMinutes=k(O,0,59),this.maxHours=k(F,0,23),this.maxMinutes=k(u,0,59)}setMinTimeFromMinDate(h){let{lastSelectedDate:O}=this.dp;this.minHours=h.getHours(),O&&O.getHours()>h.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=h.getMinutes()}setMaxTimeFromMaxDate(h){let{lastSelectedDate:O}=this.dp;this.maxHours=h.getHours(),O&&O.getHours()<h.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=h.getMinutes()}getDayPeriod(h,O){let F=h,u=Number(h);h instanceof Date&&(F=g(h),u=Number(F.hours));let v="am";if(O||this.ampm){switch(!0){case u===12:case u>11:v="pm"}u=u%12==0?12:u%12}return{hours:u,dayPeriod:v}}updateSliders(){a(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,a(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=T(this.displayHours),this.$minutesText.innerHTML=T(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(h){this._hours=h;let{hours:O,dayPeriod:F}=this.getDayPeriod(h);this.displayHours=O,this.dayPeriod=F}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function le(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class X{constructor(h){let{dp:O,opts:F}=h;le(this,"pressedKeys",new Set),le(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],u=>u.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],u=>u.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],u=>u.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],u=>u.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],u=>u.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],u=>u.year-=10],[["Control","Shift","ArrowUp"],(u,v)=>v.up()]])),le(this,"handleHotKey",u=>{let v=this.hotKeys.get(u),y=g(this.getInitialFocusDate());v(y,this.dp);let{year:L,month:H,date:Y}=y,ie=d(new Date(L,H));ie<Y&&(Y=ie);let re=this.dp.getClampedDate(new Date(L,H,Y));this.dp.setFocusDate(re,{viewDateTransition:!0})}),le(this,"isHotKeyPressed",()=>{let u=!1,v=this.pressedKeys.size,y=L=>this.pressedKeys.has(L);for(let[L]of this.hotKeys){if(u)break;if(Array.isArray(L[0]))L.forEach(H=>{u||v!==H.length||(u=H.every(y)&&L)});else{if(v!==L.length)continue;u=L.every(y)&&L}}return u}),le(this,"isArrow",u=>u>=37&&u<=40),le(this,"onKeyDown",u=>{let{key:v,which:y}=u,{dp:L,dp:{focusDate:H},opts:Y}=this;this.registerKey(v);let ie=this.isHotKeyPressed();if(ie)return u.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(y))return u.preventDefault(),void this.focusNextCell(v);if(v==="Enter"){if(L.currentView!==Y.minView)return void L.down();if(H){let re=L._checkIfDateIsSelected(H);return void(re?L._handleAlreadySelectedDates(re,H):L.selectDate(H))}}v==="Escape"&&this.dp.hide()}),le(this,"onKeyUp",u=>{this.removeKey(u.key)}),this.dp=O,this.opts=F,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:h}=this.dp;h.addEventListener("keydown",this.onKeyDown),h.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:h}=this.dp;h.removeEventListener("keydown",this.onKeyDown),h.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:h,currentView:O,selectedDates:F,parsedViewDate:{year:u,month:v}}=this.dp,y=h||F[F.length-1];if(!y)switch(O){case r.days:y=new Date(u,v,new Date().getDate());break;case r.months:y=new Date(u,v,1);break;case r.years:y=new Date(u,0,1)}return y}focusNextCell(h){let O=this.getInitialFocusDate(),{currentView:F}=this.dp,{days:u,months:v,years:y}=r,L=g(O),H=L.year,Y=L.month,ie=L.date;switch(h){case"ArrowLeft":F===u&&(ie-=1),F===v&&(Y-=1),F===y&&(H-=1);break;case"ArrowUp":F===u&&(ie-=7),F===v&&(Y-=3),F===y&&(H-=4);break;case"ArrowRight":F===u&&(ie+=1),F===v&&(Y+=1),F===y&&(H+=1);break;case"ArrowDown":F===u&&(ie+=7),F===v&&(Y+=3),F===y&&(H+=4)}let re=this.dp.getClampedDate(new Date(H,Y,ie));this.dp.setFocusDate(re,{viewDateTransition:!0})}registerKey(h){this.pressedKeys.add(h)}removeKey(h){this.pressedKeys.delete(h)}}let K={on(x,h){this.__events||(this.__events={}),this.__events[x]?this.__events[x].push(h):this.__events[x]=[h]},off(x,h){this.__events&&this.__events[x]&&(this.__events[x]=this.__events[x].filter(O=>O!==h))},removeAllEvents(){this.__events={}},trigger(x){for(var h=arguments.length,O=new Array(h>1?h-1:0),F=1;F<h;F++)O[F-1]=arguments[F];this.__events&&this.__events[x]&&this.__events[x].forEach(u=>{u(...O)})}};function G(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}let Z="",ue="",be="",Te=!1;class Se{constructor(h,O){var F=this;if(G(this,"viewIndexes",[r.days,r.months,r.years]),G(this,"next",()=>{let{year:y,month:L}=this.parsedViewDate;switch(this.currentView){case r.days:this.setViewDate(new Date(y,L+1,1));break;case r.months:this.setViewDate(new Date(y+1,L,1));break;case r.years:this.setViewDate(new Date(y+10,0,1))}}),G(this,"prev",()=>{let{year:y,month:L}=this.parsedViewDate;switch(this.currentView){case r.days:this.setViewDate(new Date(y,L-1,1));break;case r.months:this.setViewDate(new Date(y-1,L,1));break;case r.years:this.setViewDate(new Date(y-10,0,1))}}),G(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),G(this,"setPosition",function(y){let L=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(y=y||F.opts.position)=="function")return void(F.customHide=y({$datepicker:F.$datepicker,$target:F.$el,$pointer:F.$pointer,isViewChange:L,done:F._finishHide}));let H,Y,{isMobile:ie}=F.opts,re=F.$el.getBoundingClientRect(),se=F.$el.getBoundingClientRect(),ve=F.$datepicker.offsetParent,me=F.$el.offsetParent,we=F.$datepicker.getBoundingClientRect(),Ae=y.split(" "),Fe=window.scrollY,De=window.scrollX,ze=F.opts.offset,Ye=Ae[0],We=Ae[1];if(ie)F.$datepicker.style.cssText="left: 50%; top: 50%";else{if(ve===me&&ve!==document.body&&(se={top:F.$el.offsetTop,left:F.$el.offsetLeft,width:re.width,height:F.$el.offsetHeight},Fe=0,De=0),ve!==me&&ve!==document.body){let Ne=ve.getBoundingClientRect();se={top:re.top-Ne.top,left:re.left-Ne.left,width:re.width,height:re.height},Fe=0,De=0}switch(Ye){case"top":H=se.top-we.height-ze;break;case"right":Y=se.left+se.width+ze;break;case"bottom":H=se.top+se.height+ze;break;case"left":Y=se.left-we.width-ze}switch(We){case"top":H=se.top;break;case"right":Y=se.left+se.width-we.width;break;case"bottom":H=se.top+se.height-we.height;break;case"left":Y=se.left;break;case"center":/left|right/.test(Ye)?H=se.top+se.height/2-we.height/2:Y=se.left+se.width/2-we.width/2}F.$datepicker.style.cssText="left: ".concat(Y+De,"px; top: ").concat(H+Fe,"px")}}),G(this,"_setInputValue",()=>{let{opts:y,$altField:L,locale:{dateFormat:H}}=this,{altFieldDateFormat:Y,altField:ie}=y;ie&&L&&(L.value=this._getInputValue(Y)),this.$el.value=this._getInputValue(H)}),G(this,"_getInputValue",y=>{let{selectedDates:L,opts:H}=this,{multipleDates:Y,multipleDatesSeparator:ie}=H;if(!L.length)return"";let re=typeof y=="function",se=re?y(Y?L:L[0]):L.map(ve=>this.formatDate(ve,y));return se=re?se:se.join(ie),se}),G(this,"_checkIfDateIsSelected",function(y){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.days,H=!1;return F.selectedDates.some(Y=>{let ie=S(y,Y,L);return H=ie&&Y,ie}),H}),G(this,"_scheduleCallAfterTransition",y=>{this._cancelScheduledCall(),y&&y(!1),this._onTransitionEnd=()=>{y&&y(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),G(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),G(this,"setViewDate",y=>{if(!((y=B(y))instanceof Date)||S(y,this.viewDate))return;let L=this.viewDate;this.viewDate=y;let{onChangeViewDate:H}=this.opts;if(H){let{month:Y,year:ie}=this.parsedViewDate;H({month:Y,year:ie,decade:this.curDecade})}this.trigger(r.eventChangeViewDate,y,L)}),G(this,"setFocusDate",function(y){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!y||(y=B(y))instanceof Date)&&(F.focusDate=y,F.opts.range&&y&&F._handleRangeOnFocus(),F.trigger(r.eventChangeFocusDate,y,L))}),G(this,"setCurrentView",y=>{if(this.viewIndexes.includes(y)){if(this.currentView=y,this.elIsInput&&this.visible&&this.setPosition(void 0,!0),this.trigger(r.eventChangeCurrentView,y),!this.views[y]){let L=this.views[y]=new I({dp:this,opts:this.opts,type:y});this.shouldUpdateDOM&&this.$content.appendChild(L.$el)}this.opts.onChangeView&&this.opts.onChangeView(y)}}),G(this,"_updateLastSelectedDate",y=>{this.lastSelectedDate=y,this.trigger(r.eventChangeLastSelectedDate,y)}),G(this,"destroy",()=>{let{showEvent:y,isMobile:L}=this.opts,H=this.$datepicker.parentNode;H&&H.removeChild(this.$datepicker),this.$el.removeEventListener(y,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),L&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts=null,this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=null,this.rangeDateFrom=null,this.rangeDateTo=null}),G(this,"update",y=>{let L=z({},this.opts);z(this.opts,y);let{timepicker:H,buttons:Y,range:ie,selectedDates:re,isMobile:se}=this.opts,ve=this.visible||this.treatAsInline;this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this._handleLocale(),!L.selectedDates&&re&&this.selectDate(re),y.view&&this.setCurrentView(y.view),this._setInputValue(),L.range&&!ie?(this.rangeDateTo=!1,this.rangeDateFrom=!1):!L.range&&ie&&this.selectedDates.length&&(this.rangeDateFrom=this.selectedDates[0],this.rangeDateTo=this.selectedDates[1]),L.timepicker&&!H?(ve&&this.timepicker.destroy(),this.timepicker=!1,this.$timepicker.parentNode.removeChild(this.$timepicker)):!L.timepicker&&H&&this._addTimepicker(),!L.buttons&&Y?this._addButtons():L.buttons&&!Y?(this.buttons.destroy(),this.$buttons.parentNode.removeChild(this.$buttons)):ve&&L.buttons&&Y&&this.buttons.clearHtml().render(),!L.isMobile&&se?(this.treatAsInline||be||this._createMobileOverlay(),this._addMobileAttributes(),this.visible&&this._showMobileOverlay()):L.isMobile&&!se&&(this._removeMobileAttributes(),this.visible&&(be.classList.remove("-active-"),typeof this.opts.position!="function"&&this.setPosition())),ve&&(this.nav.update(),this.views[this.currentView].render(),this.currentView===r.days&&this.views[this.currentView].renderDayNames())}),G(this,"isOtherMonth",y=>{let{month:L}=g(y);return L!==this.parsedViewDate.month}),G(this,"isOtherYear",y=>{let{year:L}=g(y);return L!==this.parsedViewDate.year}),G(this,"isOtherDecade",y=>{let{year:L}=g(y),[H,Y]=R(this.viewDate);return L<H||L>Y}),G(this,"_onChangeSelectedDate",y=>{let{silent:L}=y;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!L&&this._triggerOnSelect()})}),G(this,"_onChangeFocusedDate",function(y){let{viewDateTransition:L}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y)return;let H=!1;L&&(H=F.isOtherMonth(y)||F.isOtherYear(y)||F.isOtherDecade(y)),H&&F.setViewDate(y)}),G(this,"_onChangeTime",y=>{let{hours:L,minutes:H}=y,Y=new Date,{lastSelectedDate:ie,opts:{onSelect:re}}=this,se=ie;ie||(se=Y);let ve=this.getCell(se,this.currentViewSingular),me=ve&&ve.adpCell;me&&me.isDisabled||(se.setHours(L),se.setMinutes(H),ie?(this._setInputValue(),re&&this._triggerOnSelect()):this.selectDate(se))}),G(this,"_onFocus",y=>{this.visible||this.show()}),G(this,"_onBlur",y=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),G(this,"_onMouseDown",y=>{this.inFocus=!0}),G(this,"_onMouseUp",y=>{this.inFocus=!1,this.$el.focus()}),G(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),G(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),G(this,"isWeekend",y=>this.opts.weekends.includes(y)),G(this,"getClampedDate",y=>{let{minDate:L,maxDate:H}=this,Y=y;return H&&w(y,H)?Y=H:L&&P(y,L)&&(Y=L),Y}),this.$el=o(h),!this.$el)return;this.$datepicker=c({className:"air-datepicker"}),this.opts=z({},m,O),this.$customContainer=!!this.opts.container&&o(this.opts.container),this.$altField=o(this.opts.altField||!1),Z||(Z=o("body"));let{view:u,startDate:v}=this.opts;v||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=B(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=u,this.selectedDates=[],this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:h,treatAsInline:O,opts:{inline:F,isMobile:u,selectedDates:v,keyboardNav:y,onlyTimepicker:L}}=this;var H;Te||F||!this.elIsInput||(Te=!0,ue=c({className:H=Se.defaultContainerId,id:H}),Z.appendChild(ue)),!u||be||O||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(F||this._bindEvents(),y&&!L&&(this.keyboardNav=new X({dp:this,opts:h}))),v&&this.selectDate(v,{silent:!0}),this.opts.visible&&!O&&this.show(),u&&!O&&this.$el.setAttribute("readonly",!0),O&&this._createComponents()}_createMobileOverlay(){be=c({className:"air-datepicker-overlay"}),ue.appendChild(be)}_createComponents(){let{opts:h,treatAsInline:O,opts:{inline:F,buttons:u,timepicker:v,position:y,classes:L,onlyTimepicker:H,isMobile:Y}}=this;this._buildBaseHtml(),this.elIsInput&&(F||this._setPositionClasses(y)),!F&&this.elIsInput||this.$datepicker.classList.add("-inline-"),L&&this.$datepicker.classList.add(...L.split(" ")),H&&this.$datepicker.classList.add("-only-timepicker-"),Y&&!O&&this._addMobileAttributes(),this.views[this.currentView]=new I({dp:this,type:this.currentView,opts:h}),this.nav=new q({dp:this,opts:h}),v&&this._addTimepicker(),u&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let h in this.views)this.views[h].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){be.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){be.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:h,maxDate:O}=this.opts;this.minDate=!!h&&B(h),this.maxDate=!!O&&B(O)}_addTimepicker(){this.$timepicker=c({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new de({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=c({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new fe({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:h}=this.opts;var O,F;this.elIsInput?h?(O=this.$datepicker,(F=this.$el).parentNode.insertBefore(O,F.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=o(".air-datepicker--content",this.$datepicker),this.$pointer=o(".air-datepicker--pointer",this.$datepicker),this.$nav=o(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:h,dateFormat:O,firstDay:F,timepicker:u,onlyTimepicker:v,timeFormat:y,dateTimeSeparator:L}=this.opts;var H;this.locale=(H=h,JSON.parse(JSON.stringify(H))),O&&(this.locale.dateFormat=O),y!==void 0&&y!==""&&(this.locale.timeFormat=y);let{timeFormat:Y}=this.locale;if(F!==""&&(this.locale.firstDay=F),u&&typeof O!="function"){let ie=Y?L:"";this.locale.dateFormat=[this.locale.dateFormat,Y||""].join(ie)}v&&typeof O!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(h){if(typeof h=="function")return void this.$datepicker.classList.add("-custom-position-");let O=(h=h.split(" "))[0],F=h[1],u="air-datepicker -".concat(O,"-").concat(F,"- -from-").concat(O,"-");this.$datepicker.classList.add(...u.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:h,minDate:O,maxDate:F}=this;F&&w(h,F)&&this.setViewDate(F),O&&P(h,O)&&this.setViewDate(O)}formatDate(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,O=arguments.length>1?arguments[1]:void 0;if(h=B(h),!(h instanceof Date))return;let F=O,u=this.locale,v=g(h),y=R(h),L=Se.replacer,H="am";this.opts.timepicker&&this.timepicker&&(H=this.timepicker.getDayPeriod(h).dayPeriod);let Y={T:h.getTime(),m:v.minutes,mm:v.fullMinutes,h:v.hours12,hh:v.fullHours12,H:v.hours,HH:v.fullHours,aa:H,AA:H.toUpperCase(),E:u.daysShort[v.day],EEEE:u.days[v.day],d:v.date,dd:v.fullDate,M:v.month+1,MM:v.fullMonth,MMM:u.monthsShort[v.month],MMMM:u.months[v.month],yy:v.year.toString().slice(-2),yyyy:v.year,yyyy1:y[0],yyyy2:y[1]};for(let[ie,re]of Object.entries(Y))F=L(F,M(ie),re);return F}down(h){this._handleUpDownActions(h,"down")}up(h){this._handleUpDownActions(h,"up")}selectDate(h){let O,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:u,parsedViewDate:v,selectedDates:y}=this,{updateTime:L}=F,{moveToOtherMonthsOnSelect:H,moveToOtherYearsOnSelect:Y,multipleDates:ie,range:re,autoClose:se}=this.opts,ve=y.length;if(Array.isArray(h))return h.forEach(me=>{this.selectDate(me,F)}),new Promise(me=>{setTimeout(me)});if((h=B(h))instanceof Date){if(u===r.days&&h.getMonth()!==v.month&&H&&(O=new Date(h.getFullYear(),h.getMonth(),1)),u===r.years&&h.getFullYear()!==v.year&&Y&&(O=new Date(h.getFullYear(),0,1)),O&&this.setViewDate(O),ie&&!re){if(ve===ie)return;this._checkIfDateIsSelected(h)||y.push(h)}else if(re)switch(ve){case 1:y.push(h),this.rangeDateTo||(this.rangeDateTo=h),w(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=h),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[h],this.rangeDateFrom=h,this.rangeDateTo="";break;default:this.selectedDates=[h],this.rangeDateFrom=h}else this.selectedDates=[h];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:F==null?void 0:F.silent,date:h,updateTime:L}),this._updateLastSelectedDate(h),se&&!this.timepickerIsActive&&this.visible&&(ie||re?re&&ve===1&&this.hide():this.hide()),new Promise(me=>{setTimeout(me)})}}unselectDate(h){let O=this.selectedDates,F=this;if((h=B(h))instanceof Date)return O.some((u,v)=>{if(S(u,h))return O.splice(v,1),F.selectedDates.length?F._updateLastSelectedDate(F.selectedDates[F.selectedDates.length-1]):(F.rangeDateFrom="",F.rangeDateTo="",F._updateLastSelectedDate(!1)),this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:h}),!0})}replaceDate(h,O){let F=this.selectedDates.find(v=>S(v,h,this.currentView)),u=this.selectedDates.indexOf(F);u<0||S(this.selectedDates[u],O,this.currentView)||(this.selectedDates[u]=O,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:O,updateTime:!0}),this._updateLastSelectedDate(O))}clear(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:h.silent}),new Promise(O=>{setTimeout(O)})}show(){let{onShow:h,isMobile:O}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,h&&this._scheduleCallAfterTransition(h),O&&this._showMobileOverlay()}hide(){let{onHide:h,isMobile:O}=this.opts,F=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(u=>{!this.customHide&&(u&&F||!u&&!F)&&this._finishHide(),h&&h(u)}),O&&be.classList.remove("-active-")}_triggerOnSelect(){let h=[],O=[],{selectedDates:F,locale:u,opts:{onSelect:v,multipleDates:y,range:L}}=this,H=y||L,Y=typeof u.dateFormat=="function";F.length&&(h=F.map(j),O=Y?y?u.dateFormat(h):h.map(ie=>u.dateFormat(ie)):h.map(ie=>this.formatDate(ie,u.dateFormat))),v({date:H?h:h[0],formattedDate:H?O:O[0],datepicker:this})}_handleAlreadySelectedDates(h,O){let{range:F,toggleSelected:u}=this.opts;F?u?this.unselectDate(O):this.selectedDates.length!==2&&this.selectDate(O):u&&this.unselectDate(O),u||this._updateLastSelectedDate(h)}_handleUpDownActions(h,O){if(!((h=B(h||this.focusDate||this.viewDate))instanceof Date))return;let F=O==="up"?this.viewIndex+1:this.viewIndex-1;F>2&&(F=2),F<0&&(F=0),this.setViewDate(new Date(h.getFullYear(),h.getMonth(),1)),this.setCurrentView(this.viewIndexes[F])}_handleRangeOnFocus(){this.selectedDates.length===1&&(w(this.selectedDates[0],this.focusDate)?(this.rangeDateTo=this.selectedDates[0],this.rangeDateFrom=this.focusDate):(this.rangeDateTo=this.focusDate,this.rangeDateFrom=this.selectedDates[0]))}getCell(h){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.day;if(!((h=B(h))instanceof Date))return;let{year:F,month:u,date:v}=g(h),y='[data-year="'.concat(F,'"]'),L='[data-month="'.concat(u,'"]'),H='[data-date="'.concat(v,'"]'),Y={[r.day]:"".concat(y).concat(L).concat(H),[r.month]:"".concat(y).concat(L),[r.year]:"".concat(y)};return this.views[this.currentView].$el.querySelector(Y[O])}_showMobileOverlay(){be.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((h,O)=>parseFloat(O)+h,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return g(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return R(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===r.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===r.days}get $container(){return this.$customContainer||ue}static replacer(h,O,F){return h.replace(O,function(u,v,y,L){return v+F+L})}}var te;return G(Se,"defaults",m),G(Se,"version","3.3.0"),G(Se,"defaultContainerId","air-datepicker-global-container"),te=Se.prototype,Object.assign(te,K),n.default}()})}),x4=ni(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};t.default=i});const k4=r1(x4),A4=':host{display:block}:host *{box-sizing:border-box}.date-picker{padding:var(--s-space-8) var(--s-space-16);background-color:var(--s-surface-overlay-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);letter-spacing:var(--s-letter-spacing-tighter)}@media (min-width: 768px){.date-picker{max-width:17.5rem}}.air-datepicker--pointer{display:none}.air-datepicker-nav{display:flex;margin-bottom:var(--s-space-8);align-items:center;gap:var(--s-space-4)}.air-datepicker-nav--action{position:relative;display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-highlight);cursor:pointer;order:2}.air-datepicker-nav--action:hover{background-color:var(--s-surface-overlay-hovered)}.air-datepicker-nav--title{padding:var(--s-space-8);flex-grow:1;border-radius:var(--s-border-radius-s);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left;cursor:pointer;order:0}.air-datepicker-nav--title i{font-style:normal}.air-datepicker-body--day-names{display:flex;margin-bottom:var(--s-space-8);justify-content:space-between;align-items:center}.air-datepicker-body--day-name{display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;color:var(--s-text-subdued);aspect-ratio:1}.air-datepicker-body--cells{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between}.air-datepicker-body--cells.-months-{gap:var(--s-space-2)}.air-datepicker-cell{position:relative;display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;font-weight:var(--s-font-weight-medium);cursor:pointer;aspect-ratio:1}.air-datepicker-cell:not(.-month-):not(.-year-):not(.-in-range-):hover:before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-overlay-hovered);content:"";inset:0}.air-datepicker-cell.-month-,.air-datepicker-cell.-year-{height:2.5rem;flex-basis:calc(100 / 3 * 1% - var(--s-space-2) * 2);border-radius:var(--s-border-radius-s);aspect-ratio:auto}.air-datepicker-cell.-month-.-in-range-:before,.air-datepicker-cell.-year-.-in-range-:before{border-radius:var(--s-border-radius-s)}.air-datepicker-cell.-month-:hover:not(.-in-range-):not(.-selected-),.air-datepicker-cell.-year-:hover:not(.-in-range-):not(.-selected-){background-color:var(--s-surface-overlay-hovered)}.air-datepicker-cell.-other-month-{color:var(--s-text-subdued)}.air-datepicker-cell.-current-:not(.-month-):not(.-year-):after{position:absolute;z-index:-1;border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:50%;content:"";inset:0}.air-datepicker-cell.-selected-{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-selected-.-year-,.air-datepicker-cell.-selected-.-month-{background-color:var(--s-surface-highlight-default)}.air-datepicker-cell.-selected-:not(.-month-):not(.-year-):not(.-in-range-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-disabled-{color:var(--s-text-subdued);cursor:default}.air-datepicker-cell.-disabled-:hover{background-color:transparent}.air-datepicker-cell.-in-range-:before{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):after{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:50%;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):after{position:absolute;z-index:-1;top:0.0625rem;right:50%;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.-hidden-{display:none}',vc=class{constructor(e){Le(this,e),this.valueChange=Ct(this,"valueChange",3),this.locale=k4,this.onClick=t=>{t.stopPropagation(),t.preventDefault()}}watchProps(){this.init()}componentDidLoad(){this.init()}disconnectedCallback(){var e;(e=this.picker)===null||e===void 0||e.destroy()}init(){var e;(e=this.picker)===null||e===void 0||e.destroy(),this.picker=new S4(this.containerEl,{classes:"date-picker",inline:!0,locale:this.locale,maxDate:this.maxDate,minDate:this.minDate,minView:"days",nextHtml:"<flip-icon-chevron-right></flip-icon-chevron-right>",onSelect:({date:t})=>{this.valueChange.emit(t)},prevHtml:"<flip-icon-chevron-left></flip-icon-chevron-left>",range:this.range,selectedDates:this.value===void 0?void 0:Array.isArray(this.value)?this.value:[this.value],startDate:this.startDate,toggleSelected:!this.range,view:"days"})}render(){return l(et,{onClick:this.onClick},l("div",{ref:e=>this.containerEl=e}))}static get watchers(){return{locale:["watchProps"],maxDate:["watchProps"],minDate:["watchProps"],range:["watchProps"],startDate:["watchProps"],value:["watchProps"]}}};vc.style=A4;const T4=":host{display:inline-flex}",bc=class{constructor(e){Le(this,e),this.size=24}render(){return l("svg",{class:"flip-icon",fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${this.size} ${this.size}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&l(pe,null,l("path",{d:"M6 11C5.53333 11 5.13889 10.8389 4.81667 10.5167C4.49444 10.1945 4.33333 9.80004 4.33333 9.33337C4.33333 8.86671 4.49444 8.47226 4.81667 8.15004C5.13889 7.82782 5.53333 7.66671 6 7.66671C6.46667 7.66671 6.86111 7.82782 7.18333 8.15004C7.50556 8.47226 7.66667 8.86671 7.66667 9.33337C7.66667 9.80004 7.50556 10.1945 7.18333 10.5167C6.86111 10.8389 6.46667 11 6 11ZM3.33333 14.6667C2.96667 14.6667 2.65267 14.5363 2.39133 14.2754C2.13044 14.014 2 13.7 2 13.3334V4.00004C2 3.63337 2.13044 3.3196 2.39133 3.05871C2.65267 2.79737 2.96667 2.66671 3.33333 2.66671H4V2.00004C4 1.81115 4.06378 1.65271 4.19133 1.52471C4.31933 1.39715 4.47778 1.33337 4.66667 1.33337C4.85556 1.33337 5.014 1.39715 5.142 1.52471C5.26956 1.65271 5.33333 1.81115 5.33333 2.00004V2.66671H10.6667V2.00004C10.6667 1.81115 10.7307 1.65271 10.8587 1.52471C10.9862 1.39715 11.1444 1.33337 11.3333 1.33337C11.5222 1.33337 11.6804 1.39715 11.808 1.52471C11.936 1.65271 12 1.81115 12 2.00004V2.66671H12.6667C13.0333 2.66671 13.3473 2.79737 13.6087 3.05871C13.8696 3.3196 14 3.63337 14 4.00004V13.3334C14 13.7 13.8696 14.014 13.6087 14.2754C13.3473 14.5363 13.0333 14.6667 12.6667 14.6667H3.33333ZM3.33333 13.3334H12.6667V6.66671H3.33333V13.3334Z",fill:"currentColor"})),this.size===24&&l(pe,null,l("path",{d:"M9 16.5C8.3 16.5 7.70833 16.2583 7.225 15.775C6.74167 15.2917 6.5 14.7 6.5 14C6.5 13.3 6.74167 12.7083 7.225 12.225C7.70833 11.7417 8.3 11.5 9 11.5C9.7 11.5 10.2917 11.7417 10.775 12.225C11.2583 12.7083 11.5 13.3 11.5 14C11.5 14.7 11.2583 15.2917 10.775 15.775C10.2917 16.2583 9.7 16.5 9 16.5ZM5 22C4.45 22 3.979 21.8043 3.587 21.413C3.19567 21.021 3 20.55 3 20V6C3 5.45 3.19567 4.97933 3.587 4.588C3.979 4.196 4.45 4 5 4H6V3C6 2.71667 6.09567 2.479 6.287 2.287C6.479 2.09567 6.71667 2 7 2C7.28333 2 7.521 2.09567 7.713 2.287C7.90433 2.479 8 2.71667 8 3V4H16V3C16 2.71667 16.096 2.479 16.288 2.287C16.4793 2.09567 16.7167 2 17 2C17.2833 2 17.5207 2.09567 17.712 2.287C17.904 2.479 18 2.71667 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.8043 4.97933 21 5.45 21 6V20C21 20.55 20.8043 21.021 20.413 21.413C20.021 21.8043 19.55 22 19 22H5ZM5 20H19V10H5V20Z",fill:"currentColor"})),this.size===28&&l(pe,null,l("path",{d:"M10.5 19.25C9.68333 19.25 8.99306 18.9681 8.42917 18.4042C7.86528 17.8403 7.58333 17.15 7.58333 16.3334C7.58333 15.5167 7.86528 14.8264 8.42917 14.2625C8.99306 13.6987 9.68333 13.4167 10.5 13.4167C11.3167 13.4167 12.0069 13.6987 12.5708 14.2625C13.1347 14.8264 13.4167 15.5167 13.4167 16.3334C13.4167 17.15 13.1347 17.8403 12.5708 18.4042C12.0069 18.9681 11.3167 19.25 10.5 19.25ZM5.83333 25.6667C5.19167 25.6667 4.64217 25.4384 4.18483 24.9819C3.72828 24.5245 3.5 23.975 3.5 23.3334V7.00004C3.5 6.35837 3.72828 5.80926 4.18483 5.35271C4.64217 4.89537 5.19167 4.66671 5.83333 4.66671H7V3.50004C7 3.16949 7.11161 2.89221 7.33483 2.66821C7.55883 2.44499 7.83611 2.33337 8.16667 2.33337C8.49722 2.33337 8.7745 2.44499 8.9985 2.66821C9.22172 2.89221 9.33333 3.16949 9.33333 3.50004V4.66671H18.6667V3.50004C18.6667 3.16949 18.7787 2.89221 19.0027 2.66821C19.2259 2.44499 19.5028 2.33337 19.8333 2.33337C20.1639 2.33337 20.4408 2.44499 20.664 2.66821C20.888 2.89221 21 3.16949 21 3.50004V4.66671H22.1667C22.8083 4.66671 23.3578 4.89537 23.8152 5.35271C24.2717 5.80926 24.5 6.35837 24.5 7.00004V23.3334C24.5 23.975 24.2717 24.5245 23.8152 24.9819C23.3578 25.4384 22.8083 25.6667 22.1667 25.6667H5.83333ZM5.83333 23.3334H22.1667V11.6667H5.83333V23.3334Z",fill:"currentColor"})))}};bc.style=T4;const P4=":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:none;animation:none}}.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-slide-in;animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;-webkit-animation:0.15s popover-fade-scale-in;animation:0.15s popover-fade-scale-in}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--closing .popover__backdrop{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{-webkit-animation:none;animation:none}}.popover--closing .popover__content{-webkit-animation:0.15s popover-slide-out;animation:0.15s popover-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--inactive .popover__content{display:none}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);-webkit-animation:0.15s popover-backdrop-fade-in;animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{-webkit-animation:none;animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-xl);-webkit-animation:none;animation:none;box-shadow:0.125rem 0.25rem 2.5rem rgba(0, 0, 0, 0.14)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@-webkit-keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}",Cc=class{constructor(e){Le(this,e),this.placement="bottom-start",this.active=!1,this.closing=!1,this.onFocusOut=t=>{if(!this.active)return;const i=t.relatedTarget||t.target;!this.el.contains(i)&&this.close()},this.toggle=t=>{t.stopPropagation(),this.active?this.close():this.open()},this.onKeydown=t=>{t.code==="Escape"&&this.active&&this.close()},this.reposition=async()=>{const t=a1();if(!(!Boolean(this.triggerEl)||!Boolean(this.contentContainer))){if(t){this.position=void 0;return}this.position=await hc(this.triggerEl,this.contentContainer,{middleware:[ec(),Jl()],placement:this.placement,strategy:"fixed"})}}}componentDidLoad(){this.connectTrigger(),this.updateChildMenuItems(),this.updateTriggerAttributes()}disconnectedCallback(){ta(this.scrollContainer)}onWindowClick(e){const t=e.target;this.el.contains(t)||this.close()}async close(){var e;this.closing||(this.disableAutoUpdate&&this.disableAutoUpdate(),this.closing=!0,setTimeout(()=>{this.active=!1,this.closing=!1,this.updateTriggerAttributes()},150),this.unlockBodyScroll(),(e=this.triggerEl)===null||e===void 0||e.focus())}async open(){this.active=!0,this.updateChildMenuItems(),this.updateTriggerAttributes(),requestAnimationFrame(async()=>{await this.reposition(),this.childMenuItems.length>0?this.childMenuItems[0].focus():this.contentContainer.focus(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.disableAutoUpdate=m4(this.triggerEl,this.contentContainer,this.reposition),this.scrollContainer.scrollTop=0,this.lockBodyScroll()})}connectTrigger(){var e;const t=kn(document.body,`#${this.trigger}`)[0];this.triggerEl=(t==null?void 0:t.children[0])||((e=t==null?void 0:t.shadowRoot)===null||e===void 0?void 0:e.children[0])||t,Boolean(this.triggerEl)&&this.triggerEl.addEventListener("click",this.toggle)}updateTriggerAttributes(){!Boolean(this.triggerEl)||(this.triggerEl.setAttribute("aria-controls",this.popoverId),this.triggerEl.setAttribute("aria-expanded",String(this.active)),this.triggerEl.setAttribute("aria-haspopup","dialog"))}updateChildMenuItems(){this.childMenuItems=kn(this.el,'[role="menuitem"]')}lockBodyScroll(){!a1()||gc(this.scrollContainer)}unlockBodyScroll(){ta(this.scrollContainer)}render(){var e,t;const i=dt("popover",{"popover--closing":this.closing,"popover--active":this.active,"popover--inactive":!this.active});return l(et,{id:this.popoverId,onFocusout:this.onFocusOut},l("div",{class:i,onKeyDown:this.onKeydown},l("div",{"aria-hidden":this.active?"false":"true","aria-label":this.label,class:"popover__content",role:"dialog",tabindex:"-1",ref:n=>this.contentContainer=n,style:{top:Boolean(this.position)?`${(e=this.position)===null||e===void 0?void 0:e.y}px`:"",left:Boolean(this.position)?`${(t=this.position)===null||t===void 0?void 0:t.x}px`:""}},l("span",{class:"popover__handle"}),l("div",{class:"popover__scroll-container",ref:n=>this.scrollContainer=n},l("slot",null))),this.active&&l("div",{class:"popover__backdrop",onClick:this.close})))}get el(){return zt(this)}};Cc.style=P4;const E4=Object.freeze(Object.defineProperty({__proto__:null,flip_date_picker:vc,flip_icon_today:bc,flip_popover:Cc},Symbol.toStringTag,{value:"Module"})),O4=`:host {
|
|
44
|
+
*/(function(i,n){n(t)})(Ft,function(i){var n={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function r(D,S,w=n,P=!0){return m(S).length>1?function(j){const f=m(j).sort((N,k)=>N.length-k.length);return function(N,k,z,B=!0){const M=f.map($=>o(N,$,z,!1)).pop();for(const $ in f)if(_(M,f[$],z))return o(N,f[$],z,B);return""};function _(N,k,z){for(const B in z)z[B].escape&&(k=k.replace(new RegExp(B+".{1}","g"),""));return k.split("").filter(B=>z[B]&&z[B].pattern).length>=N.length}}(S)(D,S,w,P):o(D,S,w,P)}function m(D){try{return JSON.parse(D)}catch{return[D]}}function o(D,S,w,P=!0){let j=0,f=0,_="",N="";for(;j<S.length&&f<D.length;){let k=S[j];const z=D[f],B=w[k];if(B&&B.pattern)B.pattern.test(z)&&(_+=c(z,B),j++,P&&S[j]&&(w[S[j]]?w[S[j]]&&w[S[j]].escape&&(_+=S[j+1],j+=2):(_+=S[j],j++))),f++;else if(B&&B.repeat){const M=w[S[j-1]];M&&!M.pattern.test(z)?j++:j--}else B&&B.escape&&(j++,k=S[j]),P&&(_+=k),z===k&&f++,j++}for(;P&&j<S.length;){const k=S[j];if(w[k]){N="";break}N+=k,j++}return _+N}function c(D,S){return S.transform&&(D=S.transform(D)),S.uppercase?D.toLocaleUpperCase():S.lowercase?D.toLocaleLowerCase():D}function a(D){return D instanceof HTMLInputElement?D:D.querySelector("input")||D}function d(D){return Object.prototype.toString.call(D)==="[object String]"}class g{constructor(S,w={}){if(!S)throw new Error("Maska: no element for mask");if(w.preprocessor!=null&&typeof w.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(w.tokens)for(const P in w.tokens)w.tokens[P]={...w.tokens[P]},w.tokens[P].pattern&&d(w.tokens[P].pattern)&&(w.tokens[P].pattern=new RegExp(w.tokens[P].pattern));this._opts={mask:w.mask,tokens:{...n,...w.tokens},preprocessor:w.preprocessor},this._el=d(S)?document.querySelectorAll(S):S.length?S:[S],this.inputEvent=P=>this.updateValue(P.target,P),this.init()}init(){for(let S=0;S<this._el.length;S++){const w=a(this._el[S]);!this._opts.mask||w.dataset.mask&&w.dataset.mask===this._opts.mask||(w.dataset.mask=this._opts.mask),setTimeout(()=>this.updateValue(w),0),w.dataset.maskInited||(w.dataset.maskInited=!0,w.addEventListener("input",this.inputEvent),w.addEventListener("beforeinput",this.beforeInput))}}destroy(){for(let S=0;S<this._el.length;S++){const w=a(this._el[S]);w.removeEventListener("input",this.inputEvent),w.removeEventListener("beforeinput",this.beforeInput),delete w.dataset.mask,delete w.dataset.maskInited}}updateValue(S,w){if(!S||!S.type)return;const P=S.type.match(/^number$/i)&&S.validity.badInput;if(!S.value&&!P||!S.dataset.mask)return S.dataset.maskRawValue="",void this.dispatch("maska",S,w);let j=S.selectionEnd;const f=S.value,_=f[j-1];S.dataset.maskRawValue=r(S.value,S.dataset.mask,this._opts.tokens,!1);let N=S.value;this._opts.preprocessor&&(N=this._opts.preprocessor(N)),S.value=r(N,S.dataset.mask,this._opts.tokens),w&&w.inputType==="insertText"&&j===f.length&&(j=S.value.length),function(k,z,B){for(;z&&z<k.value.length&&k.value.charAt(z-1)!==B;)z++;(k.type?k.type.match(/^(text|search|password|tel|url)$/i):!k.type)&&k===document.activeElement&&(k.setSelectionRange(z,z),setTimeout(function(){k.setSelectionRange(z,z)},0))}(S,j,_),this.dispatch("maska",S,w),S.value!==f&&this.dispatch("input",S,w)}beforeInput(S){S&&S.target&&S.target.type&&S.target.type.match(/^number$/i)&&S.data&&isNaN(S.target.value+S.data)&&S.preventDefault()}dispatch(S,w,P){w.dispatchEvent(function(j,f=null){const _=document.createEvent("Event");return _.initEvent(j,!0,!0),f&&(_.inputType=f),_}(S,P&&P.inputType||null))}}var T=(()=>{const D=new WeakMap;return(S,w)=>{w.value&&(D.has(S)&&!function(P){return!(d(P.value)&&P.value===P.oldValue||Array.isArray(P.value)&&JSON.stringify(P.value)===JSON.stringify(P.oldValue)||P.value&&P.value.mask&&P.oldValue&&P.oldValue.mask&&P.value.mask===P.oldValue.mask)}(w)||D.set(S,new g(S,function(P){const j={};return P.mask?(j.mask=Array.isArray(P.mask)?JSON.stringify(P.mask):P.mask,j.tokens=P.tokens?{...P.tokens}:{},j.preprocessor=P.preprocessor):j.mask=Array.isArray(P)?JSON.stringify(P):P,j}(w.value))))}})();function R(D){D.directive("maska",T)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(R),i.create=function(D,S){return new g(D,S)},i.default=R,i.install=R,i.mask=r,i.maska=T,i.tokens=n,Object.defineProperty(i,"__esModule",{value:!0})})});const Hp=".sc-flip-date-input-h{display:flex;width:100%}.sc-flip-date-input-h *.sc-flip-date-input{box-sizing:border-box}.date-input.sc-flip-date-input{position:relative;display:flex;width:100%;align-items:center;color:var(--s-text-default);line-height:var(--s-line-height-sm)}.date-input__input.sc-flip-date-input{display:inline-flex;width:100%;margin:0;padding:0;border:none;color:var(--s-text-default);background-color:transparent;font:inherit;font-size:var(--s-font-size-base);line-height:var(--s-line-height-base);caret-color:var(--s-border-highlight)}.date-input__input.sc-flip-date-input:focus{outline:none}.date-input__input.sc-flip-date-input:disabled{color:var(--s-text-disabled);background-color:transparent}.date-input__date-picker-button.sc-flip-date-input{position:absolute;top:calc(-1 * var(--s-space-12));right:0;display:inline-flex;margin:0;padding:0;border:none;color:var(--s-icon-default);background-color:transparent;cursor:pointer}.date-input__date-picker-button.sc-flip-date-input:focus{outline-color:var(--s-focus-default)}.date-input__date-picker-button.sc-flip-date-input:disabled{cursor:default;color:var(--s-icon-disabled)}",Ks="yyyy-MM-dd",Gl=class{constructor(e){Le(this,e),this.valueChange=Ct(this,"valueChange",7),this.datePickerLabel="Date picker",this.format="yyyy-MM-dd",this.placeholder="yyyy-mm-dd",this.onChange=t=>{const i=t.target.value,n=Zl(i,this.format,new Date),r=new RegExp(`^${this.format.replace(/y|d|M/g,"\\d")}$`);if(!Boolean(i.match(r))||!Mo(n))return;const m=Fo(n,Ks);this.value=m,this.valueChange.emit(m)},this.onInput=t=>{this.onChange(t)},this.onClick=t=>{t.preventDefault()},this.onFocus=t=>{this.handleAutoSelect(t)},this.onPickDate=t=>{const i=t.detail,n=Fo(i,Ks);this.value=n,this.valueChange.emit(n),this.pickerPopover.close()}}componentWillLoad(){const e=document.querySelectorAll("flip-date-input").length;this.id=`flip-date-input-${e}`}componentDidLoad(){this.setupMask()}disconnectedCallback(){var e;(e=this.mask)===null||e===void 0||e.destroy()}watchFormat(){this.setupMask()}handleAutoSelect(e){!this.autoSelect||e.target.select()}setupMask(){var e;(e=this.mask)===null||e===void 0||e.destroy(),this.mask=Vp.create(`#${this.id}`,{mask:this.format.replace(/y|d|M/g,"#")})}render(){const e=this.invalid===!0?"true":this.invalid===!1?"false":void 0,t=Boolean(this.value)?Zl(this.value,Ks,new Date):void 0,i=Mo(t)?Fo(t,this.format):void 0;return l(et,null,l("div",{class:"date-input"},l("input",{"aria-describedby":this.flipAriaDescribedby,"aria-disabled":this.disabled?"true":void 0,"aria-invalid":e,autoFocus:this.autoFocus,class:"date-input__input",disabled:this.disabled,id:this.id,onClick:this.onClick,onFocus:this.onFocus,onInput:this.onInput,placeholder:this.placeholder,required:this.required,type:"text",value:i}),l("button",{"aria-hidden":"true",class:"date-input__date-picker-button",disabled:this.disabled,id:`${this.id}-trigger`,tabIndex:-1,type:"button"},l("flip-icon-today",null))),!this.disabled&&l("flip-popover",{label:this.datePickerLabel,placement:"bottom-end",popoverId:"popover",ref:n=>this.pickerPopover=n,trigger:`${this.id}-trigger`},l("flip-date-picker",{locale:this.locale,onValueChange:this.onPickDate,value:t})))}static get watchers(){return{format:["watchFormat"]}}};Gl.style=Hp;const Bp=Object.freeze(Object.defineProperty({__proto__:null,flip_date_input:Gl},Symbol.toStringTag,{value:"Module"}));function Qi(e){return e.split("-")[0]}function Qs(e){return e.split("-")[1]}function jr(e){return["top","bottom"].includes(Qi(e))?"x":"y"}function Yl(e){return e==="y"?"height":"width"}function ql(e,t,i){let{reference:n,floating:r}=e;const m=n.x+n.width/2-r.width/2,o=n.y+n.height/2-r.height/2,c=jr(t),a=Yl(c),d=n[a]/2-r[a]/2,g=Qi(t),T=c==="x";let R;switch(g){case"top":R={x:m,y:n.y-r.height};break;case"bottom":R={x:m,y:n.y+n.height};break;case"right":R={x:n.x+n.width,y:o};break;case"left":R={x:n.x-r.width,y:o};break;default:R={x:n.x,y:n.y}}switch(Qs(t)){case"start":R[c]-=d*(i&&T?-1:1);break;case"end":R[c]+=d*(i&&T?-1:1);break}return R}const jp=async(e,t,i)=>{const{placement:n="bottom",strategy:r="absolute",middleware:m=[],platform:o}=i,c=await(o.isRTL==null?void 0:o.isRTL(t));let a=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:g}=ql(a,n,c),T=n,R={},D=0;for(let S=0;S<m.length;S++){const{name:w,fn:P}=m[S],{x:j,y:f,data:_,reset:N}=await P({x:d,y:g,initialPlacement:n,placement:T,strategy:r,middlewareData:R,rects:a,platform:o,elements:{reference:e,floating:t}});if(d=j!=null?j:d,g=f!=null?f:g,R={...R,[w]:{...R[w],..._}},N&&D<=50){D++,typeof N=="object"&&(N.placement&&(T=N.placement),N.rects&&(a=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):N.rects),{x:d,y:g}=ql(a,T,c)),S=-1;continue}}return{x:d,y:g,placement:T,strategy:r,middlewareData:R}};function Wp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Up(e){return typeof e!="number"?Wp(e):{top:e,right:e,bottom:e,left:e}}function Wr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Xl(e,t){var i;t===void 0&&(t={});const{x:n,y:r,platform:m,rects:o,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:g="viewport",elementContext:T="floating",altBoundary:R=!1,padding:D=0}=t,S=Up(D),P=c[R?T==="floating"?"reference":"floating":T],j=Wr(await m.getClippingRect({element:(i=await(m.isElement==null?void 0:m.isElement(P)))==null||i?P:P.contextElement||await(m.getDocumentElement==null?void 0:m.getDocumentElement(c.floating)),boundary:d,rootBoundary:g,strategy:a})),f=Wr(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T==="floating"?{...o.floating,x:n,y:r}:o.reference,offsetParent:await(m.getOffsetParent==null?void 0:m.getOffsetParent(c.floating)),strategy:a}):o[T]);return{top:j.top-f.top+S.top,bottom:f.bottom-j.bottom+S.bottom,left:j.left-f.left+S.left,right:f.right-j.right+S.right}}const Zp=Math.min,Gp=Math.max;function Kl(e,t,i){return Gp(e,Zp(t,i))}const Yp={left:"right",right:"left",bottom:"top",top:"bottom"};function Ur(e){return e.replace(/left|right|bottom|top/g,t=>Yp[t])}function qp(e,t,i){i===void 0&&(i=!1);const n=Qs(e),r=jr(e),m=Yl(r);let o=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[m]>t.floating[m]&&(o=Ur(o)),{main:o,cross:Ur(o)}}const Xp={start:"end",end:"start"};function Ql(e){return e.replace(/start|end/g,t=>Xp[t])}function Kp(e){const t=Ur(e);return[Ql(e),t,Ql(t)]}const Jl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var i;const{placement:n,middlewareData:r,rects:m,initialPlacement:o,platform:c,elements:a}=t,{mainAxis:d=!0,crossAxis:g=!0,fallbackPlacements:T,fallbackStrategy:R="bestFit",flipAlignment:D=!0,...S}=e,w=Qi(n),j=T||(w===o||!D?[Ur(o)]:Kp(o)),f=[o,...j],_=await Xl(t,S),N=[];let k=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&N.push(_[w]),g){const{main:$,cross:A}=qp(n,m,await(c.isRTL==null?void 0:c.isRTL(a.floating)));N.push(_[$],_[A])}if(k=[...k,{placement:n,overflows:N}],!N.every($=>$<=0)){var z,B;const $=((z=(B=r.flip)==null?void 0:B.index)!=null?z:0)+1,A=f[$];if(A)return{data:{index:$,overflows:k},reset:{placement:A}};let p="bottom";switch(R){case"bestFit":{var M;const b=(M=k.map(E=>[E,E.overflows.filter(I=>I>0).reduce((I,V)=>I+V,0)]).sort((E,I)=>E[1]-I[1])[0])==null?void 0:M[0].placement;b&&(p=b);break}case"initialPlacement":p=o;break}if(n!==p)return{reset:{placement:p}}}return{}}}};async function Qp(e,t){const{placement:i,platform:n,elements:r}=e,m=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Qi(i),c=Qs(i),a=jr(i)==="x",d=["left","top"].includes(o)?-1:1,g=m&&a?-1:1,T=typeof t=="function"?t(e):t;let{mainAxis:R,crossAxis:D,alignmentAxis:S}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return c&&typeof S=="number"&&(D=c==="end"?S*-1:S),a?{x:D*g,y:R*d}:{x:R*d,y:D*g}}const Jp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:i,y:n}=t,r=await Qp(t,e);return{x:i+r.x,y:n+r.y,data:r}}}};function e4(e){return e==="x"?"y":"x"}const ec=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:n,placement:r}=t,{mainAxis:m=!0,crossAxis:o=!1,limiter:c={fn:P=>{let{x:j,y:f}=P;return{x:j,y:f}}},...a}=e,d={x:i,y:n},g=await Xl(t,a),T=jr(Qi(r)),R=e4(T);let D=d[T],S=d[R];if(m){const P=T==="y"?"top":"left",j=T==="y"?"bottom":"right",f=D+g[P],_=D-g[j];D=Kl(f,D,_)}if(o){const P=R==="y"?"top":"left",j=R==="y"?"bottom":"right",f=S+g[P],_=S-g[j];S=Kl(f,S,_)}const w=c.fn({...t,[T]:D,[R]:S});return{...w,data:{x:w.x-i,y:w.y-n}}}}};function tc(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ri(e){if(e==null)return window;if(!tc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yt(e){return ri(e).getComputedStyle(e)}function oi(e){return tc(e)?"":e?(e.nodeName||"").toLowerCase():""}function ic(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function qt(e){return e instanceof ri(e).HTMLElement}function ui(e){return e instanceof ri(e).Element}function t4(e){return e instanceof ri(e).Node}function Fi(e){if(typeof ShadowRoot>"u")return!1;const t=ri(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zr(e){const{overflow:t,overflowX:i,overflowY:n}=Yt(e);return/auto|scroll|overlay|hidden/.test(t+n+i)}function i4(e){return["table","td","th"].includes(oi(e))}function nc(e){const t=/firefox/i.test(ic()),i=Yt(e);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||t&&i.willChange==="filter"||t&&(i.filter?i.filter!=="none":!1)}function rc(){return!/^((?!chrome|android).)*safari/i.test(ic())}const oc=Math.min,Ji=Math.max,Gr=Math.round;function si(e,t,i){var n,r,m,o;t===void 0&&(t=!1),i===void 0&&(i=!1);const c=e.getBoundingClientRect();let a=1,d=1;t&&qt(e)&&(a=e.offsetWidth>0&&Gr(c.width)/e.offsetWidth||1,d=e.offsetHeight>0&&Gr(c.height)/e.offsetHeight||1);const g=ui(e)?ri(e):window,T=!rc()&&i,R=(c.left+(T&&(n=(r=g.visualViewport)==null?void 0:r.offsetLeft)!=null?n:0))/a,D=(c.top+(T&&(m=(o=g.visualViewport)==null?void 0:o.offsetTop)!=null?m:0))/d,S=c.width/a,w=c.height/d;return{width:S,height:w,top:D,right:R+S,bottom:D+w,left:R,x:R,y:D}}function di(e){return((t4(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yr(e){return ui(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sc(e){return si(di(e)).left+Yr(e).scrollLeft}function n4(e){const t=si(e);return Gr(t.width)!==e.offsetWidth||Gr(t.height)!==e.offsetHeight}function r4(e,t,i){const n=qt(t),r=di(t),m=si(e,n&&n4(t),i==="fixed");let o={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(n||!n&&i!=="fixed")if((oi(t)!=="body"||Zr(r))&&(o=Yr(t)),qt(t)){const a=si(t,!0);c.x=a.x+t.clientLeft,c.y=a.y+t.clientTop}else r&&(c.x=sc(r));return{x:m.left+o.scrollLeft-c.x,y:m.top+o.scrollTop-c.y,width:m.width,height:m.height}}function ac(e){return oi(e)==="html"?e:e.assignedSlot||e.parentNode||(Fi(e)?e.host:null)||di(e)}function lc(e){return!qt(e)||Yt(e).position==="fixed"?null:o4(e)}function o4(e){let{offsetParent:t}=e,i=e,n=!1;for(;i&&i!==t;){const{assignedSlot:r}=i;if(r){let m=r.offsetParent;if(Yt(r).display==="contents"){const o=r.hasAttribute("style"),c=r.style.display;r.style.display=Yt(i).display,m=r.offsetParent,r.style.display=c,o||r.removeAttribute("style")}i=r,t!==m&&(t=m,n=!0)}else if(Fi(i)&&i.host&&n)break;i=Fi(i)&&i.host||i.parentNode}return t}function s4(e){let t=ac(e);for(Fi(t)&&(t=t.host);qt(t)&&!["html","body"].includes(oi(t));){if(nc(t))return t;{const i=t.parentNode;t=Fi(i)?i.host:i}}return null}function Js(e){const t=ri(e);let i=lc(e);for(;i&&i4(i)&&Yt(i).position==="static";)i=lc(i);return i&&(oi(i)==="html"||oi(i)==="body"&&Yt(i).position==="static"&&!nc(i))?t:i||s4(e)||t}function cc(e){if(qt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=si(e);return{width:t.width,height:t.height}}function a4(e){let{rect:t,offsetParent:i,strategy:n}=e;const r=qt(i),m=di(i);if(i===m)return t;let o={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((r||!r&&n!=="fixed")&&((oi(i)!=="body"||Zr(m))&&(o=Yr(i)),qt(i))){const a=si(i,!0);c.x=a.x+i.clientLeft,c.y=a.y+i.clientTop}return{...t,x:t.x-o.scrollLeft+c.x,y:t.y-o.scrollTop+c.y}}function l4(e,t){const i=ri(e),n=di(e),r=i.visualViewport;let m=n.clientWidth,o=n.clientHeight,c=0,a=0;if(r){m=r.width,o=r.height;const d=rc();(d||!d&&t==="fixed")&&(c=r.offsetLeft,a=r.offsetTop)}return{width:m,height:o,x:c,y:a}}function c4(e){var t;const i=di(e),n=Yr(e),r=(t=e.ownerDocument)==null?void 0:t.body,m=Ji(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Ji(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let c=-n.scrollLeft+sc(e);const a=-n.scrollTop;return Yt(r||i).direction==="rtl"&&(c+=Ji(i.clientWidth,r?r.clientWidth:0)-m),{width:m,height:o,x:c,y:a}}function uc(e){const t=ac(e);return["html","body","#document"].includes(oi(t))?e.ownerDocument.body:qt(t)&&Zr(t)?t:uc(t)}function qr(e,t){var i;t===void 0&&(t=[]);const n=uc(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),m=ri(n),o=r?[m].concat(m.visualViewport||[],Zr(n)?n:[]):n,c=t.concat(o);return r?c:c.concat(qr(o))}function u4(e,t){const i=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(i&&Fi(i)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function d4(e,t){const i=si(e,!1,t==="fixed"),n=i.top+e.clientTop,r=i.left+e.clientLeft;return{top:n,left:r,x:r,y:n,right:r+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function dc(e,t,i){return t==="viewport"?Wr(l4(e,i)):ui(t)?d4(t,i):Wr(c4(di(e)))}function h4(e){const t=qr(e),n=["absolute","fixed"].includes(Yt(e).position)&&qt(e)?Js(e):e;return ui(n)?t.filter(r=>ui(r)&&u4(r,n)&&oi(r)!=="body"):[]}function f4(e){let{element:t,boundary:i,rootBoundary:n,strategy:r}=e;const o=[...i==="clippingAncestors"?h4(t):[].concat(i),n],c=o[0],a=o.reduce((d,g)=>{const T=dc(t,g,r);return d.top=Ji(T.top,d.top),d.right=oc(T.right,d.right),d.bottom=oc(T.bottom,d.bottom),d.left=Ji(T.left,d.left),d},dc(t,c,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const p4={getClippingRect:f4,convertOffsetParentRelativeRectToViewportRelativeRect:a4,isElement:ui,getDimensions:cc,getOffsetParent:Js,getDocumentElement:di,getElementRects:e=>{let{reference:t,floating:i,strategy:n}=e;return{reference:r4(t,Js(i),n),floating:{...cc(i),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yt(e).direction==="rtl"};function m4(e,t,i,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:m=!0,elementResize:o=!0,animationFrame:c=!1}=n,a=r&&!c,d=m&&!c,g=a||d?[...ui(e)?qr(e):[],...qr(t)]:[];g.forEach(w=>{a&&w.addEventListener("scroll",i,{passive:!0}),d&&w.addEventListener("resize",i)});let T=null;if(o){let w=!0;T=new ResizeObserver(()=>{w||i(),w=!1}),ui(e)&&!c&&T.observe(e),T.observe(t)}let R,D=c?si(e):null;c&&S();function S(){const w=si(e);D&&(w.x!==D.x||w.y!==D.y||w.width!==D.width||w.height!==D.height)&&i(),D=w,R=requestAnimationFrame(S)}return i(),()=>{var w;g.forEach(P=>{a&&P.removeEventListener("scroll",i),d&&P.removeEventListener("resize",i)}),(w=T)==null||w.disconnect(),T=null,c&&cancelAnimationFrame(R)}}const hc=(e,t,i)=>jp(e,t,{platform:p4,...i});function g4(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}else return Array.from(e)}var ea=!1;if(typeof window<"u"){var fc={get passive(){ea=!0}};window.addEventListener("testPassive",null,fc),window.removeEventListener("testPassive",null,fc)}var Xr=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),wi=[],Kr=!1,pc=-1,en=void 0,Si=void 0,tn=void 0,mc=function(t){return wi.some(function(i){return!!(i.options.allowTouchMove&&i.options.allowTouchMove(t))})},Qr=function(t){var i=t||window.event;return mc(i.target)||i.touches.length>1?!0:(i.preventDefault&&i.preventDefault(),!1)},v4=function(t){if(tn===void 0){var i=!!t&&t.reserveScrollBarGap===!0,n=window.innerWidth-document.documentElement.clientWidth;if(i&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);tn=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}en===void 0&&(en=document.body.style.overflow,document.body.style.overflow="hidden")},b4=function(){tn!==void 0&&(document.body.style.paddingRight=tn,tn=void 0),en!==void 0&&(document.body.style.overflow=en,en=void 0)},C4=function(){return window.requestAnimationFrame(function(){if(Si===void 0){Si={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,i=t.scrollY,n=t.scrollX,r=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-i,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var m=r-window.innerHeight;m&&i>=r&&(document.body.style.top=-(i+m))})},300)}})},y4=function(){if(Si!==void 0){var t=-parseInt(document.body.style.top,10),i=-parseInt(document.body.style.left,10);document.body.style.position=Si.position,document.body.style.top=Si.top,document.body.style.left=Si.left,window.scrollTo(i,t),Si=void 0}},_4=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},w4=function(t,i){var n=t.targetTouches[0].clientY-pc;return mc(t.target)?!1:i&&i.scrollTop===0&&n>0||_4(i)&&n<0?Qr(t):(t.stopPropagation(),!0)},gc=function(t,i){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!wi.some(function(r){return r.targetElement===t})){var n={targetElement:t,options:i||{}};wi=[].concat(g4(wi),[n]),Xr?C4():v4(i),Xr&&(t.ontouchstart=function(r){r.targetTouches.length===1&&(pc=r.targetTouches[0].clientY)},t.ontouchmove=function(r){r.targetTouches.length===1&&w4(r,t)},Kr||(document.addEventListener("touchmove",Qr,ea?{passive:!1}:void 0),Kr=!0))}},ta=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}wi=wi.filter(function(i){return i.targetElement!==t}),Xr&&(t.ontouchstart=null,t.ontouchmove=null,Kr&&wi.length===0&&(document.removeEventListener("touchmove",Qr,ea?{passive:!1}:void 0),Kr=!1)),Xr?y4():b4()},S4=ni(function(e,t){(function(i,n){e.exports=n()})(Ft,function(){return function(){var i={d:function(x,h){for(var O in h)i.o(h,O)&&!i.o(x,O)&&Object.defineProperty(x,O,{enumerable:!0,get:h[O]})},o:function(x,h){return Object.prototype.hasOwnProperty.call(x,h)}},n={};i.d(n,{default:function(){return Se}});var r={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},m={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:r.days,minView:r.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function o(x){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof x=="string"?h.querySelector(x):x}function c(){let{tagName:x="div",className:h="",innerHtml:O="",id:F="",attrs:u={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=document.createElement(x);return h&&v.classList.add(...h.split(" ")),F&&(v.id=F),O&&(v.innerHTML=O),u&&a(v,u),v}function a(x,h){for(let[O,F]of Object.entries(h))F!==void 0&&x.setAttribute(O,F);return x}function d(x){return new Date(x.getFullYear(),x.getMonth()+1,0).getDate()}function g(x){let h=x.getHours(),O=h%12==0?12:h%12;return{year:x.getFullYear(),month:x.getMonth(),fullMonth:x.getMonth()+1<10?"0"+(x.getMonth()+1):x.getMonth()+1,date:x.getDate(),fullDate:x.getDate()<10?"0"+x.getDate():x.getDate(),day:x.getDay(),hours:h,fullHours:T(h),hours12:O,fullHours12:T(O),minutes:x.getMinutes(),fullMinutes:x.getMinutes()<10?"0"+x.getMinutes():x.getMinutes()}}function T(x){return x<10?"0"+x:x}function R(x){let h=10*Math.floor(x.getFullYear()/10);return[h,h+9]}function D(){let x=[];for(var h=arguments.length,O=new Array(h),F=0;F<h;F++)O[F]=arguments[F];return O.forEach(u=>{if(typeof u=="object")for(let v in u)u[v]&&x.push(v);else u&&x.push(u)}),x.join(" ")}function S(x,h){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.days;if(!x||!h)return!1;let F=g(x),u=g(h);return{[r.days]:F.date===u.date&&F.month===u.month&&F.year===u.year,[r.months]:F.month===u.month&&F.year===u.year,[r.years]:F.year===u.year}[O]}function w(x,h,O){let F=j(x,!1).getTime(),u=j(h,!1).getTime();return O?F>=u:F>u}function P(x,h){return!w(x,h,!0)}function j(x){let h=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],O=new Date(x.getTime());return typeof h!="boolean"||h||f(O),O}function f(x){return x.setHours(0,0,0,0),x}function _(x,h,O){x.length?x.forEach(F=>{F.addEventListener(h,O)}):x.addEventListener(h,O)}function N(x,h){return!(!x||x===document||x instanceof DocumentFragment)&&(x.matches(h)?x:N(x.parentNode,h))}function k(x,h,O){return x>O?O:x<h?h:x}function z(x){for(var h=arguments.length,O=new Array(h>1?h-1:0),F=1;F<h;F++)O[F-1]=arguments[F];return O.filter(u=>u).forEach(u=>{for(let[v,y]of Object.entries(u))if(y!==void 0&&y.toString()==="[object Object]"){let L=x[v]!==void 0?x[v].toString():void 0,H=y.toString(),Y=Array.isArray(y)?[]:{};x[v]=x[v]?L!==H?Y:x[v]:Y,z(x[v],y)}else x[v]=y}),x}function B(x){let h=x;return x instanceof Date||(h=new Date(x)),isNaN(h.getTime())&&(console.log('Unable to convert value "'.concat(x,'" to Date object')),h=!1),h}function M(x){let h="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+h+")("+x+")($|<|"+h+")","g")}function $(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class A{constructor(){let{type:h,date:O,dp:F,opts:u,body:v}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),$(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),$(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),$(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),$(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),$(this,"onChangeFocusDate",y=>{if(!y)return void(this.focused&&this.removeFocus());let L=S(y,this.date,this.type);L?this.focus():!L&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),$(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this.$cell.adpCell=this,this.$cell)),this.type=h,this.singleType=this.type.slice(0,-1),this.date=O,this.dp=F,this.opts=u,this.body=v,this.customData=!1,this.init()}init(){let{range:h,onRenderCell:O}=this.opts;O&&(this.customData=O({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),h&&this._handleRangeStatus())}_bindDatepickerEvents(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var h;let{year:O,month:F,date:u}=g(this.date),v=((h=this.customData)===null||h===void 0?void 0:h.attrs)||{};this.$cell=c({className:this._getClassName(),attrs:{"data-year":O,"data-month":F,"data-date":u,...v}})}_getClassName(){var h,O;let F=new Date,{selectOtherMonths:u,selectOtherYears:v}=this.opts,{minDate:y,maxDate:L}=this.dp,{day:H}=g(this.date),Y=this._isOutOfMinMaxRange(),ie=(h=this.customData)===null||h===void 0?void 0:h.disabled,re=D("air-datepicker-cell","-".concat(this.singleType,"-"),{"-current-":S(F,this.date,this.type),"-min-date-":y&&S(y,this.date,this.type),"-max-date-":L&&S(L,this.date,this.type)}),se="";switch(this.type){case r.days:se=D({"-weekend-":this.dp.isWeekend(H),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!u||Y||ie});break;case r.months:se=D({"-disabled-":Y||ie});break;case r.years:se=D({"-other-decade-":this.isOtherDecade,"-disabled-":Y||this.isOtherDecade&&!v||ie})}return D(re,se,(O=this.customData)===null||O===void 0?void 0:O.classes)}_getHtml(){var h;let{year:O,month:F,date:u}=g(this.date),{showOtherMonths:v,showOtherYears:y}=this.opts;if((h=this.customData)!==null&&h!==void 0&&h.html)return this.customData.html;switch(this.type){case r.days:return!v&&this.isOtherMonth?"":u;case r.months:return this.dp.locale[this.opts.monthsField][F];case r.years:return!y&&this.isOtherDecade?"":O}}_isOutOfMinMaxRange(){let{minDate:h,maxDate:O}=this.dp,{type:F,date:u}=this,{month:v,year:y,date:L}=g(u),H=F===r.days,Y=F===r.years,ie=!!h&&new Date(y,Y?h.getMonth():v,H?L:h.getDate()),re=!!O&&new Date(y,Y?O.getMonth():v,H?L:O.getDate());return h&&O?P(ie,h)||w(re,O):h?P(ie,h):O?w(re,O):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{rangeDateFrom:h,rangeDateTo:O}=this.dp,F=D({"-in-range-":h&&O&&(u=this.date,v=h,y=O,w(u,v)&&P(u,y)),"-range-from-":h&&S(this.date,h,this.type),"-range-to-":O&&S(this.date,O,this.type)});var u,v,y;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),F&&this.$cell.classList.add(...F.split(" "))}_handleSelectedStatus(){let h=this.dp._checkIfDateIsSelected(this.date,this.type);h?this.select():!h&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){S(this.dp.focusDate,this.date,this.type)&&this.focus()}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function p(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}let b={[r.days]:'<div class="air-datepicker-body--day-names"></div>'+'<div class="air-datepicker-body--cells -'.concat(r.days,'-"></div>'),[r.months]:'<div class="air-datepicker-body--cells -'.concat(r.months,'-"></div>'),[r.years]:'<div class="air-datepicker-body--cells -'.concat(r.years,'-"></div>')};const E=".air-datepicker-cell";class I{constructor(h){let{dp:O,type:F,opts:u}=h;p(this,"handleClick",v=>{let y=v.target.closest(E).adpCell;if(y.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let L=this.dp._checkIfDateIsSelected(y.date,y.type);L?this.dp._handleAlreadySelectedDates(L,y.date):this.dp.selectDate(y.date)}),p(this,"handleDayNameClick",v=>{let y=v.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(y),datepicker:this.dp})}),p(this,"onChangeCurrentView",v=>{v!==this.type?this.hide():(this.show(),this.render())}),p(this,"onMouseOverCell",v=>{let y=N(v.target,E);this.dp.setFocusDate(!!y&&y.adpCell.date)}),p(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),p(this,"onClickBody",v=>{let{onClickDayName:y}=this.opts,L=v.target;L.closest(E)&&this.handleClick(v),y&&L.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(v)}),p(this,"onMouseDown",v=>{this.pressed=!0;let y=N(v.target,E),L=y&&y.adpCell;S(L.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),S(L.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),p(this,"onMouseMove",v=>{if(!this.pressed||!this.dp.isMinViewReached)return;v.preventDefault();let y=N(v.target,E),L=y&&y.adpCell,{selectedDates:H,rangeDateTo:Y,rangeDateFrom:ie}=this.dp;if(!L||L.isDisabled)return;let{date:re}=L;if(H.length===2){if(this.rangeFromFocused&&!w(re,Y)){let{hours:se,minutes:ve}=g(ie);re.setHours(se),re.setMinutes(ve),this.dp.rangeDateFrom=re,this.dp.replaceDate(ie,re)}if(this.rangeToFocused&&!P(re,ie)){let{hours:se,minutes:ve}=g(Y);re.setHours(se),re.setMinutes(ve),this.dp.rangeDateTo=re,this.dp.replaceDate(Y,re)}}}),p(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),p(this,"onChangeViewDate",(v,y)=>{if(!this.isVisible)return;let L=R(v),H=R(y);switch(this.dp.currentView){case r.days:if(S(v,y,r.months))return;break;case r.months:if(S(v,y,r.years))return;break;case r.years:if(L[0]===H[0]&&L[1]===H[1])return}this.render()}),p(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(v=>{this.$cells.appendChild(v.render())})}),this.dp=O,this.type=F,this.opts=u,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===r.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:h,dynamicRange:O}=this.opts;_(this.$el,"mouseover",this.onMouseOverCell),_(this.$el,"mouseout",this.onMouseOutCell),_(this.$el,"click",this.onClickBody),h&&O&&(_(this.$el,"mousedown",this.onMouseDown),_(this.$el,"mousemove",this.onMouseMove),_(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=c({className:"air-datepicker-body -".concat(this.type,"-"),innerHtml:b[this.type]}),this.$names=o(".air-datepicker-body--day-names",this.$el),this.$cells=o(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,O="",F=this.dp.isWeekend,{onClickDayName:u}=this.opts,v=h,y=0;for(;y<7;){let L=v%7,H=D("air-datepicker-body--day-name",{[r.cssClassWeekend]:F(L),"-clickable-":!!u}),Y=this.dp.locale.daysMin[L];O+='<div class="'.concat(H,`" data-day-index='`).concat(L,"'>").concat(Y,"</div>"),y++,v++}return O}_getDaysCells(){let{viewDate:h,locale:{firstDay:O}}=this.dp,F=d(h),{year:u,month:v}=g(h),y=new Date(u,v,1),L=new Date(u,v,F),H=y.getDay()-O,Y=6-L.getDay()+O;H=H<0?H+7:H,Y=Y>6?Y-7:Y;let ie=function(Ae,Fe){let{year:De,month:ze,date:Ye}=g(Ae);return new Date(De,ze,Ye-Fe)}(y,H),re=F+H+Y,se=ie.getDate(),{year:ve,month:me}=g(ie),we=0;for(;we<re;){let Ae=new Date(ve,me,se+we);this._generateCell(Ae),we++}}_generateCell(h){let{type:O,dp:F,opts:u}=this,v=new A({type:O,dp:F,opts:u,date:h,body:this});return this.cells.push(v),v}_generateDayCells(){this._getDaysCells()}_generateMonthCells(){let{year:h}=this.dp.parsedViewDate,O=0;for(;O<12;)this.cells.push(this._generateCell(new Date(h,O))),O++}_generateYearCells(){let h=R(this.dp.viewDate),O=h[0]-1,F=h[1]+1,u=O;for(;u<=F;)this.cells.push(this._generateCell(new Date(u,0))),u++}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCells(){switch(this.type){case r.days:this._generateDayCells();break;case r.months:this._generateMonthCells();break;case r.years:this._generateYearCells()}}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(h=>h.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView)}}function V(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class q{constructor(h){let{dp:O,opts:F}=h;V(this,"onClickNav",u=>{let v=N(u.target,".air-datepicker-nav--action");if(!v)return;let y=v.dataset.action;this.dp[y]()}),V(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),V(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),V(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),V(this,"update",()=>{let{prevHtml:u,nextHtml:v}=this.opts;this.$prev.innerHTML=u,this.$next.innerHTML=v,this._resetNavStatus(),this.render(),this.handleNavStatus()}),V(this,"renderDelay",()=>{setTimeout(this.render)}),V(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(u,v){for(let y in v)v[y]?u.classList.add(y):u.classList.remove(y)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=O,this.opts=F,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=o(".air-datepicker-nav--title",this.$el),this.$prev=o('[data-action="prev"]',this.$el),this.$next=o('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(r.eventChangeViewDate,this.onChangeViewDate),this.dp.on(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(r.eventChangeTime,this.render))}destroy(){this.dp.off(r.eventChangeViewDate,this.onChangeViewDate),this.dp.off(r.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(r.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(r.eventChangeTime,this.render))}_createElement(){this.$el=c({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:h,opts:O}=this,F=O.navTitles[h.currentView];return typeof F=="function"?F(h):h.formatDate(h.viewDate,F)}handleNavStatus(){let{disableNavWhenOutOfRange:h}=this.opts,{minDate:O,maxDate:F}=this.dp;if(!O&&!F||!h)return;let{year:u,month:v}=this.dp.parsedViewDate,y=!!O&&g(O),L=!!F&&g(F);switch(this.dp.currentView){case r.days:O&&y.month>=v&&y.year>=u&&this._disableNav("prev"),F&&L.month<=v&&L.year<=u&&this._disableNav("next");break;case r.months:O&&y.year>=u&&this._disableNav("prev"),F&&L.year<=u&&this._disableNav("next");break;case r.years:{let H=R(this.dp.viewDate);O&&y.year>=H[0]&&this._disableNav("prev"),F&&L.year<=H[1]&&this._disableNav("next");break}}}_disableNav(h){o('[data-action="'+h+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(h){for(var O=arguments.length,F=new Array(O>1?O-1:0),u=1;u<O;u++)F[u-1]=arguments[u];h.length?h.forEach(v=>{v.classList.remove(...F)}):h.classList.remove(...F)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:h,nextHtml:O}=this.opts;this.$el.innerHTML='<div class="air-datepicker-nav--action" data-action="prev">'.concat(h,"</div>")+'<div class="air-datepicker-nav--title"></div>'+'<div class="air-datepicker-nav--action" data-action="next">'.concat(O,"</div>")}get isNavIsFunction(){let{navTitles:h}=this.opts;return Object.keys(h).find(O=>typeof h[O]=="function")}}var W={today:{content:x=>x.locale.today,onClick:x=>x.setViewDate(new Date)},clear:{content:x=>x.locale.clear,onClick:x=>x.clear()}};class fe{constructor(h){let{dp:O,opts:F}=h;this.dp=O,this.opts=F,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=c({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:h}=this.opts;Array.isArray(h)||(h=[h]),h.forEach(O=>{let F=O;typeof O=="string"&&W[O]&&(F=W[O]);let u=this.createButton(F);F.onClick&&this.attachEventToButton(u,F.onClick),this.$el.appendChild(u)})}attachEventToButton(h,O){h.addEventListener("click",()=>{O(this.dp)})}createButton(h){let{content:O,className:F,tagName:u="button",attrs:v={}}=h,y=typeof O=="function"?O(this.dp):O;return c({tagName:u,innerHtml:"<span tabindex='-1'>".concat(y,"</span>"),className:D("air-datepicker-button",F),attrs:v})}render(){this.generateButtons()}}function ne(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class de{constructor(){let{opts:h,dp:O}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ne(this,"toggleTimepickerIsActive",u=>{this.dp.timepickerIsActive=u}),ne(this,"onChangeSelectedDate",u=>{let{date:v,updateTime:y=!1}=u;v&&(this.setMinMaxTime(v),this.setCurrentTime(!!y&&v),this.addTimeToDate(v))}),ne(this,"onChangeLastSelectedDate",u=>{u&&(this.setTime(u),this.render())}),ne(this,"onChangeInputRange",u=>{let v=u.target;this[v.getAttribute("name")]=v.value,this.updateText(),this.dp.trigger(r.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),ne(this,"onMouseEnterLeave",u=>{let v=u.target.getAttribute("name"),y=this.$minutesText;v==="hours"&&(y=this.$hoursText),y.classList.toggle("-focus-")}),ne(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),ne(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=h,this.dp=O;let{timeFormat:F}=this.dp.locale;F&&(F.match(M("h"))||F.match(M("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let h="input";navigator.userAgent.match(/trident/gi)&&(h="change"),_(this.$ranges,h,this.onChangeInputRange),_(this.$ranges,"mouseenter",this.onMouseEnterLeave),_(this.$ranges,"mouseleave",this.onMouseEnterLeave),_(this.$ranges,"focus",this.onFocus),_(this.$ranges,"mousedown",this.onFocus),_(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=c({className:D("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(r.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(r.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:h,hours:O,displayHours:F,minutes:u,minHours:v,minMinutes:y,maxHours:L,maxMinutes:H,dayPeriod:Y,opts:{hoursStep:ie,minutesStep:re}}=this;this.$el.innerHTML='<div class="air-datepicker-time--current">'+' <span class="air-datepicker-time--current-hours">'.concat(T(F),"</span>")+' <span class="air-datepicker-time--current-colon">:</span>'+' <span class="air-datepicker-time--current-minutes">'.concat(T(u),"</span>")+" ".concat(h?"<span class='air-datepicker-time--current-ampm'>".concat(Y,"</span>"):"")+'</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row">'+' <input type="range" name="hours" value="'.concat(O,'" min="').concat(v,'" max="').concat(L,'" step="').concat(ie,'"/>')+' </div> <div class="air-datepicker-time--row">'+' <input type="range" name="minutes" value="'.concat(u,'" min="').concat(y,'" max="').concat(H,'" step="').concat(re,'"/>')+" </div></div>"}defineDOM(){let h=O=>o(O,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=h('[name="hours"]'),this.$minutes=h('[name="minutes"]'),this.$hoursText=h(".air-datepicker-time--current-hours"),this.$minutesText=h(".air-datepicker-time--current-minutes"),this.$ampm=h(".air-datepicker-time--current-ampm")}setTime(h){this.setMinMaxTime(h),this.setCurrentTime(h)}addTimeToDate(h){h&&(h.setHours(this.hours),h.setMinutes(this.minutes))}setMinMaxTime(h){if(this.setMinMaxTimeFromOptions(),h){let{minDate:O,maxDate:F}=this.dp;O&&S(h,O)&&this.setMinTimeFromMinDate(O),F&&S(h,F)&&this.setMaxTimeFromMaxDate(F)}}setCurrentTime(h){let{hours:O,minutes:F}=h?g(h):this;this.hours=k(O,this.minHours,this.maxHours),this.minutes=k(F,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:h,minMinutes:O,maxHours:F,maxMinutes:u}=this.opts;this.minHours=k(h,0,23),this.minMinutes=k(O,0,59),this.maxHours=k(F,0,23),this.maxMinutes=k(u,0,59)}setMinTimeFromMinDate(h){let{lastSelectedDate:O}=this.dp;this.minHours=h.getHours(),O&&O.getHours()>h.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=h.getMinutes()}setMaxTimeFromMaxDate(h){let{lastSelectedDate:O}=this.dp;this.maxHours=h.getHours(),O&&O.getHours()<h.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=h.getMinutes()}getDayPeriod(h,O){let F=h,u=Number(h);h instanceof Date&&(F=g(h),u=Number(F.hours));let v="am";if(O||this.ampm){switch(!0){case u===12:case u>11:v="pm"}u=u%12==0?12:u%12}return{hours:u,dayPeriod:v}}updateSliders(){a(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,a(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=T(this.displayHours),this.$minutesText.innerHTML=T(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(h){this._hours=h;let{hours:O,dayPeriod:F}=this.getDayPeriod(h);this.displayHours=O,this.dayPeriod=F}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function le(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}class X{constructor(h){let{dp:O,opts:F}=h;le(this,"pressedKeys",new Set),le(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],u=>u.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],u=>u.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],u=>u.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],u=>u.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],u=>u.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],u=>u.year-=10],[["Control","Shift","ArrowUp"],(u,v)=>v.up()]])),le(this,"handleHotKey",u=>{let v=this.hotKeys.get(u),y=g(this.getInitialFocusDate());v(y,this.dp);let{year:L,month:H,date:Y}=y,ie=d(new Date(L,H));ie<Y&&(Y=ie);let re=this.dp.getClampedDate(new Date(L,H,Y));this.dp.setFocusDate(re,{viewDateTransition:!0})}),le(this,"isHotKeyPressed",()=>{let u=!1,v=this.pressedKeys.size,y=L=>this.pressedKeys.has(L);for(let[L]of this.hotKeys){if(u)break;if(Array.isArray(L[0]))L.forEach(H=>{u||v!==H.length||(u=H.every(y)&&L)});else{if(v!==L.length)continue;u=L.every(y)&&L}}return u}),le(this,"isArrow",u=>u>=37&&u<=40),le(this,"onKeyDown",u=>{let{key:v,which:y}=u,{dp:L,dp:{focusDate:H},opts:Y}=this;this.registerKey(v);let ie=this.isHotKeyPressed();if(ie)return u.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(y))return u.preventDefault(),void this.focusNextCell(v);if(v==="Enter"){if(L.currentView!==Y.minView)return void L.down();if(H){let re=L._checkIfDateIsSelected(H);return void(re?L._handleAlreadySelectedDates(re,H):L.selectDate(H))}}v==="Escape"&&this.dp.hide()}),le(this,"onKeyUp",u=>{this.removeKey(u.key)}),this.dp=O,this.opts=F,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:h}=this.dp;h.addEventListener("keydown",this.onKeyDown),h.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:h}=this.dp;h.removeEventListener("keydown",this.onKeyDown),h.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:h,currentView:O,selectedDates:F,parsedViewDate:{year:u,month:v}}=this.dp,y=h||F[F.length-1];if(!y)switch(O){case r.days:y=new Date(u,v,new Date().getDate());break;case r.months:y=new Date(u,v,1);break;case r.years:y=new Date(u,0,1)}return y}focusNextCell(h){let O=this.getInitialFocusDate(),{currentView:F}=this.dp,{days:u,months:v,years:y}=r,L=g(O),H=L.year,Y=L.month,ie=L.date;switch(h){case"ArrowLeft":F===u&&(ie-=1),F===v&&(Y-=1),F===y&&(H-=1);break;case"ArrowUp":F===u&&(ie-=7),F===v&&(Y-=3),F===y&&(H-=4);break;case"ArrowRight":F===u&&(ie+=1),F===v&&(Y+=1),F===y&&(H+=1);break;case"ArrowDown":F===u&&(ie+=7),F===v&&(Y+=3),F===y&&(H+=4)}let re=this.dp.getClampedDate(new Date(H,Y,ie));this.dp.setFocusDate(re,{viewDateTransition:!0})}registerKey(h){this.pressedKeys.add(h)}removeKey(h){this.pressedKeys.delete(h)}}let K={on(x,h){this.__events||(this.__events={}),this.__events[x]?this.__events[x].push(h):this.__events[x]=[h]},off(x,h){this.__events&&this.__events[x]&&(this.__events[x]=this.__events[x].filter(O=>O!==h))},removeAllEvents(){this.__events={}},trigger(x){for(var h=arguments.length,O=new Array(h>1?h-1:0),F=1;F<h;F++)O[F-1]=arguments[F];this.__events&&this.__events[x]&&this.__events[x].forEach(u=>{u(...O)})}};function G(x,h,O){return h in x?Object.defineProperty(x,h,{value:O,enumerable:!0,configurable:!0,writable:!0}):x[h]=O,x}let Z="",ue="",be="",Te=!1;class Se{constructor(h,O){var F=this;if(G(this,"viewIndexes",[r.days,r.months,r.years]),G(this,"next",()=>{let{year:y,month:L}=this.parsedViewDate;switch(this.currentView){case r.days:this.setViewDate(new Date(y,L+1,1));break;case r.months:this.setViewDate(new Date(y+1,L,1));break;case r.years:this.setViewDate(new Date(y+10,0,1))}}),G(this,"prev",()=>{let{year:y,month:L}=this.parsedViewDate;switch(this.currentView){case r.days:this.setViewDate(new Date(y,L-1,1));break;case r.months:this.setViewDate(new Date(y-1,L,1));break;case r.years:this.setViewDate(new Date(y-10,0,1))}}),G(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),G(this,"setPosition",function(y){let L=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(y=y||F.opts.position)=="function")return void(F.customHide=y({$datepicker:F.$datepicker,$target:F.$el,$pointer:F.$pointer,isViewChange:L,done:F._finishHide}));let H,Y,{isMobile:ie}=F.opts,re=F.$el.getBoundingClientRect(),se=F.$el.getBoundingClientRect(),ve=F.$datepicker.offsetParent,me=F.$el.offsetParent,we=F.$datepicker.getBoundingClientRect(),Ae=y.split(" "),Fe=window.scrollY,De=window.scrollX,ze=F.opts.offset,Ye=Ae[0],We=Ae[1];if(ie)F.$datepicker.style.cssText="left: 50%; top: 50%";else{if(ve===me&&ve!==document.body&&(se={top:F.$el.offsetTop,left:F.$el.offsetLeft,width:re.width,height:F.$el.offsetHeight},Fe=0,De=0),ve!==me&&ve!==document.body){let Ne=ve.getBoundingClientRect();se={top:re.top-Ne.top,left:re.left-Ne.left,width:re.width,height:re.height},Fe=0,De=0}switch(Ye){case"top":H=se.top-we.height-ze;break;case"right":Y=se.left+se.width+ze;break;case"bottom":H=se.top+se.height+ze;break;case"left":Y=se.left-we.width-ze}switch(We){case"top":H=se.top;break;case"right":Y=se.left+se.width-we.width;break;case"bottom":H=se.top+se.height-we.height;break;case"left":Y=se.left;break;case"center":/left|right/.test(Ye)?H=se.top+se.height/2-we.height/2:Y=se.left+se.width/2-we.width/2}F.$datepicker.style.cssText="left: ".concat(Y+De,"px; top: ").concat(H+Fe,"px")}}),G(this,"_setInputValue",()=>{let{opts:y,$altField:L,locale:{dateFormat:H}}=this,{altFieldDateFormat:Y,altField:ie}=y;ie&&L&&(L.value=this._getInputValue(Y)),this.$el.value=this._getInputValue(H)}),G(this,"_getInputValue",y=>{let{selectedDates:L,opts:H}=this,{multipleDates:Y,multipleDatesSeparator:ie}=H;if(!L.length)return"";let re=typeof y=="function",se=re?y(Y?L:L[0]):L.map(ve=>this.formatDate(ve,y));return se=re?se:se.join(ie),se}),G(this,"_checkIfDateIsSelected",function(y){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.days,H=!1;return F.selectedDates.some(Y=>{let ie=S(y,Y,L);return H=ie&&Y,ie}),H}),G(this,"_scheduleCallAfterTransition",y=>{this._cancelScheduledCall(),y&&y(!1),this._onTransitionEnd=()=>{y&&y(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),G(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),G(this,"setViewDate",y=>{if(!((y=B(y))instanceof Date)||S(y,this.viewDate))return;let L=this.viewDate;this.viewDate=y;let{onChangeViewDate:H}=this.opts;if(H){let{month:Y,year:ie}=this.parsedViewDate;H({month:Y,year:ie,decade:this.curDecade})}this.trigger(r.eventChangeViewDate,y,L)}),G(this,"setFocusDate",function(y){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!y||(y=B(y))instanceof Date)&&(F.focusDate=y,F.opts.range&&y&&F._handleRangeOnFocus(),F.trigger(r.eventChangeFocusDate,y,L))}),G(this,"setCurrentView",y=>{if(this.viewIndexes.includes(y)){if(this.currentView=y,this.elIsInput&&this.visible&&this.setPosition(void 0,!0),this.trigger(r.eventChangeCurrentView,y),!this.views[y]){let L=this.views[y]=new I({dp:this,opts:this.opts,type:y});this.shouldUpdateDOM&&this.$content.appendChild(L.$el)}this.opts.onChangeView&&this.opts.onChangeView(y)}}),G(this,"_updateLastSelectedDate",y=>{this.lastSelectedDate=y,this.trigger(r.eventChangeLastSelectedDate,y)}),G(this,"destroy",()=>{let{showEvent:y,isMobile:L}=this.opts,H=this.$datepicker.parentNode;H&&H.removeChild(this.$datepicker),this.$el.removeEventListener(y,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),L&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts=null,this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=null,this.rangeDateFrom=null,this.rangeDateTo=null}),G(this,"update",y=>{let L=z({},this.opts);z(this.opts,y);let{timepicker:H,buttons:Y,range:ie,selectedDates:re,isMobile:se}=this.opts,ve=this.visible||this.treatAsInline;this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this._handleLocale(),!L.selectedDates&&re&&this.selectDate(re),y.view&&this.setCurrentView(y.view),this._setInputValue(),L.range&&!ie?(this.rangeDateTo=!1,this.rangeDateFrom=!1):!L.range&&ie&&this.selectedDates.length&&(this.rangeDateFrom=this.selectedDates[0],this.rangeDateTo=this.selectedDates[1]),L.timepicker&&!H?(ve&&this.timepicker.destroy(),this.timepicker=!1,this.$timepicker.parentNode.removeChild(this.$timepicker)):!L.timepicker&&H&&this._addTimepicker(),!L.buttons&&Y?this._addButtons():L.buttons&&!Y?(this.buttons.destroy(),this.$buttons.parentNode.removeChild(this.$buttons)):ve&&L.buttons&&Y&&this.buttons.clearHtml().render(),!L.isMobile&&se?(this.treatAsInline||be||this._createMobileOverlay(),this._addMobileAttributes(),this.visible&&this._showMobileOverlay()):L.isMobile&&!se&&(this._removeMobileAttributes(),this.visible&&(be.classList.remove("-active-"),typeof this.opts.position!="function"&&this.setPosition())),ve&&(this.nav.update(),this.views[this.currentView].render(),this.currentView===r.days&&this.views[this.currentView].renderDayNames())}),G(this,"isOtherMonth",y=>{let{month:L}=g(y);return L!==this.parsedViewDate.month}),G(this,"isOtherYear",y=>{let{year:L}=g(y);return L!==this.parsedViewDate.year}),G(this,"isOtherDecade",y=>{let{year:L}=g(y),[H,Y]=R(this.viewDate);return L<H||L>Y}),G(this,"_onChangeSelectedDate",y=>{let{silent:L}=y;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!L&&this._triggerOnSelect()})}),G(this,"_onChangeFocusedDate",function(y){let{viewDateTransition:L}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y)return;let H=!1;L&&(H=F.isOtherMonth(y)||F.isOtherYear(y)||F.isOtherDecade(y)),H&&F.setViewDate(y)}),G(this,"_onChangeTime",y=>{let{hours:L,minutes:H}=y,Y=new Date,{lastSelectedDate:ie,opts:{onSelect:re}}=this,se=ie;ie||(se=Y);let ve=this.getCell(se,this.currentViewSingular),me=ve&&ve.adpCell;me&&me.isDisabled||(se.setHours(L),se.setMinutes(H),ie?(this._setInputValue(),re&&this._triggerOnSelect()):this.selectDate(se))}),G(this,"_onFocus",y=>{this.visible||this.show()}),G(this,"_onBlur",y=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),G(this,"_onMouseDown",y=>{this.inFocus=!0}),G(this,"_onMouseUp",y=>{this.inFocus=!1,this.$el.focus()}),G(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),G(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),G(this,"isWeekend",y=>this.opts.weekends.includes(y)),G(this,"getClampedDate",y=>{let{minDate:L,maxDate:H}=this,Y=y;return H&&w(y,H)?Y=H:L&&P(y,L)&&(Y=L),Y}),this.$el=o(h),!this.$el)return;this.$datepicker=c({className:"air-datepicker"}),this.opts=z({},m,O),this.$customContainer=!!this.opts.container&&o(this.opts.container),this.$altField=o(this.opts.altField||!1),Z||(Z=o("body"));let{view:u,startDate:v}=this.opts;v||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=B(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=u,this.selectedDates=[],this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:h,treatAsInline:O,opts:{inline:F,isMobile:u,selectedDates:v,keyboardNav:y,onlyTimepicker:L}}=this;var H;Te||F||!this.elIsInput||(Te=!0,ue=c({className:H=Se.defaultContainerId,id:H}),Z.appendChild(ue)),!u||be||O||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(F||this._bindEvents(),y&&!L&&(this.keyboardNav=new X({dp:this,opts:h}))),v&&this.selectDate(v,{silent:!0}),this.opts.visible&&!O&&this.show(),u&&!O&&this.$el.setAttribute("readonly",!0),O&&this._createComponents()}_createMobileOverlay(){be=c({className:"air-datepicker-overlay"}),ue.appendChild(be)}_createComponents(){let{opts:h,treatAsInline:O,opts:{inline:F,buttons:u,timepicker:v,position:y,classes:L,onlyTimepicker:H,isMobile:Y}}=this;this._buildBaseHtml(),this.elIsInput&&(F||this._setPositionClasses(y)),!F&&this.elIsInput||this.$datepicker.classList.add("-inline-"),L&&this.$datepicker.classList.add(...L.split(" ")),H&&this.$datepicker.classList.add("-only-timepicker-"),Y&&!O&&this._addMobileAttributes(),this.views[this.currentView]=new I({dp:this,type:this.currentView,opts:h}),this.nav=new q({dp:this,opts:h}),v&&this._addTimepicker(),u&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let h in this.views)this.views[h].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){be.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){be.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:h,maxDate:O}=this.opts;this.minDate=!!h&&B(h),this.maxDate=!!O&&B(O)}_addTimepicker(){this.$timepicker=c({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new de({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=c({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new fe({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(r.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(r.eventChangeFocusDate,this._onChangeFocusedDate),this.on(r.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:h}=this.opts;var O,F;this.elIsInput?h?(O=this.$datepicker,(F=this.$el).parentNode.insertBefore(O,F.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=o(".air-datepicker--content",this.$datepicker),this.$pointer=o(".air-datepicker--pointer",this.$datepicker),this.$nav=o(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:h,dateFormat:O,firstDay:F,timepicker:u,onlyTimepicker:v,timeFormat:y,dateTimeSeparator:L}=this.opts;var H;this.locale=(H=h,JSON.parse(JSON.stringify(H))),O&&(this.locale.dateFormat=O),y!==void 0&&y!==""&&(this.locale.timeFormat=y);let{timeFormat:Y}=this.locale;if(F!==""&&(this.locale.firstDay=F),u&&typeof O!="function"){let ie=Y?L:"";this.locale.dateFormat=[this.locale.dateFormat,Y||""].join(ie)}v&&typeof O!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(h){if(typeof h=="function")return void this.$datepicker.classList.add("-custom-position-");let O=(h=h.split(" "))[0],F=h[1],u="air-datepicker -".concat(O,"-").concat(F,"- -from-").concat(O,"-");this.$datepicker.classList.add(...u.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:h,minDate:O,maxDate:F}=this;F&&w(h,F)&&this.setViewDate(F),O&&P(h,O)&&this.setViewDate(O)}formatDate(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,O=arguments.length>1?arguments[1]:void 0;if(h=B(h),!(h instanceof Date))return;let F=O,u=this.locale,v=g(h),y=R(h),L=Se.replacer,H="am";this.opts.timepicker&&this.timepicker&&(H=this.timepicker.getDayPeriod(h).dayPeriod);let Y={T:h.getTime(),m:v.minutes,mm:v.fullMinutes,h:v.hours12,hh:v.fullHours12,H:v.hours,HH:v.fullHours,aa:H,AA:H.toUpperCase(),E:u.daysShort[v.day],EEEE:u.days[v.day],d:v.date,dd:v.fullDate,M:v.month+1,MM:v.fullMonth,MMM:u.monthsShort[v.month],MMMM:u.months[v.month],yy:v.year.toString().slice(-2),yyyy:v.year,yyyy1:y[0],yyyy2:y[1]};for(let[ie,re]of Object.entries(Y))F=L(F,M(ie),re);return F}down(h){this._handleUpDownActions(h,"down")}up(h){this._handleUpDownActions(h,"up")}selectDate(h){let O,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:u,parsedViewDate:v,selectedDates:y}=this,{updateTime:L}=F,{moveToOtherMonthsOnSelect:H,moveToOtherYearsOnSelect:Y,multipleDates:ie,range:re,autoClose:se}=this.opts,ve=y.length;if(Array.isArray(h))return h.forEach(me=>{this.selectDate(me,F)}),new Promise(me=>{setTimeout(me)});if((h=B(h))instanceof Date){if(u===r.days&&h.getMonth()!==v.month&&H&&(O=new Date(h.getFullYear(),h.getMonth(),1)),u===r.years&&h.getFullYear()!==v.year&&Y&&(O=new Date(h.getFullYear(),0,1)),O&&this.setViewDate(O),ie&&!re){if(ve===ie)return;this._checkIfDateIsSelected(h)||y.push(h)}else if(re)switch(ve){case 1:y.push(h),this.rangeDateTo||(this.rangeDateTo=h),w(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=h),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[h],this.rangeDateFrom=h,this.rangeDateTo="";break;default:this.selectedDates=[h],this.rangeDateFrom=h}else this.selectedDates=[h];return this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,silent:F==null?void 0:F.silent,date:h,updateTime:L}),this._updateLastSelectedDate(h),se&&!this.timepickerIsActive&&this.visible&&(ie||re?re&&ve===1&&this.hide():this.hide()),new Promise(me=>{setTimeout(me)})}}unselectDate(h){let O=this.selectedDates,F=this;if((h=B(h))instanceof Date)return O.some((u,v)=>{if(S(u,h))return O.splice(v,1),F.selectedDates.length?F._updateLastSelectedDate(F.selectedDates[F.selectedDates.length-1]):(F.rangeDateFrom="",F.rangeDateTo="",F._updateLastSelectedDate(!1)),this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,date:h}),!0})}replaceDate(h,O){let F=this.selectedDates.find(v=>S(v,h,this.currentView)),u=this.selectedDates.indexOf(F);u<0||S(this.selectedDates[u],O,this.currentView)||(this.selectedDates[u]=O,this.trigger(r.eventChangeSelectedDate,{action:r.actionSelectDate,date:O,updateTime:!0}),this._updateLastSelectedDate(O))}clear(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.trigger(r.eventChangeSelectedDate,{action:r.actionUnselectDate,silent:h.silent}),new Promise(O=>{setTimeout(O)})}show(){let{onShow:h,isMobile:O}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,h&&this._scheduleCallAfterTransition(h),O&&this._showMobileOverlay()}hide(){let{onHide:h,isMobile:O}=this.opts,F=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(u=>{!this.customHide&&(u&&F||!u&&!F)&&this._finishHide(),h&&h(u)}),O&&be.classList.remove("-active-")}_triggerOnSelect(){let h=[],O=[],{selectedDates:F,locale:u,opts:{onSelect:v,multipleDates:y,range:L}}=this,H=y||L,Y=typeof u.dateFormat=="function";F.length&&(h=F.map(j),O=Y?y?u.dateFormat(h):h.map(ie=>u.dateFormat(ie)):h.map(ie=>this.formatDate(ie,u.dateFormat))),v({date:H?h:h[0],formattedDate:H?O:O[0],datepicker:this})}_handleAlreadySelectedDates(h,O){let{range:F,toggleSelected:u}=this.opts;F?u?this.unselectDate(O):this.selectedDates.length!==2&&this.selectDate(O):u&&this.unselectDate(O),u||this._updateLastSelectedDate(h)}_handleUpDownActions(h,O){if(!((h=B(h||this.focusDate||this.viewDate))instanceof Date))return;let F=O==="up"?this.viewIndex+1:this.viewIndex-1;F>2&&(F=2),F<0&&(F=0),this.setViewDate(new Date(h.getFullYear(),h.getMonth(),1)),this.setCurrentView(this.viewIndexes[F])}_handleRangeOnFocus(){this.selectedDates.length===1&&(w(this.selectedDates[0],this.focusDate)?(this.rangeDateTo=this.selectedDates[0],this.rangeDateFrom=this.focusDate):(this.rangeDateTo=this.focusDate,this.rangeDateFrom=this.selectedDates[0]))}getCell(h){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.day;if(!((h=B(h))instanceof Date))return;let{year:F,month:u,date:v}=g(h),y='[data-year="'.concat(F,'"]'),L='[data-month="'.concat(u,'"]'),H='[data-date="'.concat(v,'"]'),Y={[r.day]:"".concat(y).concat(L).concat(H),[r.month]:"".concat(y).concat(L),[r.year]:"".concat(y)};return this.views[this.currentView].$el.querySelector(Y[O])}_showMobileOverlay(){be.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((h,O)=>parseFloat(O)+h,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return g(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return R(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===r.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===r.days}get $container(){return this.$customContainer||ue}static replacer(h,O,F){return h.replace(O,function(u,v,y,L){return v+F+L})}}var te;return G(Se,"defaults",m),G(Se,"version","3.3.0"),G(Se,"defaultContainerId","air-datepicker-global-container"),te=Se.prototype,Object.assign(te,K),n.default}()})}),x4=ni(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};t.default=i});const k4=r1(x4),A4=':host{display:block}:host *{box-sizing:border-box}.date-picker{padding:var(--s-space-8) var(--s-space-16);background-color:var(--s-surface-overlay-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);letter-spacing:var(--s-letter-spacing-tighter)}@media (min-width: 768px){.date-picker{max-width:17.5rem}}.air-datepicker--pointer{display:none}.air-datepicker-nav{display:flex;margin-bottom:var(--s-space-8);align-items:center;gap:var(--s-space-4)}.air-datepicker-nav--action{position:relative;display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-highlight);cursor:pointer;order:2}.air-datepicker-nav--action:hover{background-color:var(--s-surface-overlay-hovered)}.air-datepicker-nav--title{padding:var(--s-space-8);flex-grow:1;border-radius:var(--s-border-radius-s);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left;cursor:pointer;order:0}.air-datepicker-nav--title i{font-style:normal}.air-datepicker-body--day-names{display:flex;margin-bottom:var(--s-space-8);justify-content:space-between;align-items:center}.air-datepicker-body--day-name{display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;color:var(--s-text-subdued);aspect-ratio:1}.air-datepicker-body--cells{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between}.air-datepicker-body--cells.-months-{gap:var(--s-space-2)}.air-datepicker-cell{position:relative;display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;font-weight:var(--s-font-weight-medium);cursor:pointer;aspect-ratio:1}.air-datepicker-cell:not(.-month-):not(.-year-):not(.-in-range-):hover:before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-overlay-hovered);content:"";inset:0}.air-datepicker-cell.-month-,.air-datepicker-cell.-year-{height:2.5rem;flex-basis:calc(100 / 3 * 1% - var(--s-space-2) * 2);border-radius:var(--s-border-radius-s);aspect-ratio:auto}.air-datepicker-cell.-month-.-in-range-:before,.air-datepicker-cell.-year-.-in-range-:before{border-radius:var(--s-border-radius-s)}.air-datepicker-cell.-month-:hover:not(.-in-range-):not(.-selected-),.air-datepicker-cell.-year-:hover:not(.-in-range-):not(.-selected-){background-color:var(--s-surface-overlay-hovered)}.air-datepicker-cell.-other-month-{color:var(--s-text-subdued)}.air-datepicker-cell.-current-:not(.-month-):not(.-year-):after{position:absolute;z-index:-1;border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:50%;content:"";inset:0}.air-datepicker-cell.-selected-{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-selected-.-year-,.air-datepicker-cell.-selected-.-month-{background-color:var(--s-surface-highlight-default)}.air-datepicker-cell.-selected-:not(.-month-):not(.-year-):not(.-in-range-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-disabled-{color:var(--s-text-subdued);cursor:default}.air-datepicker-cell.-disabled-:hover{background-color:transparent}.air-datepicker-cell.-in-range-:before{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):after{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:50%;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):after{position:absolute;z-index:-1;top:0.0625rem;right:50%;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.-hidden-{display:none}',vc=class{constructor(e){Le(this,e),this.valueChange=Ct(this,"valueChange",3),this.locale=k4,this.onClick=t=>{t.stopPropagation(),t.preventDefault()}}watchProps(){this.init()}componentDidLoad(){this.init()}disconnectedCallback(){var e;(e=this.picker)===null||e===void 0||e.destroy()}init(){var e;(e=this.picker)===null||e===void 0||e.destroy(),this.picker=new S4(this.containerEl,{classes:"date-picker",inline:!0,locale:this.locale,maxDate:this.maxDate,minDate:this.minDate,minView:"days",nextHtml:"<flip-icon-chevron-right></flip-icon-chevron-right>",onSelect:({date:t})=>{this.valueChange.emit(t)},prevHtml:"<flip-icon-chevron-left></flip-icon-chevron-left>",range:this.range,selectedDates:this.value===void 0?void 0:Array.isArray(this.value)?this.value:[this.value],startDate:this.startDate,toggleSelected:!this.range,view:"days"})}render(){return l(et,{onClick:this.onClick},l("div",{ref:e=>this.containerEl=e}))}static get watchers(){return{locale:["watchProps"],maxDate:["watchProps"],minDate:["watchProps"],range:["watchProps"],startDate:["watchProps"],value:["watchProps"]}}};vc.style=A4;const T4=":host{display:inline-flex}",bc=class{constructor(e){Le(this,e),this.size=24}render(){return l("svg",{class:"flip-icon",fill:"none",height:this.size,part:"icon",viewBox:`0 0 ${this.size} ${this.size}`,width:this.size,xmlns:"http://www.w3.org/2000/svg"},this.size===16&&l(pe,null,l("path",{d:"M6 11C5.53333 11 5.13889 10.8389 4.81667 10.5167C4.49444 10.1945 4.33333 9.80004 4.33333 9.33337C4.33333 8.86671 4.49444 8.47226 4.81667 8.15004C5.13889 7.82782 5.53333 7.66671 6 7.66671C6.46667 7.66671 6.86111 7.82782 7.18333 8.15004C7.50556 8.47226 7.66667 8.86671 7.66667 9.33337C7.66667 9.80004 7.50556 10.1945 7.18333 10.5167C6.86111 10.8389 6.46667 11 6 11ZM3.33333 14.6667C2.96667 14.6667 2.65267 14.5363 2.39133 14.2754C2.13044 14.014 2 13.7 2 13.3334V4.00004C2 3.63337 2.13044 3.3196 2.39133 3.05871C2.65267 2.79737 2.96667 2.66671 3.33333 2.66671H4V2.00004C4 1.81115 4.06378 1.65271 4.19133 1.52471C4.31933 1.39715 4.47778 1.33337 4.66667 1.33337C4.85556 1.33337 5.014 1.39715 5.142 1.52471C5.26956 1.65271 5.33333 1.81115 5.33333 2.00004V2.66671H10.6667V2.00004C10.6667 1.81115 10.7307 1.65271 10.8587 1.52471C10.9862 1.39715 11.1444 1.33337 11.3333 1.33337C11.5222 1.33337 11.6804 1.39715 11.808 1.52471C11.936 1.65271 12 1.81115 12 2.00004V2.66671H12.6667C13.0333 2.66671 13.3473 2.79737 13.6087 3.05871C13.8696 3.3196 14 3.63337 14 4.00004V13.3334C14 13.7 13.8696 14.014 13.6087 14.2754C13.3473 14.5363 13.0333 14.6667 12.6667 14.6667H3.33333ZM3.33333 13.3334H12.6667V6.66671H3.33333V13.3334Z",fill:"currentColor"})),this.size===24&&l(pe,null,l("path",{d:"M9 16.5C8.3 16.5 7.70833 16.2583 7.225 15.775C6.74167 15.2917 6.5 14.7 6.5 14C6.5 13.3 6.74167 12.7083 7.225 12.225C7.70833 11.7417 8.3 11.5 9 11.5C9.7 11.5 10.2917 11.7417 10.775 12.225C11.2583 12.7083 11.5 13.3 11.5 14C11.5 14.7 11.2583 15.2917 10.775 15.775C10.2917 16.2583 9.7 16.5 9 16.5ZM5 22C4.45 22 3.979 21.8043 3.587 21.413C3.19567 21.021 3 20.55 3 20V6C3 5.45 3.19567 4.97933 3.587 4.588C3.979 4.196 4.45 4 5 4H6V3C6 2.71667 6.09567 2.479 6.287 2.287C6.479 2.09567 6.71667 2 7 2C7.28333 2 7.521 2.09567 7.713 2.287C7.90433 2.479 8 2.71667 8 3V4H16V3C16 2.71667 16.096 2.479 16.288 2.287C16.4793 2.09567 16.7167 2 17 2C17.2833 2 17.5207 2.09567 17.712 2.287C17.904 2.479 18 2.71667 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.8043 4.97933 21 5.45 21 6V20C21 20.55 20.8043 21.021 20.413 21.413C20.021 21.8043 19.55 22 19 22H5ZM5 20H19V10H5V20Z",fill:"currentColor"})),this.size===28&&l(pe,null,l("path",{d:"M10.5 19.25C9.68333 19.25 8.99306 18.9681 8.42917 18.4042C7.86528 17.8403 7.58333 17.15 7.58333 16.3334C7.58333 15.5167 7.86528 14.8264 8.42917 14.2625C8.99306 13.6987 9.68333 13.4167 10.5 13.4167C11.3167 13.4167 12.0069 13.6987 12.5708 14.2625C13.1347 14.8264 13.4167 15.5167 13.4167 16.3334C13.4167 17.15 13.1347 17.8403 12.5708 18.4042C12.0069 18.9681 11.3167 19.25 10.5 19.25ZM5.83333 25.6667C5.19167 25.6667 4.64217 25.4384 4.18483 24.9819C3.72828 24.5245 3.5 23.975 3.5 23.3334V7.00004C3.5 6.35837 3.72828 5.80926 4.18483 5.35271C4.64217 4.89537 5.19167 4.66671 5.83333 4.66671H7V3.50004C7 3.16949 7.11161 2.89221 7.33483 2.66821C7.55883 2.44499 7.83611 2.33337 8.16667 2.33337C8.49722 2.33337 8.7745 2.44499 8.9985 2.66821C9.22172 2.89221 9.33333 3.16949 9.33333 3.50004V4.66671H18.6667V3.50004C18.6667 3.16949 18.7787 2.89221 19.0027 2.66821C19.2259 2.44499 19.5028 2.33337 19.8333 2.33337C20.1639 2.33337 20.4408 2.44499 20.664 2.66821C20.888 2.89221 21 3.16949 21 3.50004V4.66671H22.1667C22.8083 4.66671 23.3578 4.89537 23.8152 5.35271C24.2717 5.80926 24.5 6.35837 24.5 7.00004V23.3334C24.5 23.975 24.2717 24.5245 23.8152 24.9819C23.3578 25.4384 22.8083 25.6667 22.1667 25.6667H5.83333ZM5.83333 23.3334H22.1667V11.6667H5.83333V23.3334Z",fill:"currentColor"})))}};bc.style=T4;const P4=":host{position:relative;z-index:var(--s-z-40);display:inline-flex}:host *{box-sizing:border-box}.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:0.15s popover-fade-in;animation:0.15s popover-fade-in}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__backdrop{-webkit-animation:none;animation:none}}.popover--active:not(.popover--closing) .popover__content{-webkit-animation:0.15s popover-slide-in;animation:0.15s popover-slide-in}@media (min-width: 768px){.popover--active:not(.popover--closing) .popover__content{transform-origin:top left;-webkit-animation:0.15s popover-fade-scale-in;animation:0.15s popover-fade-scale-in}}@media (prefers-reduced-motion){.popover--active:not(.popover--closing) .popover__content{-webkit-animation:none;animation:none}}.popover--closing .popover__backdrop{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (prefers-reduced-motion){.popover--closing .popover__backdrop{-webkit-animation:none;animation:none}}.popover--closing .popover__content{-webkit-animation:0.15s popover-slide-out;animation:0.15s popover-slide-out;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@media (min-width: 768px){.popover--closing .popover__content{-webkit-animation:0.15s popover-fade-out;animation:0.15s popover-fade-out}}@media (prefers-reduced-motion){.popover--closing .popover__content{-webkit-animation:none;animation:none}}.popover--inactive .popover__content{display:none}.popover__backdrop{position:fixed;z-index:0;background-color:rgba(0, 0, 0, 0.2);-webkit-animation:0.15s popover-backdrop-fade-in;animation:0.15s popover-backdrop-fade-in;inset:0}@media (prefers-reduced-motion){.popover__backdrop{-webkit-animation:none;animation:none}}@media (min-width: 768px){.popover__backdrop{display:none}}.popover__content{position:fixed;z-index:2;right:0;bottom:0;left:0;overflow:hidden;border-top-left-radius:var(--s-border-radius-xl);border-top-right-radius:var(--s-border-radius-xl);background-color:var(--s-surface-overlay-default)}@media (min-width: 768px){.popover__content{right:unset;bottom:unset;left:unset;max-width:22.5rem;border-radius:var(--s-border-radius-xl);-webkit-animation:none;animation:none;box-shadow:0.125rem 0.25rem 2.5rem rgba(0, 0, 0, 0.14)}}.popover__scroll-container{overflow-x:hidden;overflow-y:auto;width:100%;max-height:90vh;padding-top:var(--s-space-24);padding-bottom:var(--s-space-24);overscroll-behavior:contain}@media (min-width: 768px){.popover__scroll-container{max-height:22rem;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8)}}.popover__handle{position:absolute;top:var(--s-space-8);left:50%;width:2.5rem;height:0.375rem;border-radius:0.1875rem;background-color:var(--s-border-default);transform:translatex(-50%)}@media (min-width: 768px){.popover__handle{display:none}}@-webkit-keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes popover-slide-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes popover-slide-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@keyframes popover-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@keyframes popover-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes popover-fade-scale-in{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}",Cc=class{constructor(e){Le(this,e),this.placement="bottom-start",this.active=!1,this.closing=!1,this.onFocusOut=t=>{if(!this.active)return;const i=t.relatedTarget||t.target;!this.el.contains(i)&&this.close()},this.toggle=t=>{t.stopPropagation(),this.active?this.close():this.open()},this.onKeydown=t=>{t.code==="Escape"&&this.active&&this.close()},this.reposition=async()=>{const t=a1();if(!(!Boolean(this.triggerEl)||!Boolean(this.contentContainer))){if(t){this.position=void 0;return}this.position=await hc(this.triggerEl,this.contentContainer,{middleware:[ec(),Jl()],placement:this.placement,strategy:"fixed"})}},this.onCloseButtonClick=()=>{this.close()}}componentDidLoad(){this.connectTrigger(),this.updateChildMenuItems(),this.updateTriggerAttributes()}disconnectedCallback(){ta(this.scrollContainer)}onWindowClick(e){const t=e.target;this.el.contains(t)||this.close()}async close(){var e;this.closing||(this.disableAutoUpdate&&this.disableAutoUpdate(),this.closing=!0,setTimeout(()=>{this.active=!1,this.closing=!1,this.updateTriggerAttributes()},150),this.unlockBodyScroll(),(e=this.triggerEl)===null||e===void 0||e.focus())}async open(){this.active=!0,this.updateChildMenuItems(),this.updateTriggerAttributes(),requestAnimationFrame(async()=>{await this.reposition(),this.childMenuItems.length>0?this.childMenuItems[0].focus():this.contentContainer.focus(),this.disableAutoUpdate&&this.disableAutoUpdate(),this.disableAutoUpdate=m4(this.triggerEl,this.contentContainer,this.reposition),this.scrollContainer.scrollTop=0,this.lockBodyScroll()})}connectTrigger(){var e;const t=kn(document.body,`#${this.trigger}`)[0];this.triggerEl=(t==null?void 0:t.children[0])||((e=t==null?void 0:t.shadowRoot)===null||e===void 0?void 0:e.children[0])||t,Boolean(this.triggerEl)&&this.triggerEl.addEventListener("click",this.toggle)}updateTriggerAttributes(){!Boolean(this.triggerEl)||(this.triggerEl.setAttribute("aria-controls",this.popoverId),this.triggerEl.setAttribute("aria-expanded",String(this.active)),this.triggerEl.setAttribute("aria-haspopup","dialog"))}updateChildMenuItems(){this.childMenuItems=kn(this.el,'[role="menuitem"]')}lockBodyScroll(){!a1()||gc(this.scrollContainer)}unlockBodyScroll(){ta(this.scrollContainer)}render(){var e,t;const i=dt("popover",{"popover--closing":this.closing,"popover--active":this.active,"popover--inactive":!this.active});return l(et,{id:this.popoverId,onFocusout:this.onFocusOut},l("div",{class:i,onKeyDown:this.onKeydown},l("div",{"aria-hidden":this.active?"false":"true","aria-label":this.label,class:"popover__content",role:"dialog",tabindex:"-1",ref:n=>this.contentContainer=n,style:{top:Boolean(this.position)?`${(e=this.position)===null||e===void 0?void 0:e.y}px`:"",left:Boolean(this.position)?`${(t=this.position)===null||t===void 0?void 0:t.x}px`:""}},l("span",{class:"popover__handle"}),l("div",{class:"popover__scroll-container",ref:n=>this.scrollContainer=n},l("slot",null))),this.active&&l("div",{class:"popover__backdrop",onClick:this.onCloseButtonClick})))}get el(){return zt(this)}};Cc.style=P4;const E4=Object.freeze(Object.defineProperty({__proto__:null,flip_date_picker:vc,flip_icon_today:bc,flip_popover:Cc},Symbol.toStringTag,{value:"Module"})),O4=`:host {
|
|
45
45
|
display: block;
|
|
46
46
|
}
|
|
47
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getflip/swirl-components-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@getflip/swirl-components": "^0.3.
|
|
21
|
+
"@getflip/swirl-components": "^0.3.1",
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0"
|
|
24
24
|
},
|