????
Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/admin/assets/ |
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/admin/assets/DefaultLayout-e5cf442a.js |
import{_ as i,c as f,g as _,a as j}from"./index-8ef13bef.js";import{P as t,r as n,R as a,j as s,a as g,b as x}from"./vendor-4ed091cd.js";import{C as E}from"./Container-e4d5574a.js";import{c as h}from"./utils-edee7d6b.js";class l extends n.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(e){e&&document.body.classList.add("header-fixed")}render(){let{className:e,children:d,tag:o,fixed:u,...c}=this.props,p=h(this.props.className,"app-header","navbar");return a.createElement(this.props.tag,Object.assign({className:p},c),this.props.children)}}l.propTypes={children:t.node,className:t.string,fixed:t.bool,tag:t.oneOfType([t.func,t.string])};l.defaultProps={tag:"header",fixed:!1};class m extends n.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(e){e&&document.body.classList.add("footer-fixed")}render(){let{className:e,children:d,tag:o,fixed:u,...c}=this.props,p=h(this.props.className,"");return a.createElement(this.props.tag,Object.assign({className:p},c),this.props.children)}}m.propTypes={children:t.node,className:t.string,fixed:t.bool,tag:t.oneOfType([t.func,t.string])};m.defaultProps={tag:"footer",fixed:!1};const y=a.lazy(()=>i(()=>import("./index-8ef13bef.js").then(r=>r.u),["assets/index-8ef13bef.js","assets/vendor-4ed091cd.js","assets/index-5306ce44.css"])),N=a.lazy(()=>i(()=>import("./Welcome-32b21c80.js"),["assets/Welcome-32b21c80.js","assets/vendor-4ed091cd.js","assets/Welcome-581623d2.css"])),D=a.lazy(()=>i(()=>import("./DefaultFooter-de2c201a.js"),["assets/DefaultFooter-de2c201a.js","assets/vendor-4ed091cd.js"])),b=a.lazy(()=>i(()=>import("./DefaultHeader-b581da03.js"),["assets/DefaultHeader-b581da03.js","assets/index-8ef13bef.js","assets/vendor-4ed091cd.js","assets/index-5306ce44.css","assets/Nav-d46410cd.js","assets/utils-edee7d6b.js","assets/assertThisInitialized-081f9914.js","assets/defineProperty-f749b14d.js","assets/Reference-46aac1bb.js","assets/Button-73af635f.js","assets/makeStyles-05eedb62.js","assets/createStyles-cfd966dc.js","assets/defaultTheme-bc77a192.js"])),T=a.lazy(()=>i(()=>import("./DefaultMenu-235dac8f.js"),["assets/DefaultMenu-235dac8f.js","assets/vendor-4ed091cd.js","assets/index-8ef13bef.js","assets/index-5306ce44.css"])),O=()=>s.jsx(y,{});class L extends n.Component{constructor(e){super(e),this.state={routes:f(),hideFooter:!0}}componentDidMount(){_(),this.setState({hideFooter:j("CHC_HIDE_FOOTER")})}render(){return s.jsxs("div",{className:"app",children:[s.jsx(l,{fixed:!0,children:s.jsx(b,{...this.props})}),s.jsx("div",{className:"custom-menu",children:s.jsx(T,{})}),s.jsx("div",{className:"app-body",children:s.jsx("main",{className:"main",children:s.jsx(E,{fluid:!0,children:s.jsx(n.Suspense,{fallback:O(),children:s.jsxs(g,{children:[this.state.routes.map((e,d)=>e.component&&s.jsx(x,{path:e.path,exact:e.exact,name:e.name,render:o=>e.odata?s.jsx(e.component,{...o,title:e.name,odata:e.odata}):s.jsx(e.component,{...o})},d)),s.jsx(x,{name:"Trang Welcome",render:e=>s.jsx(N,{...e})})]})})})})}),s.jsx(m,{children:s.jsx(D,{})})]})}}export{L as default};