PageSourceSearch

https://hbdirect.com/cdn/shopifycloud/checkout-web/assets/c1/e477f96c.BxtSUGa4.js

js hbdirect.com collected 2026-10-02 10:19:55 UTC 3,813 bytes, 1 lines download raw bytes

1import{af as e}from"./4c290a1e.C6TDJ9Fn.js";const s=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function t(e,{buyerCountryCode:t,currencyCode:n}){if("SPLIT_PAY"!==e.loanType||0!==e.apr||!n)return e.installmentsCount;const r=t??("GBP"===n?"GB":void 0),i=s.find(s=>s.buyerCountryCode===r&&s.currencyCode===n&&s.scheduledPaymentCount===e.installmentsCount);return i?.buyerFacingPaymentCount??e.installmentsCount}function n(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 r(e){return"id"in e&&"handler_id"in e}function i(e){return"externalReferenceId"in e}function a(e){if(e)return i(e)?e.externalReferenceId:e.id}function o(e){if(e)return i(e)?{brand:e.brand,lastDigits:e.lastDigits}:{brand:e.display?.brand,lastDigits:e.display?.last_digits}}function d(e){if(!e)return;if(i(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 c{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 u={billingAddress:0,shippingAddress:1,phone:2,firstName:3,paymentMethod:4,installmentsCard:5},l={billingAddress:[],shippingAddress:[],phone:[],firstName:[],paymentMethod:["billingAddress","shippingAddress","firstName","phone"],installmentsCard:["billingAddress","shippingAddress","firstName","phone","paymentMethod"]};class p{constructor(){this.interceptors=new Set,this.resultEmitter=new c}async runInterceptors(){const e=[...this.interceptors];e.sort(({name:e},{name:s})=>u[e]-u[s]);const s=[],t=new Set;for(const{name:n,interceptor:r}of e){if(l[n].some(e=>t.has(e)))continue;const e=await r();s.push(e),e.success||t.add(n)}return this.resultEmitter.emit(h(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 m({addressType:e,validate:s,setErrors:t}){const n=s();return n.size>0?(t(n),{success:!1,location:`intercept_${e}_address_has_errors`}):{success:!0}}function h(e){return e.every(e=>e.success)}function y(e){return e.flatMap(e=>!e.success&&"location"in e?[e.location]:[])}function f(e){return e.flatMap(e=>"errors"in e?e.errors??[]:[])}const C={id:"4e99c51c5187daa6375cfd7696d3f3580e3ab58fd003c6f48fc55555907904f6",type:"mutation",name:"PaymentSession",source:"mutation PaymentSession($addressId:ID,$creditCardId:ID!,$checkoutSessionIdentifier:String!,$shopifyDomain:String!,$installmentsAgreements:InstallmentsAgreementsInput,$unvaultedShippingAddress:AddressInput,$checkoutClientSource:CheckoutClientSourceEnum,$batchCheckouts:[BatchCheckoutsInput!],$batchOnly:Boolean,$publicCvvSessionId:String){paymentSessionGenerate(addressId:$addressId creditCardId:$creditCardId checkoutIdentifier:$checkoutSessionIdentifier shopifyDomain:$shopifyDomain installmentsAgreements:$installmentsAgreements unvaultedShippingAddress:$unvaultedShippingAddress checkoutClientSource:$checkoutClientSource batchCheckouts:$batchCheckouts batchOnly:$batchOnly publicCvvSessionId:$publicCvvSessionId){userErrors{message field __typename}sessionId batchCheckoutSessionIds{sessionId shopId __typename}__typename}}"};export{p as S,f as a,y as b,r as c,i as d,t as e,d as f,a as g,n as h,h as i,o as j,C as s,m 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.