????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/8044.724401dd.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[8044],{71984:(e,t,o)=>{o.d(t,{A:()=>a});o(9950);var s=o(18849),n=o(44414);const r=e=>{const{style:t,children:o,...r}=e;return(0,n.jsx)(s.A,{style:{...t,marginRight:2,marginLeft:2},...r,children:o})};r.defaultProps={size:"sm"};const a=r},71766:(e,t,o)=>{o.d(t,{A:()=>l});var s=o(9950),n=o(85077),r=o(15668),a=o(44414);const i=e=>{const[t,o]=s.useState(!1),{children:i,...l}=e,c=t&&Boolean(l.validation),d=!!l.validation&&Boolean(l.validation.isShowValid);let p=function(e){const{validation:t,value:o}=e;if(!t)return"";let s="";t.required&&!Boolean(o)&&(s="required");t.minChar&&(!Boolean(o)||Boolean(o)&&o.length<t.minChar)&&(s="minChar");!s&&t.maxChar&&Boolean(o)&&o.length>t.maxChar&&(s="maxChar");if(!s&&t.email){RegExp(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i).test(o)||(s="email")}if(!s&&t.characterEnglish){RegExp(/^[a-zA-Z0-9$@$!%*?&#^-_.+]+$/).test(o)||(s="characterEnglish")}if(!s&&t.phonenumber){RegExp(/^[((0-9)-. ]+$/).test(o)||(s="phonenumber")}if(!s&&t.positiveNumbers){RegExp(/^\d*$/).test(o)||(s="positiveNumbers")}!s&&t.regex&&(t.regex.test(o)||(s="regex"));return s}(l),h=!Boolean(p),u=c&&l.validation.text?"function"===typeof l.validation.text?l.validation.text({isValidMessage:p}):"string"===typeof l.validation.text?l.validation.text:"":"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{...l,onFocus:e=>{l.onFocus&&l.onFocus(e),!t&&o(!0)},valid:d&&c?h:void 0,invalid:c?!h:void 0,children:i}),u&&(0,a.jsx)(r.A,{valid:d&&c?h:void 0,children:u})]})};i.defaultProps={bsSize:"sm"};const l=i},71739:(e,t,o)=>{o.d(t,{A:()=>a});var s=o(9950),n=o(44414);class r extends s.Component{constructor(e){super(e),this.state={checked:!1}}componentDidMount(){this.setState({checked:this.props.checked})}componentDidUpdate(e){this.props.checked!==this.state.checked&&this.setState({checked:this.props.checked})}render(){const{styleLabel:e}=this.props;return(0,n.jsxs)("label",{className:"checkbox",style:e,children:[(0,n.jsx)("input",{type:"checkbox",disabled:this.props.disabled,checked:this.state.checked,onChange:e=>{this.setState({checked:e.target.checked}),this.props.onChange(e.target.checked)}}),(0,n.jsx)("span",{children:this.props.label})]})}}const a=r},69754:(e,t,o)=>{o.d(t,{A:()=>x});var s,n=o(57528),r=o(9950),a=o(72348),i=o.n(a),l=(o(4434),o(86006)),c=o(97886),d=o.n(c),p=o(35102),h=o(91729),u=o(44414);(0,a.registerLocale)("vi",p.default);const m=l.Ay.div(s||(s=(0,n.A)(["\n .react-datepicker-wrapper {\n display: block !important;\n position: relative;\n }\n .react-datepicker-popper {\n z-index: 1021;\n }\n .react-datepicker-time__input {\n width: 100% !important;\n }\n"])));class f extends r.Component{constructor(e){super(e),this.handleChange=e=>{if(this.props.onChange){let t=e?(0,h.default)(e,this.props.parseFormat):"";this.props.onChange(t,this.props.name)}this.setState({date:e})},this.state={date:null}}componentDidMount(){let e=this.props.value&&!isNaN(new Date(this.props.value))?new Date(this.props.value):null;this.setState({date:e})}componentDidUpdate(e){if(this.props.value!==e.value){let e=this.props.value&&!isNaN(new Date(this.props.value))?new Date(this.props.value):null;this.setState({date:e})}}formatDate(e){return e&&!isNaN(new Date(e))?new Date(e):null}render(){const{filterDay:e,children:t,onChange:o,placeholder:s,value:n,mask:r,...a}=this.props;return(0,u.jsx)(m,{children:(0,u.jsx)(i(),{filterDate:e,placeholderText:s,selected:this.state.date,onChange:this.handleChange,...a,customInput:(0,u.jsx)(d(),{type:"text",mask:this.props.mask,guide:!1})})})}}f.defaultProps={locale:"vi",dateFormat:"dd-MM-yyyy",parseFormat:"yyyy-MM-dd",todayButton:"H\xf4m nay",showMonthDropdown:!0,showYearDropdown:!0,popperPlacement:"bottom",isClearable:!0,className:"form-control-sm form-control",value:null,mask:[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/]};const x=f},9326:(e,t,o)=>{o.d(t,{A:()=>a});o(9950);var s=o(71766),n=o(44414);const r=e=>{const{children:t,...o}=e;return(0,n.jsx)(s.A,{...o,type:"select",children:t})};r.defaultProps={placeholder:"Ch\u1ecdn gi\xe1 tr\u1ecb"};const a=r},31409:(e,t,o)=>{o.d(t,{A:()=>a});o(9950);var s=o(71766),n=o(44414);const r=e=>{const{type:t,children:o,...r}=e;return(0,n.jsx)(s.A,{...r,type:"text",children:o})};r.defaultProps={};const a=r},4017:(e,t,o)=>{o.d(t,{A:()=>a});o(9950);var s=o(71766),n=o(44414);const r=e=>{const{type:t,children:o,...r}=e;return(0,n.jsx)(s.A,{...r,type:"password",children:o})};r.defaultProps={};const a=r},44754:(e,t,o)=>{o.d(t,{A:()=>r});o(9950);var s=o(71766),n=o(44414);const r=e=>{const{children:t,...o}=e;return(0,n.jsx)(s.A,{...o,type:"textarea",children:t})}},53139:(e,t,o)=>{o.d(t,{Sc:()=>D,pd:()=>i.A,Hc:()=>S.A,I8:()=>T,bT:()=>b,YI:()=>C,$k:()=>w.A,Sm:()=>p.A,s_:()=>E,_2:()=>k.A,fs:()=>j.A});var s,n,r,a,i=o(71766),l=o(57528),c=o(9950),d=o(86006),p=o(31409),h=o(71984),u=o(73613),m=o(44414);const f=(0,d.Ay)(p.A)(s||(s=(0,l.A)(["\n left: 0;\n top: 0;\n // flex: 0 0 86%;\n display: block;\n position: relative;\n background-color: inherit !important;\n"]))),x=d.Ay.div(n||(n=(0,l.A)(["\n position: relative;\n overflow: hidden;\n display: inline-block;\n"]))),v=(0,d.Ay)(i.A)(r||(r=(0,l.A)(["\n padding: 0;\n border-radius: 0;\n position: absolute;\n left: 0;\n top: 0;\n opacity: 0;\n cursor: pointer;\n"]))),y=(0,d.Ay)(h.A)(a||(a=(0,l.A)(["\n margin-right: 0px !important;\n margin-left: 0px !important;\n border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;\n"]))),A=e=>{const{name:t,accept:o,placeholder:s,onChange:n,required:r,value:a}=e,[i,l]=c.useState("");return(0,m.jsxs)("div",{style:{display:"flex"},children:[(0,m.jsx)(f,{value:i||a,placeholder:s,disabled:"disabled"}),(0,m.jsxs)(x,{children:[(0,m.jsx)(y,{color:"primary",children:(0,m.jsx)(u.A,{fa:"folder-open"})}),(0,m.jsx)(v,{name:t,accept:o,required:r,type:"file",onChange:e=>{let t=e.target.files[0];l(t?t.name:""),n&&n(t)}})]})]})};A.defaultProps={value:""};const b=A,g=e=>{const{type:t,children:o,...s}=e;return(0,m.jsx)(i.A,{...s,type:"number",children:o})};g.defaultProps={};const C=g;var w=o(9326),k=o(4017),j=o(44754),S=o(69754);class P extends c.Component{render(){const{...e}=this.props;return(0,m.jsx)(S.A,{...e})}}P.defaultProps={dateFormat:"dd/MM/yyyy HH:mm",parseFormat:"yyyy-MM-dd'T'HH:mm:ss.SSS",placeholderText:"Ch\u1ecdn ng\xe0y gi\u1edd",mask:[/\d/,/\d/,"/",/\d/,/\d/,"/",/\d/,/\d/,/\d/,/\d/," ",/\d/,/\d/,":",/\d/,/\d/],showTimeInput:!0,todayButton:null,timeInputLabel:"Ch\u1ecdn gi\u1edd"};const T=P;class N extends c.Component{render(){const{...e}=this.props;return(0,m.jsx)(S.A,{...e})}}N.defaultProps={dateFormat:"HH:mm",parseFormat:"HH:mm:ss",value:new Date,mask:[/\d/,/\d/,":",/\d/,/\d/],showTimeSelect:!0,showTimeSelectOnly:!0,timeIntervals:15,timeCaption:"Ch\u1ecdn gi\u1edd"};const E=N;o(71739);var R=o(34306);const D=e=>{const{...t}=e;return(0,m.jsx)(R.A,{size:"small",...t})}},73613:(e,t,o)=>{o.d(t,{A:()=>r});o(9950);var s=o(44414);const n=e=>{const{fa:t,ariaHidden:o,style:n}=e;return(0,s.jsx)("i",{style:n,className:"fa fa-"+t,"aria-hidden":o})};n.defaultProps={ariaHidden:!0};const r=n},46350:(e,t,o)=>{o.r(t),o.d(t,{MTableToolbar:()=>d,default:()=>h,styles:()=>p});var s=o(35060),n=o(76899),r=o(9950),a=o(53139),i=o(44414);class l extends r.Component{constructor(e){super(e),this.state={textSearch:""}}render(){const e={...this.props.defaultLocalization,...this.props.localization},{search:t,onSearchChanged:o}=this.props;return t&&(0,i.jsx)(a.pd,{style:{width:250},value:this.state.textSearch,onChange:e=>this.setState({textSearch:e.target.value}),onKeyPress:e=>13===e.charCode&&o(this.state.textSearch),placeholder:e.searchPlaceholder})}}const c=l;class d extends r.Component{constructor(e){super(e),this.defaultExportCsv=()=>{},this.exportCsv=()=>{this.props.exportCsv?this.props.exportCsv(this.props.columns,this.props.data):this.defaultExportCsv(),this.setState({exportButtonAnchorEl:null})},this.state={columnsButtonAnchorEl:null,exportButtonAnchorEl:null}}renderDefaultActions(){return(0,i.jsx)("div",{children:(0,i.jsx)(this.props.components.Actions,{actions:this.props.actions&&this.props.actions.filter((e=>e.isFreeAction)),components:this.props.components})})}renderSelectedActions(){return(0,i.jsx)(this.props.components.Actions,{actions:this.props.actions.filter((e=>!e.isFreeAction)),data:this.props.selectedRows,components:this.props.components})}renderActions(){const{classes:e}=this.props;return(0,i.jsx)("div",{className:e.actions,children:this.props.selectedRows&&this.props.selectedRows.length>0?this.renderSelectedActions():this.renderDefaultActions()})}render(){const e={...d.defaultProps.localization,...this.props.localization},t=this.props.showTextRowsSelected&&this.props.selectedRows&&this.props.selectedRows.length>0?e.nRowsSelected.replace("{0}",this.props.selectedRows.length):this.props.showTitle?this.props.title:null;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"ntable-header clearfix",children:[(0,i.jsx)("p",{className:"ntable-header-title pull-left",children:(0,i.jsx)("b",{children:t})}),(0,i.jsx)("div",{className:"pull-right",children:"right"===this.props.toolbarButtonAlignment&&this.renderActions()})]}),(0,i.jsx)("div",{className:"search",style:{top:"36px",width:"100%",left:"5px",marginBottom:"1rem"},children:"right"===this.props.searchFieldAlignment&&(this.props.SearchAdvanced?this.props.SearchAdvanced(this.props):(0,i.jsx)(c,{...this.props,defaultLocalization:d.defaultProps.localization}))})]})}}d.defaultProps={actions:[],columns:[],columnsButton:!1,localization:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",exportName:"Export as CSV",searchTooltip:"Search",searchPlaceholder:"Search"},search:!0,showTitle:!0,showTextRowsSelected:!0,toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchText:"",selectedRows:[],title:"No Title!"};const p=e=>({highlight:"light"===e.palette.type?{color:e.palette.secondary.main,backgroundColor:(0,n.lighten)(e.palette.secondary.light,.85)}:{color:e.palette.text.primary,backgroundColor:e.palette.secondary.dark},spacer:{flex:"1 1 10%"},actions:{color:e.palette.text.secondary},title:{flex:"0 0 auto"}}),h=(0,s.A)(p)(d)},2946:(e,t,o)=>{function s(e,t){"function"===typeof e?e(t):e&&(e.current=t)}o.d(t,{A:()=>s})},81097:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(9950),n="undefined"!==typeof window?s.useLayoutEffect:s.useEffect;function r(e){var t=s.useRef(e);return n((function(){t.current=e})),s.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},539:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(9950),n=o(2946);function r(e,t){return s.useMemo((function(){return null==e&&null==t?null:function(o){(0,n.A)(e,o),(0,n.A)(t,o)}}),[e,t])}},28555:(e,t,o)=>{o.d(t,{A:()=>s});const s=o(9950).createContext(null)},18849:(e,t,o)=>{o.d(t,{A:()=>x});var s=o(58168),n=o(98587),r=o(9417),a=o(77387),i=o(9950),l=o(11942),c=o.n(l),d=o(48738),p=o.n(d),h=o(44208),u=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],m={active:c().bool,"aria-label":c().string,block:c().bool,color:c().string,disabled:c().bool,outline:c().bool,tag:h.Wx,innerRef:c().oneOfType([c().object,c().func,c().string]),onClick:c().func,size:c().string,children:c().node,className:c().string,cssModule:c().object,close:c().bool},f=function(e){function t(t){var o;return(o=e.call(this,t)||this).onClick=o.onClick.bind((0,r.A)(o)),o}(0,a.A)(t,e);var o=t.prototype;return o.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},o.render=function(){var e=this.props,t=e.active,o=e["aria-label"],r=e.block,a=e.className,l=e.close,c=e.cssModule,d=e.color,m=e.outline,f=e.size,x=e.tag,v=e.innerRef,y=(0,n.A)(e,u);l&&"undefined"===typeof y.children&&(y.children=i.createElement("span",{"aria-hidden":!0},"\xd7"));var A="btn"+(m?"-outline":"")+"-"+d,b=(0,h.qO)(p()(a,{close:l},l||"btn",l||A,!!f&&"btn-"+f,!!r&&"btn-block",{active:t,disabled:this.props.disabled}),c);y.href&&"button"===x&&(x="a");var g=l?"Close":null;return i.createElement(x,(0,s.A)({type:"button"===x&&y.onClick?"button":void 0},y,{className:b,ref:v,onClick:this.onClick,"aria-label":o||g}))},t}(i.Component);f.propTypes=m,f.defaultProps={color:"secondary",tag:"button"};const x=f},23029:(e,t,o)=>{function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o.d(t,{A:()=>s})},53954:(e,t,o)=>{function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}o.d(t,{A:()=>s})},85501:(e,t,o)=>{o.d(t,{A:()=>n});var s=o(63662);function n(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,s.A)(e,t)}},56822:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(82284),n=o(9417);function r(e,t){if(t&&("object"===(0,s.A)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,n.A)(e)}}}]);