PageSourceSearch

https://store.lilbub.com/cdn/shopifycloud/checkout-web/assets/c1/web-mcp-pickup-locality.HWBzt3-7.js

js lilbub.com collected 2026-09-24 09:35:24 UTC 2,559 bytes, 1 lines download raw bytes

1import{a as m}from"./hydrate.CpZpwHoK.js";import{B as l,D as y,z as f,E as C,G as k,H as P}from"./addresses-is-address-empty.PepcBFSY.js";import{n as a}from"./web-mcp-runtime.BQ_eBeYd.js";import{g as h}from"./shipping-methods-grouping.C0avpDO6.js";import"./esnext-vendor.BBoIVOQW.js";import"./app.Czj2iPYR.js";import"./shared-permissions.DRm-hbfF.js";import"./hooks-useShopPayExternalAppContext.DBGG1iea.js";import"./context-browser.L0Of4Zv4.js";import"./shop-pay-ProgressIntercepts.DIZEf3O7.js";import"./helpers-setAddressErrors.BK55aVdY.js";import"./PayButton-helpers.BcSEFMjA.js";import"./graphql-PaymentSessionMutation.BE_WYAaU.js";import"./shared-shop-theme.CPhAaJtm.js";import"./consent-manager-shared.4oUUzGv-.js";import"./shared-negotiation-input-redeemable.Bo8HCrAY.js";import"./shared-receipt-mapper-load-recovery.BDJSSTtw.js";import"./shared-receipt-eager-mappers.Bc6whHPO.js";import"./shared-report-graphql-error.DEq6VzZu.js";import"./shop-pay-normalizeBuyerDetails.DoluEQkc.js";import"./helpers-derivations.88O-3nuU.js";import"./redemption-promotions.Cmc-1N2h.js";import"./amazon-pay-useAmazonPayPaymentLine.ChQlUcWY.js";function V(o){return{resolvePickupLocality:t=>L(t,o),announcePickupLocality:t=>z(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 z(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{z as announcePickupLocality,V 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.