????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/
Upload File :
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/897.60de001a.chunk.js

(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[897,8445],{5338:(e,n,t)=>{"use strict";t.r(n),t.d(n,{Enum_Flag:()=>g,Enum_NhomKhoanChis:()=>f,Enums_CongNo:()=>c,Enums_DoiTuong:()=>r,Enums_GioiTinh:()=>o,Enums_LoaiNoLabel:()=>h,Enums_LoaiNoNumber:()=>d,Enums_PhuongThucChamCong:()=>l,Enums_PhuongThucChamCongNumber:()=>u,Enums_ThanhToan:()=>a,_Enums_DoiTuong:()=>s,_Enums_DoiTuongNumber:()=>i});const a=[{value:"all",label:"T\u1ea5t c\u1ea3"},{value:"1",label:"\u0110\xe3 thanh to\xe1n"},{value:"0",label:"Ch\u01b0a thanh to\xe1n"}],o=[{value:"Nam",label:"Nam"},{value:"Nu",label:"N\u1eef"},{value:"Khong",label:"Ch\u01b0a c\xf3 th\xf4ng tin"}],r=[{value:"CuaHang",label:"C\u1eeda h\xe0ng"},{value:"ThueNgoai",label:"Thu\xea ngo\xe0i"},{value:"KhachHang",label:"Kh\xe1ch h\xe0ng"},{value:"NhanVien",label:"Nh\xe2n vi\xean"},{value:"CongTy",label:"C\xf4ng ty"},{value:"PhongBan",label:"Phong ban"}],s={CuaHang:"CuaHang",ThueNgoai:"ThueNgoai",KhachHang:"KhachHang",NhanVien:"NhanVien",CongTy:"CongTy",PhongBang:"PhongBan"},i={CuaHang:0,ThueNgoai:1,KhachHang:2,NhanVien:3,CongTy:4,PhongBang:5},l={TheoThang:"TheoThang",TheoDuAn:"TheoDuAn"},u={TheoThang:0,TheoDuAn:1},c={NoCu:"NoCu",TamUng:"TamUng",NoDoiTac:"NoDoiTac"},d={NoCu:"NoCu",TamUng:"TamUng",NoDoiTac:"NoDoiTac",DuAnNo:"DuAnNo",TraNo:"TraNo"},h={NoCu:"N\u1ee3 c\u0169",TamUng:"T\u1ea1m \u1ee9ng",NoDoiTac:"N\u1ee3 \u0111\u1ed1i t\xe1c",DuAnNo:"D\u1ef1 \xe1n"},g={view:"view",add:"add",edit:"edit",delete:"delete"},f={LuongThoThueNgoai:"6939DC70-E008-4286-AC13-00BD4DF40BBC",LuongThoCTy:"B59A4E45-B963-478F-8DD5-663607A32DAA",ChiPhiCuaHang:"A6391105-7862-491B-844E-0D8874AA8B7B"}},16469:(e,n,t)=>{var a={"./CongNo":[18377,3043,3012,6456,639,146,9447,8377],"./CongNo/":[18377,3043,3012,6456,639,146,9447,8377],"./CongNo/DanhSachCongNo":[30805,805],"./CongNo/DanhSachCongNo.js":[30805,805],"./CongNo/data":[76506,4125],"./CongNo/data.js":[76506,4125],"./CongNo/index":[18377,3043,3012,6456,639,146,9447,8377],"./CongNo/index.js":[18377,3043,3012,6456,639,146,9447,8377],"./CongNo/style.scss":[63619,9447,6e3],"./Luong":[14382,4382],"./Luong/":[14382,4382],"./Luong/css.scss":[58510,8510],"./Luong/index":[14382,4382],"./Luong/index.js":[14382,4382],"./MainTab":[30394],"./MainTab.js":[30394],"./ThongTinChung":[13711,3043,3012,6456,639,146,3711],"./ThongTinChung/":[13711,3043,3012,6456,639,146,3711],"./ThongTinChung/CheckInfo":[34263,4263],"./ThongTinChung/CheckInfo.js":[34263,4263],"./ThongTinChung/InfoPending":[50435,2816],"./ThongTinChung/InfoPending.js":[50435,2816],"./ThongTinChung/data":[36067,6067],"./ThongTinChung/data.js":[36067,6067],"./ThongTinChung/index":[13711,3043,3012,6456,639,146,3711],"./ThongTinChung/index.js":[13711,3043,3012,6456,639,146,3711],"./data":[39760],"./data.js":[39760],"./style.scss":[63060,3060]};function o(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],o=n[0];return Promise.all(n.slice(1).map(t.e)).then((()=>t(o)))}o.keys=()=>Object.keys(a),o.id=16469,e.exports=o},17872:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>g});var a=t(82210),o=t(61316),r=t(5338),s=t(6058);class i extends a.Component{render(){const{name:e,disabled:n,options:t,placeholder:a,onChange:i,valueRef:l="value",labelRef:u="label",value:c,onMenuScrollToBottom:d,isLoading:h,onInputChange:g,onMenuOpen:f,onMenuClose:m}=this.props,p=(v=Array.isArray(t)?t:r[t])&&v.map((e=>(e.value=e[l],e.label=e[u],e)));var v;const x=null===c||""===c?null:p.filter((e=>e.value===c));return(0,s.jsx)(o.A,{isDisabled:n,className:"basic-single",name:e,value:x,defaultValue:x,isClearable:!0,isSearchable:!0,options:p,placeholder:a,onChange:(e,n)=>i(e,n),onMenuScrollToBottom:d,isLoading:h,onInputChange:g,onMenuOpen:f,onMenuClose:m})}}i.defaultProps={placeholder:"Ch\u1ecdn..."};const l=i;var u=t(68940),c=t(77952),d=t(14658);const h=[{title:"Id",field:"Id",type:"numeric",dataID:!0,editable:"never",hidden:!0,searchable:!1},{title:"T\xean \u0111\u1ed9i",field:"OrganName",type:"string",searchable:!0,cellStyle:{minWidth:50}},{title:"\u0110\u1ecba ch\u1ec9",field:"OrganAddress",type:"string",searchable:!0,cellStyle:{minWidth:50}},{title:"Email",field:"Email",type:"string",searchable:!0,cellStyle:{minWidth:50}},{title:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i",field:"Telephone",type:"string",searchable:!0,cellStyle:{minWidth:50}},{title:"Lo\u1ea1i",field:"DoiTuong",type:"string",dataCheck:!0,cellStyle:{width:"200px"},render:e=>(0,s.jsx)("p",{style:{margin:"auto"},children:r.Enums_DoiTuong.find((n=>n.value===e.DoiTuong)).label}),editComponent:e=>(0,s.jsx)(l,{options:[r.Enums_DoiTuong[1],r.Enums_DoiTuong[4]],value:e.value,name:e.label,onChange:n=>n?e.onChange(n.value):e.onChange(null)})},{title:"\u0110\u1ed9 \u01b0u ti\xean",field:"DoUuTien",type:"numeric",searchable:!0,defaultSort:"asc"}];function g(){const e=a.createRef();let n=`Status eq true and DoiTuong in ('${r.Enums_DoiTuong[1].value}','${r.Enums_DoiTuong[4].value}')`;const{handleDelete:t}=(0,c.GK)();return(0,s.jsx)(u.A,{addMoreRows:!0,tableRef:e,title:"Danh m\u1ee5c \u0111\u1ed9i thu\xea",url:"GDTCores/Organizations",columns:h,where:n,selectType:"withColumns",onAdd:{},onEdit:{},onDelete:{onRowDelete:e=>t(d.J1,e.Uuid)}})}},20421:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var a=t(82210);const o=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const[t,o]=(0,a.useState)("idle"),[r,s]=(0,a.useState)(void 0),[i,l]=(0,a.useState)(void 0),u=(0,a.useRef)(!1),c=(0,a.useCallback)((n=>(o("pending"),l(null),e(n).then((e=>{u.current&&(s(e),o("success"))})).catch((e=>{u.current&&(l(e),o("error"))})))),[e]);return(0,a.useEffect)((()=>{n&&c()}),[c,n]),(0,a.useEffect)((()=>(u.current=!0,()=>{u.current=!1})),[]),{execute:c,status:t,value:r,error:i,setValue:s,setStatus:o}}},30394:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>p});var a=t(82210),o=t(58392),r=t(91623),s=t(70048),i=t(47412),l=t(4373),u=t(88323),c=t.n(u),d=t(39760),h=t(32749),g=(t(27894),t(6058));const f={ThongTinChung:null,Luong:null,CongNo:null},m=e=>a.lazy((()=>t(16469)(`./${e}`).catch((()=>{})))),p=(0,a.forwardRef)(((e,n)=>{let{Id:t}=e;const[u,p]=(0,a.useState)("1"),[v,x]=(0,a.useState)(f),y=(0,a.useRef)([]);(0,a.useEffect)((()=>{const e=Object.keys(f)[0],n=m(e);x((t=>({...t,[e]:{...n,Name:e}})))}),[]),(0,a.useImperativeHandle)(n,(()=>({saveData:()=>u})));const C=(0,a.useCallback)((e=>{if(v[`${Object.keys(f)[e-1]}`])return;const n=m(Object.keys(f)[e-1]);n.Name=Object.keys(f)[e-1],x((t=>({...t,[Object.keys(f)[e-1]]:n})))}),[v]),b=(0,a.useCallback)((e=>{C(parseInt(e)),u!==e&&p(e)}),[u,C]),T=(0,a.useMemo)((()=>Object.values(v).map(((e,n)=>e?(0,g.jsx)(a.Suspense,{fallback:(0,g.jsx)(h.A,{},"tab-sub"+n+e.Name),children:(0,g.jsx)(o.A,{tabId:`${n+1}`,children:(0,g.jsx)(e,{ref:t=>y.current[n]={name:e.Name,formRef:t},Id:t})},"tab"+n+e.Name)}):null))),[t,v]),j=(0,a.useMemo)((()=>d.INITIAL_TAB.map(((e,n)=>(0,g.jsx)(r.A,{children:(0,g.jsx)(s.A,{className:c()({active:u===e.value}),onClick:()=>b(e.value),children:e.label})},"tab"+n)))),[u,b]);(0,a.useCallback)((()=>y.current[parseInt(u)-1].formRef.onSave()),[u]);return(0,g.jsxs)(a.Fragment,{children:[(0,g.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,g.jsx)(i.A,{tabs:!0,children:j}),(0,g.jsx)(i.A,{tabs:!0,children:(0,g.jsx)("span",{className:"d-flex align-items-center"})})]}),(0,g.jsx)(l.A,{activeTab:u,children:T})]})}))},34483:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var a=t(82210),o=t(90248),r=t(99190),s=t(6058);function i(e){return(0,s.jsx)(r.A,{elevation:6,variant:"filled",...e})}const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e3;const[n,t]=(0,a.useState)(null),r=(0,a.useMemo)((function(){return{error:function(){t({isOpen:!0,message:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\u0110\xe3 x\u1ea3y ra l\u1ed7i, vui l\xf2ng th\u1eed l\u1ea1i",severity:"error"})},success:function(e){t({isOpen:!0,message:e,severity:"success"})},warning:function(e){t({isOpen:!0,message:e,severity:"warning"})},info:function(e){t({isOpen:!0,message:e,severity:"info"})}}}),[t]),l=(0,a.useCallback)((()=>t(null)),[t]);return{renderAlert:(0,a.useMemo)((()=>{if(!n)return null;const{isOpen:t=!1,severity:a,message:r}=n;return(0,s.jsx)(o.A,{open:t,autoHideDuration:e,onClose:l,children:(0,s.jsx)(i,{onClose:l,severity:a,children:r})})}),[n,l,e]),fire:r}}},39760:(e,n,t)=>{"use strict";t.r(n),t.d(n,{INITIAL_TAB:()=>a});const a=[{label:"Th\xf4ng tin",value:"1"},{label:"L\u01b0\u01a1ng",value:"2"},{label:"C\xf4ng N\u1ee3",value:"3"}]},40370:(e,n,t)=>{"use strict";var a;t.d(n,{A:()=>d});var o=new Uint8Array(16);function r(){if(!a&&!(a="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(o)}const s=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const i=function(e){return"string"===typeof e&&s.test(e)};for(var l=[],u=0;u<256;++u)l.push((u+256).toString(16).substr(1));const c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(l[e[n+0]]+l[e[n+1]]+l[e[n+2]]+l[e[n+3]]+"-"+l[e[n+4]]+l[e[n+5]]+"-"+l[e[n+6]]+l[e[n+7]]+"-"+l[e[n+8]]+l[e[n+9]]+"-"+l[e[n+10]]+l[e[n+11]]+l[e[n+12]]+l[e[n+13]]+l[e[n+14]]+l[e[n+15]]).toLowerCase();if(!i(t))throw TypeError("Stringified UUID is invalid");return t};const d=function(e,n,t){var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n){t=t||0;for(var o=0;o<16;++o)n[t+o]=a[o];return n}return c(a)}},58889:(e,n,t)=>{"use strict";t.d(n,{Zp:()=>s,bw:()=>u,aR:()=>C});t(82210);var a=t(33851),o=t(6058);const r=e=>{const{children:n,...t}=e;return(0,o.jsx)(a.A,{...t,children:n})};r.defaultProps={};const s=r;var i=t(4191);const l=e=>{const{children:n,...t}=e;return(0,o.jsx)(i.A,{...t,children:n})};l.defaultProps={};const u=l;var c=t(35740);const d=e=>{const{children:n,...t}=e;return(0,o.jsx)(c.A,{...t,children:n})};d.defaultProps={};var h=t(77326);const g=e=>{const{children:n,...t}=e;return(0,o.jsx)(h.A,{...t,children:n})};g.defaultProps={};var f=t(69684);const m=e=>{const{children:n,...t}=e;return(0,o.jsx)(f.A,{...t,children:n})};m.defaultProps={};var p=t(56100);const v=e=>{const{children:n,...t}=e;return(0,o.jsx)(p.A,{...t,children:n})};v.defaultProps={};var x=t(85858);const y=e=>{const{children:n,...t}=e;return(0,o.jsx)(x.A,{...t,children:n})};y.defaultProps={};const C=y;var b=t(21752);const T=e=>{const{children:n,...t}=e;return(0,o.jsx)(b.A,{...t,children:n})};T.defaultProps={};var j=t(33442);const A=e=>{const{children:n,...t}=e;return(0,o.jsx)(j.A,{...t,children:n})};A.defaultProps={};var N=t(45227);const D=e=>{const{children:n,...t}=e;return(0,o.jsx)(N.A,{...t,children:n})};D.defaultProps={};var w=t(14263);const S=e=>{const{children:n,...t}=e;return(0,o.jsx)(w.A,{...t,children:n})};S.defaultProps={};var k=t(8672);const I=e=>{const{children:n,...t}=e;return(0,o.jsx)(k.A,{...t,children:n})};I.defaultProps={};var E=t(91405);const R=e=>{const{children:n,...t}=e;return(0,o.jsx)(E.A,{...t,children:n})};R.defaultProps={}},61316:(e,n,t)=>{"use strict";t.d(n,{A:()=>v});var a=t(82210),o=t(29083),r=t(98991),s=t(5774),i=t(6058);const l=e=>(0,i.jsx)("div",{className:"spinner-border-sm spinner-border text-danger"}),u={multiValueLabel:e=>({...e,padding:"0px 0px 0px 6px",fontSize:13}),menuPortal:e=>({...e,zIndex:9999}),control:e=>({...e,backgroundColor:"white",minHeight:"38px",fontSize:"0.76563rem",lineHeight:"1.5",cursor:"pointer",borderRadius:"0.2rem"}),menu:e=>({...e,zIndex:2300}),option:e=>({...e,fontSize:"0.76563rem",cursor:"pointer"}),input:e=>({...e,position:"unset"}),placeholder:e=>({...e,marginLeft:5,marginRight:5}),singleValue:(e,n)=>{let{data:t}=n;return{...e,marginTop:1,transform:"inherit",top:"unset"}},container:e=>({...e,width:"100%"}),valueContainer:e=>({...e,padding:"2px 8px"})},c=e=>(0,i.jsx)(l,{...e}),d=e=>(0,i.jsx)(o.F.IndicatorsContainer,{...e,getStyles:()=>({display:"flex",height:"100%"})}),h=e=>{const{innerProps:{ref:n,...t}}=e;return(0,i.jsx)("div",{...t,ref:n,style:{color:"rgb(204, 204, 204)",transition:"color 150ms ease 0s",boxSizing:"border-box"},children:(0,i.jsx)(s.A,{fa:"times",style:{marginTop:2,padding:"5px 5px 5px 5px",verticalAlign:"bottom"}})})},g=e=>{let{innerProps:n}=e;return(0,i.jsx)("span",{...n,style:{alignSelf:"stretch",width:1,backgroundColor:"rgb(204, 204, 204)",marginTop:2,marginBottom:2,marginRight:5,marginLeft:5}})},f=e=>(0,i.jsx)(o.F.DropdownIndicator,{...e,getStyles:()=>({color:"hsl(0,0%,80%)"}),children:(0,i.jsx)(s.A,{fa:"angle-down",style:{marginTop:2,padding:"5px 9px 5px 5px"}})}),m=e=>(0,i.jsx)(o.F.MenuList,{...e,getStyles:()=>({maxHeight:300,zIndex:1021,overflowY:"auto"}),children:e.children});class p extends a.Component{constructor(e){super(e),this.state={valueRequire:null},this.RefReactSelect=a.createRef()}render(){const{placeholder:e,noOptionsMessage:n,loadingMessage:t,required:o,isDisabled:s,menuPlacement:l,...p}=this.props,{valueRequire:v}=this.state;return(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)(r.Ay,{...p,ref:this.RefReactSelect,classNamePrefix:"select",styles:u,placeholder:e,noOptionsMessage:n,loadingMessage:t,isDisabled:s,components:{IndicatorsContainer:d,ClearIndicator:h,IndicatorSeparator:g,DropdownIndicator:f,LoadingIndicator:c,MenuList:m},onChange:e=>{this.props.onChange(e),this.setState({valueRequire:e?e.name:null})},menuPortalTarget:document.body,menuPosition:"absolute",menuPlacement:l||"auto"}),(0,i.jsx)("input",{readOnly:!0,name:"requireInput",type:"text",tabIndex:1,autoComplete:"off",style:{opacity:0,height:0,position:"absolute"},value:v||"",onFocus:()=>{this.RefReactSelect.current&&this.RefReactSelect.current.focus()}})]})}}p.defaultProps={placeholder:"Ch\u1ecdn...",isDisabled:!1,noOptionsMessage:()=>"Kh\xf4ng c\xf3 l\u1ef1a ch\u1ecdn",loadingMessage:()=>"\u0110ang t\u1ea3i"};const v=p},77871:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var a=t(82210);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const[n,t]=(0,a.useState)((()=>e));return{formValue:n,handleInput:(0,a.useCallback)((e=>{let{target:{name:n,value:a}}=e;return t((e=>({...e,[n]:a})))}),[]),setFormValue:t}}},77952:(e,n,t)=>{"use strict";t.d(n,{Yb:()=>o.A,MK:()=>s,GK:()=>c,DQ:()=>y,j_:()=>h,Lh:()=>l});t(34483);var a=t(82210);var o=t(20421);t(77871);var r=t(87760);const s=()=>({convert:(0,a.useCallback)((async(e,n)=>{const t={Accept:"application/json"},a=n&&"HinhCanBoDownload",o=(r.Eh+r.cG+"/Accounts"+`/DownloadAuth/${a}?id=${n}&idUpload=${e}`).replace(/(?<=search=)[^&]+/g,(e=>encodeURIComponent(e))),s=await fetch(o,{method:"GET",credentials:"same-origin",headers:t});if(s.ok)return s;throw s}),[])});var i=t(74835);const l=()=>{const e=(0,a.useCallback)((async(e,n,t)=>{if(t)return{file:n,Uuid:t};return{file:n,Uuid:(await i.A.addDocument(e)).Uuid}}),[]),n=(0,a.useCallback)((async(e,n)=>(await i.A.uploadFileDocument(e,n),e)),[]);return{uploadSdoc:(0,a.useCallback)(((t,a,o)=>e(t,a,o).then((e=>{let{Uuid:t,file:a}=e;return n(t,a)}))),[e,n]),downloadFile:(0,a.useCallback)((e=>{e&&i.A.downloadDoc({Uuid:e})}),[])}};var u=t(35065);const c=()=>({handleDelete:(0,a.useCallback)((async(e,n)=>{try{return await e.DeleteADMINODATA(`(${n})`),Promise.resolve()}catch(t){await t.json().then((e=>((0,u.a3)(e.message),Promise.reject())))}}),[])}),d=e=>e.indexOf(".")>-1?e.split("."):"";const h=function(){return{QueryOdata:(0,a.useCallback)((function(e,n,t){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o="?";if(t&&(o+=`search=${t}`),n&&0!==n.length){o+="&$filter=";o+=n.map((e=>{let{cols:n,value:t}=e;return function(e,n){let t="boolean"===typeof n?n:`'${n}'`;const a=`${e.map(((e,a)=>Array.isArray(d(e))?((e,n,t)=>{let[a,o]=e;return`${a}/any(e${t}:e${t}/${o} eq ${n} )`})(d(e),n,a):`${e} eq ${t}`))}`;return a.replace(","," or ")}(n,t)})).join("or")}return 0!==a.length&&(o+=`&$expand=${a.join(",")}`),e.SearchAllOdata(o,null,null,!0)}),[])}},g=()=>{},f="undefined"!==typeof window;var m=f?window:null,p=function(e){return!!e.addEventListener},v=function(e){return!!e.on};const x=function(e,n,t,o){void 0===t&&(t=m),(0,a.useEffect)((function(){if(n&&t)return p(t)?function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];e.addEventListener(...t)}(t,e,n,o):v(t)&&t.on(e,n,o),function(){p(t)?function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];e.removeEventListener(...t)}(t,e,n,o):v(t)&&t.off(e,n,o)}}),[e,n,t,o])};const y=function(e,n,t,o){void 0===n&&(n=g),void 0===t&&(t={}),void 0===o&&(o=[e]);var r=t.event,s=void 0===r?"keydown":r,i=t.target,l=t.options,u=(0,a.useMemo)((function(){var t,a="function"===typeof(t=e)?t:"string"===typeof t?function(e){return e.key===t}:t?function(){return!0}:function(){return!1};return function(e){if(a(e))return n(e)}}),[n,e]);x(s,u,i,l)}},78188:(e,n,t)=>{"use strict";function a(e){return e&&e.ownerDocument||document}t.d(n,{A:()=>a})},78794:(e,n,t)=>{"use strict";function a(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.reduce((function(e,n){return null==n?e:function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];e.apply(this,a),n.apply(this,a)}}),(function(){}))}t.d(n,{A:()=>a})},80028:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var a=t(30226),o=t(35007),r=t(82210),s=t(30628),i=t(98910),l=t(86953),u=r.forwardRef((function(e,n){var t=e.animation,i=void 0===t?"pulse":t,l=e.classes,u=e.className,c=e.component,d=void 0===c?"span":c,h=e.height,g=e.variant,f=void 0===g?"text":g,m=e.width,p=(0,o.A)(e,["animation","classes","className","component","height","variant","width"]),v=Boolean(p.children);return r.createElement(d,(0,a.A)({ref:n,className:(0,s.A)(l.root,l[f],u,v&&[l.withChildren,!m&&l.fitContent,!h&&l.heightAuto],!1!==i&&l[i])},p,{style:(0,a.A)({width:m,height:h},p.style)}))}));const c=(0,l.A)((function(e){return{root:{display:"block",backgroundColor:(0,i.Rv)(e.palette.text.primary,"light"===e.palette.type?.11:.13),height:"1.2em"},text:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 60%",transform:"scale(1, 0.60)",borderRadius:e.shape.borderRadius,"&:empty:before":{content:'"\\00a0"'}},rect:{},circle:{borderRadius:"50%"},pulse:{animation:"$pulse 1.5s ease-in-out 0.5s infinite"},"@keyframes pulse":{"0%":{opacity:1},"50%":{opacity:.4},"100%":{opacity:1}},wave:{position:"relative",overflow:"hidden","&::after":{animation:"$wave 1.6s linear 0.5s infinite",background:"linear-gradient(90deg, transparent, ".concat(e.palette.action.hover,", transparent)"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}},"@keyframes wave":{"0%":{transform:"translateX(-100%)"},"60%":{transform:"translateX(100%)"},"100%":{transform:"translateX(100%)"}},withChildren:{"& > *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(u)},85012:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>M});var a=t(82210);const o=[];function r(e){return e}function s(e,n){switch(n.type){case"RESET_INI_STATE":return null;case"SET_ID_NHANVIEN":return{...e,Id:n.payload};case"SET_CODE":return{...e,Code:n.payload};case"SET_NAME":return{...e,Name:n.payload}}}var i=t(6058);const l=(0,a.createContext)(),{Provider:u}=l,c=e=>{let{children:n}=e;const[t,l]=(0,a.useReducer)(s,o,r);return(0,i.jsx)(u,{value:[t,l],children:n})};var d=t(73161),h=t(79617),g=t(27532),f=t(47117),m=t(40731),p=t(15517),v=t(35065),x=t(36467),y=t(80028);const C=function(e){let{loading:n,...t}=e;return(0,i.jsx)(a.Fragment,{children:n?Array.from(Array(10).keys()).map(((e,n)=>(0,i.jsx)(f.A,{className:"mr-1",children:(0,i.jsx)(m.A,{md:"12",children:(0,i.jsx)(x.A,{component:"div",variant:"body1",children:(0,i.jsx)(y.A,{variant:"rect"})})})},"ske"+n))):t.children})};var b=t(79209);const T=p.Ay.div`
    position: relative;
    min-width: 120px;
    max-height: 380px;
    overflow-y: auto
`,j=a.forwardRef(((e,n)=>{let{manipulation:t,onSelect:o,viewDeleted:r,expandAll:s}=e;const[l,u]=(0,a.useState)(!0),[c,d]=(0,a.useState)([]),[h,g]=(0,a.useState)(null),f=(0,a.useRef)(null),m=(0,a.useCallback)((e=>{u(!0),t.view(e).then((e=>{let{value:n}=e;d(n&&0!==n.length?n:[])})).catch((e=>(0,v.a3)("Kh\xf4ng th\u1ec3 load d\u1eef li\u1ec7u !"))).finally((()=>u(!1)))}),[t]);(0,a.useEffect)((()=>{m()}),[m]),(0,a.useImperativeHandle)(n,(()=>({queryData:()=>m()})));const p=(0,a.useCallback)((e=>m(e)),[m]),x=(0,a.useCallback)((e=>{g((n=>(n=n===e.Id?null:e.Id,o({...e,Id:n}),n)))}),[o]),y=(0,a.useMemo)((()=>(0,i.jsx)(b.Z,{onReload:m,onChange:p})),[m,p]);return(0,i.jsxs)(a.Fragment,{children:[y,(0,i.jsx)(C,{loading:l,children:(0,i.jsx)(T,{children:(0,i.jsx)("ul",{className:"task-items",ref:f,children:c&&0!==c.length&&c.map(((e,n)=>{const t=e.Id===h;return(0,i.jsx)("li",{className:`item type ${t&&"selected"}`,onClick:()=>x(e),children:A(e,o,n,x)},"li"+n)}))})})})]})})),A=e=>(0,i.jsx)(f.A,{children:(0,i.jsxs)(m.A,{md:"12",className:"task ",children:[(0,i.jsx)(m.A,{md:"2",className:"icon",children:(0,i.jsx)("i",{className:"fas fa-users"})}),(0,i.jsx)(m.A,{md:"10",className:"name-group",children:(0,i.jsx)("label",{children:e.OrganName})})]})}),N=j,D=a.forwardRef(((e,n)=>{let{manipulation:t,teamDetailSetValue:o,viewDeleted:r,data:s}=e;const l=(0,a.useRef)(null),u=(e,n)=>o(e,n);return(0,a.useImperativeHandle)(n,(()=>({onSelect:u,refeshNoiDung:()=>l.current&&l.current.queryData(),refeshNoiDungDefault:()=>l.current&&l.current.queryData()}))),(0,i.jsx)(N,{ref:l,manipulation:t,viewDeleted:r,onSelect:(e,n)=>u(e,n),expandAll:!0})}));var w=t(58889),S=t(14658),k=t(5338),I=t(27894),E=t(17872),R=t(30394),P=t(77952);const _=k.Enums_DoiTuong[1].value;const O=function(){const[e,n]=(0,a.useState)(null),[t,o]=(0,a.useState)(!1),r=(0,a.useRef)(),{QueryOdata:s}=(0,P.j_)(),l=(0,a.useCallback)((async e=>n(e||null)),[]),u=(0,a.useCallback)((e=>e?s(S.yB,[{cols:["DoiTuong"],value:_}],e):S.yB.getAll(`?$filter=DoiTuong eq '${_}' &$orderBy= DoUuTien`)),[s]),c=(0,a.useMemo)((()=>(0,i.jsxs)(w.Zp,{className:"main-content",children:[" ",(0,i.jsx)(w.bw,{children:(0,i.jsx)(R.default,{Id:e&&e.Id||null})})]})),[e]),p=(0,a.useCallback)((()=>o(!0)),[]),v=(0,a.useMemo)((()=>(0,i.jsxs)(d.A,{size:"xl",isOpen:t,toggle:()=>o(!1),children:[(0,i.jsx)(h.A,{toggle:()=>o(!1),children:"Danh s\xe1ch \u0111\u1ed9i thu\xea"}),(0,i.jsx)(g.A,{children:(0,i.jsx)(E.default,{})})]})),[t]);return(0,i.jsxs)(f.A,{children:[v,(0,i.jsx)(m.A,{xs:"3",style:{paddingRight:"0px"},children:(0,i.jsxs)(w.Zp,{className:"tree-card",children:[(0,i.jsxs)(w.aR,{className:"header-card d-flex justify-content-between",children:[(0,i.jsx)("div",{children:"Danh s\xe1ch \u0111\u1ed9i thu\xea ngo\xe0i"}),(0,i.jsx)(I.UN,{onClick:p,children:"Th\xeam"})]}),(0,i.jsx)(w.bw,{className:"body content",children:(0,i.jsx)(D,{ref:r,teamDetailSetValue:l,manipulation:{view:e=>u(e)}})})]})}),(0,i.jsx)(m.A,{xs:"9",className:"Detail",children:c})]})};const M=function(){return(0,i.jsx)(c,{children:(0,i.jsx)(O,{})})}}}]);
//# sourceMappingURL=897.60de001a.chunk.js.map