import{Pt as e,Xt as t}from"./630ba094.L_X-5TXi.js";import{_E as o,gb as r,lg as s,nx as n,xO as a,zg as i}from"./6ec9a0fa.rdcQt2v8.js";function c(){const e=a().checkout.latestReceipt.value?.id,{persistedAmazonSignal:o}=r(),n=t(()=>{i(o,{receiptIdForAupError:e,receiptIdForPaymentDecline:e})},[o,e]);return s({shouldResetCustomerInfo:!0,onClick:n})}function u(){const{checkout:{negotiator:t}}=a(),r=t.parts.paymentLines;return e(()=>{const[e]=n(r.value,[o.BuyWithPrime]);return e})}function f(e){for(const t of e)if("not_required"!==t.status)for(const e of t.methods)if(e.handle===t.selectedDeliveryMethodHandle)return e}export{u as n,c as r,f as t};