PageSourceSearch

https://gets-oshi.com/cdn/shopifycloud/checkout-web/assets/c1/7724832f.CZBfxpBE.js

js gets-oshi.com collected 2026-10-06 16:18:19 UTC 1,872 bytes, 1 lines download raw bytes

1import{A as o}from"./164ad2e3.CwFFCQJV.js";import{q as e,t,v as s,w as a}from"./9dba8418.BjFsJfKG.js";import{n as r}from"./9655ebc9.CX4pB1Ku.js";import{G as i}from"./3ca8ef7e.BBbh135K.js";import{g as c}from"./a9fa9fda.E2WWXy1c.js";import{u as n}from"./app.CGAYdtrm.js";import"./2c1ab0fe.Bywc2Brn.js";import"./d0bb51ec.B6dL-tOK.js";import"./f67abd2c.BWsb-1Zx.js";import"./60a453ce.CEvWNvTm.js";import"./e12db40c.BZEbMADi.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},i),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&&r(e.postalCode)===r(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(1!==new Set(m.map(({coordinates:o})=>JSON.stringify(o))).size)return;const f=m[0];return a({countryCode:f.countryCode,zoneCode:f.zoneCode,postalCode:f.postalCode,city:f.city,coordinates:f.coordinates})}function l(s,a){const r=e(s.countryCode?a.checkout.address.countryDetails.get(s.countryCode):void 0,a.i18n);o({content:t(s,r,["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.