infinite-scroll-calendar 0.0.2 → 0.0.3

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.
@@ -7,7 +7,6 @@ export declare function buildRenderModel(params: {
7
7
  year: number;
8
8
  }>[];
9
9
  value: CalendarValue;
10
- selectionEnabled?: boolean;
11
10
  metadata?: CalendarMetadataMap;
12
11
  expanded?: boolean;
13
12
  }): CalendarRenderModel;
@@ -2,7 +2,6 @@ import type { CalendarIndicator, CalendarMetadataMap, CalendarValue } from '../t
2
2
  interface BuildVisualStateParams {
3
3
  key: string;
4
4
  value: CalendarValue;
5
- selectionEnabled?: boolean;
6
5
  metadata?: CalendarMetadataMap;
7
6
  outside?: boolean;
8
7
  date?: Date;
package/dist/index.cjs CHANGED
@@ -1,31 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),We=require("date-fns");var _e={exports:{}},z={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Me;function br(){if(Me)return z;Me=1;var t=M,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function r(h,d,g){var b,v={},w=null,j=null;g!==void 0&&(w=""+g),d.key!==void 0&&(w=""+d.key),d.ref!==void 0&&(j=d.ref);for(b in d)c.call(d,b)&&!i.hasOwnProperty(b)&&(v[b]=d[b]);if(h&&h.defaultProps)for(b in d=h.defaultProps,d)v[b]===void 0&&(v[b]=d[b]);return{$$typeof:n,type:h,key:w,ref:j,props:v,_owner:o.current}}return z.Fragment=l,z.jsx=r,z.jsxs=r,z}var ee={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ve;function hr(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&function(){var t=M,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),C=Symbol.iterator,S="@@iterator";function V(e){if(e===null||typeof e!="object")return null;var a=C&&e[C]||e[S];return typeof a=="function"?a:null}var O=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];re("error",e,s)}}function re(e,a,s){{var u=O.ReactDebugCurrentFrame,_=u.getStackAddendum();_!==""&&(a+="%s",s=s.concat([_]));var R=s.map(function(p){return String(p)});R.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,R)}}var ae=!1,ne=!1,m=!1,W=!1,L=!1,Y;Y=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===i||L||e===o||e===g||e===b||W||e===j||ae||ne||m||typeof e=="object"&&e!==null&&(e.$$typeof===w||e.$$typeof===v||e.$$typeof===r||e.$$typeof===h||e.$$typeof===d||e.$$typeof===Y||e.getModuleId!==void 0))}function I(e,a,s){var u=e.displayName;if(u)return u;var _=a.displayName||a.name||"";return _!==""?s+"("+_+")":s}function J(e){return e.displayName||"Context"}function D(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case l:return"Portal";case i:return"Profiler";case o:return"StrictMode";case g:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var a=e;return J(a)+".Consumer";case r:var s=e;return J(s._context)+".Provider";case d:return I(e,e.render,"ForwardRef");case v:var u=e.displayName||null;return u!==null?u:D(e.type)||"Memo";case w:{var _=e,R=_._payload,p=_._init;try{return D(p(R))}catch{return null}}}return null}var A=Object.assign,$=0,H,G,Z,X,Re,me,Ee;function xe(){}xe.__reactDisabledLog=!0;function Ue(){{if($===0){H=console.log,G=console.info,Z=console.warn,X=console.error,Re=console.group,me=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function qe(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},e,{value:H}),info:A({},e,{value:G}),warn:A({},e,{value:Z}),error:A({},e,{value:X}),group:A({},e,{value:Re}),groupCollapsed:A({},e,{value:me}),groupEnd:A({},e,{value:Ee})})}$<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=O.ReactCurrentDispatcher,ue;function te(e,a,s){{if(ue===void 0)try{throw Error()}catch(_){var u=_.stack.trim().match(/\n( *(at )?)/);ue=u&&u[1]||""}return`
18
- `+ue+e}}var de=!1,se;{var Ke=typeof WeakMap=="function"?WeakMap:Map;se=new Ke}function we(e,a){if(!e||de)return"";{var s=se.get(e);if(s!==void 0)return s}var u;de=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=ie.current,ie.current=null,Ue();try{if(a){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(T){u=T}Reflect.construct(e,[],p)}else{try{p.call()}catch(T){u=T}e.call(p.prototype)}}else{try{throw Error()}catch(T){u=T}e()}}catch(T){if(T&&u&&typeof T.stack=="string"){for(var f=T.stack.split(`
19
- `),N=u.stack.split(`
20
- `),x=f.length-1,k=N.length-1;x>=1&&k>=0&&f[x]!==N[k];)k--;for(;x>=1&&k>=0;x--,k--)if(f[x]!==N[k]){if(x!==1||k!==1)do if(x--,k--,k<0||f[x]!==N[k]){var P=`
21
- `+f[x].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&se.set(e,P),P}while(x>=1&&k>=0);break}}}finally{de=!1,ie.current=R,qe(),Error.prepareStackTrace=_}var B=e?e.displayName||e.name:"",q=B?te(B):"";return typeof e=="function"&&se.set(e,q),q}function Be(e,a,s){return we(e,!1)}function Je(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function oe(e,a,s){if(e==null)return"";if(typeof e=="function")return we(e,Je(e));if(typeof e=="string")return te(e);switch(e){case g:return te("Suspense");case b:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Be(e.render);case v:return oe(e.type,a,s);case w:{var u=e,_=u._payload,R=u._init;try{return oe(R(_),a,s)}catch{}}}return""}var Q=Object.prototype.hasOwnProperty,ke={},je=O.ReactDebugCurrentFrame;function le(e){if(e){var a=e._owner,s=oe(e.type,e._source,a?a.type:null);je.setExtraStackFrame(s)}else je.setExtraStackFrame(null)}function He(e,a,s,u,_){{var R=Function.call.bind(Q);for(var p in e)if(R(e,p)){var f=void 0;try{if(typeof e[p]!="function"){var N=Error((u||"React class")+": "+s+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}f=e[p](a,p,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){f=x}f&&!(f instanceof Error)&&(le(_),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,p,typeof f),le(null)),f instanceof Error&&!(f.message in ke)&&(ke[f.message]=!0,le(_),E("Failed %s type: %s",s,f.message),le(null))}}}var Ge=Array.isArray;function fe(e){return Ge(e)}function Ze(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,s=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Xe(e){try{return Ne(e),!1}catch{return!0}}function Ne(e){return""+e}function Se(e){if(Xe(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),Ne(e)}var Te=O.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Ce,Oe;function ze(e){if(Q.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(Q.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function rr(e,a){typeof e.ref=="string"&&Te.current}function ar(e,a){{var s=function(){Ce||(Ce=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function nr(e,a){{var s=function(){Oe||(Oe=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var tr=function(e,a,s,u,_,R,p){var f={$$typeof:n,type:e,key:a,ref:s,props:p,_owner:R};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function sr(e,a,s,u,_){{var R,p={},f=null,N=null;s!==void 0&&(Se(s),f=""+s),er(a)&&(Se(a.key),f=""+a.key),ze(a)&&(N=a.ref,rr(a,_));for(R in a)Q.call(a,R)&&!Qe.hasOwnProperty(R)&&(p[R]=a[R]);if(e&&e.defaultProps){var x=e.defaultProps;for(R in x)p[R]===void 0&&(p[R]=x[R])}if(f||N){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&ar(p,k),N&&nr(p,k)}return tr(e,f,N,_,u,Te.current,p)}}var ve=O.ReactCurrentOwner,Pe=O.ReactDebugCurrentFrame;function K(e){if(e){var a=e._owner,s=oe(e.type,e._source,a?a.type:null);Pe.setExtraStackFrame(s)}else Pe.setExtraStackFrame(null)}var pe;pe=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function De(){{if(ve.current){var e=D(ve.current.type);if(e)return`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react"),De=require("date-fns");var J={exports:{}},$={};var Ce;function hr(){if(Ce)return $;Ce=1;var n=T,o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function v(R,y,g){var m,w={},j=null,O=null;g!==void 0&&(j=""+g),y.key!==void 0&&(j=""+y.key),y.ref!==void 0&&(O=y.ref);for(m in y)i.call(y,m)&&!f.hasOwnProperty(m)&&(w[m]=y[m]);if(R&&R.defaultProps)for(m in y=R.defaultProps,y)w[m]===void 0&&(w[m]=y[m]);return{$$typeof:o,type:R,key:j,ref:O,props:w,_owner:l.current}}return $.Fragment=s,$.jsx=v,$.jsxs=v,$}var L={};var Te;function _r(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&(function(){var n=T,o=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),R=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=M&&e[M]||e[P];return typeof r=="function"?r:null}var A=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];Ie("error",e,t)}}function Ie(e,r,t){{var a=A.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(r+="%s",t=t.concat([d]));var p=t.map(function(c){return String(c)});p.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,p)}}var We=!1,Me=!1,Ne=!1,Ve=!1,$e=!1,ne;ne=Symbol.for("react.module.reference");function Le(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===f||$e||e===l||e===g||e===m||Ve||e===O||We||Me||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===w||e.$$typeof===v||e.$$typeof===R||e.$$typeof===y||e.$$typeof===ne||e.getModuleId!==void 0))}function Ye(e,r,t){var a=e.displayName;if(a)return a;var d=r.displayName||r.name||"";return d!==""?t+"("+d+")":t}function ae(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case i:return"Fragment";case s:return"Portal";case f:return"Profiler";case l:return"StrictMode";case g:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ae(r)+".Consumer";case v:var t=e;return ae(t._context)+".Provider";case y:return Ye(e,e.render,"ForwardRef");case w:var a=e.displayName||null;return a!==null?a:C(e.type)||"Memo";case j:{var d=e,p=d._payload,c=d._init;try{return C(c(p))}catch{return null}}}return null}var D=Object.assign,N=0,oe,ie,se,ue,le,ce,fe;function de(){}de.__reactDisabledLog=!0;function Ue(){{if(N===0){oe=console.log,ie=console.info,se=console.warn,ue=console.error,le=console.group,ce=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function Ke(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:oe}),info:D({},e,{value:ie}),warn:D({},e,{value:se}),error:D({},e,{value:ue}),group:D({},e,{value:le}),groupCollapsed:D({},e,{value:ce}),groupEnd:D({},e,{value:fe})})}N<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=A.ReactCurrentDispatcher,z;function Y(e,r,t){{if(z===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);z=a&&a[1]||""}return`
2
+ `+z+e}}var G=!1,U;{var qe=typeof WeakMap=="function"?WeakMap:Map;U=new qe}function ve(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var a;G=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=B.current,B.current=null,Ue();try{if(r){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(k){a=k}Reflect.construct(e,[],c)}else{try{c.call()}catch(k){a=k}e.call(c.prototype)}}else{try{throw Error()}catch(k){a=k}e()}}catch(k){if(k&&a&&typeof k.stack=="string"){for(var u=k.stack.split(`
3
+ `),x=a.stack.split(`
4
+ `),_=u.length-1,b=x.length-1;_>=1&&b>=0&&u[_]!==x[b];)b--;for(;_>=1&&b>=0;_--,b--)if(u[_]!==x[b]){if(_!==1||b!==1)do if(_--,b--,b<0||u[_]!==x[b]){var S=`
5
+ `+u[_].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,S),S}while(_>=1&&b>=0);break}}}finally{G=!1,B.current=p,Ke(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",F=W?Y(W):"";return typeof e=="function"&&U.set(e,F),F}function Je(e,r,t){return ve(e,!1)}function Be(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function K(e,r,t){if(e==null)return"";if(typeof e=="function")return ve(e,Be(e));if(typeof e=="string")return Y(e);switch(e){case g:return Y("Suspense");case m:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Je(e.render);case w:return K(e.type,r,t);case j:{var a=e,d=a._payload,p=a._init;try{return K(p(d),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,pe={},ye=A.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function ze(e,r,t,a,d){{var p=Function.call.bind(V);for(var c in e)if(p(e,c)){var u=void 0;try{if(typeof e[c]!="function"){var x=Error((a||"React class")+": "+t+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}u=e[c](r,c,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){u=_}u&&!(u instanceof Error)&&(q(d),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,c,typeof u),q(null)),u instanceof Error&&!(u.message in pe)&&(pe[u.message]=!0,q(d),E("Failed %s type: %s",t,u.message),q(null))}}}var Ge=Array.isArray;function X(e){return Ge(e)}function Xe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function He(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function _e(e){if(He(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(e)),he(e)}var be=A.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},me,Re;function Qe(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function er(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function rr(e,r){typeof e.ref=="string"&&be.current}function tr(e,r){{var t=function(){me||(me=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function nr(e,r){{var t=function(){Re||(Re=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ar=function(e,r,t,a,d,p,c){var u={$$typeof:o,type:e,key:r,ref:t,props:c,_owner:p};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function or(e,r,t,a,d){{var p,c={},u=null,x=null;t!==void 0&&(_e(t),u=""+t),er(r)&&(_e(r.key),u=""+r.key),Qe(r)&&(x=r.ref,rr(r,d));for(p in r)V.call(r,p)&&!Ze.hasOwnProperty(p)&&(c[p]=r[p]);if(e&&e.defaultProps){var _=e.defaultProps;for(p in _)c[p]===void 0&&(c[p]=_[p])}if(u||x){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&tr(c,b),x&&nr(c,b)}return ar(e,u,x,d,a,be.current,c)}}var H=A.ReactCurrentOwner,ge=A.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=K(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ee(){{if(H.current){var e=C(H.current.type);if(e)return`
22
6
 
23
- Check the render method of \``+e+"`."}return""}}function or(e){return""}var Fe={};function lr(e){{var a=De();if(!a){var s=typeof e=="string"?e:e.displayName||e.name;s&&(a=`
7
+ Check the render method of \``+e+"`."}return""}}function ir(e){return""}var xe={};function sr(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
8
 
25
- Check the top-level render call using <`+s+">.")}return a}}function Ae(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=lr(a);if(Fe[s])return;Fe[s]=!0;var u="";e&&e._owner&&e._owner!==ve.current&&(u=" It was passed a child from "+D(e._owner.type)+"."),K(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,u),K(null)}}function Le(e,a){{if(typeof e!="object")return;if(fe(e))for(var s=0;s<e.length;s++){var u=e[s];ye(u)&&Ae(u,a)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var _=V(e);if(typeof _=="function"&&_!==e.entries)for(var R=_.call(e),p;!(p=R.next()).done;)ye(p.value)&&Ae(p.value,a)}}}function cr(e){{var a=e.type;if(a==null||typeof a=="string")return;var s;if(typeof a=="function")s=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===d||a.$$typeof===v))s=a.propTypes;else return;if(s){var u=D(a);He(s,e.props,"prop",u,e)}else if(a.PropTypes!==void 0&&!pe){pe=!0;var _=D(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var a=Object.keys(e.props),s=0;s<a.length;s++){var u=a[s];if(u!=="children"&&u!=="key"){K(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),K(null);break}}e.ref!==null&&(K(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),K(null))}}var Ie={};function $e(e,a,s,u,_,R){{var p=U(e);if(!p){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var N=or();N?f+=N:f+=De();var x;e===null?x="null":fe(e)?x="array":e!==void 0&&e.$$typeof===n?(x="<"+(D(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):x=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,f)}var k=sr(e,a,s,_,R);if(k==null)return k;if(p){var P=a.children;if(P!==void 0)if(u)if(fe(P)){for(var B=0;B<P.length;B++)Le(P[B],e);Object.freeze&&Object.freeze(P)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Le(P,e)}if(Q.call(a,"key")){var q=D(e),T=Object.keys(a).filter(function(yr){return yr!=="key"}),be=T.length>0?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}";if(!Ie[q+be]){var pr=T.length>0?"{"+T.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
9
+ Check the top-level render call using <`+t+">.")}return r}}function ke(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(xe[t])return;xe[t]=!0;var a="";e&&e._owner&&e._owner!==H.current&&(a=" It was passed a child from "+C(e._owner.type)+"."),I(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),I(null)}}function we(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t<e.length;t++){var a=e[t];Q(a)&&ke(a,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var d=Ae(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),c;!(c=p.next()).done;)Q(c.value)&&ke(c.value,r)}}}function ur(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===w))t=r.propTypes;else return;if(t){var a=C(r);ze(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var d=C(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){I(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),I(null);break}}e.ref!==null&&(I(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}var Se={};function je(e,r,t,a,d,p){{var c=Le(e);if(!c){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x=ir();x?u+=x:u+=Ee();var _;e===null?_="null":X(e)?_="array":e!==void 0&&e.$$typeof===o?(_="<"+(C(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,u)}var b=or(e,r,t,d,p);if(b==null)return b;if(c){var S=r.children;if(S!==void 0)if(a)if(X(S)){for(var W=0;W<S.length;W++)we(S[W],e);Object.freeze&&Object.freeze(S)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(S,e)}if(V.call(r,"key")){var F=C(e),k=Object.keys(r).filter(function(yr){return yr!=="key"}),ee=k.length>0?"{key: someKey, "+k.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[F+ee]){var pr=k.length>0?"{"+k.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
10
  let props = %s;
27
11
  <%s {...props} />
28
12
  React keys must be passed directly to JSX without using spread:
29
13
  let props = %s;
30
- <%s key={someKey} {...props} />`,be,q,pr,q),Ie[q+be]=!0}}return e===c?ir(k):cr(k),k}}function ur(e,a,s){return $e(e,a,s,!0)}function dr(e,a,s){return $e(e,a,s,!1)}var fr=dr,vr=ur;ee.Fragment=c,ee.jsx=fr,ee.jsxs=vr}()),ee}process.env.NODE_ENV==="production"?_e.exports=br():_e.exports=hr();var y=_e.exports;function _r(t){return!t||!t.hasContent?!1:t.hasUncompletedTodo?"primary":"secondary"}function ge(t){const{key:n,value:l,selectionEnabled:c=!0,metadata:o,outside:i=!1,date:r}=t,h=c&&l.key===n,d=!!r&&We.isToday(r);return{indicator:i?!1:_r(o==null?void 0:o[n]),selected:h,today:d}}function gr(t,n){if(n.kind==="month")return{beforeRows:[],activeRows:t,afterRows:[]};const l=t.findIndex(c=>c.some(o=>o.value===n.key));return l<0?{beforeRows:[],activeRows:t,afterRows:[]}:{beforeRows:t.slice(0,l),activeRows:[t[l]],afterRows:t.slice(l+1)}}function Rr(t){return typeof t.month=="number"?We.format(new Date(t.year,t.month-1,1),"LLLL"):t.weekKey??t.id}function mr(t,n,l,c){return t.items.map(o=>{var h,d,g,b;if(o.kind==="marker"){const v=ge({key:((h=o.meta)==null?void 0:h.weekKey)??o.id,value:n,selectionEnabled:l,metadata:c});return{kind:"week",key:o.id,label:((d=o.meta)==null?void 0:d.weekNumber)??0,value:((g=o.meta)==null?void 0:g.weekKey)??o.id,weekNumber:((b=o.meta)==null?void 0:b.weekNumber)??0,selected:v.selected,indicator:v.indicator}}const i=o,r=ge({key:i.dayKey,value:n,selectionEnabled:l,metadata:c,outside:!i.inMonth,date:i.date});return{kind:"day",key:i.dayKey,label:i.date.getDate(),value:i.dayKey,date:i.date,today:r.today,selected:r.selected,outside:!i.inMonth,indicator:r.indicator}})}function Er(t){const{data:n,value:l,selectionEnabled:c=!0,metadata:o,expanded:i}=t;return{expanded:i,sections:n.map(r=>{const h=r.rows.map(v=>mr(v,l,c,o)),d=gr(h,l),g=r.monthKey??r.id,b=ge({key:g,value:l,selectionEnabled:c,metadata:o}).indicator;return{key:r.id,monthLabel:Rr(r),monthValue:g,year:r.year,month:r.month,selected:l.kind==="month"&&l.key===g,indicator:b,...d}})}}function xr(t){const{value:n,defaultValue:l,onValueChange:c,expanded:o,defaultExpanded:i=!1,onExpandedChange:r}=t,[h,d]=M.useState(l??{kind:"month",key:""}),[g,b]=M.useState(i),v=n??h,w=o??g,j=M.useCallback(S=>{n===void 0&&d(S),c==null||c(S)},[n,c]),C=M.useCallback(S=>{o===void 0&&b(S),r==null||r(S)},[o,r]);return M.useMemo(()=>({value:v,setValue:j,expanded:w,setExpanded:C}),[w,C,j,v])}const wr="_root_19cwz_1",kr="_toggle_19cwz_7",jr="_root_1axuh_1",Nr="_section_1axuh_7",Sr="_row_1axuh_11",Tr="_root_1qcqp_1";function F(...t){return t.filter(Boolean).join(" ")||void 0}function ce(t){const{expanded:n,children:l,className:c}=t;return y.jsx("div",{className:F(Tr,c),"data-expanded":n,"aria-hidden":!n,hidden:!n,children:l})}const Cr="_root_1p2rr_1",Or="_indicator_1p2rr_22";function Pr(t){const{label:n,className:l,selected:c,today:o,outside:i,indicator:r,onSelect:h}=t;return y.jsxs("button",{type:"button",className:F(Cr,l),"data-selected":c,"data-today":o,"data-outside":i,onClick:h,children:[n,r&&y.jsx("span",{className:Or,"data-indicator":r})]})}const Dr="_root_f02t4_1",Fr="_indicator_f02t4_17";function Ar(t){const{label:n,className:l,selected:c,indicator:o,onSelect:i}=t;return y.jsxs("button",{type:"button",className:F(Dr,l),"data-selected":c,onClick:i,children:[n,o&&y.jsx("span",{className:Fr,"data-indicator":o})]})}const Lr="_root_151qq_1",Ir="_indicator_151qq_14";function $r(t){const{label:n,className:l,selected:c,indicator:o,onSelect:i}=t;return y.jsxs("button",{type:"button",className:F(Lr,l),"data-selected":c,onClick:i,children:[n,o&&y.jsx("span",{className:Ir,"data-indicator":o})]})}const Mr="_root_1npxx_1",Vr="_root_12rog_1";function Wr({label:t,className:n}){return y.jsx("span",{className:F(Vr,n),children:t})}function Yr(t){const{labels:n,className:l,dayNameClassName:c}=t;return y.jsxs("div",{className:F(Mr,l),children:[y.jsx("span",{}),n.map((o,i)=>y.jsx(Wr,{label:o,className:c},`weekday-${i}`))]})}const Ur=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function qr(t){return t.selected?!0:[...t.beforeRows,...t.activeRows,...t.afterRows].some(n=>n.some(l=>l.selected))}function Kr(t,n,l,c){var d,g,b,v,w,j,C,S;if(t.kind==="week"){const V=((g=(d=n==null?void 0:n.formatters)==null?void 0:d.weekLabel)==null?void 0:g.call(d,t))??`W${t.label}`,O=(b=n==null?void 0:n.classNames)==null?void 0:b.week,E=(v=n==null?void 0:n.slots)==null?void 0:v.week;return E?y.jsx(E,{item:t,label:V,className:O,onSelect:()=>c==null?void 0:c(t.value)},t.key):y.jsx($r,{label:V,className:O,selected:t.selected,indicator:t.indicator,onSelect:()=>c==null?void 0:c(t.value)},t.key)}const o=t,i=((j=(w=n==null?void 0:n.formatters)==null?void 0:w.dayLabel)==null?void 0:j.call(w,o))??o.label,r=(C=n==null?void 0:n.classNames)==null?void 0:C.day,h=(S=n==null?void 0:n.slots)==null?void 0:S.day;return h?y.jsx(h,{item:o,label:i,className:r,onSelect:()=>l==null?void 0:l(o.value)},o.key):y.jsx(Pr,{label:i,className:r,selected:o.selected,today:o.today,outside:o.outside,indicator:o.indicator,onSelect:()=>l==null?void 0:l(o.value)},o.key)}function he(t,n,l,c){return t.map((o,i)=>{var r;return y.jsx("div",{className:F(Sr,(r=n==null?void 0:n.classNames)==null?void 0:r.row),children:o.map(h=>Kr(h,n,l,c))},`row-${i}`)})}function Br(t){var V,O,E,re,ae,ne;const{sections:n,expanded:l,onDaySelect:c,onWeekSelect:o,onMonthSelect:i,customization:r}=t,h=(V=r==null?void 0:r.weekdayLabels)!=null&&V.length?r.weekdayLabels:Ur,d=(O=r==null?void 0:r.slots)==null?void 0:O.month,g=h.map((m,W)=>{var U,I;const L=(U=r==null?void 0:r.slots)==null?void 0:U.dayName,Y=(I=r==null?void 0:r.classNames)==null?void 0:I.dayName;return L?y.jsx(L,{index:W,label:m,className:Y},`${m}-${W}`):m}),b=(E=r==null?void 0:r.slots)==null?void 0:E.weekdayHeader,v=Math.max(n.findIndex(m=>qr(m)),0),w=n.slice(0,v),j=n[v],C=n.slice(v+1),S=m=>{var W,L,Y,U,I,J,D,A,$,H,G,Z,X;return y.jsxs("section",{className:F(Nr,(W=r==null?void 0:r.classNames)==null?void 0:W.section),children:[d?y.jsx(d,{section:m,label:((Y=(L=r==null?void 0:r.formatters)==null?void 0:L.monthLabel)==null?void 0:Y.call(L,m))??m.monthLabel,className:(U=r==null?void 0:r.classNames)==null?void 0:U.month,onSelect:()=>i==null?void 0:i(m.monthValue)}):y.jsx(Ar,{label:((J=(I=r==null?void 0:r.formatters)==null?void 0:I.monthLabel)==null?void 0:J.call(I,m))??m.monthLabel,className:(D=r==null?void 0:r.classNames)==null?void 0:D.month,selected:m.selected,indicator:m.indicator,onSelect:()=>i==null?void 0:i(m.monthValue)}),b?y.jsx(b,{labels:g,className:(A=r==null?void 0:r.classNames)==null?void 0:A.weekdayHeader,dayNameClassName:($=r==null?void 0:r.classNames)==null?void 0:$.dayName}):y.jsx(Yr,{labels:g,className:(H=r==null?void 0:r.classNames)==null?void 0:H.weekdayHeader,dayNameClassName:(G=r==null?void 0:r.classNames)==null?void 0:G.dayName}),y.jsx(ce,{expanded:l,className:(Z=r==null?void 0:r.classNames)==null?void 0:Z.expandableZone,children:he(m.beforeRows,r,c,o)}),he(m.activeRows,r,c,o),y.jsx(ce,{expanded:l,className:(X=r==null?void 0:r.classNames)==null?void 0:X.expandableZone,children:he(m.afterRows,r,c,o)})]},m.key)};return y.jsxs("div",{className:F(jr,(re=r==null?void 0:r.classNames)==null?void 0:re.grid),children:[y.jsx(ce,{expanded:l,className:(ae=r==null?void 0:r.classNames)==null?void 0:ae.expandableZone,children:w.map(m=>S(m))}),j&&S(j),y.jsx(ce,{expanded:l,className:(ne=r==null?void 0:r.classNames)==null?void 0:ne.expandableZone,children:C.map(m=>S(m))})]})}function Jr(t){var b,v,w,j,C;const{model:n,onDaySelect:l,onWeekSelect:c,onMonthSelect:o,onExpandedChange:i,customization:r}=t,h=(b=r==null?void 0:r.slots)==null?void 0:b.toggle,d=((w=(v=r==null?void 0:r.formatters)==null?void 0:v.toggleLabel)==null?void 0:w.call(v,!!n.expanded))??(n.expanded?"Collapse":"Expand"),g=F(kr,(j=r==null?void 0:r.classNames)==null?void 0:j.toggle);return y.jsxs("div",{className:F(wr,(C=r==null?void 0:r.classNames)==null?void 0:C.root),children:[y.jsx(Br,{sections:n.sections,expanded:!!n.expanded,onDaySelect:l,onWeekSelect:c,onMonthSelect:o,customization:r}),i&&(h?y.jsx(h,{expanded:!!n.expanded,label:d,className:g,onToggle:()=>i(!n.expanded)}):y.jsx("button",{type:"button",className:g,onClick:()=>i(!n.expanded),children:d}))]})}function Ye(t){return y.jsx(Jr,{...t})}function Hr(t){const n=xr(t),{customization:l,data:c,metadata:o,selectionEnabled:i=!0}=t,{expanded:r,setExpanded:h,setValue:d,value:g}=n,b=M.useMemo(()=>Er({data:c,value:g,selectionEnabled:i,metadata:o,expanded:r}),[c,r,o,i,g]);return y.jsx(Ye,{model:b,onDaySelect:v=>d({kind:"day",key:v}),onWeekSelect:v=>d({kind:"week",key:v}),onMonthSelect:v=>d({kind:"month",key:v}),onExpandedChange:h,customization:l})}exports.Calendar=Hr;exports.CalendarPure=Ye;
14
+ <%s key={someKey} {...props} />`,ee,F,pr,F),Se[F+ee]=!0}}return e===i?lr(b):ur(b),b}}function cr(e,r,t){return je(e,r,t,!0)}function fr(e,r,t){return je(e,r,t,!1)}var dr=fr,vr=cr;L.Fragment=i,L.jsx=dr,L.jsxs=vr})()),L}var Oe;function br(){return Oe||(Oe=1,process.env.NODE_ENV==="production"?J.exports=hr():J.exports=_r()),J.exports}var h=br();function mr(n){return!n||!n.hasContent?!1:n.hasUncompletedTodo?"primary":"secondary"}function te(n){const{key:o,value:s,metadata:i,outside:l=!1,date:f}=n,v=s.key===o,R=!!f&&De.isToday(f);return{indicator:l?!1:mr(i?.[o]),selected:v,today:R}}function Rr(n,o){if(o.kind==="month")return{beforeRows:[],activeRows:n,afterRows:[]};const s=n.findIndex(i=>i.some(l=>l.value===o.key));return s<0?{beforeRows:[],activeRows:n,afterRows:[]}:{beforeRows:n.slice(0,s),activeRows:[n[s]],afterRows:n.slice(s+1)}}function gr(n){return typeof n.month=="number"?De.format(new Date(n.year,n.month-1,1),"LLLL"):n.weekKey??n.id}function Er(n,o,s){return n.items.map(i=>{if(i.kind==="marker"){const v=te({key:i.meta?.weekKey??i.id,value:o,metadata:s});return{kind:"week",key:i.id,label:i.meta?.weekNumber??0,value:i.meta?.weekKey??i.id,selected:v.selected,indicator:v.indicator}}const l=i,f=te({key:l.dayKey,value:o,metadata:s,outside:!l.inMonth,date:l.date});return{kind:"day",key:l.dayKey,label:l.date.getDate(),value:l.dayKey,today:f.today,selected:f.selected,outside:!l.inMonth,indicator:f.indicator}})}function xr(n){const{data:o,value:s,metadata:i,expanded:l}=n;return{expanded:l,sections:o.map(f=>{const v=f.rows.map(m=>Er(m,s,i)),R=Rr(v,s),y=f.monthKey??f.id,g=te({key:y,value:s,metadata:i}).indicator;return{key:f.id,monthLabel:gr(f),monthValue:y,selected:s.kind==="month"&&s.key===y,indicator:g,...R}})}}function kr(n){const{value:o,defaultValue:s,onValueChange:i,expanded:l,defaultExpanded:f=!1,onExpandedChange:v}=n,[R,y]=T.useState(s??{kind:"month",key:""}),[g,m]=T.useState(f),w=o??R,j=l??g,O=T.useCallback(P=>{o===void 0&&y(P),i?.(P)},[o,i]),M=T.useCallback(P=>{l===void 0&&m(P),v?.(P)},[l,v]);return T.useMemo(()=>({value:w,setValue:O,expanded:j,setExpanded:M}),[j,M,O,w])}const wr="_root_19cwz_1",Sr="_toggle_19cwz_7",jr="_root_1axuh_1",Cr="_section_1axuh_7",Tr="_row_1axuh_11",Or="_root_1cwda_1",Pr="_inner_1cwda_12";function Pe(n){const{expanded:o,children:s}=n;return h.jsx("div",{className:Or,"data-expanded":o,"aria-hidden":!o,children:h.jsx("div",{className:Pr,children:s})})}const Dr="_root_3lr8g_1";function Fr(n){const{label:o,selected:s,today:i,outside:l,onSelect:f}=n;return h.jsx("button",{type:"button",className:Dr,"data-selected":s,"data-today":i,"data-outside":l,onClick:f,children:o})}const Ar="_root_f8gdt_1";function Ir(n){const{label:o,selected:s,onSelect:i}=n;return h.jsx("button",{type:"button",className:Ar,"data-selected":s,onClick:i,children:o})}const Wr="_root_15vsq_1";function Mr(n){const{label:o,selected:s,onSelect:i}=n;return h.jsxs("button",{type:"button",className:Wr,"data-selected":s,onClick:i,children:["W",o]})}const Nr="_root_1npxx_1",Vr="_root_12rog_1";function $r({label:n}){return h.jsx("span",{className:Vr,children:n})}const Lr=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];function Yr(){return h.jsxs("div",{className:Nr,children:[h.jsx("span",{}),Lr.map(n=>h.jsx($r,{label:n},n))]})}function Ur(n,o,s){return n.kind==="week"?h.jsx(Mr,{label:n.label,selected:n.selected,onSelect:()=>s?.(n.value)},n.key):h.jsx(Fr,{label:n.label,selected:n.selected,today:n.today,outside:n.outside,onSelect:()=>o?.(n.value)},n.key)}function re(n,o,s){return n.map((i,l)=>h.jsx("div",{className:Tr,children:i.map(f=>Ur(f,o,s))},`row-${l}`))}function Kr(n){const{sections:o,expanded:s,onDaySelect:i,onWeekSelect:l,onMonthSelect:f}=n;return h.jsx("div",{className:jr,children:o.map(v=>h.jsxs("section",{className:Cr,children:[h.jsx(Ir,{label:v.monthLabel,selected:v.selected,onSelect:()=>f?.(v.monthValue)}),h.jsx(Yr,{}),h.jsx(Pe,{expanded:s,children:re(v.beforeRows,i,l)}),re(v.activeRows,i,l),h.jsx(Pe,{expanded:s,children:re(v.afterRows,i,l)})]},v.key))})}function qr(n){const{model:o,onDaySelect:s,onWeekSelect:i,onMonthSelect:l,onExpandedChange:f}=n;return h.jsxs("div",{className:wr,children:[h.jsx(Kr,{sections:o.sections,expanded:!!o.expanded,onDaySelect:s,onWeekSelect:i,onMonthSelect:l}),f&&h.jsx("button",{type:"button",className:Sr,onClick:()=>f(!o.expanded),children:o.expanded?"Collapse":"Expand"})]})}function Fe(n){return h.jsx(qr,{...n})}function Jr(n){const o=kr(n),{data:s,metadata:i}=n,{expanded:l,setExpanded:f,setValue:v,value:R}=o,y=T.useMemo(()=>xr({data:s,value:R,metadata:i,expanded:l}),[s,l,i,R]);return h.jsx(Fe,{model:y,onDaySelect:g=>v({kind:"day",key:g}),onWeekSelect:g=>v({kind:"week",key:g}),onMonthSelect:g=>v({kind:"month",key:g}),onExpandedChange:f})}exports.Calendar=Jr;exports.CalendarPure=Fe;
31
15
  //# sourceMappingURL=index.cjs.map