import{a0 as o,o as i,f as n,m as c,r as p,u as a,N as u}from"./vendor-1-1-49.js";import{p as d,_ as g}from"./BaseButton-1-1-49.js";import{a as s}from"./UiStore-1-1-49.js";const _={__name:"PrimaryButton",props:d,setup(r){const t=o();return(e,w)=>(i(),n(g,{link:e.link,disabled:e.disabled,target:e.target,type:e.type,"class-list":`bg-primary-800 dark:bg-primary-800 text-white hover:text-white hover:bg-primary-700 focus:bg-primary-700 ${a(t).class?a(t).class:""}`},{default:c(()=>[p(e.$slots,"default")]),_:3},8,["link","disabled","target","type","class-list"]))}},h=u("ResourceStore",{state:()=>({shipment:{},returned:{},cargoIntegration:{},cargoIntegrations:window.gcargo.cargo_integrations||[],warehouses:window.gcargo.warehouses||[],shipments:window.gcargo.shipments||[],returneds:window.gcargo.returneds||[],productCategories:window.gcargo.product_categories||[],apiKey:window.gcargo.api_key||"",mpSellers:window.gcargo.mp_sellers||[]}),actions:{index:async r=>await s.post("index_resource",r),show:async r=>await s.post("show_resource",r),store:async r=>await s.post("store_resource",r),update:async r=>await s.post("update_resource",r),destroy:async r=>await s.post("destroy_resource",r)}});export{_,h as u};
