(()=>{if(typeof window>"u"||!window.React)return;const a=window.React.createElement;function t({kind:o,items:l,onSelect:i,selectedId:r}){const d=Array.isArray(l)?l:[];return d.length?a("div",{className:"view view-grid"},d.map(e=>{const n=e.id,c=e.name||e.title||e.label||n,u=[e.kpi,e.statusLabel,e.value,e.count,e.version,e.rate,e.owner,e.domain,e.updated,e.last].filter(s=>s!=null&&s!==""),m=e.thumb||e.image||e.logo;return a("button",{key:n,type:"button",className:`gr-card status-${e.status||"idle"}${r===n?" selected":""}`,onClick:i?()=>i(n):void 0,"aria-pressed":r===n},a("div",{className:"gr-media"},m?a("img",{className:"gr-thumb",src:e.thumb||e.image||e.logo,alt:"",loading:"lazy"}):a("span",{className:"gr-icon"},typeof MIcon=="function"?a(MIcon,{name:e.iconName||"grid_view",size:22}):null)),a("div",{className:"gr-head"},a("span",{className:"gr-name"},c),typeof StatusDot=="function"?a(StatusDot,{status:e.status}):null),e.subtitle?a("div",{className:"gr-sub"},e.subtitle):null,typeof window.ScopeBadge=="function"?a(window.ScopeBadge,{item:e,kind:o}):null,u.length?a("div",{className:"gr-meta"},u.slice(0,3).map((s,g)=>a("span",{key:g,className:"mono ink-faint"},String(s)))):null)})):typeof StateBox=="function"?a(StateBox,{kind:"empty",message:o?.emptyMessage||"Nothing here yet"}):a("div",{className:"view view-grid is-empty"},"Nothing here yet")}window.VIEWS?window.VIEWS.grid=t:window.VIEWS={grid:t}})();
