????

Your IP : 3.144.17.93


Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/index-411c7db5.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{i as c,p as f,R as P,r,u as $,C as v,q as _,j as n,s as b,I as R}from"./index-727ccf4d.js";import{A as N}from"./Alert-f0fd0c60.js";import{R as j}from"./Row-4ad47f29.js";import{C as V}from"./Col-ed66bf37.js";import{C as M}from"./Card-8b4f40d9.js";import{C as k}from"./CardBody-4a2e5616.js";import{C as G}from"./CardHeader-dcb844ec.js";import{F as H}from"./DropdownList-ca18995c.js";import"./Button-461c8cce.js";import{B}from"./DataSelect-00074039.js";import"./Button-9330b92c.js";import"./Fade-7cf1057f.js";import"./Transition-27f52f03.js";import"./FontAwesome4-32fe4385.js";import"./SelectCustom-701e5fac.js";import"./Input-ae2484bb.js";import"./InputNumber-dceb4c1c.js";import"./Required-e4b19dca.js";import"./InputTime-0a0b65be.js";import"./useTheme-41684c89.js";import"./withStyles-da525f81.js";import"./possibleConstructorReturn-e4ffd6dd.js";import"./classCallCheck-22a738c0.js";import"./TextArea-56268c1b.js";import"./Dropdown-ab2dfbba.js";import"./Manager-0c2f0563.js";import"./SelectPanelMulti-70ffdcea.js";import"./TransitionGroup-273fc20b.js";import"./Collapse-da981db3.js";import"./capitalize-f7a57a5c.js";import"./DataTable-2f4d7f97.js";import"./OdataUtils-2c90172a.js";import"./DialogCustomize-4c6977d9.js";import"./index-0eaf7829.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};