import{iE as e,nE as n}from"./6ec9a0fa.rdcQt2v8.js";function t(e){return!(!e||"customOnsite"!==e.type)}function a(a,s,o){return!!t(a)||!(!("IDEAL"===o?.paymentMethod||"CUSTOM_ONSITE"===o?.paymentMethod&&"paymentBrands"in o&&o.paymentBrands?.some(e=>"ideal"===e.toLowerCase()))||!s?.some(e))||!("CUSTOM_ONSITE"!==o?.paymentMethod||!("paymentBrands"in o)||!s?.some(e=>n(e,o.paymentBrands??[])))}export{a as n,t};