import{o}from"./p-f09ee70b.js";import{o as s,s as i}from"./p-fab02ef6.js";import{o as l,a as r,b as n,c as d}from"./p-8e1549b8.js";const e=()=>{const o=[...r().map((({processor_type:o})=>o)),...n().map((({id:o})=>o))];o.includes(i.id)||(i.id=(null==o?void 0:o.length)?null==o?void 0:o[0]:null)},t=()=>{const o=(d()||[]).map((({id:o})=>o));"mollie"===(null==i?void 0:i.id)?o.includes(i.method)||(i.method=(null==o?void 0:o.length)?null==o?void 0:o[0]:null):i.method=null};o("checkout",(()=>{e(),t()})),s("id",(()=>e())),l("processors",(()=>e())),l("methods",(()=>t()));