1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{7392:(e,a,s)=>{s.d(a,{oq:()=>d,hB:()=>o,aC:()=>n,lU:()=>r,Nb:()=>l,q$:()=>c,tl:()=>h,V5:()=>m});let t={src:"/_next/static/media/carousel.5051007b.png"},i={src:"/_next/static/media/principle.81a046dd.png"},l={HOME:"/",NEWS:"/news",NOTICE:"/notice",EVENTS:"/events",CONTACT:"/contact",LOGIN:"/login"},r=[{name:"News",href:l.NEWS},{name:"Notice",href:l.NOTICE},{name:"Events",href:l.EVENTS},{name:"Contact Us",href:l.CONTACT}],n=[{name:"News",href:l.NEWS},{name:"Notice",href:l.NOTICE},{name:"Events",href:l.EVENTS},{name:"Contact Us",href:l.CONTACT}],c=[{name:"Ministry of Education",href:"#"},{name:"News",href:"#"},{name:"Tribhuvan University of Nepal",href:"#"},{name:"Faculty of Management",href:"#"},{name:"Result",href:"#"}],o=[{college:"Adarsha Multiple Campus",location:"Banepa-11, Banepa Height, Kavre",contact:"+977-9841429740",email:"[email protected]"}],d=[{image:i.src,name:"Divyaswor makai",contact:"9812345678",email:"[email protected]",title:"Deputy Administrator",location:"Banepa, Bus Park"}];t.src,t.src,t.src,t.src,t.src,t.src;let m=[{id:"college",title:"Welcome to The College",description:"Adarsha Multiple Campus, established in 2009 AD (2066 BS), is a well-recognized educational institution located in Banepa, Kavre, Nepal. The campus is affiliated with Tribhuvan University (TU), offering a Bachelor of Business Studies (BBS) program. Known for its commitment to quality education, Adarsha Multiple Campus provides an academic environment that is both conducive to learning and accessible to a diverse range of students.",details:["AMC College was founded with a mission to offer top-notch education, and over the years, it has evolved into one of Nepalâs leading institutions in technology, engineering, and management studies. The college provides a diverse range of undergraduate and postgraduate programs that are designed to cater to the needs of the rapidly growing job market."," AMC College strives to offer academic excellence with a modern approach, ensuring that students are equipped with both theoretical knowledge and practical skills. The college boasts state-of-the-art facilities, including well-equipped classrooms, computer labs, and libraries, which foster a conducive learning environment."," AMC College is committed to delivering a comprehensive learning experience that blends classroom instruction with hands-on training, industry exposure, and internships. It is this blend that helps students develop a holistic understanding of their fields and prepares them for the professional world. AMC College places a strong emphasis on innovation and leadership, providing students with the tools to think critically and become future leaders in their respective fields. With a faculty consisting of highly qualified and experienced professionals, the institution focuses on nurturing intellectual curiosity and creative problem-solving skills. The college also actively collaborates with industries and other educational institutions to provide students with a wide array of opportunities for growth and career advancement."],image:t.src}];i.src,i.src,i.src,i.src,t.src,t.src,t.src,t.src,t.src,t.src;let h={NEWS:"/api/news",NOTICE:"/api/notice",EVENTS:"/api/events",MARQUEE:"/api/marquee"};t.src,t.src,t.src},1749:(e,a,s)=>{s.d(a,{A:()=>n});let t=null!==(l=null===(i="[email protected],[email protected],[email protected]".split(","))||void 0===i?void 0:i.map(e=>e.trim()))&&void 0!==l?l:[];var i,l,r=s(3013);let n=()=>{var e,a;let{status:s,data:i}=(0,r.useSession)(),l=i&&null!==(a=null===(e=i.user)||void 0===e?void 0:e.email)&&void 0!==a?a:"";return{isAdmin:!!(l&&t.includes(l)),isLoggedIn:"authenticated"===s,isLoading:"loading"===s,email:l}}},9341:(e,a,s)=>{s.d(a,{A:()=>N});var t=s(4848),i=s(7392),l=s(1106),r=s.n(l),n=s(6540),c=s(7037);let o=()=>{let e=new Date;return(0,t.jsx)("footer",{className:"bg-gradient-to-t from-gray-800 via-gray-900 to-black px-8 pb-8 pt-10 text-white",children:(0,t.jsxs)("div",{className:"mx-auto grid max-w-full grid-cols-1 gap-8 px-10 md:grid-cols-4",children:[(0,t.jsxs)("div",{className:"text-center md:text-left",children:[i.oq.map((e,a)=>(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("img",{src:e.image,alt:e.name,className:"mx-auto mb-4 h-20 w-20 rounded-full md:mx-8"}),(0,t.jsx)("h3",{className:"text-lg font-bold",children:e.name}),(0,t.jsx)("p",{children:e.title}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.dRU,{className:"text-gray-400"}),(0,t.jsx)("a",{href:"tel:".concat(e.contact),children:e.contact})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.maD,{className:"text-gray-400"}),(0,t.jsx)("a",{href:"mailto:".concat(e.email),children:e.email})]})]},a)),(0,t.jsxs)("p",{className:"mt-4 text-sm text-gray-400",children:["\xa9 ",e.getFullYear()]})]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,t.jsx)("h4",{className:"mb-4 text-lg font-bold",children:"Menus"}),null===i.aC||void 0===i.aC?void 0:i.aC.map(e=>
1(0,t.jsxs)(r(),{href:e.href,className:"group flex items-center hover:text-gray-400",children:[(0,t.jsx)("span",{className:"mr-2 transition-transform group-hover:translate-x-2",children:"â"}),(0,t.jsx)("span",{className:"transition-transform group-hover:translate-x-2",children:e.name})]},e.name))]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,t.jsx)("h4",{className:"mb-4 text-lg font-bold",children:"Related Links"}),null===i.q$||void 0===i.q$?void 0:i.q$.map(e=>(0,t.jsxs)(r(),{href:e.href,className:"group flex items-center hover:text-gray-400",children:[(0,t.jsx)("span",{className:"mr-2 transition-transform group-hover:translate-x-2",children:"â"}),(0,t.jsx)("span",{className:"transition-transform group-hover:translate-x-2",children:e.name})]},e.name))]}),(0,t.jsxs)("div",{className:"flex flex-col space-y-6",children:[(0,t.jsx)("h4",{className:"mb-4 text-lg font-bold",children:"Contact"}),i.hB.map((e,a)=>(0,t.jsxs)("div",{className:"mb-4 space-y-6",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.vq8,{className:"text-gray-400"}),(0,t.jsx)("p",{children:e.location})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.dRU,{className:"text-gray-400"}),(0,t.jsx)("a",{href:"tel:".concat(e.contact),children:e.contact})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)(c.maD,{className:"text-gray-400"}),(0,t.jsx)("a",{href:"mailto:".concat(e.email),children:e.email})]}),(0,t.jsxs)("div",{className:"ml-10 flex gap-4",children:[(0,t.jsx)("a",{href:"https://www.linkedin.com",target:"_blank",rel:"noopener noreferrer",className:"transition-colors hover:text-gray-400",children:(0,t.jsx)(c.QEs,{size:32})}),(0,t.jsx)("a",{href:"https://www.instagram.com",target:"_blank",rel:"noopener noreferrer",className:"transition-colors hover:text-gray-400",children:(0,t.jsx)(c.xF4,{size:32})}),(0,t.jsx)("a",{href:"https://www.facebook.com",target:"_blank",rel:"noopener noreferrer",className:"transition-colors hover:text-gray-400",children:(0,t.jsx)(c.D2F,{size:32})})]})]},a))]})]})})},d={src:"/_next/static/media/amc.708ec527.png"};var m=s(5460),h=s(1378),x=s(1521),p=s(1749),g=s(3013),f=s(4683),u=s(206);let v=()=>{let{isLoggedIn:e,isLoading:a,email:s}=(0,p.A)(),[l,o]=(0,n.useState)(!1),[v,j]=(0,n.useState)([]);(0,n.useEffect)(()=>{N()},[]);let N=async()=>{try{let e=await f.A.get(i.tl.MARQUEE);e&&j(e),console.log(e,"result in navbar")}catch(a){var e;u.oR.warning(null!==(e=a.message)&&void 0!==e?e:"Something went wrong")}};(0,n.useEffect)(()=>(window.addEventListener("scroll",w),window.addEventListener("resize",y),w(),()=>{window.removeEventListener("scroll",w),window.removeEventListener("resize",y)}),[]);let w=()=>{let e=window.scrollY,a=document.querySelector("#navbar");a&&(e>100?a.classList.add("shadow-md"):a.classList.remove("shadow-md"))},y=()=>{window.innerWidth>768&&o(!1)};return(0,t.jsxs)("nav",{className:"left-0 top-0 z-[9999] w-full bg-nav-bg",id:"navbar",children:[(0,t.jsx)("div",{className:"fixed left-0 top-0 z-[9000] mx-auto flex h-12 w-full items-center justify-start gap-8 bg-nav-bg px-6 py-3",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1400px] items-center justify-between gap-8 px-8 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-8",children:[(0,t.jsx)(r(),{href:"/",className:"flex items-center gap-2",children:(0,t.jsx)("img",{src:d.src,alt:"logo",className:"h-12 w-auto"})}),(0,t.jsx)("div",{className:"hidden items-center gap-8 lg:flex",children:null===i.lU||void 0===i.lU?void 0:i.lU.map(e=>(0,t.jsx)(r(),{href:e.href,className:"hover:text-primary font-semibold text-white transition duration-300",children:e.name},e.name))})]}),!a&&(0,t.jsx)("div",{children:e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"pr-2 text-sm text-white",children:["(",s,")"]}),(0,t.jsx)("button",{className:"text-red-400",onClick:()=>{(0,g.signOut)()},children:"Sign Out"})]}):(0,t.jsx)(r(),{href:i.Nb.LOGIN,className:"text-white",children:"Sign In"})})]})}),(0,t.jsx)("button",{className:"absolute right-6 top-3 z-[9999] lg:hidden",onClick:()=>o(e=>!e),children:l?(0,t.jsx)(m.A,{className:"h-7 w-7 text-gray-700"}):(0,t.jsx)(h.A,{className:"h-7 w-7 text-gray-700"})}),(0,t.jsx)("div",{className:"fixed left-0 top-0 z-[9000] block h-screen w-screen bg-white transition-all duration-300 lg:hidden ".concat(l?"translate-x-0":"translate-x-[-100%]"),children:(0,t.jsx)("div",{className:"mt-20 flex flex-col items-start gap-y-4 px-6 pt-8",children:i.lU.map(e=>(0,t.jsx)(r(),{href:e.href,className:"hover:text-primary font-semibold text-gray-600 transition duration-300",onClick:()=>o(!1),children:e.name},e.name))})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative flex w-full flex-wrap items-start justify-between bg-white px-6 pt-16 md:px-20",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-8 md:flex-row md:items-start",children:[(0,t.jsx)(r(),{href:"/",children:(0,t.jsx)("img",{src:d.src,alt:"Logo",className:"h-24 w-auto"})}),(0,t.jsx)("div",{className:"flex flex-wrap gap-8",children:i.hB.map((e,a)=>(0,t.jsxs)("div",{className:"flex flex-col items-start space-y-2",children:[(0,t.jsx)("h2",{className:"text-primary text-2xl font-extrabold text-gray-800 md:text-3xl",children:e.college}),(0,t.jsx)("p",{className:"text-gray-600 md:text-lg",children:e.location})]},a))})]}),(0,t.jsx)("div",{className:"mt-8 flex flex-col md:mt-0",children:i.hB.map((e,a)=>(0,t.jsxs)("div",{className:"mb-4 space-y-1 md:mb-4",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(c.vq8,{className:"text-primary text-lg"}),(0,t.jsx)("p",{className:"font-medium text-gray-700 md:text-lg",children:e.location})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(c.maD,{className:"text-primary text-lg"}),(0,t.jsx)("a",{href:"mailto:".concat(e.email),className:"font-medium text-gray-700 hover:underline md:text-lg",children:e.email})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(c.dRU,{className:"text-primary text-lg"}),(0,t.jsx)("a",{href:"tel:".concat(e.contact),className:"font-medium text-gray-700 hover:underline md:text-lg",children:e.contact})]})]},a))})]}),(0,t.jsx)("div",{className:"enable-animation hidden w-full py-2 text-white sm:block",children:(0,t.jsx)(x.A,{speed:40,pauseOnHover:!0,children:v.map((e,a)=>(0,t.jsx)("div",{style:{marginRight:"20px"},children:e.content},a))})})]})]})},j=e=>{let{children:a}=e,{isAdmin:s,isLoggedIn:i}=(0,p.A)();return s&&i?a:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex h-20 items-center justify-center",children:"Unauthorized Access for Admin Pages"})})},N=e=>{let{children:a,classes:s="mx-auto my-8 min-h-[90vh] max-w-[1400px] px-4",checkUser:i=!1,isAdminRoute:l=!1}=e,{isLoading:r,email:n}=(0,p.A)();return i&&r?(0,t.jsx)("div",{className:"flex h-20 items-center justify-center",children:"Loading Spinner"}):i&&!n?(0,t.jsx)("div",{className:"flex h-20 items-center justify-center",children:"Unauthorized Access from non logged in user."}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{}),(0,t.jsx)("div",{className:"bg-page-bg relative min-h-screen",children:(0,t.jsx)("div",{className:"relative z-10",children:l?(0,t.jsx)(j,{children:(0,t.jsx)("div",{className:s,children:a})}):(0,t.jsx)("div",{className:s,children:a})})}),(0,t.jsx)(o,{})]})}},4683:(e,a,s)=>{s.d(a,{A:()=>i});let t=s(4335).A.create({baseURL:"https://amc-demo.ojasdigitalnepal.com/"});t.interceptors.response.use(e=>{var a;
1return e.data.ok?e.data.data:Promise.reject(null!==(a=e.data.error)&&void 0!==a?a:e.data.message)},e=>Promise.reject(e));let i=t}}]);
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.