PageSourceSearch

https://thi-cdn.trangnguyen.edu.vn/_next/static/chunks/3323-9dad6d34b9da7893.js

js trangnguyen.edu.vn collected 2026-09-24 11:18:50 UTC 40,014 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3323],{346:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(9099),o=n(4232),i=n(4965);function a(){let{isAuthenticated:e}=(0,i.As)(),t=(0,l.useRouter)();(0,o.useEffect)(()=>{void 0!==e&&(e||t.push("".concat("https://trangnguyen.edu.vn","/dang-xuat?redirect=/dang-nhap")))},[e])}},6875:(e,t,n)=>{n.d(t,{A:()=>l});let l={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/empty.259ed992.png",height:360,width:360,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAPFBMVEVMaXHV1dXU1NS2trbZ2dnr6+vW1tbR0dHf39/o6Ojv7+/X19fIyMjExMTl5eX09PS+vr7V1dXa2tr5+fm9Fqv1AAAAEnRSTlMANmhH2/zxJRAFwEyb3/Pjgqay3YA6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAPklEQVR4nB3LSRIAIQgEwUaBBnU2/f9fJ7ROeSngRCITEegCsrgKEwidU1+C4zYzr6hXs9XOEc9S2cjyeccPMiYBhHJZKCQAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},7222:(e,t,n)=>{n.d(t,{A:()=>l});let l={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/yellow_l.036a7443.svg",height:40,width:40,blurWidth:0,blurHeight:0}},7237:(e,t,n)=>{n.d(t,{A:()=>i});var l=n(4232);function o(){let{innerWidth:e,innerHeight:t}=window;return{width:e,height:t}}function i(){let[e,t]=(0,l.useState)(o());return(0,l.useEffect)(()=>{function e(){t(o())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},9076:(e,t,n)=>{n.d(t,{A:()=>l});let l={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/yellow_r.35e6e9e0.svg",height:40,width:40,blurWidth:0,blurHeight:0}},9305:(e,t,n)=>{n.d(t,{A:()=>Z});var l=n(7876),o=n(97),i=n(5039),a=n.n(i),r=n(4587),s=n.n(r),d=n(9099),c=n(4232),u=n(8477),x=n(1180),h=n(4965);let p={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/blue_l.40de90e1.svg",height:40,width:40,blurWidth:0,blurHeight:0},m={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/blue_r.5b35c51e.svg",height:40,width:40,blurWidth:0,blurHeight:0},g={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/purple_l.0bceb6f7.svg",height:40,width:40,blurWidth:0,blurHeight:0},v={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/purple_r.d29aaf89.svg",height:40,width:40,blurWidth:0,blurHeight:0},b={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/tnv_violet_left.0bceb6f7.svg",height:40,width:40,blurWidth:0,blurHeight:0},f={src:"https://thi-cdn.trangnguyen.edu.vn/_next/static/media/tnv_violet_right.d29aaf89.svg",height:40,width:40,blurWidth:0,blurHeight:0};var N=n(7222),j=n(9076),_=n(8511),C=n(4695),E=n(1599);function y(){return"undefined"==typeof document?null:document.getElementById("app-portal-root")}var F=n(6853),A=n(6250);let w=e=>{let{closePopup:t,show:n,title:o,content:i,className:r}=e,[s,d]=(0,c.useState)(null);return((0,c.useEffect)(()=>{var e;d(null!=(e=y())?e:document.body)},[]),n&&s)?(0,u.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 z-[110] flex flex-col items-center justify-center     bg-black/20  outline-none  max-[900px]:top-[-60px] md:inset-0",children:(0,l.jsxs)("div",{className:a()("max-w-[650px] w-[calc(100%-20px)] z-20 relative flex flex-col rounded-[24px] border border-[#E2E2E2] bg-white shadow-[0_4px_16px_0px_rgba(0,0,0,0.16)]",r),children:[(0,l.jsxs)("div",{className:"p-4 pb-0",children:[(0,l.jsxs)("h2",{className:"w-full font-PaytoneOne text-[20px] leading-[28px] text-[#111] max-[480px]:w-[238px]",children:[o,(0,l.jsx)("button",{type:"button",className:"absolute right-[15px] top-[16px] flex size-8 items-center justify-center rounded-full hover:bg-[#EEEDED]",onClick:()=>t(!1),children:(0,l.jsx)(A.lr4,{className:"text-[26px]"})})]}),(0,l.jsx)("div",{className:"mb-4 text-[16px] h-1"}),(0,l.jsx)("div",{className:"h-px w-full border border-[#f1f1f1]"})]}),i]})}),s):null};var I=n(1090),S=n(7914),P=n(892),B=n(6557),T=n.n(B),D=n(4301),G=n.n(D),k=n(1576),V=n.n(k),z=n(8230),R=n.n(z),H=n(8992),M=n(1408),K=n(7378),L=n(5106);let Y=c.forwardRef(function(e,t){let{className:n,name:o,isGroup:i,onChange:a,value:r,label:s,...d}=e;return i?(0,l.jsxs)("div",{className:"form__input__group",children:[s&&(0,l.jsx)("span",{className:"mb-2 block text-left text-[14px] font-medium",children:s}),(0,l.jsx)(K.A,{className:n,name:"from",format:"d/MM/y",clearIcon:(0,l.jsx)(L.QCr,{}),calendarIcon:(0,l.jsx)(L.Ql,{}),onChange:a,value:r,onKeyDown:e=>e.preventDefault(),minDate:new Date("02-01-1900"),locale:"vi",...d,...t})]}):(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)("span",{className:"mb-2 block text-left text-[14px] font-medium",children:s}),(0,l.jsx)(K.A,{className:n,name:"from",format:"d/MM/y",clearIcon:(0,l.jsx)(L.QCr,{}),calendarIcon:(0,l.jsx)(L.Ql,{}),onChange:a,value:r,onKeyDown:e=>e.preventDefault(),minDate:new Date("02-01-1900"),locale:"vi",...d,...t})]})});var q=n(8535),U=n(346),W=n(6563);T().extend(V()),T().extend(G());let O=e=>(null==e?void 0:e.trim().toLowerCase())==="kh\xe1c",X=e=>{var t,n,i,r,s,d,x,p,m,g,v;let{closePopup:b,setShowLogoutModal:f}=e;(0,U.A)();let{userV5:N,getProfileV5:j}=(0,h.As)(),[C,y]=c.useState(),[A,w]=(0,c.useState)([]),[B,D]=(0,c.useState)([]),[G,k]=(0,c.useState)([]),[V]=(0,c.useState)(Array.from({length:12},(e,t)=>({label:"Khối ".concat(t+1),value:(t+1).toString()}))),[z,K]=(0,c.useState)([]),[L,X]=(0,c.useState)(!1),[Z,Q]=(0,c.useState)(!1),J=(0,c.useRef)(null),[$]=(0,c.useState)([{label:"Nam",value:"MALE"},{label:"Nữ",value:"FEMALE"},{label:"Kh\xf4ng tiết lộ",value:"UNSPECIFIED"}]),ee=M.Ik().shape({ethnicGroup:M.Yj().required("Vui l\xf2ng chọn d\xe2n tộc"),lastName:M.Yj().required("Vui l\xf2ng nhập họ"),firstName:M.Yj().required("Vui l\xf2ng nhập t\xean"),residentialProvinceId:M.Yj().required("Vui l\xf2ng chọn tỉnh/th\xe0nh phố nơi ở hiện tại"),provinceId:M.Yj().required("Vui l\xf2ng chọn tỉnh/th\xe0nh phố (trường)"),districtId:M.Yj().required("Vui l\xf2ng chọn phường/x\xe3 (trường)"),districtName:M.Yj().required("Vui l\xf2ng chọn phường/x\xe3").test("not-khac","Vui l\xf2ng chọn phường/x\xe3 cụ thể",e=>!O(e)),schoolId:M.Yj().required("Vui l\xf2ng chọn trường"),birthDate:M.Yj().required("Vui l\xf2ng chọn ng\xe0y sinh"),gender:M.Yj().required("Vui l\xf2ng chọn giới t\xednh"),schoolGrade:M.Yj().required("Vui l\xf2ng chọn khối")}),et=(0,H.mN)({resolver:(0,I.t)(ee),mode:"onSubmit",reValidateMode:"onSubmit"}),{register:en,handleSubmit:el,formState:eo,watch:ei,getValues:ea,setValue:er,clearErrors:es,control:ed}=et,{data:ec,isLoading:eu}=(0,S.I)({queryKey:["ethnic-groups-v5"],queryFn:async()=>{var e,t;let n=await W.t.getEthnicGroupsv5();return null==n||null==(t=n.data)||null==(e=t.ethnicGroups)?void 0:e.map(e=>({label:e.name,value:e.name}))}}),{data:ex,isLoading:eh}=(0,S.I)({queryKey:["provinces-v5"],queryFn:async()=>{var e,t;let n=await W.t.getProvincesv5();return null==n||null==(t=n.data)||null==(e=t.provinces)?void 0:e.map(e=>({label:e.name,value:e.id}))}}),ep=(0,o.n)({mutationFn:e=>W.t.getDistrictsV5(e).then(e=>{var t,n,l;return null==e||null==(l=e.data)||null==(n=l.districts)||null==(t=n.filter(e=>!O(e.name)))?void 0:t.map(e=>({label:e.name,value:e.id}))}),onSuccess:e=>{w([...e,{label:"Cập nhật sau",value:"Cập nhật sau"}])}}),em=(0,o.n)({mutationFn:e=>W.t.getDistrictsV5(e).then(e=>{var t,n,l;return null==e||null==(l=e.data)||null==(n=l.districts)||null==(t=n.filter(e=>!O(e.name)))?void 0:t.map(e=>({label:e.name,value:e.id}))}),onSuccess:e=>{D([...e])}}),eg=(0,o.n)({mutationFn:e=>{let{provinceId:t,districtId:n}=e;return W.t.getSchoolsv5(t,n).then(e=>{var t,n,l;return null==e||null==(l=e.data)||null==(n=l.schools)||null==(t=n.filter(e=>!O(e.name)))?void 0:t.map(e=>{let t="";return"PRIMARY"===e.level?t="1":"SECONDARY"===e.level?t="2":"HIGH"===e.level&&(t="3"),{label:t?"".concat(e.name," (Cấp ").concat(t,")"):e.name,value:e.id}})})},onSuccess:e=>{k(e)}}),ev=(0,o.n)({mutationFn:e=>{let{schoolId:t,schoolGrade:n}=e;return W.t.getClassesV5(t,n).then(e=>{var t,n;return null==e||null==(n=e.data)||null==(t=n.classes)?void 0:t.map(e=>({label:e.name,value:e.id}))})},onSuccess:e=>{K([...e,{label:"Kh\xe1c",value:"other_school_class"}])},onError:()=>{K([])}}),eb=(e,t)=>{e&&t?ev.mutate({schoolId:e,schoolGrade:t}):K([])},ef=e=>({control:e=>({...e,border:"0 !important",borderRadius:"0 !important",backgroundColor:"transparent !important",width:"100% !important",fontSize:"0.875rem",boxShadow:"none",minHeight:"inherit",paddingLeft:"7px"}),singleValue:e=>({...e,fontSize:"0.875rem"}),container:t=>({...t,fontSize:"0.875rem",padding:"0 !important",paddingTop:e?"3px !important":"7px !important"}),placeholder:e=>({...e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),indicatorContainer:e=>({...e,padding:"0 !important"}),indicatorSeparator:e=>({...e,display:"none"}),dropdownIndicator:t=>({...t,padding:"0 !important",paddingRight:"8px !important",marginTop:e?"-3px !important":"-6px !important"})}),{errors:eN}=eo;(0,c.useEffect)(()=>
1{if(N){var e;er("ethnicGroup",N.ethnicGroup||""),er("lastName",(0,E.GP)(N.lastName||"")||""),er("firstName",(0,E.GP)(N.firstName||"")||""),er("residentialProvinceId",N.residentialProvinceId||""),ep.mutate(N.residentialProvinceId||""),er("residentialDistrictId",N.residentialDistrictId||""),er("provinceId",N.provinceId||""),N.provinceId&&em.mutate(N.provinceId),er("districtId",N.districtId||""),er("districtName",N.districtName||""),N.provinceId&&N.districtId&&eg.mutate({provinceId:N.provinceId,districtId:N.districtId}),er("schoolId",N.schoolId||""),er("schoolGrade",(null==(e=N.schoolGrade)?void 0:e.toString())||""),N.schoolId&&N.schoolGrade&&ev.mutate({schoolId:N.schoolId,schoolGrade:N.schoolGrade.toString()}),er("schoolClassId",N.schoolClassId||""),er("schoolClassCustom",N.schoolClassCustom||""),er("phoneNumber",N.phoneNumber||""),er("birthDate",N.birthDate||""),y((0,P.H)(N.birthDate)),er("gender",N.gender||"")}},[N,er]),(0,c.useEffect)(()=>{f||"true"===localStorage.getItem("not_log_out_update_user")&&Q(!0)},[f]);let ej=(0,o.n)({mutationFn:e=>_.f.getClearCacheUser(e)}),e_=(0,o.n)({mutationFn:e=>W.t.updateUserv5(e),onSuccess:()=>{localStorage.setItem("not_log_out_update_user","true"),(0,F.tP)("Bạn đ\xe3 cập nhật th\xf4ng tin t\xe0i khoản th\xe0nh c\xf4ng!"),X(!1),J.current=null,j(),f?(f(!0),b()):f?f(!0):Q(!0)},onError:()=>{(0,F.Kf)("Cập nhật th\xf4ng tin kh\xf4ng th\xe0nh c\xf4ng!")}}),eC=e=>{let t={...e};return t.lastName=(0,E.GP)(t.lastName||""),t.firstName=(0,E.GP)(t.firstName||""),"other_school_class"===t.schoolClassId&&delete t.schoolClassId,t.schoolGrade=parseInt(t.schoolGrade,10),delete t.districtName,{...t,countryCode:"VN",idv0:null==N?void 0:N.idv0,...(null==t?void 0:t.schoolClassCustom)?{other_school_class:t.schoolClassCustom}:{}}};return(0,l.jsxs)("div",{className:"",children:[Z&&(0,l.jsx)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/50",children:(0,l.jsxs)("div",{className:"w-[360px] rounded-lg bg-white p-6 text-center shadow-lg",children:[(0,l.jsx)("p",{className:"mb-4 text-sm font-semibold text-[#303030]",children:"Bạn đ\xe3 cập nhật th\xf4ng tin t\xe0i khoản th\xe0nh c\xf4ng. Vui l\xf2ng đăng nhập lại để tiếp tục."}),(0,l.jsx)("div",{className:"flex justify-center gap-3",children:(0,l.jsx)("button",{type:"button",onClick:()=>{let e=null==N?void 0:N.idv0,t=()=>{Q(!1),null==f||f(!1),localStorage.removeItem("not_log_out_update_user"),b(),setTimeout(()=>{localStorage.clear(),location.replace("".concat("https://trangnguyen.edu.vn","/dang-nhap?redirect=/dang-nhap"))},3e3)};e?ej.mutate(e,{onSuccess:e=>{var n;(0,F.tP)((null==e||null==(n=e.data)?void 0:n.message)||"Đ\xe3 xử l\xfd cache th\xf4ng tin t\xe0i khoản."),t()},onError:t}):(localStorage.clear(),location.replace("".concat("https://trangnguyen.edu.vn","/dang-nhap?redirect=/dang-nhap")))},disabled:ej.isPending,className:"h-10 rounded-full bg-[#B72026] px-5 text-sm font-bold text-white hover:bg-[#9E1C21] disabled:opacity-50",children:ej.isPending?"Đang xử l\xfd...":"Đăng xuất"})})]})}),L&&"undefined"!=typeof document&&(0,u.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/20",children:(0,l.jsxs)("div",{className:"font-SNPro mx-4 w-full max-w-[480px] rounded-[24px] border border-[#E2E2E2] bg-white p-6 shadow-[0_4px_16px_0px_rgba(0,0,0,0.16)]",children:[(0,l.jsx)("p",{className:"text-[16px] leading-[24px] text-[#303030]",children:"T\xf4i x\xe1c nhận c\xe1c th\xf4ng tin đ\xe3 khai b\xe1o l\xe0 ch\xednh x\xe1c v\xe0 đồng \xfd sử dụng để x\xe9t kết quả, xếp hạng."}),(0,l.jsxs)("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[(0,l.jsx)("button",{type:"button",className:"inline-flex h-10 w-full items-center justify-center rounded-full border-2 border-[#655C5B] px-5 text-[16px] font-bold text-[#655C5B] transition-all hover:bg-[#EEEDED] disabled:cursor-not-allowed disabled:opacity-50",onClick:()=>X(!1),disabled:e_.isPending,children:"Kiểm tra lại"}),(0,l.jsx)("button",{type:"button",className:"inline-flex h-10 w-full items-center justify-center rounded-full bg-[#B72026] px-5 text-[16px] font-bold text-white transition-all hover:bg-[#891C1E] disabled:cursor-not-allowed disabled:opacity-50",onClick:e=>{e.preventDefault(),e.stopPropagation(),(()=>{var e;let t=null!=(e=J.current)?e:eC(ea());if(!t)return(0,F.Kf)("Kh\xf4ng c\xf3 dữ liệu để cập nhật");e_.mutate(t)})()},disabled:e_.isPending,children:e_.isPending?"Đang lưu...":"X\xe1c nhận"})]})]})}),document.body),(0,l.jsx)(H.Op,{...et,children:(0,l.jsxs)("form",{onSubmit:el(e=>{J.current=eC(e),X(!0)}),className:"grid max-h-[calc(100vh-160px)] grid-cols-1 gap-y-4 min-[481px]:grid-cols-2 min-[481px]:gap-4 overflow-y-scroll p-4 max-[900px]:max-h-[calc(100vh-170px)] max-[767px]:max-h-[calc(100vh-200px)]",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(H.xI,{name:"lastName",control:ed,render:e=>{let{field:t}=e;return(0,l.jsx)("input",{type:"text",id:"lastName",placeholder:"Họ",autoComplete:"false",className:a()("h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] outline-none transition-all placeholder-[#5E5E5E] text-[#303030] focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.lastName,"p-[16px_16px_4px]":!(null==eN?void 0:eN.lastName)}),value:t.value||"",onChange:e=>t.onChange(e.target.value),onBlur:e=>
1{t.onChange((0,E.GP)(e.target.value)),t.onBlur()},ref:t.ref})}}),(null==eN?void 0:eN.lastName)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(t=eN.lastName)?void 0:t.message}),(0,l.jsx)("p",{className:"ml-1 mt-1 text-xs leading-4 text-[#919191]",children:"Theo đ\xfang giấy khai sinh, viết hoa chữ c\xe1i đầu."}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.lastName}),children:"Họ"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(H.xI,{name:"firstName",control:ed,render:e=>{let{field:t}=e;return(0,l.jsx)("input",{type:"text",id:"firstName",placeholder:"T\xean",autoComplete:"false",className:a()("h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] outline-none transition-all placeholder-[#5E5E5E] text-[#303030] focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.firstName,"p-[16px_16px_4px]":!(null==eN?void 0:eN.firstName)}),value:t.value||"",onChange:e=>t.onChange(e.target.value),onBlur:e=>{t.onChange((0,E.GP)(e.target.value)),t.onBlur()},ref:t.ref})}}),(null==eN?void 0:eN.firstName)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(n=eN.firstName)?void 0:n.message}),(0,l.jsx)("p",{className:"ml-1 mt-1 text-xs leading-4 text-[#919191]",children:"Gồm cả t\xean đệm (v\xed dụ: Văn An) theo đ\xfang giấy khai sinh, viết hoa chữ c\xe1i đầu."}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.firstName}),children:"T\xean"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isLoading:eh,isClearable:!1,value:null==ex?void 0:ex.find(e=>e.value===ei("residentialProvinceId")),name:"residentialProvinceId",options:ex||[],placeholder:"Tỉnh/Th\xe0nh phố (cho nơi ở hiện tại)",styles:ef(!!(null==eN?void 0:eN.residentialProvinceId)),className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.residentialProvinceId,"border-[#ABABAB]":!(null==eN?void 0:eN.residentialProvinceId)}),onChange:e=>{er("residentialProvinceId",null==e?void 0:e.value),(null==e?void 0:e.value)?ep.mutate(e.value):w([])}}),(null==eN?void 0:eN.residentialProvinceId)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(i=eN.residentialProvinceId)?void 0:i.message}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.residentialProvinceId}),children:"Tỉnh/Th\xe0nh phố (cho nơi ở hiện tại)"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isClearable:!1,name:"residentialDistrictId",value:null==A?void 0:A.find(e=>e.value===ei("residentialDistrictId")),options:A,placeholder:"Phường/x\xe3 (cho nơi ở hiện tại)",styles:ef(!!(null==eN?void 0:eN.residentialDistrictId)),className:"h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",onChange:e=>{er("residentialDistrictId",null==e?void 0:e.value)}},"district-select-".concat(null==A?void 0:A.length,"-").concat(ei("residentialProvinceId"))),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.residentialDistrictId}),children:"Phường/x\xe3 (cho nơi ở hiện tại)"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isLoading:eh,isClearable:!1,name:"provinceId",value:null==ex?void 0:ex.find(e=>e.value===ei("provinceId")),options:ex,placeholder:"Tỉnh/Th\xe0nh phố (trường)",styles:ef(!!(null==eN?void 0:eN.provinceId)),className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.provinceId,"border-[#ABABAB]":!(null==eN?void 0:eN.provinceId)}),onChange:e=>{er("provinceId",null==e?void 0:e.value),er("districtId",""),er("schoolId",""),(null==e?void 0:e.value)&&em.mutate(e.value),D([]),k([])}}),(null==eN?void 0:eN.provinceId)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(r=eN.provinceId)?void 0:r.message}),(0,l.jsxs)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.provinceId}),children:[" ","Tỉnh/Th\xe0nh phố (trường)"]})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:"hidden",...en("districtName")}
1),(0,l.jsx)(q.A,{value:null==B?void 0:B.find(e=>String(e.value)===String(ei("districtId"))),isClearable:!1,name:"districtId",options:B,placeholder:"Phường/x\xe3 (trường)",styles:ef(!!((null==eN?void 0:eN.districtId)||(null==eN?void 0:eN.districtName))),className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":(null==eN?void 0:eN.districtId)||(null==eN?void 0:eN.districtName),"border-[#ABABAB]":!(null==eN?void 0:eN.districtId)&&!(null==eN?void 0:eN.districtName)}),onChange:e=>{er("districtId",null==e?void 0:e.value),er("districtName",null==e?void 0:e.label),es("districtId"),es("districtName");let t=ea("provinceId");er("schoolId",""),t&&(null==e?void 0:e.value)&&eg.mutate({provinceId:t,districtId:e.value}),k([])}},"district-select-".concat(null==B?void 0:B.length,"-").concat(ei("provinceId"))),((null==eN?void 0:eN.districtId)||(null==eN?void 0:eN.districtName))&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:(null==eN||null==(s=eN.districtName)?void 0:s.message)||(null==eN||null==(d=eN.districtId)?void 0:d.message)}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":(null==eN?void 0:eN.districtId)||(null==eN?void 0:eN.districtName)}),children:"Phường/x\xe3 (trường)"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isClearable:!1,value:null==G?void 0:G.find(e=>e.value===ei("schoolId")),name:"schoolId",options:G,placeholder:"Trường",styles:ef(!!(null==eN?void 0:eN.schoolId)),className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.schoolId,"border-[#ABABAB]":!(null==eN?void 0:eN.schoolId)}),onChange:e=>{er("schoolId",null==e?void 0:e.value),eb(null==e?void 0:e.value,ei("schoolGrade"))}},"school-select-".concat(null==G?void 0:G.length,"-").concat(ei("districtId"))),(null==eN?void 0:eN.schoolId)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(x=eN.schoolId)?void 0:x.message}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.schoolId}),children:"Trường"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isClearable:!1,value:null==V?void 0:V.find(e=>e.value===ei("schoolGrade")),name:"schoolGrade",options:V,placeholder:"Khối",styles:ef(!!(null==eN?void 0:eN.schoolGrade)),onChange:e=>{er("schoolGrade",null==e?void 0:e.value),er("schoolClassCustom",""),eb(ei("schoolId"),null==e?void 0:e.value)},className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.schoolGrade,"border-[#ABABAB]":!(null==eN?void 0:eN.schoolGrade)})}),(null==eN?void 0:eN.schoolGrade)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(p=eN.schoolGrade)?void 0:p.message}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.schoolGrade}),children:"Khối"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isClearable:!1,value:null==z?void 0:z.find(e=>e.value===ei("schoolClassId")),name:"schoolClassId",options:z,placeholder:"Lớp",styles:ef(!!(null==eN?void 0:eN.schoolClassId)),onChange:e=>{er("schoolClassId",null==e?void 0:e.value),er("schoolClassCustom","")},className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]")}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300"),children:"Lớp (kh\xf4ng bá
1º¯t buộc)"})]}),"other_school_class"===ei("schoolClassId")&&(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:"text",name:"schoolClassCustom",placeholder:"Nhập t\xean lớp (kh\xf4ng bắt buộc)",className:a()("p-[16px_16px_4px] h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] outline-none transition-all placeholder-[#5E5E5E] text-[#303030] focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]"),...en("schoolClassCustom")}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300"),children:"Nhập t\xean lớp (kh\xf4ng bắt buộc)"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:"text",name:"email",disabled:!0,value:(null==N?void 0:N.email)||"",placeholder:"[email protected]",className:a()("p-[16px_16px_4px] h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] outline-none transition-all placeholder-[#5E5E5E] text-[#303030] focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"opacity-50 cursor-not-allowed":!0})}),(0,l.jsx)("label",{className:"absolute left-4 top-1 text-xs font-bold text-[#5e5e5e]",children:"Email"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{type:"text",name:"phoneNumber",placeholder:"Số điện thoại (kh\xf4ng bắt buộc)",className:a()("p-[16px_16px_4px] h-10 w-full rounded-full border border-[#ABABAB] bg-[#F1F1F1] px-4 text-[14px] outline-none transition-all placeholder-[#5E5E5E] text-[#303030] focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]"),...en("phoneNumber")}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300"),children:"Số điện thoại (kh\xf4ng bắt buộc)"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isLoading:eu,isClearable:!1,value:null==ec?void 0:ec.find(e=>e.value===ei("ethnicGroup")),name:"ethnicGroup",options:ec,placeholder:"D\xe2n tộc",styles:ef(!!(null==eN?void 0:eN.ethnicGroup)),onChange:e=>{er("ethnicGroup",null==e?void 0:e.value)},className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.ethnicGroup,"border-[#ABABAB]":!(null==eN?void 0:eN.ethnicGroup)})}),(null==eN?void 0:eN.ethnicGroup)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(m
1=eN.ethnicGroup)?void 0:m.message}),(0,l.jsxs)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.ethnicGroup}),children:[" ","D\xe2n tộc"]})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(Y,{name:"birthDate",isGroup:!1,className:"custom-datepicker mr-2",value:C,onChange:e=>{y(e),er("birthDate",e&&T()(e).format("YYYY-MM-DD"))}}),(null==eN?void 0:eN.birthDate)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(g=eN.birthDate)?void 0:g.message}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.birthDate}),children:"Ng\xe0y sinh"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(q.A,{isClearable:!1,value:null==$?void 0:$.find(e=>e.value===ei("gender")),name:"gender",options:$,placeholder:"Giới t\xednh",styles:ef(!!(null==eN?void 0:eN.gender)),menuPlacement:"top",className:a()("h-10 w-full rounded-full border bg-[#F1F1F1] px-4 text-[14px] text-[#303030] placeholder-[#5E5E5E] outline-none transition-all focus-within:border-[#891C1E] focus:border-[#891C1E] focus:bg-transparent focus:outline-none focus-visible:border-[#891C1E]",{"border-[#F75F31]":null==eN?void 0:eN.gender,"border-[#ABABAB]":!(null==eN?void 0:eN.gender)}),onChange:e=>{e&&(er("gender",null==e?void 0:e.value),es("gender"))}}),(null==eN?void 0:eN.gender)&&(0,l.jsx)("p",{className:"ml-1 mt-1 text-sm text-[#F75F31]",children:null==eN||null==(v=eN.gender)?void 0:v.message}),(0,l.jsx)("label",{className:a()("z-1 absolute left-[16px] top-[3px] origin-top-left font-SNPro text-[10px] font-bold text-[#5e5e5e] transition-transform duration-300",{"opacity-0 ":null==eN?void 0:eN.gender}),children:"Giới t\xednh"})]}),(0,l.jsxs)("div",{className:"mx-auto min-[481px]:w-[calc(100%-330px)] grid grid-cols-2 gap-2 min-[481px]:grid-cols-2 min-[481px]:col-span-2",children:[(0,l.jsx)(R(),{href:"",className:"",children:(0,l.jsx)("button",{className:"w-full inline-flex h-10 items-center justify-center gap-[6px] rounded-full border-2  border-[#655C5B] px-[20px] text-[16px] font-bold leading-normal text-[#655C5B] transition-all hover:bg-[#EEEDED]",onClick:()=>b(),children:"Hủy bỏ"})}),(0,l.jsx)("button",{className:"w-full inline-flex h-10 items-center justify-center gap-[6px] rounded-full bg-[#B72026] px-[20px] text-[16px] font-bold leading-normal text-white transition-all hover:bg-[#B72026] disabled:cursor-not-allowed disabled:opacity-50",type:"submit",children:"X\xe1c nhận"})]})]})})]})};function Z(e){var t;let{user:n,userV5:i}=(0,h.As)(),[r,A]=(0,c.useState)(!1),[I,S]=(0,c.useState)(!1),[P,B]=(0,c.useState)(null),{category:T,exam:D,to:G="vao-thi"}=e,k=(0,d.useRouter)();function V(e){return"TNTV"===e?N.A:"TNTT"===e?p:"TNLS"===e?g:"TNMG"===e?b:null}function z(e){return"TNTV"===e?j.A:"TNTT"===e?m:"TNLS"===e?v:"TNMG"===e?f:null}let R=(e,t)=>0===t?0:1===t&&0===e?1:1===t&&1===e?2:3*(2===t),H=e=>[0,3].includes(e)?"text-[#C2C2C2]":"cursor-pointer",M=async t=>{if(k.asPath.includes("vao-thi-trang-nguyen-2023")){localStorage.setItem("category",T||""),"TNTT"===T&&localStorage.setItem("isShowTT",(null==e?void 0:e.isShowTT)?"false":"true");try{var n,l;let e=await C.v.saveRound({examination_round_id:t.examination_round_id});if((null==e?void 0:e.data.status)===9696){localStorage.clear(),setTimeout(()=>{k.replace("".concat("https://trangnguyen.edu.vn","/dang-xuat?redirect=/dang-nhap"))},3e3),(0,F.Kf)("Bạn đ\xe3 bị đăng xuất do t\xe0i khoản của bạn đ\xe3 được đăng nhập ở một nơi kh\xe1c.",{},5e3);return}(null==e||null==(n=e.data)?void 0:n.status)===1?(localStorage.setItem("ASPATH",k.asPath||""),k.push("/".concat(G,"/bai-thi/").concat(t.examination_round_id,"?examination_round_type=").concat(t.examination_round_type))):(0,F.Kf)(null==e||null==(l=e.data)?void 0:l.message)}catch(e){}return}localStorage.setItem("ASPATH",k.asPath||""),k.push("/".concat(G,"/bai-thi/").concat(t.examination_round_id,"?examination_round_type=").concat(t.examination_round_type))},K=async e=>!i||["provinceId","provinceName","districtId","districtName","schoolId","schoolName"].some(e=>(function(e){if(null==e)return!0;
1if("string"==typeof e){let t=e.trim();return""===t||"Kh\xe1c"===t}return!0})(i[e]))||"null_school_id"===i.schoolId?void S(!0):1===e.user_examination_round_state&&2===e.examination_round_type&&(null==n?void 0:n.is_admin_exam_learn)===!1?void(0,F.Il)("Bạn đ\xe3 ho\xe0n th\xe0nh v\xf2ng thi điều kiện"):void(![0,3].includes(R(null==e?void 0:e.user_examination_round_state,null==e?void 0:e.examination_round_state))&&M(e)),L=D.sub_rounds?D.sub_rounds.reduce((e,t)=>{var n;return e+((null==(n=t.listRound)?void 0:n.length)||0)},0):0,Y=(0,o.n)({mutationFn:e=>_.f.getClearCacheUser(e)});return(0,c.useEffect)(()=>{var e;B(null!=(e=y())?e:document.body)},[]),(0,c.useEffect)(()=>{"true"===localStorage.getItem("not_log_out_update_user")&&A(!0)},[]),(0,l.jsxs)(l.Fragment,{children:[r&&P&&(0,u.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 z-[110] flex items-center justify-center bg-black/50",children:(0,l.jsxs)("div",{className:"w-[360px] rounded-lg bg-white p-6 text-center shadow-lg",children:[(0,l.jsx)("p",{className:"mb-4 text-sm font-semibold text-[#303030]",children:"Bạn đ\xe3 cập nhật th\xf4ng tin t\xe0i khoản th\xe0nh c\xf4ng. Vui l\xf2ng đăng nhập lại để tiếp tục."}),(0,l.jsx)("div",{className:"flex justify-center gap-3",children:(0,l.jsx)("button",{type:"button",onClick:()=>{let e=null==i?void 0:i.idv0,t=()=>{A(!1),localStorage.removeItem("not_log_out_update_user"),setTimeout(()=>{localStorage.clear(),location.replace("".concat("https://trangnguyen.edu.vn","/dang-nhap?redirect=/dang-nhap"))},3e3)};e?Y.mutate(e,{onSuccess:e=>{var n;(0,F.tP)((null==e||null==(n=e.data)?void 0:n.message)||"Đ\xe3 xử l\xfd cache th\xf4ng tin t\xe0i khoản."),t()},onError:t}):(localStorage.clear(),location.replace("".concat("https://trangnguyen.edu.vn","/dang-nhap?redirect=/dang-nhap")))},disabled:Y.isPending,className:"h-10 rounded-full bg-[#B72026] px-5 text-sm font-bold text-white hover:bg-[#9E1C21] disabled:opacity-50",children:Y.isPending?"Đang xử l\xfd...":"Đăng xuất"})})]})}),P),(0,l.jsx)(w,{show:I,closePopup:()=>S(!1),className:"min-[768px]:w-[760px]",title:"Cập nhật th\xf4ng tin c\xe1 nh\xe2n",content:(0,l.jsx)(X,{closePopup:()=>S(!1),setShowLogoutModal:A})}),(0,l.jsxs)("div",{className:"",children:[(0,l.jsxs)("div",{className:a()("relative z-20 mb-6 min-h-[96px] w-full items-center rounded-[40px_40px_24px_24px] border-2 p-[16px_16px_8px_16px] min-[768px]:flex min-[768px]:min-h-[120px] min-[768px]:p-[18px_40px_18px_40px]","TNTV"===T?" !text-[#735405] bg-[#FFEED8] border-[#FFDEA8]":"TNTT"===T?" !text-[#15345D] bg-[#CDDDF3] border-[#A5C3EA]":"TNT"===T?" !text-[#333] bg-[#C6E9FA] border-[#0688CA]":"TNLS"===T?" !text-[#663499] bg-[#F8EDFF] border-[#BDA8D3]":"TNMG"===T?" !text-[#620041] bg-[#FFECF2] border-[#BDA8D3]":void 0),children:[V(T)&&(0,l.jsx)(s(),{src:V(T),className:"absolute left-0 top-0",alt:"tntv_br_left"}),z(T)&&(0,l.jsx)(s(),{src:z(T),className:"absolute right-0 top-0",alt:"tntv_br_left"}),(0,l.jsx)("div",{className:"overflow-hidden min-[768px]:mr-4 min-[768px]:w-[calc(100%-90px-1rem)]",children:(0,l.jsx)("div",{title:D.title||D.examination_name,className:"custom_trunc max-h-[44px] font-PaytoneOne text-[16px] leading-normal  max-[767px]:mb-2 min-[768px]:max-h-[80px] min-[768px]:text-[32px] min-[768px]:leading-[44px]",children:D.title||D.examination_name})}),(0,l.jsx)("div",{className:"w-[90px] font-SNPro text-[10px] font-bold uppercase text-[#5E5E5E] min-[768px]:ml-auto min-[768px]:text-[14px]",children:D.sub_rounds?(0,l.jsxs)(l.Fragment,{children:[L," b\xe0i thi"]}):(0,l.jsxs)(l.Fragment,{children:[(null==D||null==(t=D.listRound)?void 0:t.length)||0," v\xf2ng thi"]})})]}),(0,l.jsx)("div",{className:"",children:D.listRound.length<=0?(0,l.jsx)("div",{className:"flex min-h-[200px] w-full items-center justify-center text-sm md:text-xl",children:"Kh\xf4ng c\xf3 v\xf2ng thi n\xe0o"}):(0,l.jsx)("div",{className:"mb-6 bg-white min-[768px]:rounded-[16px] min-[768px]:border-2 min-[768px]:p-4 ".concat("TNTV"===T?"border-[#ffba0a]":"TNT"===T?"border-[#0688CA]":"TNTT"===T?"  border-[#2E73CE]":"TNLS"===T||"TNMG"===T?" border-[#663499]":void 0),children:(0,l.jsx)("div",{className:"table-wrapper",children:(0,l.jsxs)("table",{className:"w-full table-auto text-[16px]",children:[(0,l.jsx)("thead",{className:" bg-white font-PaytoneOne text-[12px] text-[#0B0B0B] min-[768px]:text-[24px]",children:D.sub_rounds?(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"w-[8%] p-1 text-center md:p-2",children:"STT"}),(0,l.jsx)("th",{className:"w-1/5 p-1 text-left md:p-2",children:"Chặng thi"}),(0,l.jsx)("th",{className:"w-1/5 p-1 text-left md:p-2",children:"B\xe0i thi"}),(0,l.jsx)("th",{className:"w-1/5 p-1 text-center md:p-2",children:"Ng\xe0y mở"}),(0,l.jsx)("th",{className:"w-1/5 p-1 text-center md:p-2",children:"Ng\xe0y đ\xf3ng"}),(0,l.jsx)("th",{className:"w-1/5 p-1  text-center md:p-2",children:"Ho\xe0n th\xe0nh"})]}):(0,l.jsxs)("tr",{className:"",children:[(0,l.jsx)("th",{className:"w-[10%] p-1 text-left md:p-2",children:"STT"}),(0,l.jsx)("th",{className:"w-[30%] p-1 text-left md:p-2",children:"V\xf2ng thi"}),(0,l.jsx)("th",{className:"w-1/5 p-1  text-center md:p-2",children:"Ng\xe0y mở"}),"thu-tai"!==G&&(0,l.jsx)("th",{className:"w-1/5 p-1 text-center md:p-2",children:"Ng\xe0y đ\xf3ng"}),(0,l.jsx)("th",{className:"w-1/5 p-1  text-center md:p-2",children:"Ho\xe0n th\xe0nh"})]})}),(0,l.jsx)("tbody",{children:D.sub_rounds?D.sub_rounds.map((e,t)=>e.listRound.map((n,o)=>(0,l.jsxs)("tr",{className:a()("group border-b border-[#e5e5e5] p-3 text-center  font-SNPro text-[12px] font-bold min-[768px]:text-[16
1px] [&>*:first-child]:rounded-[8px_0_0_8px] [&>*:last-child]:rounded-[0_8px_8px_0]\n                          ".concat(H(R(null==n?void 0:n.user_examination_round_state,null==n?void 0:n.examination_round_state)))),children:[0===o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("td",{rowSpan:e.listRound.length,className:"px-2 py-[14px] font-bold",children:t+1}),(0,l.jsx)("td",{rowSpan:e.listRound.length,className:"px-2 py-[14px] text-left font-bold",children:(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:e.sub_round_name}})})]}),(0,l.jsx)("td",{className:"px-2 py-[14px] text-left transition-colors group-hover:bg-[#F5F5F5]",onClick:()=>K(n),children:n.examination_round_name||"Kh\xf4ng giới hạn"}),(0,l.jsx)("td",{onClick:()=>K(n),className:"px-2 py-[14px] text-center transition-colors group-hover:bg-[#F5F5F5]",children:n.start_time?(0,E.ZZ)(n.start_time):"-"}),(0,l.jsx)("td",{onClick:()=>K(n),className:"px-2 py-[14px] text-center transition-colors group-hover:bg-[#F5F5F5]",children:n.finish_time?(0,E.ZZ)(n.finish_time):"-"}),(0,l.jsx)("td",{onClick:()=>K(n),className:"px-2 py-[14px] text-center transition-colors group-hover:bg-[#F5F5F5]",children:(0,l.jsx)("div",{className:" ".concat(1===n.user_examination_round_state?"text-[#47B549]":"text-[#C2C2C2]"),children:(0,l.jsx)(x.cxC,{className:"mx-auto size-[24px]"})})})]},n.examination_round_id))):D.listRound.map((e,t)=>(0,l.jsxs)("tr",{className:a()("p-3 text-center  font-SNPro text-[12px] font-bold hover:bg-[#F5F5F5] focus:bg-[#F5F5F5] min-[768px]:text-[16
1px] [&>*:first-child]:rounded-[8px_0_0_8px] [&>*:last-child]:rounded-[0_8px_8px_0]\n                          ".concat(H(R(null==e?void 0:e.user_examination_round_state,null==e?void 0:e.examination_round_state)))),onClick:()=>K(e),children:[(0,l.jsx)("td",{className:"px-2 py-[14px] text-center",children:t+1}),(0,l.jsx)("td",{className:"px-2 py-[14px] text-left",children:e.examination_round_name||"-"}),(0,l.jsx)("td",{className:"px-2 py-[14px] text-center",children:e.start_time?(0,E.ZZ)(e.start_time):"-"}),"thu-tai"!==G&&(0,l.jsx)("td",{className:"px-2 py-[14px] text-center",children:e.finish_time?(0,E.ZZ)(e.finish_time):"-"}),(0,l.jsx)("td",{className:"px-2 py-[14px] text-center",children:(0,l.jsx)("div",{className:" ".concat(1===e.user_examination_round_state?"text-[#47B549]":"text-[#C2C2C2]"),children:(0,l.jsx)(x.cxC,{className:"mx-auto size-[24px]"})})})]},e.examination_round_id))})]})})})})]})]})}}}]);

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.