????

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/8558.fe51abc9.chunk.js

"use strict";(self.webpackChunk_qlxd_frontend=self.webpackChunk_qlxd_frontend||[]).push([[8558,9228],{12757:(e,t,n)=>{n.d(t,{Ay:()=>S});var r=n(35007),i=n(30226),o=n(15685),a=n(4847),c=n(27051),l=n(96447),u=n(37212),s=n(30488),d=n(82210),p=n(67965),f=(n(94137),n(13879),n(29083)),h=(n(67967),n(85912),n(22255)),g=n(47645);function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.A)(e);if(t){var i=(0,s.A)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,u.A)(this,n)}}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=function(e){var t=e.component,n=e.duration,o=void 0===n?1:n,a=e.in,c=(e.onExited,(0,r.A)(e,["component","duration","in","onExited"])),l={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(o,"ms")},exiting:{opacity:0},exited:{opacity:0}};return d.createElement(h.Ay,{mountOnEnter:!0,unmountOnExit:!0,in:a,timeout:o},(function(e){var n={style:A({},l[e])};return d.createElement(t,(0,i.A)({innerProps:n},c))}))},x=function(e){(0,l.A)(n,e);var t=m(n);function n(){var e;(0,a.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).duration=260,e.rafID=void 0,e.state={width:"auto"},e.transition={exiting:{width:0,transition:"width ".concat(e.duration,"ms ease-out")},exited:{width:0}},e.getWidth=function(t){t&&isNaN(e.state.width)&&(e.rafID=window.requestAnimationFrame((function(){var n=t.getBoundingClientRect().width;e.setState({width:n})})))},e.getStyle=function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}},e.getTransition=function(t){return e.transition[t]},e}return(0,c.A)(n,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,i=this.state.width;return d.createElement(h.Ay,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},(function(t){var r=A(A({},e.getStyle(i)),e.getTransition(t));return d.createElement("div",{ref:e.getWidth,style:r},n)}))}}]),n}(d.Component),v=function(e){return function(t){var n=t.in,o=t.onExited,a=(0,r.A)(t,["in","onExited"]);return d.createElement(x,{in:n,onExited:o},d.createElement(e,(0,i.A)({cropWithEllipsis:n},a)))}},b=function(e){return function(t){return d.createElement(O,(0,i.A)({component:e,duration:t.isMulti?260:1},t))}},w=function(e){return function(t){return d.createElement(O,(0,i.A)({component:e},t))}},j=function(e){return function(t){return d.createElement(g.A,(0,i.A)({component:e},t))}};function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var D=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,f.y)({components:t}),i=n.Input,a=n.MultiValue,c=n.Placeholder,l=n.SingleValue,u=n.ValueContainer,s=(0,r.A)(n,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({Input:(e=i,function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=(0,r.A)(t,["in","onExited","appear","enter","exit"]);return d.createElement(e,n)}),MultiValue:v(a),Placeholder:b(c),SingleValue:w(l),ValueContainer:j(u)},s)},P=D();P.Input,P.MultiValue,P.Placeholder,P.SingleValue,P.ValueContainer;const S=(0,p.A)(D,f.B)},20034:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(82210),i=n(71516),o=n(60803),a=n(34211),c=(n(89228),n(14658)),l=n(98991),u=n(22699),s=n(46881),d=n(12757),p=n(35065),f=n(6058);const h=(0,d.Ay)(),g=[{id:1,label:"Xu\u1ea5t t\u1ea5t c\u1ea3",code:"all"},{id:2,label:"L\u1ecdc",code:"filter"}];const m=function(e){let{open:t,onCancel:n,onConfig:d,doiTuong:m}=e;const[y,A]=(0,r.useState)(g[0]),[O,x]=(0,r.useState)(!1),[v,b]=(0,r.useState)([]),[w,j]=(0,r.useState)([]),[E,D]=(0,r.useState)([]),[P,S]=(0,r.useState)([]),C=(0,r.useCallback)((()=>{const e=`$filter=Organization/DoiTuong eq '${m}' and Organization/Status eq true and DuAn/Status eq true`,t="$expand=Organization($select=Id,DoiTuong,OrganName,LuongTheoNgayCong),DuAn($select=Id,Name)",n="$orderby=DuAn/Name asc";c.oF.getAll(`?${t}&${e}&${n}`).then((e=>{let{value:t}=e;const n=[],r=[];for(let i of t){const e=n.findIndex((e=>e.Id===i.OrganId)),t=r.findIndex((e=>e.Id===i.DuAnId));-1===e&&n.push(i.Organization),-1===t&&r.push(i.DuAn)}b(n),j(r)}))}),[m]);return(0,r.useEffect)((()=>{t&&C()}),[t,C]),(0,f.jsx)("div",{className:"index-filter-export",children:(0,f.jsxs)(i.A,{onClose:n,"aria-labelledby":"simple-dialog-title",open:t,disableBackdropClick:!0,disableEscapeKeyDown:!0,maxWidth:"sm",children:[(0,f.jsx)(o.A,{style:{padding:"5px 24px",border:"1px solid #ccc"},id:"simple-dialog-title",children:"Xu\u1ea5t b\u1ea3ng l\u01b0\u01a1ng"}),(0,f.jsxs)(a.A,{children:[(0,f.jsxs)("div",{style:{paddingBottom:"5px",width:300},children:[(0,f.jsx)(l.Ay,{name:"dotLuong",options:g,menuPosition:"fixed",className:"cus-select",placeholder:"Ch\u1ecdn ph\u01b0\u01a1ng th\u1ee9c...",onChange:e=>{var t;A(t=e),"filter"===t.code&&x(!0)},getOptionValue:e=>e,value:g.find((e=>e.code===(null===y||void 0===y?void 0:y.code)))||null,getOptionLabel:e=>e.label}),O&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.A,{children:"Danh s\xe1ch d\u1ef1 \xe1n"}),(0,f.jsx)(l.Ay,{closeMenuOnSelect:!1,menuPosition:"fixed",components:h,isMulti:!0,options:w,onChange:e=>D(e),getOptionValue:e=>e,getOptionLabel:e=>e.Name}),(0,f.jsx)(u.A,{children:"Danh s\xe1ch \u0111\u1ed9i thu\xea"}),(0,f.jsx)(l.Ay,{styles:{width:"200px"},closeMenuOnSelect:!1,components:h,onChange:e=>S(e),getOptionValue:e=>e,getOptionLabel:e=>e.OrganName,menuPosition:"fixed",isMulti:!0,options:v})]})]}),(0,f.jsxs)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:"10px"},children:[(0,f.jsx)(s.A,{style:{marginRight:10},color:"primary",onClick:()=>{if("all"===y.code)d&&d(w.map((e=>e.Id)),v.map((e=>e.Id)));else{if(!E.length)return(0,p.AB)("B\u1ea1n ch\u01b0a ch\u1ecdn d\u1ef1 \xe1n!");if(!P.length)return(0,p.AB)("B\u1ea1n ch\u01b0a ch\u1ecdn \u0111\u1ed9i!");d&&d(E.map((e=>e.Id)),P.map((e=>e.Id)))}},children:"X\xe1c nh\u1eadn"}),(0,f.jsx)(s.A,{onClick:n,children:"H\u1ee7y"})]})]})]})})}},60803:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(30226),i=n(35007),o=n(82210),a=n(30628),c=n(86953),l=n(36467),u=o.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,s=e.disableTypography,d=void 0!==s&&s,p=(0,i.A)(e,["children","classes","className","disableTypography"]);return o.createElement("div",(0,r.A)({className:(0,a.A)(c.root,u),ref:t},p),d?n:o.createElement(l.A,{component:"h2",variant:"h6"},n))}));const s=(0,c.A)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(u)},78188:(e,t,n)=>{function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},78794:(e,t,n)=>{function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{A:()=>r})},89228:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={}}}]);
//# sourceMappingURL=8558.fe51abc9.chunk.js.map