PageSourceSearch

https://collexable.com/cdn/shopifycloud/checkout-web/assets/c1/6f2620f5.bY_JOuNn.js

js collexable.com collected 2026-10-06 06:19:29 UTC 2,335 bytes, 1 lines download raw bytes

1import{a2 as e}from"./f67abd2c.BTHhdhoM.js";function s(s){return{address1:s?.address1||"",address2:s?.address2||"",city:s?.city||"",company:s?.company||"",countryCode:e(s?.countryCodeV2??s?.country),firstName:s?.firstName||"",lastName:s?.lastName||"",phone:s?.phone||"",zoneCode:s?.province||"",postalCode:s?.zip||""}}function t(e){return"id"in e&&"handler_id"in e}function r(e){return"externalReferenceId"in e}function n(e){if(e)return r(e)?e.externalReferenceId:e.id}function i(e){if(e)return r(e)?{brand:e.brand,lastDigits:e.lastDigits}:{brand:e.display?.brand,lastDigits:e.display?.last_digits}}function a(e){if(!e)return;if(r(e))return e.billingAddress;const s=e.billing_address;return s?{firstName:s.first_name,lastName:s.last_name,address1:s.street_address,address2:s.extended_address,city:s.address_locality,province:s.address_region,country:s.address_country,zip:s.postal_code,phone:s.phone_number}:void 0}class d{constructor(){this.listeners=new Set}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}emit(e){this.listeners.forEach(s=>s(e))}}const o={billingAddress:0,shippingAddress:1,phone:2,firstName:3,paymentMethod:4,installmentsCard:5},c={billingAddress:[],shippingAddress:[],phone:[],firstName:[],paymentMethod:["billingAddress","shippingAddress","firstName","phone"],installmentsCard:["billingAddress","shippingAddress","firstName","phone","paymentMethod"]};class l{constructor(){this.interceptors=new Set,this.resultEmitter=new d}async runInterceptors(){const e=[...this.interceptors];e.sort(({name:e},{name:s})=>o[e]-o[s]);const s=[],t=new Set;for(const{name:r,interceptor:n}of e){if(c[r].some(e=>t.has(e)))continue;const e=await n();s.push(e),e.success||t.add(r)}return this.resultEmitter.emit(p(s)),s}intercept(e,s){const t={interceptor:s,name:e};return this.interceptors.add(t),()=>{this.interceptors.delete(t)}}listenResult(e){return this.resultEmitter.listen(e)}}function u({addressType:e,validate:s,setErrors:t}){const r=s();return r.size>0?(t(r),{success:!1,location:`intercept_${e}_address_has_errors`}):{success:!0}}function p(e){return e.every(e=>e.success)}function f(e){return e.flatMap(e=>!e.success&&"location"in e?[e.location]:[])}function h(e){return e.flatMap(e=>"errors"in e?e.errors??[]:[])}export{l as S,h as a,f as b,s as c,t as d,r as e,a as f,n as g,i as h,p as i,u as v};

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.