1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3585],{12882:(e,r,a)=>{"use strict";a.d(r,{A:()=>t});let t={notfound:"/assets/images/404.svg",logo:"/vercel.svg",logo_img:"/assets/images/logo_img.png",logoMain:"/assets/images/logoMain.png",ModiDada:"/assets/images/ModiDada.png",BGimg:"/assets/images/BGimg.png",BGwire:"/assets/images/BGwire.png",BackgroundImg:"/assets/images/BackgroundImg.png",forgotPassFigure:"/assets/images/forgotPassFigure.png",resetPassFigure:"/assets/images/resetPassFigure.png",verifyOtpFigure:"/assets/images/verifyOtpFigure.png",userImgProfil:"/assets/images/userImgProfil.png",byEmailImg:"/assets/images/byEmailImg.png",bySmsImg:"/assets/images/bySmsImg.png",forgetPassFigEmail:"/assets/images/forgetPassFigEmail.png",profileImgMain:"/assets/images/profileImgMain.png",galleryImg1:"/assets/images/galleryImg1.png",galleryImg2:"/assets/images/galleryImg2.png",galleryImg3:"/assets/images/galleryImg3.png",galleryImg4:"/assets/images/galleryImg4.png",galleryImg5:"/assets/images/galleryImg5.png",galleryImg6:"/assets/images/galleryImg6.png",galleryImg7:"/assets/images/galleryImg7.png",galleryImg8:"/assets/images/galleryImg8.png",galleryImg9:"/assets/images/galleryImg9.png",galleryImg10:"/assets/images/galleryImg10.png",galleryImg11:"/assets/images/galleryImg11.png",galleryImg12:"/assets/images/galleryImg12.png",galleryImg13:"/assets/images/galleryImg13.png",galleryImg14:"/assets/images/galleryImg14.png",uploadedCertificate:"/assets/images/uploadedCertificate.png",loginBackground:"/assets/images/loginBackground.png",forgotPasswordBG:"/assets/images/forgotPasswordBG.png",resetPasswordBG:"/assets/images/resetPasswordBG.png",verifyOTPBG:"/assets/images/verifyOTPBG.png",demoProfilePic:"/assets/images/demoProfilePic.png",WTSLogoBlue:"/assets/images/WTSLogoBlue.png"}},21076:(e,r,a)=>{"use strict";a.d(r,{A:()=>g});var t=a(37876),i=a(12882),o=a(66438),n=a(42008);let s=(0,o.Ay)(n.A)(e=>{let{theme:r}=e;return{position:"relative",minHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column","@media (max-width: 899px)":{minHeight:"100vh",overflowY:"auto"},".BackgroundImg":{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1,lineHeight:0,img:{width:"100%",height:"100%",objectFit:"cover"}},".background-overlay":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 100%)",zIndex:2},".content-container":{position:"relative",zIndex:10,display:"flex",width:"100%",minHeight:"100vh","@media (max-width: 899px)":{flexDirection:"column"}},".wrapperLeft_auth":{width:"45%",position:"relative",padding:"2rem",zIndex:9,display:"flex",flexDirection:"column",height:"100vh",overflow:"hidden","@media (min-width: 1601px)":{padding:"3.5vw 7.63vw"},"@media (max-width: 1499px)":{width:"50%",padding:"1.5rem"},"@media (max-width: 899px)":{width:"100%",height:"auto",minHeight:"100vh",Padding:"0px",overflow:"visible"},"& > div":{width:"100%"}},".form_sec":{overflowY:"auto",height:"calc(100vh - 180px)",padding:"0 1rem",scrollbarWidth:"thin",scrollbarColor:"rgba(255, 255, 255, 0.3) transparent","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"rgba(255, 255, 255, 0.05)",borderRadius:"4px"},"&::-webkit-scrollbar-thumb":{background:"rgba(255, 255, 255, 0.3)",borderRadius:"4px","&:hover":{background:"rgba(255, 255, 255, 0.5)"}},"@media (min-width: 1601px)":{height:"calc(100vh - 12vw)"},"@media (max-width: 1499px)":{height:"calc(100vh - 160px)"},"@media (max-width: 899px)":{height:"auto",maxHeight:"none",padding:"0 1rem 2rem"},"@media (max-width: 599px)":{padding:"0 0.75rem 1.5rem"},".form-container":{backgroundColor:"rgba(255, 255, 255, 0.08)",backdropFilter:"blur(10px)",borderRadius:"16px",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.2)",padding:"2rem","@media (max-width: 899px)":{paddingTop:"1rem",paddingBottom:"1rem",paddingRight:"0px",paddingLeft:"0px"}},".MuiPaper-root":{backgroundColor:"transparent",boxShadow:"none"},".MuiInputBase-root":{backgroundColor:"rgba(255, 255, 255, 0.08)",borderRadius:"12px",transition:"all 0.3s ease",minHeight:"54px",padding:"12px 18px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.12)",borderColor:"rgba(255, 255, 255, 0.2)"},"&.Mui-focused":{backgroundColor:"rgba(255, 255, 255, 0.15)",borderColor:"#4CAF50",boxShadow:"0 0 0 2px rgba(76, 175, 80, 0.2)"},"@media (min-width: 1601px)":{borderRadius:"0.75vw",minHeight:"3.38vw",padding:"0.75vw 1.13vw"},".MuiInputBase-input":{fontSize:"16px",color:"#ffffff",padding:0,"@media (min-width: 1601px)":{fontSize:"0.88vw"},"&::placeholder":{color:"rgba(255, 255, 255, 0.6)",opacity:1,fontSize:"13px"},"&::-ms-input-placeholder":{color:"rgba(255, 255, 255, 0.6)",opacity:1,fontSize:"13px"}},".MuiInputAdornment-positionEnd":{marginLeft:"8px","@media (min-width: 1601px)":{marginLeft:"0.5vw"},".MuiIconButton-root":{padding:0,color:"rgba(255, 255, 255, 0.7)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}}},".MuiInputAdornment-positionStart":{marginRight:"8px","@media (min-width: 1601px)":{marginRight:"0.5vw"}},svg:{color:"rgba(255, 255, 255, 0.7)","@media (min-width: 1601px)":{width:"1vw",height:"auto"}}},".MuiFormLabel-root":{fontSize:"14px",fontWeight:500,color:"rgba(255, 255, 255, 0.7)",transition:"all 0.3s ease","@media (min-width: 1601px)":{fontSize:"0.88vw",marginBottom:"0.625vw"},"&.Mui-focused":{color:"#fdfffd",fontSize:"16px"},"&.MuiInputLabel-shrink":{fontSize:"18px"}},".MuiFormHelperText-root":{color:r.palette.error.main,marginLeft:0,marginTop:"0.5rem"},".MuiTypography-root":{color:"#ffffff"},".MuiButton-root":{padding:"0.75rem 1.5rem",fontWeight:600,borderRadius:"8px",textTransform:"none",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",transition:"all 0.3s ease","&:hover":{transform:"translateY(-2px)",boxShadow:"0 6px 16px rgba(0, 0, 0, 0.2)"},"&:active":{transform:"translateY(0)"},"&.Mui-disabled":{backgroundColor:"rgba(255, 255, 255, 0.12)",color:"rgba(255, 255, 255, 0.5)",boxShadow:"none"}}
1,".MuiCheckbox-root":{color:"rgba(255, 255, 255, 0.7)","&.Mui-checked":{color:r.palette.primary.main}},".MuiFormControlLabel-root":{".MuiTypography-root":{fontSize:"14px",lineHeight:1.4}},".top_part":{marginBottom:"1.5rem"},".bottom_navList":{marginTop:"1.5rem",paddingTop:"1.5rem",borderTop:"1px solid rgba(255, 255, 255, 0.1)",".MuiList-root":{display:"flex",justifyContent:"center",flexWrap:"wrap",gap:"1rem",".MuiListItem-root":{padding:0,".MuiTypography-root":{fontSize:"14px",color:"rgba(255, 255, 255, 0.7)",textDecoration:"none",transition:"color 0.3s ease","&:hover":{color:r.palette.primary.main}}}}}},".rightPartImg":{width:"55%",position:"fixed",top:0,right:0,height:"100vh",zIndex:9,overflow:"hidden",display:"flex",alignItems:"flex-end",justifyContent:"flex-end","@media (max-width: 1499px)":{width:"50%"},"@media (max-width: 899px)":{position:"relative",width:"100%",height:"300px",top:"auto",right:"auto",margin:"0 auto"},"@media (max-width: 599px)":{height:"250px"},figure:{lineHeight:0,width:"100%",height:"100%",position:"relative",img:{objectPosition:"bottom center",width:"100%",height:"100%",objectFit:"contain"}}},".innerLeftMain":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginBottom:"1.5rem",".logo-image":{maxWidth:"200px",marginBottom:"1.5rem",transition:"transform 0.3s ease","&:hover":{transform:"scale(1.05)"},"@media (max-width: 1499px)":{maxWidth:"180px"},"@media (max-width: 899px)":{maxWidth:"160px"}}}}});var l=a(54587),d=a.n(l);function g(e){let{children:r}=e;return(0,t.jsxs)(s,{children:[(0,t.jsx)("figure",{className:"BackgroundImg",children:(0,t.jsx)(d(),{src:i.A.loginBackground,alt:"Background",fill:!0,sizes:"100vw",priority:!0,style:{objectFit:"cover"}})}),(0,t.jsx)("div",{className:"background-overlay"}),(0,t.jsxs)(n.A,{className:"content-container",children:[(0,t.jsx)(n.A,{className:"wrapperLeft_auth",children:(0,t.jsxs)(n.A,{className:"topLogoWrapper",children:[(0,t.jsx)(n.A,{className:"innerLeftMain",children:(0,t.jsx)(d(),{src:i.A.logoMain,width:196,height:100,alt:"Company Logo",className:"logo-image"})}),(0,t.jsx)(n.A,{className:"form_sec",children:(0,t.jsx)("div",{className:"form-container",children:r})})]})}),(0,t.jsx)(n.A,{className:"rightPartImg",children:(0,t.jsx)("figure",{children:(0,t.jsx)(d(),{src:i.A.ModiDada,alt:"",fill:!0,sizes:"(max-width: 899px) 60vw, 60vw",style:{objectFit:"contain",objectPosition:"bottom center"}})})})]})]})}},26003:(e,r,a)=>{"use strict";a.d(r,{A:()=>o});var t=a(37876),i=a(22997);let o=e=>{let{error:r,message:a,...o}=e;return(0,t.jsx)(t.Fragment,{children:!!r&&(0,t.jsx)(i.A,{className:o.className,style:{color:"red"},children:a})})}},40359:(e,r,a)=>{"use strict";a.d(r,{A:()=>w});var t=a(14232),i=a(69241),o=a(53033),n=a(21849),s=a(13323),l=a(99093),d=a(57929),g=a(1971),m=a(75556),c=a(17937),u=a(95537),p=a(37876);let x=(0,m.A)(),h=(0,l.A)("div",{name:"MuiStack",slot:"Root"});function f(e){return(0,d.A)({props:e,name:"MuiStack",defaultTheme:x})}let b=({ownerState:e,theme:r})=>{let a={display:"flex",flexDirection:"column",...(0,c.NI)({theme:r},(0,c.kW)({values:e.direction,breakpoints:r.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let t=(0,u.LX)(r),i=Object.keys(r.breakpoints.values).reduce((r,a)=>(("object"==typeof e.spacing&&null!=e.spacing[a]||"object"==typeof e.direction&&null!=e.direction[a])&&(r[a]=!0),r),{}),n=(0,c.kW)({values:e.direction,base:i}),s=(0,c.kW)({values:e.spacing,base:i});"object"==typeof n&&Object.keys(n).forEach((e,r,a)=>{if(!n[e]){let t=r>0?n[a[r-1]]:"column";n[e]=t}}),a=(0,o.A)(a,(0,c.NI)({theme:r},s,(r,a)=>e.useFlexGap?{gap:(0,u._W)(t,r)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[a?n[a]:e.direction]}`]:(0,u._W)(t,r)}}))}return(0,c.iZ)(r.breakpoints,a)};var y=a(66438),v=a(63915);let w=function(e={}){let{createStyledComponent:r=h,useThemeProps:a=f,componentName:o="MuiStack"}=e,l=r(b);return t.forwardRef(function(e,r){let d=a(e),{component:m="div",direction:c="column",spacing:u=0,divider:x,children:h,className:f,useFlexGap:b=!1,...y}=(0,g.A)(d),v=(0,s.A)({root:["root"]},e=>(0,n.Ay)(o,e),{});return(0,p.jsx)(l,{as:m,ownerState:{direction:c,spacing:u,useFlexGap:b},ref:r,className:(0,i.A)(v.root,f),...y,children:x?function(e,r){let a=t.Children.toArray(e).filter(
1Boolean);return a.reduce((e,i,o)=>(e.push(i),o<a.length-1&&e.push(t.cloneElement(r,{key:`separator-${o}`})),e),[])}(h,x):h})})}({createStyledComponent:(0,y.Ay)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,v.b)({props:e,name:"MuiStack"})})},63676:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forms/leave-request",function(){return a(98221)}])},64145:(e,r,a)=>{"use strict";a.d(r,{A:()=>t});let t={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},87217:(e,r,a)=>{"use strict";a.d(r,{A:()=>i});var t=a(71184);let i=()=>{let{enqueueSnackbar:e}=(0,t.dh)();return{toastSuccess:r=>{e(r,{variant:"success",autoHideDuration:2e3})},toastWarning:r=>{e(r,{variant:"warning",autoHideDuration:2e3})},toastInfo:r=>{e(r,{variant:"info",autoHideDuration:2e3})},toastError:r=>{e(r,{variant:"error",autoHideDuration:2e3})}}}},97176:(e,r,a)=>{"use strict";a.d(r,{A:()=>h});var t=a(28888),i=a(37876),o=a(26003),n=a(66438),s=a(856),l=a(42008),d=a(68421),g=a(16276),m=a(64397),c=a(56557),u=a.n(c);function p(){let e=(0,t._)(["\n min-width: 220px;\n width: 100%;\n .datepickerSectionWrap {\n fieldset {\n display: none;\n }\n .MuiFormControl-root {\n width: 100%;\n background-color: #2d354a;\n border-radius: 8px;\n .MuiInputBase-root {\n border-radius: 6px !important;\n min-height: 53px !important;\n color: #fff;\n input {\n background: transparent !important;\n padding: 6.5px 16px !important;\n }\n .MuiButtonBase-root {\n .MuiSvgIcon-root {\n display: block !important;\n color: white;\n }\n }\n }\n }\n }\n .abs_textField {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: #fff;\n z-index: 99;\n &.MuiFormControl-root {\n .MuiInputBase-root {\n input {\n background: url(/static/media/calendar.76ae0bfa8a0f53edac2f8208d3eb2680.svg) center right\n 14px no-repeat;\n }\n }\n }\n }\n"]);return p=function(){return e},e}let x=(0,n.Ay)(l.A)(p()),h=function(e){let{currentDate:r,onDateChange:a,error:t,helperText:n,disabledKeyStroke:c=!1,...p}=e;return(0,i.jsx)(x,{children:(0,i.jsxs)(s.A,{fullWidth:!0,children:[(0,i.jsx)(l.A,{className:"datepickerSectionWrap ".concat(null==p?void 0:p.className),onKeyDown:e=>{c&&e.preventDefault()},children:(0,i.jsx)(d.$,{dateAdapter:m.R,children:(0,i.jsx)(g.l,{label:"",format:"DD/MM/YYYY",...p,value:u()(r),onChange:e=>{a&&null!==e&&a(null==e?void 0:e.format("YYYY-MM-DD"))}})})}),(0,i.jsx)(o.A,{error:t,message:n})]})})}},98221:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>k});var t=a(37876),i=a(12998),o=a(98412),n=a(87217),s=a(21076),l=a(97176),d=a(42008),g=a(19905),m=a(82777),c=a(58311),u=a(44808),p=a(22997),x=a(40359),h=a(74359),f=a(40097),b=a(56557),y=a.n(b),v=a(89099),w=a(14232),j=a(88992);let A={"& .MuiOutlinedInput-root":{backgroundColor:"rgba(0, 0, 0, 0.2)","& fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"},"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.5)"},"&.Mui-focused fieldset":{borderColor:"primary.main"}},"& .MuiInputBase-input":{color:"white"},"& .MuiInputLabel-root":{color:"rgba(255, 255, 255, 0.7)"}},I={"& .MuiOutlinedInput-root.Mui-disabled":{backgroundColor:"rgba(255, 255, 255, 0.08)","& fieldset":{borderColor:"rgba(255, 255, 255, 0.2)",borderWidth:"1px"},"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"}},"& .MuiInputBase-input.Mui-disabled":{color:"rgba(255, 255, 255, 0.85)",WebkitTextFillColor:"rgba(255, 255, 255, 0.85)"},"& .MuiInputLabel-root.Mui-disabled":{color:"rgba(255, 255, 255, 0.6)"}};function k(){let e=(0,v.useRouter)(),r=(0,o.G)(e=>e.authUser.token),{data:a}=(0,h.I)({queryKey:["getLeadDetails"],queryFn:i.jF}),{control:b,handleSubmit:k,watch:S,setValue:M,formState:{errors:C}}=(0,j.mN)({defaultValues:{fullName:"",email:"",phone:"",delayFromDate:"",delayToDate:"",classDelayReason:""}});(0,w.useEffect)(()=>{var e,r,t,i;(null==a||null==(e=a.data)?void 0:e.data)&&(M("fullName",(null==(r=a.data.data[0])?void 0:r.registered_name)||""),M("email",(null==(t=a.data.data[0])?void 0:t.registered_email)||""),M("phone",(null==(i=a.data.data[0])?void 0:i.registered_mobile)||""))},[a]);let D=S("delayFromDate"),B=S("delayToDate"),F=S("fullName"),{toastSuccess:P,toastError:L}=(0,n.A)(),N=(()=>
1{if(!D||!B)return null;let e=y()(D),r=y()(B);return r.isAfter(e)?2>r.diff(e,"day")?"Please select more than two days of leave.":r.diff(e,"day")>15?"Leave duration cannot exceed 15 days.":null:"Please choose a start date earlier than the end date."})(),{mutate:W,isPending:T,isSuccess:_}=(0,f.n)({mutationFn:i.Ho,onSuccess:()=>{P("Class delay request submitted successfully!"),setTimeout(()=>window.location.reload(),2e3)},onError:e=>{L((null==e?void 0:e.message)||"An error occurred while submitting the form. Please try again."),setTimeout(()=>window.location.reload(),2e3)}});return(null==r?void 0:r.trim())?(0,t.jsxs)(s.A,{children:[(0,t.jsxs)(d.A,{sx:{textAlign:"center",mb:2},children:[(0,t.jsx)(m.A,{variant:"h4",component:"h1",children:"Leave Request Form"}),(0,t.jsx)(m.A,{variant:"body2",color:"text.secondary",children:"Please fill out the form below."})]}),(0,t.jsx)(x.A,{direction:"row",alignItems:"center",justifyContent:"center",p:{xs:1,sm:2},children:(0,t.jsx)(c.A,{elevation:3,sx:{p:{xs:2,sm:4},paddingLeft:{xs:"0px",sm:"0px"},paddingRight:{xs:"0px",sm:"0px"},maxWidth:{xs:"100%",sm:600},width:"100%",background:"#191E2E",overflow:"hidden"},children:(0,t.jsx)("form",{onSubmit:k(e=>{N||W({delayFromDate:e.delayFromDate,delayToDate:e.delayToDate,classDelayReason:e.classDelayReason})}),children:(0,t.jsxs)(x.A,{spacing:{xs:2,sm:3},children:[(0,t.jsx)(j.xI,{name:"fullName",control:b,rules:{required:"Name is required",maxLength:{value:60,message:"Maximum 60 characters allowed"}},render:e=>{let{field:{onChange:r,value:a},fieldState:{invalid:i,error:o}}=e;return(0,t.jsx)(u.A,{label:"Name*",fullWidth:!0,value:a,onChange:r,error:i,helperText:null==o?void 0:o.message,placeholder:"Enter your name",disabled:!!a,variant:"outlined",sx:{...A,...I},InputProps:{sx:{"&.Mui-disabled":{cursor:"not-allowed"}}}})}}),(0,t.jsx)(j.xI,{name:"email",control:b,rules:{required:"Email is required",pattern:{value:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,message:"Invalid email address"}},render:e=>{let{field:{onChange:r,value:a},fieldState:{invalid:i,error:o}}=e;return(0,t.jsx)(u.A,{label:"Email Address*",fullWidth:!0,type:"email",value:a,onChange:r,error:i,placeholder:"Enter your email address",disabled:!!a,variant:"outlined",sx:{...A,...I},InputProps:{sx:{"&.Mui-disabled":{cursor:"not-allowed"}}}})}}),(0,t.jsx)(j.xI,{name:"phone",control:b,rules:{required:"Contact number is required",pattern:{value:/^[0-9]{10}$/,message:"Please enter a valid 10-digit number"}},render:e=>{let{field:{onChange:r,value:a},fieldState:{invalid:i,error:o}}=e;return(0,t.jsx)(u.A,{label:"Contact Number*",fullWidth:!0,value:a,onChange:r,error:i,helperText:null==o?void 0:o.message,placeholder:"Enter your contact number",disabled:!!a,variant:"outlined",InputProps:{sx:{"&.Mui-disabled":{cursor:"not-allowed"}},startAdornment:(0,t.jsx)(m.A,{sx:{color:"rgba(255,255,255,0.6)",mr:1,fontSize:"0.9rem",whiteSpace:"nowrap"},children:"+91"})},sx:{...A,...I}})}}),N&&(0,t.jsx)(p.A,{error:!0,sx:{mx:"14px",mt:"-8px"},children:N}),(0,t.jsx)(j.xI,{name:"delayFromDate",control:b,rules:{required:"Leave start date is required"},render:e=>{let{field:{onChange:r,value:a},fieldState:{error:i,invalid:o}}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.A,{className:"cmnGradientBorder",children:[(0,t.jsxs)(m.A,{style:{paddingBottom:"14px"},variant:"body1",children:["Leave Start Date ",(0,t.jsx)("span",{style:{color:"#fff"},children:"*"})]}),(0,t.jsx)(l.A,{currentDate:a,onDateChange:r,error:o,minDate:y()(),disabledKeyStroke:!0})]}),o&&(0,t.jsx)(p.A,{sx:{marginLeft:"14px"},error:!0,children:null==i?void 0:i.message})]})}}),(0,t.jsx)(j.xI,{name:"delayToDate",control:b,rules:{required:"Leave end date is required"},render:e=>{let{field:{onChange:r,value:a},fieldState:{error:i,invalid:o}}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.A,{className:"cmnGradientBorder",children:[(0,t.jsxs)(m.A,{style:{paddingBottom:"14px"},variant:"body1",children:["Leave End Date ",(0,t.jsx)("span",{style:{color:"#fff"},children:"*"})]}),(0,t.jsx)(l.A,{currentDate:a,onDateChange:r,error:o,minDate:D?y()(D).add(1,"day"):y()().add(1,"day"),maxDate:D?y()(D).add(15,"day"):void 0,disabledKeyStroke:!0})]}),o&&(0,t.jsx)(p.A,{sx:{marginLeft:"14px"},error:!0,children:null==i?void 0:i.message})]})}}),(0,t.jsx)(j.xI,{name:"classDelayReason",control:b,rules:{required:"Reason is required",validate:e=>e&&""!==e.trim()?!(e.trim().length<10)||"Please provide more details (at least 10 characters)":"Reason is required"},render:e=>
1{let{field:{onChange:r,value:a},fieldState:{invalid:i,error:o}}=e;return(0,t.jsxs)(d.A,{children:[(0,t.jsxs)(d.A,{display:"flex",alignItems:"center",gap:1,mb:1,children:[(0,t.jsx)(d.A,{sx:{width:3,height:16,borderRadius:"2px",background:"linear-gradient(180deg, #60a5fa, #a78bfa)",flexShrink:0}}),(0,t.jsxs)(m.A,{sx:{color:"rgba(255,255,255,0.75)",fontWeight:600,fontSize:"0.75rem",letterSpacing:"0.07em",textTransform:"uppercase"},children:["Class Delay Reason ",(0,t.jsx)("span",{style:{color:"#f87171"},children:"*"})]})]}),(0,t.jsxs)(d.A,{sx:{border:i?"1px solid rgba(248,113,113,0.6)":"1px solid rgba(255,255,255,0.12)",borderRadius:"10px",backgroundColor:"rgba(0,0,0,0.25)",overflow:"hidden",transition:"all 0.2s ease","&:focus-within":{borderColor:i?"rgba(248,113,113,0.8)":"rgba(96,165,250,0.5)",boxShadow:i?"0 0 0 3px rgba(248,113,113,0.08)":"0 0 0 3px rgba(96,165,250,0.08)"}},children:[(0,t.jsx)(d.A,{sx:{px:2.5,pt:1.8,pb:1.2,borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.02)"},children:(0,t.jsx)(m.A,{sx:{color:"rgba(255,255,255,0.4)",fontSize:"0.82rem",fontStyle:"italic",fontFamily:"Georgia, serif",userSelect:"none",letterSpacing:"0.01em"},children:"Dear Sir / Ma'am,"})}),(0,t.jsx)(u.A,{fullWidth:!0,multiline:!0,rows:5,value:a,onChange:r,placeholder:"Write the reason for your class delay here...",variant:"standard",InputProps:{disableUnderline:!0,sx:{px:2.5,pt:1.5,pb:1,color:"rgba(255,255,255,0.88)",fontSize:"0.875rem",fontFamily:"Georgia, serif",lineHeight:1.8,alignItems:"flex-start","& textarea::placeholder":{color:"rgba(255,255,255,0.2)",fontStyle:"italic"}}},sx:{width:"100%"}}),(0,t.jsxs)(d.A,{sx:{px:2.5,pt:1.2,pb:1.8,borderTop:"1px solid rgba(255,255,255,0.06)",background:"rgba(255,255,255,0.02)",display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,t.jsxs)(m.A,{sx:{color:"rgba(255,255,255,0.3)",fontSize:"0.78rem",fontStyle:"italic",fontFamily:"Georgia, serif",userSelect:"none",lineHeight:1.6},children:["Yours sincerely,",(0,t.jsx)("br",{}),(0,t.jsx)("span",{style:{color:F?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.18)",fontSize:"0.75rem",fontWeight:F?600:400},children:F||"[ Your Name ]"})]}),(0,t.jsxs)(m.A,{sx:{color:a.length>0?"rgba(96,165,250,0.5)":"rgba(255,255,255,0.15)",fontSize:"0.68rem",fontFamily:"monospace",userSelect:"none"},children:[a.length," chars"]})]})]}),i&&(0,t.jsx)(p.A,{error:!0,sx:{ml:"4px",mt:.5},children:null==o?void 0:o.message})]})}}),(0,t.jsx)(g.A,{type:"submit",variant:"contained",fullWidth:!0,size:"large",disabled:T||_||!!N,sx:{py:1.5,fontWeight:600,transition:"all 0.3s ease"},children:T?"Submitting...":_?"Submitted!":"Submit"})]})})})})]}):(0,t.jsx)(s.A,{children:(0,t.jsx)(x.A,{direction:"row",alignItems:"center",justifyContent:"center",p:2,children:(0,t.jsxs)(d.A,{sx:{textAlign:"center"},children:[(0,t.jsx)("h1",{children:"Please log in to access this form."}),(0,t.jsx)(g.A,{variant:"contained",onClick:()=>e.push("/auth/login"),children:"Go to Login"})]})})})}}},e=>{e.O(0,[4587,9905,5457,4808,4359,7025,4624,2396,3632,9422,704,7626,6276,636,6593,8792],()=>e(e.s=63676)),_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.