import{o}from"./p-10aa7556.js";import{o as s,s as a}from"./p-ea78c070.js";import{o as l,a as i,b as r,c}from"./p-a41f5fb3.js";const n=()=>{const o=[...i().map((({processor_type:o})=>o)),...r().map((({id:o})=>o))];o.includes(a.id)||(a.id=(null==o?void 0:o.length)?null==o?void 0:o[0]:null)},p=()=>{const o=(c()||[]).map((({id:o})=>o));o.includes(a.method)||(a.method=(null==o?void 0:o.length)?null==o?void 0:o[0]:null)};o("checkout",(()=>{n(),p()})),s("id",(()=>n())),l("processors",(()=>n())),l("methods",(()=>p()));