import{d as o}from"./vendor-3-7-102.js";import{a}from"./ajax-3-7-102.js";const u=o("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:{gatewayAccounts(){return[...this.virtualPOSAccounts,...this.alternativeAccounts,...this.commonFormAccounts,...this.iFrameAccounts]},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,c){a.post("update_active_status",{id:t,status:c})},async updateDefaultStatus(t,c){return await a.post("update_default_status",{id:t,default:c})}}});export{u};
