????
Current Path : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/4923.6157afae.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[4923],{29933:(e,s,t)=>{t.d(s,{A:()=>N});var l=t(9950),n=t(78854),i=t(9330),a=t(44414);const d=l.forwardRef(((e,s)=>(0,a.jsx)(i.A,{direction:"up",ref:s,...e})));function c(e){const{children:s,onClose:t,open:l,className:i}=e;return(0,a.jsx)(n.A,{className:i,fullScreen:!0,open:l,onClose:t,TransitionComponent:d,children:s})}var r=t(69994),h=t(87092),o=t(29312),x=t(81270),j=t(39886),u=t(33322);const m=(0,r.A)((e=>(0,h.A)({appBar:{position:"relative",backgroundColor:"rgb(3,56,99)"},toolbar:{minHeight:40},title:{marginLeft:e.spacing(2),flex:1}})));function p(e){const s=m(),{renderCustom:t,renderButton:l,title:n,onClose:i}=e;return(0,a.jsx)(o.A,{className:s.appBar,children:(0,a.jsxs)(x.A,{className:s.toolbar,variant:"dense",children:[t,(0,a.jsx)(j.A,{variant:"h6",className:s.title,children:n}),l,(0,a.jsx)(u.A,{onClick:i,children:"\u0110\xf3ng"})]})})}var v=t(77766);function f(e){return(0,a.jsx)(v.A,{style:{backgroundColor:"#eee",paddingTop:20,overflow:"unset"},children:e.children})}function g(e){const{renderCustom:s,renderButton:t,children:n,title:i,onClose:d,open:r,className:h}=e;return(0,l.useEffect)((()=>{}),[r]),(0,a.jsxs)(c,{className:h,open:r,onClose:d,children:[(0,a.jsx)(p,{renderCustom:s,renderButton:t,title:i,onClose:d}),(0,a.jsx)(f,{children:n})]})}const N=l.memo(g)},33322:(e,s,t)=>{t.d(s,{A:()=>d});t(9950);var l=t(71984),n=t(73613),i=t(44414);const a=e=>{const{children:s,...t}=e;return(0,i.jsxs)(l.A,{color:"danger",...t,children:[(0,i.jsx)(n.A,{fa:"times-circle"})," ",s]})};a.defaultProps={};const d=a},40261:(e,s,t)=>{t.r(s),t.d(s,{default:()=>V});var l=t(9950),n=t(35200),i=t(73613),a=t(18849),d=t(48918),c=t(30038),r=t(99121),h=t(85077),o=t(4370),x=t(67116),j=t(29933),u=t(59051),m=t.n(u),p=t(44414);const v=e=>{const{name:s,value:t,onChange:l,placeholder:n}=e;return(0,p.jsx)(h.A,{name:s,type:"datetime-local",bsSize:"sm",value:m()(t).format("YYYY-MM-DDThh:mm"),onChange:l,placeholder:n})};v.defaultProps={level:0};const f=v;var g=t(20906);const N=function(){return(0,p.jsx)("div",{children:Array.from(new Array(5).keys()).map((e=>(0,p.jsx)(g.A,{variant:"text",height:32},e)))})};const A=function(e,s){(0,l.useEffect)((()=>{const t=t=>{e.current&&!e.current.contains(t.target)&&s(t)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}}),[e,s])};const y=function(e){if(e){return e.match(/\b(\w)/g).join("")}};const _=function(e){let{isOpen:s,toggle:t,lstStaffAssigned:n,request:d,reloadData:c}=e;const r=(0,l.useRef)(),[x,j]=(0,l.useState)(s),[u,m]=(0,l.useState)([]),[v,f]=(0,l.useState)(!1),[g,_]=(0,l.useState)(d.ListStaff);A(r,(()=>{j(!1),t()}));const S=(0,l.useCallback)((()=>{f(!0),(0,o.Pq)("Operation/StaffDetail","GET",null,!1,!1).then((e=>m(e))).finally((()=>f(!1)))}),[]);(0,l.useEffect)((()=>{s&&j(s)}),[s]),(0,l.useEffect)((()=>{S()}),[S]);const b=e=>g.some((s=>s.StaffId===e.StaffId)),k=e=>{if(b(e))return"pr-20"},q=e=>e.ListRequest.length;return s?x&&(0,p.jsxs)("div",{ref:r,className:"index-popup-lst-friends",children:[(0,p.jsxs)("div",{className:"header-popup",children:[(0,p.jsx)("div",{}),(0,p.jsx)("div",{className:"header-popup__title",children:"Danh s\xe1ch th\xe0nh vi\xean"}),(0,p.jsx)(a.A,{color:"link",onClick:t,children:"X"})]}),(0,p.jsxs)("div",{className:"body-popup",children:[(0,p.jsx)("div",{className:"body-popup__search",children:(0,p.jsx)(h.A,{className:"cus-input",type:"text",placeholder:"T\xecm ki\u1ebfm th\xe0nh vi\xean"})}),(0,p.jsx)("div",{className:"body-popup__lstStaffs",children:v?N():u.map(((e,s)=>(0,p.jsxs)("div",{onClick:()=>(e=>{const s=g.findIndex((s=>s.StaffId===e.StaffId)),t=g.slice();if(-1!==s){t.splice(s,1);const l={RequestId:d.Request_Id,StaffId:e.StaffId};(0,o.Pq)("Operation/UnAssignRequest","POST",JSON.stringify(l),!1,!1).then(c)}else{t.push(e);const s={RequestId:d.Request_Id,StaffId:e.StaffId,CreateDate:new Date};(0,o.Pq)("Operation/AssignRequest","POST",JSON.stringify(s),!1,!1).then(c)}_(t),b(e)})(e),className:"body-popup__lstStaffs--staffs",children:[(0,p.jsxs)("div",{className:"left-staff",children:[(0,p.jsx)("div",{className:"left-staff__avatar",children:e.avatar?(0,p.jsx)("img",{className:"avatar-cus",src:e.avatar,alt:""}):(0,p.jsx)("div",{className:"avatar-cus",children:(0,p.jsx)("div",{className:"avatar-cus__name",children:y(e.StaffName)})})}),(0,p.jsx)("div",{className:"left-staff__name",children:e.StaffName})]}),(0,p.jsxs)("div",{className:"right-staff",children:[(0,p.jsxs)("div",{className:`${k(e)} num-request`,children:[q(e)," ",""," ",(0,p.jsx)(i.A,{fa:"tags"})]}),b(e)?(0,p.jsx)("div",{className:"check-box",children:(0,p.jsx)(i.A,{fa:"check-square-o"})}):(0,p.jsx)(p.Fragment,{children:" "})]})]},s)))})]})]}):null};var S=t(92107),b=t(35102);const k=function(e){return(0,S.A)(new Date(e),new Date,{locale:b.default,addSuffix:!0})};var q=t(59560);t(23103);const C=[{key:"VTM",title:"B\xc1O C\xc1O LI\xcaN QUAN 1",children:[{key:"D1",title:"B\xe1o c\xe1o 1",children:[{key:"928",title:"928-\u0110\u1ea5t v\u01b0\u1eddn. H\u1ed9 L\xea V\u0103n Th\xe0nh, TT V\xe2n Canh, huy\u1ec7n V\xe2n Canh_ 1506367.359386103_ 580769.3282142291",children:null,data:null,is_group:!1},{key:"929",title:"929-\u0111\u1ea5t ven \u0111\u01b0\u1eddng. TT Phong Ph\xfa, huy\u1ec7n T\xe2y S\u01a1n_ 1540106.6907471302_ 572681.9368402063",children:null,data:null,is_group:!1}],data:null,is_group:!1},{key:"N1",title:"B\xe1o c\xe1o 2",children:[{key:"1061",title:"1061-Tr\u1ea1m bi\u1ebfn \xe1p Ph\u01b0\u01a1ng Th\xe1i (Ph\u01b0\u01a1ng Th\xe1i - C\xe1t Ch\xe1nh - Ph\xf9 C\xe1t)(604223-1541986)",children:null,data:null,is_group:!1}],data:null,is_group:!1}],data:null,is_group:!0},{key:"DQT",title:"B\xc1O C\xc1O LI\xcaN QUAN 2",children:[{key:"D1",title:"B\xc1O C\xc1O 4",children:[{key:"1073",title:"1073-\u0110\u1ea1i l\xfd b\xe1n l\u1ebb XD - Cty TNHH T\u1ea5n Th\xe0nh (92A \u0110\xe0o T\u1ea5n - TT Tuy Ph\u01b0\u1edbc - Tuy Ph\u01b0\u1edbc)(597907-1529162)",children:null,data:null,is_group:!1},{key:"1074",title:"1074-Caf\xe9 Kh\xe1nh Duy (15 \u0110\xe0o T\u1ea5n - TT Tuy Ph\u01b0\u1edbc - Tuy Ph\u01b0\u1edbc)(596837-1528598)",children:null,data:null,is_group:!1}],data:null,is_group:!1}],data:null,is_group:!0}];var T=t(1254);const I=function(e){let{}=e;return(0,p.jsx)("div",{className:"index-tree-report",style:{margin:"10px",overflow:"auto"},children:(0,p.jsx)("div",{children:0!==C.length?C.map(((e,s)=>(0,p.jsxs)(l.Fragment,{children:[(0,p.jsx)(T.A,{style:{fontSize:"14px",lineHeight:"10px",padding:"6px 12px 8px",marginTop:"5px"},color:"primary",children:e.title}),(0,p.jsx)(q.A,{clasName:"myCls",children:e.children.map((s=>(0,p.jsx)(q.n,{title:s.title,loaiQT:e.key,children:s.children&&s.children.map((t=>(0,p.jsx)(q.n,{keyMoiTruong:s.key,title:t.title,loaiQT:e.key},t.key)))},s.key)))})]},e.key))):(0,p.jsx)("div",{className:"alert alert-warning",children:"Kh\xf4ng c\xf3 trong d\u1eef li\u1ec7u"})})})};var P=t(21205);const R=function(e){let{isOpen:s}=e;return console.log(s),(0,p.jsxs)("div",{className:"index-import-info",children:[(0,p.jsx)("div",{style:{width:"100%",fontSize:"18px",textAlign:"end",fontWeight:"700"},children:"M\u1eabu bi\u1ec3u s\u1ed1: 1.01"}),(0,p.jsx)("div",{style:{width:"100%",fontSize:"18px",textAlign:"start",fontWeight:"700"},children:"C\u01a1 quan th\u1ef1c hi\u1ec7n: UBND T\u1ec9nh/Th\xe0nh ph\u1ed1: ..."}),(0,p.jsx)("div",{style:{width:"100%",fontSize:"18px",textAlign:"center",fontWeight:"700"},children:"B\xc1O C\xc1O T\xccNH H\xccNH VAY L\u1ea0I V\u1ed0N ODA, VAY \u01afU \u0110\xc3I N\u01af\u1edaC NGO\xc0I C\u1ee6A CH\xcdNH PH\u1ee6"}),(0,p.jsx)("div",{style:{width:"100%",fontSize:"14px",textAlign:"center",fontWeight:"700",paddingTop:"10px"},children:"K\u1ef3 b\xe1o c\xe1o: t\u1eeb ng\xe0y ...... \u0111\u1ebfn ng\xe0y ......"}),(0,p.jsx)("div",{style:{width:"100%",fontSize:"18px",textAlign:"end",fontWeight:"600"},children:(0,p.jsx)("i",{children:"\u0110\u01a1n v\u1ecb: ...................."})}),(0,p.jsxs)(P.A,{bordered:!0,children:[(0,p.jsxs)("thead",{children:[(0,p.jsxs)("tr",{style:{textAlign:"center"},children:[(0,p.jsx)("th",{rowSpan:2,children:"STT"}),(0,p.jsx)("th",{rowSpan:2,children:"T\xean d\u1ef1 \xe1n/Ch\u01b0\u01a1ng tr\xecnh"}),(0,p.jsx)("th",{rowSpan:2,children:"Ngu\u1ed3n v\u1ed1n vay l\u1ea1i"}),(0,p.jsx)("th",{rowSpan:2,children:"Ngo\u1ea1i t\u1ec7"}),(0,p.jsx)("th",{rowSpan:2,children:"D\u01b0 n\u1ee3 \u0111\u1ea7u k\u1ef3"}),(0,p.jsx)("th",{rowSpan:2,children:"D\u01b0 n\u1ee3 \u0111\u1ea7u k\xec qu\xfd NV\u0110"}),(0,p.jsx)("th",{rowSpan:2,children:"R\xf3t v\u1ed1n trong k\xec"}),(0,p.jsx)("th",{colSpan:5,children:"Tr\u1ea3 n\u1ee3 trong k\xec"}),(0,p.jsx)("th",{rowSpan:2,children:"D\u01b0 n\u1ee3 cu\u1ed1i k\xec"}),(0,p.jsx)("th",{rowSpan:2,children:"D\u01b0 n\u1ee3 cu\u1ed1i k\xec qu\xfd VN\u0110"}),(0,p.jsx)("th",{colSpan:5,children:"N\u1ee3 qu\xe1 h\u1ea1n"})]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{children:"G\u1ed1c"}),(0,p.jsx)("th",{children:"L\xe3i"}),(0,p.jsx)("th",{children:"Ph\xed theo H\u0110 vay"}),(0,p.jsx)("th",{children:"Ph\xed QLCVL"}),(0,p.jsx)("th",{children:"C\u1ed9ng"}),(0,p.jsx)("th",{children:"G\u1ed1c"}),(0,p.jsx)("th",{children:"L\xe3i"}),(0,p.jsx)("th",{children:"Ph\xed theo H\u0110 vay"}),(0,p.jsx)("th",{children:"Ph\xed QLCVL"}),(0,p.jsx)("th",{children:"C\u1ed9ng"})]}),(0,p.jsxs)("tr",{style:{textAlign:"center"},children:[(0,p.jsx)("th",{children:"1"}),(0,p.jsx)("th",{children:"2"}),(0,p.jsx)("th",{children:"3"}),(0,p.jsx)("th",{children:"4"}),(0,p.jsx)("th",{children:"5"}),(0,p.jsx)("th",{children:"6"}),(0,p.jsx)("th",{children:"7"}),(0,p.jsx)("th",{children:"8"}),(0,p.jsx)("th",{children:"9"}),(0,p.jsx)("th",{children:"10"}),(0,p.jsx)("th",{children:"11"}),(0,p.jsx)("th",{children:"12"}),(0,p.jsx)("th",{children:"13"}),(0,p.jsx)("th",{children:"14"}),(0,p.jsx)("th",{children:"15"}),(0,p.jsx)("th",{children:"16"}),(0,p.jsx)("th",{children:"17"}),(0,p.jsx)("th",{children:"18"}),(0,p.jsx)("th",{children:"19"})]})]}),(0,p.jsxs)("tbody",{children:[(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{style:{textAlign:"center",lineHeight:"30px"},children:"I"}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{style:{width:"135px"},placeholder:"Nh\u1eadp t\xean d\u1ef1 \xe1n"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})})]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{style:{textAlign:"center",lineHeight:"30px"},children:"I.1"}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{style:{width:"135px"},placeholder:"Nh\u1eadp"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})})]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{style:{textAlign:"center",lineHeight:"30px"},children:"I.2"}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{style:{width:"135px"},placeholder:"Nh\u1eadp"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})})]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{style:{textAlign:"center",lineHeight:"30px"},children:"II"}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{style:{width:"135px"},placeholder:"Nh\u1eadp t\xean d\u1ef1 \xe1n"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})}),(0,p.jsx)("td",{children:(0,p.jsx)(h.A,{placeholder:"-"})})]}),(0,p.jsxs)("tr",{children:[(0,p.jsx)("th",{style:{textAlign:"center",lineHeight:"30px"}}),(0,p.jsxs)("td",{children:["T\u1ed5ng c\u1ed9ng ",(0,p.jsx)("br",{})," USD ",(0,p.jsx)("br",{})," EUR ",(0,p.jsx)("br",{})," JPY ",(0,p.jsx)("br",{})," KRW ",(0,p.jsx)("br",{})," -"," ",(0,p.jsx)("br",{})," T\u1ed5ng qu\u1ef7 USD ",(0,p.jsx)("br",{})," T\u1ed5ng qu\u1ef7 VN\u0110 ",(0,p.jsx)("br",{})," T\u1ed5ng qu\u1ef7"]}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"}),(0,p.jsx)("td",{children:"-"})]})]})]}),(0,p.jsx)("div",{style:{fontWeight:"600"},children:"Ch\xfa \xfd:"}),(0,p.jsx)("div",{children:"- C\u1ed9t 6: \xc1p d\u1ee5ng t\u1ef7 gi\xe1 ho\u1ea1ch to\xe1n ng\xe2n s\xe1ch nh\xe0 n\u01b0\u1edbc do B\u1ed9 t\xe0i ch\xednh c\xf4ng b\u1ed1 t\u1ea1i th\u1eddi \u0111i\u1ec3m \u0111\u1ea7u k\u1ef3 b\xe1o c\xe1o:"}),(0,p.jsx)("div",{children:"- C\u1ed9t 14: \xc1p d\u1ee5ng t\u1ef7 gi\xe1 ho\u1ea1ch to\xe1n ng\xe2n s\xe1ch nh\xe0 n\u01b0\u1edbc do B\u1ed9 t\xe0i ch\xednh c\xf4ng b\u1ed1 t\u1ea1i th\u01a1i \u0111i\u1ec3m cu\u1ed1i k\u1ef3 b\xe1o c\xe1o:"})]})};const w=function(e){let{request:s}=e;const[t,n]=(0,l.useState)(null),[d,c]=(0,l.useState)(!1),[r,x]=(0,l.useState)([]),[u,m]=(0,l.useState)(s?s.RequestTitle:""),[v,g]=(0,l.useState)(s?s.RequestDecr:""),[N,A]=(0,l.useState)(!1),S=(0,l.useCallback)((()=>{s&&(0,o.Pq)(`Operation/RequestStatus?RequestId=${s.Request_Id}`,"GET",null,!1).then((e=>{n(e[0])}))}),[]),b=(0,l.useCallback)((()=>{s&&(0,o.Pq)(`Operation/RequestComment?RequestId=${s.Request_Id}`,"GET",null,!1,!1).then((e=>x(e)))}),[]),q=()=>{const e={RequestTitle:u,RequestDesr:v};(0,o.Pq)(`Requests(guid'${s.Request_Id}')`,"PATCH",JSON.stringify(e),!0,!1)};(0,l.useEffect)((()=>{S(),b()}),[S,b]);const C=()=>{c(!1)},T=()=>{S()};return(0,p.jsxs)("div",{className:"index-detail-request",children:[(0,p.jsxs)("div",{className:"left",children:[(0,p.jsxs)("div",{className:"request-title",children:[(0,p.jsxs)("div",{className:"request-title__title",children:[(0,p.jsx)(i.A,{fa:"sort-amount-asc"})," Ti\xeau \u0111\u1ec1"]}),(0,p.jsx)("div",{className:"request-title__content",children:(0,p.jsx)("textarea",{onBlur:q,className:"input-title",onChange:e=>m(e.target.value),defaultValue:null===t||void 0===t?void 0:t.RequestTitle,placeholder:"Ti\xeau \u0111\u1ec1 c\u1ee7a y\xeau c\u1ea7u...",name:"title"})})]}),(0,p.jsxs)("div",{className:"members",children:[(0,p.jsxs)("div",{style:{width:"50%"},children:[(0,p.jsxs)("div",{className:"members__title",children:[(0,p.jsx)(i.A,{fa:"address-card "})," \u0110\u1ed1i t\u01b0\u1ee3ng th\u1ef1c hi\u1ec7n b\xe1o c\xe1o"]}),(0,p.jsxs)("div",{className:"members__list",children:[t?t.ListStaff.map(((e,s)=>(0,p.jsx)("div",{className:"member",id:"tooltip",children:e.avatar?(0,p.jsx)("img",{className:"avatar-cus",src:e.avatar,alt:""}):(0,p.jsx)("div",{className:"avatar-cus",children:(0,p.jsx)("div",{className:"avatar-cus__name",children:y(e.StaffName)})})},s))):(0,p.jsx)(p.Fragment,{children:" "}),(0,p.jsxs)("div",{className:"member",children:[(0,p.jsx)(a.A,{onClick:()=>c(!d),color:"link",children:(0,p.jsx)(i.A,{fa:"plus"})}),(0,p.jsx)("div",{className:"popup_lst_friends",children:(0,p.jsx)(_,{isOpen:d,request:s||[],toggle:C,reloadData:T})})]})]})]}),(0,p.jsx)("div",{style:{width:"50%"},children:(0,p.jsxs)("div",{className:"",children:[(0,p.jsxs)("div",{className:"members__title",children:[(0,p.jsx)(i.A,{fa:"address-card "})," C\u01a1 quan nh\u1eadn b\xe1o c\xe1o:"]}),(0,p.jsxs)("div",{className:"members__list",children:[t?t.ListStaff.map(((e,s)=>(0,p.jsx)("div",{className:"member",id:"tooltip",children:e.avatar?(0,p.jsx)("img",{className:"avatar-cus",src:e.avatar,alt:""}):(0,p.jsx)("div",{className:"avatar-cus",children:(0,p.jsx)("div",{className:"avatar-cus__name",children:y(e.StaffName)})})},s))):(0,p.jsx)(p.Fragment,{children:" "}),(0,p.jsxs)("div",{className:"member",children:[(0,p.jsx)(a.A,{onClick:()=>c(!d),color:"link",children:(0,p.jsx)(i.A,{fa:"plus"})}),(0,p.jsx)("div",{className:"popup_lst_friends",children:(0,p.jsx)(_,{isOpen:d,request:s||[],toggle:C,reloadData:T})})]})]})]})})]}),(0,p.jsxs)("div",{className:"steppers",children:[(0,p.jsxs)("div",{className:"steppers__title",children:[(0,p.jsx)(i.A,{fa:"step-forward"})," Quy tr\xecnh th\u1ef1c hi\u1ec7n"]}),(0,p.jsx)("div",{className:"steppers__list",children:"B\u01b0\u1edbc 1 ---- B\u01b0\u1edbc 2 ---- B\u01b0\u1edbc 3"})]}),(0,p.jsxs)("div",{className:"due-date",children:[(0,p.jsxs)("div",{className:"due-date__title",children:[(0,p.jsx)(i.A,{fa:"clock-o"})," Th\u1eddi gian:"," "]}),(0,p.jsxs)("div",{className:"due-date__time",children:[(0,p.jsxs)("div",{className:"selected-time",children:[(0,p.jsx)("div",{style:{marginRight:"10px"},children:"Th\u1eddi h\u1ea1n ch\u1ed1t s\u1ed1 li\u1ec7u b\xe1o c\xe1o:"}),(0,p.jsx)("div",{children:(0,p.jsx)(f,{value:s?s.StartDate:null,placeholder:"ng\xe0y/th\xe1ng/n\u0103m"})})]}),(0,p.jsxs)("div",{className:"selected-time",children:[(0,p.jsx)("div",{style:{marginRight:"10px"},children:"Th\u1eddi h\u1ea1n g\u1eedi b\xe1o c\xe1o: "}),(0,p.jsx)("div",{children:(0,p.jsx)(f,{value:s?s.EndDate:null,placeholder:"ng\xe0y/th\xe1ng/n\u0103m"})})]})]})]}),(0,p.jsxs)("div",{className:"descriptions",children:[(0,p.jsxs)("div",{className:"descriptions__title",children:[(0,p.jsx)(i.A,{fa:"align-left"})," N\u1ed9i dung"," "]}),(0,p.jsx)("div",{className:"descriptions__content",children:(0,p.jsx)("div",{className:"description",children:(0,p.jsx)(h.A,{onBlur:()=>q(),onChange:e=>g(e.target.value),className:"input-textarea",defaultValue:null===t||void 0===t?void 0:t.RequestDecr,placeholder:"Th\xeam n\u1ed9i dung...",type:"textarea",name:"description",id:"description"})})})]}),(0,p.jsxs)("div",{className:"comments",children:[(0,p.jsxs)("div",{className:"comments__title ",children:[(0,p.jsx)(i.A,{fa:"comments "})," Trao \u0111\u1ed5i th\xf4ng tin"," "]}),(0,p.jsxs)("div",{className:"comments__content",children:[(0,p.jsxs)("div",{style:{width:"100%",display:"flex"},children:[(0,p.jsx)("div",{className:"comment__avatar",children:(0,p.jsx)("img",{className:"avatar-cus",src:"",alt:""})}),(0,p.jsxs)("div",{className:"comment",children:[(0,p.jsx)("div",{className:"comment__input",children:(0,p.jsx)("textarea",{className:"input-text",placeholder:"Vi\u1ebft b\xecnh lu\u1eadn...",name:"comment"})}),(0,p.jsxs)("div",{className:"comment__save",children:[(0,p.jsx)("div",{className:"btn-save-comment",children:(0,p.jsx)(a.A,{color:"primary",children:"G\u1eedi"})}),(0,p.jsx)("div",{className:"attach",children:(0,p.jsxs)(a.A,{color:"link",children:[(0,p.jsx)(i.A,{fa:"paperclip"})," T\u1ec7p \u0111\xednh k\xe8m"]})})]})]})]}),r.map(((e,s)=>(0,p.jsxs)("div",{style:{width:"100%",display:"flex",marginTop:"10px"},children:[(0,p.jsx)("div",{className:"comment__avatar",children:e.avatar?(0,p.jsx)("img",{className:"avatar-cus",src:"",alt:""}):(0,p.jsx)("div",{className:"avatar-cus",children:y(e.CommentPerson)})}),(0,p.jsxs)("div",{style:{width:"100%"},children:[(0,p.jsxs)("div",{className:"owner_comment",children:[(0,p.jsx)("div",{className:"owner__name",children:e.CommentPerson}),(0,p.jsx)("div",{children:k(e.CommentDate)})]}),(0,p.jsx)("div",{className:"comment",style:{width:"100%"},children:(0,p.jsx)("div",{className:"comment__input",children:(0,p.jsx)("div",{className:"input-text",children:e.Content})})})]})]},s)))]})]})]}),(0,p.jsxs)("div",{className:"right",children:[(0,p.jsx)("div",{className:"btn-box",children:(0,p.jsxs)("div",{className:"cus-btn file",children:[(0,p.jsx)(a.A,{style:{width:"100%"},color:"link",children:"T\u1ec7p \u0111\xednh k\xe8m"}),(0,p.jsx)("input",{type:"file",name:"myfile"})]})}),(0,p.jsxs)("div",{className:"lst-file-box",children:[(0,p.jsx)("div",{className:"lst-file-box__title",children:"Danh s\xe1ch h\u1ed3 s\u01a1"}),(0,p.jsx)("div",{className:"cus-btn-file",children:(0,p.jsxs)(a.A,{style:{width:"100%"},color:"link",children:[" ",(0,p.jsx)(i.A,{fa:"file"})," M\u1eabu \u0111\u1ec1 c\u01b0\u01a1ng b\xe1o c\xe1o"]})})]}),(0,p.jsxs)("div",{className:"tree-report-box",children:[(0,p.jsx)("div",{className:"tree-report-box__title",children:"B\xe1o c\xe1o li\xean quan"}),(0,p.jsx)(I,{})]}),(0,p.jsx)("div",{className:"btn-box",children:(0,p.jsx)("div",{className:"cus-btn file",children:(0,p.jsxs)(a.A,{onClick:()=>A(!0),style:{width:"100%"},color:"link",children:["\u0110i t\u1edbi ch\u1ee9c n\u0103ng nh\u1eadp li\u1ec7u"," ",(0,p.jsx)(i.A,{fa:"arrow-right"})," "]})})})]}),(0,p.jsx)(j.A,{open:N,title:"Nh\u1eadp li\u1ec7u",onClose:()=>{A(!1)},children:(0,p.jsx)(R,{isOpen:N})})]})},O="Complain",D="Repair";var E=t(34057);const L=function(e){let{isOpen:s,cancel:t,reloadData:n}=e;const[d,c]=(0,l.useState)([]),[r,h]=(0,l.useState)({}),[j,u]=(0,l.useState)(""),[m,v]=(0,l.useState)(""),[f,g]=(0,l.useState)([]),[N,A]=(0,l.useState)({}),y=(0,l.useCallback)((()=>{(0,o.Pq)("ListRequestTypes","GET",null,!0,!1).then((e=>{const s=[];e.value.forEach((e=>{e&&("Complain"===e.Name&&s.push({PkRequestType_Id:e.PkRequestType_Id,Name:"Khi\u1ebfu n\u1ea1i"}),"Repair"===e.Name&&s.push({PkRequestType_Id:e.PkRequestType_Id,Name:"S\u1eeda ch\u1eeda"}))})),c(s)}))}),[]),_=(0,l.useCallback)((()=>{(0,o.Pq)("Operation/ListRoom","GET",null,!1,!1).then((e=>{g(e)}))}),[]);return(0,l.useEffect)((()=>{s&&(_(),y())}),[s,_,y]),(0,p.jsx)("div",{className:"index-create-request",children:s&&(0,p.jsxs)("div",{className:"body-create-form",children:[(0,p.jsx)("div",{className:"request-title",children:(0,p.jsx)("textarea",{className:"input-textarea",style:{height:"40px"},onChange:e=>u(e.target.value),placeholder:"Nh\u1eadp ti\xeau \u0111\u1ec1 y\xeau c\u1ea7u (*)...",name:"title"})}),(0,p.jsx)("div",{className:"request-title",children:(0,p.jsx)("textarea",{className:"input-textarea",onChange:e=>v(e.target.value),placeholder:"Nh\u1eadp m\xf4 t\u1ea3...",name:"title"})}),(0,p.jsxs)("div",{className:"addrees",children:[f.length?(0,p.jsx)(E.Ay,{options:f,menuPosition:"fixed",className:"cus-select",placeholder:(0,p.jsx)("div",{style:{fontSize:"13px"},children:"\u0110\u1ecba ch\u1ec9 nh\xe0 (*)"}),onChange:e=>A(e),getOptionValue:e=>e,getOptionLabel:e=>e.Name}):(0,p.jsx)(p.Fragment,{children:" "}),d.length?(0,p.jsx)(E.Ay,{options:d,menuPosition:"fixed",className:"cus-select",placeholder:(0,p.jsx)("div",{style:{fontSize:"13px"},children:"Lo\u1ea1i y\xeau c\u1ea7u (*)"}),onChange:e=>h(e),getOptionValue:e=>e,getOptionLabel:e=>e.Name}):(0,p.jsx)(p.Fragment,{children:" "})]}),(0,p.jsxs)("div",{className:"footer-create-form",children:[(0,p.jsx)(a.A,{onClick:()=>{if(j)if(N.Room_Id)if(r.PkRequestType_Id){const e={RoomId:N.Room_Id,RequestTitle:j,RequestTypeId:r.PkRequestType_Id,BlockId:N.Block_Id,RequestDesr:m};(0,o.Pq)("Operation/CreateRequest","POST",JSON.stringify(e),!1,!1).then(n)}else(0,x.a3)("Ch\u01b0a c\xf3 lo\u1ea1i y\xeau c\u1ea7u, ch\u01b0a th\u1ec3 l\u01b0u!");else(0,x.a3)("Ch\u01b0a c\xf3 \u0111\u1ecba ch\u1ec9 nh\xe0, kh\xf4ng th\u1ec3 l\u01b0u!");else(0,x.a3)("Ch\u01b0a c\xf3 n\u1ed9i dung, kh\xf4ng th\u1ec3 l\u01b0u!")},color:"primary",size:"sm",children:"Th\xeam"}),(0,p.jsx)(a.A,{onClick:t,color:"link",size:"sm",children:(0,p.jsx)(i.A,{fa:"times"})})]})]})})},B=[{id:1,code:"firstCreated",name:"M\u1edbi nh\u1ea5t"},{id:1,code:"lastCreated",name:"C\u0169 nh\u1ea5t"},{id:1,code:"sortByName",name:"Theo t\xean"}],H=e=>`${new Date(e).getDate()}/${new Date(e).getMonth()+1}`;const V=function(){const e=(0,l.useRef)(),[s,t]=(0,l.useState)(!1),[u,m]=(0,l.useState)(null),[v,f]=(0,l.useState)(null),[g,N]=(0,l.useState)(!1),[S,b]=(0,l.useState)(!1),[k,q]=(0,l.useState)([]),[C,T]=(0,l.useState)(""),[I,P]=(0,l.useState)(!1),[R,V]=(0,l.useState)(!1),[z,G]=(0,l.useState)(null),[$,F]=(0,l.useState)(""),[J,M]=(0,l.useState)([]),[Q,U]=(0,l.useState)(null),W=(0,l.useRef)(null),Y=()=>{P(!1)};A(e,(()=>N(!1)));const K=(0,l.useCallback)((()=>{Q&&(0,o.Pq)("Operation/RequestStatus?RequestId=","GET",null,!1).then((e=>{const s={...Q};e.forEach((e=>{Object.entries(s).forEach((s=>{let[t,l]=s;if(e.StatusName===t){const s=l.items.findIndex((s=>s.Request_Id===e.Request_Id));-1===s?l.items.push(e):l.items.splice(s,1,e)}}))})),m(s)})).catch((()=>t(!0)))}),[Q]),X=(0,l.useCallback)((()=>{(0,o.Pq)("ListStatus","GET",null,!0,!1).then((e=>q(e.value)))}),[]),Z=e=>k.find((s=>s.StatusName===e))?k.find((s=>s.StatusName===e)).PkStatus_Id:"",ee=(0,l.useCallback)((()=>{(0,o.Pq)("Processes","GET",null,!0).then((async e=>{M(e.value),F(e.value[0].PkProcess_Id),await te(e.value[0]).then((e=>{const s=e.value.sort(((e,s)=>e.StatusOrder<s.StatusOrder?-1:e-s)).reduce(((e,s)=>(e[s.StatusName]={name:s.StatusName,items:[]},e)),{});U(s)}))}))}),[]),se=()=>{K()},te=e=>(0,o.Pq)(`ListStatus?$filter=FkStatus_ProcessId eq (guid'${e.PkProcess_Id}')`,"GET",null,!0,!1).then((e=>e)),le=(0,l.useCallback)((()=>{V(!0)}),[W]);return(0,l.useEffect)((()=>{W.current&&R&&W.current.scrollIntoView({behavior:"smooth"})}),[W,R]),(0,l.useEffect)((()=>{X(),ee()}),[X,ee]),(0,l.useEffect)((()=>{X()}),[X]),(0,l.useEffect)((()=>{z&&te(z)}),[te,z]),(0,l.useEffect)((()=>{K()}),[K]),s?(0,p.jsxs)("div",{children:["failed!"," ",(0,p.jsx)(a.A,{color:"primary",onClick:K,children:"retry"})]}):u?(0,p.jsxs)("div",{className:"index-ban-quan-ly",children:[(0,p.jsxs)("div",{className:"header-index-bql",children:[(0,p.jsx)("div",{className:"header-index-bql__search",children:(0,p.jsxs)(d.A,{children:[(0,p.jsx)(c.A,{addonType:"prepend",children:(0,p.jsx)(r.A,{children:(0,p.jsx)(i.A,{fa:"search"})})}),(0,p.jsx)(h.A,{placeholder:"T\xean c\xf4ng vi\u1ec7c..."}),(0,p.jsx)(c.A,{addonType:"append",children:(0,p.jsx)(r.A,{children:(0,p.jsx)(a.A,{color:"link",children:(0,p.jsx)(i.A,{fa:"chevron-circle-down "})})})})]})}),(0,p.jsx)("div",{style:{width:"50%",display:"flex",justifyContent:"flex-end"},children:0!==J.length?(0,p.jsx)(E.Ay,{options:J,menuPosition:"fixed",className:"cus-select",placeholder:(0,p.jsx)("div",{style:{fontSize:"13px"},children:"Ch\u1ecdn quy tr\xecnh (*)"}),onChange:e=>{return G(s=e),F(s.PkProcess_Id),void te(s).then((e=>{const s=e.value.sort(((e,s)=>e.StatusOrder<s.StatusOrder?-1:e-s)).reduce(((e,s)=>(e[s.StatusName]={name:s.StatusName,items:[]},e)),{});U(s)}));var s},value:J.find((e=>e.PkProcess_Id===$)),getOptionValue:e=>e.PkProcess_Id,getOptionLabel:e=>e.ProcessName}):(0,p.jsx)(p.Fragment,{children:" "})})]}),(0,p.jsx)("div",{className:"wrapper-ban-quan-ly",children:(0,p.jsx)(n.JY,{onDragEnd:e=>((e,s)=>{if(!e.destination)return;const{source:t,destination:l}=e;if(t.droppableId!==l.droppableId){const e=s[t.droppableId],n=s[l.droppableId],i=[...e.items],a=[...n.items],[d]=i.splice(t.index,1);a.splice(l.index,0,d),m({...s,[t.droppableId]:{...e,items:i},[l.droppableId]:{...n,items:a}});const c={RequestId:d.Request_Id,StatusId:Z(l.droppableId),CreateDate:new Date};(0,o.Pq)("Operation/ChangeStatus","POST",JSON.stringify(c),!1,!1)}else{const e=s[t.droppableId],n=[...e.items],[i]=n.splice(t.index,1);n.splice(l.index,0,i),m({...s,[t.droppableId]:{...e,items:n}})}})(e,u),children:Object.entries(u).map(((s,t)=>{let[l,d]=s;return(0,p.jsxs)("div",{className:"cus-card",children:[(0,p.jsxs)("div",{className:"cus-card__header",children:[(0,p.jsxs)("div",{className:"cus-card__header--title",children:[(0,p.jsx)("div",{children:d.name}),(0,p.jsxs)("div",{children:[d.items.length," ",(0,p.jsx)(i.A,{fa:"tasks"})," "]})]}),(0,p.jsxs)("div",{className:"cus-card__header--extents",children:[(0,p.jsx)("div",{className:"three-dot",onClick:()=>(e=>{e&&(N(!g),P(!1),T(e))})(d.name),children:(0,p.jsx)(i.A,{fa:"ellipsis-h"})}),g&&d.name===C&&(0,p.jsxs)("div",{className:"extents-box",ref:e,children:[(0,p.jsxs)("div",{className:"extents-box__header",children:[(0,p.jsx)("span",{children:"S\u1eafp x\u1ebfp theo"}),(0,p.jsx)(a.A,{color:"link",className:"close-extends",onClick:()=>N(!1),children:"X"})]}),(0,p.jsx)("div",{className:"extents-box__body",children:B.map(((e,s)=>(0,p.jsxs)("div",{className:"extents-box__body--sort",children:[" ",e.name," "]},s)))})]})]})]}),(0,p.jsxs)("div",{className:"cus-card__body",children:[(0,p.jsx)(n.gL,{droppableId:l,children:(e,s)=>(0,p.jsxs)("div",{...e.droppableProps,ref:e.innerRef,style:{minHeight:"110px",background:s.isDraggingOver?"lightblue":"white"},children:[d.items.map(((e,s)=>(0,p.jsx)(n.sx,{draggableId:e.Request_Id,index:s,children:(s,t)=>{return(0,p.jsx)("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,style:{userSelect:"none",padding:"7px 10px",outline:"none",...s.draggableProps.style},children:(0,p.jsx)("div",{className:"cus-card__body--task",children:(0,p.jsx)("div",{className:"requests",children:(0,p.jsxs)("div",{className:"requests__contants",children:[(0,p.jsxs)("div",{className:"header",children:[(0,p.jsxs)("div",{onClick:()=>(e=>{f(e),b(!0)})(e),className:"header__title",children:[(0,p.jsx)("span",{style:{marginRight:"5px",fontSize:"20px"},className:`${l=e.RequestType,l===O?"complain":l===D?"repair":void 0}`,children:(0,p.jsx)(i.A,{fa:"bookmark"})})," ",e.RequestTitle]}),("Ho\xe0n th\xe0nh"===d.name||"T\u1ea1m d\u1eebng"===d.name)&&(0,p.jsx)("div",{className:"requests__del",onClick:()=>(0,x.A1)(`B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn mu\u1ed1n \u0111\xf3ng c\xf4ng vi\u1ec7c ${e.RequestTitle} n\xe0y kh\xf4ng?`).then((()=>{(e=>{let s=null;m((t=>{const l={...t};return Object.entries(l).forEach((t=>{let[n,i]=t;const a={name:i.name,items:i.items},d=a.items.findIndex((s=>s.Request_Id===e.Request_Id));-1!==d&&(s={...a.items[d]},l[n]={...l[n],items:l[n].items.filter(((e,s)=>s!==d))})})),l}));const t={RequestId:s.Request_Id,StatusId:"686bde79-6726-4c27-a4dd-5637139d0418",CreateDate:new Date};(0,o.Pq)("Operation/ChangeStatus","POST",JSON.stringify(t),!1,!1)})(e)})),children:(0,p.jsx)(i.A,{fa:"lock"})})]}),(0,p.jsxs)("div",{className:"members",children:[(0,p.jsxs)("div",{style:{display:"flex",width:"55%",flexWrap:"wrap"},children:[e.ListStaff.map(((e,s)=>(0,p.jsx)("div",{className:"members__list",children:e.avatar?(0,p.jsx)("img",{className:"avatar-cus",src:e.avatar,alt:""}):(0,p.jsx)("div",{className:"avatar-cus",children:(0,p.jsx)("div",{className:"avatar-cus__name",children:y(e.StaffName)})})},s))),(0,p.jsxs)("div",{className:"members__plus",children:[(0,p.jsx)("div",{onClick:s=>((e,s)=>{s&&(P(!I),T(e),f(s))})(d.name,e),className:"members__plus--icon",children:(0,p.jsx)(i.A,{fa:"user-plus"})}),I&&d.name===C&&e.Request_Id===v.Request_Id&&(0,p.jsx)("div",{style:{position:"absolute",zIndex:"99"},children:(0,p.jsx)(_,{isOpen:I,toggle:Y,lstStaffAssigned:e.ListStaff,request:e,reloadData:se})})]})]}),(0,p.jsxs)("div",{className:"create-date",children:[(0,p.jsxs)("div",{className:"info",children:[(0,p.jsxs)("div",{className:"chat",children:["0"," ",(0,p.jsx)(i.A,{fa:"commenting-o"})]}),(0,p.jsxs)("div",{className:"attachment",children:["0"," ",(0,p.jsx)(i.A,{fa:"paperclip"})]})]}),(0,p.jsxs)("div",{className:"date-cus",children:[H(e.StartDate)," ",(0,p.jsx)(i.A,{fa:"hourglass-end"})," ",H(e.EndDate)]})]})]})]})})})});var l}},e.Request_Id))),e.placeholder]})},l),l===Object.keys(Q)[0]&&(0,p.jsx)("div",{id:"footer",children:(0,p.jsx)("div",{ref:W,className:"cus-card-create scroll-cus",style:{margin:"10px",display:R?"block":"none"},children:R&&(0,p.jsx)(L,{isOpen:R,cancel:()=>V(!1),reloadData:se})})})]}),l===Object.keys(Q)[0]&&(0,p.jsx)("div",{className:"cus-btn-plus",children:(0,p.jsxs)(a.A,{onClick:le,color:"link",children:[(0,p.jsx)(i.A,{fa:"plus"})," Th\xeam y\xeau c\u1ea7u m\u1edbi"]})})]},l)}))})}),(0,p.jsx)(j.A,{open:S,title:""+(v?"Chi ti\u1ebft lo\u1ea1i b\xe1o c\xe1o":"Th\xeam m\u1edbi"),onClose:()=>{b(!1),K()},children:(0,p.jsx)(w,{request:v})})]}):null}},71984:(e,s,t)=>{t.d(s,{A:()=>a});t(9950);var l=t(18849),n=t(44414);const i=e=>{const{style:s,children:t,...i}=e;return(0,n.jsx)(l.A,{style:{...s,marginRight:2,marginLeft:2},...i,children:t})};i.defaultProps={size:"sm"};const a=i},73613:(e,s,t)=>{t.d(s,{A:()=>i});t(9950);var l=t(44414);const n=e=>{const{fa:s,ariaHidden:t,style:n}=e;return(0,l.jsx)("i",{style:n,className:"fa fa-"+s,"aria-hidden":t})};n.defaultProps={ariaHidden:!0};const i=n}}]);