import{P as t}from"./index-_-ijfL1Q.js";function p(a){async function e(){for(const n in t)a.payments[n].isActive&&!i(n)&&await c(n)}function i(n){return a.payments.activeGateways.includes(t[n])}async function c(n){switch(t[n]){case t.paypal:await a.connectPaypal(a.payments.paypal.params).then(a.payments.activeGateways.push(n));break;case t.banktransfer:await a.connectBankTransfer(a.payments.banktransfer.params).then(a.payments.activeGateways.push(n));break;case t.mailin:await a.connectMailIn(a.payments.mailin.params).then(a.payments.activeGateways.push(n));break}}return{activatePaymentMethods:e}}export{p as u};
