@code-rhapsodie/react-scheduler 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -0
- package/dist/App.d.ts +3 -0
- package/dist/assets/icons/index.d.ts +3 -0
- package/dist/assets/icons/types.d.ts +5 -0
- package/dist/components/Calendar/Calendar.d.ts +4 -0
- package/dist/components/Calendar/Grid/Grid.d.ts +5 -0
- package/dist/components/Calendar/Grid/index.d.ts +1 -0
- package/dist/components/Calendar/Grid/styles.d.ts +6 -0
- package/dist/components/Calendar/Grid/types.d.ts +10 -0
- package/dist/components/Calendar/Header/Header.d.ts +4 -0
- package/dist/components/Calendar/Header/Topbar/Topbar.d.ts +4 -0
- package/dist/components/Calendar/Header/Topbar/index.d.ts +1 -0
- package/dist/components/Calendar/Header/Topbar/styles.d.ts +8 -0
- package/dist/components/Calendar/Header/Topbar/types.d.ts +5 -0
- package/dist/components/Calendar/Header/index.d.ts +1 -0
- package/dist/components/Calendar/Header/styles.d.ts +4 -0
- package/dist/components/Calendar/Header/types.d.ts +6 -0
- package/dist/components/Calendar/index.d.ts +1 -0
- package/dist/components/Calendar/styles.d.ts +4 -0
- package/dist/components/Calendar/types.d.ts +12 -0
- package/dist/components/ConfigPanel/ConfigPanel.d.ts +4 -0
- package/dist/components/ConfigPanel/index.d.ts +1 -0
- package/dist/components/ConfigPanel/styles.d.ts +8 -0
- package/dist/components/ConfigPanel/types.d.ts +5 -0
- package/dist/components/EmptyBox/EmptyBox.d.ts +3 -0
- package/dist/components/EmptyBox/index.d.ts +1 -0
- package/dist/components/EmptyBox/styles.d.ts +3 -0
- package/dist/components/Icon/Icon.d.ts +4 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +8 -0
- package/dist/components/IconButton/IconButton.d.ts +4 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/IconButton/styles.d.ts +2 -0
- package/dist/components/IconButton/types.d.ts +10 -0
- package/dist/components/LeftColumn/LeftColumn.d.ts +4 -0
- package/dist/components/LeftColumn/LeftColumnItem/LeftColumnItem.d.ts +4 -0
- package/dist/components/LeftColumn/LeftColumnItem/index.d.ts +1 -0
- package/dist/components/LeftColumn/LeftColumnItem/styles.d.ts +7 -0
- package/dist/components/LeftColumn/LeftColumnItem/types.d.ts +14 -0
- package/dist/components/LeftColumn/index.d.ts +1 -0
- package/dist/components/LeftColumn/styles.d.ts +5 -0
- package/dist/components/LeftColumn/types.d.ts +15 -0
- package/dist/components/Loader/Loader.d.ts +4 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Loader/styles.d.ts +3 -0
- package/dist/components/Loader/types.d.ts +6 -0
- package/dist/components/PaginationButton/PaginationButton.d.ts +4 -0
- package/dist/components/PaginationButton/index.d.ts +1 -0
- package/dist/components/PaginationButton/styles.d.ts +5 -0
- package/dist/components/PaginationButton/types.d.ts +11 -0
- package/dist/components/Scheduler/Scheduler.d.ts +4 -0
- package/dist/components/Scheduler/styles.d.ts +3 -0
- package/dist/components/Scheduler/types.d.ts +16 -0
- package/dist/components/Tiles/Tile/Tile.d.ts +4 -0
- package/dist/components/Tiles/Tile/index.d.ts +1 -0
- package/dist/components/Tiles/Tile/styles.d.ts +6 -0
- package/dist/components/Tiles/Tile/types.d.ts +10 -0
- package/dist/components/Tiles/Tiles.d.ts +4 -0
- package/dist/components/Tiles/index.d.ts +1 -0
- package/dist/components/Tiles/types.d.ts +8 -0
- package/dist/components/Toggle/Toggle.d.ts +4 -0
- package/dist/components/Toggle/index.d.ts +1 -0
- package/dist/components/Toggle/styles.d.ts +4 -0
- package/dist/components/Toggle/types.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/styles.d.ts +9 -0
- package/dist/components/Tooltip/types.d.ts +5 -0
- package/dist/components/index.d.ts +16 -0
- package/dist/constants.d.ts +50 -0
- package/dist/context/CalendarProvider/CalendarProvider.d.ts +6 -0
- package/dist/context/CalendarProvider/calendarContext.d.ts +3 -0
- package/dist/context/CalendarProvider/index.d.ts +1 -0
- package/dist/context/CalendarProvider/types.d.ts +38 -0
- package/dist/context/LocaleProvider/LocaleProvider.d.ts +6 -0
- package/dist/context/LocaleProvider/index.d.ts +1 -0
- package/dist/context/LocaleProvider/localeContext.d.ts +3 -0
- package/dist/context/LocaleProvider/locales.d.ts +9 -0
- package/dist/context/LocaleProvider/types.d.ts +34 -0
- package/dist/hooks/types.d.ts +39 -0
- package/dist/hooks/usePagination.d.ts +3 -0
- package/dist/index.cjs +554 -0
- package/dist/index.css +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +4875 -0
- package/dist/locales/de.d.ts +17 -0
- package/dist/locales/en.d.ts +17 -0
- package/dist/locales/es.d.ts +17 -0
- package/dist/locales/fr.d.ts +17 -0
- package/dist/locales/he.d.ts +17 -0
- package/dist/locales/index.d.ts +10 -0
- package/dist/locales/it.d.ts +17 -0
- package/dist/locales/lt.d.ts +17 -0
- package/dist/locales/pl.d.ts +17 -0
- package/dist/locales/ptBR.d.ts +17 -0
- package/dist/locales/ro.d.ts +17 -0
- package/dist/main.d.ts +1 -0
- package/dist/mock/appMock.d.ts +5 -0
- package/dist/styles.d.ts +15 -0
- package/dist/types/global.d.ts +172 -0
- package/dist/types/guards.d.ts +2 -0
- package/dist/utils/dates.d.ts +6 -0
- package/dist/utils/drawDashedLine.d.ts +2 -0
- package/dist/utils/drawGrid/drawCell.d.ts +2 -0
- package/dist/utils/drawGrid/drawGrid.d.ts +3 -0
- package/dist/utils/drawGrid/drawHourlyView.d.ts +3 -0
- package/dist/utils/drawGrid/drawMonthlyView.d.ts +3 -0
- package/dist/utils/drawGrid/drawYearlyView.d.ts +3 -0
- package/dist/utils/drawHeader/drawHeader.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/DrawZoom2MonthsOnTop.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawDaysOnBottom.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawMonthsInMiddle.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawMonthsOnTop.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawWeeksInMiddle.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawWeeksOnBottom.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawYearsOnTop.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawZoom2DaysInMiddle.d.ts +3 -0
- package/dist/utils/drawHeader/drawRows/drawZoom2HoursOnBottom.d.ts +3 -0
- package/dist/utils/drawRow.d.ts +3 -0
- package/dist/utils/getBoxFillStyle.d.ts +3 -0
- package/dist/utils/getCanvasWidth.d.ts +1 -0
- package/dist/utils/getCols.d.ts +2 -0
- package/dist/utils/getDatesRange.d.ts +11 -0
- package/dist/utils/getDayOccupancy.d.ts +3 -0
- package/dist/utils/getDuration.d.ts +2 -0
- package/dist/utils/getHourOccupancy.d.ts +3 -0
- package/dist/utils/getOccupancy.d.ts +3 -0
- package/dist/utils/getProjectsOnGrid.d.ts +5 -0
- package/dist/utils/getTextStyle.d.ts +3 -0
- package/dist/utils/getTileProperties.d.ts +3 -0
- package/dist/utils/getTileTextColor.d.ts +13 -0
- package/dist/utils/getTileXAndWidth.d.ts +5 -0
- package/dist/utils/getTimeOccupancy.d.ts +2 -0
- package/dist/utils/getTooltipData.d.ts +2 -0
- package/dist/utils/getTotalHoursAndMinutes.d.ts +5 -0
- package/dist/utils/getTotalRowsPerPage.d.ts +2 -0
- package/dist/utils/getWeekOccupancy.d.ts +3 -0
- package/dist/utils/resizeCanvas.d.ts +1 -0
- package/dist/utils/setProjectsInRows.d.ts +2 -0
- package/dist/utils/splitToPages.d.ts +2 -0
- package/package.json +98 -0
- package/readme.md +369 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("react");l=c(l);let u=require("react/jsx-runtime");function d(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=d(function(e){return f.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),m=`-ms-`,h=`-moz-`,g=`-webkit-`,_=`comm`,v=`rule`,y=`decl`,b=`@import`,x=`@namespace`,S=`@keyframes`,C=`@layer`,w=Math.abs,T=String.fromCharCode,E=Object.assign;function ee(e,t){return A(e,0)^45?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}function te(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function k(e,t,n){return e.indexOf(t,n)}function A(e,t){return e.charCodeAt(t)|0}function j(e,t,n){return e.slice(t,n)}function M(e){return e.length}function ne(e){return e.length}function re(e,t){return t.push(e),e}function ie(e,t){return e.map(t).join(``)}function ae(e,t){return e.filter(function(e){return!D(e,t)})}var oe=1,N=1,se=0,P=0,F=0,ce=``;function le(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:oe,column:N,length:o,return:``,siblings:s}}function I(e,t){return E(le(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=I(e.root,{children:[e]});re(e,e.siblings)}function de(){return F}function fe(){return F=P>0?A(ce,--P):0,N--,F===10&&(N=1,oe--),F}function L(){return F=P<se?A(ce,P++):0,N++,F===10&&(N=1,oe++),F}function R(){return A(ce,P)}function pe(){return P}function me(e,t){return j(ce,e,t)}function he(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ge(e){return oe=N=1,se=M(ce=e),P=0,[]}function _e(e){return ce=``,e}function ve(e){return te(me(P-1,xe(e===91?e+2:e===40?e+1:e)))}function ye(e){for(;(F=R())&&F<33;)L();return he(e)>2||he(F)>3?``:` `}function be(e,t){for(;--t&&L()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return me(e,pe()+(t<6&&R()==32&&L()==32))}function xe(e){for(;L();)switch(F){case e:return P;case 34:case 39:e!==34&&e!==39&&xe(F);break;case 40:e===41&&xe(e);break;case 92:L();break}return P}function Se(e,t){for(;L()&&e+F!==57&&(e+F!==84||R()!==47););return`/*`+me(t,P-1)+`*`+T(e===47?e:L())}function Ce(e){for(;!he(R());)L();return me(e,P)}function we(e){return _e(Te(``,null,null,null,[``],e=ge(e),0,[0],e))}function Te(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=L()){case 40:if(m!=108&&A(C,d-1)==58){k(C+=O(ve(v),`&`,`&\f`),`&\f`,w(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ve(v);break;case 9:case 10:case 13:case 32:C+=ye(m);break;case 92:C+=be(pe()-1,7);continue;case 47:switch(R()){case 42:case 47:re(De(Se(L(),pe()),t,n,c),c),(he(m||1)==5||he(R()||1)==5)&&M(C)&&j(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=M(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=O(C,/\f/g,``)),p>0&&(M(C)-d||h===0&&m===47)&&re(p>32?Oe(C+`;`,r,n,d-1,c):Oe(O(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(re(S=Ee(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123){if(u===0)Te(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(A(C,3)===110)break;case 108:if(A(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Te(e,S,S,r&&re(Ee(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Te(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+M(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&fe()==125)continue}switch(C+=T(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(M(C)-1)*_,_=1;break;case 64:R()===45&&(C+=ve(L())),f=R(),u=d=M(y=C+=Ce(pe())),v++;break;case 45:m===45&&M(C)==2&&(h=0)}}return a}function Ee(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=ne(p),h=0,g=0,_=0;h<r;++h)for(var y=0,b=j(e,f+1,f=w(g=o[h])),x=e;y<m;++y)(x=te(g>0?p[y]+` `+b:O(b,/&\f/g,p[y])))&&(c[_++]=x);return le(e,t,n,i===0?v:s,c,l,u,d)}function De(e,t,n,r){return le(e,t,n,_,T(de()),j(e,2,-2),0,r)}function Oe(e,t,n,r,i){return le(e,t,n,y,j(e,0,r),j(e,r+1,-1),r,i)}function ke(e,t,n){switch(ee(e,t)){case 5103:return g+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return g+e+e;case 4855:return g+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return h+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return g+e+h+e+m+e+e;case 5936:switch(A(e,t+11)){case 114:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return g+e+m+e+e;case 6165:return g+e+m+`flex-`+e+e;case 5187:return g+e+O(e,/(\w+).+(:[^]+)/,g+`box-$1$2`+m+`flex-$1$2`)+e;case 5443:return g+e+m+`flex-item-`+O(e,/flex-|-self/g,``)+(D(e,/flex-|baseline/)?``:m+`grid-row-`+O(e,/flex-|-self/g,``))+e;case 4675:return g+e+m+`flex-line-pack`+O(e,/align-content|flex-|-self/g,``)+e;case 5548:return g+e+m+O(e,`shrink`,`negative`)+e;case 5292:return g+e+m+O(e,`basis`,`preferred-size`)+e;case 6060:return g+`box-`+O(e,`-grow`,``)+g+e+m+O(e,`grow`,`positive`)+e;case 4554:return g+O(e,/([^-])(transform)/g,`$1`+g+`$2`)+e;case 6187:return O(O(O(e,/(zoom-|grab)/,g+`$1`),/(image-set)/,g+`$1`),e,``)+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,g+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,g+`box-pack:$3`+m+`flex-pack:$3`),/space-between/,`justify`)+g+e+e;case 4200:if(!D(e,/flex-|baseline/))return m+`grid-column-align`+j(e,t)+e;break;case 2592:case 3360:return m+O(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,D(e.props,/grid-\w+-end/)})?~k(e+(n=n[t].value),`span`,0)?e:m+O(e,`-start`,``)+e+m+`grid-row-span:`+(~k(n,`span`,0)?D(n,/\d+/):D(n,/\d+/)-+D(e,/\d+/))+`;`:m+O(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return D(e.props,/grid-\w+-start/)})?e:m+O(O(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,g+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(e)-1-t>6)switch(A(e,t+1)){case 109:if(A(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,`$1`+g+`$2-$3$1`+h+(A(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~k(e,`stretch`,0)?ke(O(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return m+n+`:`+r+s+(i?m+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(A(e,t+6)===121)return O(e,`:`,`:`+g)+e;break;case 6444:switch(A(e,A(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+g+(A(e,14)===45?`inline-`:``)+`box$3$1`+g+`$2$3$1`+m+`$2box$3`)+e;case 100:return O(e,`:`,`:`+m)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,`scroll-`,`scroll-snap-`)+e}return e}function Ae(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function je(e,t,n,r){switch(e.type){case C:if(e.children.length)break;case b:case x:case y:return e.return=e.return||e.value;case _:return``;case S:return e.return=e.value+`{`+Ae(e.children,r)+`}`;case v:if(!M(e.value=e.props.join(`,`)))return``}return M(n=Ae(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Me(e){var t=ne(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ne(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case y:e.return=ke(e.value,e.length,n);return;case S:return Ae([I(e,{value:O(e.value,`@`,`@`+g)})],r);case v:if(e.length)return ie(n=e.props,function(t){switch(D(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:ue(I(e,{props:[O(t,/:(read-\w+)/,`:`+h+`$1`)]})),ue(I(e,{props:[t]})),E(e,{props:ae(n,r)});break;case`::placeholder`:ue(I(e,{props:[O(t,/:(plac\w+)/,`:`+g+`input-$1`)]})),ue(I(e,{props:[O(t,/:(plac\w+)/,`:`+h+`$1`)]})),ue(I(e,{props:[O(t,/:(plac\w+)/,m+`input-$1`)]})),ue(I(e,{props:[t]})),E(e,{props:ae(n,r)})}return``})}}var z=typeof process<`u`&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||`data-styled`,Fe=`active`,Ie=`data-styled-version`,Le=`6.5.1`,Re=`/*!sc*/
|
|
2
|
+
`,ze=typeof window<`u`&&typeof document<`u`;function Be(e){if(typeof process<`u`&&process.env!==void 0){let t=process.env[e];if(t!==void 0&&t!==``)return t!==`false`}}var Ve=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Be(`REACT_APP_SC_DISABLE_SPEEDY`)??Be(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&process.env!==void 0&&process.env.NODE_ENV!==`production`)),He=`sc-keyframes-`,Ue={},We=process.env.NODE_ENV===`production`?{}:{1:`Cannot create styled-component for component: %s.
|
|
3
|
+
|
|
4
|
+
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
5
|
+
|
|
6
|
+
- Are you trying to reuse it across renders?
|
|
7
|
+
- Are you accidentally calling collectStyles twice?
|
|
8
|
+
|
|
9
|
+
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
10
|
+
|
|
11
|
+
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
12
|
+
|
|
13
|
+
- Does this error occur on the client and is your target falsy?
|
|
14
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
15
|
+
|
|
16
|
+
`,5:`The clone method cannot be used on the client!
|
|
17
|
+
|
|
18
|
+
- Are you running in a client-like environment on the server?
|
|
19
|
+
- Are you trying to run SSR on the client?
|
|
20
|
+
|
|
21
|
+
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
22
|
+
|
|
23
|
+
- Are you using a custom target that isn't mounted?
|
|
24
|
+
- Does your document not have a valid head element?
|
|
25
|
+
- Have you accidentally removed a style tag manually?
|
|
26
|
+
|
|
27
|
+
`,7:`ThemeProvider: Please return an object from your "theme" prop function, e.g.
|
|
28
|
+
|
|
29
|
+
\`\`\`js
|
|
30
|
+
theme={() => ({})}
|
|
31
|
+
\`\`\`
|
|
32
|
+
|
|
33
|
+
`,8:`ThemeProvider: Please make your "theme" prop an object.
|
|
34
|
+
|
|
35
|
+
`,9:`Missing document \`<head>\`
|
|
36
|
+
|
|
37
|
+
`,10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
38
|
+
|
|
39
|
+
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
40
|
+
|
|
41
|
+
`,12:`It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\\`\\\` helper which ensures the styles are injected correctly. See https://styled-components.com/docs/api#css
|
|
42
|
+
|
|
43
|
+
`,13:`%s is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
44
|
+
|
|
45
|
+
`,14:`ThemeProvider: "theme" prop is required.
|
|
46
|
+
|
|
47
|
+
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
48
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
49
|
+
as for instance in your render method then you may be running into this limitation.
|
|
50
|
+
|
|
51
|
+
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
52
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
53
|
+
|
|
54
|
+
`,18:`Accessing \`useTheme\` hook outside of a \`<ThemeProvider>\` element.
|
|
55
|
+
|
|
56
|
+
\`\`\`jsx
|
|
57
|
+
import { useTheme } from 'styled-components';
|
|
58
|
+
export function StyledCompoent({ children }) {
|
|
59
|
+
const theme = useTheme();
|
|
60
|
+
return <div style={{ width: theme.sizes.full }}>{children}</div>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
import { StyledComponent } from './StyledComponent';
|
|
64
|
+
import { theme } from './theme';
|
|
65
|
+
export function App() {
|
|
66
|
+
return (
|
|
67
|
+
<ThemeProvider theme={theme}>
|
|
68
|
+
<StyledComponent />
|
|
69
|
+
</ThemeProvider>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
\`\`\`
|
|
73
|
+
|
|
74
|
+
If you need access to the theme in an uncertain composition scenario, \`React.useContext(ThemeContext)\` will not emit an error if there is no \`ThemeProvider\` ancestor.
|
|
75
|
+
`};function B(e,...t){return process.env.NODE_ENV===`production`?Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`):Error(function(...e){let t=e[0],n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(We[e],...t).trim())}var Ge=1<<30,Ke=new Map,qe=new Map,Je=1,Ye=e=>{if(Ke.has(e))return Ke.get(e);for(;qe.has(Je);)Je++;let t=Je++;if(process.env.NODE_ENV!==`production`&&((0|t)<0||t>Ge))throw B(16,`${t}`);return Ke.set(e,t),qe.set(t,e),t},Xe=e=>qe.get(e),Ze=(e,t)=>{Je=t+1,Ke.set(e,t),qe.set(t,e)},Qe=/invalid hook call/i,$e=new Set,et=(e,t)=>{if(process.env.NODE_ENV!==`production`){let n=`The component ${e}${t?` with the id of "${t}"`:``} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,r=console.error;try{let e=!0;console.error=(t,...i)=>{Qe.test(t)?(e=!1,$e.delete(n)):r(t,...i)},typeof l.default.useState==`function`&&l.default.useState(null),e&&!$e.has(n)&&(console.warn(n),$e.add(n))}catch(e){Qe.test(e.message)&&$e.delete(n)}finally{console.error=r}}},tt=Object.freeze([]),V=Object.freeze({});function nt(e,t,n=V){return e.theme!==n.theme&&e.theme||t||n.theme}var rt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,it=/(^-|-$)/g;function at(e){return e.replace(rt,`-`).replace(it,``)}var ot=/(a)(d)/gi,st=e=>String.fromCharCode(e+(e>25?39:97));function ct(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=st(t%52)+n;return(st(t%52)+n).replace(ot,`$1-$2`)}var lt=5381,H=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ut=e=>H(lt,e);function dt(e){return ct(ut(e)>>>0)}function ft(e){return process.env.NODE_ENV!==`production`&&typeof e==`string`&&e||e.displayName||e.name||`Component`}function pt(e){return typeof e==`string`&&(process.env.NODE_ENV===`production`||e.charAt(0)===e.charAt(0).toLowerCase())}function mt(e){return pt(e)?`styled.${e}`:`Styled(${ft(e)})`}var ht=Symbol.for(`react.memo`),gt=Symbol.for(`react.forward_ref`),_t={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={[gt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ht]:yt};function xt(e){return(`type`in(t=e)&&t.type.$$typeof)===ht?yt:`$$typeof`in e?bt[e.$$typeof]:_t;var t}var St=Object.defineProperty,Ct=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Dt=Object.prototype;function Ot(e,t,n){if(typeof t!=`string`){let r=Et(t);r&&r!==Dt&&Ot(e,r,n);let i=Ct(t).concat(wt(t)),a=xt(e),o=xt(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in vt||n&&n[s]||o&&s in o||a&&s in a)){let n=Tt(t,s);try{St(e,s,n)}catch{}}}}return e}function kt(e){return typeof e==`function`}var At=Symbol.for(`react.forward_ref`);function jt(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===At&&`styledComponentId`in e}function Mt(e,t){return e&&t?e+` `+t:e||t||``}function Nt(e,t){return e.join(t||``)}function U(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Pt(e,t,n=!1){if(!n&&!U(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Pt(e[n],t[n]);else if(U(t))for(let n in t)e[n]=Pt(e[n],t[n]);return e}function Ft(e,t){Object.defineProperty(e,"toString",{value:t})}var It=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw B(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Re;return t}},Lt=`style[${z}][${Ie}="${Le}"]`,Rt=RegExp(`^${z}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),zt=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,Bt=e=>{if(!e)return document;if(zt(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(zt(t))return t}return document},Vt=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},Ht=(e,t)=>{let n=(t.textContent??``).split(Re),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Rt);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(Ze(n,t),Vt(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Ut=e=>{let t=Bt(e.options.target).querySelectorAll(Lt);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(z)!==Fe&&(Ht(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Wt=!1;function Gt(){if(!1!==Wt)return Wt;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Wt=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Wt=t.getAttribute(`content`)||void 0}return Wt=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Kt=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${z}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(z,Fe),i.setAttribute(Ie,Le);let s=t||Gt();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},qt=class{constructor(e,t){this.element=Kt(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw B(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},Jt=class{constructor(e,t){this.element=Kt(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Yt=ze,Xt={isServer:!ze,useCSSOMInjection:!Ve},Zt=class e{static registerId(e){return Ye(e)}constructor(e=V,t={},n){this.options=Object.assign(Object.assign({},Xt),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ze&&Yt&&(Yt=!1,Ut(this)),Ft(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Xe(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=z+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
|
|
76
|
+
`}return r})(this))}rehydrate(){!this.server&&ze&&Ut(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&ze&&t.target!==this.options.target&&Bt(this.options.target)!==Bt(t.target)&&Ut(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new qt(t,n):new Jt(t,n))(this.options),new It(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){Ye(e),e.startsWith(He)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ye(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Ye(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Qt=new WeakSet,$t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function en(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in $t||e.startsWith(`--`)?String(t).trim():t+`px`}var W=47;function tn(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var nn=Symbol.for(`sc-keyframes`);function rn(e){return typeof e==`object`&&!!e&&nn in e}function an(e){return kt(e)&&!(e.prototype&&e.prototype.isReactComponent)}var on=e=>e==null||!1===e||e===``,sn=Symbol.for(`react.client.reference`);function cn(e){return e.$$typeof===sn}function ln(e){let t=e.$$id,n=(t&&t.includes(`#`)?t.split(`#`).pop():t)||e.name||`unknown`;console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function un(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!on(r)&&(Array.isArray(r)&&Qt.has(r)||kt(r)?t.push(tn(n)+`:`,r,`;`):U(r)?(t.push(n+` {`),un(r,t),t.push(`}`)):t.push(tn(n)+`: `+en(n,r)+`;`))}}function G(e,t,n,r,i=[]){if(on(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`){if(cn(e))return process.env.NODE_ENV!==`production`&&ln(e),i;if(an(e)&&t){let a=e(t);return process.env.NODE_ENV===`production`||typeof a!=`object`||Array.isArray(a)||rn(a)||U(a)||a===null||console.error(`${ft(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),G(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)G(e[a],t,n,r,i);return i}return jt(e)?(i.push(`.${e.styledComponentId}`),i):rn(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):cn(e)?(process.env.NODE_ENV!==`production`&&ln(e),i):U(e)&&e.toString===Object.prototype.toString?(un(e,i),i):(i.push(e.toString()),i)}var dn=ut(Le),fn=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=H(dn,t),this.baseStyle=n,Zt.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a){if(an(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(process.env.NODE_ENV===`production`||typeof r!=`object`||Array.isArray(r)||rn(r)||U(r)||console.error(`${ft(a)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=Nt(G(r,e,t,n)))}else i+=Nt(G(a,e,t,n))}}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=ct(H(H(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=Mt(r,a)}}return r}},pn=/&/g;function mn(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function hn(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==W||e.charCodeAt(c+1)!==42){if(o)l===42&&e.charCodeAt(c+1)===W&&(o=!1,c++);else if(l!==34&&l!==39||mn(e,c)){if(a===0){if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}}else a===0?a=l:a===l&&(a=0)}else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function gn(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&gn(a.children,t)}return e}function _n({options:e=V,plugins:t=tt}=V){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(pn,r).replace(i,a))}),e.prefix&&o.push(Pe),o.push(je);let s=[],c=Me(o.concat(Ne(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return hn(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||mn(e,o)){if(s===0){if(t===W&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==W);)o++;o+=2}else if(t!==40){if(t!==41){if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===W)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===W&&o+1<r&&e.charCodeAt(o+1)===W){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++}else c>0&&c--,o++}else c++,o++}else o++}else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:hn(i)):l===0?e:hn(e)}(t),d=we(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=gn(d,e.namespace)),s=[],Ae(d,c),s},u=e,d=lt;for(let e=0;e<t.length;e++)t[e].name||B(15),d=H(d,t[e].name);return u!=null&&u.namespace&&(d=H(d,u.namespace)),u!=null&&u.prefix&&(d=H(d,`p`)),l.hash=d===lt?``:d.toString(),l}var vn=new Zt,yn=_n(),bn=l.default.createContext({shouldForwardProp:void 0,styleSheet:vn,stylis:yn,stylisPlugins:void 0});bn.Consumer;function xn(){return l.default.useContext(bn)}var Sn=l.default.createContext(void 0);Sn.Consumer;function K(){let e=l.default.useContext(Sn);if(!e)throw B(18);return e}function Cn(e){let t=l.default.useContext(Sn),n=l.default.useMemo(()=>function(e,t){if(!e)throw B(14);if(kt(e)){let n=e(t);if(process.env.NODE_ENV!==`production`&&(n===null||Array.isArray(n)||typeof n!=`object`))throw B(7);return n}if(Array.isArray(e)||typeof e!=`object`)throw B(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(Sn.Provider,{value:n},e.children):null}var wn=Object.prototype.hasOwnProperty,Tn={};function En(e,t){let n=typeof e==`string`?at(e):`sc`;Tn[n]=(Tn[n]||0)+1;let r=n+`-`+dt(Le+n+Tn[n]);return t?t+`-`+r:r}var Dn;function On(e,t,n){let r=jt(e),i=e,a=!pt(e),{attrs:o=tt,componentId:s=En(t.displayName,t.parentComponentId),displayName:c=mt(e)}=t,u=t.displayName&&t.componentId?at(t.displayName)+`-`+t.componentId:t.componentId||s,d=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:f}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}let m=new fn(n,u,r?i.componentStyle:void 0);function h(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,u=l.default.useContext(Sn),d=xn(),f=e.shouldForwardProp||d.shouldForwardProp;process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(s);let m=nt(t,u,a)||V,h,g;{let e=l.default.useRef(null),n=e.current;if(n!==null&&n[1]===m&&n[2]===d.styleSheet&&n[3]===d.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(wn.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))h=n[5],g=n[6];else{h=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=kt(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=Mt(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=Mt(r.className,t.className)),r}(r,t,m),g=i.generateAndInjectStyles(h,d.styleSheet,d.stylis);let n=0;for(let e in t)wn.call(t,e)&&n++;e.current=[t,m,d.styleSheet,d.stylis,n,h,g,i]}}process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(g),process.env.NODE_ENV!==`production`&&e.warnTooManyClasses&&e.warnTooManyClasses(g);let _=h.as||c,v=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a],r||process.env.NODE_ENV!==`development`||p(a)||(Dn||=new Set).has(a)||!pt(t)||t.includes(`-`)||(Dn.add(a),console.warn(`styled-components: it looks like an unknown prop "${a}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return i}(h,_,m,f),y=Mt(o,s);return g&&(y+=` `+g),h.className&&(y+=` `+h.className),v[pt(_)&&_.includes(`-`)?`class`:`className`]=y,n&&(v.ref=n),(0,l.createElement)(_,v)}(g,e,t)}h.displayName=c;let g=l.default.forwardRef(h);return g.attrs=d,g.componentStyle=m,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=r?Mt(i.foldedComponentIds,i.styledComponentId):``,g.styledComponentId=u,g.target=r?i.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Pt(e,n,!0);return e}({},i.defaultProps,e):e}}),process.env.NODE_ENV!==`production`&&(et(c,u),g.warnTooManyClasses=((e,t)=>{let n={},r=!1;return i=>{!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:``}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(c,u)),Ft(g,()=>`.${g.styledComponentId}`),a&&Ot(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var kn=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function An(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var jn=e=>(Qt.add(e),e);function Mn(e,...t){if(kt(e)||U(e))return jn(G(An(tt,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?G(n):jn(G(An(n,t)))}function Nn(e,t,n=V){if(!t)throw B(1,t);let r=(r,...i)=>e(t,n,Mn(r,...i));return r.attrs=r=>Nn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Nn(e,t,Object.assign(Object.assign({},n),r)),r}var Pn=e=>Nn(On,e),q=Pn;kn.forEach(e=>{q[e]=Pn(e)});var Fn=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(kt(n)&&!jt(n))return!1}return!0}(e),Zt.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=Nt(G(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function In(e,...t){let n=Mn(e,...t),r=`sc-global-${dt(JSON.stringify(n))}`,i=new Fn(n,r);process.env.NODE_ENV!==`production`&&et(r);let a=e=>{let t=xn(),a=l.default.useContext(Sn),s;{let e=l.default.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),s=e.current}process.env.NODE_ENV!==`production`&&l.default.Children.count(e.children)&&console.warn(`The global style component ${r} was given child JSX. createGlobalStyle does not render children.`),process.env.NODE_ENV!==`production`&&n.some(e=>typeof e==`string`&&e.indexOf(`@import`)!==-1)&&console.warn(`Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app.`),t.styleSheet.server&&o(s,e,t.styleSheet,a,t.stylis);{let n=i.isStatic?[s,t.styleSheet,i]:[s,e,t.styleSheet,a,t.stylis,i],c=l.default.useRef(i);l.default.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(s,e,t.styleSheet,a,t.stylis))},n),l.default.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(s,t.styleSheet)},[s,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(s),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Ue,n,o);else{let s=Object.assign(Object.assign({},t),{theme:nt(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return l.default.memo(a)}var Ln,Rn=class{constructor(e,t){this[Ln]=!0,this.inject=(e,t=yn)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,`@keyframes`);e.insertRules(this.id,n,r)}},this.name=e,this.id=He+e,this.rules=t,Ye(this.id),Ft(this,()=>{throw B(12,String(this.name))})}getName(e=yn){return e.hash?this.name+ct(e.hash>>>0):this.name}};function zn(e,...t){process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");let n=Nt(Mn(e,...t));return new Rn(dt(n),n)}Ln=nn,process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
77
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
78
|
+
Read more about this at https://styled-components.com/docs/basics#react-native`);var Bn=`__sc-${z}__`;process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&typeof window<`u`&&(window[Bn]||(window[Bn]=0),window[Bn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
79
|
+
|
|
80
|
+
See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Bn]+=1),`${z}`,`${z}`;var Vn=`reactSchedulerOutsideWrapper`,Hn=In`
|
|
81
|
+
|
|
82
|
+
#${Vn} {
|
|
83
|
+
font-family: 'Inter', sans-serif;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
line-height: 1.15;
|
|
86
|
+
-webkit-text-size-adjust: 100%;
|
|
87
|
+
margin: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#${Vn} *,
|
|
91
|
+
#${Vn} *:before,
|
|
92
|
+
#${Vn} *:after {
|
|
93
|
+
box-sizing: inherit;
|
|
94
|
+
font-family: inherit;
|
|
95
|
+
line-height: inherit;
|
|
96
|
+
}
|
|
97
|
+
`,Un={mode:`light`,navHeight:`44px`,colors:{background:`#FFFFFF`,gridBackground:`#FFFFFF`,primary:`#F8F8FD`,secondary:`#E6F3FF`,tertiary:`#C9E5FF`,textPrimary:`#1C222F`,textSecondary:`#FFFFFF`,placeholder:`#777777`,button:`#FFFFFF`,border:`#D2D2D2`,tooltip:`#3B3C5F`,hover:`#E6F3FF`,disabled:`#777777`,warning:`#EF4444`,defaultTile:`#728DE2`,accent:`#0A11EB`}},Wn={mode:`dark`,navHeight:`44px`,colors:{background:`#161B22`,gridBackground:`#1E252E`,primary:`#303b49`,secondary:`#444e5b`,tertiary:`#6E757F`,textPrimary:`#DADCE0`,textSecondary:`#EAEBED`,placeholder:`#bbbbbb`,button:`#60676f`,border:`#2C333A`,hover:`#303439`,tooltip:`#3B3C5F`,disabled:`#38414a`,warning:`#FF4C4C`,defaultTile:`#728DE2`,accent:`#1798c2`}},Gn=`
|
|
98
|
+
margin: 0;
|
|
99
|
+
padding: 0;
|
|
100
|
+
`,Kn=`
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
`;q.div`
|
|
105
|
+
margin: 10rem 10rem;
|
|
106
|
+
position: relative;
|
|
107
|
+
width: 40vw;
|
|
108
|
+
height: 40vh;
|
|
109
|
+
`;var J={topRow:`600 14px Inter`,middleRow:`400 10px Inter`,bottomRow:{name:`600 14px Inter`,number:`600 10px Inter`}},qn=1.6,Jn=4.5,Yn=`reactSchedulerCanvasHeaderWrapper`,Xn=`reactSchedulerCanvasWrapper`,Y=Vn,X=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Z=c(X(),1),Zn=e=>e%4==0&&e%100>0||e%400==0?366:365,Qn=e=>{let t=e.day();return t!==0&&t!==6},$n=(e,t)=>(0,Z.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}`).add(t,`months`).daysInMonth(),er=e=>({hour:e.hour(),dayName:e.format(`ddd`),dayOfMonth:e.date(),weekOfYear:e.week(),month:e.month(),monthName:e.format(`MMMM`),isBusinessDay:Qn(e),isCurrentDay:e.isSame((0,Z.default)(),`day`),year:parseInt(e.format(`YYYY`))}),tr=(e,t,n,r,i,a,o)=>{e.strokeStyle=o.colors.border,e.fillStyle=a?o.colors.secondary:i?`transparent`:o.colors.primary,e.beginPath(),e.setLineDash([]),e.fillRect(t,n,r,56),e.strokeRect(t+.5,n+.5,r,56)},nr=(e,t,n,r,i)=>{for(let a=0;a<t;a++)for(let t=0;t<=n;t++){let n=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(t,`days`),o=n.isSame((0,Z.default)(),`day`);tr(e,t*50,a*56,50,Qn(n),o,i)}},rr=(e,t,n,r)=>{e.setLineDash([5,5]),e.strokeStyle=r.colors.border,e.moveTo(t+.5,.5),e.lineTo(t+.5,n+.5),e.stroke()},ir=(e,t,n,r,i)=>{let a=0,o=-(r.dayOfMonth-1)*12;for(let o=0;o<=n;o++){let n=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(o,`weeks`).isSame((0,Z.default)(),`week`);for(let r=0;r<t;r++)tr(e,a,r*56,84,!0,n,i);a+=84}for(let a=0;a<n;a++){let n=$n(r,a)*12;rr(e,o,t*56,i),o+=n}},ar=(e,t,n,r,i)=>{let a=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth+1}`);for(let r=0;r<t;r++)for(let t=0;t<=n;t++){let o;o=t===Math.floor(n/2)?(0,Z.default)():t>Math.floor(n/2)?(0,Z.default)().add(t-Math.floor(n/2),`hours`):(0,Z.default)().subtract(Math.floor(n/2)-r,`hours`);let s=a.isSame((0,Z.default)(),`day`)&&o.isSame((0,Z.default)(),`hour`);tr(e,t*50+25-.5,r*56,50,Qn(o),s,i)}},or=(e,t,n,r,i,a)=>{if(e.clearRect(0,0,e.canvas.width,e.canvas.height),document.getElementById(`reactSchedulerCanvasWrapper`))switch(t){case 0:ir(e,n,r,i,a);break;case 1:nr(e,n,r,i,a);break;case 2:ar(e,n,r,i,a)}},sr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),cr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf(`day`)-n(this).startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`day`)}}}))})),lr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),ur=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),fr=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),pr=c(sr(),1),mr=c(cr(),1),hr=c(lr(),1),gr=c(ur(),1),_r=c(dr(),1),vr=c(fr(),1),yr=[0,1,2],br=e=>yr.includes(e),xr=e=>{let t=(document.getElementById(Y)?.clientWidth||0)-196,n=0;switch(e){case 1:return Math.ceil(t/50)*3;case 2:return Math.ceil(t/50)*3;default:return n=Math.ceil(t/84*3),n%2==0?n:n+1}},Sr=e=>xr(e)/3,Cr=(e,t)=>{let n=xr(t)/2,r,i;switch(t){case 1:r=e.subtract(n,`days`);break;case 2:r=e.subtract(n,`hours`);break;default:i=(e.day()+6)%7,r=e.subtract(n,`weeks`).subtract(i,`days`)}let a;switch(t){case 1:a=e.add(n,`days`);break;case 2:a=e.add(n,`hours`);break;default:a=e.add(n,`weeks`)}return{startDate:r,endDate:a}},wr=(e,t)=>{let n=Cr(e,t);return{startDate:n.startDate.toDate(),endDate:n.endDate.toDate()}},Tr=()=>((document.getElementById(Y)?.clientWidth||0)-196)*3,Er=(0,l.createContext)({handleGoNext:()=>{},handleScrollNext:()=>{},handleGoPrev:()=>{},handleScrollPrev:()=>{},handleGoToday:()=>{},zoomIn:()=>{},zoomOut:()=>{},handleFilterData:()=>{},updateTilesCoords:()=>{},tilesCoords:[],zoom:0,isNextZoom:!1,isPrevZoom:!1,date:(0,Z.default)(),isLoading:!1,cols:0,startDate:{hour:0,dayName:``,dayOfMonth:0,weekOfYear:0,month:0,monthName:``,isCurrentDay:!1,isBusinessDay:!1,year:0},dayOfYear:0,recordsThreshold:0,config:{zoom:0}}),Dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))})),Or=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))})),kr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeeksInYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isoWeeksInYear=function(){var e=this.isLeapYear(),t=this.endOf(`y`).day();return t===4||e&&t===5?53:52}}}))})),Ar=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isLeapYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})),jr=c(Dr(),1),Mr=c(Or(),1),Nr=c(kr(),1),Pr=c(Ar(),1);Z.default.extend(pr.default),Z.default.extend(mr.default),Z.default.extend(hr.default),Z.default.extend(gr.default),Z.default.extend(_r.default),Z.default.extend(jr.default),Z.default.extend(Mr.default),Z.default.extend(Nr.default),Z.default.extend(Pr.default);var Fr=({data:e,children:t,isLoading:n,config:r,defaultStartDate:i=(0,Z.default)(),onRangeChange:a,onFilterData:o,onClearFilterData:s})=>{let{zoom:c,maxRecordsPerPage:d=50}=r,[f,p]=(0,l.useState)(c),[m,h]=(0,l.useState)((0,Z.default)()),[g,_]=(0,l.useState)(!1),[v,y]=(0,l.useState)(xr(f)),b=yr[f]!==yr[yr.length-1],x=f!==0,S=(0,l.useMemo)(()=>wr(m,f),[m,f]),C=Cr(m,f).startDate,w=(0,Z.default)(C).dayOfYear(),T=er(C),E=(0,l.useRef)(null),[ee,te]=(0,l.useState)([{x:0,y:0}]),D=(0,l.useCallback)((e,t=`auto`)=>{let n=Tr();switch(e){case`back`:return E.current?.scrollTo({behavior:t,left:n/3});case`forward`:return E.current?.scrollTo({behavior:t,left:n/3});case`middle`:{let e=n/3/4;return E.current?.scrollTo({behavior:t,left:n/2-e})}default:return E.current?.scrollTo({behavior:t,left:n/2})}},[]),O=e=>{te(e)},k=(0,l.useCallback)(e=>{let t=Sr(f),n,r;switch(f){case 0:n=t*7,r=Math.round(n),r%2!=0&&(r+=r>n?2:5);break;case 1:r=t;break;case 2:r=Math.ceil(t/24)}(0,vr.default)(()=>{switch(e){case`back`:h(e=>e.subtract(r,`days`));break;case`forward`:h(e=>e.add(r,`days`));break;case`middle`:h((0,Z.default)())}a?.(S)},300)()},[a,S,f]);(0,l.useEffect)(()=>{E.current=document.getElementById(Y),y(xr(f))},[f]),(0,l.useEffect)(()=>{let e=()=>y(xr(f));return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[f]),(0,l.useEffect)(()=>{a?.(S)},[a,S]),(0,l.useEffect)(()=>{_(!1)},[i]),(0,l.useEffect)(()=>{g||(D(`middle`),_(!0),h(i))},[i,g,D]);let A=()=>{n||(h(e=>f===2?e.add(1,`hours`):e.add(2,`weeks`)),a?.(S))},j=(0,l.useCallback)(()=>{n||(k(`forward`),(0,vr.default)(()=>{D(`forward`)},300)())},[n,k,D]),M=()=>{n||(h(e=>f===2?e.subtract(1,`hours`):e.subtract(2,`weeks`)),a?.(S))},ne=(0,l.useCallback)(()=>{!g||n||(k(`back`),(0,vr.default)(()=>{D(`back`)},300)())},[g,n,k,D]),re=(0,l.useCallback)(()=>{n||(k(`middle`),(0,vr.default)(()=>{D(`middle`,`smooth`)},300)())},[n,k,D]),ie=()=>oe(f+1),ae=()=>oe(f-1),oe=e=>{br(e)&&(p(e),y(xr(e)),a?.(S))},N=()=>o?.(),{Provider:se}=Er;return(0,u.jsx)(se,{value:{data:e,config:r,handleGoNext:A,handleScrollNext:j,handleGoPrev:M,handleScrollPrev:ne,handleGoToday:re,zoomIn:ie,zoomOut:ae,zoom:f,isNextZoom:b,isPrevZoom:x,date:m,isLoading:n,cols:v,startDate:T,dayOfYear:w,handleFilterData:N,tilesCoords:ee,updateTilesCoords:O,recordsThreshold:d,onClearFilterData:s},children:t})},Ir=()=>(0,l.useContext)(Er),Lr=(e,t,n)=>{e.canvas.width=t*window.devicePixelRatio,e.canvas.height=n*window.devicePixelRatio,e.canvas.style.width=t+`px`,e.canvas.style.height=n+`px`,e.scale(window.devicePixelRatio,window.devicePixelRatio)},Rr=q.div`
|
|
110
|
+
height: calc(100vh - headerHeight);
|
|
111
|
+
`,zr=q.div`
|
|
112
|
+
position: relative;
|
|
113
|
+
`,Br=q.canvas``;q.canvas``;var Vr=q.span`
|
|
114
|
+
width: 1px;
|
|
115
|
+
height: 100%;
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 0;
|
|
118
|
+
left: ${({position:e})=>e===`left`?0:`auto`};
|
|
119
|
+
right: ${({position:e})=>e===`right`?0:`auto`};
|
|
120
|
+
`;function Hr({zoom:e,rows:t,data:n,onTileClick:r,ref:i}){let{handleScrollNext:a,handleScrollPrev:o,date:s,isLoading:c,cols:d,startDate:f}=Ir(),p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=(0,l.useRef)(null),g=K(),_=(0,l.useCallback)(n=>{Lr(n,Tr(),t*56+1),or(n,e,t,d,f,g)},[d,f,t,e,g]);return(0,l.useEffect)(()=>{if(!p.current)return;let e=p.current.getContext(`2d`);if(!e)return;let t=()=>_(e);return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[_]),(0,l.useEffect)(()=>{let e=p.current;if(!e)return;e.style.letterSpacing=`1px`;let t=e.getContext(`2d`);t&&_(t)},[s,t,e,_]),(0,l.useEffect)(()=>{if(!m.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?a():null,{root:document.getElementById(Y)});return e.observe(m.current),()=>e.disconnect()},[a]),(0,l.useEffect)(()=>{if(!h.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?o():null,{root:document.getElementById(Y),rootMargin:`0px 0px 0px -196px`});return e.observe(h.current),()=>e.disconnect()},[o]),(0,u.jsx)(Rr,{id:Xn,children:(0,u.jsxs)(zr,{ref:i,children:[(0,u.jsx)(Vr,{position:`left`,ref:h}),(0,u.jsx)(ka,{isLoading:c,position:`left`}),(0,u.jsx)(Br,{ref:p}),(0,u.jsx)(to,{data:n,zoom:e,onTileClick:r}),(0,u.jsx)(Vr,{ref:m,position:`right`}),(0,u.jsx)(ka,{isLoading:c,position:`right`})]})})}var Ur=e=>{let t=Z.default.duration(e,`seconds`);return{hours:t.hours(),minutes:t.minutes()}},Wr=e=>{let t=0,n=0,r=0;return e.forEach(e=>{t+=e.minutes;let i=Math.floor(t/60);n+=e.hours+i,r+=t%60,r>=60&&(n++,r-=60)}),{hours:n,minutes:r}},Gr=(e,t)=>{let n=8;switch(t){case 0:n=40;break;case 1:n=8;break;case 2:n=1}return{free:(()=>{let t=n-e.hours-1,r=60-e.minutes;return r===60&&(t++,r=0),{hours:Math.max(0,t),minutes:t<0?0:r}})(),overtime:(()=>{let t=e.hours-n,r=e.minutes;return{hours:Math.max(0,t),minutes:t<0?0:r}})()}},Kr=(e,t,n)=>{let r=t.isoWeek(),{hours:i,minutes:a}=Wr(e.map(e=>{let n=(0,Z.default)(e.startDate).isoWeek(),i=(0,Z.default)(e.startDate).isoWeekday(),a=(0,Z.default)(e.endDate).isoWeek(),o=(0,Z.default)(e.endDate).isoWeekday(),{hours:s,minutes:c}=Ur(e.occupancy);if(r===n){let e=(6-i)*s,t=(6-i)*c;return{hours:Math.max(0,e),minutes:t}}return r===a?{hours:o>5?5*s:o*s,minutes:o>5?5*c:o*c}:(0,Z.default)(t).isBetween(e.startDate,e.endDate)?{hours:5*s,minutes:5*c}:{hours:0,minutes:0}})),{free:o,overtime:s}=Gr({hours:i,minutes:a},n);return{taken:{hours:Math.max(0,i),minutes:Math.max(0,a)},free:o,overtime:s}},qr=(e,t,n,r)=>{let i=t.isoWeekday(),{hours:a,minutes:o}=Wr(e.map(e=>{let{hours:t,minutes:n}=Ur(e.occupancy);return i<=(r?7:5)?{hours:t,minutes:n}:{hours:0,minutes:0}})),{free:s,overtime:c}=Gr({hours:a,minutes:o},n);return{taken:{hours:Math.max(0,a),minutes:Math.max(0,o)},free:s,overtime:c}},Jr=(e,t)=>{let n=0;e.forEach(e=>{let r=(0,Z.default)(e.startDate).hour(),i=(0,Z.default)(e.endDate).hour(),a=t.hour(),o=(0,Z.default)(e.endDate).minute(),s=(0,Z.default)(e.startDate).minute();r<a&&i>a?n+=60:r===a&&i===a&&s&&o?n+=o?o-s:60-s:r===a&&i>=a?n+=s?60-s:60:i===a&&o&&(n+=o)});let r=Math.floor(n/60),i=n%60,a=r||i?0:1,o=r?0:i?60-i:0;return{taken:{hours:r,minutes:i},free:{hours:a,minutes:o},overtime:{hours:0,minutes:0}}},Yr=(e,t,n,r,i=!1)=>{if(t<0)return{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}};let a=e.flat(2).filter(e=>r===1?(0,Z.default)(n).isBetween(e.startDate,e.endDate,`day`,`[]`):r===2?(0,Z.default)(n).isBetween(e.startDate,e.endDate,`hour`,`[]`):(0,Z.default)(e.startDate).isBetween((0,Z.default)(n),(0,Z.default)(n).add(6,`days`),`day`,`[]`)||(0,Z.default)(n).isBetween((0,Z.default)(e.startDate),(0,Z.default)(e.endDate),`day`,`[]`));switch(r){case 1:return qr(a,n,r,i);case 2:return Jr(a,n);default:return Kr(a,n,r)}},Xr=(e,t,n,r,i,a=!1)=>{let o=`weeks`,s;switch(i){case 0:o=`weeks`,s=84;break;case 1:o=`days`,s=50;break;case 2:o=`hours`,s=50}let c=Math.ceil(i===2?(t.x-.5*s)/s:t.x/s),l=(0,Z.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}T${e.hour}:00:00`).add(c-1,o),u=Math.ceil(t.y/56),d=n.findIndex((e,t,n)=>n.slice(0,t+1).reduce((e,t)=>e+t,0)>=u),f=i===2?(c+1)*s:c*s,p=(u-1)*56+56,m=Yr(r[d],d,l,i,a);return{coords:{x:f,y:p},resourceIndex:d,disposition:m}},Zr=(e,t,n,r)=>{let i=[],a=0,o=[],s=0;return t.length>r?(t.forEach((t,n)=>{let c={id:e[n].id,label:e[n].label,data:t};s>=r&&(i.push(o),a+=o.length,o=[],s=0),s++,o.push(c)}),n.slice(a).length<=r&&(o=[],t.slice(a).forEach((n,r)=>{let s={id:e[r+a].id,label:e[r+a].label,data:n};o.push(s),r===t.length-a-1&&i.push(o)})),i):(t.forEach((t,n)=>{let r={id:e[n].id,label:e[n].label,data:t};o.push(r)}),i.push(o),i)},Qr={0:`day`,1:`day`,2:void 0},$r=(e,t)=>{let n=[];for(let r of e){let e=!1;if(n.length)for(let i of n){let n=!1;for(let e=0;e<i.length;e++)if((0,Z.default)(r.startDate).isSameOrBefore((0,Z.default)(i[e].endDate),Qr[t||0])&&(0,Z.default)(r.endDate).isSameOrAfter((0,Z.default)(i[e].startDate),Qr[t||0])){n=!0;break}if(!n){i.push(r),e=!0;break}}e||n.push([r])}return n},ei=(e,t)=>{let[n,r]=e.reduce((e,n)=>{let r=$r(n.data,t);return e[0].push(r),e[1].push(Math.max(r.length,1)),e},[[],[]]);return{projectsPerPerson:n,rowsPerPerson:r}},ti=e=>e?e.map(e=>e.data.length).reduce((e,t)=>e+Math.max(t,1),0):0,ni=e=>{let{recordsThreshold:t,zoom:n}=Ir(),[r,i]=(0,l.useState)(0),[a,o]=(0,l.useState)(0),s=(0,l.useRef)(null);(0,l.useEffect)(()=>{s.current=document.getElementById(Y)},[]);let{projectsPerPerson:c,rowsPerPerson:u}=(0,l.useMemo)(()=>ei(e,n),[e,n]),d=(0,l.useMemo)(()=>Zr(e,c,u,t),[e,c,t,u]),f=(0,l.useCallback)(()=>{d[a].length&&s.current&&(s.current.scroll({top:0}),i(e=>e+d[Math.max(a,0)].length),o(e=>Math.min(e+1,d.length-1)),window.scroll({top:0}))},[a,d]),p=(0,l.useCallback)(()=>{d[a].length&&(i(e=>Math.max(e-d[a-1].length,0)),o(e=>Math.max(e-1,0)))},[a,d]),m=(0,l.useCallback)(()=>{i(0),o(0)},[]),h=r+d[a].length,g=(0,l.useMemo)(()=>u.slice(r,h),[h,u,r]),_=(0,l.useMemo)(()=>c.slice(r,h),[h,c,r]);return{page:d[a],currentPageNum:a,pagesAmount:d.length,projectsPerPerson:_,rowsPerItem:g,totalRowsPerPage:ti(d[a]),next:f,previous:p,reset:m}},ri=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),ii=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e);function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+` `;switch(n){case`m`:return t?`minuta`:`minutę`;case`mm`:return i+(r(e)?`minuty`:`minut`);case`h`:return t?`godzina`:`godzinę`;case`hh`:return i+(r(e)?`godziny`:`godzin`);case`MM`:return i+(r(e)?`miesiące`:`miesięcy`);case`yy`:return i+(r(e)?`lata`:`lat`)}}var a=`stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia`.split(`_`),o=`styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień`.split(`_`),s=/D MMMM/,c=function(e,t){return s.test(t)?a[e.month()]:o[e.month()]};c.s=o,c.f=a;var l={name:`pl`,weekdays:`niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota`.split(`_`),weekdaysShort:`ndz_pon_wt_śr_czw_pt_sob`.split(`_`),weekdaysMin:`Nd_Pn_Wt_Śr_Cz_Pt_So`.split(`_`),months:c,monthsShort:`sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,relativeTime:{future:`za %s`,past:`%s temu`,s:`kilka sekund`,m:i,mm:i,h:i,hh:i,d:`1 dzień`,dd:`%d dni`,M:`miesiąc`,MM:i,y:`rok`,yy:i},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd, D MMMM YYYY HH:mm`}};return n.default.locale(l,null,!0),l}))})),ai=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),oi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_lt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r=`sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio`.split(`_`),i=`sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis`.split(`_`),a=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,o=function(e,t){return a.test(t)?r[e.month()]:i[e.month()]};o.s=i,o.f=r;var s={name:`lt`,weekdays:`sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis`.split(`_`),weekdaysShort:`sek_pir_ant_tre_ket_pen_šeš`.split(`_`),weekdaysMin:`s_p_a_t_k_pn_š`.split(`_`),months:o,monthsShort:`sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,relativeTime:{future:`už %s`,past:`prieš %s`,s:`kelias sekundes`,m:`minutę`,mm:`%d minutes`,h:`valandą`,hh:`%d valandas`,d:`dieną`,dd:`%d dienas`,M:`mėnesį`,MM:`%d mėnesius`,y:`metus`,yy:`%d metus`},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`}};return n.default.locale(s,null,!0),s}))})),si=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ci=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),li=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt_br=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt-br`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sáb`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sá`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`poucos segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),ui=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),di=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ro=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ro`,weekdays:`Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă`.split(`_`),weekdaysShort:`Dum_Lun_Mar_Mie_Joi_Vin_Sâm`.split(`_`),weekdaysMin:`Du_Lu_Ma_Mi_Jo_Vi_Sâ`.split(`_`),months:`Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie`.split(`_`),monthsShort:`Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY H:mm`,LLLL:`dddd, D MMMM YYYY H:mm`},relativeTime:{future:`peste %s`,past:`acum %s`,s:`câteva secunde`,m:`un minut`,mm:`%d minute`,h:`o oră`,hh:`%d ore`,d:`o zi`,dd:`%d zile`,M:`o lună`,MM:`%d luni`,y:`un an`,yy:`%d ani`},ordinal:function(e){return e}};return n.default.locale(r,null,!0),r}))})),fi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_he=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`מספר שניות`,ss:`%d שניות`,m:`דקה`,mm:`%d דקות`,h:`שעה`,hh:`%d שעות`,hh2:`שעתיים`,d:`יום`,dd:`%d ימים`,dd2:`יומיים`,M:`חודש`,MM:`%d חודשים`,MM2:`חודשיים`,y:`שנה`,yy:`%d שנים`,yy2:`שנתיים`};function i(e,t,n){return(r[n+(e===2?`2`:``)]||r[n]).replace(`%d`,e)}var a={name:`he`,weekdays:`ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת`.split(`_`),weekdaysShort:`א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳`.split(`_`),weekdaysMin:`א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳`.split(`_`),months:`ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר`.split(`_`),monthsShort:`ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ`.split(`_`),relativeTime:{future:`בעוד %s`,past:`לפני %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinal:function(e){return e},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`}};return n.default.locale(a,null,!0),a}))})),pi={feelingEmpty:`Czuję się taki pusty...`,free:`Wolne`,loadNext:`Następne`,loadPrevious:`Poprzednie`,over:`ponad`,taken:`Zajęte`,topbar:{filters:`Filtry`,next:`następny`,prev:`poprzedni`,today:`Dziś`,view:`Widok`},search:`szukaj`,week:`tydzień`},mi={feelingEmpty:`I feel so empty...`,free:`Free`,loadNext:`Next`,loadPrevious:`Previous`,over:`over`,taken:`Taken`,topbar:{filters:`Filters`,next:`next`,prev:`prev`,today:`Today`,view:`View`},search:`search`,week:`week`},hi={feelingEmpty:`Keine Ergebnisse...`,free:`Frei`,loadNext:`Weiter`,loadPrevious:`Zurück`,over:`über`,taken:`Gebucht`,topbar:{filters:`Filter`,next:`vor`,prev:`zurück`,today:`Heute`,view:`Ansicht`},search:`Suche`,week:`Woche`},gi={feelingEmpty:`Jaučiuosi toks tuščias...`,free:`Laisva`,loadNext:`Kitas`,loadPrevious:`Ankstesnis`,over:`virš`,taken:`Užimta`,topbar:{filters:`Filtras`,next:`kitas`,prev:`ankstesnis`,today:`Šiandien`,view:`Rodinys`},search:`ieškoti`,week:`savaitė`},_i={feelingEmpty:`Le planning est vide...`,free:`Libre`,loadNext:`Suivant`,loadPrevious:`Précédent`,over:`over`,taken:`Pris`,topbar:{filters:`Filtres`,next:`suiv.`,prev:`préc.`,today:`Aujourd'hui`,view:`Voir`},search:`rechercher`,week:`semaine`},vi={feelingEmpty:`Mi sento così vuoto...`,free:`Libero`,loadNext:`Prossimo`,loadPrevious:`Precedente`,over:`sopra`,taken:`Occupato`,topbar:{filters:`Filtri`,next:`prossimo`,prev:`precedente`,today:`Oggi`,view:`Vista`},search:`cerca`,week:`settimana`},yi={feelingEmpty:`Sem dados...`,free:`livre`,loadNext:`Próximo`,loadPrevious:`Anterior`,over:`finalizado`,taken:`ocupado`,topbar:{filters:`filtros`,next:`próximo`,prev:`anterior`,today:`hoje`,view:`visualização`},search:`Procurar`,week:`Semana`},bi={feelingEmpty:`Me siento vacío...`,free:`Libre`,loadNext:`Siguiente`,loadPrevious:`Anterior`,over:`en`,taken:`Tomado`,topbar:{filters:`Filtros`,next:`siguiente`,prev:`anterior`,today:`Hoy`,view:`Vista`},search:`Buscar`,week:`semana`},xi={feelingEmpty:`אני מרגיש ריק...`,free:`חופשי`,loadNext:`הבא`,loadPrevious:`הקודם`,over:`מסתיים`,taken:`תפוס`,topbar:{filters:`מסננים`,next:`הבא`,prev:`הקודם`,today:`היום`,view:`תצוגה`},search:`חיפוש`,week:`שבוע`},Si={feelingEmpty:`Mă simt gol...`,free:`Liber`,loadNext:`Următorul`,loadPrevious:`Anterior`,over:`Finalizat`,taken:`Ocupat`,topbar:{filters:`Filtre`,next:`Următorul`,prev:`Anterior`,today:`Astăzi`,view:`Vizualizare`},search:`Căutare`,week:`Săptămână`},Ci=c(ri(),1),wi=c(ii(),1),Ti=c(ai(),1),Ei=c(oi(),1),Di=c(si(),1),Oi=c(ci(),1),ki=c(li(),1),Ai=c(ui(),1),ji=c(di(),1),Mi=c(fi(),1),Ni=[{id:`de`,lang:hi,translateCode:`de-DE`,dayjsTranslations:Ti.default},{id:`en`,lang:mi,translateCode:`en-GB`,dayjsTranslations:Ci.default},{id:`es`,lang:bi,translateCode:`es-ES`,dayjsTranslations:Ai.default},{id:`he`,lang:xi,translateCode:`he_IL`,dayjsTranslations:Mi.default},{id:`ro`,lang:Si,translateCode:`ro_RO`,dayjsTranslations:ji.default},{id:`fr`,lang:_i,translateCode:`fr-FR`,dayjsTranslations:Di.default},{id:`it`,lang:vi,translateCode:`it-IT`,dayjsTranslations:Oi.default},{id:`pl`,lang:pi,translateCode:`pl-PL`,dayjsTranslations:wi.default},{id:`pt-BR`,lang:yi,translateCode:`pt-BR`,dayjsTranslations:ki.default},{id:`lt`,lang:gi,translateCode:`lt-LT`,dayjsTranslations:Ei.default},{id:`de`,lang:hi,translateCode:`de-DE`,dayjsTranslations:Ti.default}],Pi=new class{locales=Ni;getLocales(){return this.locales}addLocales(e){this.locales.push(e)}},Fi=(0,l.createContext)({currentLocale:Pi.getLocales().filter(e=>e.id===`en`)[0]}),Ii=({children:e,lang:t,translations:n})=>{let[r,i]=(0,l.useState)(Pi.getLocales().filter(e=>e.id===`en`)[0]);return(0,l.useEffect)(()=>{let e=Pi.locales.map(e=>{let t=e;return n?.forEach(n=>{e.id===n.id&&(t=n)}),t})?.find(e=>e.id===t);e&&(i(e),Z.default.locale(e.dayjsTranslations))},[n,t]),(0,u.jsx)(Fi.Provider,{value:{currentLocale:r},children:e})},Li=()=>(0,l.useContext)(Fi).currentLocale.lang,Ri=e=>(0,u.jsxs)(`svg`,{id:`Layer_1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 514 440`,...e,children:[(0,u.jsxs)(`defs`,{children:[(0,u.jsx)(`style`,{children:`.cls-1{fill:#fff;}.cls-2{fill:#dbf0fd;}.cls-3{fill:#1c222f;}.cls-4{fill:url(#radial-gradient);}`}),(0,u.jsxs)(`radialGradient`,{id:`radial-gradient`,cx:256.33,cy:218.64,fx:256.33,fy:218.64,r:206.09,gradientUnits:`userSpaceOnUse`,children:[(0,u.jsx)(`stop`,{offset:.47,stopColor:`#ccc`}),(0,u.jsx)(`stop`,{offset:.49,stopColor:`#ccc`,stopOpacity:.95}),(0,u.jsx)(`stop`,{offset:.59,stopColor:`#ccc`,stopOpacity:.67}),(0,u.jsx)(`stop`,{offset:.69,stopColor:`#ccc`,stopOpacity:.43}),(0,u.jsx)(`stop`,{offset:.78,stopColor:`#ccc`,stopOpacity:.24}),(0,u.jsx)(`stop`,{offset:.87,stopColor:`#ccc`,stopOpacity:.11}),(0,u.jsx)(`stop`,{offset:.94,stopColor:`#ccc`,stopOpacity:.03}),(0,u.jsx)(`stop`,{offset:1,stopColor:`#ccc`,stopOpacity:0})]})]}),(0,u.jsx)(`path`,{className:`cls-4`,d:`m462.42,66.49v-1h-2.13V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13Zm-54.06,0v49.92h-49.81v-49.92h49.81Zm-152.54,151.65h-49.92v-49.92h49.92v49.92Zm1-49.92h49.81v49.92h-49.81v-49.92Zm-51.92,49.92h-49.81v-49.92h49.81v49.92Zm0,1v49.81h-49.81v-49.81h49.81Zm1,0h49.92v49.81h-49.92v-49.81Zm50.92,0h49.81v49.81h-49.81v-49.81Zm50.81,0h49.92v49.81h-49.92v-49.81Zm0-1v-49.92h49.92v49.92h-49.92Zm0-50.92v-49.81h49.92v49.81h-49.92Zm-1,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm-50.92,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm0,1v49.92h-49.92v-49.92h49.92Zm0,50.92v49.81h-49.92v-49.81h49.92Zm0,50.81v49.92h-49.92v-49.92h49.92Zm1,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm0-1v-49.81h49.81v49.81h-49.81Zm0-50.81v-49.92h49.81v49.92h-49.81Zm0-50.92v-49.81h49.81v49.81h-49.81Zm-1-100.73v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-100.73,0h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,100.73v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm100.73,0h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Z`}),(0,u.jsx)(`path`,{className:`cls-1`,d:`m418.99,155.87l-48.04,18.79v108.18h-227.53v-108.18l-48.04-18.79,38.34-27.86,42.94,13.48h161.03l42.94-13.48,38.34,27.86Zm-229.89-87.54c2.6-2.6,4.23-5.54,4.56-7.85,2.63,1.44,5.25,1.63,6.66.22,1.41-1.42,1.22-4.04-.23-6.66,2.31-.34,5.25-1.97,7.84-4.58,4.09-4.1,5.79-9.04,3.8-11.04-2-2-6.94-.29-11.03,3.81-2.42,2.42-3.99,5.13-4.47,7.35-3.13-2.38-6.62-3.01-8.33-1.29s-1.08,5.21,1.31,8.33c-2.23.48-4.93,2.06-7.35,4.48-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm10.82-2.58c1.28,1.28,3.55,1.1,5.06-.41,1.51-1.51,1.69-3.77.41-5.06-1.28-1.28-3.55-1.1-5.06.41-1.51,1.51-1.69,3.77-.41,5.06Z`}),(0,u.jsx)(`path`,{className:`cls-2`,d:`m251.22,145.7c-.21-.72.21-1.48.93-1.68.72-.21,1.48.21,1.68.93.75,2.63,1.57,5.34,2.43,8.06.23.72-.17,1.48-.89,1.71-.14.04-.28.06-.41.06-.58,0-1.11-.37-1.3-.95-.87-2.74-1.69-5.48-2.46-8.13Zm-3.07-25.31c-.48-2.83-.87-5.63-1.17-8.3-.08-.75-.76-1.29-1.5-1.2-.75.08-1.28.76-1.2,1.5.31,2.72.71,5.56,1.19,8.45.11.66.69,1.13,1.34,1.13.07,0,.15,0,.23-.02.74-.12,1.24-.83,1.12-1.57Zm-3.2-15.22s.04,0,.06,0c.75-.03,1.33-.67,1.3-1.42-.07-1.55-.1-3.07-.1-4.53,0-1.31.03-2.58.08-3.81.03-.75-.55-1.39-1.3-1.42-.72-.02-1.39.55-1.42,1.3-.06,1.27-.08,2.57-.08,3.92,0,1.5.04,3.07.11,4.65.03.73.63,1.3,1.36,1.3Zm.6-16.88c.08.01.15.02.22.02.65,0,1.23-.47,1.34-1.14.47-2.88,1.14-5.56,1.98-7.97.25-.71-.13-1.49-.84-1.73-.71-.25-1.49.13-1.73.84-.89,2.56-1.6,5.39-2.1,8.42-.12.74.38,1.44,1.12,1.56Zm3.46,49.2c.16.62.71,1.03,1.32,1.03.11,0,.22-.01.33-.04.73-.18,1.17-.92.99-1.65-.7-2.78-1.35-5.53-1.91-8.19-.16-.74-.88-1.2-1.61-1.05-.73.16-1.2.88-1.05,1.61.57,2.69,1.23,5.48,1.94,8.28Zm16.4-73.89c.64-.08,1.28-.09,1.95-.12,1.95,0,3.88.34,5.75,1.02.15.06.31.08.46.08.56,0,1.08-.34,1.28-.9.26-.71-.11-1.49-.82-1.74-2.16-.78-4.41-1.18-6.67-1.18h0c-.76,0-1.52.05-2.27.14-.75.09-1.28.77-1.19,1.51.09.75.77,1.28,1.51,1.19Zm-16.95,29.4c-.25.71.12,1.49.83,1.74,2.87,1.01,5.66,1.82,8.28,2.4.1.02.2.03.3.03.62,0,1.19-.43,1.33-1.07.16-.73-.3-1.46-1.03-1.62-2.51-.56-5.19-1.34-7.96-2.31-.71-.25-1.49.12-1.74.83Zm35-17.62c.16.61.71,1.01,1.31,1.01.12,0,.24-.02.36-.05.73-.2,1.15-.94.96-1.67-.78-2.9-2.34-5.61-4.5-7.85-.52-.54-1.39-.56-1.92-.03-.54.52-.56,1.38-.03,1.92,1.84,1.9,3.16,4.21,3.83,6.67Zm-9.33,19.12c-2.25.77-4.91,1.12-7.86,1.05-.75-.03-1.38.57-1.4,1.32-.02.75.57,1.38,1.32,1.4.29,0,.57.01.86.01,2.95,0,5.63-.41,7.95-1.2.71-.24,1.09-1.02.84-1.73-.24-.71-1.02-1.09-1.73-.84Zm11-12.44c-.73-.16-1.46.31-1.62,1.04-.62,2.84-1.68,5.23-3.16,7.09-.47.59-.37,1.44.22,1.91.25.2.55.29.84.29.4,0,.8-.18,1.07-.51,1.74-2.19,2.98-4.95,3.68-8.2.16-.73-.31-1.46-1.04-1.62Zm-33.61-9.51c.44,0,.86-.21,1.13-.6,1.58-2.34,3.44-4.23,5.51-5.63.62-.42.79-1.27.37-1.89-.42-.62-1.27-.79-1.89-.37-2.37,1.6-4.47,3.74-6.25,6.36-.42.62-.26,1.47.36,1.89.23.16.5.23.76.23Zm-17.85,15.17c2.56,1.38,5.14,2.66,7.67,3.8.18.08.37.12.56.12.52,0,1.01-.3,1.24-.8.31-.68,0-1.49-.68-1.8-2.47-1.11-4.99-2.36-7.5-3.72-.66-.36-1.49-.11-1.84.55-.36.66-.11,1.49.55,1.84Zm-25.71-38.23c4.09-4.1-4.68,1.35-6.68-.64-2-2,3.54-10.69-.56-6.58-4.09,4.1-4.86,7.57-2.87,9.56,2,2,6.01,1.77,10.1-2.34Zm121.24,179.57c0,6.06-4.91,10.97-10.97,10.97s-10.97-4.91-10.97-10.97,4.91-10.97,10.97-10.97,10.97,4.91,10.97,10.97Zm-5.51-.85c0-3.53-2.86-6.38-6.38-6.38s-6.38,2.86-6.38,6.38,2.86,6.38,6.38,6.38,6.38-2.86,6.38-6.38Zm-84.1,31.49c-1.86,1.86-1.86,4.87,0,6.73.93.93,2.15,1.4,3.37,1.4s2.44-.47,3.37-1.39c6.97-6.97,18.31-6.97,25.28,0,1.86,1.86,4.87,1.86,6.73,0,1.86-1.86,1.86-4.87,0-6.73-10.68-10.68-28.06-10.68-38.75,0Zm-47.36-41.78c2.19-1.14,4.69-1.36,7.05-.62,1.43.45,2.96-.35,3.41-1.78.45-1.43-.35-2.96-1.78-3.41-3.74-1.18-7.72-.83-11.2.99-3.48,1.81-6.04,4.87-7.22,8.62-.45,1.43.35,2.96,1.78,3.41.27.09.55.13.82.13,1.16,0,2.23-.74,2.59-1.91.74-2.36,2.35-4.28,4.54-5.42Zm139.73,7.33c.27,0,.55-.04.82-.13,1.43-.45,2.23-1.98,1.78-3.41-2.43-7.72-10.69-12.04-18.41-9.6-1.43.45-2.23,1.98-1.78,3.41.45,1.43,1.98,2.23,3.41,1.78,4.87-1.53,10.06,1.18,11.59,6.05.37,1.16,1.44,1.91,2.59,1.91Zm-144.88,3.81c0-6.06,4.91-10.97,10.97-10.97s10.97,4.91,10.97,10.97-4.91,10.97-10.97,10.97-10.97-4.91-10.97-10.97Zm3.65-.85c0,3.53,2.86,6.38,6.38,6.38s6.38-2.86,6.38-6.38-2.86-6.38-6.38-6.38-6.38,2.86-6.38,6.38Zm18.69-157.72c.91.91,1.93,1.87,3.05,2.85.26.23.58.34.9.34.38,0,.76-.16,1.02-.46.49-.57.44-1.43-.13-1.92-1.07-.94-2.05-1.85-2.91-2.72-.53-.53-1.39-.54-1.92,0-.53.53-.54,1.39,0,1.92Zm16.89,12.95c.22.14.47.21.72.21.45,0,.9-.23,1.16-.64.4-.64.2-1.48-.43-1.87-2.41-1.51-4.75-3.08-6.95-4.67-.61-.44-1.46-.3-1.9.3-.44.61-.3,1.46.3,1.9,2.25,1.62,4.63,3.23,7.1,4.77Zm-25.94-22.7c2-2-4-2-7.43-5.42-3.43-3.43-3-8.98-4.99-6.98-1.99,2-.83,6.39,2.6,9.82,3.43,3.43,7.83,4.58,9.82,2.58Zm137.37,101.16h-78.49c-.09-.25-.18-.52-.27-.77-.24-.71-1.02-1.09-1.73-.84-.67.23-1.03.94-.86,1.61h-79.68l-10.81,12.8h185.72l-13.89-12.8Zm-148.6-93.53c4.09-4.1-4.71,1.02-6.7-.98s3.56-10.35-.53-6.25c-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm211.17,194.3h-29.32v14.55s-209.51.67-218.27-4.49c-7.39-4.36-5.84-98.04-5.84-98.04h-3.42v87.98h-30.68c-10.34,0-18.72,8.38-18.72,18.72h0c0,10.34,8.38,18.72,18.72,18.72h287.53c10.34,0,18.72-8.38,18.72-18.72h0c0-10.34-8.38-18.72-18.72-18.72Z`}),(0,u.jsx)(`path`,{className:`cls-3`,d:`m274.16,260.36c.53.53.53,1.39,0,1.92-.27.27-.61.4-.96.4s-.7-.13-.96-.4c-8.3-8.3-21.8-8.3-30.09,0-.53.53-1.39.53-1.92,0-.53-.53-.53-1.39,0-1.92,9.36-9.36,24.58-9.36,33.94,0Zm-97.05-187.21c-1.35-1.35-1.61-3.53-.71-6.13.78-2.28,2.38-4.7,4.51-6.83,1.93-1.94,4.11-3.42,6.18-4.27-.55-.94-.97-1.91-1.23-2.86-.09-.35-.15-.68-.2-1.01l-5.62-1.9c-.71-.24-1.09-1.01-.85-1.72.24-.71,1.01-1.1,1.72-.85l4.93,1.66c.23-.71.6-1.34,1.11-1.86.52-.52,1.14-.89,1.85-1.12l-1.67-4.92c-.24-.71.14-1.48.85-1.73.71-.24,1.48.14,1.73.85l1.91,5.62c.33.05.67.11,1.02.2.95.25,1.92.68,2.87,1.22.84-2.08,2.33-4.27,4.26-6.19,4.77-4.78,10.34-6.42,12.96-3.82,1.35,1.35,1.61,3.53.71,6.13-.78,2.28-2.38,4.7-4.51,6.83-2.14,2.14-4.61,3.74-6.87,4.52.42,1.1.62,2.18.61,3.18.06,0,.12-.03.18-.03,1.36-.11,2.61.33,3.52,1.23.91.91,1.35,2.16,1.24,3.51-.1,1.28-.69,2.51-1.64,3.47-.96.96-2.19,1.54-3.46,1.65-.14.01-.28.02-.41.02-1.2,0-2.29-.44-3.1-1.25-.91-.91-1.35-2.15-1.24-3.51,0-.06.02-.11.03-.17-.02,0-.05,0-.07,0-.65,0-1.35-.09-2.07-.28-.34-.09-.69-.23-1.03-.36-.77,2.27-2.36,4.74-4.52,6.9-3.25,3.25-6.86,5.05-9.66,5.05-1.32,0-2.46-.4-3.3-1.23Zm24.19-11.45c-.5.5-.81,1.13-.86,1.76-.04.55.11,1.04.45,1.37.33.33.82.5,1.37.45.63-.05,1.26-.36,1.76-.86.5-.5.81-1.13.86-1.76.04-.55-.11-1.04-.45-1.37h0c-.3-.3-.71-.46-1.19-.46-.06,0-.12,0-.18,0-.63.05-1.26.36-1.76.86Zm-3.51-12.55c.31.26.62.52.91.81.82.82,1.52,1.69,2.1,2.58,1.95-.56,4.2-2.01,6.2-4,1.81-1.81,3.22-3.92,3.86-5.79.52-1.52.5-2.76-.06-3.32-1.11-1.11-5.11-.19-9.11,3.81-1.88,1.88-3.27,4.01-3.89,5.91Zm-9.29,3.22c.42,1.6,1.51,3.36,2.98,4.83,1.47,1.47,3.23,2.55,4.83,2.97,1.35.36,2.47.21,3.07-.39,1.25-1.26.5-4.81-2.6-7.9-1.47-1.47-3.23-2.55-4.83-2.97-.49-.13-.95-.19-1.36-.19-.73,0-1.32.2-1.7.58-.6.6-.74,1.72-.38,3.07Zm-9.46,18.86c1.11,1.1,5.11.19,9.11-3.81,1.98-1.98,3.44-4.28,3.99-6.22-.9-.58-1.78-1.27-2.58-2.07-.29-.29-.55-.61-.81-.91-1.88.62-4.04,2.04-5.9,3.9-1.81,1.81-3.22,3.92-3.86,5.79-.52,1.52-.5,2.76.06,3.32Zm136.18,140.83c-.72.23-1.12.99-.89,1.71.23.72.99,1.12,1.71.89,5.58-1.76,11.54,1.36,13.3,6.93.18.58.72.95,1.3.95.14,0,.27-.02.41-.06.72-.23,1.12-.99.89-1.71-2.2-7.01-9.7-10.92-16.71-8.71Zm-110.38,16.16c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Zm-3.76-13.57c.71.23,1.48-.17,1.71-.89.23-.72-.17-1.48-.89-1.71-7.01-2.21-14.5,1.71-16.71,8.71-.23.72.17,1.48.89,1.71.14.04.27.06.41.06.58,0,1.11-.37,1.3-.95,1.75-5.58,7.72-8.69,13.3-6.93Zm221.99-58.56c-.06.49-.39.91-.85,1.09l-47.17,18.45v107.25c0,.75-.61,1.36-1.36,1.36h-227.53c-.75,0-1.36-.61-1.36-1.36v-107.25l-47.17-18.45c-.46-.18-.79-.6-.85-1.09-.06-.49.15-.98.55-1.27l38.34-27.86c.35-.25.8-.33,1.21-.2l42.74,13.42h160.61l42.74-13.42c.41-.13.86-.06,1.21.2l38.34,27.86c.4.29.61.78.55,1.27Zm-81.28,17.26h28.6l-28.6-28.53v28.53Zm-161.03,0h158.31v-30.45h-158.31v30.45Zm-23.23-11.91l19.32-19.27-40.15-12.6-35.78,25.99,44.89,17.56,11.71-11.68Zm-8.09,11.91h28.6v-28.53l-28.6,28.53Zm222.88,2.72h-224.81v105.46h224.81v-105.46Zm46.59-20.51l-35.78-25.99-40.14,12.6,31.03,30.95,44.89-17.56Zm-91.14,72.66c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Z`})]}),zi=q.div`
|
|
121
|
+
height: 440px;
|
|
122
|
+
width: 514px;
|
|
123
|
+
position: relative;
|
|
124
|
+
`,Bi=q.p`
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: 75%;
|
|
127
|
+
left: 50%;
|
|
128
|
+
transform: translateX(-50%);
|
|
129
|
+
font-size: 20px;
|
|
130
|
+
letter-spacing: 1px;
|
|
131
|
+
line-height: 1px;
|
|
132
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
133
|
+
`,Vi=()=>{let{feelingEmpty:e}=Li();return(0,u.jsxs)(zi,{children:[(0,u.jsx)(Ri,{}),(0,u.jsx)(Bi,{children:e})]})},Hi=q.div`
|
|
134
|
+
position: relative;
|
|
135
|
+
display: flex;
|
|
136
|
+
`,Ui=q.div`
|
|
137
|
+
position: relative;
|
|
138
|
+
margin-left: ${196};
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
contain: paint;
|
|
142
|
+
`,Wi=q.div`
|
|
143
|
+
width: calc(${({width:e})=>e}px - ${196}px);
|
|
144
|
+
position: sticky;
|
|
145
|
+
top: 0;
|
|
146
|
+
height: 100%;
|
|
147
|
+
left: ${196}px;
|
|
148
|
+
display: flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
`,Gi={coords:{x:0,y:0},resourceIndex:0,disposition:{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}}},Ki=({data:e,onTileClick:t,onItemClick:n,toggleTheme:r,topBarWidth:i})=>{let[a,o]=(0,l.useState)(Gi),[s,c]=(0,l.useState)(e),[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(``),{zoom:h,startDate:g,config:{includeTakenHoursOnWeekendsInDayView:_,showTooltip:v,showThemeToggle:y}}=Ir(),b=(0,l.useRef)(null),{page:x,projectsPerPerson:S,totalRowsPerPage:C,rowsPerItem:w,currentPageNum:T,pagesAmount:E,next:ee,previous:te,reset:D}=ni(s),O=(0,l.useRef)((0,vr.default)((e,t,n,r,i)=>{if(!b.current)return;let{left:a,top:s}=b.current.getBoundingClientRect(),{coords:{x:c,y:l},resourceIndex:u,disposition:d}=Xr(t,{x:e.clientX-a,y:e.clientY-s},n,r,i,_);o({coords:{x:c,y:l},resourceIndex:u,disposition:d}),f(!0)},300)),k=(0,l.useRef)((0,vr.default)((e,t)=>{D(),c(e.filter(e=>e.label.title.toLowerCase().includes(t.toLowerCase())))},500)),A=t=>{let n=t.target.value;m(n),k.current.cancel(),k.current(e,n)},j=(0,l.useCallback)(()=>{O.current.cancel(),f(!1),o(Gi)},[]);return(0,l.useEffect)(()=>{let e=e=>O.current(e,g,w,S,h),t=b.current;if(t)return t.addEventListener(`mousemove`,e),t.addEventListener(`mouseleave`,j),()=>{t.removeEventListener(`mousemove`,e),t.removeEventListener(`mouseleave`,j)}},[O,j,S,w,g,h]),(0,l.useEffect)(()=>{p||c(e)},[e,p]),(0,u.jsxs)(Hi,{children:[(0,u.jsx)(Ta,{data:x,pageNum:T,pagesAmount:E,rows:w,onLoadNext:ee,onLoadPrevious:te,searchInputValue:p,onSearchInputChange:A,onItemClick:n}),(0,u.jsxs)(Ui,{children:[(0,u.jsx)(Ga,{zoom:h,topBarWidth:i,showThemeToggle:y,toggleTheme:r}),e.length?(0,u.jsx)(Hr,{data:x,zoom:h,rows:C,ref:b,onTileClick:t}):(0,u.jsx)(Wi,{width:i,children:(0,u.jsx)(Vi,{})}),v&&d&&a?.resourceIndex>-1&&(0,u.jsx)(uo,{tooltipData:a,zoom:h})]})]})},qi=`
|
|
152
|
+
background: none;
|
|
153
|
+
outline: none;
|
|
154
|
+
border: none;
|
|
155
|
+
font-size: 100%;
|
|
156
|
+
line-height: 1.15
|
|
157
|
+
margin: 0
|
|
158
|
+
`,Ji=q.div`
|
|
159
|
+
width: calc(${({width:e})=>e}px - ${196}px);
|
|
160
|
+
position: sticky;
|
|
161
|
+
top: 0;
|
|
162
|
+
left: ${196}px;
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
align-items: center;
|
|
166
|
+
height: ${({theme:e})=>e.navHeight};
|
|
167
|
+
padding: 0.625rem 1rem;
|
|
168
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
169
|
+
z-index: 3;
|
|
170
|
+
`,Yi=q.div`
|
|
171
|
+
display: flex;
|
|
172
|
+
gap: 1.875rem;
|
|
173
|
+
`,Xi=q.button`
|
|
174
|
+
${qi};
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
gap: 0.25rem;
|
|
178
|
+
font-size: 0.875rem;
|
|
179
|
+
font-weight: 400;
|
|
180
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
181
|
+
:not(:disabled) {
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
}
|
|
184
|
+
`,Zi=q.button`
|
|
185
|
+
${qi};
|
|
186
|
+
position: relative;
|
|
187
|
+
font-weight: 600;
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
line-height: 1.5rem;
|
|
190
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
191
|
+
|
|
192
|
+
&::before,
|
|
193
|
+
&::after {
|
|
194
|
+
content: "";
|
|
195
|
+
position: absolute;
|
|
196
|
+
width: 1px;
|
|
197
|
+
height: 1.5rem;
|
|
198
|
+
background-color: ${({theme:e})=>e.colors.textPrimary};
|
|
199
|
+
}
|
|
200
|
+
&::before {
|
|
201
|
+
left: -1.125rem;
|
|
202
|
+
}
|
|
203
|
+
&::after {
|
|
204
|
+
right: -1.125rem;
|
|
205
|
+
}
|
|
206
|
+
`,Qi=q.div`
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
gap: 0.5rem;
|
|
210
|
+
font-weight: 600;
|
|
211
|
+
font-size: 0.875rem;
|
|
212
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
213
|
+
`,$i=q.div`
|
|
214
|
+
display: flex;
|
|
215
|
+
`,ea=q.div`
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: "center";
|
|
218
|
+
gap: 1.25rem;
|
|
219
|
+
`,ta=({width:e,showThemeToggle:t,toggleTheme:n})=>{let{topbar:r}=Li(),{data:i,config:a,handleGoNext:o,handleGoPrev:s,handleGoToday:c,zoomIn:l,zoomOut:d,isNextZoom:f,isPrevZoom:p,handleFilterData:m,onClearFilterData:h}=Ir(),{colors:g}=K(),{filterButtonState:_=-1}=a;return(0,u.jsxs)(Ji,{width:e,children:[(0,u.jsx)($i,{children:_>=0&&(0,u.jsxs)(aa,{variant:_?`filled`:`outlined`,iconName:`filter`,width:`16`,height:`16`,onClick:m,children:[r.filters,!!_&&(0,u.jsx)(`span`,{onClick:e=>{e.stopPropagation(),h?.()},children:(0,u.jsx)(Q,{iconName:`close`,height:`16`,width:`16`,fill:g.textSecondary})})]})}),(0,u.jsxs)(Yi,{children:[(0,u.jsxs)(Xi,{disabled:!i?.length,onClick:s,children:[(0,u.jsx)(Q,{iconName:`arrowLeft`,height:`15`,fill:g.textPrimary}),r.prev]}),(0,u.jsx)(Zi,{onClick:c,children:r.today}),(0,u.jsxs)(Xi,{disabled:!i?.length,onClick:o,children:[r.next,(0,u.jsx)(Q,{iconName:`arrowRight`,height:`15`,fill:g.textPrimary})]})]}),(0,u.jsxs)(ea,{children:[t&&(0,u.jsx)(ho,{toggleTheme:n}),(0,u.jsxs)(Qi,{children:[r.view,(0,u.jsx)(aa,{isDisabled:!p,onClick:d,isFullRounded:!0,iconName:`subtract`,width:`14`}),(0,u.jsx)(aa,{isDisabled:!f,onClick:l,isFullRounded:!0,iconName:`add`,width:`14`})]})]})]})},na={add:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z`})}),subtract:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H6C5.58579 12.75 5.25 12.4142 5.25 12Z`})}),filter:e=>(0,u.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.33008 2.76001C4.65781 2.76001 4.06006 3.31031 4.06006 4.13V6.45001C4.06006 6.6129 4.11982 6.88231 4.25809 7.19052C4.39356 7.49249 4.5738 7.76311 4.75036 7.93967L4.76365 7.9533L8.60367 11.9933C8.61628 12.0066 8.6284 12.0203 8.64001 12.0345C8.90276 12.3549 9.14136 12.7775 9.31532 13.2131C9.48804 13.6456 9.62006 14.1484 9.62006 14.63V19.98C9.62006 20.9693 10.7551 21.5824 11.6002 21.0655L13.0033 20.1599L13.0205 20.1491C13.1208 20.0882 13.2665 19.9358 13.3909 19.6966C13.5132 19.4611 13.5701 19.2272 13.5701 19.07C13.5701 18.6558 13.9059 18.32 14.3201 18.32C14.7343 18.32 15.0701 18.6558 15.0701 19.07C15.0701 19.5228 14.9269 19.9939 14.7218 20.3885C14.5202 20.7761 14.2142 21.1755 13.8093 21.425L12.4068 22.3302L12.3945 22.3379C10.6202 23.435 8.12006 22.2286 8.12006 19.98V14.63C8.12006 14.4016 8.05207 14.0944 7.92229 13.7694C7.79829 13.4589 7.63905 13.1851 7.49575 13.0049L3.68249 8.9931C3.3523 8.66063 3.08013 8.22943 2.8895 7.80449C2.70028 7.38271 2.56006 6.89712 2.56006 6.45001V4.13C2.56006 2.5297 3.78235 1.26001 5.33008 1.26001H18.67C20.1942 1.26001 21.4401 2.50577 21.4401 4.03V6.25C21.4401 6.79751 21.2722 7.36158 21.0548 7.83769C20.8366 8.31586 20.5373 8.77344 20.2104 9.10034C19.9175 9.39323 19.4426 9.39323 19.1497 9.10034C18.8568 8.80744 18.8568 8.33257 19.1497 8.03968C19.3228 7.86657 19.5285 7.56915 19.6903 7.21482C19.853 6.85843 19.9401 6.51249 19.9401 6.25V4.03C19.9401 3.33423 19.3658 2.76001 18.67 2.76001H5.33008Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.0701 10.87C14.717 10.87 13.6201 11.9669 13.6201 13.32C13.6201 14.6731 14.717 15.77 16.0701 15.77C17.4232 15.77 18.5201 14.6731 18.5201 13.32C18.5201 11.9669 17.4232 10.87 16.0701 10.87ZM12.1201 13.32C12.1201 11.1385 13.8885 9.37 16.0701 9.37C18.2516 9.37 20.0201 11.1385 20.0201 13.32C20.0201 15.5015 18.2516 17.27 16.0701 17.27C13.8886 17.27 12.1201 15.5015 12.1201 13.32Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M18.3397 15.5897C18.6326 15.2968 19.1075 15.2968 19.4004 15.5897L20.4004 16.5897C20.6933 16.8826 20.6933 17.3574 20.4004 17.6503C20.1075 17.9432 19.6326 17.9432 19.3397 17.6503L18.3397 16.6503C18.0468 16.3574 18.0468 15.8826 18.3397 15.5897Z`,fill:`currentColor`})]}),arrowLeft:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.1003 5.39966C10.3932 5.69256 10.3932 6.16743 10.1003 6.46032L5.31065 11.25H20.5C20.9142 11.25 21.25 11.5858 21.25 12C21.25 12.4142 20.9142 12.75 20.5 12.75H5.31067L10.1003 17.5397C10.3932 17.8326 10.3932 18.3074 10.1003 18.6003C9.80744 18.8932 9.33256 18.8932 9.03967 18.6003L2.96967 12.5303C2.82902 12.3897 2.75 12.1989 2.75 12C2.75 11.8011 2.82902 11.6103 2.96967 11.4697L9.03967 5.39966C9.33256 5.10677 9.80744 5.10677 10.1003 5.39966Z`})}),arrowRight:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.8997 5.39966C14.1926 5.10677 14.6674 5.10677 14.9603 5.39966L21.0303 11.4697C21.171 11.6103 21.25 11.8011 21.25 12C21.25 12.1989 21.171 12.3897 21.0303 12.5303L14.9603 18.6003C14.6674 18.8932 14.1926 18.8932 13.8997 18.6003C13.6068 18.3074 13.6068 17.8326 13.8997 17.5397L18.6893 12.75H3.5C3.08579 12.75 2.75 12.4142 2.75 12C2.75 11.5858 3.08579 11.25 3.5 11.25H18.6893L13.8997 6.46032C13.6068 6.16743 13.6068 5.69256 13.8997 5.39966Z`})}),defaultAvatar:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2.75C6.89137 2.75 2.75 6.89137 2.75 12C2.75 14.2736 3.57027 16.3556 4.93102 17.9662C5.29334 17.2869 5.86897 16.6773 6.61129 16.1778L6.61502 16.1753L6.61503 16.1753C8.13359 15.1666 10.0914 14.685 12.0075 14.685C13.9234 14.685 15.8774 15.1665 17.3871 16.1767L17.3887 16.1778C18.131 16.6773 18.7067 17.2869 19.069 17.9662C20.4297 16.3556 21.25 14.2736 21.25 12C21.25 6.89137 17.1086 2.75 12 2.75ZM13.6371 22.6261C18.7972 21.8377 22.75 17.3805 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C12.1855 22.75 12.37 22.7453 12.5532 22.736C12.8268 22.7221 13.0977 22.698 13.3655 22.6641C13.4564 22.6526 13.5469 22.6399 13.6371 22.6261ZM17.9216 19.1C17.7538 18.5356 17.323 17.9417 16.5521 17.4228C15.3419 16.6133 13.6963 16.185 12.0075 16.185C10.3195 16.185 8.66811 16.613 7.44686 17.4235C6.67666 17.9422 6.24614 18.5359 6.07838 19.1C7.06079 19.9227 8.21266 20.5433 9.47543 20.9013C10.2779 21.1284 11.1248 21.25 12 21.25C12.8752 21.25 13.7221 21.1284 14.5246 20.9013C15.7873 20.5433 16.9392 19.9227 17.9216 19.1ZM12 6.98C10.5957 6.98 9.47 8.11272 9.47 9.51C9.47 10.8588 10.5236 11.9585 11.8587 12.0284C11.9506 12.0209 12.0487 12.0202 12.1439 12.0283C13.4732 11.9572 14.5212 10.8618 14.53 9.50795C14.5289 8.1131 13.3951 6.98 12 6.98ZM7.97 9.51C7.97 7.28728 9.7643 5.48 12 5.48C14.2242 5.48 16.03 7.28579 16.03 9.51V9.51424H16.03C16.0177 11.6826 14.3122 13.4557 12.1456 13.5296C12.1016 13.5311 12.0575 13.5287 12.0139 13.5225C12.0182 13.5231 12.0191 13.523 12.0163 13.5228C12.0137 13.5227 12.0094 13.5225 12.0037 13.5225C11.9915 13.5225 11.9801 13.5233 11.973 13.5242C11.9337 13.5291 11.8941 13.5309 11.8544 13.5296C9.69161 13.4558 7.97 11.6855 7.97 9.51Z`,fill:`#777`})}),calendarWarning:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 6.01326C9.23021 6.18411 9.23021 6.46112 9.05936 6.63198L5.55936 10.132C5.3885 10.3028 5.11149 10.3028 4.94064 10.132C4.76979 9.96112 4.76979 9.68411 4.94064 9.51326L8.44064 6.01326C8.6115 5.8424 8.8885 5.8424 9.05936 6.01326Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 10.132C8.8885 10.3028 8.61149 10.3028 8.44064 10.132L4.94064 6.63198C4.76979 6.46112 4.76979 6.18411 4.94064 6.01326C5.11149 5.8424 5.3885 5.8424 5.55936 6.01326L9.05936 9.51326C9.23021 9.68411 9.23021 9.96112 9.05936 10.132Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#EF4444`})]}),calendarFree:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#278904`})]}),arrowDown:e=>(0,u.jsx)(`svg`,{width:17,height:16,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.09957 9.26775C4.29483 9.07249 4.61142 9.07249 4.80668 9.26775L7.9998 12.4609L7.9998 2.33463C7.9998 2.05848 8.22365 1.83463 8.4998 1.83463C8.77594 1.83463 8.9998 2.05848 8.9998 2.33463L8.9998 12.4609L12.1929 9.26775C12.3882 9.07249 12.7047 9.07249 12.9 9.26775C13.0953 9.46301 13.0953 9.77959 12.9 9.97486L8.85334 14.0215C8.75958 14.1153 8.6324 14.168 8.49979 14.168C8.36718 14.168 8.24001 14.1153 8.14624 14.0215L4.09957 9.97486C3.90431 9.77959 3.90431 9.46301 4.09957 9.26775Z`})}),arrowUp:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.59957 6.73486C3.40431 6.5396 3.40431 6.22301 3.59957 6.02775L7.64624 1.98108C7.74001 1.88732 7.86718 1.83464 7.99979 1.83464C8.1324 1.83464 8.25958 1.88732 8.35334 1.98108L12.4 6.02775C12.5953 6.22301 12.5953 6.5396 12.4 6.73486C12.2047 6.93012 11.8882 6.93012 11.6929 6.73486L8.4998 3.54175L8.4998 13.668C8.4998 13.9441 8.27594 14.168 7.9998 14.168C7.72365 14.168 7.4998 13.9441 7.4998 13.668L7.4998 3.54174L4.30668 6.73486C4.11142 6.93012 3.79483 6.93012 3.59957 6.73486Z`})}),search:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11 4.75C7.54822 4.75 4.75 7.54822 4.75 11C4.75 14.4518 7.54822 17.25 11 17.25C14.4518 17.25 17.25 14.4518 17.25 11C17.25 7.54822 14.4518 4.75 11 4.75ZM3.25 11C3.25 6.71979 6.71979 3.25 11 3.25C15.2802 3.25 18.75 6.71979 18.75 11C18.75 12.87 18.0877 14.5853 16.9848 15.9242L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L15.9242 16.9848C14.5853 18.0877 12.87 18.75 11 18.75C6.71979 18.75 3.25 15.2802 3.25 11Z`,fill:`#777777`})}),close:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z`})}),moon:e=>(0,u.jsx)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 11.5373 21.3065 11.4608 21.0672 11.8568C19.9289 13.7406 17.8615 15 15.5 15C11.9101 15 9 12.0899 9 8.5C9 6.13845 10.2594 4.07105 12.1432 2.93276C12.5392 2.69347 12.4627 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,fill:`#1C274C`})}),sun:e=>(0,u.jsxs)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`circle`,{cx:12,cy:12,r:5,stroke:`#1C274C`,strokeWidth:1.5}),(0,u.jsx)(`path`,{d:`M12 2V4`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M12 20V22`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4 12L2 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M22 12L20 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 4.22266L17.5558 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4.22217 4.22266L6.44418 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M6.44434 17.5557L4.22211 19.7779`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 19.7773L17.5558 17.5551`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`})]})},Q=({iconName:e,width:t,height:n,fill:r,className:i})=>{let{colors:a}=K(),o=na[e];return o?(0,u.jsx)(o,{style:{transition:`.5s ease`},fill:r??a.accent,width:t,height:n,className:i}):null},ra=(e,t,n)=>({outlined:{color:n?e.colors.disabled:e.colors.accent,border:`1px solid ${n?e.colors.disabled:e.colors.accent}`,background:`transparent`},filled:{color:n?e.colors.primary:e.colors.textSecondary,background:n?e.colors.disabled:e.colors.accent,border:`1px solid transparent`}})[t],ia=q.button`
|
|
220
|
+
outline: none;
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
min-width: 24px;
|
|
225
|
+
min-height: 24px;
|
|
226
|
+
border-radius: ${({isFullRounded:e})=>e?`50%`:`4px`};
|
|
227
|
+
cursor: ${({disabled:e})=>e?`auto`:`pointer`};
|
|
228
|
+
font-size: 14px;
|
|
229
|
+
gap: 4px;
|
|
230
|
+
padding: ${({hasChildren:e})=>e?`0 10px`:`0`};
|
|
231
|
+
transition: 0.5s ease;
|
|
232
|
+
${({theme:e,variant:t,disabled:n})=>ra(e,t,n)}
|
|
233
|
+
`,aa=({iconName:e,width:t,height:n,fill:r,className:i,onClick:a,children:o,isFullRounded:s,isDisabled:c,variant:l=`outlined`})=>{let{colors:d}=K();return(0,u.jsxs)(ia,{onClick:a,isFullRounded:s,hasChildren:!!o,disabled:c,variant:l,children:[(0,u.jsx)(Q,{iconName:e,width:t,height:n,fill:c?d.disabled:r,className:i}),o]})},oa=q.div`
|
|
234
|
+
position: absolute;
|
|
235
|
+
top: 0;
|
|
236
|
+
bottom: 0;
|
|
237
|
+
left: 0;
|
|
238
|
+
right: 0;
|
|
239
|
+
display: flex;
|
|
240
|
+
overflow-x: ${({showScroll:e})=>e?`scroll`:`hidden`};
|
|
241
|
+
background-color: ${({theme:e})=>e.colors.gridBackground};
|
|
242
|
+
`,sa=q.div`
|
|
243
|
+
position: relative;
|
|
244
|
+
`,ca=({data:e,config:t,startDate:n,onRangeChange:r,onTileClick:i,onFilterData:a,onClearFilterData:o,onItemClick:s,isLoading:c})=>{let d=(0,l.useMemo)(()=>({zoom:0,filterButtonState:1,includeTakenHoursOnWeekendsInDayView:!1,showTooltip:!0,translations:void 0,...t}),[t]),f=(0,l.useRef)(null),[p,m]=(0,l.useState)(f.current?.clientWidth),h=(0,l.useMemo)(()=>(0,Z.default)(n),[n]),[g,_]=(0,l.useState)(d.defaultTheme??`light`),v=()=>{_(g===`light`?`dark`:`light`)},y=g===`light`?Un:Wn,b=d.theme?d.theme[y.mode]:{},x={...y,colors:{...y.colors,...b}};return(0,l.useEffect)(()=>{let e=()=>{f.current&&m(f.current.clientWidth)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),f.current,(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hn,{}),(0,u.jsx)(Cn,{theme:x,children:(0,u.jsx)(Ii,{lang:d.lang,translations:d.translations,children:(0,u.jsx)(Fr,{data:e,isLoading:!!c,config:d,onRangeChange:r,defaultStartDate:h,onFilterData:a,onClearFilterData:o,children:(0,u.jsx)(oa,{showScroll:!!e.length,id:Y,ref:f,children:(0,u.jsx)(sa,{children:(0,u.jsx)(Ki,{data:e,onTileClick:i,topBarWidth:p??0,onItemClick:s,toggleTheme:v})})})})})})]})},la=q.div`
|
|
245
|
+
padding: 4px 11px 0;
|
|
246
|
+
width: 100%;
|
|
247
|
+
border-top: ${({intent:e,theme:t})=>e===`next`?`1px solid ${t.colors.border}`:`none`};
|
|
248
|
+
`,ua=q.button`
|
|
249
|
+
margin-top: 0px;
|
|
250
|
+
padding: 0;
|
|
251
|
+
width: 100%;
|
|
252
|
+
display: flex;
|
|
253
|
+
align-items: center;
|
|
254
|
+
background-color: transparent;
|
|
255
|
+
border: 1px solid ${({theme:e})=>e.colors.accent};
|
|
256
|
+
border-radius: 4px;
|
|
257
|
+
font-size: 14px;
|
|
258
|
+
color: ${({theme:e})=>e.colors.accent};
|
|
259
|
+
line-height: 150%;
|
|
260
|
+
letter-spacing: 1px;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
opacity: ${({isVisible:e})=>e?`1`:`0`};
|
|
263
|
+
pointer-events: ${({isVisible:e})=>e?`auto`:`none`};
|
|
264
|
+
&:hover {
|
|
265
|
+
transition: 0.5s ease;
|
|
266
|
+
background-color: ${({theme:e})=>e.colors.hover};
|
|
267
|
+
}
|
|
268
|
+
`,da=q.div`
|
|
269
|
+
position: absolute;
|
|
270
|
+
max-height: 16px;
|
|
271
|
+
margin: 0 4px 0 10px;
|
|
272
|
+
display: flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
`,fa=q.p`
|
|
276
|
+
${Gn}
|
|
277
|
+
margin-left: 14px;
|
|
278
|
+
width: 100%;
|
|
279
|
+
text-align: center;
|
|
280
|
+
`,pa=({intent:e,onClick:t,icon:n,isVisible:r,pageNum:i,pagesAmount:a})=>{let{loadNext:o,loadPrevious:s}=Li(),c=e===`next`?`${o} ${i+2}/${a}`:`${s} ${i}/${a}`;return(0,u.jsx)(la,{intent:e,children:(0,u.jsxs)(ua,{onClick:t,isVisible:r,children:[n&&(0,u.jsx)(da,{children:n}),(0,u.jsx)(fa,{children:c})]})})},ma=q.div`
|
|
281
|
+
min-width: ${`196px`};
|
|
282
|
+
max-width: ${`196px`};
|
|
283
|
+
min-height: 100vh;
|
|
284
|
+
position: sticky;
|
|
285
|
+
left: 0;
|
|
286
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
287
|
+
box-shadow: 0px 4px 15px rgba(39, 55, 75, 0.16);
|
|
288
|
+
z-index: 2;
|
|
289
|
+
`,ha=q.div`
|
|
290
|
+
padding-bottom: 4px;
|
|
291
|
+
position: sticky;
|
|
292
|
+
top: 0;
|
|
293
|
+
height: 124px;
|
|
294
|
+
display: flex;
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
justify-content: end;
|
|
297
|
+
width: ${196}px;
|
|
298
|
+
background-color: ${({theme:e})=>e.colors.background};
|
|
299
|
+
z-index: 3;
|
|
300
|
+
`,ga=q.input`
|
|
301
|
+
height: 100%;
|
|
302
|
+
width: calc(100% - 44px);
|
|
303
|
+
background-color: transparent;
|
|
304
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
305
|
+
padding: 7px 0 7px 12px;
|
|
306
|
+
border: 0;
|
|
307
|
+
outline: none;
|
|
308
|
+
&::placeholder {
|
|
309
|
+
color: ${({theme:e})=>e.colors.placeholder};
|
|
310
|
+
}
|
|
311
|
+
`,_a=q.div`
|
|
312
|
+
margin-left: 10px;
|
|
313
|
+
height: 36px;
|
|
314
|
+
width: calc(100% - 20px); //20px = 10px margin each side
|
|
315
|
+
background-color: ${({theme:e})=>e.colors.primary};
|
|
316
|
+
border: 1px solid
|
|
317
|
+
${({theme:e,isFocused:t})=>t?e.colors.accent:e.colors.border};
|
|
318
|
+
border-radius: 4px;
|
|
319
|
+
display: flex;
|
|
320
|
+
justify-content: space-between;
|
|
321
|
+
align-items: center;
|
|
322
|
+
|
|
323
|
+
svg {
|
|
324
|
+
margin-left: auto;
|
|
325
|
+
margin-right: 12px;
|
|
326
|
+
height: 24px;
|
|
327
|
+
width: 24px;
|
|
328
|
+
}
|
|
329
|
+
`,va=q.div`
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: ${({rows:e})=>e>1?`start`:`center`};
|
|
332
|
+
padding: 0.813rem 0 0.813rem 1rem;
|
|
333
|
+
width: 100%;
|
|
334
|
+
min-height: ${56}px;
|
|
335
|
+
height: calc(${56}px * ${({rows:e})=>e});
|
|
336
|
+
border-top: 1px solid ${({theme:e})=>e.colors.border};
|
|
337
|
+
transition: 0.5s ease;
|
|
338
|
+
cursor: ${({clickable:e})=>e?`pointer`:`auto`};
|
|
339
|
+
&:hover {
|
|
340
|
+
background-color: ${({theme:e})=>e.colors.hover};
|
|
341
|
+
}
|
|
342
|
+
`,ya=q.div`
|
|
343
|
+
display: flex;
|
|
344
|
+
align-items: center;
|
|
345
|
+
`,ba=q.div`
|
|
346
|
+
margin-right: 0.5rem;
|
|
347
|
+
width: 1.5rem;
|
|
348
|
+
height: 1.5rem;
|
|
349
|
+
border-radius: 50%;
|
|
350
|
+
overflow: hidden;
|
|
351
|
+
flex-shrink: 0;
|
|
352
|
+
`,xa=q.img`
|
|
353
|
+
object-fit: cover;
|
|
354
|
+
height: 100%;
|
|
355
|
+
width: 100%;
|
|
356
|
+
`,Sa=q.div`
|
|
357
|
+
display: flex;
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
flex: 1 0 0;
|
|
360
|
+
`,Ca=q.p`
|
|
361
|
+
margin: 0;
|
|
362
|
+
padding: 0;
|
|
363
|
+
font-size: ${({isMain:e})=>e?`0.75rem`:`0.625rem`};
|
|
364
|
+
letter-spacing: ${({isMain:e})=>e?`1px`:`0.5px`};
|
|
365
|
+
line-height: ${({isMain:e})=>e?`1.125rem`:`0.75rem`};
|
|
366
|
+
color: ${({isMain:e,theme:t})=>e?t.colors.textPrimary:t.colors.placeholder};
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
display: inline-block;
|
|
369
|
+
max-width: 144px;
|
|
370
|
+
width: 100%;
|
|
371
|
+
white-space: nowrap;
|
|
372
|
+
overflow: hidden;
|
|
373
|
+
text-align: left;
|
|
374
|
+
`,wa=({id:e,item:t,rows:n,onItemClick:r})=>(0,u.jsx)(va,{title:t.title+` | `+t.subtitle,clickable:typeof r==`function`,rows:n,onClick:()=>r?.({id:e,label:t}),children:(0,u.jsxs)(ya,{children:[(0,u.jsx)(ba,{children:t.icon?(0,u.jsx)(xa,{src:t.icon,alt:`Icon`}):(0,u.jsx)(Q,{iconName:`defaultAvatar`})}),(0,u.jsxs)(Sa,{children:[(0,u.jsx)(Ca,{isMain:!0,children:t.title}),(0,u.jsx)(Ca,{children:t.subtitle})]})]})}),Ta=({data:e,rows:t,onLoadNext:n,onLoadPrevious:r,pageNum:i,pagesAmount:a,searchInputValue:o,onSearchInputChange:s,onItemClick:c})=>{let[d,f]=(0,l.useState)(!1),{search:p}=Li(),m=()=>f(e=>!e);return(0,u.jsxs)(ma,{children:[(0,u.jsxs)(ha,{children:[(0,u.jsxs)(_a,{isFocused:d,children:[(0,u.jsx)(ga,{placeholder:p,value:o,onChange:s,onFocus:m,onBlur:m}),(0,u.jsx)(Q,{iconName:`search`})]}),(0,u.jsx)(pa,{intent:`previous`,isVisible:i!==0,onClick:r,icon:(0,u.jsx)(Q,{iconName:`arrowUp`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]}),e.map((e,n)=>(0,u.jsx)(wa,{id:e.id,item:e.label,rows:t[n],onItemClick:c},e.id)),(0,u.jsx)(pa,{intent:`next`,isVisible:i!==a-1,onClick:n,icon:(0,u.jsx)(Q,{iconName:`arrowDown`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]})},Ea=q.div`
|
|
375
|
+
width: 388px;
|
|
376
|
+
height: 100%;
|
|
377
|
+
position: absolute;
|
|
378
|
+
top: 0;
|
|
379
|
+
left: ${({position:e})=>e===`left`?0:`auto`};
|
|
380
|
+
right: ${({position:e})=>e===`right`?0:`auto`};
|
|
381
|
+
background-color: ${({theme:e})=>e.colors.secondary};
|
|
382
|
+
opacity: 0.7;
|
|
383
|
+
overflow: hidden;
|
|
384
|
+
z-index: 1;
|
|
385
|
+
`,Da=zn`
|
|
386
|
+
from{
|
|
387
|
+
left: -100%;
|
|
388
|
+
}
|
|
389
|
+
to{
|
|
390
|
+
left: 100%;
|
|
391
|
+
}`,Oa=q.div`
|
|
392
|
+
width: inherit;
|
|
393
|
+
height: 100%;
|
|
394
|
+
position: absolute;
|
|
395
|
+
background: linear-gradient(90deg, #e6f3ff 1%, #9ec4e7 50%, #e6f3ff 100%);
|
|
396
|
+
animation: ${Da} 1s infinite;
|
|
397
|
+
`,ka=({isLoading:e,position:t})=>e?(0,u.jsx)(Ea,{position:t,children:(0,u.jsx)(Oa,{})}):null,$=(e,t)=>{let{ctx:n,x:r,y:i,width:a,height:o,textYPos:s,label:c,font:l,isBottomRow:u,fillStyle:d,topText:f,bottomText:p,labelBetweenCells:m}=e;if(n.beginPath(),n.strokeStyle=t.colors.border,n.setLineDash([]),c&&l&&s){n.fillStyle=t.colors.gridBackground,n.fillRect(r,i,a,o),m?(n.moveTo(r,i),n.lineTo(r+a,i),n.stroke(),n.moveTo(r,i+o),n.lineTo(r+a,i+o),n.stroke(),n.moveTo(r+a/2,i+o),n.lineTo(r+a/2,i+o-5),n.stroke()):n.strokeRect(r+.5,i+.5,a,o),n.font=l;let e=r+a/2-n.measureText(c).width/2;n.textBaseline=`middle`,n.fillStyle=t.colors.placeholder,n.fillText(c,e,s)}if(u&&d&&f&&p){n.fillStyle=d,n.fillRect(r,i,a,o),n.strokeRect(r+.5,i+.5,a,o),n.font=f.font;let e=r+a/2-n.measureText(f.label).width/2;n.fillStyle=f.color,n.fillText(f.label,e,f.y),n.font=p.font;let t=r+a/2-n.measureText(p.label).width/2;n.fillStyle=p.color,n.fillText(p.label,t,p.y)}},Aa=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return i===`yearView`?n?t.colors.tertiary:t.colors.gridBackground:n||!r?t.colors.secondary:t.colors.primary},ja=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return n?i===`bottomRow`?t.colors.placeholder:t.colors.accent:r?i===`bottomRow`?t.colors.placeholder:t.colors.textPrimary:t.colors.placeholder},Ma=(e,t,n,r)=>{let i=80-40/qn,a=80-40/Jn,o=0;for(let s=0;s<t;s++){let t=er((0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(s,`days`));$({ctx:e,x:o,y:40,width:50,height:40,isBottomRow:!0,fillStyle:Aa({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r),topText:{y:i,label:t.dayName.toUpperCase(),font:J.bottomRow.name,color:ja({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r)},bottomText:{y:a,label:`${t.dayOfMonth}`,font:J.bottomRow.number,color:ja({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay,variant:`bottomRow`},r)}},r),o+=50}},Na=(e,t,n,r)=>{let i=-(n.dayOfMonth-1)*12,a=n.month;for(let o=0;o<t;o++){a>=12&&(a=0);let t=$n(n,o)*12;$({ctx:e,x:i,y:24,width:t,height:16,textYPos:33,label:(0,Z.default)().month(a).format(`MMMM`).toUpperCase(),font:J.bottomRow.number},r),i+=t,a++}},Pa=(e,t,n)=>{let r=0,i=0,a=0,o=(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month();r=-t.dayOfMonth*50+50;for(let s=0;s<12;s++)o>11&&(o=0,a++),i=(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).add(s,`months`).daysInMonth()*50,$({ctx:e,x:r,y:0,width:i,height:24,textYPos:14,label:(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`MMMM`).toUpperCase()+` ${(0,Z.default)(`${t.year+a}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`YYYY`)}`,font:J.topRow},n),r+=i,o++},Fa=(e,t,n,r)=>{let i=e.canvas.width/350+350,a=t.weekOfYear,o=0;for(let s=0;s<i;s++){let i=`${t.year}-${t.month+1}-${t.dayOfMonth}`,c=(0,Z.default)(i).day(),l=(0,Z.default)(i).isoWeeksInYear(),u=(a+s)%l;u<=0&&(u+=l),c!==1&&s===0&&(o=-c*50+50),$({ctx:e,x:o,y:24,width:350,height:16,textYPos:33,label:`${n.toUpperCase()} ${u}`,font:J.middleRow},r),o+=350}},Ia=(e,t,n,r,i)=>{let a=0;for(let o=0;o<t;o++){let t=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(o,`weeks`),s=t.isSame((0,Z.default)(),`week`);$({ctx:e,x:a,y:40,width:84,height:40,isBottomRow:!0,fillStyle:Aa({isCurrent:s,variant:`yearView`},i),topText:{y:55,label:t.isoWeek().toString(),font:J.bottomRow.name,color:ja({isCurrent:s},i)},bottomText:{y:71.11111111111111,label:r.toUpperCase(),font:J.middleRow,color:i.colors.placeholder}},i),a+=84}},La=(e,t,n,r)=>{let i=t.year,a=e.canvas.width*2,o=0,s=0,c=(Zn(i)-n+1)*12,l=0;for(;o+l<=a;)s>0&&(c=Zn(i+s)*12),l+c>a&&s>0&&(c=Math.ceil((a-l)/12)*12),$({ctx:e,x:o,y:0,width:c,height:24,textYPos:14,label:(i+s).toString(),font:J.topRow},r),o+=c,l+=c,s++},Ra=(e,t,n,r)=>{let i=Math.floor(t/24)+2,a=1200,o=-(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`).hour()*50+25;for(let t=0;t<i;t++){let i=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(t,`day`).format(`dddd DD.MM.YYYY`).toUpperCase();$({ctx:e,x:o,y:24,width:a,height:16,textYPos:34,label:i,font:J.bottomRow.number},r),o+=a}},za=(e,t,n,r)=>{let i=Math.ceil(t/24),a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`),o=a.add(i-1,`days`),s=a.month()===o.add(1,`day`).month()?1:2,c=25;for(let i=0;i<s;i++){let a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`),o=(0,Z.default)(`${n.year}-${n.month+i+1}-01T:23:59:59`).endOf(`month`),s=o.format(`MMMM`).toUpperCase(),l=o.diff(a,`hour`)+1,u=i===0?l*50:t*50;$({ctx:e,x:c,y:0,width:u,height:24,textYPos:14,label:s,font:J.topRow},r),c+=u}},Ba=(e,t,n,r)=>{let i=0,a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`);for(let n=0;n<t;n++){let t=a.add(n,`hours`).format(`HH:00`).toUpperCase();$({ctx:e,x:i,y:40,width:50,height:40,label:t,font:J.bottomRow.number,textYPos:62,labelBetweenCells:!0},r),i+=50}},Va=(e,t,n,r,i,a,o)=>{switch(t){case 0:La(e,r,a,o),Na(e,n,r,o),Ia(e,n,r,i,o);break;case 1:Pa(e,r,o),Fa(e,r,i,o),Ma(e,n,r,o);break;case 2:za(e,n,r,o),Ra(e,n,r,o),Ba(e,n,r,o)}},Ha=q.div`
|
|
398
|
+
position: sticky;
|
|
399
|
+
top: 0;
|
|
400
|
+
z-index: 1;
|
|
401
|
+
`,Ua=q.div`
|
|
402
|
+
height: ${80}px;
|
|
403
|
+
display: block;
|
|
404
|
+
`,Wa=q.canvas``,Ga=({zoom:e,topBarWidth:t,showThemeToggle:n,toggleTheme:r})=>{let{week:i}=Li(),{date:a,cols:o,dayOfYear:s,startDate:c}=Ir(),d=(0,l.useRef)(null),f=K(),p=(0,l.useCallback)(t=>{Lr(t,Tr(),81),Va(t,e,o,c,i,s,f)},[o,s,c,i,e,f]);return(0,l.useEffect)(()=>{if(!d.current)return;let e=d.current.getContext(`2d`);if(!e)return;let t=()=>p(e);return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[p]),(0,l.useEffect)(()=>{let e=d.current;if(!e)return;e.style.letterSpacing=`1px`;let t=e.getContext(`2d`);t&&p(t)},[a,e,p]),(0,u.jsxs)(Ha,{children:[(0,u.jsx)(ta,{width:t,showThemeToggle:n,toggleTheme:r}),(0,u.jsx)(Ua,{id:Yn,children:(0,u.jsx)(Wa,{ref:d})})]})},Ka=(e,t,n)=>{let r;switch(n){case 0:r=12;break;case 2:r=50;break;default:r=50}let i=()=>{let i;switch(n){case 2:i=(e.startDate.diff(t.startDate,`minute`)/60+1)*r-r/2;break;default:i=(e.startDate.diff(t.startDate,`day`)+1)*r}return Math.max(0,i)};if(e.startDate.isAfter(t.startDate)&&e.endDate.isBefore(t.endDate)){let t;switch(n){case 2:t=e.endDate.diff(e.startDate,`minute`)/60*r;break;default:t=e.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:t}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isBefore(t.endDate)){let a;switch(n){case 2:a=e.endDate.diff(t.startDate,`minute`)/60*r+.5*r;break;default:a=e.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isAfter(t.startDate)&&e.endDate.isAfter(t.endDate)){let a;switch(n){case 2:a=t.endDate.diff(e.startDate,`minute`)/60*r;break;default:a=t.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isAfter(t.endDate)){let e;switch(n){case 2:e=t.endDate.diff(t.startDate,`minute`)/60*r;break;default:e=t.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:e}}return{x:i(),width:0}},qa=(e,t,n,r,i,a)=>{let o=e*56+4,s=t.hour(),c=n.hour(),l,u,d,f;switch(a){case 2:l=(0,Z.default)(r),u=(0,Z.default)(i),d=(0,Z.default)(t).hour(s).minute(0),f=(0,Z.default)(n).hour(c).minute(0);break;default:l=(0,Z.default)(r).hour(0).minute(0),u=(0,Z.default)(i).hour(23).minute(59),d=t,f=n}return{...Ka({startDate:l,endDate:u},{startDate:d,endDate:f},a),y:o}},Ja=e=>{if(!e)return`white`;let t=[];for(let n=1;n<6;n+=2)t.push(parseInt(e.slice(n,n+2),16)/255);let n=t.map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*n[0]+.7152*n[1]+.0722*n[2]>.5?`black`:`white`},Ya=q.button`
|
|
405
|
+
${Gn}
|
|
406
|
+
height: ${48}px;
|
|
407
|
+
position: absolute;
|
|
408
|
+
outline: none;
|
|
409
|
+
border: none;
|
|
410
|
+
border-radius: 4px;
|
|
411
|
+
text-align: left;
|
|
412
|
+
color: ${({theme:e})=>e.colors.textPrimary};
|
|
413
|
+
width: 100%;
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
`,Xa=q.div`
|
|
416
|
+
margin: 10px 16px;
|
|
417
|
+
position: relative;
|
|
418
|
+
display: flex;
|
|
419
|
+
font-size: 10px;
|
|
420
|
+
letter-spacing: 0.5px;
|
|
421
|
+
line-height: 12px;
|
|
422
|
+
`,Za=q.p`
|
|
423
|
+
${Gn}
|
|
424
|
+
${Kn}
|
|
425
|
+
display: inline;
|
|
426
|
+
font-weight: ${({bold:e})=>e?`600`:`400`};
|
|
427
|
+
&:first-child {
|
|
428
|
+
&::after {
|
|
429
|
+
content: "|";
|
|
430
|
+
margin: 0 3px;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
`,Qa=q.p`
|
|
434
|
+
${Gn}
|
|
435
|
+
${Kn}
|
|
436
|
+
`,$a=q.div`
|
|
437
|
+
position: sticky;
|
|
438
|
+
left: ${212}px;
|
|
439
|
+
overflow: hidden;
|
|
440
|
+
`,eo=({row:e,data:t,zoom:n,onTileClick:r})=>{let{date:i}=Ir(),a=Cr(i,n),{y:o,x:s,width:c}=qa(e,a.startDate,a.endDate,t.startDate,t.endDate,n),{colors:l}=K();return(0,u.jsx)(Ya,{style:{left:`${s}px`,top:`${o}px`,backgroundColor:`${t.bgColor??l.defaultTile}`,width:`${c}px`,color:Ja(t.bgColor??``)},onClick:()=>r?.(t),children:(0,u.jsx)(Xa,{children:(0,u.jsxs)($a,{children:[(0,u.jsx)(Za,{bold:!0,children:t.title}),(0,u.jsx)(Za,{children:t.subtitle}),(0,u.jsx)(Qa,{children:t.description})]})})})},to=({data:e,zoom:t,onTileClick:n})=>{let r=(0,l.useCallback)(()=>{let r=0;return e.map((i,a)=>(a>0&&(r+=Math.max(e[a-1].data.length,1)),i.data.map((e,i)=>e.map(e=>(0,u.jsx)(eo,{row:i+r,data:e,zoom:t,onTileClick:n},e.id))))).flat(2)},[e,n,t]);return(0,u.jsx)(u.Fragment,{children:r()})};q.div`
|
|
441
|
+
box-sizing: border-box;
|
|
442
|
+
font-family: Inter;
|
|
443
|
+
padding: 0 0.5rem;
|
|
444
|
+
height: 125px;
|
|
445
|
+
position: fixed;
|
|
446
|
+
top: ${({isExpanded:e})=>e?0:`-129px`};
|
|
447
|
+
display: flex;
|
|
448
|
+
flex-direction: column;
|
|
449
|
+
background-color: white;
|
|
450
|
+
z-index: 999;
|
|
451
|
+
`,q.div`
|
|
452
|
+
width: 100%;
|
|
453
|
+
margin-top: 2px;
|
|
454
|
+
height: 1.5rem;
|
|
455
|
+
display: flex;
|
|
456
|
+
align-items: center;
|
|
457
|
+
justify-content: space-between;
|
|
458
|
+
letter-spacing: 0.5px;
|
|
459
|
+
background-color: white;
|
|
460
|
+
`,q.label`
|
|
461
|
+
font-size: 14px;
|
|
462
|
+
`,q.input`
|
|
463
|
+
width: 45px;
|
|
464
|
+
height: 18px;
|
|
465
|
+
font-size: 14px;
|
|
466
|
+
border: 1px solid #0a11eb;
|
|
467
|
+
border-radius: 4px;
|
|
468
|
+
background-color: white;
|
|
469
|
+
outline: none;
|
|
470
|
+
`,q.input`
|
|
471
|
+
height: 18px;
|
|
472
|
+
width: 18px;
|
|
473
|
+
`,q.button`
|
|
474
|
+
width: 100%;
|
|
475
|
+
font-size: 14px;
|
|
476
|
+
outline: none;
|
|
477
|
+
background-color: #fff;
|
|
478
|
+
border: 1px solid #0a11eb;
|
|
479
|
+
border-radius: 4px;
|
|
480
|
+
color: #0a11eb;
|
|
481
|
+
cursor: pointer;
|
|
482
|
+
&:hover {
|
|
483
|
+
background-color: #c9e5ff;
|
|
484
|
+
}
|
|
485
|
+
`,q.form`
|
|
486
|
+
background-color: rgba(255, 255, 255, 0.75);
|
|
487
|
+
`;var no=q.div`
|
|
488
|
+
padding: 8px 16px;
|
|
489
|
+
position: absolute;
|
|
490
|
+
background-color: ${({theme:e})=>e.colors.tooltip};
|
|
491
|
+
border-radius: 8px;
|
|
492
|
+
z-index: 3;
|
|
493
|
+
transition: all 0.25s;
|
|
494
|
+
transition-timing-function: ease-out;
|
|
495
|
+
pointer-events: none;
|
|
496
|
+
`,ro=q.div`
|
|
497
|
+
width: 100%;
|
|
498
|
+
`,io=q.div`
|
|
499
|
+
position: absolute;
|
|
500
|
+
width: 0;
|
|
501
|
+
height: 0;
|
|
502
|
+
top: 100%;
|
|
503
|
+
left: 50%;
|
|
504
|
+
transform: translateX(-50%);
|
|
505
|
+
border-left: 14px solid transparent;
|
|
506
|
+
border-right: 14px solid transparent;
|
|
507
|
+
border-top: 14px solid ${({theme:e})=>e.colors.tooltip};
|
|
508
|
+
`,ao=q.div``,oo=q.div`
|
|
509
|
+
display: flex;
|
|
510
|
+
align-items: center;
|
|
511
|
+
&:first-child {
|
|
512
|
+
margin-bottom: 8px;
|
|
513
|
+
}
|
|
514
|
+
`,so=q.div`
|
|
515
|
+
${Gn}
|
|
516
|
+
display: flex;
|
|
517
|
+
align-items: center;
|
|
518
|
+
font-size: 10px;
|
|
519
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
520
|
+
line-height: 12px;
|
|
521
|
+
letter-spacing: 0.5px;
|
|
522
|
+
`,co=q.p`
|
|
523
|
+
${Gn}
|
|
524
|
+
margin-left: 4px;
|
|
525
|
+
color: ${({theme:e})=>e.colors.textSecondary};
|
|
526
|
+
`,lo=q.span`
|
|
527
|
+
font-size: 10px;
|
|
528
|
+
font-weight: 600;
|
|
529
|
+
color: ${({theme:e})=>e.colors.warning};
|
|
530
|
+
`,uo=({tooltipData:e,zoom:t})=>{let{taken:n,free:r,over:i}=Li(),{coords:a,disposition:o}=e,s=(0,l.useRef)(null),c=84;switch(t){case 0:c=84;break;case 1:c=50;break;case 2:c=50}return(0,l.useLayoutEffect)(()=>{if(!s.current)return;let{width:e}=s.current.getBoundingClientRect(),n;switch(t){case 2:n=e/2+c;break;default:n=e/2+c/2}s.current.style.left=`${a.x-n}px`,s.current.style.top=`${a.y+8}px`},[a.x,c,o.overtime,a.y,t]),(0,u.jsxs)(no,{ref:s,children:[(0,u.jsx)(ro,{children:(0,u.jsxs)(ao,{children:[(0,u.jsxs)(oo,{children:[(0,u.jsx)(Q,{iconName:`calendarWarning`,height:`14`}),(0,u.jsxs)(so,{children:[(0,u.jsx)(co,{children:`${n}: ${o.taken.hours}h ${o.taken.minutes}m`}),(o.overtime.hours>0||o.overtime.minutes>0)&&(0,u.jsxs)(u.Fragment,{children:[`\xA0`,`-`,`\xA0`,(0,u.jsx)(lo,{children:`${o.overtime.hours}h ${o.overtime.minutes}m ${i}`})]})]})]}),(0,u.jsxs)(oo,{children:[(0,u.jsx)(Q,{iconName:`calendarFree`,height:`14`}),(0,u.jsx)(so,{children:(0,u.jsx)(co,{children:`${r}: ${o.free.hours}h ${o.free.minutes}m`})})]})]})}),(0,u.jsx)(io,{})]})},fo=q.div`
|
|
531
|
+
display: flex;
|
|
532
|
+
align-items: center;
|
|
533
|
+
cursor: pointer;
|
|
534
|
+
width: 60px;
|
|
535
|
+
height: 26px;
|
|
536
|
+
background-color: ${({theme:e})=>e.colors.secondary};
|
|
537
|
+
border-radius: 30px;
|
|
538
|
+
position: relative;
|
|
539
|
+
transition: background-color 0.3s ease;
|
|
540
|
+
`,po=q.div`
|
|
541
|
+
width: 20px;
|
|
542
|
+
height: 20px;
|
|
543
|
+
background-color: ${({theme:e})=>e.colors.button};
|
|
544
|
+
border-radius: 50%;
|
|
545
|
+
position: absolute;
|
|
546
|
+
top: 3px;
|
|
547
|
+
left: ${({theme:e})=>e.mode===`light`?`4px`:`34px`};
|
|
548
|
+
transition: left 0.3s ease;
|
|
549
|
+
`,mo=q.div`
|
|
550
|
+
position: absolute;
|
|
551
|
+
top: 5px;
|
|
552
|
+
left: ${({theme:e})=>e.mode===`light`?`38px`:`4px`};
|
|
553
|
+
transition: left 0.3s ease;
|
|
554
|
+
`,ho=({toggleTheme:e})=>{let t=K();return(0,u.jsxs)(fo,{onClick:e,children:[(0,u.jsx)(po,{}),(0,u.jsx)(mo,{children:t.mode===`light`?(0,u.jsx)(Q,{iconName:`sun`,height:`16`,width:`16`}):(0,u.jsx)(Q,{iconName:`moon`,height:`16`,width:`16`})})]})};exports.Scheduler=ca;
|