1import{E as c,a9 as l}from"./DeGZr0e7.js";function y(){const{apiBaseURL:e}=c();return{listPosts:async(t={})=>{const n=new URLSearchParams,o=(g,s)=>{if(s==null)return;const r=String(s).trim();r&&n.append(g,r)};o("category",t.category),o("q",t.q),o("page",t.page),o("page_size",t.pageSize);const a=n.toString(),i=a?`${e}/v1/blog/posts?${a}`:`${e}/v1/blog/posts`;return await $fetch(i,{method:"GET"})},getPostBySlug:async t=>await $fetch(`${e}/v1/blog/posts/${encodeURIComponent(t)}`,{method:"GET"}),listCategories:async()=>await $fetch(`${e}/v1/blog/categories`,{method:"GET"}),getPreviewBySlug:async t=>await $fetch(`${e}/v1/blog/admin/preview/${encodeURIComponent(t)}`,{method:"GET",headers:l(!1,!1)})}}export{y 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.