import{q as c}from"./vendor-1-1-39.js";import{a,s as p}from"./UiStore-1-1-39.js";const y=c("ApiRequestStore",{state:()=>({apiKey:window.gcargo.api_key||""}),actions:{syncOptions:async()=>{const t=await a.post("sync_options");return p({message:"Ayarlar başarıyla senkronize edildi."}),t},fixAddress:async t=>await a.post("fix_address",{data:t}),createMpSeller:async t=>await a.post("create_mp_seller",{data:t}),getPdf:async t=>{const n=t.type==="returned"?"print_returned_barcode":"print_barcode",o=await a.post(n,{data:t.data}),r=atob(o),s=new Uint8Array(r.length);for(let e=0;e<r.length;e++)s[e]=r.charCodeAt(e);const i=new Blob([s],{type:"application/pdf"});return URL.createObjectURL(i)}}});export{y as u};
