????

Your IP : 3.15.34.191


Current Path : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/quypctt.nextform.vn/www/assets/index-23abadd9.js

var K=Object.defineProperty;var w=(a,e,t)=>e in a?K(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var l=(a,e,t)=>(w(a,typeof e!="symbol"?e+"":e,t),t);import{h as c,o as f,R as P,r,u as $,C as v,q as _,j as n,s as b,I as R}from"./index-3ac6b886.js";import{A as N}from"./Alert-8adf8c12.js";import{R as j}from"./Row-ef702d16.js";import{C as V}from"./TextArea-5c5d2643.js";import{C as M}from"./Card-4b46d8e1.js";import{C as k}from"./CardBody-09907775.js";import{C as G}from"./CardHeader-f1e86ecf.js";import{F as H}from"./DropdownList-92e339e1.js";import"./Button-9ef33eb6.js";import{B}from"./DataSelect-21292454.js";import"./utils-1da25c48.js";import"./Fade-c1d8e31e.js";import"./Transition-41b94a89.js";import"./InputNumber-e0e8281b.js";import"./FontAwesome4-4d1c8e97.js";import"./Button-d32d698a.js";import"./Input-a404c875.js";import"./Modal-834c96f4.js";import"./function-c7c2f09a.js";import"./Required-a585e744.js";import"./InputTime-6c25e67a.js";import"./useTheme-cc71593c.js";import"./withStyles-be05542d.js";import"./possibleConstructorReturn-b2959138.js";import"./classCallCheck-22a738c0.js";import"./SelectCustom-a3812854.js";import"./Dropdown-fd6014de.js";import"./SelectPanelMulti-30b66e05.js";import"./TransitionGroup-a6d13137.js";import"./Collapse-9244e6b2.js";import"./capitalize-2c2e3657.js";import"./DataTable-4f7de56a.js";import"./OdataUtils-69f581ff.js";import"./DialogCustomize-f58e33cd.js";const E={MaDonVi:{field_name:"MaDonVi",title:"Đơn vị",type:"data-select",required:!0,hidden_label:!0,dataSelect:{url:"DonVis",value_field:"ID",text_field:"TenDonVi",placeholder:"Chọn đơn vị"}}};class o{constructor(e){l(this,"GetAuthen",(e,t)=>this.GetAuthenIni(f,`${e}`,t));l(this,"PostAuthen",(e,t,s)=>this.PostAuthenIni(f,`${e}`,t,s));l(this,"PutAuthen",(e,t,s)=>this.PutAuthenIni(`${f}${e}`,t));l(this,"PatchAuthen",(e,t,s)=>this.PatchAuthenIni(f,`${e}`,t));l(this,"DeleteAuthen",(e,t)=>this.DeleteAuthenIni(`${e}`));l(this,"DeleteAuthen2",(e,t,s)=>this.DeleteAuthenIni2(f,`${e}`,t,s));l(this,"UpdateAuthen",(e,t,s)=>this.Update(`${f}`,t,e));this.prefix=e}GetAuthenIni(e,t,s){return c(`${this.prefix}${e}${t}`,"GET",null,s)}PostAuthenIni(e,t,s,i){return c(`${this.prefix}${e}${t}`,"POST",JSON.stringify(s),i)}static PatchAuthenIni(e,t,s,i){return c(`${this.prefix}${e}${t}`,"POST",JSON.stringify(s),i)}static PutAuthenIni(e,t,s){return c(`${this.prefix}${e}`,"PUT",JSON.stringify(t),s)}static DeleteAuthenIni(e,t,s){return c(`${this.prefix}${e}${t}`,s)}DeleteAuthenIni2(e,t,s,i){return c(`${this.prefix}${e}${t}`,"DELETE",JSON.stringify(s),i)}}class Q extends o{constructor(){super("Login")}getInfoUser(){return this.GetAuthen("/InfoUserLGSP",{odata:!1})}}const U=new Q;class O extends o{constructor(){super("QuanLyTaiKhoan")}updateUser(e){return this.PostAuthen("/UpdateLGSPUser",e,{odata:!1})}}const X=new O;class q extends o{constructor(){super("NhuCauHocNghes")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}getDataTheoKV(e,t){return this.PostAuthen("/NhuCauHocNgheTheoKhuVucs/KetXuatBaoCao",e,{...t,odata:!1})}}new q;class F extends o{constructor(){super("NhuCauChuyenDoiNghes")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new F;class J extends o{constructor(){super("NhaGiaoGDNNs")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new J;let W=class extends o{constructor(){super("CoSoGDNNs")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}};new W;class z extends o{constructor(){super("QuanHuyens")}getData(e){return c(`QuanHuyens?${e}`,"GET",null,{isLoading:!1})}}new z;class Y extends o{constructor(){super("NhuCauHocNgheTheoKhuVucs")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new Y;class Z extends o{constructor(){super("NhuCauTheoKhuVucs")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new Z;class ee extends o{constructor(){super("ThongKeDSTheoTuois")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new ee;class te extends o{constructor(){super("ThongKeDSHocNgheTheoDTUTs")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new te;class ne extends o{constructor(){super("ThongKeLLLDThanhThiNongThons")}getDataReport(e,t){return this.PostAuthen("/KetXuatBaoCao",e,{...t,odata:!1})}}new ne;class se extends o{constructor(){super("")}addNhuCauTuyenSinh(e,t,s){return t?this.PostAuthen(`Add_NhuCauTuyenSinh?${t}`,e,{...s,odata:!1}):this.PostAuthen("Add_NhuCauTuyenSinh",e,{...s,odata:!1})}deleteNhuCauTuyenSinh(e,t,s){return t?this.DeleteAuthen2(`Delete_NhuCauTuyenSinh?${t}`,e,{...s,odata:!1}):this.DeleteAuthen2("Delete_NhuCauTuyenSinh",e,{...s,odata:!1})}}new se;class ae extends o{constructor(){super("QLLD_DM_CapTrinhDoDaoTaoTaiCoSoGDNN")}}new ae;class oe extends o{constructor(){super("QLLD_DM_NganhNgheDaoTao")}getData(e,t){return c(`QLLD_DM_NganhNgheDaoTao?${e}`,"GET",null,{isLoading:!1})}}new oe;class re extends o{constructor(){super("QLLD_DM_TrinhDoCMKTEndpoint")}getData(e,t){return c(`QLLD_DM_TrinhDoCMKT?${e}`,"GET",null,{isLoading:!1})}}new re;class ie extends o{constructor(){super("QLLD_DM_TinhTrangViecLam")}getData(e,t){return c(`QLLD_DM_TinhTrangViecLam?${e}`,"GET",null,{isLoading:!1})}}new ie;const ue=P.forwardRef(({callback:a},e)=>{const[t,s]=r.useState({isThuTruong:!1}),[i,d]=r.useState(!1),x=$(),p=r.useRef(5),g=r.useCallback(async()=>{},[]);r.useEffect(()=>{g()},[g]);const C=r.useCallback(()=>{const u=[{dataNS:t,formDataNS:E}];for(let h=0;h<u.length;h++){const T=Object.keys(u[h])[1],A=Object.keys(u[h])[0],L=Object.values(u[h][T]).filter(m=>m.required);for(let m=0;m<L.length;m++){const S=L[m];let D=u[h][A]&&u[h][A][S.field_name]||null;if(D===null||D===""||D===void 0||D.length===0)return v('Vui lòng nhập "'+S.title+'"'),!1}}return!0},[t]);r.useImperativeHandle(e,()=>({onSave:y,getData:()=>t})),r.useEffect(()=>{i&&setInterval(()=>{document.getElementById("seconds").innerHTML=p.current+"s",p.current=p.current-1,p.current===-1&&_()},1e3)},[x,i]);const y=r.useCallback(async()=>{if(C()){const{MaDonVi:u}=t;await X.updateUser({MaDonVi:u}),d(!0)}},[t,C]),I=r.useCallback((u,h)=>{s(T=>({...T,[u]:h}))},[]);return n.jsxs(M,{style:{width:"40rem"},children:[n.jsx(G,{children:"Cập nhật thông tin tài khoản"}),n.jsxs(k,{children:[n.jsx(j,{children:n.jsxs(V,{style:{flexDirection:"column"},xs:"12 d-flex flex-direction-column align-items-center",children:[n.jsx("div",{children:n.jsx("p",{className:"text-success",children:"Hoàn thành liên kết tài khoản SSO với hệ thống. Vui lòng chọn đơn vị chủ quản !"})}),n.jsx("div",{className:"mt-1",style:{width:"15rem"},children:n.jsx(H,{data:E.MaDonVi,value:t&&t.MaDonVi,onChange:I})})]})}),n.jsx(j,{className:"d-flex justify-content-end mb-0 me-0 ms-0",children:i?n.jsxs("p",{className:"text-center mb-0",style:{color:"blue"},children:["Gửi duyệt thành công! Vui lòng chờ Admin xét duyệt",n.jsx("br",{}),"Sau ",n.jsx("b",{id:"seconds"})," chuyển trang"]}):n.jsx(B,{onClick:y,children:"Gửi duyệt"})})]})]})}),ce=ue;function Xe(){const[a,e]=r.useState(null),{isNewUser:t}=b();let s=$();const i=r.useRef(3),d=r.useCallback(async(p=!0)=>{try{const g=await U.getInfoUser();localStorage.setItem(R,JSON.stringify(g)),e(g),p&&s.push("/gdnn/tong-quan")}catch{}},[s]);r.useEffect(()=>{switch(t){case"1":d();break;case"2":case"3":setInterval(()=>{document.getElementById("seconds").innerHTML=i.current+"s",i.current=i.current-1,i.current||_()},1e3);break}},[d,t]);const x=r.useMemo(()=>{switch(t){case"0":return n.jsx(ce,{user:a,callBack:d});case"1":return n.jsx("div",{className:"waiting-process",children:n.jsxs(N,{color:"info",children:[n.jsx("i",{className:"fa fa-exclamation-triangle me-1","aria-hidden":"true"}),"Lưu ý: Không chuyển trang",n.jsx("br",{}),"Hệ thống đang xử lý, vui lòng đợi !",n.jsx("span",{style:{textAlign:"-webkit-center"},children:n.jsx("div",{className:"dots-9"})})]})});case"2":return n.jsx("div",{className:"waiting-process",children:n.jsxs(N,{color:"info",children:[n.jsx("i",{className:"fa fa-exclamation-triangle me-1","aria-hidden":"true"}),"Lưu ý: Tài khoản chưa được active! Vui lòng chờ duyệt",n.jsx("br",{}),"Hệ thống đang xử lý, vui lòng đợi !",n.jsx("span",{style:{textAlign:"-webkit-center"},children:n.jsx("div",{className:"dots-9"})})]})});case"3":return n.jsx("div",{className:"waiting-process",children:n.jsxs(N,{color:"info",children:[n.jsx("i",{className:"fa fa-exclamation-triangle me-1","aria-hidden":"true"}),"Không thể lấy thông tin từ hệ thống",n.jsx("br",{}),"Sau ",n.jsx("b",{id:"seconds"})," chuyển trang"]})})}},[d,t,a]);return n.jsx("div",{className:"waiting-process",children:x})}export{Xe as default};