1import{a7 as p,a8 as h,a9 as y,m as g,_ as w,c as f,a as F,e as m,U as _,o as b}from"./BxZSpVAv.js";const T=()=>{const c=g(),r=p(),s=h(),{token:l}=y();return{getFiles:async a=>(a.params?.filter&&(a.params.filter=JSON.stringify(a.params.filter)),a.params?.deep&&(a.params.deep=JSON.stringify(a.params.deep)),(await s("/files/",{method:"GET",params:a.params})).data),getThumbnail:(a,e)=>{const t=new URL(`${r}/assets/${a}`);return e&&(e.width&&t.searchParams.append("width",e.width.toFixed(0)),e.height&&t.searchParams.append("height",e.height.toFixed(0)),e.quality&&t.searchParams.append("quality",e.quality.toFixed(0)),e.withoutEnlargement&&t.searchParams.append("withoutEnlargement","true"),e.fit&&t.searchParams.append("fit",e.fit),e.format&&t.searchParams.append("format",e.format),e.key&&t.searchParams.append("key",e.key)),l&&l.value?t.searchParams.append("access_token",l.value):c.public.directus.token&&t.searchParams.append("access_token",c.public.directus.token),t.href},uploadFiles:async(a,e={})=>{try{const t=new FormData;Array.isArray(a)?a.forEach(n=>{t.append("file[]",n)}):t.append("file",a);const d=await s("/files",{method:"POST",body:t}),u=d.data.id;if(e.title||e.tags){const n={};return e.title&&(n.title=e.title),e.tags&&(n.tags=e.tags),await s(`/files/${u}`,{method:"PATCH",body:n}),(await s(`/files/${u}`,{method:"GET"})).data}return d.data}catch(t){throw console.error("File upload error:",t),t}},deleteFiles:async a=>{try{Array.isArray(a)?await s("/files",{method:"DELETE",body:a}):await s(`/files/${a}`,{method:"DELETE"})}catch(e){throw console.error("File upload error:",e),e}}}},E=["width","height"],k={__name:"IconsSymbolM",props:{color:{type:String,default:"hrad"},size:{type:[String,Number],default:"24px"}},setup(c){const r=c,s=f(()=>{const o=typeof r.size=="number"?r.size:parseFloat(r.size),i=37.558/55;return typeof r.size=="number"?Math.round(o*i*100)/100:`${parseFloat(o)*i}${r.size.replace(/[0-9.]/g,"")}`}),l=f(()=>({"--icon-color":`var(--bs-${r.color})`}));return(o,i)=>(b(),F("svg",{width:c.size,height:s.value,viewBox:"0 0 55 37.558",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon",style:_(l.value)},[...i[0]||(i[0]=[m("path",{d:"M23.03 37.558L16 14.608L8.96 37.558H0L11.51 0H20.47L32 37.558H23.03Z",class:"icon-primary"},null,-1),m("path",{d:"M46.03 37.558L39 14.608L31.96 37.558H23L34.51 0H43.47L55 37.558H46.03Z",class:"icon-secondary"},null,-1)])],12,E))}},z=w(k,[["__scopeId","data-v-2f7888a6"]]);export{z as _,T 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.