import{j as e}from"./vendor-react-O8XH9yVn.js";import{c as s}from"./recharts-BU7auunF.js";const a=[45,72,33,58,80,42,65,28,55,75,38,62];function l({className:a,style:l}){return e.jsx("div",{className:s("animate-pulse bg-white/[0.06] rounded",a),style:l})}function c(){return e.jsx("div",{className:"p-3 rounded-lg border border-border-subtle bg-bg-subtle",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(l,{className:"w-14 h-6 rounded shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[e.jsx(l,{className:"h-4 w-full"}),e.jsx(l,{className:"h-4 w-3/4"}),e.jsx(l,{className:"h-3 w-32 mt-1"})]})]})})}function r({count:s=8}){return e.jsx("div",{className:"space-y-2",children:Array.from({length:s}).map((s,a)=>e.jsx(c,{},a))})}function i(){return e.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]}),e.jsx(l,{className:"h-8 w-20"}),e.jsxs("div",{className:"flex-1 flex flex-col justify-end gap-2",children:[e.jsx(l,{className:"h-3 w-full"}),e.jsx(l,{className:"h-3 w-3/4"})]})]})}function t(){return e.jsxs("div",{className:"flex flex-col gap-3 h-full","aria-hidden":"true",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]}),e.jsx("div",{className:"flex-1 flex items-end gap-1",children:a.slice(0,8).map((s,a)=>e.jsx(l,{className:"flex-1",style:{height:`${s}%`}},a))})]})}function n({rows:s=5}){return e.jsxs("div",{className:"flex flex-col h-full","aria-hidden":"true",children:[e.jsx("div",{className:"pb-3 border-b border-border-subtle",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-5 h-5"}),e.jsx(l,{className:"h-4 w-24"})]})}),e.jsx("div",{className:"flex-1 pt-3 flex flex-col gap-3",children:Array.from({length:s}).map((s,a)=>e.jsx(l,{className:"h-6 w-full"},a))})]})}function d({children:a,className:l}){return e.jsx("div",{className:s("section-gap",l),children:a})}function x({title:s,icon:a,controls:l,subtitle:c}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("h1",{className:"type-title text-text-primary flex items-center gap-3",children:[a&&e.jsx("span",{className:"w-6 h-6 text-icon-page-title flex-shrink-0",children:a}),s]}),l&&e.jsx("div",{className:"flex items-center gap-2 sm:gap-3",children:l})]}),c&&e.jsx("div",{children:c})]})}const m={sm:"card-sm",md:"card-md",lg:"card-lg",hero:"card-hero",auto:"card-auto"};function h({children:a,size:l,compact:c,noPadding:r,className:d,style:x,onClick:h,isLoaded:o=!0,skeletonType:f="card"}){return e.jsxs("div",{className:s("glass-card h-full flex flex-col relative",!r&&(c?"card-padding-sm":"card-padding"),l&&m[l],d),style:x,onClick:h,children:[a,!o&&(()=>{switch(f){case"chart":return e.jsx(t,{});case"list":return e.jsx(n,{});default:return e.jsx(i,{})}})()]})}function o({icon:a,title:l,badge:c,subtitle:r,actions:i,iconColor:t="text-accent-primary",largeTitle:n=!1,listHeader:d=!1}){return e.jsxs("div",{className:s("flex flex-col gap-1 flex-shrink-0",d?"px-4 py-3 border-b border-border-subtle bg-bg-elevated/20":"mb-3"),children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[a&&e.jsx("span",{className:s("icon-md",t),children:a}),e.jsx("span",{className:n?"type-subheading text-text-primary":"type-micro",children:l}),c&&e.jsx("span",{className:"pill-tag",children:c})]}),i&&e.jsx("div",{className:"flex items-center gap-2 flex-wrap",children:i})]}),r&&e.jsx("p",{className:"type-label text-text-muted ml-7",children:r})]})}export{i as C,r as L,d as P,l as S,h as a,x as b,o as c};
