1import{e as m,j as e,ay as p,V as k,f as u,r as f}from"./index-DXVlNupe.js";import{V as x}from"./ViewLayout-BjH9mzBN.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"c68a61f06ec4a3d8c2b437bc1042fce2068e1a7a"};var r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="de21f4bb-758a-4ef4-ab4a-3b605e82012d",a._sentryDebugIdIdentifier="sentry-dbid-de21f4bb-758a-4ef4-ab4a-3b605e82012d")}catch{}})();async function y(){const a=await m.get("features/");if(!a?.data)throw new Error("Error getting Features");return a.data}function g(){return e.jsx("div",{className:"marketplace-grid",children:Array.from({length:4}).map((a,r)=>e.jsxs("div",{className:"marketplace-card",children:[e.jsx("div",{className:"skeleton marketplace-skeleton-subtitle"}),e.jsx("div",{className:"skeleton marketplace-skeleton-title"}),e.jsx("div",{className:"skeleton marketplace-skeleton-line"}),e.jsx("div",{className:"skeleton marketplace-skeleton-line"}),e.jsx("div",{className:"skeleton marketplace-skeleton-line marketplace-skeleton-line-short"}),e.jsx("div",{className:"skeleton marketplace-skeleton-pill"})]},r))})}function j({onRetry:a}){return e.jsxs("div",{className:"marketplace-error",children:[e.jsx(p,{className:"marketplace-error-icon"}),e.jsx("h3",{className:"marketplace-error-title",children:"Couldn't load marketplace"}),e.jsx("p",{className:"marketplace-error-text",children:"Something went wrong. Please try again."}),e.jsx(k,{label:"Reload",onClick:a,variant:"sayso-indigo"})]})}function N(){const{data:a,isLoading:r,isError:s,refetch:c}=u({queryKey:["get-features"],queryFn:y}),i=f.useMemo(()=>a?.slice().sort((t,l)=>t.sort_order-l.sort_order),[a]);return e.jsxs(x,{title:"Marketplace",description:"Explore and manage the features powering your Sayso experience.",children:[r&&e.jsx(g,{}),s&&e.jsx(j,{onRetry:c}),!r&&!s&&e.jsx("div",{className:"marketplace-grid",children:i?.map(({id:t,description:l,display_name:o,subtitle:d,status:n})=>e.jsxs("div",{className:"marketplace-card",children:[e.jsx("span",{className:"marketplace-card-subtitle",children:d}),e.jsx("span",{className:"marketplace-card-display-name",children:o}),e.jsx("span",{className:"marketplace-card-description",children:l}),e.jsx("span",{className:`marketplace-card-status marketplace-card-status-${n}`,children:n})]},t))})]})}export{N as default}; 2//# sourceMappingURL=index-CrAkSHw7.js.map
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.