PageSourceSearch

https://www.dmax-shop.de/cdn/shopifycloud/checkout-web/assets/c1/web-mcp-pickup-locality.Dn3k-eEJ.js

js dmax-shop.de collected 2026-09-29 06:14:00 UTC 2,497 bytes, 1 lines download raw bytes

1import{a as m}from"./hydrate.BcfGVx0L.js";import{G as l,H as y,D as f,I as C,J as k,K as P}from"./utilities-previous.Cnwy8G2v.js";import{n as a}from"./web-mcp-runtime.DUJM2mp0.js";import{g as h}from"./FormLayout.UkTBTXMZ.js";import"./esnext-vendor.DDpcaSqU.js";import"./app.DdDscdWN.js";import"./graphql-PaymentSessionMutation.C-nDEOnn.js";import"./shared-permissions.B59tuyWB.js";import"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";import"./cvv-cvvBridge.CLYVr7ZJ.js";import"./helpers-derivations.K4r9DEFp.js";import"./redemption-promotions.8MPSgIef.js";import"./context-browser.Cjla8Cf_.js";import"./helpers-installmentsNotSupportedForAddress.BnHLRwvm.js";import"./shared-shop-theme.BKb8cP_L.js";import"./helpers-isSwitchAccountBootRequest.C3tmXnb7.js";import"./shop-pay-experiments.BdHRV-Vf.js";import"./shared-receipt-mapper-load-recovery.BiPqFuW0.js";import"./shared-receipt-eager-mappers.DdCRtyXW.js";import"./shared-report-graphql-error.BIbaQJ6B.js";import"./shop-pay-normalizeBuyerDetails.CDJVtFmS.js";import"./amazon-pay-useAmazonPayPaymentLine.X7jqQiq6.js";function Q(o){return{resolvePickupLocality:t=>L(t,o),announcePickupLocality:t=>I(t,o)}}async function L(o,t){const i=await h(t);return g(o,i.current.call,t)}async function g(o,t,{shop:i,source:n,i18n:d}){const p=f(),s={locale:d.locale,requestToken:p,shopId:C(i.id),sourceId:n.sourceId||"",checkoutSessionIdentifier:n.checkoutSessionIdentifier||""},{data:u}=await t.search(o.postal_code,{...s,countryCode:o.address_country,location:void 0},k),c=(await Promise.all(u.slice(0,5).map(e=>t.fetchAddress(e.addressId,{...s,completionService:e.completionService,extendedFields:!1})))).filter(e=>e.countryCode===o.address_country&&a(e.postalCode)===a(o.postal_code)&&(!o.address_region||e.zoneCode===o.address_region)&&e.coordinates&&Number.isFinite(e.coordinates.latitude)&&Number.isFinite(e.coordinates.longitude)&&Math.abs(e.coordinates.latitude)<=90&&Math.abs(e.coordinates.longitude)<=180);if(new Set(c.map(({coordinates:e})=>JSON.stringify(e))).size!==1)return;const r=c[0];return P({countryCode:r.countryCode,zoneCode:r.zoneCode,postalCode:r.postalCode,city:r.city,coordinates:r.coordinates})}function I(o,t){const i=l(o.countryCode?t.checkout.address.countryDetails.get(o.countryCode):void 0,t.i18n);m({content:y(o,i,["company","firstName","lastName","phone","countryCode","zoneCode"]),role:"status"})}export{I as announcePickupLocality,Q as createPickupLocalityServices,L as lookupPickupLocality,g as resolvePickupLocality};

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.