1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["56bd1136.Bia5ELfs.js","2c1ab0fe.Bywc2Brn.js","164ad2e3.DHuJhR22.js","9dba8418.DInoCEzY.js","app.D2wFhSFv.js","assets/app.BuSMBobh.css","assets/paypal-express-utilities.BhV0n1qN.css","d0bb51ec.DwFzQH6k.js","f67abd2c.CxgiarJo.js","60a453ce.CQQC7Spq.js","e12db40c.DJw7xsqf.js","assets/hydrate.ByGT37s3.css","ee2bb050.B4UhLYYD.js","17e57de1.B_nQLFIZ.js","ca3e798e.Dc9DtEXz.js","cb8fcd45.DR_hBTvk.js","8536083a.BUDRfPJ-.js","1d34c07e.h4dJAaCz.js","assets/ExpressCheckoutButton.BnDF3H7t.css","assets/WalletSandbox.BoV0vp4z.css","a25deb9a.puhXAk9E.js","4aab4b34.Rw78HXY8.js","24773686.BY4hRSf6.js","ac5a19ff.By75ODwH.js","4c290a1e.DxF3iNYA.js","assets/amazonWalletLazy.D78LrA7v.css"])))=>i.map(i=>d[i]); 2import{o as e,g as a,T as t,I as n,q as o,h as s,u as r,k as i,i as l}from"./2c1ab0fe.Bywc2Brn.js";import{c,aJ as u,aK as p,aL as d,U as m,aM as v,a5 as h,W as y}from"./9dba8418.DInoCEzY.js";import{k as g,aM as b,aN as f,aO as k,L as _,S as M,a1 as P,j as S}from"./164ad2e3.DHuJhR22.js";import{_ as w}from"./app.D2wFhSFv.js";import{M as V}from"./74835653.CZU0gWLB.js";function j({onValid:i,onInvalid:l,children:p}){const{checkout:{negotiator:d}}=c(),{billing:m,contact:v,payment:h,shipping:y}=d.context,g=e(new Map),b=a(new WeakMap),f=t(()=>n(()=>{const e=g.value;let a=!1,t=e.size>0;for(const[n,{validator:o,previousValue:s}]of e){const e=n.value;o(e)&&(t=!1),e!==s&&(a=!0)}return{valid:t,changed:a}}),[g]),k=o(e=>{const a={billing:m,contact:v,payment:h,shipping:y};e.valid?i?.(a):l?.(a);const t=new Map;for(const[n,o]of g.value)t.set(n,{...o,previousValue:n.value});g.value=t},[g,i,l,m,v,h,y]),_=a(!1);s(()=>f.subscribe(e=>{const a=!_.current;if(e.changed||a)return _.current=!0,k(e)}),[f,k]);const M=t(()=>({registerValidator:(e,a)=>{const t=new Map(g.peek()),n=b.current.get(e);return t.set(e,{validator:a,previousValue:n}),g.value=t,()=>{const a=g.peek().get(e);void 0!==a?.previousValue&&b.current.set(e,a.previousValue);const t=new Map(g.peek());t.delete(e),g.value=t}}}),[g]);return r(u.Provider,{value:M,children:p})}function B(){const{router:e,source:{type:a},mobileCheckoutSdk:t,embed:n,checkout:o,shop:s}=c(),{paymentMethods:r,buyerIdentity:l}=o.negotiator.current.fields,u=e.currentUrl,h=o.proposal.proposed.paymentLines,y=s.hasFlagEnabled(p),b=d(),f=g(),k="simulated"===a,_=t.variant.isStandard()||Boolean(n?.isCheckoutKit());return i(()=>{const e=r.value?.some(e=>"wallet"===e.type&&"SHOP_PAY"===e.name),a=l.value?.purchasingCompany,{currentDetour:t}=f.value,n=null!=t&&["stockProblems"].includes(t.type),o=m(u.value.searchParams),s=y&&Boolean(v(h.value));return Boolean(!k&&e&&!o&&!b.value&&!_&&!n&&!a&&!s)})}function A(e,{wallet:a}={}){const{sdkStatus:t,buttonStatus:n,buyWithPrimeButtonStatus:o}=h().inMemoryAmazonPayParts,r=a===y.BuyWithPrime?o:n;s(()=>{e&&(t.value={status:b.Error},r.value={status:"error"})},[e,t,r])}const C=l({displayName:"AmazonPayButtonContent",load:()=>w(()=>import("./56bd1136.Bia5ELfs.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25])).then(e=>e.AmazonPayButtonContent),useError:A});function I({isSdkOnly:e=!1}){return r(C,{isSdkOnly:e})}const E=["paymentMethods"];function L(){const{checkout:{negotiator:e}}=c(),a=e.current.fields.paymentMethods,t=f(E);return i(()=>t.value&&!a.value?.length)}function O({showIcon:e=!1}){const{i18n:a,source:t}=c(),n=k(),o="simulated"===t.type;return r(V,{interactive:!o,children:r(_,{href:n.value,display:"block",accessibilityLabel:a.translate("contact.change_company_location_link_label"),textDecoration:e?"none":void 0,children:r(M,{direction:"inline",alignItems:"center",gap:"small-100",children:[e&&r(P,{type:"location"}),r(S,{children:a.translate("contact.change_location_link_label")})]})})})}export{I as A,O as C,j as S,L as a,A as b,B 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.