PageSourceSearch

https://light-able-react-light.vercel.app/_next/static/chunks/pages/application/calendar-5be1c565cd12034b.js

js light-able-react-light.vercel.app collected 2026-10-03 07:14:51 UTC 12,900 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8487],{63910:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/application/calendar",function(){return s(90161)}])},94220:function(e,t,s){"use strict";var l=s(85893),a=s(9008),n=s.n(a),i=s(41664),r=s.n(i),d=s(67294),c=s(78587),o=s(91409);t.Z=e=>{let{mainTitle:t,subTitle:s}=e;return(0,l.jsxs)(d.Fragment,{children:[(0,l.jsx)(n(),{children:(0,l.jsxs)("title",{children:[s," | Light Able NextJs Dashboard Template"]})}),(0,l.jsx)("div",{className:"page-header",children:(0,l.jsx)("div",{className:"page-block",children:(0,l.jsxs)(c.Z,{className:"row align-items-center",children:[(0,l.jsx)(o.Z,{md:12,children:(0,l.jsxs)("ul",{className:"breadcrumb",children:[(0,l.jsx)("li",{className:"breadcrumb-item",children:(0,l.jsx)(r(),{href:"/dashboard",children:"Home"})}),(0,l.jsx)("li",{className:"breadcrumb-item",children:(0,l.jsx)(r(),{href:"#",children:t})}),(0,l.jsx)("li",{className:"breadcrumb-item","aria-current":"page",children:s})]})}),(0,l.jsx)(o.Z,{md:12,children:(0,l.jsx)("div",{className:"page-header-title",children:(0,l.jsx)("h2",{className:"mb-0",children:s})})})]})})})]})}},37337:function(e,t,s){"use strict";var l=s(85893),a=s(67294),n=s(38447),i=s(57083);t.Z=e=>{let{show:t,handleClose:s,handleDeleteId:r}=e;return(0,l.jsx)(a.Fragment,{children:(0,l.jsxs)(n.Z,{show:t,onHide:s,id:"removeCartModal",className:"fade zoomIn",dialogClassName:"modal-dialog-centered",children:[(0,l.jsx)(n.Z.Header,{closeButton:!0,style:{borderBottom:"none"}}),(0,l.jsxs)(n.Z.Body,{children:[(0,l.jsxs)("div",{className:"mt-2 text-center",children:[(0,l.jsx)("i",{className:"ti ti-trash fs-1 text-danger"}),(0,l.jsxs)("div",{className:"mt-4 pt-2 fs-15 mx-4 mx-sm-5",children:[(0,l.jsx)("h5",{children:"Are you sure ?"}),(0,l.jsx)("p",{className:"text-muted mx-4 mb-0",children:"Are you sure you want to remove this task ?"})]})]}),(0,l.jsxs)("div",{className:"d-flex gap-2 justify-content-center mt-4 mb-2",children:[(0,l.jsx)(i.Z,{type:"button",variant:"light",className:"btn w-sm",onClick:s,children:"Close"}),(0,l.jsx)(i.Z,{type:"submit",variant:"danger",className:"btn w-sm",id:"remove-cartproduct",onClick:r,children:"Yes, Delete It!"})]})]})]})})}},90161:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return B}});var l=s(85893),a=s(67294),n=s(94220),i=s(5384),r=s(78587),d=s(91409),c=s(80833),o=s(43907),h=s(91132),m=s(80325),x=s(17292),u=s(39897),v=s(41664),j=s.n(v),g=s(16310),p=s(89173),b=s(38447),N=s(39255),f=s(15300),y=s(57083),Z=s(49514),w=s(80827),C=s(46957),k=s(45007),D=s(37337),E=e=>{let{modal:t,setModal:s,toggle:n,event:i,setEvent:c,isEdit:o,setIsEdit:h,deleteId:m,addEventModal:x,selectedNewDay:u,selectedDay:v,setSelectedDay:E,setSelectedNewDay:_,handleModal:S}=e,F=(0,k.I0)(),[B,M]=(0,a.useState)(!1),P=(0,p.TA)({enableReinitialize:!0,initialValues:{title:i&&i.title||"",category:i&&i.category||"",venue:i&&i.venue||"",description:i&&i.description||"",datetag:i&&i.datetag||""},validationSchema:g.Ry({title:g.Z_().required("Please Enter Your Event Name"),category:g.Z_().required("Please Select Your Category"),venue:g.Z_().required("Please Enter Your Location"),description:g.Z_().required("Please Enter Your Description")}),onSubmit:e=>{var t="";if(u&&(t=new Date(u[1])).setDate(t.getDate()+1),o){let s={id:i.id,title:e.title,className:e.category,start:u?u[0]:i.start,end:u?t:i.end,venue:e.venue,description:e.description};F((0,C.ce)(s)),P.resetForm()}else{let s={id:Math.floor(100*Math.random()),title:e.title,start:v?u:new Date,end:v?t:new Date,className:e.category,venue:e.venue,description:e.description};F((0,C.mr)(s)),P.resetForm()}E(null),_(null),c(null),h(!1),S()}});return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsxs)(b.Z,{id:"calendar-modal",keyboard:!1,show:t,onHide:()=>n(),centered:!0,scrollable:!0,children:[(0,l.jsx)(b.Z.Header,{closeButton:!0,children:(0,l.jsx)("h3",{className:"calendar-modal-title f-w-600 text-truncate",children:null==i?void 0:i.title})}),(0,l.jsxs)(b.Z.Body,{children:[(0,l.jsxs)("div",{className:"d-flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)("div",{className:"avtar avtar-xs bg-light-secondary",children:(0,l.jsx)("i",{className:"ti ti-heading f-20"})})}),(0,l.jsxs)("div",{className:"flex-grow-1 ms-3",children:[(0,l.jsx)("h5",{className:"mb-1",children:(0,l.jsx)("b",{children:"Title"})}),(0,l.jsx)("p",{className:"pc-event-title text-muted",children:i?null==i?void 0:i.title:""})]})]}),(0,l.jsxs)("div",{className:"d-flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)("div",{className:"avtar avtar-xs bg-light-warning",children:(0,l.jsx)("i",{className:"ti ti-map-pin f-20"})})}),(0,l.jsxs)("div",{className:"flex-grow-1 ms-3",children:[(0,l.jsx)("h5",{className:"mb-1",children:(0,l.jsx)("b",{children:"Venue"})}),(0,l.jsx)("p",{className:"pc-event-venue text-muted",children:i?null==i?void 0:i.venue:""})]})]}),(0,l.jsxs)("div",{className:"d-flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)("div",{className:"avtar avtar-xs bg-light-danger",children:(0,l.jsx)("i",{className:"ti ti-calendar-event f-20"})})}),(0,l.jsxs)("div",{className:"flex-grow-1 ms-3",children:[(0,l.jsx)("h5",{className:"mb-1",children:(0,l.jsx)("b",{children:"Date"})}),(0,l.jsx)("p",{className:"pc-event-date text-muted",children:i?null==i?void 0:i.datetag:""})]})]}),(0,l.jsxs)("div",{className:"d-flex",children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)("div",{className:"avtar avtar-xs bg-light-primary",children:(0,l.jsx)("i",{className:"ti ti-file-text f-20"})})}),(0,l.jsxs)("div",{className:"flex-grow-1 ms-3",children:[(0,l.jsx)("h5",{className:"mb-1",children:(0,l.jsx)("b",{children:"Description"})}),(0,l.jsx)("p",{className:"pc-event-description text-muted",children:i?null==i?void 0:i.description:""})]})]})]}),(0,l.jsxs)(b.Z.Footer,{children:[(0,l.jsxs)("ul",{className:"list-inline me-auto mb-0",children:[(0,l.jsx)(N.Z,{placement:"top",overlay:(0,l.jsx)(f.Z,{id:"button-tooltip",children:"Delete"}),children:(0,l.jsx)("li",{className:"list-inline-item align-bottom",children:(0,l.jsx)(j(),{href:"#",id:"pc_event_remove",className:"avtar avtar-s btn-link-danger btn-pc-default w-sm-
1auto",onClick:()=>{M(!B),s(!1)},children:(0,l.jsx)("i",{className:"ti ti-trash f-18"})})})}),(0,l.jsx)(N.Z,{placement:"top",overlay:(0,l.jsx)(f.Z,{id:"button-tooltip",children:"Edit"}),children:(0,l.jsx)("li",{className:"list-inline-item align-bottom",children:(0,l.jsx)(j(),{href:"#",id:"pc_event_edit",className:"avtar avtar-s btn-link-success btn-pc-default",onClick:()=>{S(),s(!1)},children:(0,l.jsx)("i",{className:"ti ti-edit-circle f-18"})})})})]}),(0,l.jsx)("div",{className:"flex-grow-1 text-end",children:(0,l.jsx)(y.Z,{variant:"primary",onClick:()=>n(),children:"Close"})})]})]}),(0,l.jsxs)(Z.Z,{show:x,onHide:()=>{S(),s(!1),c(null)},placement:"end",children:[(0,l.jsx)(Z.Z.Header,{closeButton:!0,children:(0,l.jsx)(Z.Z.Title,{className:"f-w-600 text-truncate",children:o?"Update Event":"Add Events"})}),(0,l.jsx)(w.Z,{id:"pc-form-event",onSubmit:e=>(e.preventDefault(),P.handleSubmit(),!1),children:(0,l.jsxs)(Z.Z.Body,{children:[(0,l.jsxs)(r.Z,{className:"event-form",children:[(0,l.jsx)(d.Z,{xs:12,children:(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)(w.Z.Label,{children:"Event Name"}),(0,l.jsx)(w.Z.Control,{placeholder:"Enter event name",type:"text",name:"title",id:"event-title",onChange:P.handleChange,onBlur:P.handleBlur,value:P.values.title,isInvalid:!!P.touched.title&&!!P.errors.title}),P.touched.title&&P.errors.title?(0,l.jsx)(w.Z.Control.Feedback,{type:"invalid",children:P.errors.title}):null]})}),(0,l.jsx)(d.Z,{xs:12,children:(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)(w.Z.Label,{htmlFor:"event-location",children:"Venue"}),(0,l.jsxs)("div",{children:[(0,l.jsx)(w.Z.Control,{type:"text",name:"venue",id:"event-location",placeholder:"Event location",onChange:P.handleChange,onBlur:P.handleBlur,value:P.values.venue,isInvalid:!!P.touched.location&&!!P.errors.location}),P.touched.venue&&P.errors.venue?(0,l.jsx)(w.Z.Control.Feedback,{type:"invalid",className:"d-block",children:P.errors.venue}):null]})]})}),(0,l.jsx)(d.Z,{xs:12,children:(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)(w.Z.Label,{className:"form-label",children:"Description"}),(0,l.jsx)(w.Z.Control,{as:"textarea",className:"form-control",id:"event-description",name:"description",placeholder:"Enter a description",rows:3,onChange:P.handleChange,onBlur:P.handleBlur,value:P.values.description,isInvalid:!!P.touched.description&&!!P.errors.description}),P.touched.description&&P.errors.description?(0,l.jsx)(w.Z.Control.Feedback,{type:"invalid",children:P.errors.description}):null]})}),(0,l.jsx)(d.Z,{xs:12,children:(0,l.jsxs)("div",{className:"mb-3",children:[(0,l.jsx)(w.Z.Label,{children:"Type"}),(0,l.jsxs)(w.Z.Control,{as:"select",className:"form-select",name:"category",id:"event-category",type:"select",onChange:P.handleChange,onBlur:P.handleBlur,value:P.values.category||"",children:[(0,l.jsx)("option",{value:"bg-danger-subtle",children:"Danger"}),(0,l.jsx)("option",{value:"bg-success-subtle",children:"Success"}),(0,l.jsx)("option",{value:"bg-primary-subtle",children:"Primary"}),(0,l.jsx)("option",{value:"bg-info-subtle",children:"Info"}),(0,l.jsx)("option",{value:"bg-dark-subtle",children:"Dark"}),(0,l.jsx)("option",{value:"bg-warning-subtle",children:"Warning"})]}),P.touched.category&&P.errors.category?(0,l.jsx)(w.Z.Control.Feedback,{type:"invalid",className:"d-block",children:P.errors.category}):null]})})]}),(0,l.jsxs)(r.Z,{className:"justify-content-between",children:[(0,l.jsx)("div",{className:"col-auto",children:(0,l.jsxs)(y.Z,{type:"button",variant:"link-danger",className:"btn-pc-default",onClick:()=>{S(),s(!1),c(null)},children:[(0,l.jsx)("i",{className:"align-text-bottom me-1 ti ti-circle-x"})," Close"]})}),(0,l.jsx)("div",{className:"col-auto",children:(0,l.jsx)(y.Z,{id:"pc_event_add",type:"submit",variant:"secondary",children:(0,l.jsxs)("span",{id:"pc-e-btn-text",children:[(0,l.jsx)("i",{className:"align-text-bottom me-1 ti ti-calendar-plus"}),o?"Update":"Add"]})})})]})]})})]}),(0,l.jsx)(D.Z,{show:B,handleClose:()=>M(!B),handleDeleteId:()=>{F((0,C.Pc)(m)),M(!1)}})]})},_=s(19119),S=()=>{let e=(0,k.I0)(),t=(0,_.P1)(e=>e.Calender,e=>e.events),s=(0,k.v9)(t),[n,i]=(0,a.useState)(),[v,j]=(0,a.useState)(),[g,p]=(0,a.useState)({}),[b,N]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),[Z,w]=(0,a.useState)(0),[D,S]=(0,a.useState)(0),[F,B]=(0,a.useState)(!1),M=()=>B(!F);(0,a.useEffect)(()=>{e((0,C.EY)(s))},[e,s]),(0,a.useEffect)(()=>{i(s)},[s]);let P=()=>
1{f?(y(!1),p(null),N(!1)):y(!0)},I=function(e){var t=new Date(e),s=""+(t.getMonth()+1),l=""+t.getDate(),a=t.getFullYear();return s.length<2&&(s="0"+s),l.length<2&&(l="0"+l),[a,s,l].join("-")},T=function(e){var t=new Date(e),s=""+["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],l=""+t.getDate(),a=t.getFullYear();return s.length<2&&(s="0"+s),l.length<2&&(l="0"+l),[l+" "+s,a].join(",")};return(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(r.Z,{children:(0,l.jsx)(d.Z,{xs:12,children:(0,l.jsx)(c.Z,{className:"card-h-100",children:(0,l.jsx)(c.Z.Body,{className:"position-relative",children:(0,l.jsx)("div",{id:"calendar",className:"calendar",children:(0,l.jsx)(o.Z,{plugins:[m.Z,h.Z,u.ZP,x.Z],initialView:"dayGridMonth",themeSystem:"bootstrap",headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,dayGridWeek,dayGridDay,listWeek"},events:n,editable:!0,droppable:!0,selectable:!0,eventClick:e=>{let t=e.event,s=t.start,l=t.end,a=null==l?T(s):T(s)+" to "+T(l),n=null==l?I(s):I(s)+" to "+I(l);p({id:t.id,title:t.title,start:t.start,end:t.end,className:t.classNames,category:t.classNames[0],venue:t._def.extendedProps.venue,description:t._def.extendedProps.description,defaultDate:n,datetag:a}),j(t.id),N(!0),P()},dateClick:e=>{let t=e.date,s=t.getDate(),l=t.getMonth(),a=t.getFullYear(),n=new Date,i=new Date(a,l,s,n.getHours(),n.getMinutes(),n.getSeconds()),r={...e,date:i};w(t),S(r),M()},drop:e=>{let t=e.date,s=(t.getDate(),t.getMonth(),t.getFullYear(),new Date);s.getHours(),s.getMinutes(),s.getSeconds();let l=e.draggedEl,a=l.className;l.classList.contains("external-event")&&-1===a.indexOf("fc-event-draggable")&&(l.innerText,l.className)}})})})})})}),(0,l.jsx)(E,{modal:f,setModal:y,toggle:P,event:g,setEvent:p,setIsEdit:N,isEdit:b,deleteId:v,selectedNewDay:Z,selectedDay:D,setSelectedDay:S,setSelectedNewDay:w,addEventModal:F,handleModal:M})]})};let F=()=>(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)(n.Z,{mainTitle:"Application",subTitle:"Calendar"}),(0,l.jsx)(S,{})]});F.getLayout=e=>(0,l.jsx)(i.Z,{children:e});var B=F}},function(e){e.O(0,[1069,3061,5132,2845,9118,1892,822,9255,1450,7482,3828,5384,2888,9774,179],function(){return e(e.s=63910)}),_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.