Socket
Socket
Sign inDemoInstall

@schedule-x/vue

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-x/vue - npm Package Compare versions

Comparing version 1.46.0 to 1.47.0

2

dist/schedule-x-vue.umd.js

@@ -1,1 +0,1 @@

(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["schedule-x-vue"]={},n.Vue))})(this,function(n,e){"use strict";const p=(t,s)=>(o,r)=>{const a={Component:e.h(s,r),wrapperElement:o};t(a)},i=e.defineComponent({name:"ScheduleXCalendar",props:{calendarApp:{type:Object,required:!0},customComponents:{type:Object,default:()=>({})}},data(){return{elId:"sx"+Math.random().toString(36).substr(2,9),customComponentsMeta:[]}},mounted(){const t={...this.customComponents,...this.$slots};for(const[s,o]of Object.entries(t))this.calendarApp._setCustomComponentFn(s,p(this.setCustomComponentMeta,o));this.calendarApp.render(document.getElementById(this.elId))},methods:{setCustomComponentMeta(t){if(!(t.wrapperElement instanceof HTMLElement))return;const o=({wrapperElement:d})=>d instanceof HTMLElement,r=[...this.customComponentsMeta.filter(o)],a=t.wrapperElement.dataset.ccid,c=r.find(({wrapperElement:d})=>d.dataset.ccid===a);c&&r.splice(r.indexOf(c),1),this.customComponentsMeta=[...r,t]}},render(){const t=this.customComponentsMeta.map(({Component:s,wrapperElement:o})=>e.h(e.Teleport,{to:o},s));return e.h("div",{id:this.elId,class:"sx-vue-calendar-wrapper"},e.h(e.Fragment,{},t))}});n.ScheduleXCalendar=i,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
(function(A,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],P):(A=typeof globalThis<"u"?globalThis:A||self,P(A["schedule-x-vue"]={},A.Vue))})(this,function(A,P){"use strict";const Rt=(e,t)=>(n,r)=>{const o={Component:P.h(t,r),wrapperElement:n};e(o)},Wt=P.defineComponent({name:"ScheduleXCalendar",props:{calendarApp:{type:Object,required:!0},customComponents:{type:Object,default:()=>({})}},data(){return{elId:"sx"+Math.random().toString(36).substr(2,9),customComponentsMeta:[]}},mounted(){const e={...this.customComponents,...this.$slots};for(const[t,n]of Object.entries(e))this.calendarApp._setCustomComponentFn(t,Rt(this.setCustomComponentMeta,n));this.calendarApp.render(document.getElementById(this.elId))},methods:{setCustomComponentMeta(e){if(!(e.wrapperElement instanceof HTMLElement))return;const n=({wrapperElement:a})=>a instanceof HTMLElement,r=[...this.customComponentsMeta.filter(n)],o=e.wrapperElement.dataset.ccid,i=r.find(({wrapperElement:a})=>a.dataset.ccid===o);i&&r.splice(r.indexOf(i),1),this.customComponentsMeta=[...r,e]}},render(){const e=this.customComponentsMeta.map(({Component:t,wrapperElement:n})=>P.h(P.Teleport,{to:n},t));return P.h("div",{id:this.elId,class:"sx-vue-calendar-wrapper"},P.h(P.Fragment,{},e))}});var ne,f,Ie,Ue,W,Re,We,ke,Ve,J={},je=[],Vt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function F(e,t){for(var n in t)e[n]=t[n];return e}function He(e){var t=e.parentNode;t&&t.removeChild(e)}function H(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?ne.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return oe(e,a,r,o,null)}function oe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Ie,__i:-1,__u:0};return o==null&&f.vnode!=null&&f.vnode(i),i}function S(e){return e.children}function C(e,t){this.props=e,this.context=t}function z(e,t){if(t==null)return e.__?z(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?z(e):null}function ze(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ze(e)}}function ge(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!ie.__r++||Re!==f.debounceRendering)&&((Re=f.debounceRendering)||We)(ie)}function ie(){var e,t,n,r,o,i,a,s,c;for(W.sort(ke);e=W.shift();)e.__d&&(t=W.length,r=void 0,i=(o=(n=e).__v).__e,s=[],c=[],(a=n.__P)&&((r=F({},o)).__v=o.__v+1,f.vnode&&f.vnode(r),be(a,r,o,n.__n,a.ownerSVGElement!==void 0,32&o.__u?[i]:null,s,i??z(o),!!(32&o.__u),c),r.__.__k[r.__i]=r,qe(s,r,c),r.__e!=i&&ze(r)),W.length>t&&W.sort(ke));ie.__r=0}function Be(e,t,n,r,o,i,a,s,c,u,d){var l,_,h,p,w,k=r&&r.__k||je,y=t.length;for(n.__d=c,jt(n,t,k),c=n.__d,l=0;l<y;l++)(h=n.__k[l])!=null&&typeof h!="boolean"&&typeof h!="function"&&(_=h.__i===-1?J:k[h.__i]||J,h.__i=l,be(e,h,_,o,i,a,s,c,u,d),p=h.__e,h.ref&&_.ref!=h.ref&&(_.ref&&Pe(_.ref,null,h),d.push(h.ref,h.__c||p,h)),w==null&&p!=null&&(w=p),65536&h.__u||_.__k===h.__k?c=Ke(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=w}function jt(e,t,n){var r,o,i,a,s,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?oe(null,o,null,null,o):re(o)?oe(S,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?oe(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,s=Ht(o,n,a=r+l,d),o.__i=s,i=null,s!==-1&&(d--,(i=n[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s===a+1?l++:s>a?d>c-a?l+=s-a:l--:l=s<a&&s==a-1?s-a:0,s!==r+l&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=z(i)),Se(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=z(i)),Se(i,i))}function Ke(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Ke(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function ae(e,t){return t=t||[],e==null||typeof e=="boolean"||(re(e)?e.some(function(n){ae(n,t)}):t.push(e)),t}function Ht(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s++}}return-1}function Ge(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Vt.test(t)?n:n+"px"}function se(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ge(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ge(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?Ze:Je,i)):e.removeEventListener(t,i?Ze:Je,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Je(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(f.event?f.event(e):e)}function Ze(e){return this.l[e.type+!0](f.event?f.event(e):e)}function be(e,t,n,r,o,i,a,s,c,u){var d,l,_,h,p,w,k,y,b,R,me,te,Ut,ye,Fe,N=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(d=f.__b)&&d(t);e:if(typeof N=="function")try{if(y=t.props,b=(d=N.contextType)&&r[d.__c],R=d?b?b.props.value:d.__:r,n.__c?k=(l=t.__c=n.__c).__=l.__E:("prototype"in N&&N.prototype.render?t.__c=l=new N(y,R):(t.__c=l=new C(y,R),l.constructor=N,l.render=Bt),b&&b.sub(l),l.props=y,l.state||(l.state={}),l.context=R,l.__n=r,_=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),N.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=F({},l.__s)),F(l.__s,N.getDerivedStateFromProps(y,l.__s))),h=l.props,p=l.state,l.__v=t,_)N.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(N.getDerivedStateFromProps==null&&y!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,R),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,R)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(De){De&&(De.__=t)}),me=0;me<l._sb.length;me++)l.__h.push(l._sb[me]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,R),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,p,w)})}if(l.context=R,l.props=y,l.__P=e,l.__e=!1,te=f.__r,Ut=0,"prototype"in N&&N.prototype.render){for(l.state=l.__s,l.__d=!1,te&&te(t),d=l.render(l.props,l.state,l.context),ye=0;ye<l._sb.length;ye++)l.__h.push(l._sb[ye]);l._sb=[]}else do l.__d=!1,te&&te(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Ut<25);l.state=l.__s,l.getChildContext!=null&&(r=F(F({},r),l.getChildContext())),_||l.getSnapshotBeforeUpdate==null||(w=l.getSnapshotBeforeUpdate(h,p)),Be(e,re(Fe=d!=null&&d.type===S&&d.key==null?d.props.children:d)?Fe:[Fe],t,n,r,o,i,a,s,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),k&&(l.__E=l.__=null)}catch(De){t.__v=null,c||i!=null?(t.__e=s,t.__u|=c?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),f.__e(De,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=zt(n.__e,t,n,r,o,i,a,c,u);(d=f.diffed)&&d(t)}function qe(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Pe(n[r],n[++r],n[++r]);f.__c&&f.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){f.__e(i,o.__v)}})}function zt(e,t,n,r,o,i,a,s,c){var u,d,l,_,h,p,w,k=n.props,y=t.props,b=t.type;if(b==="svg"&&(o=!0),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!b&&(b?h.localName===b:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),i=null,s=!1}if(b===null)k===y||s&&e.data===y||(e.data=y);else{if(i=i&&ne.call(e.childNodes),k=n.props||J,!s&&i!=null)for(k={},u=0;u<e.attributes.length;u++)k[(h=e.attributes[u]).name]=h.value;for(u in k)h=k[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=h:u==="key"||u in y||se(e,u,null,h,o));for(u in y)h=y[u],u=="children"?_=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?p=h:u=="checked"?w=h:u==="key"||s&&typeof h!="function"||k[u]===h||se(e,u,h,k[u],o);if(d)s||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),Be(e,re(_)?_:[_],t,n,r,o&&b!=="foreignObject",i,a,i?i[0]:n.__k&&z(n,0),s,c),i!=null)for(u=i.length;u--;)i[u]!=null&&He(i[u]);s||(u="value",p!==void 0&&(p!==e[u]||b==="progress"&&!p||b==="option"&&p!==k[u])&&se(e,u,p,k[u],!1),u="checked",w!==void 0&&w!==e[u]&&se(e,u,w,k[u],!1))}return e}function Pe(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){f.__e(r,n)}}function Se(e,t,n){var r,o;if(f.unmount&&f.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Pe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){f.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Se(r[o],t,n||typeof e.type!="function");n||e.__e==null||He(e.__e),e.__=e.__e=e.__d=void 0}function Bt(e,t,n){return this.constructor(e,n)}function we(e,t,n){var r,o,i,a;f.__&&f.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],be(t,e=(!r&&n||t).__k=H(S,null,[e]),o||J,J,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ne.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),qe(i,e,a)}function Kt(e,t){var n={__c:t="__cC"+Ve++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(s){s.__e=!0,ge(s)})},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ne=je.slice,f={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Ie=0,Ue=function(e){return e!=null&&e.constructor==null},C.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=F({},this.state),typeof e=="function"&&(e=e(F({},n),this.props)),e&&F(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ge(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ge(this))},C.prototype.render=S,W=[],We=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ke=function(e,t){return e.__v.__b-t.__v.__b},ie.__r=0,Ve=0;var Gt=0;function v(e,t,n,r,o,i){var a,s,c={};for(s in t)s=="ref"?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Gt,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return f.vnode&&f.vnode(u),u}var B,m,Me,Xe,Ne=0,Qe=[],le=[],et=f.__b,tt=f.__r,nt=f.diffed,rt=f.__c,ot=f.unmount;function ce(e,t){f.__h&&f.__h(m,e,Ne||t),Ne=0;var n=m.__H||(m.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:le}),n.__[e]}function O(e){return Ne=1,Jt(lt,e)}function Jt(e,t,n){var r=ce(B++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):lt(void 0,t),function(s){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,s);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=m,!m.u)){var o=function(s,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(_){return _.__c});if(d.every(function(_){return!_.__N}))return!i||i.call(this,s,c,u);var l=!1;return d.forEach(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),!(!l&&r.__c.props===s)&&(!i||i.call(this,s,c,u))};m.u=!0;var i=m.shouldComponentUpdate,a=m.componentWillUpdate;m.componentWillUpdate=function(s,c,u){if(this.__e){var d=i;i=void 0,o(s,c,u),i=d}a&&a.call(this,s,c,u)},m.shouldComponentUpdate=o}return r.__N||r.__}function Y(e,t){var n=ce(B++,3);!f.__s&&st(n.__H,t)&&(n.__=e,n.i=t,m.__H.__h.push(n))}function it(e,t){var n=ce(B++,7);return st(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function I(e){var t=m.context[e.__c],n=ce(B++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(m)),t.props.value):e.__}function Zt(){for(var e;e=Qe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ue),e.__H.__h.forEach(Ye),e.__H.__h=[]}catch(t){e.__H.__h=[],f.__e(t,e.__v)}}f.__b=function(e){m=null,et&&et(e)},f.__r=function(e){tt&&tt(e),B=0;var t=(m=e.__c).__H;t&&(Me===m?(t.__h=[],m.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=le,n.__N=n.i=void 0})):(t.__h.forEach(ue),t.__h.forEach(Ye),t.__h=[],B=0)),Me=m},f.diffed=function(e){nt&&nt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qe.push(t)!==1&&Xe===f.requestAnimationFrame||((Xe=f.requestAnimationFrame)||qt)(Zt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==le&&(n.__=n.__V),n.i=void 0,n.__V=le})),Me=m=null},f.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ue),n.__h=n.__h.filter(function(r){return!r.__||Ye(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],f.__e(r,n.__v)}}),rt&&rt(e,t)},f.unmount=function(e){ot&&ot(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ue(r)}catch(o){t=o}}),n.__H=void 0,t&&f.__e(t,n.__v))};var at=typeof requestAnimationFrame=="function";function qt(e){var t,n=function(){clearTimeout(r),at&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);at&&(t=requestAnimationFrame(n))}function ue(e){var t=m,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),m=t}function Ye(e){var t=m;e.__c=e.__(),m=t}function st(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function lt(e,t){return typeof t=="function"?t(e):t}function Xt(e,t){for(var n in t)e[n]=t[n];return e}function ct(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ut(e){this.props=e}(ut.prototype=new C).isPureReactComponent=!0,ut.prototype.shouldComponentUpdate=function(e,t){return ct(this.props,e)||ct(this.state,t)};var dt=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),dt&&dt(e)};var Qt=f.__e;f.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Qt(e,t,n,r)};var _t=f.unmount;function ht(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Xt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ht(r,t,n)})),e}function ft(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ft(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function xe(){this.__u=0,this.t=null,this.__b=null}function pt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function de(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),_t&&_t(e)},(xe.prototype=new C).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=pt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=ft(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ht(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&H(S,null,e.fallback);return o&&(o.__u&=-33),[H(S,null,t.__a?null:e.children),o]};var vt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function en(e){return this.getChildContext=function(){return e.context},e.children}function tn(e){var t=this,n=e.i;t.componentWillUnmount=function(){we(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),we(H(en,{context:t.context},e.__v),t.l)}function nn(e,t){var n=H(tn,{__v:e,i:t});return n.containerInfo=t,n}(de.prototype=new C).__a=function(e){var t=this,n=pt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),vt(t,e,r)):o()};n?n(i):i()}},de.prototype.render=function(e){this.u=null,this.o=new Map;var t=ae(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},de.prototype.componentDidUpdate=de.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){vt(e,n,t)})};var rn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,on=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,an=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sn=/[A-Z0-9]/g,ln=typeof document<"u",cn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(C.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var mt=f.event;function un(){}function dn(){return this.cancelBubble}function _n(){return this.defaultPrevented}f.event=function(e){return mt&&(e=mt(e)),e.persist=un,e.isPropagationStopped=dn,e.isDefaultPrevented=_n,e.nativeEvent=e};var hn={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=f.vnode;f.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||ln&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var s=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":s==="ondoubleclick"?i="ondblclick":s!=="onchange"||r!=="input"&&r!=="textarea"||cn(n.type)?s==="onfocus"?i="onfocusin":s==="onblur"?i="onfocusout":an.test(i)?i=s:r.indexOf("-")===-1&&on.test(i)?i=i.replace(sn,"-$&").toLowerCase():a===null&&(a=void 0):s=i="oninput",s==="oninput"&&o[i=s]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ae(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ae(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",hn)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=rn,yt&&yt(e)};var Dt=f.__r;f.__r=function(e){Dt&&Dt(e),e.__c};var kt=f.diffed;f.diffed=function(e){kt&&kt(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function _e(){throw new Error("Cycle detected")}var fn=Symbol.for("preact-signals");function Ee(){if(K>1)K--;else{for(var e,t=!1;Z!==void 0;){var n=Z;for(Z=void 0,Te++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&bt(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(Te=0,K--,t)throw e}}var D=void 0,Z=void 0,K=0,Te=0,he=0;function gt(e){if(D!==void 0){var t=e.n;if(t===void 0||t.t!==D)return t={i:0,S:e,p:D.s,n:void 0,t:D,e:void 0,x:void 0,r:t},D.s!==void 0&&(D.s.n=t),D.s=t,e.n=t,32&D.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=D.s,t.n=void 0,D.s.n=t,D.s=t),t}}function g(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}g.prototype.brand=fn,g.prototype.h=function(){return!0},g.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)},g.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},g.prototype.subscribe=function(e){var t=this;return X(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},g.prototype.valueOf=function(){return this.value},g.prototype.toString=function(){return this.value+""},g.prototype.toJSON=function(){return this.value},g.prototype.peek=function(){return this.v},Object.defineProperty(g.prototype,"value",{get:function(){var e=gt(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(D instanceof U&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Te>100&&_e(),this.v=e,this.i++,he++,K++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ee()}}}});function L(e){return new g(e)}function bt(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Pt(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function St(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function U(e){g.call(this,void 0),this.x=e,this.s=void 0,this.g=he-1,this.f=4}(U.prototype=new g).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===he))return!0;if(this.g=he,this.f|=1,this.i>0&&!bt(this))return this.f&=-2,!0;var e=D;try{Pt(this),D=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return D=e,St(this),this.f&=-2,!0},U.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}g.prototype.S.call(this,e)},U.prototype.U=function(e){if(this.t!==void 0&&(g.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},U.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},U.prototype.peek=function(){if(this.h()||_e(),16&this.f)throw this.v;return this.v},Object.defineProperty(U.prototype,"value",{get:function(){1&this.f&&_e();var e=gt(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function pn(e){return new U(e)}function wt(e){var t=e.u;if(e.u=void 0,typeof t=="function"){K++;var n=D;D=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ce(e),r}finally{D=n,Ee()}}}function Ce(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,wt(e)}function vn(e){if(D!==this)throw new Error("Out-of-order effect");St(this),D=e,this.f&=-2,8&this.f&&Ce(this),Ee()}function q(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}q.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}},q.prototype.S=function(){1&this.f&&_e(),this.f|=1,this.f&=-9,wt(this),Pt(this),K++;var e=D;return D=this,vn.bind(this,e)},q.prototype.N=function(){2&this.f||(this.f|=2,this.o=Z,Z=this)},q.prototype.d=function(){this.f|=8,1&this.f||Ce(this)};function X(e){var t=new q(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Le;function G(e,t){f[e]=t.bind(null,f[e]||function(){})}function fe(e){Le&&Le(),Le=e&&e.S()}function Mt(e){var t=this,n=e.data,r=yn(n);r.value=n;var o=it(function(){for(var i=t.__v;i=i.__;)if(i.__c){i.__c.__$f|=4;break}return t.__$u.c=function(){var a;!Ue(o.peek())&&((a=t.base)==null?void 0:a.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},pn(function(){var a=r.value.value;return a===0?0:a===!0?"":a||""})},[]);return o.value}Mt.displayName="_st",Object.defineProperties(g.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Mt},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),G("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof g&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)}),G("__r",function(e,t){fe();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(o){var i;return X(function(){i=this}),i.c=function(){r.__$f|=1,r.setState({})},i}())),fe(n),e(t)}),G("__e",function(e,t,n,r){fe(),e(t,n,r)}),G("diffed",function(e,t){fe();var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props;if(r){var i=n.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in r)&&(s.d(),i[a]=void 0)}else n.U=i={};for(var c in r){var u=i[c],d=r[c];u===void 0?(u=mn(n,c,d,o),i[c]=u):u.o(d,o)}}}e(t)});function mn(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=L(n);return{o:function(a,s){i.value=a,r=s},d:X(function(){var a=i.value.value;r[t]!==a&&(r[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}G("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)}),G("__h",function(e,t,n,r){(r<3||r===9)&&(t.__$f|=2),e(t,n,r)}),C.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var i in this.props)if(!(i in e))return!0;return!1};function yn(e){return it(function(){return L(e)},[])}const $=Kt({}),Nt={DATE_STRING:/^\d{4}-\d{2}-\d{2}$/,TIME_STRING:/^\d{2}:\d{2}$/,DATE_TIME_STRING:/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/};class Dn extends Error{constructor(t){super(`Invalid date time specification: ${t}`)}}const V=e=>{if(!Nt.DATE_TIME_STRING.test(e)&&!Nt.DATE_STRING.test(e))throw new Dn(e);return new Date(Number(e.slice(0,4)),Number(e.slice(5,7))-1,Number(e.slice(8,10)),Number(e.slice(11,13)),Number(e.slice(14,16)))},Q=e=>{const t=e.slice(11,13),n=e.slice(14,16);return{year:Number(e.slice(0,4)),month:Number(e.slice(5,7))-1,date:Number(e.slice(8,10)),hours:t!==""?Number(t):void 0,minutes:n!==""?Number(n):void 0}},Yt=(e,t)=>e.toLocaleString(t,{month:"long"}),kn=(e,t)=>e.toLocaleString(t,{month:"numeric",day:"numeric",year:"numeric"}),gn=(e,t)=>e.map(n=>n.toLocaleString(t,{weekday:"short"}).charAt(0)),bn=(e,t)=>e.toLocaleString(t,{weekday:"short"}),Pn=(e,t)=>e.map(n=>bn(n,t)),Sn=(e,t)=>["zh-cn"].includes(t.toLowerCase())?Pn(e,t):gn(e,t);var wn="data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Uploaded to: SVG Repo%2c www.svgrepo.com%2c Generator: SVG Repo Mixer Tools --%3e%3csvg width='800px' height='800px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M6 9L12 15L18 9' stroke='%23DED8E1' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";const pe=()=>"s"+Math.random().toString(36).substring(2,11),xt=e=>e.key==="Enter"||e.key===" ";function Mn(){const e=pe(),t=pe(),n=pe(),r=I($),o=_=>_===""?r.translate("MM/DD/YYYY"):kn(V(_),r.config.locale);Y(()=>{r.datePickerState.inputDisplayedValue.value=o(r.datePickerState.selectedDate.value)},[r.datePickerState.selectedDate.value]);const[i,a]=O([]),s=()=>{const _=document.getElementById(n);r.datePickerState.inputWrapperElement.value=_ instanceof HTMLDivElement?_:void 0};Y(()=>{r.config.teleportTo&&s();const _=["sx__date-input-wrapper"];r.datePickerState.isOpen.value&&_.push("sx__date-input--active"),a(_)},[r.datePickerState.isOpen.value]);const c=_=>{_.key==="Enter"&&u(_)},u=_=>{_.stopPropagation();try{r.datePickerState.inputDisplayedValue.value=_.target.value,r.datePickerState.close()}catch{}};Y(()=>{const _=document.getElementById(e);if(_!==null)return _.addEventListener("change",u),()=>_.removeEventListener("change",u)});const d=_=>{u(_),r.datePickerState.open()},l=_=>{xt(_)&&(_.preventDefault(),r.datePickerState.open(),setTimeout(()=>{const h=document.querySelector('[data-focus="true"]');h instanceof HTMLElement&&h.focus()},50))};return v(S,{children:v("div",{className:i.join(" "),id:n,children:[v("label",{for:e,id:t,className:"sx__date-input-label",children:r.config.label||r.translate("Date")}),v("input",{id:e,name:r.config.name||"date","aria-describedby":t,value:r.datePickerState.inputDisplayedValue.value,"data-testid":"date-picker-input",className:"sx__date-input",onClick:d,onKeyUp:c,type:"text"}),v("button",{"aria-label":r.translate("Choose Date"),onKeyDown:l,onClick:()=>r.datePickerState.open(),className:"sx__date-input-chevron-wrapper",children:v("img",{className:"sx__date-input-chevron",src:wn,alt:""})})]})})}var j;(function(e){e.MONTH_DAYS="month-days",e.YEARS="years"})(j||(j={}));const Nn="years-view",Yn="months-view",xn="date-picker-week";class En extends Error{constructor(t,n){super(`Number must be between ${t} and ${n}.`),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:n})}}const M=e=>{if(e<0||e>99)throw new En(0,99);return String(e).padStart(2,"0")},x=e=>`${e.getFullYear()}-${M(e.getMonth()+1)}-${M(e.getDate())}`,Tn=e=>`${M(e.getHours())}:${M(e.getMinutes())}`,Et=e=>`${x(e)} ${Tn(e)}`,Tt=(e,t)=>{const{year:n,month:r,date:o,hours:i,minutes:a}=Q(e),s=i!==void 0&&a!==void 0,c=new Date(n,r,o,i??0,a??0);let u=(c.getMonth()+t)%12;return u<0&&(u+=12),c.setMonth(c.getMonth()+t),c.getMonth()>u?c.setDate(0):c.getMonth()<u&&(c.setMonth(c.getMonth()+1),c.setDate(0)),s?Et(c):x(c)},Cn=(e,t)=>{const{year:n,month:r,date:o,hours:i,minutes:a}=Q(e),s=i!==void 0&&a!==void 0,c=new Date(n,r,o,i??0,a??0);return c.setDate(c.getDate()+t),s?Et(c):x(c)},Ct=(e,t)=>(e=e.slice(0,8)+M(t)+e.slice(10),e),Ln=e=>(e=Tt(e,-1),Ct(e,1)),On=e=>(e=Tt(e,1),Ct(e,1));function Lt({direction:e,onClick:t,buttonText:n,disabled:r=!1}){return v("button",{disabled:r,className:"sx__chevron-wrapper sx__ripple",onMouseUp:t,onKeyDown:i=>{xt(i)&&t()},tabIndex:0,children:v("i",{className:`sx__chevron sx__chevron--${e}`,children:n})})}function $n({setYearsView:e}){const t=I($),n=l=>{const _=V(l);return Yt(_,t.config.locale)},r=l=>Q(l).year,[o,i]=O(n(t.datePickerState.datePickerDate.value)),[a,s]=O(r(t.datePickerState.datePickerDate.value)),c=()=>{t.datePickerState.datePickerDate.value=Ln(t.datePickerState.datePickerDate.value)},u=()=>{t.datePickerState.datePickerDate.value=On(t.datePickerState.datePickerDate.value)};Y(()=>{i(n(t.datePickerState.datePickerDate.value)),s(r(t.datePickerState.datePickerDate.value))},[t.datePickerState.datePickerDate.value]);const d=l=>{l.stopPropagation(),e()};return v(S,{children:v("header",{className:"sx__date-picker__month-view-header",children:[v(Lt,{direction:"previous",onClick:()=>c(),buttonText:t.translate("Previous month")}),v("button",{className:"sx__date-picker__month-view-header__month-year",onClick:l=>d(l),children:o+" "+a}),v(Lt,{direction:"next",onClick:()=>u(),buttonText:t.translate("Next month")})]})})}function An(){const e=I($),t=e.timeUnitsImpl.getWeekFor(V(e.datePickerState.datePickerDate.value)),n=Sn(t,e.config.locale);return v("div",{className:"sx__date-picker__day-names",children:n.map(r=>v("span",{"data-testid":"day-name",className:"sx__date-picker__day-name",children:r}))})}const Fn=e=>{const t=new Date;return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},In=(e,t)=>e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear();var Oe;(function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"})(Oe||(Oe={}));const Un="en-US",Ot=Oe.MONDAY,Rn=(e,t)=>{const{year:n,month:r,date:o}=Q(e);return new Date(n,r,o).toLocaleDateString(t,{day:"numeric",month:"long",year:"numeric"})};function Wn({week:e}){const t=I($),n=e.map(s=>{const c=["sx__date-picker__day"];return Fn(s)&&c.push("sx__date-picker__day--today"),x(s)===t.datePickerState.selectedDate.value&&c.push("sx__date-picker__day--selected"),In(s,V(t.datePickerState.datePickerDate.value))||c.push("is-leading-or-trailing"),{day:s,classes:c}}),r=s=>{const c=x(s);return c>=t.config.min&&c<=t.config.max},o=s=>{t.datePickerState.selectedDate.value=x(s),t.datePickerState.close()},i=s=>x(s.day)===t.datePickerState.datePickerDate.value,a=s=>{if(s.key==="Enter"){t.datePickerState.selectedDate.value=t.datePickerState.datePickerDate.value,t.datePickerState.close();return}const c=new Map([["ArrowDown",7],["ArrowUp",-7],["ArrowLeft",-1],["ArrowRight",1]]);t.datePickerState.datePickerDate.value=Cn(t.datePickerState.datePickerDate.value,c.get(s.key)||0)};return v(S,{children:v("div",{"data-testid":xn,className:"sx__date-picker__week",children:n.map(s=>v("button",{tabIndex:i(s)?0:-1,disabled:!r(s.day),"aria-label":Rn(t.datePickerState.datePickerDate.value,t.config.locale),className:s.classes.join(" "),"data-focus":i(s)?"true":void 0,onClick:()=>o(s.day),onKeyDown:a,children:s.day.getDate()}))})})}function Vn({seatYearsView:e}){const t=pe(),n=I($),[r,o]=O([]),i=()=>{const a=V(n.datePickerState.datePickerDate.value);o(n.timeUnitsImpl.getMonthWithTrailingAndLeadingDays(a.getFullYear(),a.getMonth()))};return Y(()=>{i()},[n.datePickerState.datePickerDate.value]),Y(()=>{const a=new MutationObserver(c=>{c.forEach(u=>{const d=u.target;d.dataset.focus==="true"&&d.focus()})}),s=document.getElementById(t);return a.observe(s,{childList:!0,subtree:!0,attributes:!0}),()=>a.disconnect()},[]),v(S,{children:v("div",{id:t,"data-testid":Yn,className:"sx__date-picker__month-view",children:[v($n,{setYearsView:e}),v(An,{}),r.map(a=>v(Wn,{week:a}))]})})}function jn({year:e,setYearAndMonth:t,isExpanded:n,expand:r}){const o=I($),i=o.timeUnitsImpl.getMonthsFor(e),a=(s,c)=>{s.stopPropagation(),t(e,c.getMonth())};return v(S,{children:v("li",{className:n?"sx__is-expanded":"",children:[v("button",{className:"sx__date-picker__years-accordion__expand-button sx__ripple--wide",onClick:()=>r(e),children:e}),n&&v("div",{className:"sx__date-picker__years-view-accordion__panel",children:i.map(s=>v("button",{className:"sx__date-picker__years-view-accordion__month",onClick:c=>a(c,s),children:Yt(s,o.config.locale)}))})]})})}function Hn({setMonthView:e}){const t=I($),n=V(t.config.min).getFullYear(),r=V(t.config.max).getFullYear(),o=Array.from({length:r-n+1},(u,d)=>n+d),{year:i}=Q(t.datePickerState.selectedDate.value),[a,s]=O(i),c=(u,d)=>{t.datePickerState.datePickerDate.value=x(new Date(u,d,1)),e()};return Y(()=>{var u;const d=(u=document.querySelector(".sx__date-picker__years-view"))===null||u===void 0?void 0:u.querySelector(".sx__is-expanded");d&&d.scrollIntoView({block:"center"})},[]),v(S,{children:v("ul",{className:"sx__date-picker__years-view","data-testid":Nn,children:o.map(u=>v(jn,{year:u,setYearAndMonth:(d,l)=>c(d,l),isExpanded:a===u,expand:d=>s(d)}))})})}const zn=e=>{if(e){const t=e.scrollHeight>e.clientHeight,r=window.getComputedStyle(e).overflowY.indexOf("hidden")!==-1;return t&&!r}return!0},$t=(e,t=[])=>!e||e===document.body||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(t.push(window),t):(zn(e)&&t.push(e),$t(e.assignedSlot?e.assignedSlot.parentNode:e.parentNode,t)),At="sx__date-picker-popup";function Bn(){const e=I($),[t,n]=O(j.MONTH_DAYS),r=[At,e.config.placement],[o,i]=O(r);Y(()=>{i([...r,e.datePickerState.isDark.value?"is-dark":""])},[e.datePickerState.isDark.value]);const a=h=>{h.target.closest(`.${At}`)||e.datePickerState.close()};Y(()=>(document.addEventListener("click",a),()=>document.removeEventListener("click",a)),[]);const s=Number(getComputedStyle(document.documentElement).fontSize.split("px")[0]),c=362,u=332,d=()=>{const h=e.datePickerState.inputWrapperElement.value,p=h==null?void 0:h.getBoundingClientRect();if(!(h===void 0||!(p instanceof DOMRect)))return{top:e.config.placement.includes("bottom")?p.height+p.y+1:p.y-s-c,left:e.config.placement.includes("start")?p.x:p.x+p.width-u,width:u,position:"fixed"}},[l,_]=O(d());return Y(()=>{const h=e.datePickerState.inputWrapperElement.value;if(h===void 0)return;const p=$t(h),w=()=>_(d());return p.forEach(k=>k.addEventListener("scroll",w)),()=>p.forEach(k=>k.removeEventListener("scroll",w))},[]),v(S,{children:v("div",{style:e.config.teleportTo?l:void 0,"data-testid":"date-picker-popup",className:o.join(" "),children:t===j.MONTH_DAYS?v(Vn,{seatYearsView:()=>n(j.YEARS)}):v(Hn,{setMonthView:()=>n(j.MONTH_DAYS)})})})}function Kn({$app:e}){const t=["sx__date-picker-wrapper"],[n,r]=O(t);Y(()=>{var i;r([...t,e.datePickerState.isDark.value?"is-dark":"",!((i=e.config.style)===null||i===void 0)&&i.fullWidth?"has-full-width":""])},[e.datePickerState.isDark.value]);let o=v(Bn,{});return e.config.teleportTo&&(o=nn(o,e.config.teleportTo)),v(S,{children:v("div",{className:n.join(" "),children:v($.Provider,{value:e,children:[v(Mn,{}),e.datePickerState.isOpen.value&&o]})})})}class Gn{constructor(t){Object.defineProperty(this,"$app",{enumerable:!0,configurable:!0,writable:!0,value:t})}render(t){we(H(Kn,{$app:this.$app}),t)}get value(){return this.$app.datePickerState.selectedDate.value}set value(t){this.$app.datePickerState.selectedDate.value=t}setTheme(t){this.$app.datePickerState.isDark.value=t==="dark"}getTheme(){return this.$app.datePickerState.isDark.value?"dark":"light"}}var $e;(function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"})($e||($e={}));class Ft extends Error{constructor(){super("Year zero does not exist in the Gregorian calendar.")}}class Jn extends Date{constructor(t,n,r){if(super(t,n,r),t===0)throw new Ft;this.setFullYear(t)}get year(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}class Zn{constructor(t=Ot){Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:t})}getMonthWithTrailingAndLeadingDays(t,n){if(t===0)throw new Ft;const r=new Date(t,n,1),o=[this.getWeekFor(r)];let i=!0,a=o[0][0];for(;i;){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate()+7);s.getMonth()===n?(o.push(this.getWeekFor(s)),a=s):i=!1}return o}getWeekFor(t){const n=[this.getFirstDateOfWeek(t)];for(;n.length<7;){const r=n[n.length-1],o=new Date(r);o.setDate(r.getDate()+1),n.push(o)}return n}getMonthsFor(t){return Object.values($e).filter(n=>!isNaN(Number(n))).map(n=>new Jn(t,Number(n),1))}getFirstDateOfWeek(t){const n=t.getDay()-this.firstDayOfWeek,r=t;return n===0||(n>0?r.setDate(t.getDate()-n):r.setDate(t.getDate()-(7+n))),r}}class qn{constructor(){Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new Zn(this.firstDayOfWeek)}withFirstDayOfWeek(t){return this.firstDayOfWeek=t,this}}var E;(function(e){e.SLASH="/",e.DASH="-",e.PERIOD="."})(E||(E={}));var T;(function(e){e.DMY="DMY",e.MDY="MDY",e.YMD="YMD"})(T||(T={}));const ee={slashMDY:{delimiter:E.SLASH,order:T.MDY},slashDMY:{delimiter:E.SLASH,order:T.DMY},slashYMD:{delimiter:E.SLASH,order:T.YMD},periodDMY:{delimiter:E.PERIOD,order:T.DMY},dashYMD:{delimiter:E.DASH,order:T.YMD}},Xn=new Map([["en-US",ee.slashMDY],["en-GB",ee.slashDMY],["zh-CN",ee.slashYMD],["de-DE",ee.periodDMY],["sv-SE",ee.dashYMD]]);class Qn extends Error{constructor(t){super(`Locale not supported: ${t}`)}}class It extends Error{constructor(t,n){super(`Invalid date format: ${t} for locale: ${n}`)}}const ve=(e,t,n)=>{const r=e.match(t);if(!r)throw new It(e,n);return r},er=(e,t)=>{if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const r=Xn.get(t);if(!r)throw new Qn(t);const{order:o,delimiter:i}=r,a=/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/,s=/^(\d{1,2})\.(\d{1,2})\.(\d{4})$/,c=/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/;if(o===T.DMY&&i===E.SLASH){const u=ve(e,a,t),[,d,l,_]=u;return`${_}-${M(+l)}-${M(+d)}`}if(o===T.MDY&&i===E.SLASH){const u=ve(e,a,t),[,d,l,_]=u;return`${_}-${M(+d)}-${M(+l)}`}if(o===T.YMD&&i===E.SLASH){const u=ve(e,c,t),[,d,l,_]=u;return`${d}-${M(+l)}-${M(+_)}`}if(o===T.DMY&&i===E.PERIOD){const u=ve(e,s,t),[,d,l,_]=u;return`${_}-${M(+l)}-${M(+d)}`}throw new It(e,t)},tr=(e,t)=>{var n;const r=x(new Date),o=typeof t=="string"?t:r,i=L(!1),a=L(j.MONTH_DAYS),s=L(o),c=L(o||r),u=L(((n=e.style)===null||n===void 0?void 0:n.dark)||!1),d=L(t||""),l=L(t||"");X(()=>{try{const p=er(d.value,e.locale);if(p<e.min||p>e.max){d.value=l.value;return}s.value=p,c.value=p,l.value=d.value}catch{}});let _=!1;const h=p=>{if(!_)return _=!0;e.listeners.onChange(p)};return X(()=>{var p;!((p=e.listeners)===null||p===void 0)&&p.onChange&&h(s.value)}),{inputWrapperElement:L(void 0),isOpen:i,datePickerView:a,selectedDate:s,datePickerDate:c,inputDisplayedValue:d,isDark:u,open:()=>i.value=!0,close:()=>i.value=!1,toggle:()=>i.value=!i.value,setView:p=>a.value=p}};class nr{constructor(t,n,r,o){Object.defineProperty(this,"datePickerState",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"timeUnitsImpl",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"translate",{enumerable:!0,configurable:!0,writable:!0,value:o})}}class rr{constructor(){Object.defineProperty(this,"datePickerState",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"timeUnitsImpl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"translate",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new nr(this.datePickerState,this.config,this.timeUnitsImpl,this.translate)}withDatePickerState(t){return this.datePickerState=t,this}withConfig(t){return this.config=t,this}withTimeUnitsImpl(t){return this.timeUnitsImpl=t,this}withTranslate(t){return this.translate=t,this}}var Ae;(function(e){e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end"})(Ae||(Ae={}));class or{constructor(t=Un,n=Ot,r=x(new Date(1970,0,1)),o=x(new Date(new Date().getFullYear()+1,11,31)),i=Ae.BOTTOM_START,a={},s={},c,u,d){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"placement",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"teleportTo",{enumerable:!0,configurable:!0,writable:!0,value:c}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:d})}}class ir{constructor(){Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"firstDayOfWeek",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"min",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"max",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"placement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"teleportTo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}build(){return new or(this.locale,this.firstDayOfWeek,this.min,this.max,this.placement,this.listeners,this.style,this.teleportTo,this.label,this.name)}withLocale(t){return this.locale=t,this}withFirstDayOfWeek(t){return this.firstDayOfWeek=t,this}withMin(t){return this.min=t,this}withMax(t){return this.max=t,this}withPlacement(t){return this.placement=t,this}withListeners(t){return this.listeners=t,this}withStyle(t){return this.style=t,this}withTeleportTo(t){return this.teleportTo=t,this}withLabel(t){return this.label=t,this}withName(t){return this.name=t,this}}const ar={...{Date:"Datum","MM/DD/YYYY":"TT.MM.JJJJ","Next month":"Nächster Monat","Previous month":"Vorheriger Monat","Choose Date":"Datum auswählen","Select View":"Ansicht auswählen"},...{Today:"Heute",Month:"Monat",Week:"Woche",Day:"Tag",events:"Ereignisse",event:"Ereignis","No events":"Keine Ereignisse","Next period":"Nächster Zeitraum","Previous period":"Vorheriger Zeitraum",to:"bis","Full day- and multiple day events":"Ganztägige und mehrtägige Ereignisse","Link to {{n}} more events on {{date}}":"Link zu {{n}} weiteren Ereignissen am {{date}}","Link to 1 more event on {{date}}":"Link zu 1 weiteren Ereignis am {{date}}"}},sr={...{Date:"Date","MM/DD/YYYY":"MM/DD/YYYY","Next month":"Next month","Previous month":"Previous month","Choose Date":"Choose Date","Select View":"Select View"},...{Today:"Today",Month:"Month",Week:"Week",Day:"Day",events:"events",event:"event","No events":"No events","Next period":"Next period","Previous period":"Previous period",to:"to","Full day- and multiple day events":"Full day- and multiple day events","Link to {{n}} more events on {{date}}":"Link to {{n}} more events on {{date}}","Link to 1 more event on {{date}}":"Link to 1 more event on {{date}}"}},lr={...{Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Mese successivo","Previous month":"Mese precedente","Choose Date":"Scegli la data","Select View":"Seleziona la vista"},...{Today:"Oggi",Month:"Mese",Week:"Settimana",Day:"Giorno",events:"eventi",event:"evento","No events":"Nessun evento","Next period":"Periodo successivo","Previous period":"Periodo precedente",to:"a","Full day- and multiple day events":"Eventi della giornata e plurigiornalieri","Link to {{n}} more events on {{date}}":"Link a {{n}} eventi in più il {{date}}","Link to 1 more event on {{date}}":"Link a 1 evento in più il {{date}}"}},cr={...{Date:"Date","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Next month","Previous month":"Previous month","Choose Date":"Choose Date","Select View":"Select View"},...{Today:"Today",Month:"Month",Week:"Week",Day:"Day",events:"events",event:"event","No events":"No events","Next period":"Next period","Previous period":"Previous period",to:"to","Full day- and multiple day events":"Full day- and multiple day events","Link to {{n}} more events on {{date}}":"Link to {{n}} more events on {{date}}","Link to 1 more event on {{date}}":"Link to 1 more event on {{date}}"}},ur={...{Date:"Datum","MM/DD/YYYY":"ÅÅÅÅ-MM-DD","Next month":"Nästa månad","Previous month":"Föregående månad","Choose Date":"Välj datum","Select View":"Välj vy"},...{Today:"Idag",Month:"Månad",Week:"Vecka",Day:"Dag",events:"händelser",event:"händelse","No events":"Inga händelser","Next period":"Nästa period","Previous period":"Föregående period",to:"till","Full day- and multiple day events":"Heldags- och flerdagshändelser","Link to {{n}} more events on {{date}}":"Länk till {{n}} fler händelser den {{date}}","Link to 1 more event on {{date}}":"Länk till 1 händelse till den {{date}}"}},dr={...{Date:"日期","MM/DD/YYYY":"年/月/日","Next month":"下个月","Previous month":"上个月","Choose Date":"选择日期","Select View":"选择视图"},...{Today:"今天",Month:"月",Week:"周",Day:"日",events:"场活动",event:"活动","No events":"没有活动","Next period":"下一段时间","Previous period":"上一段时间",to:"至","Full day- and multiple day events":"全天和多天活动","Link to {{n}} more events on {{date}}":"链接到{{date}}上的{{n}}个更多活动","Link to 1 more event on {{date}}":"链接到{{date}}上的1个更多活动"}},_r={...{Date:"日付","MM/DD/YYYY":"年/月/日","Next month":"次の月","Previous month":"前の月","Choose Date":"日付を選択","Select View":"ビューを選択"},...{Today:"今日",Month:"月",Week:"週",Day:"日",events:"イベント",event:"イベント","No events":"イベントなし","Next period":"次の期間","Previous period":"前の期間",to:"から","Full day- and multiple day events":"終日および複数日イベント","Link to {{n}} more events on {{date}}":"{{date}} に{{n}}件のイベントへのリンク","Link to 1 more event on {{date}}":"{{date}} に1件のイベントへのリンク"}},hr={...{Date:"Дата","MM/DD/YYYY":"ММ/ДД/ГГГГ","Next month":"Следующий месяц","Previous month":"Прошлый месяц","Choose Date":"Выберите дату","Select View":"Выберите вид"},...{Today:"Сегодня",Month:"Месяц",Week:"Неделя",Day:"День",events:"события",event:"событие","No events":"Нет событий","Next period":"Следующий период","Previous period":"Прошлый период",to:"по","Full day- and multiple day events":"События на целый день и несколько дней подряд","Link to {{n}} more events on {{date}}":"Ссылка на {{n}} дополнительных событий на {{date}}","Link to 1 more event on {{date}}":"Ссылка на 1 дополнительное событие на {{date}}"}},fr={...{Date:"일자","MM/DD/YYYY":"년/월/일","Next month":"다음 달","Previous month":"이전 달","Choose Date":"날짜 선택","Select View":"보기 선택"},...{Today:"오늘",Month:"월",Week:"주",Day:"일",events:"일정들",event:"일정","No events":"일정 없음","Next period":"다음","Previous period":"이전",to:"부터","Full day- and multiple day events":"종일 및 복수일 일정","Link to {{n}} more events on {{date}}":"{{date}}에 {{n}}개 이상의 이벤트로 이동","Link to 1 more event on {{date}}":"{{date}}에 1개 이상의 이벤트로 이동"}},pr={...{Date:"Date","MM/DD/YYYY":"JJ/MM/AAAA","Next month":"Mois suivant","Previous month":"Mois précédent","Choose Date":"Choisir une date","Select View":"Choisir la vue"},...{Today:"Aujourd'hui",Month:"Mois",Week:"Semaine",Day:"Jour",events:"événements",event:"événement","No events":"Aucun événement","Next period":"Période suivante","Previous period":"Période précédente",to:"à","Full day- and multiple day events":"Événements d'une ou plusieurs journées","Link to {{n}} more events on {{date}}":"Lien vers {{n}} autres événements le {{date}}","Link to 1 more event on {{date}}":"Lien vers 1 autre événement le {{date}}"}},vr={...{Date:"Dato","MM/DD/YYYY":"ÅÅÅÅ-MM-DD","Next month":"Næste måned","Previous month":"Foregående måned","Choose Date":"Vælg dato","Select View":"Vælg visning"},...{Today:"I dag",Month:"Måned",Week:"Uge",Day:"Dag",events:"begivenheder",event:"begivenhed","No events":"Ingen begivenheder","Next period":"Næste periode","Previous period":"Forgående periode",to:"til","Full day- and multiple day events":"Heldagsbegivenheder og flerdagsbegivenheder","Link to {{n}} more events on {{date}}":"Link til {{n}} flere begivenheder den {{date}}","Link to 1 more event on {{date}}":"Link til 1 mere begivenhed den {{date}}"}},mr={...{Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Następny miesiąc","Previous month":"Poprzedni miesiąc","Choose Date":"Wybiewrz datę","Select View":"Wybierz widok"},...{Today:"Dzisiaj",Month:"Miesiąc",Week:"Tydzień",Day:"Dzień",events:"wydarzenia",event:"wydarzenie","No events":"Brak wydarzeń","Next period":"Następny okres","Previous period":"Poprzedni okres",to:"do","Full day- and multiple day events":"Wydarzenia całodniowe i wielodniowe","Link to {{n}} more events on {{date}}":"Link do {{n}} kolejnych wydarzeń w dniu {{date}}","Link to 1 more event on {{date}}":"Link do 1 kolejnego wydarzenia w dniu {{date}}"}},yr={...{Date:"Fecha","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Siguiente mes","Previous month":"Mes anterior","Choose Date":"Seleccione una fecha","Select View":"Seleccione una vista"},...{Today:"Hoy",Month:"Mes",Week:"Semana",Day:"Día",events:"eventos",event:"evento","No events":"Sin eventos","Next period":"Siguiente período","Previous period":"Período anterior",to:"a","Full day- and multiple day events":"Día completo y eventos de múltiples días","Link to {{n}} more events on {{date}}":"Enlace a {{n}} eventos más el {{date}}","Link to 1 more event on {{date}}":"Enlace a 1 evento más el {{date}}"}},Dr={...{Date:"Datum","MM/DD/YYYY":"DD-MM-JJJJ","Next month":"Vorige maand","Previous month":"Volgende maand","Choose Date":"Datum kiezen","Select View":"Weergave kiezen"},...{Today:"Vandaag",Month:"Maand",Week:"Week",Day:"Dag",events:"gebeurtenissen",event:"gebeurtenis","No events":"Geen gebeurtenissen","Next period":"Volgende periode","Previous period":"Vorige periode",to:"tot","Full day- and multiple day events":"Evenementen van een hele dag en meerdere dagen","Link to {{n}} more events on {{date}}":"Link naar {{n}} meer evenementen op {{date}}","Link to 1 more event on {{date}}":"Link naar 1 meer evenement op {{date}}"}},kr={...{Date:"Data","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Mês seguinte","Previous month":"Mês anterior","Choose Date":"Escolha uma data","Select View":"Selecione uma visualização"},...{Today:"Hoje",Month:"Mês",Week:"Semana",Day:"Dia",events:"eventos",event:"evento","No events":"Sem eventos","Next period":"Período seguinte","Previous period":"Período anterior",to:"a","Full day- and multiple day events":"Dia inteiro e eventos de vários dias","Link to {{n}} more events on {{date}}":"Link para mais {{n}} eventos em {{date}}","Link to 1 more event on {{date}}":"Link para mais 1 evento em {{date}}"}},gr={...{Date:"Dátum","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Ďalší mesiac","Previous month":"Predchádzajúci mesiac","Choose Date":"Vyberte dátum","Select View":"Vyberte zobrazenie"},...{Today:"Dnes",Month:"Mesiac",Week:"Týždeň",Day:"Deň",events:"udalosti",event:"udalosť","No events":"Žiadne udalosti","Next period":"Ďalšie obdobie","Previous period":"Predchádzajúce obdobie",to:"do","Full day- and multiple day events":"Celodenné a viacdňové udalosti","Link to {{n}} more events on {{date}}":"Odkaz na {{n}} ďalších udalostí dňa {{date}}","Link to 1 more event on {{date}}":"Odkaz na 1 ďalšiu udalosť dňa {{date}}"}},br={...{Date:"Датум","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Следен месец","Previous month":"Претходен месец","Choose Date":"Избери Датум","Select View":"Избери Преглед"},...{Today:"Денес",Month:"Месец",Week:"Недела",Day:"Ден",events:"настани",event:"настан","No events":"Нема настани","Next period":"Следен период","Previous period":"Претходен период",to:"до","Full day- and multiple day events":"Целодневни и повеќедневни настани","Link to {{n}} more events on {{date}}":"Линк до {{n}} повеќе настани на {{date}}","Link to 1 more event on {{date}}":"Линк до 1 повеќе настан на {{date}}"}},Pr={...{Date:"Tarih","MM/DD/YYYY":"GG/AA/YYYY","Next month":"Sonraki ay","Previous month":"Önceki ay","Choose Date":"Tarih Seç","Select View":"Görünüm Seç"},...{Today:"Bugün",Month:"Aylık",Week:"Haftalık",Day:"Günlük",events:"etkinlikler",event:"etkinlik","No events":"Etkinlik yok","Next period":"Sonraki dönem","Previous period":"Önceki dönem",to:"dan","Full day- and multiple day events":"Tüm gün ve çoklu gün etkinlikleri","Link to {{n}} more events on {{date}}":"{{date}} tarihinde {{n}} etkinliğe bağlantı","Link to 1 more event on {{date}}":"{{date}} tarihinde 1 etkinliğe bağlantı"}},Sr={...{Date:"Датасы","MM/DD/YYYY":"АА/КК/ЖЖЖЖ","Next month":"Кийинки ай","Previous month":"Өткөн ай","Choose Date":"Күндү тандаңыз","Select View":"Көрүнүштү тандаңыз"},...{Today:"Бүгүн",Month:"Ай",Week:"Апта",Day:"Күн",events:"Окуялар",event:"Окуя","No events":"Окуя жок","Next period":"Кийинки мезгил","Previous period":"Өткөн мезгил",to:"чейин","Full day- and multiple day events":"Күн бою жана бир нече күн катары менен болгон окуялар","Link to {{n}} more events on {{date}}":"{{date}} күнүндө {{n}} окуяга байланыш","Link to 1 more event on {{date}}":"{{date}} күнүндө 1 окуяга байланыш"}},wr={...{Date:"Tanggal","MM/DD/YYYY":"DD.MM.YYYY","Next month":"Bulan depan","Previous month":"Bulan sebelumnya","Choose Date":"Pilih tanggal","Select View":"Pilih tampilan"},...{Today:"Hari Ini",Month:"Bulan",Week:"Minggu",Day:"Hari",events:"Acara",event:"Acara","No events":"Tidak ada acara","Next period":"Periode selanjutnya","Previous period":"Periode sebelumnya",to:"sampai","Full day- and multiple day events":"Sepanjang hari dan acara beberapa hari ","Link to {{n}} more events on {{date}}":"Tautan ke {{n}} acara lainnya pada {{date}}","Link to 1 more event on {{date}}":"Tautan ke 1 acara lainnya pada {{date}}"}},Mr={...{Date:"Datum","MM/DD/YYYY":"DD/MM/YYYY","Next month":"Další měsíc","Previous month":"Předchozí měsíc","Choose Date":"Vyberte datum","Select View":"Vyberte zobrazení"},...{Today:"Dnes",Month:"Měsíc",Week:"Týden",Day:"Den",events:"události",event:"událost","No events":"Žádné události","Next period":"Příští období","Previous period":"Předchozí období",to:"do","Full day- and multiple day events":"Celodenní a vícedenní události","Link to {{n}} more events on {{date}}":"Odkaz na {{n}} dalších událostí dne {{date}}","Link to 1 more event on {{date}}":"Odkaz na 1 další událost dne {{date}}"}};class Nr extends Error{constructor(t){super(`Invalid locale: ${t}`)}}const Yr=(e,t)=>(n,r)=>{if(!/^[a-z]{2}-[A-Z]{2}$/.test(e))throw new Nr(e);const o=e.replace("-",""),i=t[o];if(!i)return n;let a=i[n]||n;return Object.keys(r||{}).forEach(s=>{const c=String(r==null?void 0:r[s]);c&&(a=a.replace(`{{${s}}}`,c))}),a},xr={deDE:ar,enUS:sr,itIT:lr,enGB:cr,svSE:ur,zhCN:dr,jaJP:_r,ruRU:hr,koKR:fr,frFR:pr,daDK:vr,mkMK:br,plPL:mr,esES:yr,nlNL:Dr,ptBR:kr,skSK:gr,trTR:Pr,kyKG:Sr,idID:wr,csCZ:Mr},Er=(e={})=>{const t=new ir().withFirstDayOfWeek(e.firstDayOfWeek).withLocale(e.locale).withMin(e.min).withMax(e.max).withPlacement(e.placement).withListeners(e.listeners).withStyle(e.style).withTeleportTo(e.teleportTo).withLabel(e.label).withName(e.name).build(),n=new qn().withFirstDayOfWeek(t.firstDayOfWeek).build();return new rr().withConfig(t).withDatePickerState(tr(t,e.selectedDate)).withTimeUnitsImpl(n).withTranslate(Yr(t.locale,xr)).build()},Tr=e=>{const t=Er(e);return new Gn(t)},Cr=P.defineComponent({name:"SxDatePicker",props:{modelValue:{type:String,required:!0},config:{type:Object,default:()=>({listeners:{}})}},emits:["update:modelValue"],setup(e,{emit:t,expose:n}){const r="sx"+Math.random().toString(36).substr(2,9);let o;return n({setTheme:a=>{o==null||o.setTheme(a)}}),P.watch(()=>e.modelValue,a=>{(o==null?void 0:o.value)!==a&&o&&(o.value=a)}),P.onMounted(()=>{o=Tr({...e.config,listeners:{...e.config.listeners,onChange:a=>{t("update:modelValue",a)}},selectedDate:e.modelValue}),o.render(document.getElementById(r))}),()=>P.h("div",{id:r,class:"sx-vue-date-picker-wrapper"})}});A.ScheduleXCalendar=Wt,A.SxDatePicker=Cr,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
import ScheduleXCalendar from './schedule-x-calendar';
export { ScheduleXCalendar };
import SxDatePicker from './sx-date-picker';
export { ScheduleXCalendar, SxDatePicker };
{
"name": "@schedule-x/vue",
"license": "MIT",
"version": "1.46.0",
"version": "1.47.0",
"main": "./dist/schedule-x-vue.umd.js",

@@ -25,3 +25,4 @@ "module": "./dist/schedule-x-vue.mjs",

"peerDependencies": {
"@schedule-x/calendar": "1.49.0",
"@schedule-x/calendar": "1.51.0",
"@schedule-x/date-picker": "^1.51.0",
"vue": "^3"

@@ -32,8 +33,8 @@ },

"@rollup/plugin-typescript": "^11.1.5",
"@schedule-x/drag-and-drop": "^1.47.0",
"@schedule-x/e2e-testing": "^1.47.0",
"@schedule-x/eslint-config": "^1.47.0",
"@schedule-x/event-modal": "^1.47.0",
"@schedule-x/prettier-config": "^1.47.0",
"@schedule-x/theme-default": "^1.47.0",
"@schedule-x/drag-and-drop": "^1.51.0",
"@schedule-x/e2e-testing": "^1.51.0",
"@schedule-x/eslint-config": "^1.51.0",
"@schedule-x/event-modal": "^1.51.0",
"@schedule-x/prettier-config": "^1.51.0",
"@schedule-x/theme-default": "^1.51.0",
"@semantic-release/changelog": "^6.0.3",

@@ -40,0 +41,0 @@ "@semantic-release/git": "^10.0.1",

@@ -5,2 +5,68 @@ ![qalendar](https://schedule-x.s3.eu-west-1.amazonaws.com/schedule-x-logo.png)

This package offers Vue components for the Schedule-X calendar and date picker. For documentation, please refer to: https://schedule-x.dev/
This package offers Vue components for the Schedule-X calendar and date picker. For the full documentation, please refer to: https://schedule-x.dev/
## Quick start examples
### Calendar
```vue
<script setup>
import { ScheduleXCalendar } from '@schedule-x/vue'
import {
createCalendar,
viewDay,
viewWeek,
viewMonthGrid,
viewMonthAgenda,
} from '@schedule-x/calendar'
import '@schedule-x/theme-default/dist/index.css'
// Do not use a ref here, as the calendar instance is not reactive, and doing so might cause issues
// For updating events, use the events service plugin
const calendarApp = createCalendar({
selectedDate: '2023-12-19',
views: [viewDay, viewWeek, viewMonthGrid, viewMonthAgenda],
defaultView: viewWeek.name,
events: [
{
id: 1,
title: 'Event 1',
start: '2023-12-19',
end: '2023-12-19',
},
{
id: 2,
title: 'Event 2',
start: '2023-12-20 12:00',
end: '2023-12-20 13:00',
},
],
})
</script>
<template>
<div>
<ScheduleXCalendar :calendar-app="calendarApp" />
</div>
</template>
```
### Date picker
```vue
<script setup lang="ts">
import { SxDatePicker } from '@schedule-x/vue'
import '@schedule-x/theme-default/dist/date-picker.css'
import { ref } from 'vue'
const datePickerModel = ref<string>('2024-07-12')
</script>
<template>
<div>
<p id="date-picker-model">{{ datePickerModel }}</p>
<SxDatePicker ref="datePickerRef" v-model="datePickerModel" />
</div>
</template>
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc