PageSourceSearch

https://msastroacademy.com/assets/AdminLayout-B0DIBAYd.js

js msastroacademy.com collected 2026-10-02 01:38:31 UTC 16,398 bytes, 1 lines download raw bytes

1import{r as n,j as e}from"./react-vendor-DDlTsOEd.js";import{g as t,b as q,a as D,x as H,X as U,k as v,an as w,ao as T,Q as B,j as P,o as F,ap as V,d as W,aq as Q,ar as K,a3 as G,W as X,M as f,as as z,B as Y,a4 as J,C as Z,i as ee,ai as se,at as ie,F as te,a5 as ae,U as k,a7 as ne,a1 as re,Y as oe,e as le,I as de,au as ce,m as he}from"./index-BBAL-XO_.js";import{M as N}from"./megaphone-c2Ccoqv-.js";import{C as me}from"./clipboard-check-B-VFQxDc.js";import{D as xe}from"./database-CfQ3DoFp.js";import{T as ue}from"./tag-finmna5A.js";import{C as pe}from"./credit-card-jC5ykv7d.js";const fe=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ke=t("activity",fe);const be=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],ye=t("arrow-left-right",be);const ge=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],je=t("bot",ge);const ve=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],we=t("chart-line",ve);const ze=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ne=t("cpu",ze);const Me=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],M=t("dollar-sign",Me);const Ce=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Se=t("film",Ce);const Ae=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],_e=t("id-card",Ae);const Le=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],$e=t("newspaper",Le);const Ee=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],Re=t("percent",Ee);const Ie=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],C=t("scroll-text",Ie);const Oe=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],L=t("settings",Oe);const qe=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",ke
1y:"9zh506"}]],De=t("shopping-cart",qe);const He=[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ue=t("square-user-round",He);const Te=[["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M2 21a8 8 0 0 1 10.434-7.62",key:"1yezr2"}],["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["path",{d:"m22 22-1.9-1.9",key:"1e5ubv"}]],Be=t("user-round-search",Te),S=[{kind:"item",href:"/admin",label:"Dashboard",icon:e.jsx(K,{size:17})},{kind:"item",href:"/admin/analytics",label:"Analytics",icon:e.jsx(G,{size:17})},{kind:"group",label:"Enterprise Ops"},{kind:"item",href:"/admin/operations",label:"Operations",icon:e.jsx(ke,{size:17})},{kind:"item",href:"/admin/student-success",label:"Student Success",icon:e.jsx(X,{size:17})},{kind:"item",href:"/admin/enterprise/overview",label:"Enterprise KPIs",icon:e.jsx(we,{size:17})},{kind:"item",href:"/admin/enterprise/finance",label:"Finance ops",icon:e.jsx(M,{size:17})},{kind:"item",href:"/admin/enterprise/support",label:"Support desk",icon:e.jsx(f,{size:17})},{kind:"item",href:"/admin/enterprise/marketing",label:"Marketing",icon:e.jsx(N,{size:17})},{kind:"item",href:"/admin/enterprise/cms",label:"CMS",icon:e.jsx($e,{size:17})},{kind:"item",href:"/admin/enterprise/rbac",label:"RBAC & Audit",icon:e.jsx(z,{size:17})},{kind:"item",href:"/admin/enterprise/automation",label:"Automations",icon:e.jsx(je,{size:17})},{kind:"group",label:"Manage Content"},{kind:"item",href:"/admin/courses",label:"Courses",icon:e.jsx(Y,{size:17})},{kind:"item",href:"/admin/lessons",label:"Lessons",icon:e.jsx(J,{size:17})},{kind:"item",href:"/admin/quizzes",label:"Quizzes",icon:e.jsx(Z,{size:17})},{kind:"item",href:"/admin/assignments-all",label:"Assignments",icon:e.jsx(ee,{size:17})},{kind:"item",href:"/admin/evaluation-center",label:"Evaluation Center",icon:e.jsx(me,{size:17})},{kind:"item",href:"/admin/translations",label:"Telugu review",icon:e.jsx(se,{size:17})},{kind:"item",href:"/admin/case-studies",label:"Case studies",icon:e.jsx(ie,{size:17})},{kind:"item",href:"/admin/materials",label:"Study Materials",icon:e.jsx(te,{size:17})},{kind:"item",href:"/admin/questions",label:"Question Bank",icon:e.jsx(xe,{size:17})},{kind:"item",href:"/admin/media",label:"Media Library",icon:e.jsx(Se,{size:17})},{kind:"item",href:"/admin/live-sessions",label:"Live Sessions",icon:e.jsx(ae,{size:17})},{kind:"group",label:"Communication"},{kind:"item",href:"/admin/instructor-comms",label:"Instructor Hub",icon:e.jsx(f,{size:17})},{kind:"item",href:"/admin/announcements",label:"Announcements",icon:e.jsx(N,{size:17})},{kind:"item",href:"/admin/batches",label:"Batches",icon:e.jsx(k,{size:17})},{kind:"item",href:"/admin/discussion-moderation",label:"Discussion reports",icon:e.jsx(C,{size:17})},{kind:"group",label:"Users & Management"},{kind:"item",href:"/admin/people",label:"People (accounts & contacts)",icon:e.jsx(k,{size:17})},{kind:"item",href:"/admin/email",label:"Email",icon:e.jsx(ne,{size:17})},{kind:"item",href:"/admin/students",label:"Students",icon:e.jsx(k,{size:17})},{kind:"item",href:"/admin/student-information",label:"Student information",icon:e.jsx(_e,{size:17})},{kind:"item",href:"/admin/instructors",label:"Instructors",icon:e.jsx(Ue,{size:17})},{kind:"item",href:"/admin/staff-access",label:"Staff access",icon:e.jsx(re,{size:17})},{kind:"item",href:"/admin/account-sharing",label:"Account sharing",icon:e.jsx(Be,{size:17})},{kind:"item",href:"/admin/categories",label:"Categories",icon:e.jsx(ue,{size:17})},{kind:"item",href:"/admin/certificates",label:"Certificates",icon:e.jsx(oe,{size:17})},{kind:"item",href:"/admin/reviews",label:"Reviews & Ratings",icon:e.jsx(le,{size:17})},{kind:"item",href:"/admin/qa",label:"Student Q&A",icon:e.jsx(f,{size:17})},{kind:"group",label:"Sales & Finance"},{kind:"item",href:"/admin/payments",label:"Payments",icon:e.jsx(de,{size:17})},{kind:"item",href:"/admin/orders",label:"Orders",icon:e.jsx(De,{size:17})},{kind:"item",href:"/admin/subscriptions",label:"Subscriptions",icon:e.jsx(pe,{size:17})},{kind:"item",href:"/admin/coupons",label:"Coupons",icon:e.jsx(Re,{size:17})},{kind:"item",href:"/admin/payouts",label:"Payouts",icon:e.jsx(M,{size:17})},{kind:"item",href:"/admin/transactions",label:"Transactions",icon:e.jsx(ye,{size:17})},{kind:"group",label:"Tools"},{kind:"item",href:"/admin/calculators",label:"Calculators",icon:e.jsx(ce,{size:17})},{kind:"item",href:"/admin/kundali",label:"Kundali Generator",icon:e.jsx(he,{size:17})},{kind:"item",href:"/admin/ai-control",label:"AI Control Center",icon:e.jsx(Ne,{size:17})},{kind:"group",label:"System"},{kind:"item",href:"/admin/settings",label:"Settings",icon:e.jsx(L,{size:17})},{kind:"item",href:"/admin/roles",label:"Roles & Permissions",icon:e.jsx(z,{size:17})},{kind:"item",href:"/admin/logs",label:"System Logs",icon:e.jsx(C,{size:17})}],Pe=Q?S.filter(r=>!(r.kind==="item"&&r.href==="/admin/kundali")):S,A=["bg-violet-500","bg-blue-500","bg-emerald-500","bg-orange-500","bg-pink-500","bg-teal-500","bg-indigo-500","bg-amber-500"];function _(r){let i=0;for(let o=0;o<r.length;o++)i=r.charCodeAt(o)+((i<<5)-i);return A[Math.abs(i)%A.length]}function Ye({children:r}){const{user:i,logout:o}=q(),[b,h]=D(),[y,l]=n.useState(!1),u=n.useRef(null),[d,$]=n.useState(0);n.useEffect(()=>{const s=()=>W.get("/notifications/unread-count").then(O=>$(Number(O.data?.unread??0))).catch(()=>{});s();const a=()=>{s()};window.addEventListener("msa:announcement-read",a);const x=window.setInterval(a,12e4);return()=>{window.removeEventListener("msa:announcement-read",a),clearInterval(x)}},[]),n.useEffect(()=>{function s(a){u.current&&!u.current.contains(a.target)&&l(!1)}return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[]);const[m,c]=n.useState(()=>typeof window<"u"?window.innerWidth>=768:!0),[p,E]=n.useState(()=>typeof window<"u"?window.innerWidth<768:!1);n.useEffect(()=>{function s(){const a=window.innerWidth<768;E(a),a||c(!0)}
1return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);const g=i?.name?i.name[0].toUpperCase():i?.email?.[0]?.toUpperCase()??"A";function R(){o(),h("/login")}function I(){p&&c(!1)}const j=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"h-16 flex items-center justify-between px-4 border-b border-white/10 shrink-0",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("img",{src:H,alt:"MSAstroacademy",className:"h-9 w-auto object-contain shrink-0"}),e.jsx("p",{className:"text-xs text-slate-400 leading-none truncate",children:"LMS ADMIN"})]}),p&&e.jsx("button",{onClick:()=>c(!1),className:"text-slate-400 hover:text-white transition-colors p-1 ml-2 shrink-0",children:e.jsx(U,{size:18})})]}),e.jsx("nav",{className:"flex-1 overflow-y-auto py-3 px-2 space-y-0.5",children:Pe.map((s,a)=>{if(s.kind==="group")return e.jsx("div",{className:"pt-4 pb-1.5 px-3",children:e.jsx("p",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-widest",children:s.label})},a);const x=s.href==="/admin"?b==="/admin":b.startsWith(s.href);return e.jsx(v,{href:s.href,children:e.jsxs("button",{onClick:I,className:`w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm transition-all ${x?"bg-blue-600 text-white font-medium shadow-md":"text-slate-400 hover:text-slate-200 hover:bg-white/5"}`,children:[e.jsx("span",{className:x?"text-white":"text-slate-500",children:s.icon}),e.jsx("span",{className:"truncate",children:s.label})]})},s.href)})}),e.jsxs("div",{className:"p-3 border-t border-white/10 shrink-0 flex items-center gap-3",children:[e.jsx("div",{className:`w-8 h-8 rounded-full ${_(i?.email??"")} flex items-center justify-center text-xs font-bold text-white shrink-0`,children:g}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-semibold text-white truncate",children:i?.name||i?.email}),e.jsx("p",{className:"text-[10px] text-slate-400",children:"Super Admin"})]}),e.jsx("button",{onClick:R,className:"text-slate-500 hover:text-red-400 transition-colors p-1 shrink-0",title:"Logout",children:e.jsx(w,{size:15})})]})]});return e.jsxs("div",{className:"min-h-screen bg-[#f5f6fa] flex font-sans overflow-hidden h-screen",children:[p?e.jsxs(e.Fragment,{children:[m&&e.jsx("div",{className:"fixed inset-0 z-30 bg-black/50 backdrop-blur-sm",onClick:()=>c(!1)}),e.jsx("aside",{className:`fixed inset-y-0 left-0 z-40 w-64 bg-[#1a2035] flex flex-col h-screen transform transition-transform duration-250 ease-in-out ${m?"translate-x-0":"-translate-x-full"}`,children:j})]}):e.jsx("aside",{className:`${m?"w-60":"w-0 overflow-hidden"} transition-all duration-200 bg-[#1a2035] flex flex-col shrink-0 h-screen`,children:j}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0 overflow-hidden",children:[e.jsxs("header",{className:"h-14 md:h-16 bg-white border-b border-gray-200 flex items-center px-3 md:px-5 gap-2 md:gap-4 shrink-0",children:[e.jsx("button",{onClick:()=>c(!m),className:"text-gray-900 hover:text-gray-800 transition-colors p-1.5 rounded-lg hover:bg-gray-100 shrink-0",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),e.jsx("line",{x1:"3",y1:"12",x2:"21",y2:"12"}),e.jsx("line",{x1:"3",y1:"18",x2:"21",y2:"18"})]})}),e.jsx("div",{className:"hidden sm:flex flex-1 max-w-md",children:e.jsx(T,{endpoint:"/admin/search",placeholder:"Search students, courses, certificates…"})}),e.jsx("div",{className:"flex-1 sm:hidden"}),e.jsxs("div",{className:"flex items-center gap-2 md:gap-3 ml-auto",children:[e.jsxs(v,{href:"/admin/notifications",className:"relative p-1.5 md:p-2 text-gray-900 hover:text-gray-800 hover:bg-gray-100 rounded-xl transition-colors","aria-label":d>0?`${d} unread notifications`:"Notifications",children:[e.jsx(B,{size:18}),d>0&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 min-w-[16px] h-4 px-1 flex items-center justify-center bg-red-500 text-white text-[10px] font-bold rounded-full tabular-nums",children:d>9?"9+":d})]}),e.jsxs("div",{ref:u,className:"relative flex items-center gap-2 pl-2 md:pl-3 border-l border-gray-200",children:[e.jsxs("button",{onClick:()=>l(s=>!s),className:"flex items-center gap-2 hover:bg-gray-100 rounded-xl px-2 py-1 transition-colors",children:[e.jsx("div",{className:`w-7 h-7 md:w-8 md:h-8 rounded-full ${_(i?.email??"")} flex items-center justify-center text-xs font-bold text-white`,children:g}),e.jsxs("div",{className:"hidden sm:block text-left",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-900 leading-none",children:i?.name||"Admin"}),e.jsx("p",{className:"text-xs text-gray-900 mt-0.5",children:"Super Admin"})]}),e.jsx(P,{size:14,className:`text-gray-900 hidden sm:block transition-transform ${y?"rotate-180":""}`})]}),y&&e.jsxs("div",{className:"absolute right-0 top-full mt-2 w-52 bg-white rounded-xl shadow-lg border border-gray-100 py-1 z-50",children:[e.jsxs("div",{className:"px-4 py-3 border-b border-gray-100",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-900 truncate",children:i?.name||"Admin"}),e.jsx("p",{className:"text-xs text-gray-900 truncate",children:i?.email})]}),e.jsxs("button",{onClick:()=>{l(!1),h("/admin/settings")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-gray-900 hover:bg-gray-50 transition-colors",children:[e.jsx(L,{size:15,className:"text-gray-900"}),"Settings"]}),e.jsxs("button",{onClick:()=>{l(!1),h("/admin")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-gray-900 hover:bg-gray-50 transition-colors",children:[e.jsx(F,{size:15,className:"text-gray-900"}),"My Profile"]}),e.jsx("div",{className:"border-t border-gray-100 mt-1"}),e.jsxs("button",{onClick:()=>{l(!1),o(),h("/login")},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors",children:[e.jsx(w,{size:15}),"Sign Out"]})]})]})]})]}),e.jsxs("main",{className:"flex-1 overflow-y-auto p-3 sm:p-4 md:p-6",children:[e.jsx(V,{audience:"admin"}),r]})]})]})}export{Ye as A,Ne as C,M as D,Se as F,Re as P,Ue as S,De as a,ye as b,L as c,C as d};

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.