PageSourceSearch

https://grailwatch.com/cdn/shopifycloud/checkout-web/assets/c1/7724832f.QQJrsTCS.js

js grailwatch.com collected 2026-10-07 11:38:05 UTC 1,897 bytes, 1 lines download raw bytes

1import{A as o}from"./164ad2e3.DZSd7pLX.js";import{q as e,t,v as s,w as a}from"./4b4bc88f.C26USmk8.js";import{n as i}from"./9655ebc9.CX4pB1Ku.js";import{G as r}from"./3ca8ef7e.C6ifrex0.js";import{g as c}from"./a9fa9fda.DRbzGEJQ.js";import{u as n}from"./app.DRs7v1W8.js";import"./2c1ab0fe.Bywc2Brn.js";import"./d0bb51ec.-Od_3rgw.js";import"./f67abd2c.vvptRNe9.js";import"./60a453ce.Bo_pHupz.js";import"./e12db40c.J_ouQ898.js";import"./9dba8418.BzGnZlrB.js";import"./ca3e798e.Dc9DtEXz.js";function d(o){return{resolvePickupLocality:e=>u(e,o),announcePickupLocality:e=>l(e,o)}}async function u(o,e){return p(o,(await c(e)).current.call,e)}async function p(o,e,{shop:t,source:c,i18n:d}){const u=n(),p={locale:d.locale,requestToken:u,shopId:s(t.id),sourceId:c.sourceId||"",checkoutSessionIdentifier:c.checkoutSessionIdentifier||""},{data:l}=await e.search(o.postal_code,{...p,countryCode:o.address_country,location:void 0},r),m=(await Promise.all(l.slice(0,5).map(o=>e.fetchAddress(o.addressId,{...p,completionService:o.completionService,extendedFields:!1})))).filter(e=>e.countryCode===o.address_country&&i(e.postalCode)===i(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),f=new Set(m.map(({coordinates:o})=>JSON.stringify(o))),[y]=m;if(y&&!(f.size>1))return a({countryCode:y.countryCode,zoneCode:y.zoneCode,postalCode:y.postalCode,city:y.city,coordinates:y.coordinates})}function l(s,a){const i=e(s.countryCode?a.checkout.address.countryDetails.get(s.countryCode):void 0,a.i18n);o({content:t(s,i,["company","firstName","lastName","phone","countryCode","zoneCode"]),role:"status"})}export{l as announcePickupLocality,d as createPickupLocalityServices,u as lookupPickupLocality,p 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.