????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/72.3f488224.chunk.js |
"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[72],{20072:(e,s,t)=>{t.r(s),t.d(s,{default:()=>j});var a=t(9950),n=t(16673),i=t(82654),o=t(48738),r=t.n(o);class c extends a.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(e){e&&document.body.classList.add("header-fixed")}render(){let{className:e,children:s,tag:t,fixed:n,...i}=this.props,o=r()(this.props.className,"app-header","navbar");return a.createElement(this.props.tag,Object.assign({className:o},i),this.props.children)}}c.defaultProps={tag:"header",fixed:!1};class d extends a.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(e){e&&document.body.classList.add("footer-fixed")}render(){let{className:e,children:s,tag:t,fixed:n,...i}=this.props,o=r()(this.props.className,"");return a.createElement(this.props.tag,Object.assign({className:o},i),this.props.children)}}d.defaultProps={tag:"footer",fixed:!1};const l=d;var p=t(3291),h=t(53744),m=t(44414);const u=a.lazy((()=>Promise.resolve().then(t.bind(t,42398)))),x=a.lazy((()=>t.e(7342).then(t.bind(t,17342)))),g=a.lazy((()=>t.e(2550).then(t.bind(t,12550)))),f=a.lazy((()=>Promise.all([t.e(4057),t.e(484),t.e(5113),t.e(7159),t.e(8905)]).then(t.bind(t,64469))));class b extends a.Component{constructor(e){super(e),this.isChangeHeader=()=>{const{isChange:e}=this.state;this.setState({isChange:!e})},this.state={routes:p.px(),hideFooter:!0,isChange:!0}}componentDidMount(){"/"===this.props.location.pathname&&h.lg.TrangChu&&window.location.replace(h.lg.TrangChu),p.Vi(),this.setState({hideFooter:p.qW("CHC_HIDE_FOOTER")})}render(){return(0,m.jsxs)("div",{className:"app",children:[(0,m.jsxs)("div",{className:"/tao-don-hang"===this.props.location.pathname||"/quan-ly-che-bien"===this.props.location.pathname?"custom-menu change":"custom-menu new",children:[" ",(0,m.jsx)(f,{}),(0,m.jsx)(g,{})]}),(0,m.jsx)("div",{className:"/tao-don-hang"===this.props.location.pathname||"/quan-ly-che-bien"===this.props.location.pathname?"":"app-body new container",children:(0,m.jsx)("main",{className:"main",children:(0,m.jsx)(i.A,{fluid:!0,children:(0,m.jsx)(a.Suspense,{fallback:(0,m.jsx)(u,{}),children:(0,m.jsx)(n.Switch,{children:this.state.routes.map(((e,s)=>e.component&&(0,m.jsx)(n.Route,{path:e.path,exact:e.exact,name:e.name,render:s=>(0,m.jsx)(e.component,{...s,title:e.name,odata:e.odata,params:e.params})},s)))})})})})}),"/tao-don-hang"===this.props.location.pathname||"/quan-ly-che-bien"===this.props.location.pathname?null:(0,m.jsx)(l,{children:(0,m.jsx)(x,{})})]})}}const j=(0,n.withRouter)((e=>(0,m.jsx)(b,{...e})))},82654:(e,s,t)=>{t.d(s,{A:()=>u});var a=t(58168),n=t(98587),i=t(9950),o=t(11942),r=t.n(o),c=t(48738),d=t.n(c),l=t(44208),p=["className","cssModule","fluid","tag"],h={tag:l.Wx,fluid:r().oneOfType([r().bool,r().string]),className:r().string,cssModule:r().object},m=function(e){var s=e.className,t=e.cssModule,o=e.fluid,r=e.tag,c=(0,n.A)(e,p),h="container";!0===o?h="container-fluid":o&&(h="container-"+o);var m=(0,l.qO)(d()(s,h),t);return i.createElement(r,(0,a.A)({},c,{className:m}))};m.propTypes=h,m.defaultProps={tag:"div"};const u=m}}]);