PageSourceSearch

https://whitehouse.edu.np/assets/index-CdeQfPrU.js

js whitehouse.edu.np collected 2026-10-05 03:38:02 UTC 9,064 bytes, 22 lines download raw bytes

1import{r as x,Z as k,A as y,j as n,C as j,T as t,ad as l,g as f,W as v,V as b}from"./index-B_8ZUqKE.js";import{B as C}from"./BurgerMenu-D_jhLzYg.js";import{d as h}from"./KeyboardArrowDownRounded-LyaaV3J9.js";import{M as $}from"./index-Bq82xcax.js";import"./Close-DjnUZHa-.js";const L=v(a=>({root:{background:a.palette.background.default,padding:"10px 0",position:"fixed",zIndex:"9",left:0,right:0,top:0,borderBottom:`2px solid ${a.palette.border.primary}`,"& .mobile-menu-7":{"& .burger-menu":{position:"relative","& .bm-overlay":{background:"rgba(0, 0, 0, 0.3)",top:"0",left:"0"},"& .bm-burger-button":{position:"absolute",width:"20px",height:"17px",left:"10px",top:"50%",transform:"translate(0, -50%)",outline:"none","& .bm-burger-bars":{background:a.palette.background.customBg,height:"12% !important","&:hover":{background:a.palette.primary.main,opacity:1}}},"& .bm-menu-wrap":{position:"fixed",height:"100%",left:"0",top:"0","& .bm-menu":{background:a.palette.background.primary,padding:"2.5em 1.5em 0",fontSize:"1.15em","& .bm-item-list":{color:"#b8b7ad",padding:"0.8em","& .bm-item":{display:"inline-block","& .dropdown":{position:"relative",transition:a.transitions.easing.easeOut,listStyle:"none","&:not(:last-child)":{marginBottom:a.spacing(4)},"& .drop-btn":{cursor:"pointer",transition:"all 0.3s ease-out",background:"transparent",color:"#fff",position:"relative"},"& .dropdown-content":{display:"none",backgroundColor:"#f9f9f9",width:"100%",transition:a.transitions.easing.easeOut,animation:"opacity1 .5s",borderTop:`1px solid ${a.palette.primary.main}`,"& .nav-dropdown-item":{listStyle:"none",borderBottom:`1px solid ${a.palette.primary.main}`,position:"relative","&:last-child":{borderBottom:"none"},"& .main-dropdown-list-link":{color:a.palette.text.menuItemColor,padding:a.spacing(2),textDecoration:"none",display:"block",transition:a.transitions.easing.easeOut,"&:hover":{background:a.palette.primary.main,paddingLeft:"25px",color:"#fff"}},"& .menu-line":{display:"none",backgroundColor:"#f9f9f9",transition:a.transitions.easing.easeOut,animation:"opacity1 .5s","& .menu-line-item":{listStyle:"none",borderBottom:`1px solid ${a.palette.primary.main}`,"&:last-child":{borderBottom:"none"},"& a":{color:a.palette.text.menuItemColor,padding:"10px 10px 10px 15px",marginLeft:"10px",display:"block",transition:a.transitions.easing.easeOut,position:"relative","&::before":{content:'""',position:"absolute",top:"50%",left:"0",transform:"translateY(-50%)",width:"8px",height:"8px",borderRadius:a.shape.borderRadius5,backgroundColor:a.palette.primary.main}}}},"&:hover":{"& .menu-line":{display:"block"}}}},"&:hover":{"& .dropdown-content":{display:"block"}}}}}},"& .bm-cross-button":{height:"24px",width:"24px","& span":{"& .bm-cross":{background:"#fff"}}}}},"& .img-holder":{marginRight:"20px","& img":{maxHeight:"30px"}}},[a.breakpoints.down("sm")]:{display:"block"},[a.breakpoints.between("sm","md")]:{display:"block"},[a.breakpoints.up("lg")]:{display:"none"}},"@keyframes pulse5":{"0%":{transform:"scale(0.95)",boxShadow:"0 0 0 0 #fff"},"70%":{transform:"scale(1)",boxShadow:"0 0 0 10px rgba(255, 255, 255, 0)"},"100%":{transform:"scale(0.95)",boxShadow:"0 0 0 0 rgba(255, 255, 255, 0)"}},"@keyframes opacity":{"0%":{transform:"translateY(20px)",opacity:0},"100%":{transform:"translateY(0px)",opacity:1}}})),S=()=>{const[a,d]=x.useState(!1),{profile:r,menu:g}=x.useContext(k),c=L(),u=y(),s=()=>{d(!a)},i=()=>{d(!1)};return n.jsx("section",{className:c.root,children:n.jsxs(j,{className:"mobile-menu-7",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n.jsx(t,{component:"div",className:"burger-menu",children:n.jsx(C.slide,{disableAutoFocus:!0,isOpen:a,onOpen:s,onClose:s,children:n.jsx("ul",{children:g.map((e,m)=>{if(!(m>9))return e.childs&&e.childs.length?n.jsxs("li",{className:"dropdown",children:[n.jsxs(t,{variant:"span",className:"drop-btn",children:[e.name,e.childs?n.jsx(t,{variant:"span",className:"drop-icon",children:n.jsx(h,{sx:{ml:2}})}):null]}),n.jsx("ul",{className:"dropdown-content",children:e.childs.map((o,N)=>e.childs?n.jsxs("li",{className:"nav-dropdown-item",children:[o.childs?n.jsxs(t,{variant:"span",className:"main-dropdown-list-link",display:"flex",alignIitems:"center",justifyContent:"space-between",children:[o.name,n.jsx(h,{sx:{ml:2}})]}):n.jsx(n.Fragment,{children:o.externalLink?n.jsx("a",{href:o.externalLink,target:"_blank",className:"main-dropdown-list-link",onClick:()=>i(),rel:"noreferrer",children:o.name}):n.jsx(l,{to:`${e.slug}/${o.slug}`,className:"main-dropdown-list-link",onClick:()=>i(),children:o.name})}),o.childs?n.jsx("ul",{className:"menu-line",children:o.childs.map((p,w)=>n.jsx("li",{className:"menu-line-item",onClick:()=>i(),children:p.externalLink?n.jsx("a",{href:p.externalLink,target:"_blank",rel:"noreferrer",children:p.name}):n.jsx(l,{to:`${e.slug}/${o.slug}/${p.slug}`,children:p.name})},o.slug+w))}):null]},o.slug+N):null)})]},e.slug):n.jsx("li",{className:"dropdown",onClick:()=>i(),children:e.externalLink?n.jsx("a",{href:e.externalLink,className:"drop-btn",target:"_blank",rel:"noreferrer",children:e.name}):n.jsx(l,{to:`${e.slug}`,className:"drop-btn",children:e.name})},e.slug+m)}
1)})})}),n.jsx(t,{component:"div",className:"img-holder",children:n.jsx(l,{to:"/",children:u.palette.mode==="dark"?n.jsx("img",{src:f(r.whiteLogo,b),alt:r.name,className:"img-fluid"}):n.jsx("img",{src:f(r.logo,b),alt:r.name,className:"img-fluid"})})})]})})},B=v(a=>({root:{position:"absolute",top:0,left:0,width:"100%",zIndex:1,"& .header-main":{"& .logo-holder":{"& a":{"& img":{maxHeight:"60px"}}},"& .navigation":{"& .main-navigation":{"& .main-navigation-list":{position:"relative",display:"inline-block","& .main-navigation-list-link":{color:"#fff",padding:a.spacing(5),display:"block",cursor:"pointer",fontWeight:a.typography.fontWeightMedium},"& .sub-menu":{background:"rgba(255, 255, 255, 1)",border:"1px solid rgba( 255, 255, 255, 0.18 )",backdropFilter:"blur(4px)",borderRadius:a.shape.borderRadius,position:"absolute",minWidth:"300px",display:"none",animation:"$slideTop .3s ease-out","& .sub-menu-list":{"&:not(:last-child)":{borderBottom:"1px solid #eee"},"& .sub-menu-list-link":{color:"#434343",display:"block",padding:a.spacing(2),transition:a.transitions.easing.easeOut,"&:hover":{paddingLeft:a.spacing(4),color:a.palette.action.hover2}}}},"&:hover":{"& .sub-menu":{display:"block"}}}}}},[a.breakpoints.down("lg")]:{display:"none"}},"@keyframes slideTop":{from:{transform:"translateY(20px)"},to:{transform:"translateY(0)"}}})),E=()=>{const{menu:a,profile:d}=x.useContext(k),r=B(),g=y();window.onscroll=function(){u()};let c="";function u(){let s=`${r.root}`;if(document.body.scrollTop>90||document.documentElement.scrollTop>90){c=`{
2                position: fixed !important; 
3                background: linear-gradient(45deg,#2f6ed3 5%,#5095e4 20%,#5095e4 60%,#2f6ed3 95%) !important;
4                z-index: 9 !important; 
5                top: 0; 
6                left: 0 !important; 
7                right: 0 !important; 
8                animation: slideIn 2s; 
9                transition: transform 1s ease-in-out 0s; 
10                animation-timing-function: ease-out;
11                animation-duration: .7s;
12            }`;let i=`@keyframes slideIn { 
13                0% {
14                    opacity: 0;
15                    top: -30px;
16                }
17	            100% {
18                    opacity: 1;
19                    top: 0;
20                } 
21              }`;document.getElementById("nav-style").innerHTML="."+s+c+i}else c=`{ 
22            }`,document.getElementById("nav-style").innerHTML="."+s+c}return n.jsxs(n.Fragment,{children:[n.jsx(S,{menu:a,profile:d,theme:g}),n.jsx("section",{className:r.root,children:n.jsxs(j,{className:"header-main",sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n.jsx(t,{component:"div",className:"logo-holder",children:n.jsx(l,{to:"/",children:n.jsx("img",{src:f(d.whiteLogo,b),alt:d.name})})}),n.jsx("nav",{className:"navigation",children:n.jsxs(t,{variant:"ul",className:"main-navigation",display:"flex",alignItems:"center",justifyContent:"center",children:[a.map((s,i)=>{if(!(i>6))return s.childs&&s.childs.length?n.jsxs("li",{className:"main-navigation-list",children:[n.jsx(t,{variant:"span",className:"main-navigation-list-link",children:s.name}),n.jsx("ul",{className:"sub-menu",children:s.childs.map((e,m)=>n.jsx("li",{className:"sub-menu-list",children:e.externalLink?n.jsx("a",{href:e.externalLink,target:"_blank",rel:"noreferrer",className:"sub-menu-list-link",children:e.name}):n.jsx(l,{to:`/${s.slug}/${e.slug}`,className:"sub-menu-list-link",children:e.name})},m+"_"))})]},i+"__"):n.jsx("li",{className:"main-navigation-list",children:s.externalLink?n.jsx("a",{href:s.externalLink,target:"_blank",rel:"noreferrer",className:"main-navigation-list-link",children:s.name}):n.jsx(l,{to:`/${s.slug}`,className:"main-navigation-list-link",children:s.name})},i)}),a.length>7?n.jsx($,{length:"7",background:"#fff"}):null]})})]})})]})};export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.