1import{u as l}from"./R65Gaj1O.js";import{Q as m,bM as p,bF as u,K as y,A as n,cN as d}from"./6cw9AFkX.js";import{i as f}from"./CEy1s7g8.js";function v({params:o,options:a}={},e="useCategories"){const r=m("getCategoriesByPath",e,o,a),s=p("getCategoryById"),{data:i,error:t,status:c,refresh:g}=r;return u(r.then(()=>({})),{data:i,error:t,status:c,refresh:g,getCategoryById:(C,h)=>s({id:C,includeHidden:h})})}function D(){const o=l(),a=v({params:{path:"/",children:1,properties:{withName:["sale"]}}},"root-categories"),{data:e,status:r,error:s}=a,i=n(()=>f(r)),t=n(()=>e.value?Array.isArray(e.value.categories)?e.value.categories:[e.value.categories]:[]),c=n(()=>d(t.value));return y(t,g=>{g.forEach(o.addCategoryToCache)},{deep:!1,immediate:!0}),u(a.then(()=>({})),{fetchingCategories:i,rootCategories:t,error:s,allCategories:c})}export{D 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.