????

Your IP : 3.22.98.193


Current Path : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/
Upload File :
Current File : C:/inetpub/vhost/lantha.gdtsolutions.vn/wwwtest/wwwroot/static/js/2550.324b5f52.chunk.js

"use strict";(self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[2550],{12550:(e,n,a)=>{a.r(n),a.d(n,{default:()=>j});var t=a(9950),s=a(86006),l=a(73230),r=a(93047),i=a(44414);const d=s.Ay.div``,c=s.Ay.ul``,o=s.Ay.li`
    position: relative;
    &:hover > ul.dropdown-menu {
        display: block;
        width: 200%
    }
`,p=s.Ay.ul`
    margin-top: 0;
    box-shadow: 3px 3px #1005055e;
    position: absolute !important;
    background: #f5f7ff;
`,m=s.Ay.ul`
    top: 0;
    left: -100%;
    margin-top: 0px;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 3px 3px #1005055e;
    background: #f5f7ff;
`,h=(0,s.Ay)(r.N_)`
    font-weight: bold;
    color: #5a5757 !important;
    font-size: 13px;
    padding: 7px 20px;
    &:hover {
        ${e=>e.ismain&&"text-align: center;"}
        background: aliceblue !important;
        color: royalblue !important;
    }
`,x=e=>void 0===e||null===e?"#":e,u=e=>e.children&&e.children.length>0,g=e=>{const{items:n,drop:a,parent_selected:t,selectParentSelected:s}=e;return(0,i.jsx)(p,{className:"dropdown-menu","aria-labelledby":"navbarDropdownMenuLink",style:{width:"max-content"},children:n.map(((e,n)=>(0,i.jsxs)(o,{className:a?"dropleft":"dropright",children:[(0,i.jsxs)(h,{onClick:()=>s&&s(t),to:x(e.url),className:"dropdown-item "+(u(e)?"dropdown-toggle":""),children:[e.icon&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{className:e.icon,"aria-hidden":!0})," "]}),e.name]}),u(e)&&(0,i.jsx)(m,{className:"dropdown-menu",style:{margin:0},children:e.children.map(((e,n)=>{let a=e.name;return(0,i.jsx)(o,{children:(0,i.jsxs)(h,{className:"dropdown-item",to:x(e.url),children:[e.icon&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{className:e.icon,"aria-hidden":!0})," "]}),a]})},n)}))})]},n)))})};class b extends t.Component{constructor(e){super(e),this.state={navigation:l.$D(),ParentID:null,IDSGDDT:null,parent_selected:null},this.selectParentSelected=this.selectParentSelected.bind(this)}selectParentSelected(e){this.setState({parent_selected:e})}componentDidMount(){}render(){const{navigation:e,ParentID:n,parent_selected:a}=this.state;return(0,i.jsx)("div",{className:"main-menu",children:(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("nav",{className:"navbar navbar-expand-xl navbar-light",style:{padding:0},children:(0,i.jsx)(d,{className:"collapse navbar-collapse",children:(0,i.jsx)(c,{className:"navbar-nav",children:e&&e.map(((t,s)=>(0,i.jsxs)(o,{className:a===t.id?"nav-item parent_selected":"nav-item",children:[(0,i.jsxs)(h,{ismain:"true",to:x(t.url),className:"nav-link "+(u(t)&&"dropdown-toggle"),children:[t.icon&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("i",{className:t.icon,"aria-hidden":!0})," "]}),(0,i.jsx)("span",{children:t.name})]}),u(t)&&(0,i.jsx)(g,{parent_id:n,items:t.children,parent_selected:t.id,selectParentSelected:this.selectParentSelected,drop:s>e.length/2})]},s)))})})})})})}}const j=b}}]);