build: rebuild release bundles for build 181
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 5.5
parent
532ceee189
commit
c845f6db19
@@ -0,0 +1 @@
|
||||
import{q as d,V as f,K as c,aJ as g,h as v,i as p,v as y}from"./index-Db_y-2Uj.js";const m=d("catalog",()=>{const o=f(),s=o.peek(c.catalog),e=g(s??[]),n=v(s!==void 0),i=p(()=>{const t=new Map;for(const a of e.value)a.category&&!t.has(a.category.id)&&t.set(a.category.id,{id:a.category.id,title:a.category.title});return[...t.values()]});async function r(t=!1){const a=await o.fetch(c.catalog,y.listProducts,{force:t});return e.value=a,n.value=!0,a}function l(t){return e.value.find(a=>a.id===t)??null}function u(){o.invalidate(c.catalog)}return{products:e,loaded:n,categories:i,load:r,byId:l,invalidate:u}});export{m as u};
|
||||
Reference in New Issue
Block a user