@zealicsolutions/web-ui 1.0.55-test.7 → 1.0.56

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../src/helpers/utils.ts"],"sourcesContent":[null],"names":["getParameterByName","name","url","match","RegExp","concat","decodeURIComponent","updateSearchParams","currentParams","internalLink","isPreview","webpageId","paramKeys","internalLinkWebpageId","applicationId","internalLinkApplicationId","newSearchParams","URLSearchParams","toString","has","previewApplicationId","set","previewSelectedWebpageId","runtimeSelectedWebpageId","downloadFile","fetch","_a","sent","blob","blobUrl","URL","createObjectURL","a","document","createElement","href","download","click","revokeObjectURL","toast","message","error_1","type","navigateToExternalLink","externalLink","externalURL","window","open","checkIsInternalLink","link","addInternalParamsToCurrentLink","location","searchParams","search","getHref","matchSlateAndStateObject","slateValue","stateConfig","Object","keys","length","updateNode","node","variable","dataModelField","_b","_c","defaultValue","dataModelFieldId","format","stateValue","value","code","date","Date","Number","isNaN","getTime","mm","String","getMonth","padStart","dd","getDate","yyyy","getFullYear","text","isStateConfigPresent","Boolean","Array","isArray","children","forEach"],"mappings":"qywGAaa,IAAAA,EAAqB,SAACC,EAAcC,GAC/C,IAAMC,EAAQD,EAAIC,MAAM,IAAIC,OAAO,GAAGC,OAAAJ,EAAc,cAEpD,OAAOE,EAAQG,mBAAmBH,EAAM,IAAM,EAChD,EAEaI,EAAqB,SAChCC,EACAC,EACAC,GAEA,QAFA,IAAAA,IAAAA,GAAiB,IAEZD,EAAc,OAAOD,EAE1B,IAAMG,EAAYX,EAAmBY,EAAUC,sBAAuBJ,GAChEK,EAAgBd,EAAmBY,EAAUG,0BAA2BN,GAE9E,IAAKE,IAAcG,EAAe,OAAON,EAEzC,IAAMQ,EAAkB,IAAIC,gBAAgBT,EAAcU,YAc1D,OAZIR,GACEF,EAAcW,IAAIP,EAAUQ,uBAC9BJ,EAAgBK,IAAIT,EAAUQ,qBAA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AC,GAEA,IAAKC,OAAOC,KAAKF,GAAaG,OAAQ,OAAOJ,EAE7C,IAAMK,EAAa,SAACC,SAClB,GAAI,aAAcA,GAAQA,EAAKC,UAAYD,EAAKC,SAASC,eAAgB,CACjE,IAAAC,EAAkDH,EAAKC,SAASC,gBAAkB,CAAA,EAAhFE,EAAAD,EAAAE,aAAAA,OAAY,IAAAD,EAAG,GAAEA,EAAEE,EAAgBH,EAAAG,iBAAEC,EAAMJ,EAAAI,OAE/CC,EAA4C,QAA/B5C,EAAA+B,EAAYW,UAAmB,IAAA1C,OAAA,EAAAA,EAAA6C,MAGhD,GAAIF,GAA0B,SAAhBA,EAAOG,MAAmBF,EAAY,CAClD,IAAMG,EAAO,IAAIC,KAAKJ,GACtB,IAAKK,OAAOC,MAAMH,EAAKI,WAAY,CACjC,IAAMC,EAAKC,OAAON,EAAKO,WAAa,GAAGC,SAAS,EAAG,KAC7CC,EAAKH,OAAON,EAAKU,WAAWF,SAAS,EAAG,KACxCG,EAAOX,EAAKY,cAClBf,EAAa,UAAGQ,EAAE,KAAAzE,OAAI6E,EAAM,KAAA7E,OAAA+E,EAC7B,CACF,CACDtB,EAAKC,SAASuB,KAAOhB,GAAcH,EACnCL,EAAKC,SAASwB,qBAAuBC,QAAQlB,EAC9C,CACG,aAAcR,GAAQ2B,MAAMC,QAAQ5B,EAAK6B,WAC3C7B,EAAK6B,SAASC,QAAQ/B,EAE1B,EAGA,OADAL,EAAWoC,QAAQ/B,GACZL,CACT"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../src/helpers/utils.ts"],"sourcesContent":[null],"names":["getParameterByName","name","url","match","RegExp","concat","decodeURIComponent","updateSearchParams","currentParams","internalLink","isPreview","webpageId","paramKeys","internalLinkWebpageId","applicationId","internalLinkApplicationId","newSearchParams","URLSearchParams","toString","has","previewApplicationId","set","previewSelectedWebpageId","runtimeSelectedWebpageId","downloadFile","fetch","_a","sent","blob","blobUrl","URL","createObjectURL","a","document","createElement","href","download","click","revokeObjectURL","toast","message","error_1","type","navigateToExternalLink","externalLink","externalURL","window","open","checkIsInternalLink","link","addInternalParamsToCurrentLink","location","searchParams","search","getHref","matchSlateAndStateObject","slateValue","stateConfig","Object","keys","length","updateNode","node","variable","dataModelField","_d","_e","defaultValue","dataModelFieldId","entitySubtypeId","format","stateValue","_b","value","_c","code","date","Date","Number","isNaN","getTime","mm","String","getMonth","padStart","dd","getDate","yyyy","getFullYear","text","isStateConfigPresent","Boolean","Array","isArray","children","forEach"],"mappings":"qywGAaa,IAAAA,EAAqB,SAACC,EAAcC,GAC/C,IAAMC,EAAQD,EAAIC,MAAM,IAAIC,OAAO,GAAGC,OAAAJ,EAAc,cAEpD,OAAOE,EAAQG,mBAAmBH,EAAM,IAAM,EAChD,EAEaI,EAAqB,SAChCC,EACAC,EACAC,GAEA,QAFA,IAAAA,IAAAA,GAAiB,IAEZD,EAAc,OAAOD,EAE1B,IAAMG,EAAYX,EAAmBY,EAAUC,sBAAuBJ,GAChEK,EAAgBd,EAAmBY,EAAUG,0BAA2BN,GAE9E,IAAKE,IAAcG,EAAe,OAAON,EAEzC,IAAMQ,EAAkB,IAAIC,gBAAgBT,EAAcU,YAc1D,OAZIR,GACEF,EAAcW,IAAIP,EAAUQ,uBAC9BJ,EAAgBK,IAAIT,EAAUQ,qBAAsBN,GAClDN,EAAcW,IAAIP,EAAUU,2BAC9BN,EAAgBK,IAAIT,EAAUU,yBAA0BX,KAEtDH,EAAcW,IAAIP,EAAUW,2BAC9BP,EAAgBK,IAAIT,EAAUW,yBAA0BZ,GAE1DK,EAAgBK,IAAIT,EAAUW,yBAA0BZ,IAGnDK,CACT,EAEaQ,EAAe,SAAOtB,EAAUD,eAAV,IAAAC,IAAAA,EAAQ,SAAE,IAAAD,IAAAA,EAAwB,oHAEhD,6BAAA,CAAA,EAAMwB,MAAMvB,WAChB,MAAA,CAAA,EADIwB,EAAgBC,OACLC,sBAAtBA,EAAOF,EAAqBC,OAC5BE,EAAUC,IAAIC,gBAAgBH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AA,EAAEC,MACrB,UAA7BhB,EAAYW,UAAiB,IAAAM,OAAA,EAAAA,EAAED,MAGnC,GAAIH,GAA0B,SAAhBA,EAAOK,MAAmBJ,EAAY,CAClD,IAAMK,EAAO,IAAIC,KAAKN,GACtB,IAAKO,OAAOC,MAAMH,EAAKI,WAAY,CACjC,IAAMC,EAAKC,OAAON,EAAKO,WAAa,GAAGC,SAAS,EAAG,KAC7CC,EAAKH,OAAON,EAAKU,WAAWF,SAAS,EAAG,KACxCG,EAAOX,EAAKY,cAClBjB,EAAa,UAAGU,EAAE,KAAA5E,OAAIgF,EAAM,KAAAhF,OAAAkF,EAC7B,CACF,CACDzB,EAAKC,SAAS0B,KAAOlB,GAAcJ,EACnCL,EAAKC,SAAS2B,qBAAuBC,QAAQpB,EAC9C,CACG,aAAcT,GAAQ8B,MAAMC,QAAQ/B,EAAKgC,WAC3ChC,EAAKgC,SAASC,QAAQlC,EAE1B,EAGA,OADAL,EAAWuC,QAAQlC,GACZL,CACT"}
@@ -1,5 +1,5 @@
1
- import { EventInput, ThemeSystem } from '@fullcalendar/react';
2
1
  import React from 'react';
2
+ import { EventInput, ThemeSystem } from '@fullcalendar/react';
3
3
  import { ConfigurationItemInfo } from 'containers';
4
4
  export interface CalendarMoleculeProps {
5
5
  events?: EventInput[];
@@ -1,2 +1,2 @@
1
- import{__assign as e,__spreadArray as o}from"../../node_modules/tslib/tslib.es6.js";import{jsxs as r,jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import i from"../../node_modules/@fullcalendar/react/dist/index.js";import{useState as n,useRef as d,useCallback as l}from"react";import a from"../../node_modules/@fullcalendar/daygrid/index.js";import s from"../../node_modules/@fullcalendar/interaction/index.js";import c from"../../node_modules/@fullcalendar/list/index.js";import u from"../../node_modules/@fullcalendar/multimonth/index.js";import m from"../../node_modules/@fullcalendar/resource/index.js";import f from"../../node_modules/@fullcalendar/resource-timegrid/index.js";import v from"../../node_modules/@fullcalendar/resource-timeline/index.js";import g from"../../node_modules/@fullcalendar/timegrid/index.js";import p from"../../node_modules/@fullcalendar/timeline/index.js";import b from"../../node_modules/@mui/material/Box/Box.js";var h=function(h){var y=h.events,x=void 0===y?[]:y,C=h.resources,T=h.initialView,j=void 0===T?"dayGridMonth":T,B=h.enableDayGrid,k=void 0!==B&&B,w=h.enableTimeGrid,G=void 0!==w&&w,M=h.enableList,W=void 0!==M&&M,S=h.enableTimeline,_=void 0!==S&&S,D=h.enableResourceTimeline,L=void 0!==D&&D,R=h.enableYearView,A=void 0!==R&&R,F=h.editable,H=void 0!==F&&F,V=h.droppable,z=void 0!==V&&V,E=h.selectable,I=void 0!==E&&E,O=h.monthsPerRow,Y=void 0===O?3:O,N=h.dayMaxEvents,K=void 0===N?3:N,P=h.yearViewMode,q=void 0===P?"grid":P,J=h.slotDuration,Q=void 0===J?"00:15:00":J,U=h.snapDuration,X=void 0===U?"00:05:00":U,Z=h.businessHours,$=h.eventOverlap,ee=void 0!==$&&$,oe=h.showGridLines,re=void 0!==oe&&oe,te=h.buttonBorderRadius,ie=void 0===te?"4px":te,ne=h.eventFontSize,de=h.eventFontFamily,le=h.eventFontWeight,ae=h.resourceGroupCollapsible,se=void 0!==ae&&ae,ce=h.width,ue=h.height;h.backgroundColor;var me=h.themeSystem,fe=void 0===me?"standard":me,ve=h.marginLeft,ge=void 0===ve?"0":ve,pe=h.marginTop,be=void 0===pe?"0":pe,he=h.marginRight,ye=void 0===he?"0":he,xe=h.marginBottom,Ce=void 0===xe?"0":xe,Te=h.paddingLeft,je=void 0===Te?"0":Te,Be=h.paddingTop,ke=void 0===Be?"0":Be,we=h.paddingRight,Ge=void 0===we?"0":we,Me=h.paddingBottom,We=void 0===Me?"0":Me,Se=h.primaryColor,_e=h.secondaryColor,De=h.toolbarBg,Le=h.toolbarTextColor,Re=h.buttonBg,Ae=h.buttonTextColor,Fe=h.buttonHoverBg,He=h.dayHeaderColor,Ve=h.dayHeaderFontWeight,ze=h.slotLabelColor,Ee=h.slotLabelFontSize,Ie=h.eventBg,Oe=h.eventBorderColor,Ye=h.eventTextColor,Ne=h.eventHoverBg,Ke=h.nowIndicatorColor,Pe=h.resourceAreaBg,qe=h.resourceTextColor,Je=h.resourceBorderColor,Qe=h.resourceAreaWidth,Ue=h.bodyBg,Xe=h.onEventAdd,Ze=h.configurationItemInfo,$e=n(x),eo=$e[0],oo=$e[1],ro=d(null),to=n(new Set),io=to[0],no=to[1],lo=se?{resourceGroupLabelContent:function(o){return r("span",e({style:{cursor:"pointer",userSelect:"none"},onClick:function(){return e=o.groupValue,no((function(o){var r=new Set(o);return r.has(e)?r.delete(e):r.add(e),r}));var e}},{children:[io.has(o.groupValue)?"▶ ":"▼ ",o.text]}))},filterResourcesWithEvents:!0,resources:null==C?void 0:C.filter((function(e){return!io.has(e.group)}))}:{},ao=[s,a,g,c,p,m,f,v,u],so={dayGridMonth:k,dayGridWeek:k,dayGridDay:k,timeGridWeek:G,timeGridDay:G,listWeek:W,listDay:W,timelineWeek:_,timelineDay:_,resourceTimeGridWeek:L,resourceTimeGridDay:L,multiMonthYear:A},co=Object.entries(so).filter((function(e){return e[1]})).map((function(e){return e[0]})),uo=so[j]?j:co[0]||"dayGridMonth",mo=function(e){return"".concat(String(e.getHours()).padStart(2,"0"),":").concat(String(e.getMinutes()).padStart(2,"0"))},fo=l((function(e){var r,t=e.event,i=t.id,n=t.title,d=t.start,l=t.end,a={id:"".concat(i,"-").concat(null==d?void 0:d.getTime()),title:n,start:d,end:l,resourceId:null===(r=e.event.getResources()[0])||void 0===r?void 0:r.id};oo((function(e){return o(o([],e,!0),[a],!1)})),null==Xe||Xe(a),e.event.remove()}),[Xe]),vo=A?{multiMonthYear:{type:"multiMonth",duration:{years:1},buttonText:"Year",multiMonthMaxColumns:"grid"===q?Y:"stack"===q?1:Y,multiMonthMinWidth:"continuous"===q?250:void 0,dayMaxEvents:K}}:{},go=e({width:ce,marginLeft:ge,marginTop:be,marginRight:ye,marginBottom:Ce,paddingLeft:je,paddingTop:ke,paddingRight:Ge,paddingBottom:We,"--fc-button-bg":Re||Se,"--fc-button-color":Ae,"--fc-button-hover-bg":Fe||Se,"--fc-event-bg":Ie||_e,"--fc-event-border-color":Oe||_e,"--fc-button-border-radius":ie,"& .fc .fc-toolbar":{backgroundColor:De,color:Le},"& .fc .fc-col-header-cell-cushion":{color:He,fontWeight:Ve},"& .fc .fc-timegrid-slot-label-cushion":{color:ze,fontSize:Ee},"& .fc .fc-event":{color:Ye},"& .fc .fc-event:hover":{backgroundColor:Ne||_e},"& .fc .fc-event-title":{fontSize:ne,fontFamily:de,fontWeight:le},"& .fc .fc-now-indicator":{backgroundColor:Ke},"& .fc .fc-resource-area":{backgroundColor:Pe},"& .fc .fc-resource .fc-resource-title":{color:qe},"& .fc .fc-resource-area-cell":{borderColor:Je},"& .fc .fc-scrollgrid-section":{backgroundColor:Ue}},re?{}:{"& .fc .fc-scrollgrid-shim, & .fc .fc-timegrid-divider":{display:"none"}});return t(b,e({sx:go},Ze,{children:t(i,e({ref:ro,height:ue,plugins:ao,themeSystem:fe,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:uo,headerToolbar:{left:"prev,next today",center:"title",right:co.join(",")},views:vo,editable:H,droppable:z,selectable:I,businessHours:Z,eventOverlap:ee,eventAllow:function(e){if(!Z)return!0;var o=(Array.isArray(Z)?Z:[Z]).find((function(o){return o.daysOfWeek.includes(e.start.getDay())}));return!!o&&(mo(e.start)>=o.startTime&&mo(e.end)<=o.endTime)},slotDuration:Q,snapDuration:X,events:eo,resources:C,resourceAreaWidth:Qe,eventReceive:fo},lo))}))};export{h as CalendarMolecule};
1
+ import{__assign as e,__spreadArray as o}from"../../node_modules/tslib/tslib.es6.js";import{jsxs as r,jsx as t}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useState as i,useRef as n,useCallback as d}from"react";import l from"../../node_modules/@fullcalendar/react/dist/index.js";import a from"../../node_modules/@fullcalendar/interaction/index.js";import s from"../../node_modules/@fullcalendar/daygrid/index.js";import c from"../../node_modules/@fullcalendar/timegrid/index.js";import u from"../../node_modules/@fullcalendar/list/index.js";import m from"../../node_modules/@fullcalendar/timeline/index.js";import f from"../../node_modules/@fullcalendar/resource/index.js";import v from"../../node_modules/@fullcalendar/resource-timegrid/index.js";import g from"../../node_modules/@fullcalendar/resource-timeline/index.js";import p from"../../node_modules/@fullcalendar/multimonth/index.js";import b from"../../node_modules/@mui/material/Box/Box.js";var h=function(h){var y=h.events,x=void 0===y?[]:y,C=h.resources,T=h.initialView,j=void 0===T?"dayGridMonth":T,B=h.enableDayGrid,k=void 0!==B&&B,w=h.enableTimeGrid,G=void 0!==w&&w,M=h.enableList,W=void 0!==M&&M,S=h.enableTimeline,_=void 0!==S&&S,D=h.enableResourceTimeline,L=void 0!==D&&D,R=h.enableYearView,A=void 0!==R&&R,F=h.editable,H=void 0!==F&&F,V=h.droppable,z=void 0!==V&&V,E=h.selectable,I=void 0!==E&&E,O=h.monthsPerRow,Y=void 0===O?3:O,N=h.dayMaxEvents,K=void 0===N?3:N,P=h.yearViewMode,q=void 0===P?"grid":P,J=h.slotDuration,Q=void 0===J?"00:15:00":J,U=h.snapDuration,X=void 0===U?"00:05:00":U,Z=h.businessHours,$=h.eventOverlap,ee=void 0!==$&&$,oe=h.showGridLines,re=void 0!==oe&&oe,te=h.buttonBorderRadius,ie=void 0===te?"4px":te,ne=h.eventFontSize,de=h.eventFontFamily,le=h.eventFontWeight,ae=h.resourceGroupCollapsible,se=void 0!==ae&&ae,ce=h.width,ue=h.height;h.backgroundColor;var me=h.themeSystem,fe=void 0===me?"standard":me,ve=h.marginLeft,ge=void 0===ve?"0":ve,pe=h.marginTop,be=void 0===pe?"0":pe,he=h.marginRight,ye=void 0===he?"0":he,xe=h.marginBottom,Ce=void 0===xe?"0":xe,Te=h.paddingLeft,je=void 0===Te?"0":Te,Be=h.paddingTop,ke=void 0===Be?"0":Be,we=h.paddingRight,Ge=void 0===we?"0":we,Me=h.paddingBottom,We=void 0===Me?"0":Me,Se=h.primaryColor,_e=h.secondaryColor,De=h.toolbarBg,Le=h.toolbarTextColor,Re=h.buttonBg,Ae=h.buttonTextColor,Fe=h.buttonHoverBg,He=h.dayHeaderColor,Ve=h.dayHeaderFontWeight,ze=h.slotLabelColor,Ee=h.slotLabelFontSize,Ie=h.eventBg,Oe=h.eventBorderColor,Ye=h.eventTextColor,Ne=h.eventHoverBg,Ke=h.nowIndicatorColor,Pe=h.resourceAreaBg,qe=h.resourceTextColor,Je=h.resourceBorderColor,Qe=h.resourceAreaWidth,Ue=h.bodyBg,Xe=h.onEventAdd,Ze=h.configurationItemInfo,$e=i(x),eo=$e[0],oo=$e[1],ro=n(null),to=i(new Set),io=to[0],no=to[1],lo=se?{resourceGroupLabelContent:function(o){return r("span",e({style:{cursor:"pointer",userSelect:"none"},onClick:function(){return e=o.groupValue,no((function(o){var r=new Set(o);return r.has(e)?r.delete(e):r.add(e),r}));var e}},{children:[io.has(o.groupValue)?"▶ ":"▼ ",o.text]}))},filterResourcesWithEvents:!0,resources:null==C?void 0:C.filter((function(e){return!io.has(e.group)}))}:{},ao=[a,s,c,u,m,f,v,g,p],so={dayGridMonth:k,dayGridWeek:k,dayGridDay:k,timeGridWeek:G,timeGridDay:G,listWeek:W,listDay:W,timelineWeek:_,timelineDay:_,resourceTimeGridWeek:L,resourceTimeGridDay:L,multiMonthYear:A},co=Object.entries(so).filter((function(e){return e[1]})).map((function(e){return e[0]})),uo=so[j]?j:co[0]||"dayGridMonth",mo=function(e){return"".concat(String(e.getHours()).padStart(2,"0"),":").concat(String(e.getMinutes()).padStart(2,"0"))},fo=d((function(e){var r,t=e.event,i=t.id,n=t.title,d=t.start,l=t.end,a={id:"".concat(i,"-").concat(null==d?void 0:d.getTime()),title:n,start:d,end:l,resourceId:null===(r=e.event.getResources()[0])||void 0===r?void 0:r.id};oo((function(e){return o(o([],e,!0),[a],!1)})),null==Xe||Xe(a),e.event.remove()}),[Xe]),vo=A?{multiMonthYear:{type:"multiMonth",duration:{years:1},buttonText:"Year",multiMonthMaxColumns:"grid"===q?Y:"stack"===q?1:Y,multiMonthMinWidth:"continuous"===q?250:void 0,dayMaxEvents:K}}:{},go=e({width:ce,marginLeft:ge,marginTop:be,marginRight:ye,marginBottom:Ce,paddingLeft:je,paddingTop:ke,paddingRight:Ge,paddingBottom:We,"--fc-button-bg":Re||Se,"--fc-button-color":Ae,"--fc-button-hover-bg":Fe||Se,"--fc-event-bg":Ie||_e,"--fc-event-border-color":Oe||_e,"--fc-button-border-radius":ie,"& .fc .fc-toolbar":{backgroundColor:De,color:Le},"& .fc .fc-col-header-cell-cushion":{color:He,fontWeight:Ve},"& .fc .fc-timegrid-slot-label-cushion":{color:ze,fontSize:Ee},"& .fc .fc-event":{color:Ye},"& .fc .fc-event:hover":{backgroundColor:Ne||_e},"& .fc .fc-event-title":{fontSize:ne,fontFamily:de,fontWeight:le},"& .fc .fc-now-indicator":{backgroundColor:Ke},"& .fc .fc-resource-area":{backgroundColor:Pe},"& .fc .fc-resource .fc-resource-title":{color:qe},"& .fc .fc-resource-area-cell":{borderColor:Je},"& .fc .fc-scrollgrid-section":{backgroundColor:Ue}},re?{}:{"& .fc .fc-scrollgrid-shim, & .fc .fc-timegrid-divider":{display:"none"}});return t(b,e({sx:go},Ze,{children:t(l,e({ref:ro,height:ue,plugins:ao,themeSystem:fe,schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",initialView:uo,headerToolbar:{left:"prev,next today",center:"title",right:co.join(",")},views:vo,editable:H,droppable:z,selectable:I,businessHours:Z,eventOverlap:ee,eventAllow:function(e){if(!Z)return!0;var o=(Array.isArray(Z)?Z:[Z]).find((function(o){return o.daysOfWeek.includes(e.start.getDay())}));return!!o&&(mo(e.start)>=o.startTime&&mo(e.end)<=o.endTime)},slotDuration:Q,snapDuration:X,events:eo,resources:C,resourceAreaWidth:Qe,eventReceive:fo},lo))}))};export{h as CalendarMolecule};
2
2
  //# sourceMappingURL=CalendarMolecule.js.map