import{I as t,d as e,J as o,W as n}from"./4b4bc88f.z1yoAwwH.js";import{m as r}from"./2c1ab0fe.Dbn2KvkT.js";function a(e){const o=e??[];for(const n of o)if("direct"===n.method.type||n.method.type===t.CreditCard){const t=n.method.creditCardInstallments;if(t&&t>0)return t}for(const t of o)if("wallet"===t.method.type&&"SHOP_PAY"===t.method.name){const e=t.method.walletContent?.creditCardInstallments;if(e&&e>0)return e}}function s(){const{checkout:{negotiator:t}}=e(),a=t.parts.paymentLines;return r(()=>{const[t]=o(a.value,[n.AmazonPay]);return t})}export{a as g,s as u};