1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65752],{14283:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apps/calendar",function(){return r(31684)}])},42733:function(e,t,r){"use strict";var a=r(90948),o=r(99226),n=r(81931),i=r(42563);let l=(0,a.ZP)(o.Z)(e=>{let{theme:t}=e,r=(0,n.Z)();return{display:"flex",position:"relative",borderRadius:t.shape.borderRadius,"& .fc":{zIndex:1,".fc-col-header, .fc-daygrid-body, .fc-scrollgrid-sync-table, .fc-timegrid-body, .fc-timegrid-body table":{width:"100% !important"},"& .fc-toolbar":{flexWrap:"wrap",flexDirection:"row !important","&.fc-header-toolbar":{marginBottom:t.spacing(3.75)},".fc-prev-button, & .fc-next-button":{display:"inline-block",borderColor:"transparent",backgroundColor:"transparent","& .fc-icon":{color:t.palette.text.primary,fontSize:t.typography.h4.fontSize},"&:hover, &:active, &:focus":{boxShadow:"none !important",borderColor:"transparent !important",backgroundColor:"transparent !important"}},"& .fc-prev-button":{paddingLeft:"0 !important"},"& .fc-toolbar-chunk:first-of-type":{display:"flex",flexWrap:"wrap",alignItems:"center",[t.breakpoints.down("md")]:{"& div:first-of-type":{display:"flex",alignItems:"center"}}},"& .fc-button":{padding:t.spacing(),"&:active, .&:focus":{boxShadow:"none"}},"& .fc-button-group":{"& .fc-button":{textTransform:"capitalize","&:focus":{boxShadow:"none"}},"& .fc-button-primary":{fontWeight:500,fontSize:".875rem",letterSpacing:".4px",textTransform:"uppercase","&:not(.fc-prev-button):not(.fc-next-button)":{backgroundColor:"transparent",padding:t.spacing(1.5,5.08),color:t.palette.primary.main,borderColor:(0,i.E)(t.palette.primary.main,.5),"&.fc-button-active, &:hover":{borderColor:(0,i.E)(t.palette.primary.main,.5),backgroundColor:(0,i.E)(t.palette.primary.main,.05)}}},"& .fc-sidebarToggle-button":{border:0,lineHeight:.8,borderColor:"transparent",paddingBottom:"0 !important",backgroundColor:"transparent",marginLeft:"".concat(t.spacing(-2)," !important"),padding:"".concat(t.spacing(1.275,2)," !important"),color:"".concat(t.palette.text.primary," !important"),"&:focus":{outline:0,boxShadow:"none"},"&:not(.fc-prev-button):not(.fc-next-button):hover":{backgroundColor:"transparent !important"},"& + div":{marginLeft:0}},".fc-dayGridMonth-button, .fc-timeGridWeek-button, .fc-timeGridDay-button, & .fc-listMonth-button":{padding:t.spacing(2.2,6),"&:last-of-type, &:first-of-type":{borderRadius:t.shape.borderRadius},"&:first-of-type":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-of-type":{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},"& > * > :not(:first-of-type)":{marginLeft:0},"& .fc-toolbar-title":{fontWeight:500,lineHeight:"2rem",marginRight:t.spacing(4),marginLeft:t.spacing(2.5),fontSize:t.typography.h5.fontSize},".fc-button:empty:not(.fc-sidebarToggle-button), & .fc-toolbar-chunk:empty":{display:"none"}},"& tbody td, & thead th":{borderColor:t.palette.divider,"&.fc-col-header-cell":{borderLeft:0,borderRight:0},'&[role="presentation"]':{borderRightWidth:0}},"& .fc-event":{borderRadius:4,"&:not(.fc-list-event)":{"&.bg-primary":{borderColor:"transparent",color:t.palette.primary.main,backgroundColor:r.primaryLight.backgroundColor,"& .fc-event-title, & .fc-event-time":{color:t.palette.primary.main},"&.fc-timegrid-event":{borderColor:"".concat(t.palette.primary.main," !important"),"&:hover, &:focus-visible":{backgroundColor:(0,i.E)(t.palette.primary.main,.28),borderColor:"".concat(t.palette.primary.dark," !important"),boxShadow:"0 0 0 3px ".concat((0,i.E)(t.palette.primary.main,.25)," !important")}}},"&.bg-success":{borderColor:"transparent",color:t.palette.success.main,backgroundColor:r.successLight.backgroundColor,"& .fc-event-title, & .fc-event-time":{color:t.palette.success.main},"&.fc-timegrid-event":{borderColor:"".concat(t.palette.success.main," !important"),"&:hover, &:focus-visible":{backgroundColor:(0,i.E)(t.palette.success.main,.28),borderColor:"".concat(t.palette.success.dark," !important"),boxShadow:"0 0 0 3px ".concat((0,i.E)(t.palette.success.main,.25)," !important")}}},"&.bg-error":{borderColor:"transparent",color:t.palette.error.main,backgroundColor:r.errorLight.backgroundColor,"& .fc-event-title, & .fc-event-time":{color:t.palette.error.main},"&.fc-timegrid-event":{borderColor:"".concat(t.palette.error.main," !important"),"&:hover, &:focus-visible":{backgroundColor:(0,i.E)(t.palette.error.main,.28),borderColor:"".concat(t.palette.error.dark," !important"),boxShadow:"0 0 0 3px ".concat((0,i.E)(t.palette.error.main,.25)," !important")}}},"&.bg-warning":{borderColor:"transparent",color:t.palette.warning.main,backgroundColor:r.
1warningLight.backgroundColor,"& .fc-event-title, & .fc-event-time":{color:t.palette.warning.main},"&.fc-timegrid-event":{borderColor:"".concat(t.palette.warning.main," !important"),"&:hover, &:focus-visible":{backgroundColor:(0,i.E)(t.palette.warning.main,.28),borderColor:"".concat(t.palette.warning.dark," !important"),boxShadow:"0 0 0 3px ".concat((0,i.E)(t.palette.warning.main,.25)," !important")}}},"&.bg-info":{borderColor:"transparent",color:t.palette.info.main,backgroundColor:r.infoLight.backgroundColor,"& .fc-event-title, & .fc-event-time":{color:t.palette.info.main},"&.fc-timegrid-event":{borderColor:"".concat(t.palette.info.main," !important"),"&:hover, &:focus-visible":{backgroundColor:(0,i.E)(t.palette.info.main,.28),borderColor:"".concat(t.palette.info.dark," !important"),boxShadow:"0 0 0 3px ".concat((0,i.E)(t.palette.info.main,.25)," !important")}}}},"&.bg-primary":{"& .fc-list-event-dot":{borderColor:t.palette.primary.main,backgroundColor:t.palette.primary.main},"&:hover td":{backgroundColor:(0,i.E)(t.palette.primary.light,.1)}},"&.bg-success":{"& .fc-list-event-dot":{borderColor:t.palette.success.main,backgroundColor:t.palette.success.main},"&:hover td":{backgroundColor:(0,i.E)(t.palette.success.light,.1)}},"&.bg-error":{"& .fc-list-event-dot":{borderColor:t.palette.error.main,backgroundColor:t.palette.error.main},"&:hover td":{backgroundColor:(0,i.E)(t.palette.error.light,.1)}},"&.bg-warning":{"& .fc-list-event-dot":{borderColor:t.palette.warning.main,backgroundColor:t.palette.warning.main},"&:hover td":{backgroundColor:(0,i.E)(t.palette.warning.light,.1)}},"&.bg-info":{"& .fc-list-event-dot":{borderColor:t.palette.info.main,backgroundColor:t.palette.info.main},"&:hover td":{backgroundColor:(0,i.E)(t.palette.info.light,.1)}},"&.fc-daygrid-event":{marginLeft:"4px",marginRight:"4px"}},"& .fc-view-harness":{minHeight:"650px",margin:t.spacing(0,-5.25),width:"calc(100% + ".concat(t.spacing(10.5),")")},"& .fc-col-header":{"& .fc-col-header-cell":{fontWeight:600,fontSize:".875rem",letterSpacing:".15px",color:t.palette.text.primary,"& .fc-col-header-cell-cushion":{padding:t.spacing(2),textDecoration:"none !important"}}},"& .fc-scrollgrid-section-liquid > td":{borderBottom:0},"& .fc-daygrid-event-harness":{lineHeight:1.25,"& .fc-event":{fontWeight:500,fontSize:"0.75rem",padding:t.spacing(0,1),"& .fc-event-time":{fontWeight:500}},"&:not(:last-of-type)":{marginBottom:t.spacing(1.2)}},"& .fc-daygrid-day-bottom":{marginTop:t.spacing(1.2)},"& .fc-daygrid-day":{padding:"5px","& .fc-daygrid-day-top":{flexDirection:"row"},"&.fc-day-other":{"& .fc-daygrid-day-top":{opacity:1,"& .fc-daygrid-day-number":{color:"".concat(t.palette.text.disabled," !important")}}},"&.fc-day-past:not(.fc-day-other)":{"& .fc-daygrid-day-number":{color:"".concat(t.palette.text.secondary," !important")}}},"& .fc-scrollgrid":{borderColor:t.palette.divider},"& .fc-day-past, & .fc-day-future":{"&.fc-daygrid-day-number":{color:t.palette.text.disabled}},"& .fc-daygrid-day-number":{fontSize:"1rem",paddingTop:0,paddingLeft:t.spacing(2)},"& .fc-daygrid-day-number, & .fc-timegrid-slot-label-cushion, & .fc-list-event-time":{textDecoration:"none !important",color:"".concat(t.palette.text.primary," !important")},"& .fc-day-today:not(.fc-popover)":{"&:not(.fc-col-header-cell)":{background:"".concat(t.palette.background.default," !important"),backgroundColor:"".concat(t.palette.action.hover," !important")}},"& .fc-timegrid":{"& .fc-scrollgrid-section":{"& .fc-col-header-cell, & .fc-timegrid-axis":{borderLeft:0,borderRight:0,borderColor:t.palette.divider},"& .fc-timegrid-axis":{borderColor:t.palette.divider}},"& .fc-timegrid-axis":{"&.fc-scrollgrid-shrink":{"& .fc-timegrid-axis-cushion":{fontSize:".75rem",lineHeight:"15px",letterSpacing:"0.4px",textTransform:"capitalize",color:t.palette.text.disabled}}},"& .fc-timegrid-slots":{"& .fc-timegrid-slot":{height:"3rem",borderColor:t.palette.divider,"&.fc-timegrid-slot-label":{borderRight:0},"&.fc-timegrid-slot-lane":{borderLeft:0},"& .fc-timegrid-slot-label-frame":{textAlign:"center","& .fc-timegrid-slot-label-cushion":{fontSize:".75rem",lineHeight:"15px",letterSpacing:"0.4px",textTransform:"uppercase"}}}},"& .fc-timegrid-divider":{display:"none"},"& .fc-timegrid-event":{borderRadius:0,boxShadow:"none",paddingTop:t.spacing(2),paddingLeft:t.spacing(2),borderWidth:"1px !important",borderStyle:"solid !important",transition:"border-color .15s ease-in-out, border-width .15s ease-in-out, box-shadow .15s ease-in-out",cursor:"pointer","&:hover, &:focus-visible":{borderWidth:"2px !important"},"& .fc-event-time":{marginBottom:"2px"},"& .fc-event-time, & .fc-event-title":{fontSize:".75rem",lineHeight:"15px",letterSpacing:"0.4px"}}},"& .fc-list":{border:"none",'& th[colspan="3"]':{position:"relative"},"& .fc-list-day-cushion":{paddingLeft:t.spacing(4),paddingRight:t.spacing(4),background:t.palette.background.default,"& .fc-list-day-text, & .fc-list-day-side-text":{fontWeight:600}},".fc-list-event":{cursor:"pointer","&:hover":{"& td":{backgroundColor:t.palette.action.hover}},"& td":{borderColor:t.palette.divider}},"& .fc-list-day":{backgroundColor:t.palette.customColors.lightBg,"& .fc-list-day-text, & .fc-list-day-side-text":{fontSize:".875rem",textDecoration:"none"},"& > *":{background:"none",borderColor:t.palette.divider}},"& .fc-list-event-title":{fontSize:".875rem",verticalAlign:"middle",paddingLeft:t.spacing(2.5),color:t.palette.text.secondary},"& .fc-list-event-time":{fontSize:".875rem",paddingLeft:t.spacing(4),color:"".concat(t.palette.text.secondary," !important")}}
1,"& .fc-popover":{zIndex:20,boxShadow:1,borderColor:t.palette.divider,background:t.palette.background.paper,"& .fc-popover-header":{padding:t.spacing(2),background:t.palette.action.hover,"& .fc-popover-title, & .fc-popover-close":{color:t.palette.text.primary}},"& .fc-popover-body":{"& *:not(.fc-event-main):not(:last-of-type)":{marginBottom:t.spacing(1.2)}}},[t.breakpoints.up("md")]:{"& .fc-sidebarToggle-button":{display:"none"},"& .fc-toolbar-title":{marginLeft:0}},"@media (max-width:610px)":{"& .fc-header-toolbar .fc-toolbar-chunk:last-of-type":{marginTop:t.spacing(4)}}}}});t.Z=l},31684:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return N}});var a=r(85893),o=r(67294),n=r(99226),i=r(98396),l=r(9473),d=r(28756),c=r(43907),s=r(17292),p=r(16993),u=r(61029),g=r(70125),f=r(39897);r(1351);let b={title:"",start:"",end:"",allDay:!1,url:"",extendedProps:{calendar:"",guests:[],location:"",description:""}},m=e=>{let{store:t,dispatch:r,direction:n,updateEvent:i,calendarApi:l,calendarsColor:d,setCalendarApi:m,handleSelectEvent:h,handleLeftSidebarToggle:v,handleAddEventSidebarToggle:x}=e,y=(0,o.useRef)();if((0,o.useEffect)(()=>{if(null===l){var e;m(null===(e=y.current)||void 0===e?void 0:e.getApi())}},[l,m]),!t)return null;{let e={events:t.events.length?t.events:[],plugins:[f.ZP,p.Z,u.Z,s.Z,g.Z],initialView:"dayGridMonth",headerToolbar:{start:"sidebarToggle, prev, next, title",end:"dayGridMonth,timeGridWeek,timeGridDay,listMonth"},views:{week:{titleFormat:{year:"numeric",month:"long",day:"numeric"}}},editable:!0,eventResizableFromStart:!0,dragScroll:!0,dayMaxEvents:2,navLinks:!0,eventClassNames(e){let{event:t}=e,r=d[t._def.extendedProps.calendar];return["bg-".concat(r)]},eventClick(e){let{event:t}=e;r(h(t)),x()},customButtons:{sidebarToggle:{icon:"bi bi-list",click(){v()}}},dateClick(e){let t={...b};t.start=e.date,t.end=e.date,t.allDay=!0,r(h(t)),x()},eventDrop(e){let{event:t}=e;r(i(t))},eventResize(e){let{event:t}=e;r(i(t))},ref:y,direction:n};return(0,a.jsx)(c.Z,{...e})}};var h=r(69397),v=r(19058),x=r(58128),y=r(23972),C=r(20847);let k=e=>{let{store:t,mdAbove:r,dispatch:o,calendarsColor:n,leftSidebarOpen:i,leftSidebarWidth:l,handleSelectEvent:d,handleAllCalendars:c,handleCalendarsUpdate:s,handleLeftSidebarToggle:p,handleAddEventSidebarToggle:u}=e,g=n?Object.entries(n):[],f=g.length?g.map(e=>{let[r,n]=e;return(0,a.jsx)(C.Z,{label:r,sx:{mb:.5},control:(0,a.jsx)(x.Z,{color:n,checked:t.selectedCalendars.includes(r),onChange:()=>o(s(r))})},r)}):null,b=()=>{u(),o(d(null))};return f?(0,a.jsxs)(v.ZP,{open:i,onClose:p,variant:r?"permanent":"temporary",ModalProps:{disablePortal:!0,disableAutoFocus:!0,disableScrollLock:!0,keepMounted:!0},sx:{zIndex:2,display:"block",position:r?"static":"absolute","& .MuiDrawer-paper":{borderRadius:1,boxShadow:"none",width:l,borderTopRightRadius:0,alignItems:"flex-start",borderBottomRightRadius:0,p:e=>e.spacing(5),zIndex:r?2:"drawer",position:r?"static":"absolute"},"& .MuiBackdrop-root":{borderRadius:1,position:"absolute"}},children:[(0,a.jsx)(h.Z,{fullWidth:!0,variant:"contained",onClick:b,children:"Add Event"}),(0,a.jsx)(y.Z,{variant:"body2",sx:{mt:7,mb:2.5,textTransform:"uppercase"},children:"Calendars"}),(0,a.jsx)(C.Z,{label:"View All",sx:{mr:0,mb:.5},control:(0,a.jsx)(x.Z,{color:"secondary",checked:t.selectedCalendars.length===g.length,onChange:e=>o(c(e.target.checked))})}),f]}):null};var w=r(42733),j=r(69587),E=r(72852),Z=r(63931),S=r(22715),D=r(54799),R=r(60076),T=r(53640),z=r(74509),L=r(9198),W=r.n(L),B=r(87536),M=r(79878),P=r(45353);let A=e=>e&&e[0].toUpperCase()+e.slice(1),I={url:"",title:"",guests:[],allDay:!0,description:"",endDate:new Date,calendar:"Business",startDate:new Date},_=e=>{let{store:t,dispatch:r,addEvent:i,updateEvent:l,drawerWidth:d,calendarApi:c,deleteEvent:s,handleSelectEvent:p,addEventSidebarOpen:u,handleAddEventSidebarToggle:g}=e,[f,b]=(0,o.useState)(I),{control:m,setValue:x,clearErrors:k,handleSubmit:w,formState:{errors:L}}=(0,B.cI)({defaultValues:{title:""}}),_=async()=>{b(I),k(),r(p(null)),g()},F=e=>{let a={url:f.url,display:"block",title:e.title,end:f.endDate,allDay:f.allDay,start:f.startDate,extendedProps:{calendar:A(f.calendar),guests:f.guests&&f.guests.length?f.guests:void 0,description:f.description.length?f.description:void 0}};null!==t.selectedEvent&&(null===t.selectedEvent||t.selectedEvent.title.length)?r(l({id:t.selectedEvent.id,...a}
1)):r(i(a)),c.refetchEvents(),_()},G=()=>{t.selectedEvent&&r(s(t.selectedEvent.id)),_()},H=e=>{e>f.endDate&&b({...f,startDate:new Date(e),endDate:new Date(e)})},N=(0,o.useCallback)(()=>{if(null!==t.selectedEvent){let e=t.selectedEvent;x("title",e.title||""),b({url:e.url||"",title:e.title||"",allDay:e.allDay,guests:e.extendedProps.guests||[],description:e.extendedProps.description||"",calendar:e.extendedProps.calendar||"Business",endDate:null!==e.end?e.end:e.start,startDate:null!==e.start?e.start:new Date})}},[x,t.selectedEvent]),O=(0,o.useCallback)(()=>{x("title",""),b(I)},[x]);(0,o.useEffect)(()=>{null!==t.selectedEvent?N():O()},[u,N,O,t.selectedEvent]);let U=(0,o.forwardRef)((e,t)=>{let{...r}=e;return(0,a.jsx)(S.Z,{inputRef:t,fullWidth:!0,...r,label:r.label||"",sx:{width:"100%"},error:r.error})}),q=()=>null!==t.selectedEvent&&(null===t.selectedEvent||t.selectedEvent.title.length)?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(h.Z,{size:"large",type:"submit",variant:"contained",sx:{mr:4},children:"Update"}),(0,a.jsx)(h.Z,{size:"large",variant:"outlined",color:"secondary",onClick:N,children:"Reset"})]}):(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(h.Z,{size:"large",type:"submit",variant:"contained",sx:{mr:4},children:"Add"}),(0,a.jsx)(h.Z,{size:"large",variant:"outlined",color:"secondary",onClick:O,children:"Reset"})]});return(0,a.jsxs)(v.ZP,{anchor:"right",open:u,onClose:_,ModalProps:{keepMounted:!0},sx:{"& .MuiDrawer-paper":{width:["100%",d]}},children:[(0,a.jsxs)(n.Z,{className:"sidebar-header",sx:{display:"flex",justifyContent:"space-between",backgroundColor:"background.default",p:e=>e.spacing(3,3.255,3,5.255)},children:[(0,a.jsx)(y.Z,{variant:"h6",children:null!==t.selectedEvent&&t.selectedEvent.title.length?"Update Event":"Add Event"}),(0,a.jsxs)(n.Z,{sx:{display:"flex",alignItems:"center"},children:[null!==t.selectedEvent&&t.selectedEvent.title.length?(0,a.jsx)(D.Z,{size:"small",onClick:G,sx:{color:"text.primary",mr:null!==t.selectedEvent?1:0},children:(0,a.jsx)(M.Z,{icon:"mdi:delete-outline",fontSize:20})}):null,(0,a.jsx)(D.Z,{size:"small",onClick:_,sx:{color:"text.primary"},children:(0,a.jsx)(M.Z,{icon:"mdi:close",fontSize:20})})]})]}),(0,a.jsx)(n.Z,{className:"sidebar-body",sx:{p:e=>e.spacing(5,6)},children:(0,a.jsx)(P.Z,{children:(0,a.jsxs)("form",{onSubmit:w(F),autoComplete:"off",children:[(0,a.jsxs)(T.Z,{fullWidth:!0,sx:{mb:6},children:[(0,a.jsx)(B.Qr,{name:"title",control:m,rules:{required:!0},render:e=>{let{field:{value:t,onChange:r}}=e;return(0,a.jsx)(S.Z,{label:"Title",value:t,onChange:r,error:Boolean(L.title)})}}),L.title&&(0,a.jsx)(z.Z,{sx:{color:"error.main"},id:"event-title-error",children:"This field is required"})]}),(0,a.jsxs)(T.Z,{fullWidth:!0,sx:{mb:6},children:[(0,a.jsx)(R.Z,{id:"event-calendar",children:"Calendar"}),(0,a.jsxs)(j.Z,{label:"Calendar",value:f.calendar,labelId:"event-calendar",onChange:e=>b({...f,calendar:e.target.value}),children:[(0,a.jsx)(Z.Z,{value:"Personal",children:"Personal"}),(0,a.jsx)(Z.Z,{value:"Business",children:"Business"}),(0,a.jsx)(Z.Z,{value:"Family",children:"Family"}),(0,a.jsx)(Z.Z,{value:"Holiday",children:"Holiday"}),(0,a.jsx)(Z.Z,{value:"ETC",children:"ETC"})]})]}),(0,a.jsx)(n.Z,{sx:{mb:6},children:(0,a.jsx)(W(),{selectsStart:!0,id:"event-start-date",endDate:f.endDate,selected:f.startDate,startDate:f.startDate,showTimeSelect:!f.allDay,dateFormat:f.allDay?"yyyy-MM-dd":"yyyy-MM-dd hh:mm",customInput:(0,a.jsx)(U,{label:"Start Date",registername:"startDate"}),onChange:e=>b({...f,startDate:new Date(e)}),onSelect:H})}),(0,a.jsx)(n.Z,{sx:{mb:6},children:(0,a.jsx)(W(),{selectsEnd:!0,id:"event-end-date",endDate:f.endDate,selected:f.endDate,minDate:f.startDate,startDate:f.startDate,showTimeSelect:!f.allDay,dateFormat:f.allDay?"yyyy-MM-dd":"yyyy-MM-dd hh:mm",customInput:(0,a.jsx)(U,{label:"End Date",registername:"endDate"}),onChange:e=>b({...f,endDate:new Date(e)})})}),(0,a.jsx)(T.Z,{sx:{mb:6},children:(0,a.jsx)(C.Z,{label:"All Day",control:(0,a.jsx)(E.Z,{checked:f.allDay,onChange:e=>b({...f,allDay:e.target.checked})})})}),(0,a.jsx)(S.Z,{fullWidth:!0,type:"url",id:"event-url",sx:{mb:6},label:"Event URL",value:f.url,onChange:e=>b({...f,url:e.target.value})}),(0,a.jsxs)(T.Z,{fullWidth:!0,sx:{mb:6},children:[(0,a.jsx)(R.Z,{id:"event-guests",children:"Guests"}),(0,a.jsxs)(j.Z,{multiple:!0,label:"Guests",value:f.guests,labelId:"event-guests",id:"event-guests-select",onChange:e=>b({...f,guests:e.target.value}),children:[(0,a.jsx)(Z.Z,{value:"bruce",children:"Bruce"}),(0,a.jsx)(Z.Z,{value:"clark",children:"Clark"}),(0,a.jsx)(Z.Z,{value:"diana",children:"Diana"}),(0,a.jsx)(Z.Z,{value:"john",children:"John"}),(0,a.jsx)(Z.Z,{value:"barry",children:"Barry"})]})]}),(0,a.jsx)(S.Z,{rows:4,multiline:!0,fullWidth:!0,sx:{mb:6},label:"Description",id:"event-description",value:f.description,onChange:e=>b({...f,description:e.target.value})}),(0,a.jsx)(n.Z,{sx:{display:"flex",alignItems:"center"},children:(0,a.jsx)(q,{})})]})})})]})};var F=r(44753);let G={Personal:"error",Business:"primary",Family:"warning",Holiday:"success",ETC:"info"},H=()=>{let[e,t]=(0,o.useState)(null),[r,c]=(0,o.useState)(!1),[s,p]=(0,o.useState)(!1),{settings:u}=(0,d.r)(),g=(0,l.I0)(),f=(0,l.v9)(e=>e.calendar),{skin:b,direction:h}=u,v=(0,i.Z)(e=>e.breakpoints.up("md"));(0,o.useEffect)(()=>{g((0,F.sZ)(f.selectedCalendars))},[g,f.selectedCalendars]);let x=()=>c(!r),y=()=>p(!s);return(0,a.jsxs)(w.Z,{className:"app-calendar",sx:{boxShadow:"bordered"===b?0:6,..."bordered"===b&&{border:e=>"1px solid ".concat(e.palette.divider)}},children:[(0,a.jsx)(k,{store:f,mdAbove:v,dispatch:g,calendarsColor:G,leftSidebarOpen:r,leftSidebarWidth:260,handleSelectEvent:F.cW,handleAllCalendars:F.uL,handleCalendarsUpdate:F.ns,handleLeftSidebarToggle:x,handleAddEventSidebarToggle:y}),(0,a.jsx)(n.Z,{sx:{px:5,pt:3.75,flexGrow:1,borderRadius:1,boxShadow:"none",backgroundColor:"background.paper",...v?{borderTopLeftRadius:0,borderBottomLeftRadius:0}:{}},children:(0,a.jsx)(m,{store:f,dispatch:g,direction:h,updateEvent:F.eJ,calendarApi:e,calendarsColor:G,setCalendarApi:t,handleSelectEvent:F.cW,handleLeftSidebarToggle:x,handleAddEventSidebarToggle:y})}),(0,a.jsx)(_,{store:f,dispatch:g,addEvent:F.vP,updateEvent:F.eJ,deleteEvent:F.Bt,calendarApi:e,drawerWidth:400,handleSelectEvent:F.cW,addEventSidebarOpen:s,handleAddEventSidebarToggle:y})]})};var N=H}},function(e){e.O(0,[11069,57709,69587,22715,87536,23863,39636,17178,47584,45353,49774,92888,40179],function(){return e(e.s=14283)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.