????

Your IP : 216.73.216.64


Current Path : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/
Upload File :
Current File : C:/inetpub/vhost/gdnn.gdtsolutions.vn/build/assets/NguoiLaoDongViewSo-690e82f5.js

import{r as i,j as e,t as S,x as Ie,C as _,m as X,z as me,n as De,s as Ge,E as Xe}from"./index-fa055cb8.js";import{d as Pe,e as ee,k as $e,B as W,l as Ke,R as Ne,C as z,M as Oe,n as qe}from"./reactstrap.modern-274e1102.js";import{D as be}from"./DataTable-fad8b46b.js";import{f as Re,a as Be,c as Fe}from"./FormListControl-ba00e40f.js";import{F as A,u as Ye,D as fe}from"./FormControl-dda7d30a.js";/* empty css            */import{I as ve}from"./InputNumber-092cea71.js";import"./InputTime-cf0160db.js";import{D as ce}from"./DropdownList-1816cc1a.js";import"./TextHuyenPhuongXa-91b9e817.js";import{T as We}from"./TabsBasic-86b6759a.js";import"./Button-b6c26fff.js";import{c as ze}from"./ButtonLoad-5b8d7df7.js";import"./ButtonClose-01990b88.js";import{F as J}from"./FontAwesome4-64371a0f.js";/* empty css            */import{f as O}from"./PhanRow-9a886c05.js";import{s as Z}from"./DataEditTS-c5c4693c.js";const Je=T=>{const{valueDefault:D,setValue:L}=T,[d,v]=i.useState(D||null),[h,o]=i.useState({status:null,text:null});i.useEffect(()=>L(d),[L,d]);const p=N=>{v(N),N&&N.length!==9&&N.length!==12?o({status:"error",text:"Nhập đủ 9 hoặc 12 số"}):N.length>12?o({status:"error",text:"Nhập quá số lượng quy định"}):N?(N.length===9||N.length===12)&&S(`QLLD_NguoiLaoDong?$filter=SoCCCD eq '${N}'`,"GET",null).then(V=>{V.value.length?o({status:"error",text:"Số CMND/CCCD đã tồn tại"}):o({status:"success",text:"Số CMND/CCCD hợp lệ"})}):o({status:null,text:null})};return e.jsxDEV(e.Fragment,{children:[e.jsxDEV("div",{className:"d-flex title-like-formCtrl",children:[e.jsxDEV("h6",{className:"text-blue m-0 fw-bold",children:"Số CMND/CCCD"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:55,columnNumber:9},globalThis),e.jsxDEV("strong",{className:"ms-1 my-0 text-red",children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:56,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:54,columnNumber:7},globalThis),e.jsxDEV("div",{className:"d-flex form-maint-input-cmnd",children:[e.jsxDEV("input",{className:`input-like-formCtrl input-default-formCtrl ${h.status==="error"?"error-input":h.status==="success"&&"success-input"}`,type:"number",onChange:N=>{p(N.target.value)},value:d,placeholder:"Nhập số CMND/CCCD"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:59,columnNumber:9},globalThis),e.jsxDEV("p",{className:`text-confim-input-cmnd ${h.status==="error"?"error-text-confim":h.status==="success"&&"success-text-confim"}`,children:h.text},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:70,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:58,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/InputSoCMND.jsx",lineNumber:53,columnNumber:5},globalThis)};const Ze=T=>{const{isOpen:D,toggle:L}=T;return e.jsxDEV(e.Fragment,{children:e.jsxDEV("div",{onClick:()=>L(),className:`fomr-modal-not-loading ${!D&&"d-none"}`,children:e.jsxDEV("div",{onClick:d=>d.stopPropagation(),className:"child-modal-not-loading",children:T.children},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/ModalNotLoading/modalNotLoading.jsx",lineNumber:8,columnNumber:9},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/ModalNotLoading/modalNotLoading.jsx",lineNumber:7,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/QuanLyLaoDong/Components/ModalNotLoading/modalNotLoading.jsx",lineNumber:6,columnNumber:5},globalThis)},Ue=T=>{const{openPopupAdd:D,reloadTable:L,idEdit:d,setSuccec:v,ID:h,dataFormAdd:o,setDataFormAdd:p,toggleAdd:N,defaultUuTien:V,nguoiLaoDongUuTien:w,getIdContextModalAdd:C}=T,s=V,l=w,[t,f]=i.useState(s),[r,k]=i.useState({quequan:!1,thuongtru:!1,noio:!1}),[b,E]=i.useState(""),[c,q]=i.useState(""),[j,oe]=i.useState(""),[g,Te]=i.useState({}),[R,Le]=i.useState([]),[H,xe]=i.useState([]),[B,F]=i.useState(),[we,ke]=i.useState(),ne=i.useContext(Ie),[ie,Ve]=i.useState([]),[ae,$]=i.useState([]),[Ce,Ee]=i.useState([]),[K,se]=i.useState(),[le,Me]=i.useState("52");i.useEffect(()=>{S("GetTreeGiaoDucQuocDan","GET",null,{odata:!1}).then(n=>{Ve(n)})},[]),i.useEffect(()=>{const n=m=>{const u=[];return m==null||m.forEach(x=>{if(x.children.length===0)u==null||u.push({Id:`${x.key}`,Name:x.title});else{const M=n(x.children);u==null||u.push(...M)}}),u},a=n(ae);Ee(a)},[ae]),i.useEffect(()=>{o!=null&&o.NhomNganhKinhTe&&ke(o.NhomNganhKinhTe)},[o.NhomNganhKinhTe]),i.useEffect(()=>{o!=null&&o.TrinhDoCMKT&&$(ie.filter(n=>n.key==="II"))},[ie,o==null?void 0:o.TrinhDoCMKT]);const Se={TTNLD:"THÔNG TIN NGƯỜI LAO ĐỘNG",TTHGD:"ĐỐI TƯỢNG ƯU TIÊN"},{handleChange:ue,handleValidate:ge}=Ye(o,Re,n=>p(n)),ye=i.useCallback(()=>{const n=t.map(a=>({...a,checked:!1}));f(n)},[t]);let Y=t==null?void 0:t.filter(n=>n.checked===!0);const I=Y;i.useEffect(()=>{let n=t==null?void 0:t.filter(a=>a.checked===!1);d&&l&&(n!=null&&n.length)&&(l==null||l.map(a=>n.map(m=>{if(a.DoiTuongChinhSach_Id===m.Id)return a.xoa=!0}))),Le(l==null?void 0:l.filter(a=>a.xoa===!0)),xe(l==null?void 0:l.filter(a=>!a.xoa))},[d,t,l]),i.useEffect(()=>{H!=null&&H.length&&(I==null||I.map(n=>H==null?void 0:H.map(a=>{if(n.Id===a.DoiTuongChinhSach_Id)return n.trung=!0})))},[I,H]),i.useEffect(()=>{d&&l?(s==null||s.forEach(n=>{const a=l.find(m=>m.DoiTuongChinhSach_Id===n.Id);n.checked=!!a}),f(s)):(s==null||s.forEach(n=>{n.checked=!1}),f(s))},[s,d,l,D]);const te=i.useCallback(n=>{var a;return n.type!=="popup-select"?o[n.field_name]:o[(a=n.popupSelect)==null?void 0:a.selectColumn]},[o]),de=i.useCallback(()=>{h&&S(`QLLD_NguoiLaoDong/(${h})?$expand=ThonXom`,"GET",null).then(n=>{E(n==null?void 0:n.QueQuan),oe(n==null?void 0:n.NoiOHienTai),q(n==null?void 0:n.ThuongTru),se(n==null?void 0:n.ThuongTru_ThonXom_Id)})},[h]),re=i.useCallback(async()=>{let n=[j,b,c];try{const a=await S(`PhuongXas?$filter=MaPhuongXa eq '${j}' or MaPhuongXa eq '${b}' or MaPhuongXa eq '${c}'&$expand=QuanHuyen,QuanHuyen/TinhThanh`),m={};for(const u of a.value){const x=n.find(M=>M===u.MaPhuongXa);x&&(m[x]={tinh:{id:u.QuanHuyen.TinhThanh.MaTinhThanh,name:u.QuanHuyen.TinhThanh.TenTinhThanh},huyen:{id:u.QuanHuyen.MaQuanHuyen,name:u.QuanHuyen.TenQuanHuyen},xa:{id:u.MaPhuongXa,name:u.TenPhuongXa}})}Te(m)}catch(a){throw new Error(a.message)}},[j,b,c]);i.useEffect(()=>{re(),!b&&!c&&!j&&de()},[re,de,j,b,c]);const He=i.useCallback((n,a)=>n.field_name==="SoCCCD"?D&&e.jsxDEV(Je,{setValue:F,valueDefault:o==null?void 0:o.SoCCCD},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:206,columnNumber:32},globalThis):(o.SoDinhDanhHoGD||n.field_name==="QuanHe"&&(n.disabled=!0),(o.ThamGiaBHXH===1||!o.ThamGiaBHXH)&&n.field_name==="MaBHXH"||(!o.TinhTrangThamGiaHDKT||o.TinhTrangThamGiaHDKT===2||o.TinhTrangThamGiaHDKT===3)&&(n.field_name==="NhomNganhKinhTe"||n.field_name==="CongViecCuTheDangLam")||o.TinhTrangThamGiaHDKT!==3&&n.field_name==="LyDoKhongThamGiaHDKT"||!o.NhomNganhKinhTe&&n.field_name==="CongViecCuTheDangLam"||(!o.TrinhDoCMKT||o.TrinhDoCMKT===1)&&n.field_name==="ChuyenNganhDaoTao"?null:n.field_name==="QueQuan"&&!(o!=null&&o.IsNuocNgoai)?e.jsxDEV(e.Fragment,{children:[e.jsxDEV("div",{className:"d-flex title-like-formCtrl",children:[e.jsxDEV("h6",{className:"text-blue m-0 fw-bold",children:"Quê Quán"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:261,columnNumber:15},globalThis),e.jsxDEV("strong",{className:"ms-1 my-0 text-red",children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:262,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:260,columnNumber:13},globalThis),e.jsxDEV("div",{onClick:()=>{k({...r,quequan:!0})},className:"d-flex",children:e.jsxDEV("input",{value:g&&b&&g[b]&&`${g[b].tinh.name}, ${g[b].huyen.name}, ${g[b].xa.name}`,type:"text",placeholder:"Tỉnh/Huyện/Phường(Xã)",className:"input-like-formCtrl"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:270,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:264,columnNumber:13},globalThis),(r==null?void 0:r.quequan)&&e.jsxDEV(U,{valueDefault:g[b]?g[b]:!1,openDiaChi:r==null?void 0:r.quequan,setID:E,setOpenDiaChi:k,titleDiaChi:"Quê Quán",goiYQH:!0},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:284,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:259,columnNumber:11},globalThis):n.field_name==="ThuongTru"?e.jsxDEV(e.Fragment,{children:[e.jsxDEV("div",{className:"d-flex title-like-formCtrl",children:[e.jsxDEV("h6",{className:"text-blue m-0 fw-bold",children:"Thường Trú"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:301,columnNumber:15},globalThis),e.jsxDEV("strong",{className:"ms-1 my-0 text-red",children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:302,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:300,columnNumber:13},globalThis),e.jsxDEV("div",{onClick:()=>{k({...r,thuongtru:!0})},className:"d-flex",children:e.jsxDEV("input",{value:g&&c&&g[c]&&`${g[c].tinh.name}, ${g[c].huyen.name}, ${g[c].xa.name}`,type:"text",placeholder:"Tỉnh/Huyện/Phường(Xã)",className:"input-like-formCtrl"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:310,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:304,columnNumber:13},globalThis),(r==null?void 0:r.thuongtru)&&e.jsxDEV(U,{valueDefault:g[c]?g[c]:!1,openDiaChi:r==null?void 0:r.thuongtru,setID:q,setOpenDiaChi:k,titleDiaChi:"Địa chỉ thường trú",setTinh:Me,coDinhHuyen:!0,setThonXom:se,thonXom:K},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:324,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:299,columnNumber:11},globalThis):n.field_name==="NoiOHienTai"?e.jsxDEV(e.Fragment,{children:[e.jsxDEV("div",{className:"d-flex title-like-formCtrl",children:[e.jsxDEV("h6",{className:"text-blue m-0 fw-bold",children:"Nơi ở hiện tại"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:345,columnNumber:15},globalThis),e.jsxDEV("strong",{className:"ms-1 my-0 text-red",children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:346,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:344,columnNumber:13},globalThis),e.jsxDEV("div",{className:"d-flex",children:e.jsxDEV("input",{value:g&&j&&g[j]&&`${g[j].tinh.name}, ${g[j].huyen.name}, ${g[j].xa.name}`,type:"text",placeholder:"Tỉnh/Huyện/Phường(Xã)",className:"input-like-formCtrl",onClick:()=>{k({...r,noio:!0})}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:349,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:348,columnNumber:13},globalThis),(r==null?void 0:r.noio)&&e.jsxDEV(U,{valueDefault:g[j]?g[j]:g[c]?g[c]:!1,openDiaChi:r==null?void 0:r.noio,setID:oe,setOpenDiaChi:k,goiYQH:!0,titleDiaChi:"Nơi ở hiện tại"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:366,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:343,columnNumber:11},globalThis):e.jsxDEV(Pe,{style:{border:"none"},children:[e.jsxDEV(pe,{style:{left:"0"},title:n.title,children:[n.title," ",n.required&&e.jsxDEV("span",{style:{color:"red"},children:" *"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:388,columnNumber:44},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:387,columnNumber:11},globalThis),e.jsxDEV(ee,{style:{paddingLeft:"0",paddingTop:"10px"},onDragStart:m=>m.preventDefault(),children:e.jsxDEV(A,{data:{...n,hidden_label:!0},value:te(n),onChange:(m,u)=>ue(m,u),inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:391,columnNumber:13},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:390,columnNumber:11},globalThis)]},a,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:386,columnNumber:9},globalThis)),[te,o==null?void 0:o.IsNuocNgoai,o.NhomNganhKinhTe,o==null?void 0:o.SoCCCD,o.SoDinhDanhHoGD,o.ThamGiaBHXH,o.TinhTrangThamGiaHDKT,o.TrinhDoCMKT,ue,j,b,c,g,r,D,K]),Qe=i.useCallback(async()=>{var n,a,m,u,x,M;if(ge())if(!B)_("Chưa nhập Số CMND/CCCD");else if(!(o!=null&&o.IsNuocNgoai)&&!b)_("Chưa nhập Quê Quán");else if(!c)_("Chưa nhập Thường Trú");else if(!j)_("Chưa nhập Nơi ở hiện tại");else if(o.TinhTrangThamGiaHDKT===1&&!o.NhomNganhKinhTe)_("Chưa chọn nhóm ngành kinh tế");else if(o.TinhTrangThamGiaHDKT===1&&!o.CongViecCuTheDangLam)_("Chưa chọn công việc cụ thể");else if(o.TinhTrangThamGiaHDKT===3&&!o.LyDoKhongThamGiaHDKT)_("Chưa chọn lý do không tham gia HĐKT");else{const P=d?"PATCH":"POST",_e=d?`QLLD_NguoiLaoDong(${d})`:"QLLD_NguoiLaoDong";delete o.Id,delete o.tableData,delete o.PhuongXa,delete o.QLLD_DM_DanToc,delete o.QLLD_DM_GioiTinh,delete o.QLLD_DM_ThamGiaBHXH,delete o.QLLD_DM_TinhTrangHonNhan,delete o.QLLD_DM_TinhTrangViecLam,delete o.QLLD_DM_TonGiao,delete o.QLLD_DM_LyDoKhongThamGiaHDKT,delete o.QLLD_HoSoNhuCauHocNghe,delete o.QLLD_DM_TrinhDoCMKT,delete o.QLLD_DM_TrinhDoHocVan,delete o.QLLD_DM_QuanHeVoiChuHo,delete o.QLLD_DM_GiaoDucQuocDan,delete o.QLLD_DM_NhomNganhKinhTe,delete o.ThonXom,delete o.NguoiLaoDong_Id,o.SoDinhDanhHoGD&&(o.SoDinhDanhHoGD=o.SoDinhDanhHoGD.SoDinhDanhHoGD);const Ae={...o,QueQuan:g&&((a=(n=g[b])==null?void 0:n.xa)==null?void 0:a.id),ThuongTru:g&&((u=(m=g[c])==null?void 0:m.xa)==null?void 0:u.id),NoiOHienTai:g&&((M=(x=g[j])==null?void 0:x.xa)==null?void 0:M.id),SoCCCD:B,ThuongTru_ThonXom_Id:K,PhanLoaiTinh_Id:le==="52"?1:2};await S(_e,P,JSON.stringify(Ae)).then(G=>{C&&ne.setIdPopupModalAdd(G.Id),k({quequan:!1,thuongtru:!1,noio:!1}),N(),$(),L(),F(null),p({}),v&&v(!0),G&&!d?Y.map(Q=>{S("QLLD_NguoiLaoDong_DoiTuongChinhSach","POST",JSON.stringify({DoiTuongChinhSach_Id:Q.Id,NguoiLaoDong_Id:G.Id})).then(y=>{v&&v(!0)}).catch(y=>{X(y["odata.error"].message.value)})}):G&&d&&(R&&R.map(Q=>{S(`QLLD_NguoiLaoDong_DoiTuongChinhSach(${Q.Id})`,"DELETE").then(y=>{v&&v(!0)}).catch(y=>{X(y["odata.error"].message.value)})}),I.filter(Q=>Q.trung!==!0).map(Q=>{S("QLLD_NguoiLaoDong_DoiTuongChinhSach","POST",JSON.stringify({DoiTuongChinhSach_Id:Q.Id,NguoiLaoDong_Id:d})).then(y=>{v&&v(!0)}).catch(y=>{X(y["odata.error"].message.value)})}))}).catch(G=>{X(G["odata.error"].message.value)})}},[ge,B,b,c,j,o,d,g,K,le,C,ne,N,L,p,v,Y,R,I]),he=Be(we,Ce);if(he){const n=Object.values(he);return e.jsxDEV(e.Fragment,{children:e.jsxDEV(Ze,{isOpen:D,toggle:()=>{N(),$(),F(null),p({})},children:[e.jsxDEV($e,{className:"p-3",children:[e.jsxDEV("span",{children:d?"Cập nhật thông tin người lao động":"Thêm mới"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:592,columnNumber:13},globalThis),e.jsxDEV("span",{className:"float-right",children:[e.jsxDEV(W,{className:"me-2",color:"warning",children:[e.jsxDEV(J,{fa:"edit"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:595,columnNumber:17},globalThis),e.jsxDEV("span",{className:"ms-2",children:"Cập nhật CSDL Quốc gia về Dân cư"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:596,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:594,columnNumber:15},globalThis),e.jsxDEV(W,{className:"me-2",color:"success",onClick:Qe,children:[e.jsxDEV(J,{fa:"save"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:599,columnNumber:17},globalThis),e.jsxDEV("span",{className:"ms-2",children:"Lưu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:600,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:598,columnNumber:15},globalThis),e.jsxDEV(W,{color:"danger",onClick:()=>{N(),$()},children:[e.jsxDEV(J,{fa:"times"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:609,columnNumber:17},globalThis),e.jsxDEV("span",{className:"ms-2",children:"Trở lại"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:610,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:602,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:593,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:591,columnNumber:11},globalThis),e.jsxDEV(Ke,{className:"pt-0 px-3 pb-3",style:{height:"calc(100vh - 130px)",overflow:"auto"},children:[n.map((a,m)=>e.jsxDEV(e.Fragment,{children:[e.jsxDEV("h5",{style:{fontWeight:"bold",margin:"25px 0"},children:Se[a[0].nameGroupCard]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:618,columnNumber:19},globalThis),e.jsxDEV(Ne,{md:"2",children:a.filter(u=>!u.hiddenGroupCard).map((u,x)=>e.jsxDEV(z,{md:"4",className:"mt-0 card-mau01-Dieu18",children:He(u,x)},x,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:624,columnNumber:27},globalThis))},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:619,columnNumber:19},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:617,columnNumber:17},globalThis)),e.jsxDEV(Ne,{children:[e.jsxDEV(z,{md:"4",className:"mt-0",children:[e.jsxDEV("h6",{style:{color:"#374dc5"},className:"mb-0 fw-bold",children:"Người lao động nước ngoài"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:635,columnNumber:17},globalThis),e.jsxDEV(A,{data:{type:"checkbox",hidden_label:!0},value:o==null?void 0:o.IsNuocNgoai,onChange:(a,m)=>{Z(p,"IsNuocNgoai",m),Z(p,"QuocGia_Id",null),E(null)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:638,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:634,columnNumber:15},globalThis),(o==null?void 0:o.IsNuocNgoai)&&e.jsxDEV(z,{md:"4",className:"mt-0",children:[e.jsxDEV("h6",{style:{color:"#374dc5"},className:"mb-0 fw-bold",children:"Quốc gia"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:653,columnNumber:19},globalThis),e.jsxDEV(A,{data:{title:"Quốc Gia",hidden_label:!0,type:"data-select",dataSelect:{url:"QLLD_DM_QuocGia",value_field:"Id",text_field:"Name",placeholder:"Chọn Quốc gia"}},value:o.QuocGia_Id,onChange:(a,m)=>{Z(p,"QuocGia_Id",m)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:656,columnNumber:19},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:652,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:633,columnNumber:13},globalThis),e.jsxDEV(e.Fragment,{children:[e.jsxDEV("h5",{style:{fontWeight:"bold",margin:"25px 0"},children:"ĐỐI TƯỢNG CHÍNH SÁCH"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:677,columnNumber:15},globalThis),e.jsxDEV("div",{className:"col-12 d-flex w-100",children:e.jsxDEV("div",{className:"d-flex row",children:[e.jsxDEV("div",{className:"mb-2 col-4",children:[e.jsxDEV("input",{type:"checkbox",checked:t==null?void 0:t.every(a=>!a.checked),onClick:()=>ye()},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:681,columnNumber:21},globalThis),e.jsxDEV("span",{className:"ms-2",children:"Không"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:686,columnNumber:21},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:680,columnNumber:19},globalThis),t==null?void 0:t.map(a=>e.jsxDEV("div",{className:"mb-2 col-4",children:[e.jsxDEV("input",{type:"checkbox",checked:a==null?void 0:a.checked,onClick:m=>{const u=[...t],x=u.indexOf(a);if(u[x]={...a,checked:m.target.checked},a.Name==="Thuộc hộ nghèo"){const M=u.findIndex(P=>P.Name==="Thuộc hộ cận nghèo");u[M].checked=!1}if(a.Name==="Thuộc hộ cận nghèo"){const M=u.findIndex(P=>P.Name==="Thuộc hộ nghèo");u[M].checked=!1}f(u)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:691,columnNumber:25},globalThis),e.jsxDEV("span",{className:"ms-2",children:a.Name},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:709,columnNumber:25},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:690,columnNumber:23},globalThis))]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:679,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:678,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:676,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:614,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:579,columnNumber:9},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:569,columnNumber:7},globalThis)}},U=T=>{const{openDiaChi:D,setOpenDiaChi:L,titleDiaChi:d,setID:v,valueDefault:h,coDinhHuyen:o,coDinhTinh:p,goiYQH:N,setThonXom:V,thonXom:w,setTinh:C}=T,[s,l]=i.useState({idTinh:h?h.tinh.id:"52",idQuan:h?h.huyen.id:o?O:N&&O?O:null,idPhuong:h?h.xa.id:null});return console.log(s.idTinh),e.jsxDEV(e.Fragment,{children:e.jsxDEV(Oe,{zIndex:3900,isOpen:D,toggle:()=>L(!D),children:[e.jsxDEV("div",{className:"p-4 d-block",children:[e.jsxDEV("div",{className:"d-flex w-100 mb-3",children:[e.jsxDEV("strong",{className:"text-red me-2",children:"*"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:758,columnNumber:13},globalThis),e.jsxDEV("h6",{children:[d," :"]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:759,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:757,columnNumber:11},globalThis),e.jsxDEV("div",{className:"d-block w-100",children:[e.jsxDEV(A,{data:{title:"Tỉnh thành",disabled:!!p,required:!0,type:"data-select",dataSelect:{url:"TinhThanhs",value_field:"MaTinhThanh",text_field:"TenTinhThanh",placeholder:"Chọn tỉnh thành"}},value:s==null?void 0:s.idTinh,onChange:(t,f)=>{l({idTinh:f,idQuan:O,idPhuong:null}),C&&C(f)},inline:!1,className:"text-danger"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:762,columnNumber:13},globalThis),e.jsxDEV(A,{disabled:!0,data:{title:"Quận/Huyện",required:!0,type:"data-select",disabled:s.idTinh==="52"?o:!1,dataSelect:{url:"QuanHuyens",value_field:"MaQuanHuyen",text_field:"TenQuanHuyen",placeholder:"Chọn Quận/Huyện",where:`MaTinhThanh eq '${s.idTinh}'`}},value:s==null?void 0:s.idQuan,onChange:(t,f)=>{s.idTinh&&l({...s,idQuan:f,idPhuong:null})},inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:788,columnNumber:13},globalThis),e.jsxDEV(A,{disabled:!0,data:{title:"Phường/Xã",required:!0,type:"data-select",dataSelect:{url:"PhuongXas",value_field:"MaPhuongXa",text_field:"TenPhuongXa",placeholder:"Chọn Phường/Xã",where:`MaQuanHuyen eq '${s.idQuan}'`}},value:s==null?void 0:s.idPhuong,onChange:(t,f)=>l({...s,idPhuong:f}),inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:815,columnNumber:13},globalThis),!!V&&e.jsxDEV(A,{disabled:!0,data:{title:"Thôn/Xóm",type:"data-select",dataSelect:{url:"ThonXoms",value_field:"Id",text_field:"Ten",placeholder:"Chọn Thôn/Xóm",where:`MaPhuongXa eq '${s.idPhuong}'`}},value:w,onChange:(t,f)=>{V(f)},inline:!1},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:840,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:761,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:756,columnNumber:9},globalThis),e.jsxDEV(qe,{children:e.jsxDEV(ze,{onClick:()=>{v(s==null?void 0:s.idPhuong),L(!D)},disabled:!s.idPhuong,children:"Lưu"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:864,columnNumber:11},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:863,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:755,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/ModalAddNguoiLaoDong.jsx",lineNumber:754,columnNumber:5},globalThis)},eo=({idEdit:T,setIdEdit:D,openPopupAdd:L,reloadTable:d,succescc:v,setSuccec:h,ID:o,setID:p,dataFormAdd:N,setDataFormAdd:V,toggleAdd:w,defaultUuTien:C,nguoiLaoDongUuTien:s})=>{const[l,t]=i.useState(""),[f,r]=i.useState(!1),k=i.useRef(),b=i.useCallback(()=>k.current&&k.current.onQueryChange(),[k]);return e.jsxDEV(e.Fragment,{children:[e.jsxDEV(be,{title:"Danh sách người lao động",tableRef:k,SearchAdvanced:()=>e.jsxDEV(e.Fragment,{children:e.jsxDEV(ve,{onKeyPress:E=>{E.charCode===13&&(t(E.target.value),b())},placeholder:"Tìm kiếm",className:"w-25",defaultValue:l},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:39,columnNumber:15},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:38,columnNumber:13},globalThis),urlExt:l?`GetNLDNgoaiTinh?search=${l}`:"GetNLDNgoaiTinh",columns:[{field:"HoVaTen",title:"Họ và tên",searchable:!0},{field:"NgaySinh",title:"Ngày tháng năm sinh",type:"date"},{field:"GioiTinh",title:"Giới tính"},{field:"SoCCCD",title:"Số CCCD",searchable:!0},{field:"TonGiao",title:"Tôn giáo"},{field:"NoiOHienTai",title:"Nơi ở hiện tại"}],onAdd:{onClick:()=>{w("add",null)}},onRowClick:(E,c)=>{r(!0),p(c.Id)},onEdit:{onClick:(E,c)=>w("edit",c)},onDelete:{onClick:(E,c)=>me("Bạn có muốn xóa không ?","Thông báo").then(q=>{S(`QLLD_NguoiLaoDong(${c.Id})`,"DELETE",null).then(j=>{De("Xóa dữ liệu thành công !"),d()}).catch(j=>X("Xóa dữ liệu không thành công !"))})}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:33,columnNumber:7},globalThis),f&&e.jsxDEV(fe,{ID:o,isOpen:f,isClose:()=>{r(!1)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:89,columnNumber:9},globalThis),L&&T&&e.jsxDEV(Ue,{idEdit:T,setIdEdit:D,openPopupAdd:L&&T,reloadTable:d,succescc:v,setSuccec:h,ID:o,setID:p,dataFormAdd:N,setDataFormAdd:V,toggleAdd:w,defaultUuTien:C,nguoiLaoDongUuTien:s},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:98,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/TableNLDNgoaiTinh.jsx",lineNumber:32,columnNumber:5},globalThis)},pe=Ge.div`
  position: absolute;
  top: -12px;
  left: 12px;
  background-color: #fff;
  color: #374dc5;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* number of lines to show */
  -webkit-box-orient: vertical;
`,oo=()=>{const[T,D]=i.useState(!1),[L,d]=i.useState(),[v,h]=i.useState(),[o,p]=i.useState(),[N,V]=i.useState(),[w,C]=i.useState(),[s,l]=i.useState(null),t=[];o&&t.push(`(substringof('${o}',HoVaTen) or substringof('${o}',SoCCCD)) `),N&&t.push(`PhuongXa1/MaQuanHuyen eq '${N}'`),w&&t.push(`NoiOHienTai eq '${w}'`),t.push("PhuongXa1/QuanHuyen/MaTinhThanh eq '52'"),s&&t.push(`Created_Date ge datetime'${s}-01-01' and Created_Date lt datetime'${+s+1}-01-01' `);const f=i.useRef(),r=i.useCallback(()=>f.current&&f.current.onQueryChange(),[f]);return e.jsxDEV(e.Fragment,{children:[e.jsxDEV(We,{data:[{TabName:e.jsxDEV("div",{className:"p-1 px-4",children:"Người lao động"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:65,columnNumber:22},globalThis),TabContent:e.jsxDEV(ee,{className:"rounded",children:e.jsxDEV(be,{tableRef:f,title:"Danh sách người lao động",url:"QLLD_NguoiLaoDong",noCreateId:!0,columns:Fe,where:t.join(" and "),onRowClick:(k,b)=>{D(!0),d(b.Id),h(b.SoDinhDanhHoGD)},downloadExecl:{onClick:(k,b)=>{me("Bạn có muốn tải xuống file Execl không ?","Thông báo").then(E=>{Xe("XuatExcel?Code=NLD","DanhSachNguoiLaoDong.xlsx","GET",null,!0).then(()=>De("Xuất báo cáo thành công!")).catch(()=>X("Có lỗi xảy ra"))})}},SearchAdvanced:()=>e.jsxDEV(e.Fragment,{children:e.jsxDEV("div",{children:e.jsxDEV(je,{reloadTable:()=>r(),setSearchHVT:p,searchHVT:o,searchQH:N,setSearchQH:V,setSearchPX:C,searchPX:w,setYear:l,year:s},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:92,columnNumber:25},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:91,columnNumber:23},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:90,columnNumber:21},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:68,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:67,columnNumber:15},globalThis)},{TabName:e.jsxDEV("div",{className:"p-1 px-4",children:"Người lao động ngoài tỉnh"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:111,columnNumber:22},globalThis),TabContent:e.jsxDEV(e.Fragment,{children:e.jsxDEV(ee,{children:e.jsxDEV(eo,{},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:115,columnNumber:19},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:114,columnNumber:17},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:113,columnNumber:15},globalThis)}]},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:62,columnNumber:7},globalThis),T&&e.jsxDEV(fe,{SDDGD:v,ID:L,isOpen:T,isClose:()=>{D(!1)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:123,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:61,columnNumber:5},globalThis)},je=T=>{const{reloadTable:D,setSearchHVT:L,searchHVT:d,setSearchQH:v,searchQH:h,setSearchPX:o,searchPX:p,setYear:N,year:V}=T,[w,C]=i.useState([]);i.useEffect(()=>{S("QuanHuyens?$filter=MaTinhThanh eq '52'","GET",null).then(l=>{C(l.value)})},[h]);const s=i.useMemo(()=>e.jsxDEV(e.Fragment,{children:e.jsxDEV(ce,{options:w,placeholder:"Quận/huyện",valueField:"MaQuanHuyen",textField:"TenQuanHuyen",value:h,onChange:l=>{D(),v(l),o()}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:151,columnNumber:9},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:150,columnNumber:7},globalThis),[w,D,h,o,v]);return e.jsxDEV(e.Fragment,{children:e.jsxDEV("div",{className:"row",children:[e.jsxDEV("div",{className:"col-2",children:[e.jsxDEV("strong",{children:"Họ tên, CMND/CCCD"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:172,columnNumber:11},globalThis),e.jsxDEV(ve,{onKeyPress:l=>{l.charCode===13&&(L(l.target.value),D())},placeholder:"Họ và tên, CMND/CCCD",defaultValue:d},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:173,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:171,columnNumber:9},globalThis),e.jsxDEV("div",{className:"col-2",children:[e.jsxDEV("strong",{children:"Quận/Huyện"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:195,columnNumber:11},globalThis),s]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:194,columnNumber:9},globalThis),h&&e.jsxDEV("div",{className:"col-2",children:[e.jsxDEV("strong",{children:"Phường/Xã"},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:200,columnNumber:13},globalThis),e.jsxDEV(ce,{url:"PhuongXas",placeholder:"Phường/Xã",valueField:"MaPhuongXa",textField:"TenPhuongXa",where:`MaQuanHuyen eq '${h}'`,value:p,onChange:l=>{D(),o(l)}},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:201,columnNumber:13},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:199,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:170,columnNumber:7},globalThis)},void 0,!1,{fileName:"/home/jenkins/agent/workspace/gdnn.gdtsolutions.vn/src/views/NghiepVu/NguoiLaoDong/NguoiLaoDongViewSo.jsx",lineNumber:169,columnNumber:5},globalThis)},jo=Object.freeze(Object.defineProperty({__proto__:null,FormSearchNLD:je,WrapperText:pe,default:oo},Symbol.toStringTag,{value:"Module"}));export{je as F,Ue as M,jo as N,eo as T};