1import{r as g,C as n}from"./index.y-jXc8sl.js";import{d as P}from"./pinia.FRuC6T7F.js";import{r as e}from"./restApi.D0GENJNf.js";const A=P("collectionsStore",()=>{const a=g({total:0,currentPage:1,data:[]});return{collections:a,getCollections:async(t={})=>{const s={posts_per_page:12,...t},o="".concat(n().restApiUrl,"/collections"),c=await e().get("",{baseURL:o,params:s});return a.value=c.data,c.data},getCollection:async t=>{const s="".concat(n().restApiUrl,"/collection/").concat(t);return(await e().get("",{baseURL:s})).data},saveCollection:async t=>(await e().post("",t)).data,deleteCollections:async t=>{const s="".concat(n().restApiUrl);return(await e().delete("",{baseURL:s,data:{ids:t}})).data},deleteCollection:async t=>{const s={action:"remove_wishlist",ids:[t]};return(await e().post("",s)).data},getWishlists:async(t={})=>{const s={posts_per_page:10,...t},o="".concat(n().restApiUrl,"/wishlists"),c=await e().get("",{baseURL:o,params:s});return a.value=c.data,c.data},getWishlistItems:async(t={})=>{const s={...t},o="".concat(n().restApiUrl,"/wishlist-items");return(await e().get("",{baseURL:o,params:s})).data},deleteCollectionItems:async(t,s,o)=>{const c={action:"remove_wishlist_item",collection_id:t,product_id:s,variation_id:o};return(await e().post("",c)).data},updateWishlistItem:async t=>(await e().post("",t)).data,getGuestWishlistProducts:async t=>{const s="".concat(n().restApiUrl,"/guest-wishlist-products");return(await e().post("",{products:t},{baseURL:s})).data},updateWishlistItemPosition:async t=>(await e().post("",t)).data}}),L=P("productsStore",()=>{const a=g({data:[]}),i=g({total:0,currentPage:1,data:[]});let u=0;return{productLists:a,getProducts:async(l={})=>{const p=++u,d={per_page:20,stwlite_extended_search:1,...l},r="".concat(n().productsApiUrl),w=(await e().get("",{baseURL:r,params:d})).data||[];return p===u&&(a.value={data:w}),w},collectionProducts:i,getCollectionProducts:async(l={})=>{const p={...l},d="".concat(n().restApiUrl,"/items"),r=await e().get("",{baseURL:d,params:p});return i.value=r.data,r.data}}}),W=P("usersStore",()=>{const a=g({data:[]});let i=0;return{users:a,getUsers:async(m={})=>{const U=++i,l={per_page:20,...m},p="".concat(n().usersApiUrl),r=(await e().get("",{baseURL:p,params:l})).data||[];return U===i&&(a.value={data:r}),r}}});export{L as a,W as b,A 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.