import{j as s}from"./sikshya-admin-sikshya-react-E_TY_un4.js";import{ad as i}from"./sikshya-admin-sikshya-vendor-BVAk_Gwu.js";function c({children:e,className:a="",padding:r="p-0"}){return s.jsx("div",{className:`overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm ${r} ${a}`,children:e})}const t="animate-pulse rounded-md bg-slate-200/80";function l({className:e=""}){return s.jsx("div",{className:`${t} h-4 ${e}`,"aria-hidden":!0})}function o({className:e="h-10 w-10"}){return s.jsx("div",{className:`${t} ${e}`,"aria-hidden":!0})}function m({rows:e=3}){return s.jsx("div",{className:"space-y-3 p-2","aria-busy":"true","aria-label":i("Loading","sikshya"),children:Array.from({length:e}).map((a,r)=>s.jsx(l,{className:r===0?"w-2/3":"w-full"},r))})}function x({columns:e,rows:a=8}){return s.jsx("tbody",{className:"divide-y divide-slate-100","aria-busy":"true","aria-label":i("Loading table","sikshya"),children:Array.from({length:a}).map((r,d)=>s.jsx("tr",{children:Array.from({length:e}).map((h,n)=>s.jsx("td",{className:"px-4 py-3",children:s.jsx(l,{className:n===0?"h-4 w-3/4 max-w-xs":"h-4 w-20"})},n))},d))})}function w(){return s.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row","aria-busy":"true","aria-label":i("Loading course builder","sikshya"),children:[s.jsxs("div",{className:"shrink-0 space-y-2 lg:w-72",children:[s.jsx(l,{className:"h-3 w-24"}),Array.from({length:5}).map((e,a)=>s.jsx("div",{className:"rounded-xl border border-slate-200 bg-white p-3 shadow-sm",children:s.jsxs("div",{className:"flex gap-3",children:[s.jsx(o,{className:"h-7 w-7 shrink-0 rounded-full"}),s.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[s.jsx(l,{className:"h-4 w-3/4"}),s.jsx(l,{className:"h-3 w-full"})]})]})},a))]}),s.jsxs("div",{className:"min-w-0 flex-1 space-y-6",children:[s.jsxs("div",{className:"rounded-xl border border-slate-200 bg-white p-6 shadow-sm",children:[s.jsx(l,{className:"h-3 w-40"}),s.jsx(l,{className:"mt-4 h-7 w-2/3"}),s.jsx(l,{className:"mt-2 h-4 w-full max-w-md"})]}),s.jsx("div",{className:"rounded-xl border border-slate-200 bg-white p-6 shadow-sm",children:s.jsx(m,{rows:5})})]})]})}function p({headers:e,rows:a=8}){const r=e.length;return s.jsx(c,{children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-200 text-sm",children:[s.jsx("thead",{className:"bg-slate-50 text-left text-xs font-semibold uppercase tracking-wide text-slate-500",children:s.jsx("tr",{children:e.map(d=>s.jsx("th",{className:"px-4 py-3",scope:"col",children:d},d))})}),s.jsx(x,{columns:r,rows:a})]})})})}export{w as C,p as D,l as S,x as T,m as a,c as b};
