PageSourceSearch

https://museumstore.hmns.org/cdn/shopifycloud/checkout-web/assets/c1/0e67bd3b.DkCvQkdq.js

js hmns.org collected 2026-10-01 10:26:39 UTC 3,545 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["56bd1136.CIMEyGpu.js","2c1ab0fe.D_oO1jU7.js","164ad2e3.DgUUtBtV.js","4c290a1e.D9lE9kmU.js","app.bDJ3v-8C.js","assets/app.BuSMBobh.css","assets/previous.BpuyvRSB.css","65f3d4da.8ZfwXSRH.js","60a453ce.BIyixFcg.js","0a7dffce.BMM606kb.js","bb728e1c.BObJOhlA.js","assets/stopwatch.Kyhz8KoT.css","3a819064.CWC3Yoc0.js","ac5a19ff.CrIDx928.js","cb8fcd45.gqoNFKgG.js","8536083a.BCEdV5WN.js","assets/WalletSandbox.BoV0vp4z.css","4aab4b34.D7JoYOky.js","assets/amazonWalletLazy.D78LrA7v.css"])))=>i.map(i=>d[i]);
2import{e,A as a,T as t,E as n,q as o,h as s,u as r,f as l,d as i}from"./2c1ab0fe.D_oO1jU7.js";import{aT as u,aV as c,P as p,O as d,aW as m,aX as v,W as h,aY as y,a6 as b,_ as f}from"./4c290a1e.D9lE9kmU.js";import{e as g,as as k,at as _,au as P,L as M,c as V,I as S,n as w}from"./164ad2e3.DgUUtBtV.js";import{_ as B}from"./app.bDJ3v-8C.js";import{M as j}from"./74835653.9kmD7491.js";function A({onValid:l,onInvalid:i,children:p}){const{billing:d,contact:m,payment:v,shipping:h}=u(),y=e(new Map),b=a(new WeakMap),f=t((()=>n((()=>{const e=y.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}}))),[y]),g=o((e=>{const a={billing:d,contact:m,payment:v,shipping:h};e.valid?l?.(a):i?.(a);const t=new Map;for(const[n,o]of y.value)t.set(n,{...o,previousValue:n.value});y.value=t}),[y,l,i,d,m,v,h]),k=a(!1);s((()=>f.subscribe((e=>{const a=!k.current;if(e.changed||a)return k.current=!0,g(e)}))),[f,g]);const _=t((()=>({registerValidator:(e,a)=>{const t=new Map(y.peek()),n=b.current.get(e);return t.set(e,{validator:a,previousValue:n}),y.value=t,()=>{const a=y.peek().get(e);void 0!==a?.previousValue&&b.current.set(e,a.previousValue);const t=new Map(y.peek());t.delete(e),y.value=t}}})),[y]);return r(c.Provider,{value:_,children:p})}function C(){const{paymentMethods:e,buyerIdentity:a}=p(),{router:t,source:{type:n},mobileCheckoutSdk:o,embed:s,checkout:r,shop:i}=d(),u=t.currentUrl,c=r.proposal.proposed.paymentLines,b=i.hasFlagEnabled(m),f=v(),k=g(),_="simulated"===n,P=o.variant.isStandard()||Boolean(s?.isCheckoutKit());return l((()=>{const t=e.value?.some((e=>"wallet"===e.type&&"SHOP_PAY"===e.name)),n=a.value?.purchasingCompany,{currentDetour:o}=k.value,s=null!=o&&["stockProblems"].includes(o.type),r=h(u.value.searchParams),l=b&&Boolean(y(c.value));return Boolean(!_&&t&&!r&&!f.value&&!P&&!s&&!n&&!l)}))}function E(e,{wallet:a}={}){const{sdkStatus:t,buttonStatus:n,buyWithPrimeButtonStatus:o}=b().inMemoryAmazonPayParts,r=a===f.BuyWithPrime?o:n;s((()=>{e&&(t.value={status:k.Error},r.value={status:"error"})}),[e,t,r])}const I=i({displayName:"AmazonPayButtonContent",load:()=>B((()=>import("./56bd1136.CIMEyGpu.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])).then((e=>e.AmazonPayButtonContent)),useError:E});function O({isSdkOnly:e=!1}){return r(I,{isSdkOnly:e})}const W=["paymentMethods"];function z(){const e=p().paymentMethods,a=_(W);return l((()=>a.value&&!e.value?.length))}function L({showIcon:e=!1}){const{i18n:a,source:t}=d(),n=P(),o="simulated"===t.type;return r(j,{interactive:!o,children:r(M,{href:n.value,display:"block",accessibilityLabel:a.translate("contact.change_company_location_link_label"),textDecoration:e?"none":void 0,children:r(V,{direction:"inline",alignItems:"center",gap:"small-100",children:[e&&r(S,{type:"location"}),r(w,{children:a.translate("contact.change_location_link_label")})]})})})}export{O as A,L as C,A as S,z as a,E as b,C 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.