1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3768],{91854:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/training-management/participant-list",function(){return n(51193)}])},49523:function(e,t,n){"use strict";var r=n(85893),a=n(58886);let o=e=>{let{selected:t,...n}=e;return(0,r.jsx)(a.Z,{...n,sx:{border:"none",fontWeight:400,borderRadius:"4px",margin:"0 4px",...t?{backgroundColor:"#32497A",color:"#FFFFFF","&:hover":{backgroundColor:"#32497A"}}:{backgroundColor:"#DDDDDD",color:"#000000","&:hover":{backgroundColor:"#CCCCCC"}}}})};t.Z=o},51193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var r=n(85893),a=n(12963),o=n(23795),l=n(15861),i=n(99226),s=n(83321),d=n(98456),c=n(67294),x=n(86501),u=n(5434),h=n(11280),p=n(1954),g=n(50135),f=n(87109),j=n(18360),m=n(18972),b=n(86886),C=n(70872),Z=n(49523),v=n(69271),S=n(90948),F=n(53252),y=n(72882),w=n(90629),k=n(7906),E=n(53184),z=n(53816),P=n(295),A=n(51233),I=n(42298),T=n(39332),_=n(11163),O=n(20106);let W=(0,S.ZP)(F.Z)(()=>({fontSize:14,fontWeight:700,color:"#1F1F1F",backgroundColor:"#CBE2F9",textTransform:"none",padding:"12px 16px",whiteSpace:"nowrap"})),D=(0,S.ZP)(F.Z)(()=>({fontSize:14,fontWeight:400,color:"#1F1F1F",textTransform:"none",padding:"16px",verticalAlign:"top"})),R=e=>{let t=(0,_.useRouter)(),n=(0,T.useSearchParams)(),a=n.get("id"),{candidates:s,training:d,onStatusChange:x}=e,[u,h]=(0,c.useState)(!1),g=(0,c.useRef)(null),f=e=>{if(e){if(x){x();return}t.replace("/admin/training-management/".concat(a,"/?tabs=").concat(e),void 0,{shallow:!0,scroll:!1})}},j=()=>
1{if(g.current){let e=g.current,t=e.scrollLeft+e.clientWidth>=e.scrollWidth-5;h(!t)}};return(0,c.useEffect)(()=>{let e=g.current;if(e)return e.addEventListener("scroll",j),j(),()=>e.removeEventListener("scroll",j)},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(y.Z,{component:w.Z,sx:{overflowX:"auto",maxWidth:"100%",boxShadow:"none"},ref:g,children:(0,r.jsxs)(k.Z,{sx:{minWidth:1400},children:[(0,r.jsx)(E.Z,{children:(0,r.jsxs)(z.Z,{children:[(0,r.jsx)(W,{width:250,children:"Participant Name"}),(0,r.jsx)(W,{width:200,children:"Training Name"}),(0,r.jsx)(W,{width:200,children:"Address"}),(0,r.jsx)(W,{width:120,children:"Date Enroll"}),(0,r.jsx)(W,{width:150,children:"Date Registered"}),(0,r.jsx)(W,{width:150,children:"Schedule"}),(0,r.jsx)(W,{width:140,children:"Status"}),(0,r.jsx)(W,{width:140,children:"Invoice"}),(0,r.jsx)(W,{align:"center",width:80,sx:{position:"sticky",right:0,zIndex:2,boxShadow:u?"-3px 0 5px -1px rgba(0,0,0,0.1)":"none"},children:"Action"})]})}),(0,r.jsx)(P.Z,{children:s&&s.length>0?s.map((e,t)=>{var n;
1let a="company"===e.enroll_type?e.pic_name:e.fullname,s="company"===e.enroll_type?"(".concat(e.company_name,")"):"",c=(null===(n=e.training)||void 0===n?void 0:n.title)||(null==d?void 0:d.title)||"-";return(0,r.jsxs)(z.Z,{sx:{backgroundColor:"#FFF","&:hover":{backgroundColor:"#F7FBFF"}},children:[(0,r.jsx)(D,{children:(0,r.jsxs)(A.Z,{spacing:.5,children:[(0,r.jsxs)(l.Z,{fontWeight:600,fontSize:14,children:[a," ",s]}),(0,r.jsx)(l.Z,{fontSize:13,color:"text.secondary",children:e.email}),(0,r.jsx)(l.Z,{fontSize:13,color:"text.secondary",children:e.whatsapp_number})]})}),(0,r.jsx)(D,{children:(0,r.jsx)(l.Z,{fontSize:14,children:c})}),(0,r.jsx)(D,{children:(0,r.jsx)(l.Z,{fontSize:14,children:e.address||"-"})}),(0,r.jsx)(D,{children:(0,r.jsx)(l.Z,{fontSize:14,children:e.created_at?(0,I.Z)(new Date(e.created_at),"dd/MM/yyyy"):"-"})}),(0,r.jsx)(D,{children:e.date_registered?(0,r.jsx)(l.Z,{fontSize:14,children:(0,I.Z)(new Date(e.date_registered),"dd/MM/yyyy")}):(0,r.jsx)(l.Z,{children:" - "})}),(0,r.jsx)(D,{children:e.schedule?(0,r.jsxs)(A.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,r.jsx)(p.JO,{icon:"mdi:calendar-check",color:"#32497A"}),(0,r.jsx)(l.Z,{fontSize:14,children:(0,I.Z)(new Date(e.schedule),"dd/MM/yyyy")})]}):(0,r.jsx)(l.Z,{children:" - "})}),(0,r.jsx)(D,{children:(0,r.jsx)(i.Z,{sx:{borderRadius:"6px",padding:"2px 4px",width:"fit-content"},children:(0,r.jsx)(O.Z,{candidate:e,applicantStatus:e.status,changeParams:f})})}),(0,r.jsx)(D,{children:(0,r.jsx)(A.Z,{direction:"row",alignItems:"center",spacing:.5,children:"-"})}),(0,r.jsx)(D,{align:"center",sx:{position:"sticky",right:0,backgroundColor:"#FFF",zIndex:2,boxShadow:u?"-3px 0 5px -1px rgba(0,0,0,0.1)":"none"},children:(0,r.jsx)(i.Z,{component:o.Z,href:"/admin/training-management/".concat(e.training_id,"/?tabs=").concat(e.status),sx:{cursor:"pointer",background:"#32497A",color:"white",padding:" 8px 12px 8px 12px",borderRadius:"10px",fontSize:12},children:"Management"})})]},t)}):(0,r.jsx)(z.Z,{children:(0,r.jsx)(D,{colSpan:9,align:"center",children:(0,r.jsx)(l.Z,{color:"text.secondary",children:"No participants found."})})})})]})})})},M=e=>[{label:"All",value:"all",count:e.all},{label:"Waiting",value:"unregistered",count:e.unregistered},{label:"Verifying",value:"contacted",count:e.contacted},{label:"Unpaid",value:"unpaid",count:e.unpaid},{label:"Paid",value:"paid",count:e.paid},{label:"Registered",value:"registered",count:e.registered},{label:"Onhold",value:"onhold",count:e.onhold},{label:"Ongoing",value:"ongoing",count:e.ongoing},{label:"Completed",value:"complete",count:e.complete},{label:"Canceled",value:"canceled",count:e.canceled}],N=e=>{let{data:t,total:n,trainingList:a,selectedTrainingId:o,setSelectedTrainingId:x,page:u,setPage:h,pageItems:S,setPageItems:F,search:y,setSearch:w,tabs:k,setTabs:E,sort:z,setSort:P,statusCounts:A,loading:I=!1,onStatusChange:T,hasMoreTrainings:_,loadMoreTrainings:O,isTrainingLoading:W}=e,[D,N]=(0,c.useState)(y);(0,c.useEffect)(()=>{let e=setTimeout(()=>{w(D)},1e3);return()=>clearTimeout(e)},[D,w]),(0,c.useEffect)(()=>{N(y)},[y]);let B=a.find(e=>e.id===o),J=()=>{N(""),w(""),x("all"),E("all"),h(1),P("desc")},L=e=>{let t=e.currentTarget;t.scrollTop+t.clientHeight>=t.scrollHeight-10&&_&&!W&&O()};return(0,r.jsxs)(i.Z,{sx:{borderRadius:"6px",display:"flex",flexDirection:"column",gap:"24px",overflow:"hidden"},children:[(0,r.jsxs)(i.Z,{sx:{display:"flex",gap:"70px"},children:[(0,r.jsx)(g.Z,{sx:{flexGrow:1},value:D,onChange:e=>N(e.target.value),variant:"outlined",placeholder:"Search Participant, Email...",size:"small",InputProps:{startAdornment:(0,r.jsx)(f.Z,{position:"start",sx:{marginRight:"8px"},children:(0,r.jsx)(p.JO,{icon:"ph:magnifying-glass",fontSize:16})})}}),(0,r.jsxs)(i.Z,{sx:{width:"240px",display:"flex",gap:"6px",alignItems:"center",justifyContent:"right"},children:[(0,r.jsx)(p.JO,{icon:"ph:funnel",fontSize:16,fontWeight:700}),(0,r.jsx)(l.Z,{sx:{fontSize:14,fontWeight:700},children:"Sort by :"}),(0,r.jsxs)(j.Z,{size:"small",value:z,onChange:e=>P(e.target.value),sx:{border:"none","& .MuiOutlinedInput-notchedOutline":{border:"none"}},children:[(0,r.jsx)(m.Z,{value:"desc",children:"Newest to Oldest"}),(0,r.jsx)(m.Z,{value:"asc",children:"Oldest to Newest"})]})]})]}),(0,r.jsxs)(i.Z,{sx:{display:"flex",gap:"20px",alignItems:"flex-end"},children:[(0,r.jsxs)(i.Z,{sx:{width:"50%",justifyContent:"left"},children:[(0,r.jsx)(l.Z,{sx:{fontSize:12,fontWeight:700,mb:1,color:"#32497A"},children:"Program Name"}),(0,r.jsxs)(j.Z,{size:"small",value:o,onChange:e=>x(e.target.value),MenuProps:{PaperProps:{onScroll:L,sx:{maxHeight:300}}},sx:{border:1,borderColor:"#d5d5d5",width:"100%"},children:[(0,r.jsx)(m.Z,{value:"all",children:"All Training Programs"}),a.map((e,t)=>(0,r.jsx)(m.Z,{value:e.id,children:e.title},t)),W&&(0,r.jsx)(m.Z,{disabled:!0,children:(0,r.jsx)(i.Z,{sx:{display:"flex",justifyContent:"center",width:"100%"},children:(0,r.jsx)(d.Z,{size:20})})})]})]}),(0,r.jsx)(s.Z,{variant:"outlined",color:"secondary",onClick:J,startIcon:(0,r.jsx)(p.JO,{icon:"mdi:filter-off"}),sx:{height:"40px",textTransform:"none",borderColor:"#d5d5d5",color:"#666"},children:"Clear Filter"})]}),(0,r.jsx)(v.Z,{tabs:k,setTabs:E,tabItems:M(A),sx:{px:0,pt:0}}),I?(0,r.jsx)(i.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,r.jsx)(d.Z,{})}):(0,r.jsx)(R,{training:null!=B?B:{},candidates:t,onStatusChange:T}),(0,r.jsxs)(b.ZP,{container:!0,alignItems:"center",sx:{mb:"24px"},children:[(0,r.jsx)(b.ZP,{item:!0,xs:4,children:(0,r.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,r.jsx)(l.Z,{sx:{color:"#404040",fontSize:14},children:"Showing"}),(0,r.jsx)(j.Z,{size:"small",value:S,onChange:e=>
1F(Number(e.target.value)),sx:{border:"1px solid #E7E7E7",width:"80px"},children:[10,25,50,100].map(e=>(0,r.jsx)(m.Z,{value:e,children:e},e))}),(0,r.jsxs)(l.Z,{sx:{color:"#404040",fontSize:14},children:["of ",n]})]})}),(0,r.jsx)(b.ZP,{item:!0,xs:4,sx:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(C.Z,{size:"small",count:Math.ceil(n/S)||1,page:u,onChange:(e,t)=>h(t),variant:"outlined",shape:"rounded",renderItem:e=>(0,r.jsx)(Z.Z,{...e})})}),(0,r.jsx)(b.ZP,{item:!0,xs:4})]})]})},B=()=>{let[e,t]=(0,c.useState)("all"),[n,g]=(0,c.useState)("all"),[f,j]=(0,c.useState)(""),[m,b]=(0,c.useState)(1),[C,Z]=(0,c.useState)(10),[v,S]=(0,c.useState)("desc"),[F,y]=(0,c.useState)([]),[w,k]=(0,c.useState)(0),[E,z]=(0,c.useState)(!1),[P,A]=(0,c.useState)(!1),[I,T]=(0,c.useState)({all:0,canceled:0,complete:0,contacted:0,ongoing:0,onhold:0,paid:0,registered:0,unpaid:0,unregistered:0}),[_,O]=(0,c.useState)([]),[W,D]=(0,c.useState)(1),[R,M]=(0,c.useState)(!0),[B,J]=(0,c.useState)(!1),L=(0,c.useCallback)(async e=>{J(!0),h.e.get("/training/all",{page:e,take:10}).then(t=>{var n;let r=(null===(n=t.data.trainings)||void 0===n?void 0:n.data)||[];1===e?O(r):O(e=>[...e,...r]),r.length<10?M(!1):M(!0)}).catch(e=>{var t,n;x.Am.error("Failed to get training list: "+((null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.message)||e.message))}).finally(()=>{J(!1)})},[]);(0,c.useEffect)(()=>{L(1)},[L]);let U=()=>{if(!B&&R){let e=W+1;D(e),L(e)}},H=(0,c.useCallback)(async()=>{var t,r,a,o;z(!0);try{let a={page:m,take:C,sort:v};f&&(a.search=f),"all"!==n&&(a.status=n),"all"!==e&&(a.trainingId=e);let o=await h.e.get("/training/participants/all",a),l=o.data,i={};"all"!==e&&(i.trainingId=e),f&&(i.search=f);let s=await h.e.get("/training/participants/statuses",i),d=s.data;(null==d?void 0:d.statuses)&&T(d.statuses),y(l.participants||[]),k((null===(t=l.pagination)||void 0===t?void 0:t.total)||(null===(r=l.participants)||void 0===r?void 0:r.length)||0)}catch(e){x.Am.error("Failed to get participant data: "+((null===(a=e.response)||void 0===a?void 0:null===(o=a.data)||void 0===o?void 0:o.message)||e.message))}finally{z(!1)}},[m,C,f,n,e,v]);(0,c.useEffect)(()=>{H()},[H]);let X=async()=>{A(!0);try{let t={page:1,take:99999,sort:v,export:"true"};f&&(t.search=f),"all"!==n&&(t.status=n),"all"!==e&&(t.trainingId=e);let r=new URLSearchParams(t).toString();await h.e.downloadFile("/training/participants/all?".concat(r),"participant-list.csv"),x.Am.success("Export Success!")}catch(e){x.Am.error("Export Failed: "+((null==e?void 0:e.message)||"Something went wrong"))}finally{A(!1)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.Z,{separator:(0,r.jsx)(u.sOJ,{fontSize:"17px",color:"black"}),"aria-label":"breadcrumb",children:[(0,r.jsx)(o.Z,{href:"/admin/training-management",sx:{textDecoration:"none"},children:(0,r.jsx)(l.Z,{sx:{color:"#999999",fontSize:"14px"},children:"Training Management"})},"1"),(0,r.jsx)(l.Z,{sx:{color:"#32497A",fontSize:"14px",fontWeight:700,cursor:"pointer"},children:"Participant List"},"3")]}),(0,r.jsxs)(i.Z,{sx:{backgroundColor:"#FFFFFF",padding:"20px 35px",borderRadius:"12px",mt:5,display:"flex",flexDirection:"column",gap:8},children:[(0,r.jsxs)(i.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsx)(l.Z,{sx:{color:"#32497A",fontWeight:"700",fontSize:"24px"},children:"Participant List"}),(0,r.jsxs)(i.Z,{sx:{display:"flex",gap:2},children:[(0,r.jsx)(s.Z,{variant:"outlined",onClick:()=>{H()},disabled:E,sx:{minWidth:"40px",width:"40px",height:"40px",padding:0,borderColor:"#32497A",color:"#32497A",backgroundColor:"#fff","&:hover":{borderColor:"#263a5e",backgroundColor:"#f0f4ff"}},children:(0,r.jsx)(p.JO,{icon:"mdi:refresh",fontSize:24})}),(0,r.jsx)(s.Z,{variant:"outlined",startIcon:P?(0,r.jsx)(d.Z,{size:20,color:"inherit"}):(0,r.jsx)(p.JO,{icon:"mdi:download"}),onClick:X,disabled:P,sx:{height:"40px",textTransform:"none",borderColor:"#32497A",color:"#32497A",backgroundColor:"#fff","&:hover":{borderColor:"#263a5e",backgroundColor:"#f0f4ff"}},children:P?"Exporting...":"Export Data"})]})]}),(0,r.jsx)(N,{data:F,total:w,trainingList:_,selectedTrainingId:e,setSelectedTrainingId:t,page:m,setPage:b,pageItems:C,setPageItems:Z,search:f,setSearch:j,tabs:n,setTabs:g,sort:v,setSort:S,statusCounts:I,loading:E,onStatusChange:H,hasMoreTrainings:R,loadM
1oreTrainings:U,isTrainingLoading:B})]})]})},J=()=>(0,r.jsx)(B,{});J.acl={action:"read",subject:"admin-training-management"};var L=J},69271:function(e,t,n){"use strict";var r=n(85893),a=n(90263),o=n(99226),l=n(15861),i=n(86886);let s=e=>{let{tabs:t,setTabs:n,label:i,value:s,count:d,notify:c}=e,x=t===s;return(0,r.jsx)(a.Z,{color:"error",variant:"dot",invisible:!c||0===d,sx:{"& .MuiBadge-badge":{top:"4px",right:"4px",boxShadow:"0 0 0 2px #FFFFFF"}},children:(0,r.jsx)(o.Z,{onClick:()=>n(s),sx:{cursor:"pointer",p:"8px 12px",borderRadius:"12px",border:"1px solid ".concat(x?"#32497A":"#E7E7E7"),backgroundColor:x?"#F2F8FE":"inherit","&:hover":{borderColor:"#32497A"}},children:(0,r.jsxs)(l.Z,{sx:{color:x?"#32497A":"#404040",fontSize:14,fontWeight:"400",userSelect:"none","&:hover":{color:"#32497A"}},children:[i," (",d,")"]})})})},d=e=>{var t;let{tabItems:n,tabs:a,setTabs:o,sx:d}=e;return(0,r.jsxs)(i.ZP,{container:!0,sx:{display:"flex",px:"24px",pt:"16px",gap:"10px",alignItems:"center",...d},children:[(0,r.jsx)(l.Z,{sx:{color:"#404040",fontSize:16,fontWeight:700},children:"Status"}),n.map((e,n)=>(0,r.jsx)(s,{tabs:a,setTabs:o,label:e.label,value:e.value,count:null!==(t=e.count)&&void 0!==t?t:0,notify:"unregistered"===e.value||"paid"===e.value},n))]})};t.Z=d},20106:function(e,t,n){"use strict";var r=n(85893),a=n(67294),o=n(86886),l=n(99226),i=n(15861),s=n(14564),d=n(64666),c=n(37645),x=n(6514),u=n(50135),h=n(31425),p=n(83321),g=n(1954),f=n(11280),j=n(86501);let m={unregistered:{label:"Unregistered",bgColor:"#F5F5F5",fontColor:"#404040",dotColor:"#404040"},contacted:{label:"Contacted",bgColor:"#D8F0FF",fontColor:"#404040",dotColor:"#62B0FF"},unpaid:{label:"Unpaid",bgColor:"#F9DFCB",fontColor:"#404040",dotColor:"#F9B384"},paid:{label:"Paid",bgColor:"#E4F9CB",fontColor:"#404040",dotColor:"#A9E56C"},registered:{label:"Registered",bgColor:"#89BCFF",fontColor:"#404040",dotColor:"#3E90FF"},onhold:{label:"Onhold",bgColor:"#FFED94",fontColor:"#404040",dotColor:"#FFCF40"},ongoing:{label:"Ongoing",bgColor:"#F9CBF3",fontColor:"#404040",dotColor:"#F07EE9"},complete:{label:"Completed",bgColor:"#6EEEA1",fontColor:"#404040",dotColor:"#20CC78"},canceled:{label:"Canceled",bgColor:"red",fontColor:"#404040",dotColor:"red"}},b=e=>{let{candidate:t,applicantStatus:n,changeParams:b,disabled:C=!1}=e,[Z,v]=(0,a.useState)(null),S=Boolean(Z),[F,y]=(0,a.useState)(!1),[w,k]=(0,a.useState)(""),[E,z]=(0,a.useState)(!1),[P,A]=(0,a.useState)(!1),I=e=>{C||v(e.currentTarget)},T=()=>{v(null)},_=()=>{y(!1),k("")},O=e=>{if(!P){if("canceled"===e){T(),y(!0);return}A(!0),f.e.put("/training/participant/update-status/".concat(t.id),{status:e}).then(async()=>{if("registered"===e){let e=new Date,n=e.toISOString().split("T")[0];await f.e.patch("/training/participants/".concat(t.id,"/registration-date"),{date_registered:n})}j.Am.success("Successfully proceed ".concat(t.fullname))},e=>{j.Am.error("Failed to change ".concat(t.fullname," status: ")+e.response.data.message)}).finally(async()=>{A(!1),T(),b(e)})}},{label:W,bgColor:D,fontColor:R}=m[n]||{label:"-",bgColor:"transparent",fontColor:"inherit"},M=()=>{z(!0),f.e.put("/training/participant/update-status/".concat(t.id),{status:"canceled",cancel_reason:w||void 0}).then(()=>{j.Am.success("Successfully canceled ".concat(t.fullname)),_(),b("canceled")},e=>{j.Am.error("Failed to cancel ".concat(t.fullname,": ")+e.response.data.message)}).finally(()=>{z(!1)})};return(0,r.jsxs)(o.ZP,{container:!0,justifyContent:"left",children:[(0,r.jsxs)(l.Z,{children:[(0,r.jsxs)(l.Z,{onClick:I,sx:{width:"120px",backgroundColor:D,p:"8px 12px",borderRadius:"6px",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:C?"default":"pointer",opacity:C?.7:1},children:[(0,r.jsx)(i.Z,{sx:{fontSize:12,fontWeight:600,color:R},children:W}),!C&&(0,r.jsx)(g.JO,{icon:"ph:caret-up-bold",fontSize:16})]}),(0,r.jsx)(s.ZP,{open:S,anchorEl:Z,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sx:{mt:1,"& .MuiPaper-root":{borderRadius:"12px",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.1)",overflow:"hidden"}},children:(0,r.jsx)(l.Z,{sx:{width:"160px",backgroundColor:"white",py:1},children:Object.entries(m).map(e=>{let[t,n]=e;return(0,r.jsxs)(l.Z,{onClick:()=>O(t),sx:{p:"8px 16px",display:"flex",alignItems:"center",gap:2,cursor:P?"default":"pointer",pointerEvents:P?"none":"auto",opacity:P?.6:1,transition:"all 0.2s","&:hover":{backgroundColor:"#F2F8FE"}},children:[(0,r.jsx)(l.Z,{sx:{width:8,height:8,borderRadius:"50%",backgroundColor:n.dotC
1olor}}),(0,r.jsx)(i.Z,{sx:{fontSize:14,color:"#404040"},children:n.label})]},t)})})})]}),(0,r.jsxs)(d.Z,{open:F,onClose:_,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:"12px"}},children:[(0,r.jsx)(c.Z,{sx:{fontWeight:700,color:"#404040"},children:"Cancel Participant"}),(0,r.jsxs)(x.Z,{children:[(0,r.jsxs)(i.Z,{sx:{mb:2,color:"#666"},children:["Are you sure you want to cancel ",(0,r.jsx)("strong",{children:t.fullname}),"?"]}),(0,r.jsx)(u.Z,{fullWidth:!0,multiline:!0,rows:3,label:"Cancel Reason (Optional)",placeholder:"Enter reason for cancellation...",value:w,onChange:e=>k(e.target.value),sx:{mt:1}})]}),(0,r.jsxs)(h.Z,{sx:{p:2,gap:1},children:[(0,r.jsx)(p.Z,{onClick:_,variant:"outlined",disabled:E,sx:{textTransform:"none"},children:"Back"}),(0,r.jsx)(p.Z,{onClick:M,variant:"contained",color:"error",disabled:E,sx:{textTransform:"none"},children:E?"Processing...":"Confirm Cancel"})]})]})]})};t.Z=b}},function(e){e.O(0,[1228,872,9044,9774,2888,179],function(){return e(e.s=91854)}),_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.