????
Current Path : C:/inetpub/vhost/hotrochinhsach.nextform.vn/www/assets/ |
Current File : C:/inetpub/vhost/hotrochinhsach.nextform.vn/www/assets/DefaultLayout-5f131dbc.js |
var v=Object.defineProperty;var D=(s,a,t)=>a in s?v(s,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[a]=t;var N=(s,a,t)=>(D(s,typeof a!="symbol"?a+"":a,t),t);import{P as o,r as c,R as l,_ as p,p as x,j as e,T as d,L as k,c as I,a as C,w as S,b as P,g as L,d as E,e as O,S as A,f as b,h as M}from"./index-3ac6b886.js";import{C as H}from"./Container-27d794ad.js";import{R}from"./Row-ef702d16.js";import{C as $}from"./TextArea-5c5d2643.js";import{_ as F}from"./utils-1da25c48.js";/* empty css */import{N as z}from"./Nav-7adab22f.js";import{D as V,a as B,b as _}from"./DropdownToggle-ce0bc76b.js";import{U as K}from"./UncontrolledDropdown-c1128224.js";import{P as U,A as W,p as G}from"./react-alert-template-basic-cff12200.js";import{N as q}from"./Notify-52ad6082.js";import{F as J}from"./FontAwesome4-4d1c8e97.js";import"./InputNumber-e0e8281b.js";import"./Button-d32d698a.js";import"./Input-a404c875.js";import"./Dropdown-fd6014de.js";import"./Popper-c3a92014.js";import"./InputTime-6c25e67a.js";import"./useTheme-cc71593c.js";import"./withStyles-be05542d.js";import"./possibleConstructorReturn-b2959138.js";import"./classCallCheck-22a738c0.js";import"./TransitionGroup-a6d13137.js";import"./Transition-41b94a89.js";import"./Badge-69f10678.js";import"./Fade-c1d8e31e.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./Empty-c1579b18.js";import"./DialogCustomize-f58e33cd.js";import"./capitalize-2c2e3657.js";import"./const-0478bc07.js";class f extends c.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(a){a&&document.body.classList.add("header-fixed")}render(){let{className:a,children:t,tag:r,fixed:i,...n}=this.props,m=F(this.props.className,"app-header","navbar");return l.createElement(this.props.tag,Object.assign({className:m},n),this.props.children)}}f.propTypes={children:o.node,className:o.string,fixed:o.bool,tag:o.oneOfType([o.func,o.string])};f.defaultProps={tag:"header",fixed:!1};class j extends c.Component{componentDidMount(){this.isFixed(this.props.fixed)}isFixed(a){a&&document.body.classList.add("footer-fixed")}render(){let{className:a,children:t,tag:r,fixed:i,...n}=this.props,m=F(this.props.className,"");return l.createElement(this.props.tag,Object.assign({className:m},n),this.props.children)}}j.propTypes={children:o.node,className:o.string,fixed:o.bool,tag:o.oneOfType([o.func,o.string])};j.defaultProps={tag:"footer",fixed:!1};const Q=l.lazy(()=>p(()=>import("./DefaultMenuMobile-25cf96d9.js"),["assets/DefaultMenuMobile-25cf96d9.js","assets/index-3ac6b886.js","assets/index-c1637a3f.css","assets/FontAwesome4-4d1c8e97.js","assets/MenuAdmin-adc0d80b.css"])),X=x.span` color: white; display: inline-block; vertical-align: middle; text-align: right; @media (max-width: 650px) { display: none; } `,Y={timeout:5e3,position:G.BOTTOM_RIGHT},Z=()=>e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsx("div",{className:"header-top",children:e.jsxs(l.Fragment,{children:[e.jsx(Q,{}),e.jsx("div",{className:"d-flex",children:e.jsx("a",{href:d.TrangChu||"/",children:e.jsx("h6",{className:"fw-bold title-admin-header",children:"ADMIN"})})}),e.jsxs(z,{className:"ms-auto",children:[e.jsx("div",{className:"form-notify-header-admin",children:e.jsx(q,{})}),e.jsxs(K,{nav:!0,direction:"down",children:[e.jsxs(V,{nav:!0,children:[e.jsx("img",{src:"../../assets/profile-w.jpg",className:"img-avatar avt-header-admin rounded-circle me-2",width:40,height:40,alt:"gdtvietnam"}),e.jsxs(X,{children:[e.jsx("div",{className:"form-name-admin-header",style:{fontSize:11},children:d.TenHienThi}),e.jsx("div",{children:d.TenDonVi})]})]}),e.jsxs(B,{right:!0,children:[e.jsxs(_,{tag:k,to:"/thong-tin-tai-khoan",children:[e.jsx("i",{className:"fa fa-user-circle-o"})," Thông tin người dùng"]}),e.jsxs(_,{onClick:a=>{I(),window.location.href="/login"},children:[e.jsx("i",{className:"fa fa-sign-out"})," Đăng xuất"]})]})]})]}),e.jsx(U,{template:W,...Y,children:!1})]})})}),e.jsx(se,{})]}),y=x.li` position: relative; &:hover > ul.dropdown-menu { display: block; width: 200%; } `,ee=x.ul` margin-top: 0; box-shadow: 3px 3px #1005055e; position: absolute !important; background: #f5f7ff; `,te=x.ul` top: 0; left: -100%; margin-top: 0px; margin-left: 0; margin-right: 0; box-shadow: 3px 3px #1005055e; background: #f5f7ff; `,g=x(k)` font-weight: bold; color: #5a5757 !important; font-size: 13px; padding: 7px 20px; &:hover { ${s=>s.ismain&&"text-align: center;"} background: aliceblue !important; color: royalblue !important; } &.active { background: #cccccc; } `,u=s=>s??"#",h=s=>s.children&&s.children.length>0,w=s=>{const{items:a,drop:t}=s;return e.jsx(ee,{className:"dropdown-menu","aria-labelledby":"navbarDropdownMenuLink",style:{width:"max-content"},children:a.map((r,i)=>e.jsxs(y,{className:t?"dropleft":"dropright",children:[e.jsxs(g,{style:{borderBottom:a.length>1&&i!==a.length-1?"1px solid #c8ced3":""},to:u(r.url),className:"dropdown-item "+(h(r)?"dropdown-toggle":""),children:[r.icon&&e.jsxs(e.Fragment,{children:[e.jsx("i",{style:{marginLeft:"0px",color:"rgba(0, 0, 0, 0.7)"},className:r.icon,"aria-hidden":!0})," "]}),`${i+1}. ${r.name}`]}),h(r)&&e.jsx(te,{className:"dropdown-menu",style:{margin:0},children:r.children.map((n,m)=>{let T=n.name;return e.jsx(y,{children:e.jsxs(g,{style:{borderBottom:"1px solid #c8ced3",whiteSpace:"inherit",textAlign:"justify"},className:"dropdown-item",to:u(n.url),children:[n.icon&&e.jsxs(e.Fragment,{children:[e.jsx("i",{style:{marginLeft:"0px",color:"rgba(0, 0, 0, 0.7)"},className:n.icon,"aria-hidden":!0})," "]}),`${m+1}. ${T}`]})},m)})})]},i))})};class se extends c.Component{constructor(a){super(a),this.state={navigation:C(),ParentID:null,OpenFakeHeader:!1}}checkActiveTab(a){return a===window.location.pathname}render(){const{navigation:a,ParentID:t,OpenFakeHeader:r}=this.state;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"header-bottom",children:a&&a.map((i,n)=>e.jsxs(e.Fragment,{children:[e.jsxs(g,{to:u(i.url),onClick:()=>{this.setState({activeIndex:n})},className:"nav-link item-admin-header "+(h(i)&&"dropdown-toggle")+(this.checkActiveTab(i.url)?" active-item-admin-header ":""),children:[i.icon&&e.jsx(e.Fragment,{children:e.jsx("i",{className:`${i.icon} icon-item-admin-header `,"aria-hidden":!0})}),i.name]}),h(i)&&e.jsx(w,{parent_id:t,items:i.children,drop:n>a.length/2})]}))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{onClick:()=>this.setState({OpenFakeHeader:!r}),className:"form-btn-open-header-fake",children:e.jsx("i",{className:"fa fa-bars icon-btn-fake-open-header","aria-hidden":"true"})}),r&&e.jsx("div",{className:"header-bottom-fake",children:a&&a.map((i,n)=>e.jsxs(e.Fragment,{children:[e.jsxs(g,{to:u(i.url),onClick:()=>{this.setState({activeIndex:n}),this.setState({OpenFakeHeader:!1})},className:"nav-link item-admin-header "+(h(i)&&"dropdown-toggle")+(this.checkActiveTab(i.url)?" active-item-admin-header ":""),children:[i.icon&&e.jsx(e.Fragment,{children:e.jsx("i",{className:`${i.icon} icon-item-admin-header `,"aria-hidden":!0})}),i.name]}),h(i)&&e.jsx(w,{parent_id:t,items:i.children,drop:n>a.length/2})]}))})]})]})}}const ae=l.lazy(()=>p(()=>import("./index-3ac6b886.js").then(s=>s.aA),["assets/index-3ac6b886.js","assets/index-c1637a3f.css"])),ie=l.lazy(()=>p(()=>import("./Welcome-ff379806.js"),["assets/Welcome-ff379806.js","assets/index-3ac6b886.js","assets/index-c1637a3f.css","assets/MenuAdmin-adc0d80b.css"])),ne=l.lazy(()=>p(()=>import("./DefaultFooter-f362272e.js"),["assets/DefaultFooter-f362272e.js","assets/index-3ac6b886.js","assets/index-c1637a3f.css","assets/MenuAdmin-adc0d80b.css"])),re=l.lazy(()=>p(()=>import("./DefaultHeader-267e02eb.js").then(s=>s.D),["assets/DefaultHeader-267e02eb.js","assets/index-3ac6b886.js","assets/index-c1637a3f.css","assets/Nav-7adab22f.js","assets/utils-1da25c48.js","assets/Button-d32d698a.js","assets/react-alert-template-basic-cff12200.js","assets/TransitionGroup-a6d13137.js","assets/withStyles-be05542d.js","assets/useTheme-cc71593c.js","assets/Transition-41b94a89.js","assets/Notify-52ad6082.js","assets/Badge-69f10678.js","assets/Popper-c3a92014.js","assets/Dropdown-fd6014de.js","assets/Fade-c1d8e31e.js","assets/FontAwesome4-4d1c8e97.js","assets/_commonjs-dynamic-modules-302442b1.js","assets/Empty-c1579b18.js","assets/DialogCustomize-f58e33cd.js","assets/capitalize-2c2e3657.js","assets/classCallCheck-22a738c0.js","assets/InputNumber-e0e8281b.js","assets/Input-a404c875.js","assets/InputTime-6c25e67a.js","assets/possibleConstructorReturn-b2959138.js","assets/InputTime-0ac76259.css","assets/TextArea-5c5d2643.js","assets/const-0478bc07.js","assets/Notify-532f74bd.css","assets/MenuAdmin-adc0d80b.css","assets/DropdownList-92e339e1.js","assets/DataSelect-21292454.js","assets/OdataUtils-69f581ff.js","assets/Button-9ef33eb6.js","assets/Modal-834c96f4.js","assets/function-c7c2f09a.js","assets/Required-a585e744.js","assets/SelectCustom-a3812854.js","assets/SelectPanelMulti-30b66e05.js","assets/Collapse-9244e6b2.js","assets/Row-ef702d16.js","assets/DataTable-4f7de56a.js","assets/DataTable-2da494f5.css","assets/DropdownList-99cf9ffc.css"])),oe=l.lazy(()=>p(()=>import("./Notify-52ad6082.js").then(s=>s.a),["assets/Notify-52ad6082.js","assets/index-3ac6b886.js","assets/index-c1637a3f.css","assets/Button-d32d698a.js","assets/utils-1da25c48.js","assets/Badge-69f10678.js","assets/Popper-c3a92014.js","assets/Dropdown-fd6014de.js","assets/Fade-c1d8e31e.js","assets/Transition-41b94a89.js","assets/FontAwesome4-4d1c8e97.js","assets/_commonjs-dynamic-modules-302442b1.js","assets/Empty-c1579b18.js","assets/DialogCustomize-f58e33cd.js","assets/useTheme-cc71593c.js","assets/withStyles-be05542d.js","assets/capitalize-2c2e3657.js","assets/classCallCheck-22a738c0.js","assets/InputNumber-e0e8281b.js","assets/Input-a404c875.js","assets/InputTime-6c25e67a.js","assets/possibleConstructorReturn-b2959138.js","assets/InputTime-0ac76259.css","assets/TextArea-5c5d2643.js","assets/const-0478bc07.js","assets/Notify-532f74bd.css","assets/MenuAdmin-adc0d80b.css"])),le=()=>e.jsx(ae,{});class de extends c.Component{constructor(t){super(t);N(this,"handleChange",t=>{t!==null&&(this.setState({flatForm:t}),localStorage.setItem("PhanHe",t),O(t))});this.state={routes:P(localStorage.getItem("PhanHe")),hideFooter:!0,openModalCaiDatThucHienBaoCao:!0,flatForm:localStorage.getItem("PhanHe")?localStorage.getItem("PhanHe"):"gdnn"}}componentDidMount(){this.props.location.pathname==="/"&&d.IsSetup&&d.TrangChu&&window.location.replace(d.TrangChu),L(),this.setState({hideFooter:E("CHC_HIDE_FOOTER")})}render(){return e.jsxs("div",{className:"app",children:[d.MaTaiKhoan!=="admin"?e.jsxs(e.Fragment,{children:[e.jsx(f,{fixed:!0,children:e.jsx(re,{...this.props})}),e.jsx("div",{className:"custom-menu",children:e.jsxs(R,{children:[e.jsx(ce,{value:this.state.flatForm,onChange:t=>this.handleChange(t)}),e.jsx($,{className:"px-0",children:e.jsx(oe,{})})]})})]}):e.jsx(Z,{}),e.jsx("div",{className:"app-body",children:e.jsx("main",{className:`main ${d.MaTaiKhoan==="admin"&&"body-admin"}`,children:e.jsx(H,{fluid:!0,children:e.jsx(c.Suspense,{fallback:le(),children:e.jsxs(A,{children:[this.state.routes.map((t,r)=>t.component&&e.jsx(b,{path:t.path,exact:t.exact,name:t.name,render:i=>e.jsx(t.component,{...i,title:t.name,route:t})},r)),e.jsx(b,{name:"Trang Welcome",render:t=>e.jsx(ie,{...t})})]})})})})}),e.jsx(j,{children:e.jsx(ne,{})})]})}}const Be=S(s=>e.jsx(de,{...s})),ce=({value:s,onChange:a})=>{const[t,r]=c.useState([]);return c.useEffect(()=>{M("PhanHes?$orderby=OrderNo desc").then(i=>{var n;r(i.value),localStorage.setItem("PhanHe",(n=i.value[0])==null?void 0:n.Id)})},[s]),e.jsx(e.Fragment,{children:e.jsxs("div",{className:"form-change-sub-system d-none",children:[e.jsx("img",{src:"/assets/changeSystem.png",alt:""}),t.map(i=>e.jsx(e.Fragment,{children:e.jsx("div",{onClick:()=>a(i.Id),className:`item-change-sub-system ${s===i.Id?"active":""}`,children:e.jsx("p",{className:"mb-0 fw-bold",children:i.Name})})})),e.jsx(J,{style:{color:"lightgray"},fa:"refresh"})]})})};export{Be as default};