PageSourceSearch

https://www.caprices.ca/cdn/shopifycloud/checkout-web/assets/c1/7724832f.Dl5KkCsp.js

js caprices.ca collected 2026-10-07 03:41:13 UTC 1,866 bytes, 1 lines download raw bytes

1import{A as o}from"./164ad2e3.Bn4mVc0u.js";import{q as e,t,v as s,w as a}from"./9dba8418.nSn06qNc.js";import{n as i}from"./9655ebc9.CX4pB1Ku.js";import{G as r}from"./3ca8ef7e.CDKQ4Hym.js";import{g as c}from"./a9fa9fda.DGhEEU8-.js";import{u as n}from"./app.B7Ohb9rB.js";import"./2c1ab0fe.Bywc2Brn.js";import"./d0bb51ec.up41EQh6.js";import"./f67abd2c.BiDTv4D9.js";import"./60a453ce.BI5dm7PK.js";import"./e12db40c.xtsrYBcz.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.