1import{k as e,q as t}from"./2c1ab0fe.RaLGJvq2.js";import{a as r,F as n,W as a,_ as o,ey as s,gr as u,k3 as c,ew as i,ez as l}from"./f67abd2c.BTHhdhoM.js";import{fl as d,hO as f}from"./164ad2e3.bPUx3Fg0.js";function h(){const{checkout:{negotiator:t}}=r(),o=t.parts.paymentLines;return e(()=>{const[e]=n(o.value,[a.BuyWithPrime]);return e})}function p(){const e=r().checkout.latestReceipt.value?.id,{persistedAmazonSignal:n}=o(),a=t(()=>{d(n,{receiptIdForAupError:e,receiptIdForPaymentDecline:e})},[n,e]);return f({shouldResetCustomerInfo:!0,onClick:a})}function m(e){for(const t of e)if("not_required"!==t.status)for(const e of t.methods)if(e.handle===t.selectedDeliveryMethodHandle)return e}const y=c.Control,g="shop_pay_new_signup_login_variant",P=["draftOrder","simulated"];const k=[c.UnauthenticatedCheckout];function v(){const e=r();return function({shop:e,checkout:t,source:r,router:n,client:a},{url:o=n.currentUrl.value}={}){const d="shopPay"===t.identity.current.value,f=o.searchParams.get(s),h=e.hasFlagEnabled(u),p=null!=t.proposal.negotiated.fields.buyerIdentity.value?.customerProfile,m=f!==l.ShopPayAsPaymentMethod&&f!==l.ShopPayInstallmentsAsPaymentMethod;if(!d||!m||P.includes(r.type)||p&&!h)return y;return function({client:e},t){const r=Object.values(c),n=t.searchParams.get(g),a=r.find(e=>e===n);if(a)return a;const o=e.cookies.get(g);return r.find(e=>e===o)}({client:a},o)||(i(o.search)?y:h?c.UnauthenticatedCheckout:y)}(e,{url:e.router.currentUrl.value})}export{k as U,p as a,h as b,m as f,v as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.