import{d as Nr,r as $,e as me,R as ne,f as on,g as ln,m as cn,_ as bt,h as Pr,P as L,k as Ir,l as un,q as zt,n as dn,o as wt,p as $t,t as At,v as fn,w as pn,x as vn,y as qr,z as hn,A as mn,D as dt,E as Wt,F as Ft,G as zr,H as gn,c as ce,b as oe,J as yn,a as lt,j as M,T as ae,K as Et,L as Sn,M as xt,N as de,Q as bn,S as wn,U as En,V as J,W as xn,X as Rn,Y as Dn,B as Ee,Z as $r,$ as Ar,u as Wr,a0 as Cn,a1 as Fr,a2 as ve,a3 as kn,a4 as Ht,a5 as _n,a6 as Mn,a7 as Tn,a8 as jn,a9 as On,aa as Nn,ab as Pn,ac as Hr,ad as In,ae as qn,af as Lt,ag as ft,ah as pt,ai as zn,aj as Bt,ak as Rt,al as Je,am as Gt,an as $n,ao as An,ap as Wn,aq as Ut,ar as Lr,as as Br,at as xe,au as re,av as Fn,aw as he,ax as Hn,ay as Ln,az as ee,aA as ge,aB as ye,aC as Bn,aD as Se,aE as Re,aF as De,aG as be,aH as le,aI as Gn,aJ as Me,aK as Un,aL as Gr,aM as Dt,aN as Kn,aO as Ur,aP as Zn,aQ as Jn,aR as Vn,aS as Yn,aT as Ct,aU as Xn,aV as Qn,aW as ea,aX as Kr,aY as ta,aZ as ra,a_ as na,a$ as aa,b0 as sa,b1 as oa,b2 as la,b3 as ia,b4 as ca,b5 as ua,b6 as Kt,b7 as da,b8 as fa,b9 as Zt,ba as pa,bb as va,bc as Oe,bd as Jt,be as ha,bf as ma,bg as ga,bh as ya,bi as vt,bj as Sa}from"./index-BSsexBJO.js";/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const ba=[["path",{d:"M12 9h.01",key:"svg-0"}],["path",{d:"M11 12h1v4h1",key:"svg-1"}],["path",{d:"M12 3c7.2 0 9 1.8 9 9c0 7.2 -1.8 9 -9 9c-7.2 0 -9 -1.8 -9 -9c0 -7.2 1.8 -9 9 -9",key:"svg-2"}]],wa=Nr("outline","info-square-rounded","InfoSquareRounded",ba);/**
 * @license @tabler/icons-react v3.36.1 - MIT
 *
 * This source code is licensed under the MIT license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ea=[["path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2",key:"svg-0"}],["path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4",key:"svg-1"}],["path",{d:"M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4",key:"svg-2"}]],xa=Nr("outline","printer","Printer",Ea);function Ra(t,e,a){var r=$.useRef(t!==void 0),n=$.useState(e),s=n[0],f=n[1],o=t!==void 0,l=r.current;return r.current=o,!o&&l&&s!==e&&f(e),[o?t:s,$.useCallback(function(d){for(var p=arguments.length,u=new Array(p>1?p-1:0),y=1;y<p;y++)u[y-1]=arguments[y];a&&a.apply(void 0,[d].concat(u)),f(d)},[a])]}function Zr(t){const e=$.useRef(null);return $.useEffect(()=>{e.current=t}),e.current}function Da(){const[,t]=$.useReducer(e=>!e,!1);return t}function Ca(t,e,a,r=!1){const n=me(a);$.useEffect(()=>{const s=typeof t=="function"?t():t;return s.addEventListener(e,n,r),()=>s.removeEventListener(e,n,r)},[t])}function ka(t,e,a=!1){const r=$.useCallback(()=>document,[]);return Ca(r,t,e,a)}var kt=ne.createContext(null),_a=function(){};function Jr(t){t===void 0&&(t={});var e=$.useContext(kt),a=on(),r=a[0],n=a[1],s=$.useRef(!1),f=t,o=f.flip,l=f.offset,d=f.rootCloseEvent,p=f.fixed,u=p===void 0?!1:p,y=f.popperConfig,k=y===void 0?{}:y,j=f.usePopper,_=j===void 0?!!e:j,g=(e==null?void 0:e.show)==null?!!t.show:e.show,w=(e==null?void 0:e.alignEnd)==null?t.alignEnd:e.alignEnd;g&&!s.current&&(s.current=!0);var D=function(x){e==null||e.toggle(!1,x)},T=e||{},m=T.drop,v=T.setMenu,b=T.menuElement,E=T.toggleElement,i=w?"bottom-end":"bottom-start";m==="up"?i=w?"top-end":"top-start":m==="right"?i=w?"right-end":"right-start":m==="left"&&(i=w?"left-end":"left-start");var S=ln(E,b,cn({placement:i,enabled:!!(_&&g),enableEvents:g,offset:l,flip:o,fixed:u,arrowElement:r,popperConfig:k})),h=bt({ref:v||_a,"aria-labelledby":E==null?void 0:E.id},S.attributes.popper,{style:S.styles.popper}),c={show:g,alignEnd:w,hasShown:s.current,toggle:e==null?void 0:e.toggle,popper:_?S:null,arrowProps:_?bt({ref:n},S.attributes.arrow,{style:S.styles.arrow}):{}};return Pr(b,D,{clickTrigger:d,disabled:!g}),[h,c]}var Ma={children:L.func.isRequired,show:L.bool,alignEnd:L.bool,flip:L.bool,usePopper:L.oneOf([!0,!1]),popperConfig:L.object,rootCloseEvent:L.string},Ta={usePopper:!0};function it(t){var e=t.children,a=Ir(t,["children"]),r=Jr(a),n=r[0],s=r[1];return ne.createElement(ne.Fragment,null,s.hasShown?e(n,s):null)}it.displayName="ReactOverlaysDropdownMenu";it.propTypes=Ma;it.defaultProps=Ta;var Vt=function(){};function Vr(){var t=$.useContext(kt)||{},e=t.show,a=e===void 0?!1:e,r=t.toggle,n=r===void 0?Vt:r,s=t.setToggle,f=$.useCallback(function(o){n(!a,o)},[a,n]);return[{ref:s||Vt,onClick:f,"aria-haspopup":!0,"aria-expanded":!!a},{show:a,toggle:n}]}var ja={children:L.func.isRequired};function _t(t){var e=t.children,a=Vr(),r=a[0],n=a[1];return ne.createElement(ne.Fragment,null,e(r,n))}_t.displayName="ReactOverlaysDropdownToggle";_t.propTypes=ja;var Oa={children:L.node,drop:L.oneOf(["up","left","right","down"]),focusFirstItemOnShow:L.oneOf([!1,!0,"keyboard"]),itemSelector:L.string,alignEnd:L.bool,show:L.bool,defaultShow:L.bool,onToggle:L.func};function Yt(){var t=Da(),e=$.useRef(null),a=$.useCallback(function(r){e.current=r,t()},[t]);return[e,a]}function Ve(t){var e=t.drop,a=t.alignEnd,r=t.defaultShow,n=t.show,s=t.onToggle,f=t.itemSelector,o=f===void 0?"* > *":f,l=t.focusFirstItemOnShow,d=t.children,p=Ra(n,r,s),u=p[0],y=p[1],k=Yt(),j=k[0],_=k[1],g=j.current,w=Yt(),D=w[0],T=w[1],m=D.current,v=Zr(u),b=$.useRef(null),E=$.useRef(!1),i=$.useCallback(function(x,R){y(x,R)},[y]),S=$.useMemo(function(){return{toggle:i,drop:e,show:u,alignEnd:a,menuElement:g,toggleElement:m,setMenu:_,setToggle:T}},[i,e,u,a,g,m,_,T]);g&&v&&!u&&(E.current=g.contains(document.activeElement));var h=me(function(){m&&m.focus&&m.focus()}),c=me(function(){var x=b.current,R=l;if(R==null&&(R=j.current&&un(j.current,"[role=menu]")?"keyboard":!1),!(R===!1||R==="keyboard"&&!/^key.+$/.test(x))){var O=zt(j.current,o)[0];O&&O.focus&&O.focus()}});$.useEffect(function(){u?c():E.current&&(E.current=!1,h())},[u,E,h,c]),$.useEffect(function(){b.current=null});var C=function(R,O){if(!j.current)return null;var N=zt(j.current,o),q=N.indexOf(R)+O;return q=Math.max(0,Math.min(q,N.length)),N[q]};return ka("keydown",function(x){var R,O,N=x.key,q=x.target,P=(R=j.current)==null?void 0:R.contains(q),A=(O=D.current)==null?void 0:O.contains(q),z=/input|textarea/i.test(q.tagName);if(!(z&&(N===" "||N!=="Escape"&&P))&&!(!P&&!A)&&!(!j.current&&N==="Tab"))switch(b.current=x.type,N){case"ArrowUp":{var H=C(q,-1);H&&H.focus&&H.focus(),x.preventDefault();return}case"ArrowDown":if(x.preventDefault(),!u)y(!0,x);else{var I=C(q,1);I&&I.focus&&I.focus()}return;case"Tab":dn(document,"keyup",function(W){var F;(W.key==="Tab"&&!W.target||!((F=j.current)!=null&&F.contains(W.target)))&&y(!1,x)},{once:!0});break;case"Escape":x.preventDefault(),x.stopPropagation(),y(!1,x);break}}),ne.createElement(kt.Provider,{value:S},d)}Ve.displayName="ReactOverlaysDropdown";Ve.propTypes=Oa;Ve.Menu=it;Ve.Toggle=_t;function Na(t){const e=$.useRef(t);return e.current=t,e}function Pa(t){const e=Na(t);$.useEffect(()=>()=>e.current(),[])}function Ia(t){return t&&t.tagName.toLowerCase()==="body"}function qa(t){var e=wt(t)?$t():$t(t),a=wt(t)||e.defaultView;return e.body.clientWidth<a.innerWidth}function za(t){var e=wt(t);return e||Ia(t)?qa(t):t.scrollHeight>t.clientHeight}var $a=["template","script","style"],Aa=function(e){var a=e.nodeType,r=e.tagName;return a===1&&$a.indexOf(r.toLowerCase())===-1},Yr=function(e,a,r){[].forEach.call(e.children,function(n){a.indexOf(n)===-1&&Aa(n)&&r(n)})};function ot(t,e){e&&(t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden"))}function Wa(t,e){var a=e.dialog,r=e.backdrop;Yr(t,[a,r],function(n){return ot(!0,n)})}function Fa(t,e){var a=e.dialog,r=e.backdrop;Yr(t,[a,r],function(n){return ot(!1,n)})}function Ha(t,e){var a=-1;return t.some(function(r,n){return e(r,n)?(a=n,!0):!1}),a}var Mt=(function(){function t(a){var r=a===void 0?{}:a,n=r.hideSiblingNodes,s=n===void 0?!0:n,f=r.handleContainerOverflow,o=f===void 0?!0:f;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=s,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=vn()}var e=t.prototype;return e.isContainerOverflowing=function(r){var n=this.data[this.containerIndexFromModal(r)];return n&&n.overflowing},e.containerIndexFromModal=function(r){return Ha(this.data,function(n){return n.modals.indexOf(r)!==-1})},e.setContainerStyle=function(r,n){var s={overflow:"hidden"};r.style={overflow:n.style.overflow,paddingRight:n.style.paddingRight},r.overflowing&&(s.paddingRight=parseInt(At(n,"paddingRight")||"0",10)+this.scrollbarSize+"px"),At(n,s)},e.removeContainerStyle=function(r,n){Object.assign(n.style,r.style)},e.add=function(r,n,s){var f=this.modals.indexOf(r),o=this.containers.indexOf(n);if(f!==-1)return f;if(f=this.modals.length,this.modals.push(r),this.hideSiblingNodes&&Wa(n,r),o!==-1)return this.data[o].modals.push(r),f;var l={modals:[r],classes:s?s.split(/\s+/):[],overflowing:za(n)};return this.handleContainerOverflow&&this.setContainerStyle(l,n),l.classes.forEach(fn.bind(null,n)),this.containers.push(n),this.data.push(l),f},e.remove=function(r){var n=this.modals.indexOf(r);if(n!==-1){var s=this.containerIndexFromModal(r),f=this.data[s],o=this.containers[s];if(f.modals.splice(f.modals.indexOf(r),1),this.modals.splice(n,1),f.modals.length===0)f.classes.forEach(pn.bind(null,o)),this.handleContainerOverflow&&this.removeContainerStyle(f,o),this.hideSiblingNodes&&Fa(o,r),this.containers.splice(s,1),this.data.splice(s,1);else if(this.hideSiblingNodes){var l=f.modals[f.modals.length-1],d=l.backdrop,p=l.dialog;ot(!1,p),ot(!1,d)}}},e.isTopModal=function(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r},t})(),ht;function La(){return ht||(ht=new Mt),ht}function Ba(t){var e=t||La(),a=$.useRef({dialog:null,backdrop:null});return Object.assign(a.current,{add:function(n,s){return e.add(a.current,n,s)},remove:function(){return e.remove(a.current)},isTopModal:function(){return e.isTopModal(a.current)},setDialogRef:$.useCallback(function(r){a.current.dialog=r},[]),setBackdropRef:$.useCallback(function(r){a.current.backdrop=r},[])})}var Tt=$.forwardRef(function(t,e){var a=t.show,r=a===void 0?!1:a,n=t.role,s=n===void 0?"dialog":n,f=t.className,o=t.style,l=t.children,d=t.backdrop,p=d===void 0?!0:d,u=t.keyboard,y=u===void 0?!0:u,k=t.onBackdropClick,j=t.onEscapeKeyDown,_=t.transition,g=t.backdropTransition,w=t.autoFocus,D=w===void 0?!0:w,T=t.enforceFocus,m=T===void 0?!0:T,v=t.restoreFocus,b=v===void 0?!0:v,E=t.restoreFocusOptions,i=t.renderDialog,S=t.renderBackdrop,h=S===void 0?function(Y){return ne.createElement("div",Y)}:S,c=t.manager,C=t.container,x=t.containerClassName,R=t.onShow,O=t.onHide,N=O===void 0?function(){}:O,q=t.onExit,P=t.onExited,A=t.onExiting,z=t.onEnter,H=t.onEntering,I=t.onEntered,W=Ir(t,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),F=qr(C),B=Ba(c),Z=hn(),K=Zr(r),G=$.useState(!r),V=G[0],X=G[1],te=$.useRef(null);$.useImperativeHandle(e,function(){return B},[B]),mn&&!K&&r&&(te.current=dt()),!_&&!r&&!V?X(!0):r&&V&&X(!1);var Q=me(function(){if(B.add(F,x),we.current=Wt(document,"keydown",ue),pe.current=Wt(document,"focus",function(){return setTimeout(U)},!0),R&&R(),D){var Y=dt(document);B.dialog&&Y&&!Ft(B.dialog,Y)&&(te.current=Y,B.dialog.focus())}}),ie=me(function(){if(B.remove(),we.current==null||we.current(),pe.current==null||pe.current(),b){var Y;(Y=te.current)==null||Y.focus==null||Y.focus(E),te.current=null}});$.useEffect(function(){!r||!F||Q()},[r,F,Q]),$.useEffect(function(){V&&ie()},[V,ie]),Pa(function(){ie()});var U=me(function(){if(!(!m||!Z()||!B.isTopModal())){var Y=dt();B.dialog&&Y&&!Ft(B.dialog,Y)&&B.dialog.focus()}}),se=me(function(Y){Y.target===Y.currentTarget&&(k==null||k(Y),p===!0&&N())}),ue=me(function(Y){y&&Y.keyCode===27&&B.isTopModal()&&(j==null||j(Y),Y.defaultPrevented||N())}),pe=$.useRef(),we=$.useRef(),Te=function(){X(!0);for(var It=arguments.length,qt=new Array(It),Qe=0;Qe<It;Qe++)qt[Qe]=arguments[Qe];P==null||P.apply(void 0,qt)},je=_;if(!F||!(r||je&&!V))return null;var Xe=bt({role:s,ref:B.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},W,{style:o,className:f,tabIndex:-1}),Ce=i?i(Xe):ne.createElement("div",Xe,ne.cloneElement(l,{role:"document"}));je&&(Ce=ne.createElement(je,{appear:!0,unmountOnExit:!0,in:!!r,onExit:q,onExiting:A,onExited:Te,onEnter:z,onEntering:H,onEntered:I},Ce));var fe=null;if(p){var Pt=g;fe=h({ref:B.setBackdropRef,onClick:se}),Pt&&(fe=ne.createElement(Pt,{appear:!0,in:!!r},fe))}return ne.createElement(ne.Fragment,null,zr.createPortal(ne.createElement(ne.Fragment,null,fe,Ce),F))}),Ga={show:L.bool,container:L.any,onShow:L.func,onHide:L.func,backdrop:L.oneOfType([L.bool,L.oneOf(["static"])]),renderDialog:L.func,renderBackdrop:L.func,onEscapeKeyDown:L.func,onBackdropClick:L.func,containerClassName:L.string,keyboard:L.bool,transition:L.elementType,backdropTransition:L.elementType,autoFocus:L.bool,enforceFocus:L.bool,restoreFocus:L.bool,restoreFocusOptions:L.shape({preventScroll:L.bool}),onEnter:L.func,onEntering:L.func,onEntered:L.func,onExit:L.func,onExiting:L.func,onExited:L.func,manager:L.instanceOf(Mt)};Tt.displayName="Modal";Tt.propTypes=Ga;const Ua=Object.assign(Tt,{Manager:Mt});var Ka={container:L.any,onRendered:L.func},jt=function(e){var a=e.container,r=e.children,n=e.onRendered,s=qr(a,n);return s?ne.createElement(ne.Fragment,null,zr.createPortal(r,s)):null};jt.displayName="Portal";jt.propTypes=Ka;const Za=Object.freeze(Object.defineProperty({__proto__:null,Dropdown:Ve,Modal:Ua,Overlay:gn,Portal:jt,useDropdownMenu:Jr,useDropdownToggle:Vr,useRootClose:Pr},Symbol.toStringTag,{value:"Module"})),Ja=()=>{const t=ce.c(7),e=oe(yn),a=lt();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=M.jsx(ae,{className:"section-title",children:Et("settings.generalSettings.appearanceSection.label")}),t[0]=r):r=t[0];let n;t[1]!==a?(n=o=>a(Sn(o.currentTarget.checked)),t[1]=a,t[2]=n):n=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=Et("settings.generalSettings.appearanceSection.description"),t[3]=s):s=t[3];let f;return t[4]!==e||t[5]!==n?(f=M.jsxs(M.Fragment,{children:[r,M.jsx(xt,{mt:10,fz:12,checked:e,onChange:n,label:s})]}),t[4]=e,t[5]=n,t[6]=f):f=t[6],f},Va=t=>{const e=ce.c(64),{open:a,isEdit:r,onClose:n,selectedCategory:s,onSubmit:f}=t,o=r===void 0?!1:r,{t:l}=de();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={Name:"",Color:bn(Dn)},e[0]=d):d=e[0];let p;e[1]!==l?(p=wn({min:2,max:50},l("validations.categoryName")),e[1]=l,e[2]=p):p=e[2];let u;e[3]!==p?(u={initialValues:d,validate:{Name:p},validateInputOnChange:!0},e[3]=p,e[4]=u):u=e[4];const y=En(u);let k;e[5]!==y?(k=P=>{y.setFieldValue("Color",P)},e[5]=y,e[6]=k):k=e[6];const j=k;let _;e[7]!==y||e[8]!==o||e[9]!==s?(_=()=>{o&&s&&(y.setFieldValue("Name",s.Name),y.setFieldValue("Color",s.Color))},e[7]=y,e[8]=o,e[9]=s,e[10]=_):_=e[10];let g;e[11]!==o||e[12]!==s?(g=[s,o],e[11]=o,e[12]=s,e[13]=g):g=e[13],$.useEffect(_,g);let w;e[14]!==o||e[15]!==n||e[16]!==f||e[17]!==(s==null?void 0:s.Id)?(w=P=>{f(o?{...P,Id:(s==null?void 0:s.Id)||0}:P),n()},e[14]=o,e[15]=n,e[16]=f,e[17]=s==null?void 0:s.Id,e[18]=w):w=e[18];const D=w;let T;e[19]!==o||e[20]!==l?(T=l(o?"settings.generalSettings.categorySection.categoryModal.editCategory":"settings.generalSettings.categorySection.action"),e[19]=o,e[20]=l,e[21]=T):T=e[21];let m;if(e[22]!==y||e[23]!==D){let P;e[25]!==D?(P=A=>D(A),e[25]=D,e[26]=P):P=e[26],m=y.onSubmit(P),e[22]=y,e[23]=D,e[24]=m}else m=e[24];let v;e[27]!==l?(v=l("settings.generalSettings.categorySection.categoryModal.categoryName"),e[27]=l,e[28]=v):v=e[28];let b;e[29]!==y?(b=y.getInputProps("Name"),e[29]=y,e[30]=b):b=e[30];let E;e[31]!==v||e[32]!==b?(E=M.jsx(J,{mt:13,mb:24,children:M.jsx(xn,{maxLength:51,placeholder:v,maw:500,"data-autofocus":!0,...b})}),e[31]=v,e[32]=b,e[33]=E):E=e[33];let i;e[34]!==y?(i=y.getInputProps("Color"),e[34]=y,e[35]=i):i=e[35];let S;e[36]!==j||e[37]!==i.value?(S=M.jsx(J,{children:M.jsx(J,{w:220,children:M.jsx(Rn,{color:i.value,handleChange:j,disabled:!1})})}),e[36]=j,e[37]=i.value,e[38]=S):S=e[38];let h;e[39]!==l?(h=l("buttons.cancel"),e[39]=l,e[40]=h):h=e[40];let c;e[41]!==n||e[42]!==h?(c=M.jsx(Ee,{variant:"outline",onClick:n,children:h}),e[41]=n,e[42]=h,e[43]=c):c=e[43];let C;e[44]!==o||e[45]!==l?(C=l(o?"buttons.save":"buttons.create"),e[44]=o,e[45]=l,e[46]=C):C=e[46];let x;e[47]!==C?(x=M.jsx(Ee,{type:"submit",children:C}),e[47]=C,e[48]=x):x=e[48];let R;e[49]!==c||e[50]!==x?(R=M.jsxs($r,{gap:10,mt:24,justify:"flex-end",children:[c,x]}),e[49]=c,e[50]=x,e[51]=R):R=e[51];let O;e[52]!==E||e[53]!==S||e[54]!==R?(O=M.jsxs(J,{children:[E,S,R]}),e[52]=E,e[53]=S,e[54]=R,e[55]=O):O=e[55];let N;e[56]!==O||e[57]!==m?(N=M.jsx("form",{onSubmit:m,children:O}),e[56]=O,e[57]=m,e[58]=N):N=e[58];let q;return e[59]!==n||e[60]!==a||e[61]!==N||e[62]!==T?(q=M.jsx(Ar,{keepMounted:!1,opened:a,onClose:n,title:T,children:N}),e[59]=n,e[60]=a,e[61]=N,e[62]=T,e[63]=q):q=e[63],q},Ya=t=>{const e=ce.c(29),{Color:a,Name:r,Id:n,handleEditCategory:s,handleDeleteCategory:f}=t,{isMobile:o}=Wr();let l;e[0]!==a?(l=M.jsx(Cn,{style:{color:a},size:20}),e[0]=a,e[1]=l):l=e[1];const d=r.length<40,p=o?220:400;let u;e[2]!==r||e[3]!==p?(u=M.jsx(ae,{maw:p,truncate:!0,className:"categoryText",ml:5,children:r}),e[2]=r,e[3]=p,e[4]=u):u=e[4];let y;e[5]!==r||e[6]!==d||e[7]!==u?(y=M.jsx(Fr,{label:r,disabled:d,children:u}),e[5]=r,e[6]=d,e[7]=u,e[8]=y):y=e[8];let k;e[9]!==l||e[10]!==y?(k=M.jsxs(ve,{align:"center",justify:"flex-start",children:[l,y]}),e[9]=l,e[10]=y,e[11]=k):k=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=M.jsx(kn,{size:"22"}),e[12]=j):j=e[12];let _;e[13]!==s?(_=M.jsx(Ht,{onClick:s,variant:"subtle",children:j}),e[13]=s,e[14]=_):_=e[14];let g;e[15]!==a||e[16]!==n||e[17]!==r||e[18]!==f?(g=()=>f({Id:n,Name:r,Color:a}),e[15]=a,e[16]=n,e[17]=r,e[18]=f,e[19]=g):g=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=M.jsx(_n,{size:"22"}),e[20]=w):w=e[20];let D;e[21]!==g?(D=M.jsx(Ht,{onClick:g,variant:"subtle",children:w}),e[21]=g,e[22]=D):D=e[22];let T;e[23]!==D||e[24]!==_?(T=M.jsxs(ve,{align:"center",gap:5,children:[_,D]}),e[23]=D,e[24]=_,e[25]=T):T=e[25];let m;return e[26]!==T||e[27]!==k?(m=M.jsxs(J,{my:5,className:"categoryItem",children:[k,T]}),e[26]=T,e[27]=k,e[28]=m):m=e[28],m},Xa=()=>{const t=ce.c(38),[e,a]=$.useState(!1),[r,n]=$.useState(!1),[s,f]=$.useState(!1),o=oe(Mn),l=lt(),{t:d}=de();let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={Color:"",Name:"",Id:0,Order:0,IconId:null},t[0]=p):p=t[0];const[u,y]=$.useState(p);let k;t[1]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{a(!0)},t[1]=k):k=t[1];const j=k;let _;t[2]===Symbol.for("react.memo_cache_sentinel")?(_=z=>{f(!0),a(!0),y(z)},t[2]=_):_=t[2];const g=_;let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w=z=>{n(!0),y(z)},t[3]=w):w=t[3];const D=w;let T;t[4]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{a(!1),f(!1)},t[4]=T):T=t[4];const m=T;let v;t[5]!==l||t[6]!==s?(v=z=>{l(Tn({data:{...z,Order:0,IconId:null},isEditMode:s}))},t[5]=l,t[6]=s,t[7]=v):v=t[7];const b=v;let E;t[8]!==l||t[9]!==u.Id?(E=()=>{l(jn(u.Id)),n(!1)},t[8]=l,t[9]=u.Id,t[10]=E):E=t[10];const i=E;let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{n(!1)},t[11]=S):S=t[11];const h=S;let c;t[12]!==d?(c=d("settings.generalSettings.categorySection.label"),t[12]=d,t[13]=c):c=t[13];let C;t[14]!==c?(C=M.jsx(ae,{className:"section-title",children:c}),t[14]=c,t[15]=C):C=t[15];let x;t[16]!==o||t[17]!==d?(x=M.jsx(J,{my:0,className:"categories",maw:500,children:o.length===0?M.jsx(ae,{pt:8,pb:8,className:"category-section-empty",c:"dimmed",size:"sm",children:d("settings.generalSettings.categorySection.emptyState")}):M.jsx(M.Fragment,{children:o.map((z,H)=>M.jsx(Ya,{...z,handleEditCategory:()=>g(z),handleDeleteCategory:D},H))})}),t[16]=o,t[17]=d,t[18]=x):x=t[18];let R;t[19]===Symbol.for("react.memo_cache_sentinel")?(R=M.jsx(On,{size:"1em"}),t[19]=R):R=t[19];let O;t[20]!==d?(O=d("settings.generalSettings.categorySection.action"),t[20]=d,t[21]=O):O=t[21];let N;t[22]!==O?(N=M.jsx(Ee,{maw:200,mb:20,leftSection:R,variant:"default",onClick:j,children:O}),t[22]=O,t[23]=N):N=t[23];let q;t[24]!==s||t[25]!==e||t[26]!==u||t[27]!==b?(q=e&&M.jsx(Va,{isEdit:s,selectedCategory:u,open:e,onClose:m,onSubmit:b}),t[24]=s,t[25]=e,t[26]=u,t[27]=b,t[28]=q):q=t[28];let P;t[29]!==i||t[30]!==r?(P=M.jsx(Nn,{opened:r,handleConfirm:i,handleCancel:h,data:Pn}),t[29]=i,t[30]=r,t[31]=P):P=t[31];let A;return t[32]!==x||t[33]!==N||t[34]!==q||t[35]!==P||t[36]!==C?(A=M.jsxs(M.Fragment,{children:[C,x,N,q,P]}),t[32]=x,t[33]=N,t[34]=q,t[35]=P,t[36]=C,t[37]=A):A=t[37],A},Qa=()=>{const t=ce.c(71),e=lt(),a=oe(Hr),{t:r}=de(),{Timezone:n}=a,[s,f]=$.useState((n==null?void 0:n.SecondEnabled)??!1),o=oe(In),l=oe(qn),[d,p]=$.useState((n==null?void 0:n.Id)??void 0),[u,y]=$.useState((n==null?void 0:n.SecondId)??void 0);let k;t[0]!==e||t[1]!==u||t[2]!==d||t[3]!==a?(k=async G=>{f(G.target.checked),u&&d&&(await e(ft({data:{Id:d,SecondEnabled:G.target.checked,SecondId:u}})),e(pt({...a,Timezone:{...a.Timezone,SecondEnabled:G.target.checked}})))},t[0]=e,t[1]=u,t[2]=d,t[3]=a,t[4]=k):k=t[4];const j=k;let _;t[5]!==e?(_=async G=>{await e(zn({data:{AskTimezoneChange:G.target.checked}}))},t[5]=e,t[6]=_):_=t[6];const g=_;let w;t[7]!==e||t[8]!==u||t[9]!==s||t[10]!==a?(w=G=>{Bt.isNil(G)||(p(Number(G)),e(ft({data:{Id:Number(G),SecondEnabled:s,SecondId:u}})),e(pt({...a,Timezone:{...a.Timezone,Id:Number(G)}})))},t[7]=e,t[8]=u,t[9]=s,t[10]=a,t[11]=w):w=t[11];const D=w;let T;t[12]!==e||t[13]!==d||t[14]!==s||t[15]!==a?(T=G=>{Bt.isNil(G)||(y(Number(G)),d&&e(ft({data:{Id:d,SecondEnabled:s,SecondId:Number(G)}})),e(pt({...a,Timezone:{...a.Timezone,SecondId:Number(G)}})))},t[12]=e,t[13]=d,t[14]=s,t[15]=a,t[16]=T):T=t[16];const m=T;let v;t[17]!==r?(v=r("settings.generalSettings.timeZoneSection.label"),t[17]=r,t[18]=v):v=t[18];let b;t[19]!==v?(b=M.jsx(ae,{className:"section-title",children:v}),t[19]=v,t[20]=b):b=t[20];let E;t[21]===Symbol.for("react.memo_cache_sentinel")?(E={label:{cursor:"pointer"},labelWrapper:{width:"auto !important"}},t[21]=E):E=t[21];let i;t[22]!==r?(i=r("settings.generalSettings.timeZoneSection.showAdditionalTimeZoneLabel"),t[22]=r,t[23]=i):i=t[23];let S;t[24]!==j||t[25]!==s||t[26]!==i?(S=M.jsx(J,{my:10,children:M.jsx(xt,{styles:E,fz:"12px",label:i,checked:s,onChange:j})}),t[24]=j,t[25]=s,t[26]=i,t[27]=S):S=t[27];let h;t[28]!==r?(h=r("settings.generalSettings.timeZoneSection.mainTimeZoneLabel"),t[28]=r,t[29]=h):h=t[29];let c;t[30]!==h?(c=M.jsx(ae,{mr:10,fz:"12px",fw:400,c:"dimmed",children:h}),t[30]=h,t[31]=c):c=t[31];let C;t[32]!==r?(C=r("settings.generalSettings.timeZoneSection.timezoneInfo"),t[32]=r,t[33]=C):C=t[33];let x;t[34]===Symbol.for("react.memo_cache_sentinel")?(x=M.jsx(wa,{size:20,stroke:1.5,color:"gray"}),t[34]=x):x=t[34];let R;t[35]!==C?(R=M.jsx(Fr,{label:C,children:x}),t[35]=C,t[36]=R):R=t[36];let O;t[37]!==c||t[38]!==R?(O=M.jsxs(ve,{align:"center",mb:10,children:[c,R]}),t[37]=c,t[38]=R,t[39]=O):O=t[39];let N;t[40]!==r?(N=r("settings.generalSettings.timeZoneSection.description"),t[40]=r,t[41]=N):N=t[41];const q=String(d);let P;t[42]!==r?(P=r("settings.generalSettings.timeZoneSection.mainTimeZoneLabel"),t[42]=r,t[43]=P):P=t[43];let A;t[44]!==D||t[45]!==N||t[46]!==q||t[47]!==P?(A=M.jsx(J,{maw:530,children:M.jsx(Lt,{disabled:!0,description:N,onChange:D,value:q,placeholder:P})}),t[44]=D,t[45]=N,t[46]=q,t[47]=P,t[48]=A):A=t[48];let z;t[49]!==O||t[50]!==A||t[51]!==S?(z=M.jsxs(J,{my:10,maw:500,children:[S,O,A]}),t[49]=O,t[50]=A,t[51]=S,t[52]=z):z=t[52];let H;t[53]!==m||t[54]!==u||t[55]!==s||t[56]!==r?(H=s&&M.jsxs(J,{my:10,maw:500,children:[M.jsx(ae,{mb:10,size:"sm",fz:"12px",fw:400,c:"dimmed",children:r("settings.generalSettings.timeZoneSection.additionalTimeZonesLabel")}),M.jsx(J,{children:M.jsx(Lt,{onChange:m,value:String(u),placeholder:r("settings.generalSettings.timeZoneSection.additionalTimeZonesLabel")})})]}),t[53]=m,t[54]=u,t[55]=s,t[56]=r,t[57]=H):H=t[57];let I;t[58]===Symbol.for("react.memo_cache_sentinel")?(I={label:{cursor:"pointer"},labelWrapper:{width:"auto !important"}},t[58]=I):I=t[58];const W=l==="pending";let F;t[59]!==r?(F=r("settings.generalSettings.timeZoneSection.askAboutTimeZone"),t[59]=r,t[60]=F):F=t[60];const B=!!o;let Z;t[61]!==g||t[62]!==W||t[63]!==F||t[64]!==B?(Z=M.jsx(J,{my:10,children:M.jsx(xt,{styles:I,fz:"12px",disabled:W,label:F,checked:B,onChange:g})}),t[61]=g,t[62]=W,t[63]=F,t[64]=B,t[65]=Z):Z=t[65];let K;return t[66]!==z||t[67]!==H||t[68]!==Z||t[69]!==b?(K=M.jsxs(M.Fragment,{children:[b,z,H,Z]}),t[66]=z,t[67]=H,t[68]=Z,t[69]=b,t[70]=K):K=t[70],K},ct=t=>{const e=ce.c(15),{children:a,pages:r,ref:n}=t,s=r===void 0?1:r,{t:f}=de();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={overflow:"auto"},e[0]=o):o=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={position:"absolute",right:45,bottom:20,zIndex:9},e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d={fontWeight:"700",textShadow:"2px 2px 4px rgba(0, 0, 0, 0.3)"},e[2]=d):d=e[2];let p;e[3]!==f?(p=f("printEvent.pages"),e[3]=f,e[4]=p):p=e[4];let u;e[5]!==s||e[6]!==p?(u=M.jsx(J,{style:l,children:M.jsxs(ae,{fz:30,style:d,children:[p," ",s]})}),e[5]=s,e[6]=p,e[7]=u):u=e[7];let y;e[8]===Symbol.for("react.memo_cache_sentinel")?(y={padding:"0px 40px"},e[8]=y):y=e[8];let k;e[9]!==a||e[10]!==n?(k=M.jsx(J,{w:"100%",style:y,children:M.jsx(J,{className:"landscape-print",w:"100%",ref:n,children:a})}),e[9]=a,e[10]=n,e[11]=k):k=e[11];let j;return e[12]!==u||e[13]!==k?(j=M.jsxs(J,{w:"100%",bg:"gray",h:"80vh",py:20,style:o,children:[u,k]}),e[12]=u,e[13]=k,e[14]=j):j=e[14],j},es=(t,e,a,r)=>a<2?null:a>=3||a===2&&!r?`${t} - ${e}`:t,Xr=t=>{const e=ce.c(42),a=t.view,r=oe(Rt),{event:n,printStyle:s}=t,{title:f,resource:o}=n,{participantInfo:l,location:d}=o,{attendingType:p}=l,u=p===Je.NotVisit?"line-through":"unset";let y;e[0]!==n.start?(y=Gt(n.start,"HH:mm"),e[0]=n.start,e[1]=y):y=e[1];let k;e[2]!==n.end?(k=Gt(n.end,"HH:mm"),e[2]=n.end,e[3]=k):k=e[3];let j;e[4]!==y||e[5]!==k?(j={eventTimeStart:y,eventTimeEnd:k},e[4]=y,e[5]=k,e[6]=j):j=e[6];const{eventTimeStart:_,eventTimeEnd:g}=j,w=t.linesEvent||1,D=w===2?"-2px":0,T=a==="month"?"center":"start",m=w>3?w-2:1,v=a!=="month";let b;e[7]!==v?(b=$n("event-title",{"white-space":v}),e[7]=v,e[8]=b):b=e[8];let E;e[9]===Symbol.for("react.memo_cache_sentinel")?(E={lineHeight:1.3},e[9]=E):E=e[9];let i;e[10]!==f?(i=f||Et("placeholders.defaultEventTitle"),e[10]=f,e[11]=i):i=e[11];let S;e[12]!==g||e[13]!==_||e[14]!==w||e[15]!==d||e[16]!==a?(S=a!=="month"&&M.jsxs(M.Fragment,{children:[w<2?`, ${_} - ${g}`:"",w<2&&d?`, ${d}`:""]}),e[12]=g,e[13]=_,e[14]=w,e[15]=d,e[16]=a,e[17]=S):S=e[17];let h;e[18]!==u||e[19]!==S||e[20]!==m||e[21]!==b||e[22]!==i?(h=M.jsxs(ae,{lineClamp:m,className:b,td:u,fz:"xs",style:E,children:[i,S]}),e[18]=u,e[19]=S,e[20]=m,e[21]=b,e[22]=i,e[23]=h):h=e[23];let c;e[24]!==h||e[25]!==T?(c=M.jsx(ve,{align:T,children:h}),e[24]=h,e[25]=T,e[26]=c):c=e[26];let C;e[27]!==p||e[28]!==r||e[29]!==n.resource||e[30]!==g||e[31]!==_||e[32]!==w||e[33]!==d||e[34]!==s||e[35]!==o.isAllDayWithoutTime||e[36]!==a?(C=a==="month"||o.isAllDayWithoutTime||w===1?null:M.jsx(M.Fragment,{children:M.jsx(J,{mt:-3,children:M.jsxs(ae,{fz:"xs",style:{whiteSpace:"break-spaces"},children:[es(_,g,w,d),p===Je.Maybe&&s!=="default"&&M.jsx(ve,{style:{borderRadius:2,justifyContent:"center",alignItems:"center",position:"absolute",right:5,bottom:3},w:14,bg:s==="line"?r[n.resource.categoryId]||n.resource.mainColor:"black",children:M.jsx(An,{size:14,color:s==="blackWhite"?"white":"black"})})]})})}),e[27]=p,e[28]=r,e[29]=n.resource,e[30]=g,e[31]=_,e[32]=w,e[33]=d,e[34]=s,e[35]=o.isAllDayWithoutTime,e[36]=a,e[37]=C):C=e[37];let x;return e[38]!==c||e[39]!==C||e[40]!==D?(x=M.jsxs(J,{mt:D,children:[c,C]}),e[38]=c,e[39]=C,e[40]=D,e[41]=x):x=e[41],x},Qr=(t,e,a)=>r=>({style:{borderRadius:"6px",color:"#343a40",...ts(r,t,e,a)}}),ts=(t,e,a,r)=>{const{resource:n}=t,{mainColor:s,categoryId:f,participantInfo:o}=n,{attendingType:l}=o;Wn(Ut(t.start),Ut(t.end),"day");const d=e[f]||s,p=r==="default"?d:"white",u={borderWidth:r==="default"?1:2,borderStyle:"solid",boxShadow:"none",borderColor:r==="blackWhite"?"black":d};return l===Je.Maybe?r==="default"?{...u,backgroundColor:p,backgroundImage:`repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 5px,
        ${p} 5px,
        ${p} 10px
      )`}:{...u,backgroundColor:"white"}:l===Je.NotVisit?{...u,background:"#fff",textDecoration:"line-through"}:r==="line"?{...u,background:"white"}:l===Je.WillVisit||l===null?{...u,background:p}:{...u,borderTopColor:p,borderBottomColor:p,borderRightColor:p,borderLeftColor:p,background:"#fff",color:p}},Ot=t=>{const e=ce.c(17),{printStyle:a,calendarEvents:r,view:n,date:s,hourStart:f,hourEnd:o}=t,{i18n:l}=de(),d=l.language,p=oe(Rt);let u;e[0]!==p||e[1]!==a?(u=D=>Qr(p,xe.WEEK,a)(D),e[0]=p,e[1]=a,e[2]=u):u=e[2];const y=u;let k;e[3]!==a||e[4]!==n?(k={event:D=>M.jsx(Xr,{printStyle:a,view:n,...D})},e[3]=a,e[4]=n,e[5]=k):k=e[5];const j=d==="ru"?"ru-RU":"en-GB";let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_={width:"100%",height:"100%"},e[6]=_):_=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={day:!0,week:!0,work_week:!0,month:!0},e[7]=g):g=e[7];let w;return e[8]!==r||e[9]!==s||e[10]!==y||e[11]!==o||e[12]!==f||e[13]!==k||e[14]!==j||e[15]!==n?(w=M.jsx(Lr,{eventPropGetter:y,components:k,dayLayoutAlgorithm:"no-overlap",culture:j,events:r,defaultView:n,view:n,date:s,style:_,localizer:Br.localizer,step:30,views:g,toolbar:!1,showAllEvents:!0,min:f,max:o}),e[8]=r,e[9]=s,e[10]=y,e[11]=o,e[12]=f,e[13]=k,e[14]=j,e[15]=n,e[16]=w):w=e[16],w},rs=t=>re.fromJSDate(t).startOf("week").set({weekday:1}).toJSDate(),ns=t=>re.fromJSDate(t).endOf("week").set({weekday:7}).toJSDate(),Xt=(t,e)=>re.fromJSDate(t).setLocale(e==="ru"?"ru":"en").toFormat("ccc, dd LLL yyyy"),as=t=>{const e=ce.c(30),{startDate:a,endDate:r,calendarEvents:n,activeCalendars:s,orientation:f,timezone:o,printStyle:l,hourStart:d,hourEnd:p,view:u,ref:y}=t,k=u===void 0?xe.WEEK:u,{i18n:j}=de(),_=j.language;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[0]=g):g=e[0];const[w,D]=$.useState(g);let T,m;e[1]!==r||e[2]!==a?(T=()=>{const i=[];let S=re.fromJSDate(rs(a));const h=re.fromJSDate(ns(r));for(;S<=h;){const c=S.toJSDate(),C=S.plus({days:6}).toJSDate();i.push({weekStart:c,weekEnd:C}),S=S.plus({weeks:1})}D(i)},m=[a,r],e[1]=r,e[2]=a,e[3]=T,e[4]=m):(T=e[3],m=e[4]),$.useEffect(T,m);const v=w.length;let b;if(e[5]!==s||e[6]!==n||e[7]!==_||e[8]!==p||e[9]!==d||e[10]!==f||e[11]!==l||e[12]!==o||e[13]!==k||e[14]!==w){let i;e[16]!==s||e[17]!==n||e[18]!==_||e[19]!==p||e[20]!==d||e[21]!==f||e[22]!==l||e[23]!==o||e[24]!==k?(i=S=>{const{weekStart:h,weekEnd:c}=S;return M.jsxs("div",{className:`print-calendar calendar-${f}`,children:[M.jsxs(J,{display:"flex",style:{justifyContent:"space-between"},mb:2,children:[s,M.jsxs(ae,{fz:12,style:{marginLeft:8,maxWidth:"50%"},className:"print-time",children:[Xt(h,_)," – ",Xt(c,_),o&&` - ${o}`]})]}),M.jsx(Ot,{printStyle:l,calendarEvents:n,view:k,date:h,hourStart:d,hourEnd:p})]},h.toString())},e[16]=s,e[17]=n,e[18]=_,e[19]=p,e[20]=d,e[21]=f,e[22]=l,e[23]=o,e[24]=k,e[25]=i):i=e[25],b=w.map(i),e[5]=s,e[6]=n,e[7]=_,e[8]=p,e[9]=d,e[10]=f,e[11]=l,e[12]=o,e[13]=k,e[14]=w,e[15]=b}else b=e[15];let E;return e[26]!==y||e[27]!==b||e[28]!==w.length?(E=M.jsx(ct,{pages:v,ref:y,children:b}),e[26]=y,e[27]=b,e[28]=w.length,e[29]=E):E=e[29],E},ss=(t,e)=>re.fromJSDate(t).setLocale(e==="ru"?"ru":"en").toFormat("ccc, dd LLL yyyy"),os=t=>{const e=ce.c(28),{startDate:a,endDate:r,calendarEvents:n,activeCalendars:s,orientation:f,timezone:o,printStyle:l,hourStart:d,hourEnd:p,ref:u}=t,{i18n:y}=de(),k=y.language;let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[0]=j):j=e[0];const[_,g]=$.useState(j);let w,D;e[1]!==r||e[2]!==a?(w=()=>{const b=[],E=new Date(a);for(;E<=r;)b.push(new Date(E)),E.setDate(E.getDate()+1);g(b)},D=[a,r],e[1]=r,e[2]=a,e[3]=w,e[4]=D):(w=e[3],D=e[4]),$.useEffect(w,D);const T=_.length;let m;if(e[5]!==s||e[6]!==n||e[7]!==k||e[8]!==_||e[9]!==p||e[10]!==d||e[11]!==f||e[12]!==l||e[13]!==o){let b;e[15]!==s||e[16]!==n||e[17]!==k||e[18]!==p||e[19]!==d||e[20]!==f||e[21]!==l||e[22]!==o?(b=E=>M.jsxs("div",{className:`print-calendar calendar-${f}`,children:[M.jsxs(J,{display:"flex",style:{justifyContent:"space-between"},mb:2,children:[s,M.jsxs(ae,{fz:12,style:{whiteSpace:"nowrap",marginLeft:8},children:[ss(E,k),o&&` - ${o}`]})]}),M.jsx(Ot,{printStyle:l,calendarEvents:n,view:xe.DAY,date:E,hourStart:d,hourEnd:p})]},E.toString()),e[15]=s,e[16]=n,e[17]=k,e[18]=p,e[19]=d,e[20]=f,e[21]=l,e[22]=o,e[23]=b):b=e[23],m=_.map(b),e[5]=s,e[6]=n,e[7]=k,e[8]=_,e[9]=p,e[10]=d,e[11]=f,e[12]=l,e[13]=o,e[14]=m}else m=e[14];let v;return e[24]!==_.length||e[25]!==u||e[26]!==m?(v=M.jsx(ct,{pages:T,ref:u,children:m}),e[24]=_.length,e[25]=u,e[26]=m,e[27]=v):v=e[27],v},Qt=(t,e)=>re.fromJSDate(t).setLocale(e==="ru"?"ru":"en").toFormat("ccc, dd LLL yyyy"),ls=t=>{const e=ce.c(24),{startDate:a,endDate:r,calendarEvents:n,activeCalendars:s,orientation:f,timezone:o,printStyle:l,ref:d}=t,{i18n:p}=de(),u=p.language;let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=[],e[0]=y):y=e[0];const[k,j]=$.useState(y);let _,g;e[1]!==r||e[2]!==a?(_=()=>{const m=[];let v=re.fromJSDate(a).startOf("month");const b=re.fromJSDate(r).endOf("month");for(;v<=b;){const E=v.toJSDate(),i=v.endOf("month").toJSDate();m.push({monthStart:E,monthEnd:i}),v=v.plus({months:1})}j(m)},g=[a,r],e[1]=r,e[2]=a,e[3]=_,e[4]=g):(_=e[3],g=e[4]),$.useEffect(_,g);const w=k.length;let D;if(e[5]!==s||e[6]!==n||e[7]!==u||e[8]!==k||e[9]!==f||e[10]!==l||e[11]!==o){let m;e[13]!==s||e[14]!==n||e[15]!==u||e[16]!==f||e[17]!==l||e[18]!==o?(m=v=>{const{monthStart:b,monthEnd:E}=v;return M.jsxs("div",{className:`print-calendar calendar-${f}`,children:[M.jsxs(J,{display:"flex",style:{justifyContent:"space-between"},mb:2,children:[s,M.jsxs(ae,{fz:12,style:{whiteSpace:"nowrap",marginLeft:8},children:[Qt(b,u)," – ",Qt(E,u),o&&` - ${o}`]})]}),M.jsx(Ot,{printStyle:l,calendarEvents:n,view:xe.MONTH,date:b})]},b.toString())},e[13]=s,e[14]=n,e[15]=u,e[16]=f,e[17]=l,e[18]=o,e[19]=m):m=e[19],D=k.map(m),e[5]=s,e[6]=n,e[7]=u,e[8]=k,e[9]=f,e[10]=l,e[11]=o,e[12]=D}else D=e[12];let T;return e[20]!==k.length||e[21]!==d||e[22]!==D?(T=M.jsx(ct,{pages:w,ref:d,children:D}),e[20]=k.length,e[21]=d,e[22]=D,e[23]=T):T=e[23],T};var Ne={},mt={exports:{}},gt={exports:{}},er;function is(){return er||(er=1,(function(t){function e(a){if(Array.isArray(a))return a}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(gt)),gt.exports}var yt={exports:{}},tr;function cs(){return tr||(tr=1,(function(t){function e(a,r){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var s,f,o,l,d=[],p=!0,u=!1;try{if(o=(n=n.call(a)).next,r===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(s=o.call(n)).done)&&(d.push(s.value),d.length!==r);p=!0);}catch(y){u=!0,f=y}finally{try{if(!p&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw f}}return d}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(yt)),yt.exports}var St={exports:{}},rr;function us(){return rr||(rr=1,(function(t){function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(St)),St.exports}var nr;function Nt(){return nr||(nr=1,(function(t){var e=is(),a=cs(),r=Fn(),n=us();function s(f,o){return e(f)||a(f,o)||r(f,o)||n()}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports})(mt)),mt.exports}const ds=he(Hn),en=he(Ln);var Pe={},et={},ar;function tn(){if(ar)return et;ar=1,Object.defineProperty(et,"__esModule",{value:!0}),et.getSlotMetrics=e;var t=function(r){var n=r.min,s=r.max,f=r.step,o=r.slots,l=r.localizer;return"".concat(+l.startOf(n,"minutes"))+"".concat(+l.startOf(s,"minutes"))+"".concat(f,"-").concat(o)};function e(a){for(var r=a.min,n=a.max,s=a.step,f=a.timeslots,o=a.localizer,l=t({step:s,localizer:o}),d=1+o.getTotalMin(r,n),p=o.getMinutesFromMidnight(r),u=Math.ceil((d-1)/(s*f)),y=u*f,k=new Array(u),j=new Array(y),_=0;_<u;_++){k[_]=new Array(f);for(var g=0;g<f;g++){var w=_*f+g,D=w*s;j[w]=k[_][g]=o.getSlotDate(r,p,D)}}var T=j.length*s;j.push(o.getSlotDate(r,p,T));function m(v){var b=o.diff(r,v,"minutes")+o.getDstOffset(r,v);return Math.min(b,d)}return{groups:k,update:function(b){return t(b)!==l?e(b):this},dateIsInGroup:function(b,E){var i=k[E+1];return o.inRange(b,k[E][0],i?i[0]:n,"minutes")},nextSlot:function(b){var E=j[Math.min(j.indexOf(b)+1,j.length-1)];return E===b&&(E=o.add(b,s,"minutes")),E},closestSlotToPosition:function(b){var E=Math.min(j.length-1,Math.max(0,Math.floor(b*y)));return j[E]},closestSlotFromPoint:function(b,E){var i=Math.abs(E.top-E.bottom);return this.closestSlotToPosition((b.y-E.top)/i)},closestSlotFromDate:function(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(o.lt(b,r,"minutes"))return j[0];if(o.gt(b,n,"minutes"))return j[j.length-1];var i=o.diff(r,b,"minutes");return j[(i-i%s)/s+E]},startsBeforeDay:function(b){return o.lt(b,r,"day")},startsAfterDay:function(b){return o.gt(b,n,"day")},startsBefore:function(b){return o.lt(o.merge(r,b),r,"minutes")},startsAfter:function(b){return o.gt(o.merge(n,b),n,"minutes")},getRange:function(b,E,i,S){i||(b=o.min(n,o.max(r,b))),S||(E=o.min(n,o.max(r,E)));var h=m(b),c=m(E),C=c>s*y&&!o.eq(n,E)?(h-s)/(s*y)*100:h/(s*y)*100;return{top:C,height:c/(s*y)*100-C,start:m(b),startDate:b,end:m(E),endDate:E}},getCurrentTimePosition:function(b){var E=m(b),i=E/(s*y)*100;return i}}}return et}var ke={},sr;function ut(){if(sr)return ke;sr=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.instanceId=r,ke.isFirstFocusedRender=n,ke.notify=a;var t=0;function e(s){return""+(s+ ++t)}function a(s,f){s&&s.apply(null,[].concat(f))}function r(s){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return s.__id||(s.__id=e("rw_")),(s.props.id||s.__id)+f}function n(s){return s._firstFocus||s.state.focused&&(s._firstFocus=!0)}return ke}var tt={},rt={},or;function rn(){if(or)return rt;or=1;var t=ee().default;Object.defineProperty(rt,"__esModule",{value:!0}),rt.default=o;var e=t(ge()),a=t(ye()),r=t(Bn()),n=(function(){function l(d,p){var u=p.accessors,y=p.slotMetrics;(0,e.default)(this,l);var k=y.getRange(u.start(d),u.end(d)),j=k.start,_=k.startDate,g=k.end,w=k.endDate,D=k.top,T=k.height;this.start=j,this.end=g,this.startMs=+_,this.endMs=+w,this.top=D,this.height=T,this.data=d}return(0,a.default)(l,[{key:"_width",get:function(){if(this.rows){var p=this.rows.reduce(function(y,k){return Math.max(y,k.leaves.length+1)},0)+1;return 100/p}if(this.leaves){var u=100-this.container._width;return u/(this.leaves.length+1)}return this.row._width}},{key:"width",get:function(){var p=this._width,u=Math.min(100,this._width*1.7);if(this.rows)return u;if(this.leaves)return this.leaves.length>0?u:p;var y=this.row.leaves,k=y.indexOf(this);return k===y.length-1?p:u}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var p=this.row,u=p.leaves,y=p.xOffset,k=p._width,j=u.indexOf(this)+1;return y+j*k}}]),l})();function s(l,d,p){return Math.abs(d.start-l.start)<p||d.start>l.start&&d.start<l.end}function f(l){for(var d=(0,r.default)(l,["startMs",function(_){return-_.endMs}]),p=[];d.length>0;){var u=d.shift();p.push(u);for(var y=0;y<d.length;y++){var k=d[y];if(!(u.endMs>k.startMs)){if(y>0){var j=d.splice(y,1)[0];p.push(j)}break}}}return p}function o(l){for(var d=l.events,p=l.minimumStartDifference,u=l.slotMetrics,y=l.accessors,k=d.map(function(D){return new n(D,{slotMetrics:u,accessors:y})}),j=f(k),_=[],g=function(){var T=j[w],m=_.find(function(E){return E.end>T.start||Math.abs(T.start-E.start)<p});if(!m)return T.rows=[],_.push(T),1;T.container=m;for(var v=null,b=m.rows.length-1;!v&&b>=0;b--)s(m.rows[b],T,p)&&(v=m.rows[b]);v?(v.leaves.push(T),T.row=v):(T.leaves=[],m.rows.push(T))},w=0;w<j.length;w++)g();return j.map(function(D){return{event:D.data,style:{top:D.top,height:D.height,width:D.width,xOffset:Math.max(0,D.xOffset)}}})}return rt}var nt={},lr;function fs(){if(lr)return nt;lr=1;var t=ee().default;Object.defineProperty(nt,"__esModule",{value:!0}),nt.default=r;var e=t(rn());function a(n,s,f){for(var o=0;o<n.friends.length;++o)if(!(f.indexOf(n.friends[o])>-1)){s=s>n.friends[o].idx?s:n.friends[o].idx,f.push(n.friends[o]);var l=a(n.friends[o],s,f);s=s>l?s:l}return s}function r(n){var s=n.events,f=n.minimumStartDifference,o=n.slotMetrics,l=n.accessors,d=(0,e.default)({events:s,minimumStartDifference:f,slotMetrics:o,accessors:l});d.sort(function(A,z){return A=A.style,z=z.style,A.top!==z.top?A.top>z.top?1:-1:A.top+A.height<z.top+z.height?1:-1});for(var p=0;p<d.length;++p)d[p].friends=[],delete d[p].style.left,delete d[p].style.left,delete d[p].idx,delete d[p].size;for(var u=0;u<d.length-1;++u)for(var y=d[u],k=y.style.top,j=y.style.top+y.style.height,_=u+1;_<d.length;++_){var g=d[_],w=g.style.top,D=g.style.top+g.style.height;(w>=k&&D<=j||D>k&&D<=j||w>=k&&w<j)&&(y.friends.push(g),g.friends.push(y))}for(var T=0;T<d.length;++T){for(var m=d[T],v=[],b=0;b<100;++b)v.push(1);for(var E=0;E<m.friends.length;++E)m.friends[E].idx!==void 0&&(v[m.friends[E].idx]=0);m.idx=v.indexOf(1)}for(var i=0;i<d.length;++i){var S=0;if(!d[i].size){var h=[],c=a(d[i],0,h);S=100/(c+1),d[i].size=S;for(var C=0;C<h.length;++C)h[C].size=S}}for(var x=0;x<d.length;++x){var R=d[x];R.style.left=R.idx*R.size;for(var O=0,N=0;N<R.friends.length;++N){var q=R.friends[N].idx;O=O>q?O:q}O<=R.idx&&(R.size=100-R.idx*R.size);var P=R.idx===0?0:3;R.style.width="calc(".concat(R.size,"% - ").concat(P,"px)"),R.style.height="calc(".concat(R.style.height,"% - 2px)"),R.style.xOffset="calc(".concat(R.style.left,"% + ").concat(P,"px)")}return d}return nt}var ir;function ps(){if(ir)return tt;ir=1;var t=ee().default;Object.defineProperty(tt,"__esModule",{value:!0}),tt.getStyledEvents=s;var e=t(rn()),a=t(fs()),r={overlap:e.default,"no-overlap":a.default};function n(f){return!!(f&&f.constructor&&f.call&&f.apply)}function s(f){f.events,f.minimumStartDifference,f.slotMetrics,f.accessors;var o=f.dayLayoutAlgorithm,l=o;return o in r&&(l=r[o]),n(l)?l.apply(this,arguments):[]}return tt}var Ie={},qe={},ze={},cr;function nn(){if(cr)return ze;cr=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=void 0;function t(e){return e.children}return ze.default=t,ze}var ur;function vs(){if(ur)return qe;ur=1;var t=ee().default;Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=void 0;var e=t(nn());return qe.default=e.default,qe}var dr;function an(){if(dr)return Ie;dr=1;var t=Se().default,e=ee().default;Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.default=void 0;var a=e(ge()),r=e(ye()),n=e(Re()),s=e(De()),f=e(be),o=t(le()),l=e(vs());return Ie.default=(function(d){(0,s.default)(p,d);function p(){return(0,a.default)(this,p),(0,n.default)(this,p,arguments)}return(0,r.default)(p,[{key:"render",value:function(){var y=this.props,k=y.renderSlot,j=y.resource,_=y.group,g=y.getters,w=y.components,D=w===void 0?{}:w,T=D.timeSlotWrapper,m=T===void 0?l.default:T,v=g?g.slotGroupProp(_):{};return o.default.createElement("div",Object.assign({className:"rbc-timeslot-group"},v),_.map(function(b,E){var i=g?g.slotProp(b,j):{};return o.default.createElement(m,{key:E,value:b,resource:j},o.default.createElement("div",Object.assign({},i,{className:(0,f.default)("rbc-time-slot",i.className)}),k&&k(b,E)))}))}}]),p})(o.Component),Ie}var $e={},fr;function hs(){if(fr)return $e;fr=1;var t=ee().default;Object.defineProperty($e,"__esModule",{value:!0}),$e.default=void 0;var e=t(le()),a=function(n){var s=n.children,f=n.className,o=n.style,l=n.innerRef;return e.default.createElement("div",{className:f,style:o,ref:l},s)};return $e.default=e.default.forwardRef(function(r,n){return e.default.createElement(a,Object.assign({},r,{innerRef:n}))}),$e}var pr;function ms(){if(pr)return Pe;pr=1;var t=ee().default,e=Se().default;Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.default=void 0;var a=t(Gn()),r=t(Me()),n=t(ge()),s=t(ye()),f=t(Re()),o=t(Un()),l=t(De()),d=e(le()),p=t(be),u=e(Gr()),y=e(tn()),k=Dt(),j=ut(),_=e(ps()),g=t(an()),w=t(Kn());Ur();var D=t(hs()),T=["dayProp"],m=["eventContainerWrapper"],v=(function(b){(0,l.default)(E,b);function E(){var i;(0,n.default)(this,E);for(var S=arguments.length,h=new Array(S),c=0;c<S;c++)h[c]=arguments[c];return i=(0,f.default)(this,E,[].concat(h)),i.state={selecting:!1,timeIndicatorPosition:null},i.intervalTriggered=!1,i.renderEvents=function(C){var x=C.events,R=C.isBackgroundEvent,O=i.props,N=O.rtl,q=O.selected,P=O.accessors,A=O.localizer,z=O.getters,H=O.components,I=O.step,W=O.timeslots,F=O.dayLayoutAlgorithm,B=O.resizable,Z=(0,o.default)(i),K=Z.slotMetrics,G=A.messages,V=_.getStyledEvents({events:x,accessors:P,slotMetrics:K,minimumStartDifference:Math.ceil(I*W/2),dayLayoutAlgorithm:F});return V.map(function(X,te){var Q=X.event,ie=X.style,U=P.end(Q),se=P.start(Q),ue="eventTimeRangeFormat",pe,we=K.startsBeforeDay(se),Te=K.startsAfterDay(U);we?ue="eventTimeRangeEndFormat":Te&&(ue="eventTimeRangeStartFormat"),we&&Te?pe=G.allDay:pe=A.format({start:se,end:U},ue);var je=we||K.startsBefore(se),Xe=Te||K.startsAfter(U);return d.default.createElement(w.default,{style:ie,event:Q,label:pe,key:"evt_"+te,getters:z,rtl:N,components:H,continuesPrior:je,continuesAfter:Xe,accessors:P,resource:i.props.resource,selected:(0,k.isSelected)(Q,q),onClick:function(fe){return i._select((0,r.default)((0,r.default)({},Q),{},{sourceResource:i.props.resource}),fe)},onDoubleClick:function(fe){return i._doubleClick(Q,fe)},isBackgroundEvent:R,onKeyPress:function(fe){return i._keyPress(Q,fe)},resizable:B})})},i._selectable=function(){var C=i.containerRef.current,x=i.props,R=x.longPressThreshold,O=x.localizer,N=i._selector=new u.default(function(){return C},{longPressThreshold:R}),q=function(H){var I=i.props.onSelecting,W=i.state||{},F=P(H),B=F.startDate,Z=F.endDate;I&&(O.eq(W.startDate,B,"minutes")&&O.eq(W.endDate,Z,"minutes")||I({start:B,end:Z,resourceId:i.props.resource})===!1)||(i.state.start!==F.start||i.state.end!==F.end||i.state.selecting!==F.selecting)&&i.setState(F)},P=function(H){var I=i.slotMetrics.closestSlotFromPoint(H,(0,u.getBoundsForNode)(C));i.state.selecting||(i._initialSlot=I);var W=i._initialSlot;O.lte(W,I)?I=i.slotMetrics.nextSlot(I):O.gt(W,I)&&(W=i.slotMetrics.nextSlot(W));var F=i.slotMetrics.getRange(O.min(W,I),O.max(W,I));return(0,r.default)((0,r.default)({},F),{},{selecting:!0,top:"".concat(F.top,"%"),height:"".concat(F.height,"%")})},A=function(H,I){if(!(0,u.isEvent)(i.containerRef.current,H)){var W=P(H),F=W.startDate,B=W.endDate;i._selectSlot({startDate:F,endDate:B,action:I,box:H})}i.setState({selecting:!1})};N.on("selecting",q),N.on("selectStart",q),N.on("beforeSelect",function(z){if(i.props.selectable==="ignoreEvents")return!(0,u.isEvent)(i.containerRef.current,z)}),N.on("click",function(z){return A(z,"click")}),N.on("doubleClick",function(z){return A(z,"doubleClick")}),N.on("select",function(z){i.state.selecting&&(i._selectSlot((0,r.default)((0,r.default)({},i.state),{},{action:"select",bounds:z})),i.setState({selecting:!1}))}),N.on("reset",function(){i.state.selecting&&i.setState({selecting:!1})})},i._teardownSelectable=function(){i._selector&&(i._selector.teardown(),i._selector=null)},i._selectSlot=function(C){for(var x=C.startDate,R=C.endDate,O=C.action,N=C.bounds,q=C.box,P=x,A=[];i.props.localizer.lte(P,R);)A.push(P),P=new Date(+P+i.props.step*60*1e3);(0,j.notify)(i.props.onSelectSlot,{slots:A,start:x,end:R,resourceId:i.props.resource,action:O,bounds:N,box:q})},i._select=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];(0,j.notify)(i.props.onSelectEvent,x)},i._doubleClick=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];(0,j.notify)(i.props.onDoubleClickEvent,x)},i._keyPress=function(){for(var C=arguments.length,x=new Array(C),R=0;R<C;R++)x[R]=arguments[R];(0,j.notify)(i.props.onKeyPressEvent,x)},i.slotMetrics=y.getSlotMetrics(i.props),i.containerRef=(0,d.createRef)(),i}return(0,s.default)(E,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable(),this.props.isNow&&this.setTimeIndicatorPositionUpdateInterval()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable(),this.clearTimeIndicatorInterval()}},{key:"UNSAFE_componentWillReceiveProps",value:function(S){S.selectable&&!this.props.selectable&&this._selectable(),!S.selectable&&this.props.selectable&&this._teardownSelectable(),this.slotMetrics=this.slotMetrics.update(S)}},{key:"componentDidUpdate",value:function(S,h){var c=this.props,C=c.getNow,x=c.isNow,R=c.localizer,O=c.date,N=c.min,q=c.max,P=R.neq(S.getNow(),C(),"minutes");if(S.isNow!==x||P){if(this.clearTimeIndicatorInterval(),x){var A=!P&&R.eq(S.date,O,"minutes")&&h.timeIndicatorPosition===this.state.timeIndicatorPosition;this.setTimeIndicatorPositionUpdateInterval(A)}}else x&&(R.neq(S.min,N,"minutes")||R.neq(S.max,q,"minutes"))&&this.positionTimeIndicator()}},{key:"setTimeIndicatorPositionUpdateInterval",value:function(){var S=this,h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;!this.intervalTriggered&&!h&&this.positionTimeIndicator(),this._timeIndicatorTimeout=window.setTimeout(function(){S.intervalTriggered=!0,S.positionTimeIndicator(),S.setTimeIndicatorPositionUpdateInterval()},6e4)}},{key:"clearTimeIndicatorInterval",value:function(){this.intervalTriggered=!1,window.clearTimeout(this._timeIndicatorTimeout)}},{key:"positionTimeIndicator",value:function(){var S=this.props,h=S.min,c=S.max,C=S.getNow,x=C();if(x>=h&&x<=c){var R=this.slotMetrics.getCurrentTimePosition(x);this.intervalTriggered=!0,this.setState({timeIndicatorPosition:R})}else this.clearTimeIndicatorInterval()}},{key:"render",value:function(){var S=this.props,h=S.date,c=S.max,C=S.rtl,x=S.isNow,R=S.resource,O=S.accessors,N=S.localizer,q=S.getters,P=q.dayProp,A=(0,a.default)(q,T),z=S.components,H=z.eventContainerWrapper,I=(0,a.default)(z,m),W=this.slotMetrics,F=this.state,B=F.selecting,Z=F.top,K=F.height,G=F.startDate,V=F.endDate,X={start:G,end:V},te=P(c),Q=te.className,ie=te.style,U=I.dayColumnWrapper||D.default;return d.default.createElement(U,{ref:this.containerRef,date:h,style:ie,className:(0,p.default)(Q,"rbc-day-slot","rbc-time-column",x&&"rbc-now",x&&"rbc-today",B&&"rbc-slot-selecting"),slotMetrics:W},W.groups.map(function(se,ue){return d.default.createElement(g.default,{key:ue,group:se,resource:R,getters:A,components:I})}),d.default.createElement(H,{localizer:N,resource:R,accessors:O,getters:A,components:I,slotMetrics:W},d.default.createElement("div",{className:(0,p.default)("rbc-events-container",C&&"rtl")},this.renderEvents({events:this.props.backgroundEvents,isBackgroundEvent:!0}),this.renderEvents({events:this.props.events}))),B&&d.default.createElement("div",{className:"rbc-slot-selection",style:{top:Z,height:K}},d.default.createElement("span",null,N.format(X,"selectRangeFormat"))),x&&this.intervalTriggered&&d.default.createElement("div",{className:"rbc-current-time-indicator",style:{top:"".concat(this.state.timeIndicatorPosition,"%")}}))}}]),E})(d.default.Component);return v.defaultProps={dragThroughEvents:!0,timeslots:2},Pe.default=v,Pe}var Ae={},vr;function gs(){if(vr)return Ae;vr=1;var t=Se().default,e=ee().default;Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var a=e(Nt()),r=t(le()),n=e(be),s=tn(),f=e(an());function o(d){var p=d.min,u=d.max,y=d.localizer;return y.getTimezoneOffset(p)!==y.getTimezoneOffset(u)?{start:y.add(p,-1,"day"),end:y.add(u,-1,"day")}:{start:p,end:u}}var l=function(p){var u=p.min,y=p.max,k=p.timeslots,j=p.step,_=p.localizer,g=p.getNow,w=p.resource,D=p.components,T=p.getters,m=p.gutterRef,v=D.timeGutterWrapper,b=(0,r.useMemo)(function(){return o({min:u,max:y,localizer:_})},[u==null?void 0:u.toISOString(),y==null?void 0:y.toISOString(),_]),E=b.start,i=b.end,S=(0,r.useState)((0,s.getSlotMetrics)({min:E,max:i,timeslots:k,step:j,localizer:_})),h=(0,a.default)(S,2),c=h[0],C=h[1];(0,r.useEffect)(function(){c&&C(c.update({min:E,max:i,timeslots:k,step:j,localizer:_}))},[E==null?void 0:E.toISOString(),i==null?void 0:i.toISOString(),k,j]);var x=(0,r.useCallback)(function(R,O){if(O)return null;var N=c.dateIsInGroup(g(),O);return r.default.createElement("span",{className:(0,n.default)("rbc-label",N&&"rbc-now")},_.format(R,"timeGutterFormat"))},[c,_,g]);return r.default.createElement(v,{slotMetrics:c},r.default.createElement("div",{className:"rbc-time-gutter rbc-time-column",ref:m},c.groups.map(function(R,O){return r.default.createElement(f.default,{key:O,group:R,resource:w,components:D,renderSlot:x,getters:T})})))};return Ae.default=r.default.forwardRef(function(d,p){return r.default.createElement(l,Object.assign({gutterRef:p},d))}),Ae}var We={};const ys=he(Zn);var Fe={};const Ss=he(Jn),bs=he(Vn);var He={},hr;function ws(){if(hr)return He;hr=1;var t=Se().default,e=ee().default;Object.defineProperty(He,"__esModule",{value:!0}),He.default=void 0;var a=e(Me()),r=e(ge()),n=e(ye()),s=e(Re()),f=e(De()),o=t(le()),l=e(be),d=ut(),p=Dt(),u=t(Gr()),y=(function(k){(0,f.default)(j,k);function j(_,g){var w;return(0,r.default)(this,j),w=(0,s.default)(this,j,[_,g]),w.state={selecting:!1},w.containerRef=(0,o.createRef)(),w}return(0,n.default)(j,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"componentDidUpdate",value:function(g){!g.selectable&&this.props.selectable&&this._selectable(),g.selectable&&!this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var g=this.props,w=g.range,D=g.getNow,T=g.getters,m=g.date,v=g.components.dateCellWrapper,b=g.localizer,E=this.state,i=E.selecting,S=E.startIdx,h=E.endIdx,c=D();return o.default.createElement("div",{className:"rbc-row-bg",ref:this.containerRef},w.map(function(C,x){var R=i&&x>=S&&x<=h,O=T.dayProp(C),N=O.className,q=O.style;return o.default.createElement(v,{key:x,value:C,range:w},o.default.createElement("div",{style:q,className:(0,l.default)("rbc-day-bg",N,R&&"rbc-selected-cell",b.isSameDate(C,c)&&"rbc-today",m&&b.neq(m,C,"month")&&"rbc-off-range-bg")}))}))}},{key:"_selectable",value:function(){var g=this,w=this.containerRef.current,D=this._selector=new u.default(this.props.container,{longPressThreshold:this.props.longPressThreshold}),T=function(v,b){if(!(0,u.isEvent)(w,v)&&!(0,u.isShowMore)(w,v)){var E=(0,u.getBoundsForNode)(w),i=g.props,S=i.range,h=i.rtl;if((0,p.pointInBox)(E,v)){var c=(0,p.getSlotAtX)(E,v.x,h,S.length);g._selectSlot({startIdx:c,endIdx:c,action:b,box:v})}}g._initial={},g.setState({selecting:!1})};D.on("selecting",function(m){var v=g.props,b=v.range,E=v.rtl,i=-1,S=-1;if(g.state.selecting||((0,d.notify)(g.props.onSelectStart,[m]),g._initial={x:m.x,y:m.y}),D.isSelected(w)){var h=(0,u.getBoundsForNode)(w),c=(0,p.dateCellSelection)(g._initial,h,m,b.length,E);i=c.startIdx,S=c.endIdx}g.setState({selecting:!0,startIdx:i,endIdx:S})}),D.on("beforeSelect",function(m){if(g.props.selectable==="ignoreEvents")return!(0,u.isEvent)(g.containerRef.current,m)}),D.on("click",function(m){return T(m,"click")}),D.on("doubleClick",function(m){return T(m,"doubleClick")}),D.on("select",function(m){g._selectSlot((0,a.default)((0,a.default)({},g.state),{},{action:"select",bounds:m})),g._initial={},g.setState({selecting:!1}),(0,d.notify)(g.props.onSelectEnd,[g.state])})}},{key:"_teardownSelectable",value:function(){this._selector&&(this._selector.teardown(),this._selector=null)}},{key:"_selectSlot",value:function(g){var w=g.endIdx,D=g.startIdx,T=g.action,m=g.bounds,v=g.box;w!==-1&&D!==-1&&this.props.onSelectSlot&&this.props.onSelectSlot({start:D,end:w,action:T,bounds:m,box:v,resourceId:this.props.resourceId})}}]),j})(o.default.Component);return He.default=y,He}var Le={},mr;function Es(){if(mr)return Le;mr=1;var t=ee().default;Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=void 0;var e=t(Me()),a=t(ge()),r=t(ye()),n=t(Re()),s=t(De()),f=t(le()),o=t(be),l=t(Yn()),d=Ct(),p=t(Xn()),u=function(_,g){return _.left<=g&&_.right>=g},y=function(_,g){return _.filter(function(w){return u(w,g)}).length},k=(function(j){(0,s.default)(_,j);function _(){return(0,a.default)(this,_),(0,n.default)(this,_,arguments)}return(0,r.default)(_,[{key:"render",value:function(){for(var w=this.props,D=w.segments,T=w.slotMetrics.slots,m=(0,d.eventLevels)(D).levels[0],v=1,b=1,E=[];v<=T;){var i="_lvl_"+v,S=m.filter(function(N){return u(N,v)})[0]||{},h=S.event,c=S.left,C=S.right,x=S.span;if(!h){v++;continue}var R=Math.max(0,c-b);if(this.canRenderSlotEvent(c,x)){var O=l.default.renderEvent(this.props,h);R&&E.push(l.default.renderSpan(T,R,i+"_gap")),E.push(l.default.renderSpan(T,x,i,O)),b=v=C+1}else R&&E.push(l.default.renderSpan(T,R,i+"_gap")),E.push(l.default.renderSpan(T,1,i,this.renderShowMore(D,v))),b=v=v+1}return f.default.createElement("div",{className:"rbc-row"},E)}},{key:"canRenderSlotEvent",value:function(w,D){var T=this.props.segments;return(0,p.default)(w,w+D).every(function(m){var v=y(T,m);return v===1})}},{key:"renderShowMore",value:function(w,D){var T=this,m=this.props.localizer,v=y(w,D);return v?f.default.createElement("button",{type:"button",key:"sm_"+D,className:(0,o.default)("rbc-button-link","rbc-show-more"),onClick:function(E){return T.showMore(D,E)}},m.messages.showMore(v)):!1}},{key:"showMore",value:function(w,D){D.preventDefault(),D.stopPropagation(),this.props.onShowMore(w,D.target)}}]),_})(f.default.Component);return k.defaultProps=(0,e.default)({},l.default.defaultProps),Le.default=k,Le}var Be={},gr;function xs(){if(gr)return Be;gr=1;var t=ee().default;Object.defineProperty(Be,"__esModule",{value:!0}),Be.default=void 0;var e=t(le()),a=function(n){var s=n.children;return e.default.createElement("div",{className:"rbc-row-content-scroll-container"},s)};return Be.default=a,Be}var at={},yr;function Rs(){if(yr)return at;yr=1;var t=ee().default;Object.defineProperty(at,"__esModule",{value:!0}),at.getSlotMetrics=f;var e=t(Me()),a=t(en),r=Ct(),n=function(l,d){return l.left<=d&&l.right>=d},s=function(l,d){return l[0].range===d[0].range&&l[0].events===d[0].events&&l[0].maxRows===d[0].maxRows};function f(){return(0,a.default)(function(o){for(var l=o.range,d=o.events,p=o.maxRows,u=o.minRows,y=o.accessors,k=o.localizer,j=o.maxRowsStatic,_=(0,r.endOfRange)({dateRange:l,localizer:k}),g=_.first,w=_.last,D=d.map(function(S){return(0,r.eventSegments)(S,l,y,k)}),T=(0,r.eventLevels)(D,Math.max(p-1,1)),m=T.levels,v=T.extra,b=(0,r.eventLevels)(D,Math.max(j-1,1)),E=b.extra,i=v.length>0?u-1:u;m.length<i;)m.push([]);return{first:g,last:w,extraStatic:E,levels:m,extra:v,range:l,slots:l.length,clone:function(h){var c=f();return c((0,e.default)((0,e.default)({},o),h))},getDateForSlot:function(h){return l[h]},getSlotForDate:function(h){return l.find(function(c){return k.isSameDate(c,h)})},getEventsForSlot:function(h){return D.filter(function(c){return n(c,h)}).map(function(c){return c.event})},continuesPrior:function(h){return k.continuesPrior(y.start(h),g)},continuesAfter:function(h){var c=y.start(h),C=y.end(h);return k.continuesAfter(c,C,w)}}},s)}return at}var Sr;function Ds(){if(Sr)return Fe;Sr=1;var t=Se().default,e=ee().default;Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=void 0;var a=e(Me()),r=e(ge()),n=e(ye()),s=e(Re()),f=e(De()),o=t(le()),l=e(be),d=e(Ss),p=e(bs),u=e(ws()),y=e(Qn()),k=e(Es()),j=e(nn()),_=e(xs()),g=t(Rs()),w=(function(D){(0,f.default)(T,D);function T(){var m;(0,r.default)(this,T);for(var v=arguments.length,b=new Array(v),E=0;E<v;E++)b[E]=arguments[E];return m=(0,s.default)(this,T,[].concat(b)),m.handleSelectSlot=function(i){var S=m.props,h=S.range,c=S.onSelectSlot;c(h.slice(i.start,i.end+1),i)},m.handleShowMore=function(i,S){if(m.props.isAllDay)m.setState({showAllEvents:!m.state.showAllEvents});else{var h=m.props,c=h.range,C=h.onShowMore,x=m.slotMetrics(m.props),R=(0,p.default)(m.containerRef.current,".rbc-row-bg")[0],O;R&&(O=R.children[i-1]);var N=x.getEventsForSlot(i);C(N,c[i-1],O,i,S)}},m.getContainer=function(){var i=m.props.container;return i?i():m.containerRef.current},m.renderHeadingCell=function(i,S){var h=m.props,c=h.renderHeader,C=h.getNow,x=h.localizer;return c({date:i,key:"header_".concat(S),className:(0,l.default)("rbc-date-cell",x.isSameDate(i,C())&&"rbc-now")})},m.renderDummy=function(){var i=m.props,S=i.className,h=i.range,c=i.renderHeader,C=i.showAllEvents;return o.default.createElement("div",{className:S,ref:m.containerRef},o.default.createElement("div",{className:(0,l.default)("rbc-row-content",C&&"rbc-row-content-scrollable")},c&&o.default.createElement("div",{className:"rbc-row",ref:m.headingRowRef},h.map(m.renderHeadingCell)),o.default.createElement("div",{className:"rbc-row",ref:m.eventRowRef},o.default.createElement("div",{className:"rbc-row-segment"},o.default.createElement("div",{className:"rbc-event"},o.default.createElement("div",{className:"rbc-event-content"}," "))))))},m.containerRef=(0,o.createRef)(),m.headingRowRef=(0,o.createRef)(),m.eventRowRef=(0,o.createRef)(),m.state={showAllEvents:!1},m.slotMetrics=g.getSlotMetrics(),m.eventHeight=0,m}return(0,n.default)(T,[{key:"getRowLimit",value:function(){var v,b=this.eventRowRef.current?(0,d.default)(this.eventRowRef.current):this.eventHeight;this.eventHeight=b;var E=(v=this.headingRowRef)!==null&&v!==void 0&&v.current?(0,d.default)(this.headingRowRef.current):0,i=(0,d.default)(this.containerRef.current)-E,S=Math.max(Math.floor(i/(b+1)),1);return S}},{key:"render",value:function(){var v=this.props,b=v.date,E=v.rtl,i=v.range,S=v.className,h=v.selected,c=v.selectable,C=v.renderForMeasure,x=v.accessors,R=v.getters,O=v.components,N=v.getNow,q=v.renderHeader,P=v.onSelect,A=v.localizer,z=v.onSelectStart,H=v.onSelectEnd,I=v.onDoubleClick,W=v.onKeyPress,F=v.resourceId,B=v.longPressThreshold,Z=v.isAllDay,K=v.resizable,G=v.showAllEvents;if(C)return this.renderDummy();var V=this.slotMetrics((0,a.default)((0,a.default)({},this.props),{},{maxRows:this.state.showAllEvents?1/0:this.props.maxRows,maxRowsStatic:this.props.maxRows})),X=V.levels,te=V.extra,Q=V.extraStatic,ie=G?_.default:j.default,U=O.weekWrapper,se={selected:h,accessors:x,getters:R,localizer:A,components:O,onSelect:P,onDoubleClick:I,onKeyPress:W,resourceId:F,slotMetrics:V,resizable:K};return o.default.createElement("div",{className:S,role:"rowgroup",ref:this.containerRef},Q.length>1&&o.default.createElement("div",{onClick:this.handleShowMore,className:"chevron-show-more"},o.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler ".concat(this.state.showAllEvents?"icon-tabler-chevron-up":"icon-tabler-chevron-down"),width:"20",height:"20",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o.default.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),this.state.showAllEvents?o.default.createElement("path",{d:"M6 15l6 -6l6 6"}):o.default.createElement("path",{d:"M6 9l6 6l6 -6"}))),o.default.createElement(u.default,{localizer:A,date:b,getNow:N,rtl:E,range:i,selectable:c,container:this.getContainer,getters:R,onSelectStart:z,onSelectEnd:H,onSelectSlot:this.handleSelectSlot,components:O,longPressThreshold:B,resourceId:F}),o.default.createElement("div",{className:(0,l.default)("rbc-row-content",G&&"rbc-row-content-scrollable"),role:"row"},q&&o.default.createElement("div",{className:"rbc-row ",ref:this.headingRowRef},i.map(this.renderHeadingCell)),o.default.createElement("div",null,o.default.createElement(ie,null,o.default.createElement(U,Object.assign({isAllDay:Z},se,{rtl:this.props.rtl}),X.map(function(ue,pe){return o.default.createElement(y.default,Object.assign({key:pe,segments:ue},se))}),!!te.length&&o.default.createElement(k.default,Object.assign({segments:te,onShowMore:this.handleShowMore},se)))))))}}]),T})(o.default.Component);return w.defaultProps={minRows:0,maxRows:1/0},Fe.default=w,Fe}var Ge={},br;function Cs(){if(br)return Ge;br=1;var t=ee().default;Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=void 0;var e=t(le()),a=function(n){var s=n.label;return e.default.createElement("span",{role:"columnheader","aria-sort":"none"},s)};return Ge.default=a,Ge}var Ue={},wr;function ks(){if(wr)return Ue;wr=1;var t=ee().default;Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.default=void 0;var e=t(le()),a=function(n){var s=n.label;return e.default.createElement(e.default.Fragment,null,s)};return Ue.default=a,Ue}var Er;function _s(){if(Er)return We;Er=1;var t=ee().default;Object.defineProperty(We,"__esModule",{value:!0}),We.default=void 0;var e=t(Nt()),a=t(ge()),r=t(ye()),n=t(Re()),s=t(De()),f=t(be),o=t(ys),l=t(le()),d=t(Ds()),p=t(Cs()),u=t(ks()),y=ut(),k=(function(j){(0,s.default)(_,j);function _(){var g;(0,a.default)(this,_);for(var w=arguments.length,D=new Array(w),T=0;T<w;T++)D[T]=arguments[T];return g=(0,n.default)(this,_,[].concat(D)),g.handleHeaderClick=function(m,v,b){b.preventDefault(),(0,y.notify)(g.props.onDrillDown,[m,v])},g.renderRow=function(m){var v=g.props,b=v.events,E=v.rtl,i=v.selectable,S=v.getNow,h=v.range,c=v.getters,C=v.localizer,x=v.accessors,R=v.components,O=v.resizable,N=x.resourceId(m),q=m?b.filter(function(P){return x.resource(P)===N}):b;return l.default.createElement(d.default,{isAllDay:!0,rtl:E,getNow:S,minRows:2,maxRows:g.props.allDayMaxRows+1,range:h,events:q,resourceId:N,className:"rbc-allday-cell",selectable:i,selected:g.props.selected,components:R,accessors:x,getters:c,localizer:C,onSelect:g.props.onSelectEvent,onShowMore:g.props.onShowMore,onDoubleClick:g.props.onDoubleClickEvent,onKeyPress:g.props.onKeyPressEvent,onSelectSlot:g.props.onSelectSlot,longPressThreshold:g.props.longPressThreshold,resizable:O})},g}return(0,r.default)(_,[{key:"renderHeaderCells",value:function(w){var D=this,T=this.props,m=T.localizer,v=T.getDrilldownView,b=T.getNow,E=T.getters.dayProp,i=T.components.header,S=i===void 0?p.default:i,h=b();return w.map(function(c,C){var x=v(c),R=m.format(c,"dayFormat"),O=E(c),N=O.className,q=O.style,P=l.default.createElement(S,{date:c,label:R,localizer:m});return l.default.createElement("div",{key:C,style:q,className:(0,f.default)("rbc-header",N,m.isSameDate(c,h)&&"rbc-today")},x?l.default.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(z){return D.handleHeaderClick(c,x,z)}},P):l.default.createElement("span",null,P))})}},{key:"render",value:function(){var w=this,D=this.props,T=D.width,m=D.rtl,v=D.resources,b=D.range,E=D.events,i=D.getNow,S=D.accessors,h=D.selectable,c=D.components,C=D.getters,x=D.scrollRef,R=D.localizer,O=D.isOverflowing,N=D.components,q=N.timeGutterHeader,P=N.resourceHeader,A=P===void 0?u.default:P,z=D.resizable,H={};O&&(H[m?"marginLeft":"marginRight"]="".concat((0,o.default)()-1,"px"));var I=v.groupEvents(E);return l.default.createElement("div",{style:H,ref:x,className:(0,f.default)("rbc-time-header",O&&"rbc-overflowing")},l.default.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:T,minWidth:T,maxWidth:T}},q&&l.default.createElement(q,null)),v.map(function(W,F){var B=(0,e.default)(W,2),Z=B[0],K=B[1];return l.default.createElement("div",{className:"rbc-time-header-content",key:Z||F},K&&l.default.createElement("div",{className:"rbc-row rbc-row-resource",key:"resource_".concat(F)},l.default.createElement("div",{className:"rbc-header"},l.default.createElement(A,{index:F,label:S.resourceTitle(K),resource:K}))),l.default.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(b.length<=1?" rbc-time-header-cell-single-day":"")},w.renderHeaderCells(b)),l.default.createElement(d.default,{isAllDay:!0,rtl:m,getNow:i,minRows:2,maxRows:w.props.allDayMaxRows+1,range:b,events:I.get(Z)||[],resourceId:K&&Z,className:"rbc-allday-cell",selectable:h,selected:w.props.selected,components:c,accessors:S,getters:C,localizer:R,onSelect:w.props.onSelectEvent,onShowMore:w.props.onShowMore,onDoubleClick:w.props.onDoubleClickEvent,onKeyPress:w.props.onKeyPressEvent,onSelectSlot:w.props.onSelectSlot,longPressThreshold:w.props.longPressThreshold,resizable:z}))}))}}]),_})(l.default.Component);return We.default=k,We}var Ke={};const Ms=he(Za);var Ze={};const Ts=he(ea);var st={},xr;function js(){if(xr)return st;xr=1,Object.defineProperty(st,"__esModule",{value:!0}),st.default=e;var t=le();function e(a){var r=a.ref,n=a.callback;(0,t.useEffect)(function(){var s=function(o){r.current&&!r.current.contains(o.target)&&n()};return document.addEventListener("mousedown",s),function(){document.removeEventListener("mousedown",s)}},[r,n])}return st}var Rr;function Os(){if(Rr)return Ze;Rr=1;var t=ee().default,e=Se().default;Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0;var a=e(le()),r=t(Kr()),n=t(Ts),s=t(js()),f=t(ta()),o=Dt();function l(u){var y=u.target,k=u.offset,j=u.container,_=u.box,g=(0,n.default)(y),w=g.top,D=g.left,T=g.width,m=g.height,v=(0,n.default)(j),b=v.top,E=v.left,i=v.width,S=v.height,h=(0,n.default)(_),c=h.width,C=h.height,x=b+S,R=E+i,O=w+C,N=D+c,q=k.x,P=k.y,A=O>x?w-C-P:w+P+m,z=N>R?D+q-c+T:D+q;return{topOffset:A,leftOffset:z}}function d(u){var y=u.containerRef,k=u.accessors,j=u.getters,_=u.selected,g=u.components,w=u.localizer,D=u.position,T=u.show,m=u.events,v=u.slotStart,b=u.slotEnd,E=u.onSelect,i=u.onDoubleClick,S=u.onKeyPress,h=u.handleDragStart,c=u.popperRef,C=u.target,x=u.offset;(0,s.default)({ref:c,callback:T}),(0,a.useLayoutEffect)(function(){var N=l({target:C,offset:x,container:y.current,box:c.current}),q=N.topOffset,P=N.leftOffset;c.current.style.top="".concat(q,"px"),c.current.style.left="".concat(P,"px")},[x.x,x.y,C]);var R=D.width,O={minWidth:R+R/2};return a.default.createElement("div",{style:O,className:"rbc-overlay",ref:c},a.default.createElement("div",{className:"rbc-overlay-header"},w.format(v,"dayHeaderFormat")),m.map(function(N,q){return a.default.createElement(f.default,{key:q,type:"popup",localizer:w,event:N,getters:j,onSelect:E,accessors:k,components:g,onDoubleClick:i,onKeyPress:S,continuesPrior:w.lt(k.end(N),v,"day"),continuesAfter:w.gte(k.start(N),b,"day"),slotStart:v,slotEnd:b,selected:(0,o.isSelected)(N,_),draggable:!0,onDragStart:function(){return h(N)},onDragEnd:function(){return T()}})}))}var p=a.default.forwardRef(function(u,y){return a.default.createElement(d,Object.assign({},u,{popperRef:y}))});return p.propTypes={accessors:r.default.object.isRequired,getters:r.default.object.isRequired,selected:r.default.object,components:r.default.object.isRequired,localizer:r.default.object.isRequired,position:r.default.object.isRequired,show:r.default.func.isRequired,events:r.default.array.isRequired,slotStart:r.default.instanceOf(Date).isRequired,slotEnd:r.default.instanceOf(Date),onSelect:r.default.func,onDoubleClick:r.default.func,onKeyPress:r.default.func,handleDragStart:r.default.func,style:r.default.object,offset:r.default.shape({x:r.default.number,y:r.default.number})},Ze.default=p,Ze}var Dr;function Ns(){if(Dr)return Ke;Dr=1;var t=ee().default,e=Se().default;Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=void 0;var a=e(le()),r=t(Kr()),n=Ms,s=t(Os());function f(l){var d=l.containerRef,p=l.popupOffset,u=p===void 0?5:p,y=l.overlay,k=l.accessors,j=l.localizer,_=l.components,g=l.getters,w=l.selected,D=l.handleSelectEvent,T=l.handleDoubleClickEvent,m=l.handleKeyPressEvent,v=l.handleDragStart,b=l.onHide,E=l.overlayDisplay,i=(0,a.useRef)(null);if(!y.position)return null;var S=u;isNaN(u)||(S={x:u,y:u});var h=y.position,c=y.events,C=y.date,x=y.end;return a.default.createElement(n.Overlay,{rootClose:!0,flip:!0,show:!0,placement:"bottom",onHide:b,target:y.target},function(R){var O=R.props;return a.default.createElement(s.default,Object.assign({},O,{containerRef:d,ref:i,target:y.target,offset:S,accessors:k,getters:g,selected:w,components:_,localizer:j,position:h,show:E,events:c,slotStart:C,slotEnd:x,onSelect:D,onDoubleClick:T,onKeyPress:m,handleDragStart:v}))})}var o=a.default.forwardRef(function(l,d){return a.default.createElement(f,Object.assign({},l,{containerRef:d}))});return o.propTypes={popupOffset:r.default.oneOfType([r.default.number,r.default.shape({x:r.default.number,y:r.default.number})]),overlay:r.default.shape({position:r.default.object,events:r.default.array,date:r.default.instanceOf(Date),end:r.default.instanceOf(Date)}),accessors:r.default.object.isRequired,localizer:r.default.object.isRequired,components:r.default.object.isRequired,getters:r.default.object.isRequired,selected:r.default.object,handleSelectEvent:r.default.func,handleDoubleClickEvent:r.default.func,handleKeyPressEvent:r.default.func,handleDragStart:r.default.func,onHide:r.default.func,overlayDisplay:r.default.func},Ke.default=o,Ke}const Ps=he(ra),Is=he(na);var _e={},Cr;function qs(){if(Cr)return _e;Cr=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.NONE=void 0,_e.default=e;var t=_e.NONE={};function e(a,r){return{map:function(s){return a?a.map(function(f,o){return s([r.resourceId(f),f],o)}):[s([t,null],0)]},groupEvents:function(s){var f=new Map;return a?(s.forEach(function(o){var l=r.resource(o)||t;if(Array.isArray(l))l.forEach(function(p){var u=f.get(p)||[];u.push(o),f.set(p,u)});else{var d=f.get(l)||[];d.push(o),f.set(l,d)}}),f):(f.set(t,s),f)}}}return _e}var kr;function zs(){if(kr)return Ne;kr=1;var t=Se().default,e=ee().default;Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=void 0;var a=e(Nt()),r=e(Me()),n=e(ge()),s=e(ye()),f=e(Re()),o=e(De()),l=t(le()),d=e(be),p=t(ds),u=e(en),y=e(ms()),k=e(gs()),j=e(_s()),_=e(Ns()),g=e(Ps),w=e(Is),D=aa(),T=Ct(),m=ut(),v=e(qs());Ur();var b=Ne.default=(function(E){(0,o.default)(i,E);function i(S){var h;return(0,n.default)(this,i),h=(0,f.default)(this,i,[S]),h.handleScroll=function(c){h.scrollRef.current&&(h.scrollRef.current.scrollLeft=c.target.scrollLeft)},h.handleResize=function(){p.cancel(h.rafHandle),h.rafHandle=p.request(h.checkOverflow)},h.handleKeyPressEvent=function(){h.clearSelection();for(var c=arguments.length,C=new Array(c),x=0;x<c;x++)C[x]=arguments[x];(0,m.notify)(h.props.onKeyPressEvent,C)},h.handleSelectEvent=function(){h.clearSelection();for(var c=arguments.length,C=new Array(c),x=0;x<c;x++)C[x]=arguments[x];(0,m.notify)(h.props.onSelectEvent,C)},h.handleDoubleClickEvent=function(){h.clearSelection();for(var c=arguments.length,C=new Array(c),x=0;x<c;x++)C[x]=arguments[x];(0,m.notify)(h.props.onDoubleClickEvent,C)},h.handleShowMore=function(c,C,x,R,O){var N=h.props,q=N.popup,P=N.onDrillDown,A=N.onShowMore,z=N.getDrilldownView,H=N.doShowMoreDrillDown;if(h.clearSelection(),q){var I=(0,w.default)(x,h.containerRef.current);h.setState({overlay:{date:C,events:c,position:(0,r.default)((0,r.default)({},I),{},{width:"200px"}),target:O}})}else H&&(0,m.notify)(P,[C,z(C)||D.views.DAY]);(0,m.notify)(A,[c,C,R])},h.handleSelectAllDaySlot=function(c,C){var x=h.props.onSelectSlot,R=new Date(c[0]),O=new Date(c[c.length-1]);O.setDate(c[c.length-1].getDate()+1),(0,m.notify)(x,{slots:c,start:R,end:O,action:C.action,resourceId:C.resourceId})},h.overlayDisplay=function(){h.setState({overlay:null})},h.checkOverflow=function(){if(!h._updatingOverflow){var c=h.contentRef.current,C=c.scrollHeight>c.clientHeight;h.state.isOverflowing!==C&&(h._updatingOverflow=!0,h.setState({isOverflowing:C},function(){h._updatingOverflow=!1}))}},h.memoizedResources=(0,u.default)(function(c,C){return(0,v.default)(c,C)}),h.state={gutterWidth:void 0,isOverflowing:null},h.scrollRef=l.default.createRef(),h.contentRef=l.default.createRef(),h.containerRef=l.default.createRef(),h._scrollRatio=null,h.gutterRef=(0,l.createRef)(),h}return(0,s.default)(i,[{key:"getSnapshotBeforeUpdate",value:function(){return this.checkOverflow(),null}},{key:"componentDidMount",value:function(){this.props.width==null&&this.measureGutter(),this.calculateScroll(),this.applyScroll(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),p.cancel(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)}},{key:"componentDidUpdate",value:function(){this.applyScroll()}},{key:"renderEvents",value:function(h,c,C,x){var R=this,O=this.props,N=O.min,q=O.max,P=O.components,A=O.accessors,z=O.localizer,H=O.dayLayoutAlgorithm,I=this.memoizedResources(this.props.resources,A),W=I.groupEvents(c),F=I.groupEvents(C);return I.map(function(B,Z){var K=(0,a.default)(B,2),G=K[0],V=K[1];return h.map(function(X,te){var Q=(W.get(G)||[]).filter(function(U){return z.inRange(X,A.start(U),A.end(U),"day")}),ie=(F.get(G)||[]).filter(function(U){return z.inRange(X,A.start(U),A.end(U),"day")});return l.default.createElement(y.default,Object.assign({},R.props,{localizer:z,min:z.merge(X,N),max:z.merge(X,q),resource:V&&G,components:P,isNow:z.isSameDate(X,x),key:Z+"-"+te,date:X,events:Q,backgroundEvents:ie,dayLayoutAlgorithm:H}))})})}},{key:"render",value:function(){var h,c=this.props,C=c.events,x=c.backgroundEvents,R=c.range,O=c.width,N=c.rtl,q=c.selected,P=c.getNow,A=c.resources,z=c.components,H=c.accessors,I=c.getters,W=c.localizer,F=c.min,B=c.max,Z=c.showMultiDayTimes,K=c.longPressThreshold,G=c.resizable;O=O||this.state.gutterWidth;var V=R[0],X=R[R.length-1];this.slots=R.length;var te=[],Q=[],ie=[];return C.forEach(function(U){if((0,T.inRange)(U,V,X,H,W)){var se=H.start(U),ue=H.end(U);H.allDay(U)||W.startAndEndAreDateOnly(se,ue)||!Z&&!W.isSameDate(se,ue)?te.push(U):Q.push(U)}}),x.forEach(function(U){(0,T.inRange)(U,V,X,H,W)&&ie.push(U)}),te.sort(function(U,se){return(0,T.sortEvents)(U,se,H,W)}),l.default.createElement("div",{className:(0,d.default)("rbc-time-view",A&&"rbc-time-view-resources"),ref:this.containerRef},l.default.createElement(j.default,{range:R,events:te,width:O,rtl:N,getNow:P,localizer:W,selected:q,allDayMaxRows:this.props.showAllEvents?1/0:(h=this.props.allDayMaxRows)!==null&&h!==void 0?h:1/0,resources:this.memoizedResources(A,H),selectable:this.props.selectable,accessors:H,getters:I,components:z,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:K,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectEvent,onShowMore:this.handleShowMore,onDoubleClickEvent:this.props.onDoubleClickEvent,onKeyPressEvent:this.props.onKeyPressEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView,resizable:G}),this.props.popup&&this.renderOverlay(),l.default.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},l.default.createElement(k.default,{date:V,ref:this.gutterRef,localizer:W,min:W.merge(V,F),max:W.merge(V,B),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:z,className:"rbc-time-gutter",getters:I}),this.renderEvents(R,Q,ie,P())))}},{key:"renderOverlay",value:function(){var h,c,C=this,x=(h=(c=this.state)===null||c===void 0?void 0:c.overlay)!==null&&h!==void 0?h:{},R=this.props,O=R.accessors,N=R.localizer,q=R.components,P=R.getters,A=R.selected,z=R.popupOffset,H=R.handleDragStart,I=function(){return C.setState({overlay:null})};return l.default.createElement(_.default,{overlay:x,accessors:O,localizer:N,components:q,getters:P,selected:A,popupOffset:z,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:H,show:!!x.position,overlayDisplay:this.overlayDisplay,onHide:I})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}},{key:"measureGutter",value:function(){var h=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame(function(){var c,C=(c=h.gutterRef)!==null&&c!==void 0&&c.current?(0,g.default)(h.gutterRef.current):void 0;C&&h.state.gutterWidth!==C&&h.setState({gutterWidth:C})})}},{key:"applyScroll",value:function(){if(this._scrollRatio!=null&&this.props.enableAutoScroll===!0){var h=this.contentRef.current;h.scrollTop=h.scrollHeight*this._scrollRatio,this._scrollRatio=null}}},{key:"calculateScroll",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,c=h.min,C=h.max,x=h.scrollToTime,R=h.localizer,O=R.diff(R.merge(x,c),x,"milliseconds"),N=R.diff(c,C,"milliseconds");this._scrollRatio=O/N}}]),i})(l.Component);return b.defaultProps={step:30,timeslots:2},Ne}var $s=zs();const As=sa($s),_r=(t,e)=>re.fromJSDate(t).setLocale(e==="ru"?"ru":"en").toFormat("ccc, dd LLL yyyy"),Ye=({date:t,localizer:e,max:a=e.endOf(new Date,"day"),min:r=e.startOf(new Date,"day"),scrollToTime:n=e.startOf(new Date,"day"),endDate:s,...f})=>{const o=$.useMemo(()=>Ye.range(t,{localizer:e,endDate:s}),[t,e,s]);return M.jsx(As,{date:t,localizer:e,max:a,min:r,range:o,scrollToTime:n,...f})};Ye.range=(t,{localizer:e,endDate:a})=>{let r=t;const n=[];for(;e.lte(r,a,"day");)n.push(r),r=e.add(r,1,"day");return n};Ye.navigate=t=>t;Ye.title=()=>"";const Ws=t=>{const e=ce.c(33),{startDate:a,endDate:r,calendarEvents:n,activeCalendars:s,orientation:f,timezone:o,printStyle:l,hourStart:d,hourEnd:p,ref:u}=t,{i18n:y}=de(),k=y.language;let j;e[0]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[0]=j):j=e[0];const[_,g]=$.useState(j);let w,D;e[1]!==r||e[2]!==a?(w=()=>{const S=Math.ceil(re.fromJSDate(r).diff(re.fromJSDate(a),"days").days)+1,h=S>7?4:1,c=Math.ceil(S/7),C=Math.max(h,Math.floor(S/c)),x=[];let R=re.fromJSDate(a);for(let O=0;O<c;O++){const N=R.toJSDate(),q=O===0?S-C*(c-1):C,P=R.plus({days:q-1}).toJSDate();x.push({segmentStart:N,segmentEnd:P}),R=R.plus({days:q})}g(x)},D=[a,r],e[1]=r,e[2]=a,e[3]=w,e[4]=D):(w=e[3],D=e[4]),$.useEffect(w,D);const T=oe(Rt);let m;e[5]!==T||e[6]!==l?(m=S=>Qr(T,xe.WEEK,l)(S),e[5]=T,e[6]=l,e[7]=m):m=e[7];const v=m,b=_.length;let E;if(e[8]!==s||e[9]!==n||e[10]!==k||e[11]!==v||e[12]!==p||e[13]!==d||e[14]!==f||e[15]!==l||e[16]!==_||e[17]!==o){let S;e[19]!==s||e[20]!==n||e[21]!==k||e[22]!==v||e[23]!==p||e[24]!==d||e[25]!==f||e[26]!==l||e[27]!==o?(S=h=>{const{segmentStart:c,segmentEnd:C}=h;return M.jsxs("div",{className:`print-calendar calendar-${f}`,children:[M.jsxs(J,{display:"flex",style:{justifyContent:"space-between"},mb:2,children:[s,M.jsxs(ae,{fz:12,style:{whiteSpace:"nowrap",marginLeft:8},children:[_r(c,k)," –"," ",_r(C,k),o&&` - ${o}`]})]}),M.jsx(Lr,{eventPropGetter:v,components:{event:x=>M.jsx(Xr,{printStyle:l,view:xe.WEEK,...x})},dayLayoutAlgorithm:"no-overlap",culture:k==="ru"?"ru-RU":"en-GB",events:n,defaultView:xe.WEEK,date:c,style:{width:"100%",height:"95%"},localizer:Br.localizer,views:{month:!0,week:Ye},toolbar:!1,min:d,max:p,endDate:C})]},c.toString())},e[19]=s,e[20]=n,e[21]=k,e[22]=v,e[23]=p,e[24]=d,e[25]=f,e[26]=l,e[27]=o,e[28]=S):S=e[28],E=_.map(S),e[8]=s,e[9]=n,e[10]=k,e[11]=v,e[12]=p,e[13]=d,e[14]=f,e[15]=l,e[16]=_,e[17]=o,e[18]=E}else E=e[18];let i;return e[29]!==u||e[30]!==_.length||e[31]!==E?(i=M.jsx(ct,{pages:b,ref:u,children:E}),e[29]=u,e[30]=_.length,e[31]=E,e[32]=i):i=e[32],i},Mr=()=>{const t=re.now(),e=t.startOf("week"),a=t.endOf("week").startOf("day");return[e.toJSDate(),a.toJSDate()]},sn=(t,e,a)=>re.fromObject({year:1970,month:1,day:1,hour:t,minute:e,second:0},{zone:a}).setZone("local").toJSDate(),Tr=(t,e)=>e?sn(+t,0,e):new Date(1970,1,1,+t,0,0),jr=(t,e)=>e?sn(+t==0?23:+t,+t==0?59:0,e):new Date(1970,1,1,+t==0?23:+t,+t==0?59:0,0),Or=t=>{const e=Array.from({length:23},(a,r)=>({label:`${(r+1).toString().padStart(2,"0")}:00`,value:(r+1).toString()}));return t?e.push({label:"00:00",value:"0"}):e.unshift({label:"00:00",value:"0"}),e},Fs=(t,e,a)=>{const r=re.fromJSDate(t).toFormat("HH:mm");return r>=e&&r<=a},Hs=t=>{const{open:e,onClose:a}=t,{i18n:r,t:n}=de(),s=$.useRef(null),[f,o]=$.useState(),[l,d]=$.useState("landscape"),[p,u]=$.useState("default"),[y,k]=$.useState("week"),[j,_]=$.useState(Mr),[g,w]=$.useState(Mr),[D,T]=$.useState("0"),[m,v]=$.useState("0"),b=oe(oa),E=oe(la),i=oe(Hr),S=oe(ia),h=oe(ca),c=i.Timezone?S[i.Timezone.Id]:null,C=ua.useReactToPrint({contentRef:s,onAfterPrint:a}),x=lt(),R=b.filter(I=>I.isActive),O=M.jsx(ae,{fz:12,children:R.map((I,W)=>M.jsxs($.Fragment,{children:[M.jsx(ae,{span:!0,c:p==="blackWhite"?"black":I.color,inherit:!0,children:I.name},I.id),W<R.length-1&&", "]},I.id))}),N=$.useMemo(()=>({activeCalendars:O,calendarEvents:h.filter(I=>Fs(I.start,re.fromJSDate(Tr(D,c==null?void 0:c.tzName)).toFormat("HH:mm"),re.fromJSDate(jr(m,c==null?void 0:c.tzName)).toFormat("HH:mm"))||I.allDay),startDate:g[0],endDate:g[1],timezone:(c==null?void 0:c.label)||"",orientation:l,printStyle:p,hourStart:Tr(D,c==null?void 0:c.tzName),hourEnd:jr(m,c==null?void 0:c.tzName)}),[O,h,g,c,l,p,D,m]),q=$.useCallback(async()=>{if(!g[0]||!g[1])return;const W={body:{CalendarIds:b.filter(F=>F.isActive).reduce((F,B)=>(B.id&&F.push(B.id),F),[]),StartDate:Kt(g[0]),EndDate:Kt(g[1])},calendarsGroup:E,isEdit:!1};await x(da(W)).unwrap()},[x,E,g]),P=I=>{const W=[Jt(I[0]),Jt(I[1])];W[0]&&W[1]&&(w(W),_(W)),_(W)},A=I=>{d(I),f&&document.head.removeChild(f);const W=document.createElement("style");return W.type="text/css",W.innerHTML=`
      @media print {
        @page {
          size: A4 ${I};
        }  
      }
    `,document.head.appendChild(W),o(W),W};$.useEffect(()=>{!g[0]||!g[1]||b.length===0||q()},[g[0],g[1],b]);const z=I=>{I&&(+I>+m&&+m!=0&&v((+I+1).toString()),T(I))},H=I=>{I&&(+I<+D&&+I!=0&&T((+I-1).toString()),v(I))};return M.jsx(Ar,{size:"95%",centered:!0,keepMounted:!1,opened:e,withCloseButton:!1,onClose:a,padding:0,className:"calendar-preview",children:M.jsxs(J,{display:"flex",w:"100%",children:[M.jsx(J,{style:{position:"absolute",right:0,top:8,zIndex:9},children:M.jsx(Ee,{size:"xs",variant:"transparent",onClick:a,children:M.jsx(fa,{size:"24",color:"black"})})}),M.jsxs(J,{w:320,display:"flex",style:{flexDirection:"column"},p:16,children:[M.jsxs(Zt,{children:[M.jsx(pa,{fz:20,order:2,fw:400,children:n("printEvent.preview")}),M.jsx(ve,{mb:16,children:M.jsx(va,{h:36,locale:r.language,popoverProps:{withinPortal:!0},type:"range",value:j,onChange:P,label:n("printEvent.printRange"),style:{width:"100%",marginBottom:8},valueFormat:"dd DD.MM.YYYY"})}),M.jsx(Oe,{w:"100%",size:"sm",label:n("printEvent.viewMode"),data:[{value:"auto",label:n("printEvent.autoView")},{value:"day",label:n("calendarViews.day")},{value:"week",label:n("calendarViews.week")},{value:"work_week",label:n("calendarViews.workingWeek")},{value:"month",label:n("calendarViews.month")}],value:y,onChange:I=>k(I)}),M.jsx(Oe,{w:"100%",size:"sm",label:n("printEvent.orientation"),data:[{value:"landscape",label:n("printEvent.landscape")},{value:"portrait",label:n("printEvent.portrait")}],value:l,onChange:I=>I&&A(I)}),M.jsx(Oe,{w:"100%",size:"sm",label:n("printEvent.colorStyle"),data:[{value:"default",label:n("printEvent.defaultStyle")},{value:"line",label:n("printEvent.contours")},{value:"blackWhite",label:n("printEvent.blackWhite")}],value:p,onChange:I=>I&&u(I)}),M.jsx(Zt,{children:M.jsxs(ve,{gap:8,align:"flex-end",children:[M.jsx(Oe,{label:n("printEvent.timeRange"),data:Or(),value:D,onChange:z}),M.jsx(Oe,{data:Or(!0),value:m,onChange:H})]})})]}),M.jsx($r,{gap:10,mt:"auto",justify:"flex-end",children:M.jsxs(ve,{gap:8,children:[M.jsx(Ee,{variant:"outline",onClick:a,children:n("buttons.cancel")}),M.jsx(Ee,{type:"submit",onClick:()=>C(),children:n("buttons.print")})]})})]}),y==="day"&&M.jsx(os,{ref:s,...N}),(y==="week"||y==="work_week")&&M.jsx(as,{ref:s,view:y,...N}),y==="month"&&M.jsx(ls,{ref:s,...N}),y==="auto"&&M.jsx(Ws,{ref:s,...N})]})})},Ls=()=>{const t=ce.c(16),{t:e}=de(),[a,r]=$.useState(!1),{isMobile:n}=Wr();if(n)return null;let s;t[0]!==e?(s=e("settings.navBar.printCalendar"),t[0]=e,t[1]=s):s=t[1];let f;t[2]!==s?(f=M.jsx(ae,{pb:8,className:"section-title",children:s}),t[2]=s,t[3]=f):f=t[3];let o,l;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(!0),l=M.jsx(xa,{size:"1em"}),t[4]=o,t[5]=l):(o=t[4],l=t[5]);let d;t[6]!==e?(d=e("settings.navBar.print"),t[6]=e,t[7]=d):d=t[7];let p;t[8]!==d?(p=M.jsx(Ee,{maw:200,mb:20,variant:"default",onClick:o,leftSection:l,children:d}),t[8]=d,t[9]=p):p=t[9];let u;t[10]!==a?(u=a&&M.jsx(Hs,{open:a,onClose:()=>r(!1)}),t[10]=a,t[11]=u):u=t[11];let y;return t[12]!==f||t[13]!==p||t[14]!==u?(y=M.jsxs(M.Fragment,{children:[f,p,u]}),t[12]=f,t[13]=p,t[14]=u,t[15]=y):y=t[15],y},Gs=()=>{const t=ce.c(2),e=oe(ha),a=oe(ma);if(e==="fulfilled"&&a==="fulfilled"){let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=M.jsx(ga,{withFullPage:!0,children:M.jsxs(ya,{children:[M.jsx(Qa,{}),M.jsx(vt,{h:30}),M.jsx(Xa,{}),M.jsx(vt,{h:30}),M.jsx(Ja,{}),M.jsx(vt,{h:30}),M.jsx(Ls,{})]})}),t[0]=n):n=t[0],n}let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=M.jsx(ve,{w:"100%",h:"calc(100vh - 8rem)",justify:"center",align:"center",children:M.jsx(Sa,{})}),t[1]=r):r=t[1],r};export{Gs as default};
