PageSourceSearch

https://shop.newbelgium.com/cdn/shopifycloud/checkout-web/assets/c1/ChangeCompanyLocationLink.Ba8IeUdU.js

js newbelgium.com collected 2026-09-24 08:49:42 UTC 2,982 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-amazonWalletLazy.B2JRtcsq.js","esnext-vendor.D7ldIee_.js","hydrate.ByRIsqvd.js","addresses-is-address-empty.-MuOhIyI.js","app.A60-IfPs.js","assets/app.Sxsz5knT.css","assets/is-address-empty.DJksNKpk.css","constants.DowbVE6J.js","hooks-useReplaceShopPayInHistory.Cz4PqGkk.js","assets/previous.ClThmeCv.css","hooks-useStableHostMethodsReferences.C4W1cetV.js","WalletsSandbox-WalletSandbox.1h2TYCnJ.js","assets/WalletSandbox.BoV0vp4z.css","amazon-constants.D1uChO-s.js","assets/amazonWalletLazy.D78LrA7v.css"])))=>i.map(i=>d[i]);
2import{e as b,A as _,T as A,o as k,q as C,h as V,u as i,d as L,f as S}from"./esnext-vendor.D7ldIee_.js";import{an as w,ao as z,ab as B,ap as E,$ as I,N}from"./addresses-is-address-empty.-MuOhIyI.js";import{_ as x}from"./app.A60-IfPs.js";import{a2 as W,a3 as D,a4 as O,L as T,k as F,I as R,l as G}from"./hydrate.ByRIsqvd.js";import{M as U}from"./BillingAddressForm.DHpCPcqC.js";function Z({onValid:t,onInvalid:n,children:r}){const{billing:l,contact:u,payment:p,shipping:f}=w(),a=b(new Map),y=_(new WeakMap),v=A(()=>k(()=>{const e=a.value;let o=!1,s=e.size>0;for(const[c,{validator:d,previousValue:m}]of e){const M=c.value;d(M)&&(s=!1),M!==m&&(o=!0)}return{valid:s,changed:o}}),[a]),g=C(e=>{const o={billing:l,contact:u,payment:p,shipping:f};e.valid?t?.(o):n?.(o);const s=new Map;for(const[c,d]of a.value)s.set(c,{...d,previousValue:c.value});a.value=s},[a,t,n,l,u,p,f]),h=_(!1);V(()=>v.subscribe(e=>{const o=!h.current;if(e.changed||o)return h.current=!0,g(e)}),[v,g]);const P=A(()=>({registerValidator:(e,o)=>{const s=new Map(a.peek()),c=y.current.get(e);return s.set(e,{validator:o,previousValue:c}),a.value=s,()=>{const d=a.peek().get(e);d?.previousValue!==void 0&&y.current.set(e,d.previousValue);const m=new Map(a.peek());m.delete(e),a.value=m}}}),[a]);return i(z.Provider,{value:P,children:r})}function q(t,{wallet:n}={}){const{sdkStatus:r,buttonStatus:l,buyWithPrimeButtonStatus:u}=B().inMemoryAmazonPayParts,p=n===E.BuyWithPrime?u:l;V(()=>{t&&(r.value={status:W.Error},p.value={status:"error"})},[t,r,p])}const H=L({displayName:"AmazonPayButtonContent",load:()=>x(()=>import("./component-amazonWalletLazy.B2JRtcsq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(t=>t.AmazonPayButtonContent),useError:q});function tt({isSdkOnly:t=!1}){return i(H,{isSdkOnly:t})}const Y=["paymentMethods"];function et(){const t=I().paymentMethods,n=D(Y);return S(()=>n.value&&!t.value?.length)}function at({showIcon:t=!1}){const{i18n:n,source:r}=N(),l=O(),u=r.type==="simulated";return i(U,{interactive:!u,children:i(T,{href:l.value,display:"block",accessibilityLabel:n.translate("contact.change_company_location_link_label"),textDecoration:t?"none":void 0,children:i(F,{direction:"inline",alignItems:"center",gap:"small-100",children:[t&&i(R,{type:"location"}),i(G,{children:n.translate("contact.change_location_link_label")})]})})})}export{tt as A,at as C,Z as S,q as a,et 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.