PageSourceSearch

https://www.irised.com/cdn/shopifycloud/checkout-web/assets/c1/web-mcp-pickup-locality.D_4UpaSp.js

js irised.com collected 2026-09-29 15:36:28 UTC 2,632 bytes, 1 lines download raw bytes

1import{a as m,G as l}from"./hydrate.__QOXNN3.js";import{E as y,G as f,B as C,H as k,I as P}from"./utilities-previous.DaWdZv41.js";import{n as a}from"./web-mcp-runtime.fdST2GQM.js";import{g as h}from"./components-RedirectionNotice.module.CYPkGrdi.js";import"./esnext-vendor.7EcvH7tF.js";import"./app.Ct1TLWkJ.js";import"./shared-negotiation-input-redeemable.BsA2r1RZ.js";import"./shared-permissions.C4V3dAGa.js";import"./hooks-useShopPayExternalAppContext.CTzvOb12.js";import"./redemption-promotions.DtPDNosX.js";import"./helpers-credit-card-disabled.Cac4kHb5.js";import"./helpers-derivations.Rg3VPX07.js";import"./graphql-PaymentSessionMutation.B3_YfTkY.js";import"./context-browser.DjOjoCNf.js";import"./PayButton-helpers.9yu2zn7p.js";import"./helpers-setAddressErrors.B3hJ_U3b.js";import"./addresses-is-address-empty.DrXkHBCJ.js";import"./redemption-constants.5qb5alFL.js";import"./shared-receipt-mapper-load-recovery.CPm4XdBV.js";import"./shared-receipt-eager-mappers.DSfUwlCk.js";import"./shared-report-graphql-error.-Y73rRX8.js";import"./shop-pay-normalizeBuyerDetails.BAk0CUr4.js";import"./hooks-useShopPayNewSignupLoginExperiment.ceEqQvD9.js";import"./amazon-pay-useAmazonPayPaymentLine.D7yPfUN6.js";function W(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=C(),s={locale:d.locale,requestToken:p,shopId:k(i.id),sourceId:n.sourceId||"",checkoutSessionIdentifier:n.checkoutSessionIdentifier||""},{data:u}=await t.search(o.postal_code,{...s,countryCode:o.address_country,location:void 0},l),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=y(o.countryCode?t.checkout.address.countryDetails.get(o.countryCode):void 0,t.i18n);m({content:f(o,i,["company","firstName","lastName","phone","countryCode","zoneCode"]),role:"status"})}export{I as announcePickupLocality,W 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.