master-components-react 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
45
45
  ${fn.popupContainer}
46
46
  ${i!=null&&i.type?fn.withOptions:""}
47
47
  ${o==="horizontal"?fn.horizontal:""}
48
- `,children:[E.jsx("div",{className:fn.closeButton,style:h??{},onClick:v,children:E.jsx(ku,{width:"24",height:"24",viewBox:"0 0 24 24",d:"M18 6L6 18M6 6L18 18",stroke:"#A4A7AE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),((i==null?void 0:i.title)||(i==null?void 0:i.description)||(i==null?void 0:i.type))&&E.jsxs("div",{className:`${fn.popupHeader}`,style:d??{},children:[p()&&E.jsx("div",{className:fn.typeIcon,children:E.jsx("div",{style:{backgroundColor:(i==null?void 0:i.type)==="success"?"#DCFAE6":(i==null?void 0:i.type)==="unsaved"?"#FEF0C7":"#FEE4E2"},className:fn.icon,children:p()})}),i&&(i==null?void 0:i.title)&&E.jsx("div",{className:fn.popupTitle,children:E.jsxs("h2",{style:c??{},children:[" ",(i==null?void 0:i.title)??""," "]})}),i&&(i==null?void 0:i.description)&&E.jsx("div",{className:fn.popupDescription,children:E.jsxs("p",{children:[" ",(i==null?void 0:i.description)??""," "]})})]}),E.jsxs("div",{className:fn.templateWrapper,style:u??{},children:[t&&t(),n&&n]})]})})},UL="FilterWithTags-module__compWrapper",KL="FilterWithTags-module__filterButton",jL="FilterWithTags-module__filter",qL="FilterWithTags-module__resultNumber",YL="FilterWithTags-module__filterCont",XL="FilterWithTags-module__title",ZL="FilterWithTags-module__renderComponent",JL="FilterWithTags-module__footer",QL="FilterWithTags-module__clear",eF="FilterWithTags-module__buttonsWrapper",tF="FilterWithTags-module__tag",iF="FilterWithTags-module__checkbox",nF="FilterWithTags-module__showButton",rF="FilterWithTags-module__dark",pi={compWrapper:UL,filterButton:KL,filter:jL,resultNumber:qL,filterCont:YL,title:XL,renderComponent:ZL,footer:JL,clear:QL,buttonsWrapper:eF,tag:tF,checkbox:iF,showButton:nF,dark:rF},aF="TimePicker-module__timepickerWrapper",oF="TimePicker-module__timepickerLabel",sF="TimePicker-module__required",lF="TimePicker-module__timepicker",uF="TimePicker-module__sm",dF="TimePicker-module__md",cF="TimePicker-module__focused",hF="TimePicker-module__error",fF="TimePicker-module__disabled",pF="TimePicker-module__dropdownList",vF="TimePicker-module__selected",_F="TimePicker-module__timepickerHelperText",mF="TimePicker-module__Namespace_Hr",gF="TimePicker-module__dark",ji={timepickerWrapper:aF,timepickerLabel:oF,required:sF,timepicker:lF,sm:uF,md:dF,focused:cF,error:hF,disabled:fF,dropdownList:pF,selected:vF,timepickerHelperText:_F,namespaceHr:mF,dark:gF};var DI={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($t,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",c="month",h="quarter",f="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var k=["th","st","nd","rd"],q=I%100;return"["+I+(k[(q-20)%10]||k[q]||k[0])+"]"}},S=function(I,k,q){var Q=String(I);return!Q||Q.length>=k?I:""+Array(k+1-Q.length).join(q)+I},P={s:S,z:function(I){var k=-I.utcOffset(),q=Math.abs(k),Q=Math.floor(q/60),fe=q%60;return(k<=0?"+":"-")+S(Q,2,"0")+":"+S(fe,2,"0")},m:function I(k,q){if(k.date()<q.date())return-I(q,k);var Q=12*(q.year()-k.year())+(q.month()-k.month()),fe=k.clone().add(Q,c),ue=q-fe<0,ee=k.clone().add(Q+(ue?-1:1),c);return+(-(Q+(q-fe)/(ue?fe-ee:ee-fe))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:c,y:f,w:d,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},A="en",G={};G[A]=x;var W="$isDayjsObject",z=function(I){return I instanceof $||!(!I||!I[W])},j=function I(k,q,Q){var fe;if(!k)return A;if(typeof k=="string"){var ue=k.toLowerCase();G[ue]&&(fe=ue),q&&(G[ue]=q,fe=ue);var ee=k.split("-");if(!fe&&ee.length>1)return I(ee[0])}else{var K=k.name;G[K]=k,fe=K}return!Q&&fe&&(A=fe),fe||!Q&&A},Z=function(I,k){if(z(I))return I.clone();var q=typeof k=="object"?k:{};return q.date=I,q.args=arguments,new $(q)},te=P;te.l=j,te.i=z,te.w=function(I,k){return Z(I,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var $=function(){function I(q){this.$L=j(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[W]=!0}var k=I.prototype;return k.parse=function(q){this.$d=function(Q){var fe=Q.date,ue=Q.utc;if(fe===null)return new Date(NaN);if(te.u(fe))return new Date;if(fe instanceof Date)return new Date(fe);if(typeof fe=="string"&&!/Z$/i.test(fe)){var ee=fe.match(g);if(ee){var K=ee[2]-1||0,y=(ee[7]||"0").substring(0,3);return ue?new Date(Date.UTC(ee[1],K,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,y)):new Date(ee[1],K,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,y)}}return new Date(fe)}(q),this.init()},k.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},k.$utils=function(){return te},k.isValid=function(){return this.$d.toString()!==v},k.isSame=function(q,Q){var fe=Z(q);return this.startOf(Q)<=fe&&fe<=this.endOf(Q)},k.isAfter=function(q,Q){return Z(q)<this.startOf(Q)},k.isBefore=function(q,Q){return this.endOf(Q)<Z(q)},k.$g=function(q,Q,fe){return te.u(q)?this[Q]:this.set(fe,q)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(q,Q){var fe=this,ue=!!te.u(Q)||Q,ee=te.p(q),K=function(X,se){var ve=te.w(fe.$u?Date.UTC(fe.$y,se,X):new Date(fe.$y,se,X),fe);return ue?ve:ve.endOf(u)},y=function(X,se){return te.w(fe.toDate()[X].apply(fe.toDate("s"),(ue?[0,0,0,0]:[23,59,59,999]).slice(se)),fe)},T=this.$W,D=this.$M,O=this.$D,L="set"+(this.$u?"UTC":"");switch(ee){case f:return ue?K(1,0):K(31,11);case c:return ue?K(1,D):K(0,D+1);case d:var M=this.$locale().weekStart||0,V=(T<M?T+7:T)-M;return K(ue?O-V:O+(6-V),D);case u:case p:return y(L+"Hours",0);case l:return y(L+"Minutes",1);case s:return y(L+"Seconds",2);case o:return y(L+"Milliseconds",3);default:return this.clone()}},k.endOf=function(q){return this.startOf(q,!1)},k.$set=function(q,Q){var fe,ue=te.p(q),ee="set"+(this.$u?"UTC":""),K=(fe={},fe[u]=ee+"Date",fe[p]=ee+"Date",fe[c]=ee+"Month",fe[f]=ee+"FullYear",fe[l]=ee+"Hours",fe[s]=ee+"Minutes",fe[o]=ee+"Seconds",fe[a]=ee+"Milliseconds",fe)[ue],y=ue===u?this.$D+(Q-this.$W):Q;if(ue===c||ue===f){var T=this.clone().set(p,1);T.$d[K](y),T.init(),this.$d=T.set(p,Math.min(this.$D,T.daysInMonth())).$d}else K&&this.$d[K](y);return this.init(),this},k.set=function(q,Q){return this.clone().$set(q,Q)},k.get=function(q){return this[te.p(q)]()},k.add=function(q,Q){var fe,ue=this;q=Number(q);var ee=te.p(Q),K=function(D){var O=Z(ue);return te.w(O.date(O.date()+Math.round(D*q)),ue)};if(ee===c)return this.set(c,this.$M+q);if(ee===f)return this.set(f,this.$y+q);if(ee===u)return K(1);if(ee===d)return K(7);var y=(fe={},fe[s]=n,fe[l]=r,fe[o]=i,fe)[ee]||1,T=this.$d.getTime()+q*y;return te.w(T,this)},k.subtract=function(q,Q){return this.add(-1*q,Q)},k.format=function(q){var Q=this,fe=this.$locale();if(!this.isValid())return fe.invalidDate||v;var ue=q||"YYYY-MM-DDTHH:mm:ssZ",ee=te.z(this),K=this.$H,y=this.$m,T=this.$M,D=fe.weekdays,O=fe.months,L=fe.meridiem,M=function(se,ve,de,ge){return se&&(se[ve]||se(Q,ue))||de[ve].slice(0,ge)},V=function(se){return te.s(K%12||12,se,"0")},X=L||function(se,ve,de){var ge=se<12?"AM":"PM";return de?ge.toLowerCase():ge};return ue.replace(C,function(se,ve){return ve||function(de){switch(de){case"YY":return String(Q.$y).slice(-2);case"YYYY":return te.s(Q.$y,4,"0");case"M":return T+1;case"MM":return te.s(T+1,2,"0");case"MMM":return M(fe.monthsShort,T,O,3);case"MMMM":return M(O,T);case"D":return Q.$D;case"DD":return te.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return M(fe.weekdaysMin,Q.$W,D,2);case"ddd":return M(fe.weekdaysShort,Q.$W,D,3);case"dddd":return D[Q.$W];case"H":return String(K);case"HH":return te.s(K,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return X(K,y,!0);case"A":return X(K,y,!1);case"m":return String(y);case"mm":return te.s(y,2,"0");case"s":return String(Q.$s);case"ss":return te.s(Q.$s,2,"0");case"SSS":return te.s(Q.$ms,3,"0");case"Z":return ee}return null}(se)||ee.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(q,Q,fe){var ue,ee=this,K=te.p(Q),y=Z(q),T=(y.utcOffset()-this.utcOffset())*n,D=this-y,O=function(){return te.m(ee,y)};switch(K){case f:ue=O()/12;break;case c:ue=O();break;case h:ue=O()/3;break;case d:ue=(D-T)/6048e5;break;case u:ue=(D-T)/864e5;break;case l:ue=D/r;break;case s:ue=D/n;break;case o:ue=D/i;break;default:ue=D}return fe?ue:te.a(ue)},k.daysInMonth=function(){return this.endOf(c).$D},k.$locale=function(){return G[this.$L]},k.locale=function(q,Q){if(!q)return this.$L;var fe=this.clone(),ue=j(q,Q,!0);return ue&&(fe.$L=ue),fe},k.clone=function(){return te.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},I}(),Y=$.prototype;return Z.prototype=Y,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",c],["$y",f],["$D",p]].forEach(function(I){Y[I[1]]=function(k){return this.$g(k,I[0],I[1])}}),Z.extend=function(I,k){return I.$i||(I(k,$,Z),I.$i=!0),Z},Z.locale=j,Z.isDayjs=z,Z.unix=function(I){return Z(1e3*I)},Z.en=G[A],Z.Ls=G,Z.p={},Z})})(DI);var CF=DI.exports;const We=Wm(CF),yF=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[E.jsx("g",{clipPath:"url(#clip0_1321_39043)",children:E.jsx("path",{d:"M10.0013 4.99935V9.99935L13.3346 11.666M18.3346 9.99935C18.3346 14.6017 14.6037 18.3327 10.0013 18.3327C5.39893 18.3327 1.66797 14.6017 1.66797 9.99935C1.66797 5.39698 5.39893 1.66602 10.0013 1.66602C14.6037 1.66602 18.3346 5.39698 18.3346 9.99935Z",stroke:"#717680",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_1321_39043",children:E.jsx("rect",{width:"20",height:"20",fill:"white"})})})]});var OI={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($t,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(C){this[g]=+C}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),S=60*x[1]+(+x[2]||0);return S===0?0:x[0]==="+"?-S:S}(g)}],h=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},f=function(g,C){var x,S=l.meridiem;if(S){for(var P=1;P<=24;P+=1)if(g.indexOf(S(P,0,C))>-1){x=P>12;break}}else x=g===(C?"pm":"PM");return x},p={A:[s,function(g){this.afternoon=f(g,!1)}],a:[s,function(g){this.afternoon=f(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[s,function(g){var C=l.ordinal,x=g.match(/\d+/);if(this.day=x[0],C)for(var S=1;S<=31;S+=1)C(S).replace(/\[|\]/g,"")===g&&(this.day=S)}],w:[o,d("week")],ww:[a,d("week")],M:[o,d("month")],MM:[a,d("month")],MMM:[s,function(g){var C=h("months"),x=(h("monthsShort")||C.map(function(S){return S.slice(0,3)})).indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(g){var C=h("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function v(g){var C,x;C=g,x=l&&l.formats;for(var S=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Z,te,$){var Y=$&&$.toUpperCase();return te||x[$]||i[$]||x[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,k,q){return k||q.slice(1)})})).match(n),P=S.length,A=0;A<P;A+=1){var G=S[A],W=p[G],z=W&&W[0],j=W&&W[1];S[A]=j?{regex:z,parser:j}:G.replace(/^\[|\]$/g,"")}return function(Z){for(var te={},$=0,Y=0;$<P;$+=1){var I=S[$];if(typeof I=="string")Y+=I.length;else{var k=I.regex,q=I.parser,Q=Z.slice(Y),fe=k.exec(Q)[0];q.call(te,fe),Z=Z.replace(fe,"")}}return function(ue){var ee=ue.afternoon;if(ee!==void 0){var K=ue.hours;ee?K<12&&(ue.hours+=12):K===12&&(ue.hours=0),delete ue.afternoon}}(te),te}}return function(g,C,x){x.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var S=C.prototype,P=S.parse;S.parse=function(A){var G=A.date,W=A.utc,z=A.args;this.$u=W;var j=z[1];if(typeof j=="string"){var Z=z[2]===!0,te=z[3]===!0,$=Z||te,Y=z[2];te&&(Y=z[2]),l=this.$locale(),!Z&&Y&&(l=x.Ls[Y]),this.$d=function(Q,fe,ue,ee){try{if(["x","X"].indexOf(fe)>-1)return new Date((fe==="X"?1e3:1)*Q);var K=v(fe)(Q),y=K.year,T=K.month,D=K.day,O=K.hours,L=K.minutes,M=K.seconds,V=K.milliseconds,X=K.zone,se=K.week,ve=new Date,de=D||(y||T?1:ve.getDate()),ge=y||ve.getFullYear(),b=0;y&&!T||(b=T>0?T-1:ve.getMonth());var ce,ne=O||0,N=L||0,F=M||0,J=V||0;return X?new Date(Date.UTC(ge,b,de,ne,N,F,J+60*X.offset*1e3)):ue?new Date(Date.UTC(ge,b,de,ne,N,F,J)):(ce=new Date(ge,b,de,ne,N,F,J),se&&(ce=ee(ce).week(se).toDate()),ce)}catch{return new Date("")}}(G,j,W,x),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),$&&G!=this.format(j)&&(this.$d=new Date("")),l={}}else if(j instanceof Array)for(var I=j.length,k=1;k<=I;k+=1){z[1]=j[k-1];var q=x.apply(this,z);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}k===I&&(this.$d=new Date(""))}else P.call(this,A)}}})})(OI);var xF=OI.exports;const Um=Wm(xF);We.extend(Um);const RI=({label:e,required:t,placeholder:i,format:n="HH:mm",defaultHour:r,defaultMinute:a,defaultValue:o,size:s="md",msg:l,onTimeChange:u,onFocus:d,onBlur:c,timepickerStyle:h,dropdownListStyle:f,hoursListStyle:p,minutesListStyle:v,timepickerHelperTextStyle:g,timepickerLabelStyle:C,requiredStyle:x,fixedDropdown:S=!0,theme:P})=>{const A=ir(),[G,W]=le.useState(!1);le.useRef(!1);const[z,j]=le.useState(""),Z=le.useRef(null),te=le.useRef(null),$=le.useRef(null),Y=le.useRef(null),I=le.useCallback(()=>Array.from({length:60},(D,O)=>O<10?`0${O}`:`${O}`),[]),k=le.useCallback(()=>Array.from({length:23},(D,O)=>O<9?`0${O+1}`:`${O+1}`),[]),q=(T,D,O)=>{T.stopPropagation(),T.target.scrollIntoView({behavior:"smooth",block:"start"}),O==="hour"&&(te.current=D,Z.current||(Z.current="00")),O==="minute"&&(Z.current=D,te.current||(te.current="00"));const L=We().hour(parseInt(te.current??"0",10)).minute(parseInt(Z.current??"0",10)).format(n??"HH:mm");j(L),u&&typeof u=="function"&&u(L)},Q=T=>{T.stopPropagation(),te.current=null,Z.current=null,j(""),u&&typeof u=="function"&&u("")},fe=T=>{T.composedPath().includes($.current)||W(!1)},ue=T=>{S&&T.composedPath().includes($.current)||W(!1)},ee=()=>{d&&typeof d=="function"&&d()},K=()=>{const T=$.current,D=Y.current;if(!D||!T)return;const O=T.getBoundingClientRect(),L=window.innerHeight;S?(D.style.position="fixed",D.style.left=`${O.left+window.pageXOffset}px`,O.bottom+D.offsetHeight>L?(D.style.top=`${window.scrollY+O.top-D.offsetHeight-8}px`,D.style.bottom="unset"):(D.style.top=`${window.scrollY+O.bottom}px`,D.style.bottom="unset")):O.bottom>L?(D.style.top="unset",D.style.bottom="calc(100% + 8px)"):(D.style.bottom="unset",D.style.top="calc(100% + 8px)")},y=le.useRef(!0);return le.useEffect(()=>{if(o){const T=We(o,[n],!0);te.current=T.format("HH"),Z.current=T.format("mm"),j(T.format(n))}else if(r){const T=We().hour(parseInt(r,10)).minute(parseInt(a??"0",10)).format(n??"HH:mm");te.current=r,Z.current=a??"00",j(T)}},[]),le.useEffect(()=>{if(y.current){y.current=!1;return}G||c&&typeof c=="function"&&c()},[G]),le.useEffect(()=>{K()},[$,G]),le.useEffect(()=>(document.addEventListener("click",fe),document.addEventListener("wheel",ue),()=>{document.removeEventListener("click",fe),document.removeEventListener("wheel",ue)}),[]),E.jsxs("div",{className:`${P==="dark"?ji.dark:""} ${A==="namespaceHr"?ji.namespaceHr:""} ${ji.timepickerWrapper}`,children:[e&&E.jsxs("label",{className:ji.timepickerLabel,style:C??{},children:[e," ",E.jsx("span",{className:ji.required,style:x??{},children:t&&"*"})]}),E.jsxs("div",{ref:$,onFocus:ee,className:`${ji.timepicker} ${G?ji.focused:""} ${ji[s]}`,onClick:()=>W(T=>!T),style:h??{},children:[E.jsx("div",{style:{display:"grid",placeItems:"center"},children:E.jsx(yF,{})}),E.jsx("input",{type:"text",readOnly:!0,placeholder:i??"",value:z}),z?E.jsx("div",{onClick:T=>Q(T),style:{display:"grid",placeItems:"center"},children:E.jsx(ku,{})}):E.jsx("div",{style:{display:"grid",placeItems:"center",transform:G?"rotate(180deg)":"",transition:"transform 0.2s ease-in-out",cursor:"pointer",marginLeft:"10px"},children:E.jsx(Ru,{})}),G&&E.jsxs("div",{ref:Y,className:ji.dropdownList,style:f??{},children:[E.jsx("ul",{className:ji.hours,children:k().map(T=>E.jsx("li",{style:p??{},className:`${T===te.current?ji.selected:""}`,onClick:D=>q(D,T,"hour"),children:T},T))}),E.jsx("ul",{className:ji.minutes,children:I().map(T=>E.jsx("li",{style:v??{},className:`${T===Z.current?ji.selected:""}`,onClick:D=>q(D,T,"minute"),children:T},T))})]})]}),l&&(l==null?void 0:l.visible)&&E.jsx("div",{style:g??{},className:`${ji.timepickerHelperText} ${l!=null&&l.error?ji.error:""}`,children:E.jsx("p",{style:(l==null?void 0:l.style)??{},children:l.text})})]})},bF="DatePicker-module__datepickerContainer",SF="DatePicker-module__datepickerLabel",wF="DatePicker-module__required",EF="DatePicker-module__datepicker",IF="DatePicker-module__sm",TF="DatePicker-module__md",AF="DatePicker-module__focused",DF="DatePicker-module__error",OF="DatePicker-module__disabled",RF="DatePicker-module__datepickerHelperText",kF="DatePicker-module__namespaceHr",BF="DatePicker-module__dark",Un={datepickerContainer:bF,datepickerLabel:SF,required:wF,datepicker:EF,sm:IF,md:TF,focused:AF,error:DF,disabled:OF,datepickerHelperText:RF,namespaceHr:kF,dark:BF},Zo=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:E.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"#A4A7AE",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})}),Jo=({style:e})=>E.jsx("svg",{style:e??{},xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:E.jsx("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"#A4A7AE",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})}),PF="Calendar-module__datePicker",LF="Calendar-module__dualCalendar",FF="Calendar-module__dualCalendarWithQuick",MF="Calendar-module__border",VF="Calendar-module__calendarWrapper",NF="Calendar-module__quickPick",$F="Calendar-module__datePickerHeader",HF="Calendar-module__div",WF="Calendar-module__left",zF="Calendar-module__right",GF="Calendar-module__singleIcon",UF="Calendar-module__doubleIcon",KF="Calendar-module__day",jF="Calendar-module__today",qF="Calendar-module__inRange",YF="Calendar-module__selected",XF="Calendar-module__startDate",ZF="Calendar-module__endDate",JF="Calendar-module__disabled",QF="Calendar-module__otherMonth",eM="Calendar-module__namespaceHr",tM="Calendar-module__dark",ct={datePicker:PF,dualCalendar:LF,dualCalendarWithQuick:FF,border:MF,calendarWrapper:VF,quickPick:NF,datePickerHeader:$F,div:HF,left:WF,right:zF,singleIcon:GF,doubleIcon:UF,day:KF,today:jF,inRange:qF,selected:YF,startDate:XF,endDate:ZF,disabled:JF,otherMonth:QF,namespaceHr:eM,dark:tM};We.extend(Um);const iM=({valueFormat:e,quickPick:t,onChange:i,CurrentMonth:n,setCurrentMonth:r,SelectedDate:a,namespace:o,customYears:s,setSelectedDate:l,IsFocused:u,setIsFocused:d,mode:c,RangeSelection:h,setRangeSelection:f,type:p,disabledDatesRange:v,disabledDatesTill:g,disabledDatesFrom:C,CalendarRef:x,defaultValue:S,selectedStyle:P,endDateStyle:A,startDateStyle:G,inRangeStyle:W,otherMonthStyle:z,todayStyle:j,weekDayStyle:Z,quickPickStyle:te,monthStyle:$,theme:Y})=>{const I=["Mo","Tu","We","Th","Fr","Sa","Su"],k=le.useRef([]),q=L=>{if(s!=null&&s.length&&!s.includes(L.year().toString()))return[];const M=(L.startOf("month").day()+6)%7,V=L.endOf("month").date(),X=L.subtract(1,"month").endOf("month").date(),se=[];let ve=[],de=1;for(let b=0;b<M;b++)ve.push({date:L.subtract(1,"month").date(X-M+b+1),currentMonth:!1});for(;de<=V;)ve.push({date:L.date(de++),currentMonth:!0}),ve.length===7&&(se.push(ve),ve=[]);let ge=1;for(;se.length<5;)ve.length===7&&(se.push(ve),ve=[]),ve.push({date:L.add(1,"month").date(ge++),currentMonth:!1});if(ve.length){for(;ve.length<7;)ve.push({date:L.add(1,"month").date(ge++),currentMonth:!1});se.push(ve)}return se},Q=q(n),fe=p==="dual"?q(n.add(1,"month")):null,ue=()=>{let L=[];return t&&Array.isArray(t)&&t.length>0&&t.forEach(M=>{switch(M){case"today":k.current.push({name:"Today",key:"Today"});break;case"yesterday":k.current.push({name:"Yesterday",key:"Yesterday"});break;case"thisweek":k.current.push({name:"This week",key:"Thisweek"});break;case"lastweek":k.current.push({name:"Last week",key:"Lastweek"});break;case"thismonth":k.current.push({name:"This month",key:"Thismonth"});break;case"lastmonth":k.current.push({name:"Last month",key:"Lastmonth"});break;case"thisyear":k.current.push({name:"This year",key:"Thisyear"});break;case"lastyear":k.current.push({name:"Last year",key:"Lastyear"});break;case"alltime":k.current.push({name:"All time",key:"Alltime"});break}}),k.current=TI(k.current,"key"),L=k.current,L},ee=L=>{let M={start:"",end:""};switch(l(null),L.key.toLowerCase()){case"today":f({start:We(),end:We()}),M.start=We();break;case"yesterday":l(We().subtract(1,"day")),f({start:We().subtract(1,"day"),end:We().subtract(1,"day")}),M.start=We().subtract(1,"day");break;case"thisweek":f({start:We().startOf("week"),end:We().endOf("week")}),M.start=We().startOf("week"),M.end=We().endOf("week");break;case"lastweek":f({start:We().subtract(1,"week").startOf("week"),end:We().subtract(1,"week").endOf("week")}),M.start=We().subtract(1,"week").startOf("week"),M.end=We().subtract(1,"week").endOf("week");break;case"thismonth":f({start:We().startOf("month"),end:We().endOf("month")}),M.start=We().startOf("month"),M.end=We().endOf("month");break;case"lastmonth":f({start:We().subtract(1,"month").startOf("month"),end:We().subtract(1,"month").endOf("month")}),M.start=We().subtract(1,"month").startOf("month"),M.end=We().subtract(1,"month").endOf("month");break;case"thisyear":f({start:We().startOf("year"),end:We().endOf("year")}),M.start=We().startOf("year"),M.end=We().endOf("year");break;case"lastyear":f({start:We().subtract(1,"year").startOf("year"),end:We().subtract(1,"year").endOf("year")}),M.start=We().subtract(1,"year").startOf("year"),M.end=We().subtract(1,"year").endOf("year");break;case"alltime":f({start:"",end:""}),M.start="",M.end="";break;default:console.warn("Unsupported quick pick option:",L);break}if(i&&typeof i=="function"){const V={start:M.start?M.start:"",end:M.end?M.end:""};d(!1),i(V.end===""?V.start:V,V.end==="")}return L},K=(L,M,V=!1)=>{M||r(L.startOf("month")),c==="range"?f(X=>!X.start||X.start&&X.end?(i&&typeof i=="function"&&i({start:L??"",end:""}),{start:L??"",end:""}):X.start&&!X.end?L.isBefore(X.start,"day")?(i&&typeof i=="function"&&i({start:L??"",end:(X==null?void 0:X.start)??""}),{start:L??"",end:(X==null?void 0:X.start)??""}):(i({...X,end:L??""}),{...X,end:L??""}):X):(f({start:null,end:null}),l(L),V||(d(!1),i&&typeof i=="function"&&i(L.format(e??e))))},y=()=>{r(n.add(1,"month"))},T=()=>{r(n.subtract(1,"month"))},D=()=>{r(n.add(1,"year"))},O=()=>{r(n.subtract(1,"year"))};return le.useEffect(()=>{S.state&&(Array.isArray(S.value)?f({start:We(S.value[0],e),end:We(S.value[1],e)}):K(We(S.value,e),!1,!0),S.state=!1)},[]),E.jsxs("div",{ref:x,className:`${Y==="dark"?ct.dark:""} ${o==="namespaceHr"?ct.namespaceHr:""} ${ct.datePicker} ${u?ct.focused:""} ${p==="dual"?t&&t.length?ct.dualCalendarWithQuick:ct.dualCalendar:""} `,onClick:L=>L.stopPropagation(),style:p==="dual"&&t&&t.length>0?{width:"848px"}:{},children:[p==="dual"&&t&&t.length>0&&E.jsx("div",{children:t&&t.length>0&&E.jsx("ul",{className:ct.quickPick,children:ue().map(L=>E.jsx("li",{style:te??{},onClick:()=>ee(L),children:L.name},L.key))})}),E.jsxs("div",{className:ct.div,children:[p==="dual"?E.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[E.jsxs("div",{style:{width:"50%",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"80px"},children:[E.jsxs("div",{className:ct.left,children:[(!s||s.length>1)&&(!s||n.year()>Math.min(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:O,children:[E.jsx(Zo,{}),E.jsx(Zo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}}),!s||s&&n.format("MMMM YYYY")!==`January ${Math.min(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:T,children:E.jsx(Zo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}})]}),E.jsx("span",{style:$??{},children:s&&s.length===1?n.format("MMMM"):n.format("MMMM YYYY")})]}),E.jsxs("div",{style:{width:"50%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"80px"},children:[E.jsx("span",{style:$??{},children:s&&s.length===1?n.add(1,"month").format("MMMM"):n.add(1,"month").format("MMMM YYYY")}),E.jsxs("div",{className:ct.right,children:[!s||s&&n.format("MMMM YYYY")!==`December ${Math.max(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:y,children:E.jsx(Jo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}}),(!s||s.length>1)&&(!s||n.year()<Math.max(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:D,children:[E.jsx(Jo,{}),E.jsx(Jo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}})]})]})]}):E.jsxs("div",{className:ct.datePickerHeader,children:[E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[E.jsxs("div",{className:ct.left,children:[(!s||s.length>1)&&(!s||n.year()>Math.min(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:O,children:[E.jsx(Zo,{}),E.jsx(Zo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}}),!s||s&&n.format("MMMM YYYY")!==`January ${Math.min(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:T,children:E.jsx(Zo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}})]}),E.jsx("span",{style:$??{},children:s&&s.length===1?n.format("MMMM"):n.format("MMMM YYYY")}),E.jsxs("div",{className:ct.right,children:[!s||s&&n.format("MMMM YYYY")!==`December ${Math.max(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:y,children:E.jsx(Jo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}}),(!s||s.length>1)&&(!s||n.year()<Math.max(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:D,children:[E.jsx(Jo,{}),E.jsx(Jo,{})]}):E.jsx("div",{className:ct.doubleIcon})]})]}),p==="single"&&t&&t.length>0&&E.jsx("ul",{className:ct.quickPick,children:ue().slice(0,3).map(L=>E.jsx("li",{style:te??{},onClick:()=>ee(L),children:L.name},L.key))})]}),E.jsxs("div",{className:ct.calendarWrapper,children:[E.jsxs("table",{children:[E.jsx("thead",{children:E.jsx("tr",{children:I.map(L=>E.jsx("th",{style:Z??{},children:L},L))})}),E.jsx("tbody",{children:Q.map((L,M)=>E.jsx("tr",{children:L.map(({date:V,currentMonth:X},se)=>{const ve=h.start&&h.end&&V.isAfter(h.start,"day")&&V.isBefore(h.end,"day"),de=h.start&&V.isSame(h.start,"day"),ge=h.end&&V.isSame(h.end,"day"),b=c==="single"&&a&&V.isSame(a,"day"),ce=g&&V.isBefore(We(g),"day"),ne=C&&V.isAfter(We(C),"day");let N=!1;if((v==null?void 0:v.length)===2){const[J,re]=v.map(_e=>We(_e));N=V.isAfter(J.subtract(1,"day"))&&V.isBefore(re.add(1,"day"))}const F=ne||ce||N;return E.jsx("td",{style:{...X?{}:z,...V.isSame(We(),"day")?j:{},...ve?W:{},...de?G:{},...ge?A:{},...b?P:{}},className:`${ct.day}
48
+ `,children:[E.jsx("div",{className:fn.closeButton,style:h??{},onClick:v,children:E.jsx(ku,{width:"24",height:"24",viewBox:"0 0 24 24",d:"M18 6L6 18M6 6L18 18",stroke:"#A4A7AE","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),((i==null?void 0:i.title)||(i==null?void 0:i.description)||(i==null?void 0:i.type))&&E.jsxs("div",{className:`${fn.popupHeader}`,style:d??{},children:[p()&&E.jsx("div",{className:fn.typeIcon,children:E.jsx("div",{style:{backgroundColor:(i==null?void 0:i.type)==="success"?"#DCFAE6":(i==null?void 0:i.type)==="unsaved"?"#FEF0C7":"#FEE4E2"},className:fn.icon,children:p()})}),i&&(i==null?void 0:i.title)&&E.jsx("div",{className:fn.popupTitle,children:E.jsxs("h2",{style:c??{},children:[" ",(i==null?void 0:i.title)??""," "]})}),i&&(i==null?void 0:i.description)&&E.jsx("div",{className:fn.popupDescription,children:E.jsxs("p",{children:[" ",(i==null?void 0:i.description)??""," "]})})]}),E.jsxs("div",{className:fn.templateWrapper,style:u??{},children:[t&&t(),n&&n]})]})})},UL="FilterWithTags-module__compWrapper",KL="FilterWithTags-module__filterButton",jL="FilterWithTags-module__filter",qL="FilterWithTags-module__resultNumber",YL="FilterWithTags-module__filterCont",XL="FilterWithTags-module__title",ZL="FilterWithTags-module__renderComponent",JL="FilterWithTags-module__footer",QL="FilterWithTags-module__clear",eF="FilterWithTags-module__buttonsWrapper",tF="FilterWithTags-module__tag",iF="FilterWithTags-module__checkbox",nF="FilterWithTags-module__showButton",rF="FilterWithTags-module__dark",pi={compWrapper:UL,filterButton:KL,filter:jL,resultNumber:qL,filterCont:YL,title:XL,renderComponent:ZL,footer:JL,clear:QL,buttonsWrapper:eF,tag:tF,checkbox:iF,showButton:nF,dark:rF},aF="TimePicker-module__timepickerWrapper",oF="TimePicker-module__timepickerLabel",sF="TimePicker-module__required",lF="TimePicker-module__timepicker",uF="TimePicker-module__sm",dF="TimePicker-module__md",cF="TimePicker-module__focused",hF="TimePicker-module__error",fF="TimePicker-module__disabled",pF="TimePicker-module__dropdownList",vF="TimePicker-module__selected",_F="TimePicker-module__timepickerHelperText",mF="TimePicker-module__Namespace_Hr",gF="TimePicker-module__dark",ji={timepickerWrapper:aF,timepickerLabel:oF,required:sF,timepicker:lF,sm:uF,md:dF,focused:cF,error:hF,disabled:fF,dropdownList:pF,selected:vF,timepickerHelperText:_F,namespaceHr:mF,dark:gF};var DI={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($t,function(){var i=1e3,n=6e4,r=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",d="week",c="month",h="quarter",f="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var k=["th","st","nd","rd"],q=I%100;return"["+I+(k[(q-20)%10]||k[q]||k[0])+"]"}},S=function(I,k,q){var Q=String(I);return!Q||Q.length>=k?I:""+Array(k+1-Q.length).join(q)+I},P={s:S,z:function(I){var k=-I.utcOffset(),q=Math.abs(k),Q=Math.floor(q/60),fe=q%60;return(k<=0?"+":"-")+S(Q,2,"0")+":"+S(fe,2,"0")},m:function I(k,q){if(k.date()<q.date())return-I(q,k);var Q=12*(q.year()-k.year())+(q.month()-k.month()),fe=k.clone().add(Q,c),ue=q-fe<0,ee=k.clone().add(Q+(ue?-1:1),c);return+(-(Q+(q-fe)/(ue?fe-ee:ee-fe))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:c,y:f,w:d,d:u,D:p,h:l,m:s,s:o,ms:a,Q:h}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},A="en",G={};G[A]=x;var W="$isDayjsObject",z=function(I){return I instanceof $||!(!I||!I[W])},j=function I(k,q,Q){var fe;if(!k)return A;if(typeof k=="string"){var ue=k.toLowerCase();G[ue]&&(fe=ue),q&&(G[ue]=q,fe=ue);var ee=k.split("-");if(!fe&&ee.length>1)return I(ee[0])}else{var K=k.name;G[K]=k,fe=K}return!Q&&fe&&(A=fe),fe||!Q&&A},Z=function(I,k){if(z(I))return I.clone();var q=typeof k=="object"?k:{};return q.date=I,q.args=arguments,new $(q)},te=P;te.l=j,te.i=z,te.w=function(I,k){return Z(I,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var $=function(){function I(q){this.$L=j(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[W]=!0}var k=I.prototype;return k.parse=function(q){this.$d=function(Q){var fe=Q.date,ue=Q.utc;if(fe===null)return new Date(NaN);if(te.u(fe))return new Date;if(fe instanceof Date)return new Date(fe);if(typeof fe=="string"&&!/Z$/i.test(fe)){var ee=fe.match(g);if(ee){var K=ee[2]-1||0,y=(ee[7]||"0").substring(0,3);return ue?new Date(Date.UTC(ee[1],K,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,y)):new Date(ee[1],K,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,y)}}return new Date(fe)}(q),this.init()},k.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},k.$utils=function(){return te},k.isValid=function(){return this.$d.toString()!==v},k.isSame=function(q,Q){var fe=Z(q);return this.startOf(Q)<=fe&&fe<=this.endOf(Q)},k.isAfter=function(q,Q){return Z(q)<this.startOf(Q)},k.isBefore=function(q,Q){return this.endOf(Q)<Z(q)},k.$g=function(q,Q,fe){return te.u(q)?this[Q]:this.set(fe,q)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(q,Q){var fe=this,ue=!!te.u(Q)||Q,ee=te.p(q),K=function(X,se){var ve=te.w(fe.$u?Date.UTC(fe.$y,se,X):new Date(fe.$y,se,X),fe);return ue?ve:ve.endOf(u)},y=function(X,se){return te.w(fe.toDate()[X].apply(fe.toDate("s"),(ue?[0,0,0,0]:[23,59,59,999]).slice(se)),fe)},T=this.$W,D=this.$M,O=this.$D,L="set"+(this.$u?"UTC":"");switch(ee){case f:return ue?K(1,0):K(31,11);case c:return ue?K(1,D):K(0,D+1);case d:var M=this.$locale().weekStart||0,V=(T<M?T+7:T)-M;return K(ue?O-V:O+(6-V),D);case u:case p:return y(L+"Hours",0);case l:return y(L+"Minutes",1);case s:return y(L+"Seconds",2);case o:return y(L+"Milliseconds",3);default:return this.clone()}},k.endOf=function(q){return this.startOf(q,!1)},k.$set=function(q,Q){var fe,ue=te.p(q),ee="set"+(this.$u?"UTC":""),K=(fe={},fe[u]=ee+"Date",fe[p]=ee+"Date",fe[c]=ee+"Month",fe[f]=ee+"FullYear",fe[l]=ee+"Hours",fe[s]=ee+"Minutes",fe[o]=ee+"Seconds",fe[a]=ee+"Milliseconds",fe)[ue],y=ue===u?this.$D+(Q-this.$W):Q;if(ue===c||ue===f){var T=this.clone().set(p,1);T.$d[K](y),T.init(),this.$d=T.set(p,Math.min(this.$D,T.daysInMonth())).$d}else K&&this.$d[K](y);return this.init(),this},k.set=function(q,Q){return this.clone().$set(q,Q)},k.get=function(q){return this[te.p(q)]()},k.add=function(q,Q){var fe,ue=this;q=Number(q);var ee=te.p(Q),K=function(D){var O=Z(ue);return te.w(O.date(O.date()+Math.round(D*q)),ue)};if(ee===c)return this.set(c,this.$M+q);if(ee===f)return this.set(f,this.$y+q);if(ee===u)return K(1);if(ee===d)return K(7);var y=(fe={},fe[s]=n,fe[l]=r,fe[o]=i,fe)[ee]||1,T=this.$d.getTime()+q*y;return te.w(T,this)},k.subtract=function(q,Q){return this.add(-1*q,Q)},k.format=function(q){var Q=this,fe=this.$locale();if(!this.isValid())return fe.invalidDate||v;var ue=q||"YYYY-MM-DDTHH:mm:ssZ",ee=te.z(this),K=this.$H,y=this.$m,T=this.$M,D=fe.weekdays,O=fe.months,L=fe.meridiem,M=function(se,ve,de,ge){return se&&(se[ve]||se(Q,ue))||de[ve].slice(0,ge)},V=function(se){return te.s(K%12||12,se,"0")},X=L||function(se,ve,de){var ge=se<12?"AM":"PM";return de?ge.toLowerCase():ge};return ue.replace(C,function(se,ve){return ve||function(de){switch(de){case"YY":return String(Q.$y).slice(-2);case"YYYY":return te.s(Q.$y,4,"0");case"M":return T+1;case"MM":return te.s(T+1,2,"0");case"MMM":return M(fe.monthsShort,T,O,3);case"MMMM":return M(O,T);case"D":return Q.$D;case"DD":return te.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return M(fe.weekdaysMin,Q.$W,D,2);case"ddd":return M(fe.weekdaysShort,Q.$W,D,3);case"dddd":return D[Q.$W];case"H":return String(K);case"HH":return te.s(K,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return X(K,y,!0);case"A":return X(K,y,!1);case"m":return String(y);case"mm":return te.s(y,2,"0");case"s":return String(Q.$s);case"ss":return te.s(Q.$s,2,"0");case"SSS":return te.s(Q.$ms,3,"0");case"Z":return ee}return null}(se)||ee.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(q,Q,fe){var ue,ee=this,K=te.p(Q),y=Z(q),T=(y.utcOffset()-this.utcOffset())*n,D=this-y,O=function(){return te.m(ee,y)};switch(K){case f:ue=O()/12;break;case c:ue=O();break;case h:ue=O()/3;break;case d:ue=(D-T)/6048e5;break;case u:ue=(D-T)/864e5;break;case l:ue=D/r;break;case s:ue=D/n;break;case o:ue=D/i;break;default:ue=D}return fe?ue:te.a(ue)},k.daysInMonth=function(){return this.endOf(c).$D},k.$locale=function(){return G[this.$L]},k.locale=function(q,Q){if(!q)return this.$L;var fe=this.clone(),ue=j(q,Q,!0);return ue&&(fe.$L=ue),fe},k.clone=function(){return te.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},I}(),Y=$.prototype;return Z.prototype=Y,[["$ms",a],["$s",o],["$m",s],["$H",l],["$W",u],["$M",c],["$y",f],["$D",p]].forEach(function(I){Y[I[1]]=function(k){return this.$g(k,I[0],I[1])}}),Z.extend=function(I,k){return I.$i||(I(k,$,Z),I.$i=!0),Z},Z.locale=j,Z.isDayjs=z,Z.unix=function(I){return Z(1e3*I)},Z.en=G[A],Z.Ls=G,Z.p={},Z})})(DI);var CF=DI.exports;const We=Wm(CF),yF=()=>E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[E.jsx("g",{clipPath:"url(#clip0_1321_39043)",children:E.jsx("path",{d:"M10.0013 4.99935V9.99935L13.3346 11.666M18.3346 9.99935C18.3346 14.6017 14.6037 18.3327 10.0013 18.3327C5.39893 18.3327 1.66797 14.6017 1.66797 9.99935C1.66797 5.39698 5.39893 1.66602 10.0013 1.66602C14.6037 1.66602 18.3346 5.39698 18.3346 9.99935Z",stroke:"#717680",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_1321_39043",children:E.jsx("rect",{width:"20",height:"20",fill:"white"})})})]});var OI={exports:{}};(function(e,t){(function(i,n){e.exports=n()})($t,function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(C){this[g]=+C}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),S=60*x[1]+(+x[2]||0);return S===0?0:x[0]==="+"?-S:S}(g)}],h=function(g){var C=l[g];return C&&(C.indexOf?C:C.s.concat(C.f))},f=function(g,C){var x,S=l.meridiem;if(S){for(var P=1;P<=24;P+=1)if(g.indexOf(S(P,0,C))>-1){x=P>12;break}}else x=g===(C?"pm":"PM");return x},p={A:[s,function(g){this.afternoon=f(g,!1)}],a:[s,function(g){this.afternoon=f(g,!0)}],Q:[r,function(g){this.month=3*(g-1)+1}],S:[r,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[s,function(g){var C=l.ordinal,x=g.match(/\d+/);if(this.day=x[0],C)for(var S=1;S<=31;S+=1)C(S).replace(/\[|\]/g,"")===g&&(this.day=S)}],w:[o,d("week")],ww:[a,d("week")],M:[o,d("month")],MM:[a,d("month")],MMM:[s,function(g){var C=h("months"),x=(h("monthsShort")||C.map(function(S){return S.slice(0,3)})).indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(g){var C=h("months").indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function v(g){var C,x;C=g,x=l&&l.formats;for(var S=(g=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Z,te,$){var Y=$&&$.toUpperCase();return te||x[$]||i[$]||x[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,k,q){return k||q.slice(1)})})).match(n),P=S.length,A=0;A<P;A+=1){var G=S[A],W=p[G],z=W&&W[0],j=W&&W[1];S[A]=j?{regex:z,parser:j}:G.replace(/^\[|\]$/g,"")}return function(Z){for(var te={},$=0,Y=0;$<P;$+=1){var I=S[$];if(typeof I=="string")Y+=I.length;else{var k=I.regex,q=I.parser,Q=Z.slice(Y),fe=k.exec(Q)[0];q.call(te,fe),Z=Z.replace(fe,"")}}return function(ue){var ee=ue.afternoon;if(ee!==void 0){var K=ue.hours;ee?K<12&&(ue.hours+=12):K===12&&(ue.hours=0),delete ue.afternoon}}(te),te}}return function(g,C,x){x.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var S=C.prototype,P=S.parse;S.parse=function(A){var G=A.date,W=A.utc,z=A.args;this.$u=W;var j=z[1];if(typeof j=="string"){var Z=z[2]===!0,te=z[3]===!0,$=Z||te,Y=z[2];te&&(Y=z[2]),l=this.$locale(),!Z&&Y&&(l=x.Ls[Y]),this.$d=function(Q,fe,ue,ee){try{if(["x","X"].indexOf(fe)>-1)return new Date((fe==="X"?1e3:1)*Q);var K=v(fe)(Q),y=K.year,T=K.month,D=K.day,O=K.hours,L=K.minutes,M=K.seconds,V=K.milliseconds,X=K.zone,se=K.week,ve=new Date,de=D||(y||T?1:ve.getDate()),ge=y||ve.getFullYear(),b=0;y&&!T||(b=T>0?T-1:ve.getMonth());var ce,ne=O||0,N=L||0,F=M||0,J=V||0;return X?new Date(Date.UTC(ge,b,de,ne,N,F,J+60*X.offset*1e3)):ue?new Date(Date.UTC(ge,b,de,ne,N,F,J)):(ce=new Date(ge,b,de,ne,N,F,J),se&&(ce=ee(ce).week(se).toDate()),ce)}catch{return new Date("")}}(G,j,W,x),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),$&&G!=this.format(j)&&(this.$d=new Date("")),l={}}else if(j instanceof Array)for(var I=j.length,k=1;k<=I;k+=1){z[1]=j[k-1];var q=x.apply(this,z);if(q.isValid()){this.$d=q.$d,this.$L=q.$L,this.init();break}k===I&&(this.$d=new Date(""))}else P.call(this,A)}}})})(OI);var xF=OI.exports;const Um=Wm(xF);We.extend(Um);const RI=({label:e,required:t,placeholder:i,format:n="HH:mm",defaultHour:r,defaultMinute:a,defaultValue:o,size:s="md",msg:l,onTimeChange:u,onFocus:d,onBlur:c,timepickerStyle:h,dropdownListStyle:f,hoursListStyle:p,minutesListStyle:v,timepickerHelperTextStyle:g,timepickerLabelStyle:C,requiredStyle:x,fixedDropdown:S=!0,theme:P})=>{const A=ir(),[G,W]=le.useState(!1);le.useRef(!1);const[z,j]=le.useState(""),Z=le.useRef(null),te=le.useRef(null),$=le.useRef(null),Y=le.useRef(null),I=le.useCallback(()=>Array.from({length:60},(D,O)=>O<10?`0${O}`:`${O}`),[]),k=le.useCallback(()=>Array.from({length:23},(D,O)=>O<9?`0${O+1}`:`${O+1}`),[]),q=(T,D,O)=>{T.stopPropagation(),T.target.scrollIntoView({behavior:"smooth",block:"start"}),O==="hour"&&(te.current=D,Z.current||(Z.current="00")),O==="minute"&&(Z.current=D,te.current||(te.current="00"));const L=We().hour(parseInt(te.current??"0",10)).minute(parseInt(Z.current??"0",10)).format(n??"HH:mm");j(L),u&&typeof u=="function"&&u(L)},Q=T=>{T.stopPropagation(),te.current=null,Z.current=null,j(""),u&&typeof u=="function"&&u("")},fe=T=>{T.composedPath().includes($.current)||W(!1)},ue=T=>{S&&T.composedPath().includes($.current)||W(!1)},ee=()=>{d&&typeof d=="function"&&d()},K=()=>{const T=$.current,D=Y.current;if(!D||!T)return;const O=T.getBoundingClientRect(),L=window.innerHeight;S?(D.style.position="fixed",D.style.left=`${O.left+window.pageXOffset}px`,O.bottom+D.offsetHeight>L?(D.style.top=`${window.scrollY+O.top-D.offsetHeight-8}px`,D.style.bottom="unset"):(D.style.top=`${window.scrollY+O.bottom}px`,D.style.bottom="unset")):O.bottom>L?(D.style.top="unset",D.style.bottom="calc(100% + 8px)"):(D.style.bottom="unset",D.style.top="calc(100% + 8px)")},y=le.useRef(!0);return le.useEffect(()=>{if(o){const T=We(o,[n],!0);te.current=T.format("HH"),Z.current=T.format("mm"),j(T.format(n))}else if(r){const T=We().hour(parseInt(r,10)).minute(parseInt(a??"0",10)).format(n??"HH:mm");te.current=r,Z.current=a??"00",j(T)}},[]),le.useEffect(()=>{if(y.current){y.current=!1;return}G||c&&typeof c=="function"&&c()},[G]),le.useEffect(()=>{K()},[$,G]),le.useEffect(()=>(document.addEventListener("click",fe),document.addEventListener("wheel",ue),()=>{document.removeEventListener("click",fe),document.removeEventListener("wheel",ue)}),[]),E.jsxs("div",{className:`${P==="dark"?ji.dark:""} ${A==="namespaceHr"?ji.namespaceHr:""} ${ji.timepickerWrapper}`,children:[e&&E.jsxs("label",{className:ji.timepickerLabel,style:C??{},children:[e," ",E.jsx("span",{className:ji.required,style:x??{},children:t&&"*"})]}),E.jsxs("div",{ref:$,onFocus:ee,className:`${ji.timepicker} ${G?ji.focused:""} ${ji[s]}`,onClick:()=>W(T=>!T),style:h??{},children:[E.jsx("div",{style:{display:"grid",placeItems:"center"},children:E.jsx(yF,{})}),E.jsx("input",{type:"text",readOnly:!0,placeholder:i??"",value:z}),z?E.jsx("div",{onClick:T=>Q(T),style:{display:"grid",placeItems:"center"},children:E.jsx(ku,{})}):E.jsx("div",{style:{display:"grid",placeItems:"center",transform:G?"rotate(180deg)":"",transition:"transform 0.2s ease-in-out",cursor:"pointer",marginLeft:"10px"},children:E.jsx(Ru,{})}),G&&E.jsxs("div",{ref:Y,className:ji.dropdownList,style:f??{},children:[E.jsx("ul",{className:ji.hours,children:k().map(T=>E.jsx("li",{style:p??{},className:`${T===te.current?ji.selected:""}`,onClick:D=>q(D,T,"hour"),children:T},T))}),E.jsx("ul",{className:ji.minutes,children:I().map(T=>E.jsx("li",{style:v??{},className:`${T===Z.current?ji.selected:""}`,onClick:D=>q(D,T,"minute"),children:T},T))})]})]}),l&&(l==null?void 0:l.visible)&&E.jsx("div",{style:g??{},className:`${ji.timepickerHelperText} ${l!=null&&l.error?ji.error:""}`,children:E.jsx("p",{style:(l==null?void 0:l.style)??{},children:l.text})})]})},bF="DatePicker-module__datepickerContainer",SF="DatePicker-module__datepickerLabel",wF="DatePicker-module__required",EF="DatePicker-module__datepicker",IF="DatePicker-module__sm",TF="DatePicker-module__md",AF="DatePicker-module__focused",DF="DatePicker-module__error",OF="DatePicker-module__disabled",RF="DatePicker-module__datepickerHelperText",kF="DatePicker-module__namespaceHr",BF="DatePicker-module__dark",Un={datepickerContainer:bF,datepickerLabel:SF,required:wF,datepicker:EF,sm:IF,md:TF,focused:AF,error:DF,disabled:OF,datepickerHelperText:RF,namespaceHr:kF,dark:BF},Zo=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:E.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"#A4A7AE",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})}),Jo=({style:e})=>E.jsx("svg",{style:e??{},xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:E.jsx("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"#A4A7AE",strokeWidth:"1.67",strokeLinecap:"round",strokeLinejoin:"round"})}),PF="Calendar-module__datePicker",LF="Calendar-module__dualCalendar",FF="Calendar-module__dualCalendarWithQuick",MF="Calendar-module__border",VF="Calendar-module__calendarWrapper",NF="Calendar-module__quickPick",$F="Calendar-module__datePickerHeader",HF="Calendar-module__div",WF="Calendar-module__left",zF="Calendar-module__right",GF="Calendar-module__singleIcon",UF="Calendar-module__doubleIcon",KF="Calendar-module__day",jF="Calendar-module__today",qF="Calendar-module__inRange",YF="Calendar-module__selected",XF="Calendar-module__startDate",ZF="Calendar-module__endDate",JF="Calendar-module__disabled",QF="Calendar-module__otherMonth",eM="Calendar-module__namespaceHr",tM="Calendar-module__dark",ct={datePicker:PF,dualCalendar:LF,dualCalendarWithQuick:FF,border:MF,calendarWrapper:VF,quickPick:NF,datePickerHeader:$F,div:HF,left:WF,right:zF,singleIcon:GF,doubleIcon:UF,day:KF,today:jF,inRange:qF,selected:YF,startDate:XF,endDate:ZF,disabled:JF,otherMonth:QF,namespaceHr:eM,dark:tM};We.extend(Um);const iM=({valueFormat:e,quickPick:t,onChange:i,CurrentMonth:n,setCurrentMonth:r,SelectedDate:a,namespace:o,customYears:s,setSelectedDate:l,IsFocused:u,setIsFocused:d,mode:c,RangeSelection:h,setRangeSelection:f,type:p,disabledDatesRange:v,disabledDatesTill:g,disabledDatesFrom:C,CalendarRef:x,defaultValue:S,selectedStyle:P,endDateStyle:A,startDateStyle:G,inRangeStyle:W,otherMonthStyle:z,todayStyle:j,weekDayStyle:Z,quickPickStyle:te,monthStyle:$,theme:Y})=>{const I=["Mo","Tu","We","Th","Fr","Sa","Su"],k=le.useRef([]),q=L=>{if(s!=null&&s.length&&!s.includes(L.year().toString()))return[];const M=(L.startOf("month").day()+6)%7,V=L.endOf("month").date(),X=L.subtract(1,"month").endOf("month").date(),se=[];let ve=[],de=1;for(let b=0;b<M;b++)ve.push({date:L.subtract(1,"month").date(X-M+b+1),currentMonth:!1});for(;de<=V;)ve.push({date:L.date(de++),currentMonth:!0}),ve.length===7&&(se.push(ve),ve=[]);let ge=1;for(;se.length<5;)ve.length===7&&(se.push(ve),ve=[]),ve.push({date:L.add(1,"month").date(ge++),currentMonth:!1});if(ve.length){for(;ve.length<7;)ve.push({date:L.add(1,"month").date(ge++),currentMonth:!1});se.push(ve)}return se},Q=q(n),fe=p==="dual"?q(n.add(1,"month")):null,ue=()=>{let L=[];return t&&Array.isArray(t)&&t.length>0&&t.forEach(M=>{switch(M){case"today":k.current.push({name:"Today",key:"Today"});break;case"yesterday":k.current.push({name:"Yesterday",key:"Yesterday"});break;case"thisweek":k.current.push({name:"This week",key:"Thisweek"});break;case"lastweek":k.current.push({name:"Last week",key:"Lastweek"});break;case"thismonth":k.current.push({name:"This month",key:"Thismonth"});break;case"lastmonth":k.current.push({name:"Last month",key:"Lastmonth"});break;case"thisyear":k.current.push({name:"This year",key:"Thisyear"});break;case"lastyear":k.current.push({name:"Last year",key:"Lastyear"});break;case"alltime":k.current.push({name:"All time",key:"Alltime"});break}}),k.current=TI(k.current,"key"),L=k.current,L},ee=L=>{let M={start:"",end:""};switch(l(null),L.key.toLowerCase()){case"today":f({start:We(),end:We()}),M.start=We();break;case"yesterday":l(We().subtract(1,"day")),f({start:We().subtract(1,"day"),end:We().subtract(1,"day")}),M.start=We().subtract(1,"day");break;case"thisweek":f({start:We().startOf("week"),end:We().endOf("week")}),M.start=We().startOf("week"),M.end=We().endOf("week");break;case"lastweek":f({start:We().subtract(1,"week").startOf("week"),end:We().subtract(1,"week").endOf("week")}),M.start=We().subtract(1,"week").startOf("week"),M.end=We().subtract(1,"week").endOf("week");break;case"thismonth":f({start:We().startOf("month"),end:We().endOf("month")}),M.start=We().startOf("month"),M.end=We().endOf("month");break;case"lastmonth":f({start:We().subtract(1,"month").startOf("month"),end:We().subtract(1,"month").endOf("month")}),M.start=We().subtract(1,"month").startOf("month"),M.end=We().subtract(1,"month").endOf("month");break;case"thisyear":f({start:We().startOf("year"),end:We().endOf("year")}),M.start=We().startOf("year"),M.end=We().endOf("year");break;case"lastyear":f({start:We().subtract(1,"year").startOf("year"),end:We().subtract(1,"year").endOf("year")}),M.start=We().subtract(1,"year").startOf("year"),M.end=We().subtract(1,"year").endOf("year");break;case"alltime":f({start:"",end:""}),M.start="",M.end="";break;default:console.warn("Unsupported quick pick option:",L);break}if(i&&typeof i=="function"){const V={start:M.start?M.start:"",end:M.end?M.end:""};d(!1),i(V.end===""?V.start:V,V.end==="")}return L},K=(L,M,V=!1)=>{M||r(L.startOf("month")),c==="range"?f(X=>!X.start||X.start&&X.end?(i&&typeof i=="function"&&i({start:L??"",end:""}),{start:L??"",end:""}):X.start&&!X.end?L.isBefore(X.start,"day")?(i&&typeof i=="function"&&i({start:L??"",end:(X==null?void 0:X.start)??""}),{start:L??"",end:(X==null?void 0:X.start)??""}):(i({...X,end:L??""}),{...X,end:L??""}):X):(f({start:null,end:null}),l(L),V||(d(!1),i&&typeof i=="function"&&i(L.format(e??e))))},y=()=>{r(n.add(1,"month"))},T=()=>{r(n.subtract(1,"month"))},D=()=>{r(n.add(1,"year"))},O=()=>{r(n.subtract(1,"year"))};return le.useEffect(()=>{S.state&&(Array.isArray(S.value)?f({start:We(S.value[0],e),end:We(S.value[1],e)}):K(We(S.value),!1,!0),S.state=!1)},[]),E.jsxs("div",{ref:x,className:`${Y==="dark"?ct.dark:""} ${o==="namespaceHr"?ct.namespaceHr:""} ${ct.datePicker} ${u?ct.focused:""} ${p==="dual"?t&&t.length?ct.dualCalendarWithQuick:ct.dualCalendar:""} `,onClick:L=>L.stopPropagation(),style:p==="dual"&&t&&t.length>0?{width:"848px"}:{},children:[p==="dual"&&t&&t.length>0&&E.jsx("div",{children:t&&t.length>0&&E.jsx("ul",{className:ct.quickPick,children:ue().map(L=>E.jsx("li",{style:te??{},onClick:()=>ee(L),children:L.name},L.key))})}),E.jsxs("div",{className:ct.div,children:[p==="dual"?E.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"},children:[E.jsxs("div",{style:{width:"50%",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"80px"},children:[E.jsxs("div",{className:ct.left,children:[(!s||s.length>1)&&(!s||n.year()>Math.min(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:O,children:[E.jsx(Zo,{}),E.jsx(Zo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}}),!s||s&&n.format("MMMM YYYY")!==`January ${Math.min(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:T,children:E.jsx(Zo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}})]}),E.jsx("span",{style:$??{},children:s&&s.length===1?n.format("MMMM"):n.format("MMMM YYYY")})]}),E.jsxs("div",{style:{width:"50%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"80px"},children:[E.jsx("span",{style:$??{},children:s&&s.length===1?n.add(1,"month").format("MMMM"):n.add(1,"month").format("MMMM YYYY")}),E.jsxs("div",{className:ct.right,children:[!s||s&&n.format("MMMM YYYY")!==`December ${Math.max(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:y,children:E.jsx(Jo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}}),(!s||s.length>1)&&(!s||n.year()<Math.max(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:D,children:[E.jsx(Jo,{}),E.jsx(Jo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}})]})]})]}):E.jsxs("div",{className:ct.datePickerHeader,children:[E.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[E.jsxs("div",{className:ct.left,children:[(!s||s.length>1)&&(!s||n.year()>Math.min(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:O,children:[E.jsx(Zo,{}),E.jsx(Zo,{})]}):E.jsx("div",{style:{width:"20px",height:"20px"}}),!s||s&&n.format("MMMM YYYY")!==`January ${Math.min(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:T,children:E.jsx(Zo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}})]}),E.jsx("span",{style:$??{},children:s&&s.length===1?n.format("MMMM"):n.format("MMMM YYYY")}),E.jsxs("div",{className:ct.right,children:[!s||s&&n.format("MMMM YYYY")!==`December ${Math.max(...s.map(Number))}`?E.jsx("div",{className:ct.singleIcon,onClick:y,children:E.jsx(Jo,{})}):E.jsx("div",{style:{width:"20px",height:"20px"}}),(!s||s.length>1)&&(!s||n.year()<Math.max(...s.map(Number)))?E.jsxs("div",{className:ct.doubleIcon,onClick:D,children:[E.jsx(Jo,{}),E.jsx(Jo,{})]}):E.jsx("div",{className:ct.doubleIcon})]})]}),p==="single"&&t&&t.length>0&&E.jsx("ul",{className:ct.quickPick,children:ue().slice(0,3).map(L=>E.jsx("li",{style:te??{},onClick:()=>ee(L),children:L.name},L.key))})]}),E.jsxs("div",{className:ct.calendarWrapper,children:[E.jsxs("table",{children:[E.jsx("thead",{children:E.jsx("tr",{children:I.map(L=>E.jsx("th",{style:Z??{},children:L},L))})}),E.jsx("tbody",{children:Q.map((L,M)=>E.jsx("tr",{children:L.map(({date:V,currentMonth:X},se)=>{const ve=h.start&&h.end&&V.isAfter(h.start,"day")&&V.isBefore(h.end,"day"),de=h.start&&V.isSame(h.start,"day"),ge=h.end&&V.isSame(h.end,"day"),b=c==="single"&&a&&V.isSame(a,"day"),ce=g&&V.isBefore(We(g),"day"),ne=C&&V.isAfter(We(C),"day");let N=!1;if((v==null?void 0:v.length)===2){const[J,re]=v.map(_e=>We(_e));N=V.isAfter(J.subtract(1,"day"))&&V.isBefore(re.add(1,"day"))}const F=ne||ce||N;return E.jsx("td",{style:{...X?{}:z,...V.isSame(We(),"day")?j:{},...ve?W:{},...de?G:{},...ge?A:{},...b?P:{}},className:`${ct.day}
49
49
  ${X?"":ct.otherMonth}
50
50
  ${X&&V.isSame(We(),"day")?ct.today:""}
51
51
  ${X&&ve?ct.inRange:""}
@@ -2732,7 +2732,7 @@ const oM = ({
2732
2732
  r(n.subtract(1, "year"));
2733
2733
  };
2734
2734
  return et(() => {
2735
- S.state && (Array.isArray(S.value) ? f({ start: We(S.value[0], e), end: We(S.value[1], e) }) : K(We(S.value, e), !1, !0), S.state = !1);
2735
+ S.state && (Array.isArray(S.value) ? f({ start: We(S.value[0], e), end: We(S.value[1], e) }) : K(We(S.value), !1, !0), S.state = !1);
2736
2736
  }, []), /* @__PURE__ */ E.jsxs(
2737
2737
  "div",
2738
2738
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react",
3
3
  "private": false,
4
- "version": "4.2.0",
4
+ "version": "4.2.1",
5
5
  "type": "module",
6
6
  "main": "dist/master-components-react.cjs.js",
7
7
  "module": "dist/master-components-react.es.js",