1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["56bd1136.Bl4-T0Xz.js","2c1ab0fe.COzViSn5.js","164ad2e3.DRHwqsEp.js","9dba8418.DdxnJWTz.js","app.CUUZnfxG.js","assets/app.BuSMBobh.css","assets/paypal-express-utilities.BhV0n1qN.css","d0bb51ec.DSHSd1cE.js","f67abd2c.CznwUo_e.js","60a453ce.C2ZAmDRq.js","e12db40c.DthL52O0.js","assets/hydrate.1qxw0_8N.css","ee2bb050.Caw8434W.js","17e57de1.DdVuSTXS.js","ca3e798e.Dgtp_UFA.js","cb8fcd45.WCzxDDz1.js","8536083a.BzCZ0iNu.js","1d34c07e.h4dJAaCz.js","assets/ExpressCheckoutButton.BnDF3H7t.css","assets/WalletSandbox.BoV0vp4z.css","a25deb9a.0ZNm1H9d.js","4aab4b34.-j9Bhy2F.js","24773686.B5fgNnBB.js","ac5a19ff.B3_-dsJk.js","4c290a1e.B_UOAh8Y.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.COzViSn5.js";import{c,aI as u,aJ as p,aK as d,U as m,aL as v,a5 as h,W as y}from"./9dba8418.DdxnJWTz.js";import{k as g,aM as b,aN as f,aO as k,L as _,S as P,a1 as M,j as S}from"./164ad2e3.DRHwqsEp.js";import{_ as w}from"./app.CUUZnfxG.js";import{M as V}from"./74835653.BYsZ3OEm.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 P=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:P,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 I(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 A=l({displayName:"AmazonPayButtonContent",load:()=>w(()=>import("./56bd1136.Bl4-T0Xz.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:I});function C({isSdkOnly:e=!1}){return r(A,{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(P,{direction:"inline",alignItems:"center",gap:"small-100",children:[e&&r(M,{type:"location"}),r(S,{children:a.translate("contact.change_location_link_label")})]})})})}export{C as A,O as C,j as S,L as a,I 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.