Files
tehran_taj/apps/user-app/dist/assets/catalogStore-CvqcNvvz.js
T
mahmoodandClaude Sonnet 5.5 8c4ca20a25 fix(app): open the expert drawers — ant-design-vue 3 takes visible, not open
CustomerChoiceView, ChildOrdersView and ReportView bound their Drawer with
v-model:open, which only exists from ant-design-vue 4. Both apps ship 3.2.20,
so the drawer never opened: tapping a customer in «مشتریان من» did nothing and
the "ورود به حساب این مشتری" button inside it was unreachable.

Rebuilds user-app and user-app-v2 dist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 10:51:34 +03:30

2 lines
729 B
JavaScript

import{s as g,W as f,K as c,X as p,h as v,i as y,y as h}from"./index-B1z3uS71.js";const S=g("catalog",()=>{const o=f(),n=o.peek(c.catalog),t=p(n??[]),s=v(n!==void 0),r=y(()=>{const e=new Map;for(const a of t.value)a.category&&!e.has(a.category.id)&&e.set(a.category.id,{id:a.category.id,title:a.category.title});return[...e.values()]});async function i(e=!1){const a=await o.fetch(c.catalog,async()=>(await h.listProductsPaged({page:1,limit:100,sort:"newest"})).rows,{force:e});return t.value=a,s.value=!0,a}function l(e){t.value=e,s.value=!0}function u(e){return t.value.find(a=>a.id===e)??null}function d(){o.invalidate(c.catalog)}return{products:t,loaded:s,categories:r,load:i,replace:l,byId:u,invalidate:d}});export{S as u};