????

Your IP : 3.144.6.159


Current Path : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/
Upload File :
Current File : C:/inetpub/vhost/sdoc.nextform.vn/www/assets/DefaultMenuMobile-214fb84d.js

import{d as n,r as f,a as g,j as e,R as u,L as s,T as j}from"./index-727ccf4d.js";import"./Notify-3827e692.js";import{F as d}from"./FontAwesome4-32fe4385.js";import"./Button-9330b92c.js";import"./Badge-00b2c8d5.js";import"./Popper-c8f432b9.js";import"./Manager-0c2f0563.js";import"./Fade-7cf1057f.js";import"./Transition-27f52f03.js";import"./Empty-aeb908cf.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./DialogCustomize-4c6977d9.js";import"./useTheme-41684c89.js";import"./capitalize-f7a57a5c.js";import"./withStyles-da525f81.js";import"./classCallCheck-22a738c0.js";import"./InputNumber-dceb4c1c.js";import"./Input-ae2484bb.js";import"./InputTime-0a0b65be.js";import"./possibleConstructorReturn-e4ffd6dd.js";import"./TextArea-56268c1b.js";import"./const-0478bc07.js";const w=n.button`
  min-width: 20px !important;
  padding: 0 !important;
  display: none;
  @media (min-width: 1200px) {
    display: none;
  }
`,k=n.div`
  transition: left 0.3s ease 0s;
  left: ${i=>i.focus?"0":"-100"}vw;
  position: fixed;
  top: 0;
  height: 100%;
  z-index: 999999;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  background: white;
  color: black;
  font-weight: 500;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  ::-webkit-scrollbar {
    display: none;
  }

  @media (min-width: 1500px) {
    left: -100vw;
  }
`,y=n.div`
  line-height: normal;
  font-size: 35px;
  color: white;
  font-family: times new roman, Times, serif;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
`,M=n.div`
  color: lightgray;
  border: 0;
  font-weight: bold;
  transition: all 0.15s ease-in-out;
  display: inline-block;
  padding: 0.5rem;
  float: right;
`,N=n.div`
  border: 0;
  transition: all 0.15s ease-in-out;
  display: inline-block;
  width: 100%;
`,C=n.ul`
  list-style: none;
  margin: 0;
  padding-inline-start: 0px;
  ::-webkit-scrollbar {
    display: none;
  }
`,S=n.li`
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
`,c=n(s)`
  padding-right: 60px;
  display: block;
  position: relative;
  padding: 0.9em 20px;
  color: inherit;
  border: 0;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  text-align: left;
  border-radius: 10px;
  &:hover {
    background: #f9f9f9;
    text-decoration: none;
  }
`,m=n.span`
  font-size: 1.25em;
  height: 100%;
  position: absolute;
  right: 15px;
  top: 50%;
  margin-top: -10px;
  height: 20px;
  line-height: 20px;
  cursor: pointer;
  transition: all 0.2s ease-out;
`,B=n.ul`
  display: ${i=>i.expand?"block":"none"};
  list-style: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  padding-inline-start: 20px;
`,z=n.ul`
  display: ${i=>i.expand?"block":"none"};
  list-style: none;
  margin: 0;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  padding-inline-start: 20px;
`,I=n.div`
  display: ${i=>i.focus?"block":"none"};
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  -ms-transform: translateZ(0);
  -webkit-transform: translateZ(0);
  -o-transform: translateZ(0);
  -moz-transform: translateZ(0);
  transform: translateZ(0);
  @media (min-width: 1200px) {
    display: none;
  }
`,p=i=>i??"#",a=i=>i.children&&i.children.length>0;class Y extends f.Component{constructor(r){super(r),this.state={mobile:!1,navigation:g()}}render(){const{navigation:r}=this.state;return e.jsxs(u.Fragment,{children:[e.jsx(w,{onClick:t=>this.setState({mobile:!this.state.mobile}),className:"navbar-toggler",type:"button",children:e.jsx("span",{className:"navbar-toggler-icon"})}),e.jsxs(k,{focus:this.state.mobile,children:[e.jsx(y,{children:e.jsx(M,{onClick:t=>this.setState({mobile:!1}),href:"#","aria-hidden":"true",role:"button",tabindex:"-1",children:"×"})}),e.jsx(N,{children:e.jsx(C,{children:r?r.map((t,h)=>e.jsxs(S,{children:[e.jsxs(c,{to:p(t.url),onClick:o=>{if(!a(t)){this.setState({mobile:!1});return}t.expand===void 0?t.expand=!0:t.expand=!t.expand,this.setState({nav:t})},children:[e.jsx("i",{className:t.icon,"aria-hidden":!0})," ",t.name,a(t)&&e.jsx(m,{children:e.jsx("i",{className:"fa fa-angle-"+(t.expand?"down":"right"),"aria-hidden":"true"})})]}),a(t)&&e.jsx(B,{expand:t.expand,children:t.children.map((o,x)=>e.jsxs("li",{children:[e.jsxs(c,{to:p(o.url),onClick:l=>{this.setState({mobile:!1}),a(o)&&(o.expand===void 0?o.expand=!0:o.expand=!o.expand,this.setState({subnav:o}))},children:[e.jsx("i",{className:o.icon,"aria-hidden":!0})," ",o.name,a(o)&&e.jsx(m,{children:e.jsx("i",{className:"fa fa-angle-"+(o.expand?"down":"right"),"aria-hidden":"true"})})]}),a(o)&&e.jsx(z,{expand:o.expand,children:o.children.map((l,b)=>e.jsx("li",{children:e.jsxs(c,{onClick:()=>this.setState({mobile:!1}),to:p(l.url),children:[e.jsx("i",{className:l.icon,"aria-hidden":!0})," ",l.name]})},b))})]},x))})]},h)):null})})]}),e.jsx(I,{focus:this.state.mobile,onClick:t=>this.setState({mobile:!1})}),e.jsxs("div",{className:"nav-bar-bottom-menu",children:[e.jsxs("div",{onClick:()=>this.setState({mobile:!0}),className:"item-main-nav-bar-bottom-menu",children:[e.jsx(d,{fa:"bars"}),e.jsx("h6",{className:"mb-0",children:"Menu"})]}),e.jsx(s,{tag:s,to:"/thong-tin-tai-khoan",className:"d-flex justify-content-end pe-4 align-items-center w-100",children:e.jsx(d,{fa:"user"})}),e.jsx(s,{tag:s,to:"/thong-bao",className:"d-flex justify-content-end pe-4 align-items-center w-100",children:e.jsx(d,{fa:"bell"})}),e.jsx(s,{tag:s,to:j.TrangChu,className:"d-flex justify-content-end pe-4 align-items-center w-100",children:e.jsx(d,{fa:"home"})})]})]})}}export{Y as default};