import{l as c}from"./vendor-3-7-97.js";import{a}from"./ajax-3-7-97.js";const n=c("GatewayAccounts",{state:()=>({virtualPOSAccounts:window.gpos.virtual_pos_accounts||[],alternativeAccounts:window.gpos.alternative_payment_accounts||[],commonFormAccounts:window.gpos.common_form_accounts||[],iFrameAccounts:window.gpos.iframe_accounts||[]}),actions:{async addGatewayAccount(t){return await a.post("add_gateway_account",{gateway:t})},async getGatewayAccounts(){const t=await a.get("get_gateway_accounts");this.virtualPOSAccounts=t},updateActiveStatus(t,o){a.post("update_active_status",{id:t,status:o})},async updateDefaultStatus(t,o){return await a.post("update_default_status",{id:t,default:o})}}});export{n as u};
