1import{a2 as L,c as i,bk as p,bi as y,r as b,ac as Q}from"./uCMTlqLf.js";function C(){const{isLoggedIn:u,isGuestSession:r}=L(),t=i(()=>u.value&&!r.value),{getWishlistProducts:h,items:e,clearWishlist:m}=p(),{getWishlistProducts:a,items:v,mergeWishlistProducts:W,removeFromWishlistSync:g,count:d,currentPage:P}=y(),c=b(15),f=async s=>{s&&Q({},s),s!=null&&s.limit&&(c.value=s.limit),t.value?await a(s):h()},l=i(()=>t.value?v.value:e.value),S=i(()=>Math.ceil(n.value/c.value)),o=async()=>{t.value?(await Promise.all(l.value.map(s=>g(s))),await a()):m()},w=async()=>{var s;(s=e.value)!=null&&s.length&&(await W(e.value),o()),await a()},n=i(()=>t.value?d.value:l.value.length);return{mergeWishlistProducts:w,getWishlistProducts:f,clearWishlist:o,items:l,currentPage:P,totalPagesCount:S,count:n,canSyncWishlist:t}}export{C as u};
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.