PageSourceSearch

https://docushop.com.au/cdn/shopifycloud/checkout-web/assets/c1/ChangeCompanyLocationLink.C1XeDCDi.js

js docushop.com.au collected 2026-09-29 21:13:34 UTC 3,730 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["component-amazonWalletLazy.CLANzn5p.js","esnext-vendor.7EcvH7tF.js","hydrate.DbBIWEk-.js","utilities-previous.C42MP_Mw.js","app.DklQzmA_.js","assets/app.BuSMBobh.css","assets/previous.DjvIwnbB.css","shared-negotiation-input-redeemable.Bd3YWCwY.js","shared-permissions.DaHnWepz.js","hooks-useShopPayExternalAppContext.CJygX3OQ.js","assets/helpers.Ao103Qpa.css","hooks-useStableHostMethodsReferences.Gbfqh2hO.js","amazon-pay-useAmazonPayPaymentLine.B67X6gPb.js","WalletsSandbox-WalletSandbox.Qnxkj0SK.js","assets/WalletSandbox.BoV0vp4z.css","amazon-constants.BnCZXorl.js","checkout-as-guest-amazon-pay.CHa6Hec0.js","assets/amazonWalletLazy.D78LrA7v.css"])))=>i.map(i=>d[i]);
2import{e as E,A as k,T as A,E as I,q as B,h as b,u as d,f as M,d as O}from"./esnext-vendor.7EcvH7tF.js";import{aY as w,a_ as F,a2 as V,Q as L,a$ as x,b0 as z,b1 as T,b2 as D,ac as N,a4 as W}from"./utilities-previous.C42MP_Mw.js";import{n as H,at as R,au as U,av as G,L as K,k as Y,I as j,l as q}from"./hydrate.DbBIWEk-.js";import{_ as J}from"./app.DklQzmA_.js";import{M as Q}from"./BillingAddressForm.DbqqYqNi.js";function se({onValid:e,onInvalid:n,children:i}){const{billing:l,contact:u,payment:p,shipping:y}=w(),a=E(new Map),h=k(new WeakMap),f=A(()=>I(()=>{const t=a.value;let o=!1,s=t.size>0;for(const[c,{validator:r,previousValue:m}]of t){const g=c.value;r(g)&&(s=!1),g!==m&&(o=!0)}return{valid:s,changed:o}}),[a]),v=B(t=>{const o={billing:l,contact:u,payment:p,shipping:y};t.valid?e?.(o):n?.(o);const s=new Map;for(const[c,r]of a.value)s.set(c,{...r,previousValue:c.value});a.value=s},[a,e,n,l,u,p,y]),P=k(!1);b(()=>f.subscribe(t=>{const o=!P.current;if(t.changed||o)return P.current=!0,v(t)}),[f,v]);const S=A(()=>({registerValidator:(t,o)=>{const s=new Map(a.peek()),c=h.current.get(t);return s.set(t,{validator:o,previousValue:c}),a.value=s,()=>{const r=a.peek().get(t);r?.previousValue!==void 0&&h.current.set(t,r.previousValue);const m=new Map(a.peek());m.delete(t),a.value=m}}}),[a]);return d(F.Provider,{value:S,children:i})}function re(){const{paymentMethods:e,buyerIdentity:n}=V(),{router:i,source:{type:l},mobileCheckoutSdk:u,embed:p,checkout:y,shop:a}=L(),h=i.currentUrl,f=y.proposal.proposed.paymentLines,v=a.hasFlagEnabled(x),P=z(),S=H(),t=l==="simulated",o=u.variant.isStandard()||!!p?.isCheckoutKit();return M(()=>{const s=e.value?.some(C=>C.type==="wallet"&&C.name==="SHOP_PAY"),c=n.value?.purchasingCompany,{currentDetour:r}=S.value,m=r!=null&&["stockProblems"].includes(r.type),g=T(h.value.searchParams),_=v&&!!D(f.value);return!!(!t&&s&&!g&&!P.value&&!o&&!m&&!c&&!_)})}function $(e,{wallet:n}={}){const{sdkStatus:i,buttonStatus:l,buyWithPrimeButtonStatus:u}=N().inMemoryAmazonPayParts,p=n===W.BuyWithPrime?u:l;b(()=>{e&&(i.value={status:R.Error},p.value={status:"error"})},[e,i,p])}const X=O({displayName:"AmazonPayButtonContent",load:()=>J(()=>import("./component-amazonWalletLazy.CLANzn5p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])).then(e=>e.AmazonPayButtonContent),useError:$});function ie({isSdkOnly:e=!1}){return d(X,{isSdkOnly:e})}const Z=["paymentMethods"];function le(){const e=V().paymentMethods,n=U(Z);return M(()=>n.value&&!e.value?.length)}function ue({showIcon:e=!1}){const{i18n:n,source:i}=L(),l=G(),u=i.type==="simulated";return d(Q,{interactive:!u,children:d(K,{href:l.value,display:"block",accessibilityLabel:n.translate("contact.change_company_location_link_label"),textDecoration:e?"none":void 0,children:d(Y,{direction:"inline",alignItems:"center",gap:"small-100",children:[e&&d(j,{type:"location"}),d(q,{children:n.translate("contact.change_location_link_label")})]})})})}export{ie as A,ue as C,se as S,le as a,$ as b,re 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.