PageSourceSearch

https://drinkhappyviking.com/cdn/shopifycloud/checkout-web/assets/c1/cvv-cvvBridge.B-VIACTq.js

js drinkhappyviking.com collected 2026-09-28 10:10:10 UTC 1,989 bytes, 1 lines download raw bytes

1import{cX as u,g$ as p}from"./addresses-is-address-empty.Bn2lNY_L.js";class f{constructor(){this.listeners=new Set}listen(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}emit(e){this.listeners.forEach(t=>t(e))}}const c={billingAddress:0,shippingAddress:1,phone:2,firstName:3,paymentMethod:4},h={billingAddress:[],shippingAddress:[],phone:[],firstName:[],paymentMethod:["billingAddress","shippingAddress","firstName","phone"]};class I{constructor(){this.interceptors=new Set,this.resultEmitter=new f}async runInterceptors(){const e=[...this.interceptors];e.sort(({name:n},{name:i})=>c[n]-c[i]);const t=[],r=new Set;for(const{name:n,interceptor:i}of e){if(h[n].some(a=>r.has(a)))continue;const o=await i();t.push(o),o.success||r.add(n)}return this.resultEmitter.emit(m(t)),t}intercept(e,t){const r={interceptor:t,name:e};return this.interceptors.add(r),()=>{this.interceptors.delete(r)}}listenResult(e){return this.resultEmitter.listen(e)}}function S({addressType:s,validate:e,setErrors:t}){const r=e();return r.size>0?(t(r),{success:!1,location:`intercept_${s}_address_has_errors`}):{success:!0}}function m(s){return s.every(e=>e.success)}function C(s){return s.flatMap(e=>!e.success&&"location"in e?[e.location]:[])}function y(s){return s.flatMap(e=>"errors"in e?e.errors??[]:[])}function A(s,e,t,r){if(!s)return!1;const{expired:n,supportsInstallmentsInterestLoan:i,supportsInstallmentsSplitPayLoan:o}=s,a=u(e.value),d=s.billingAddressValid&&s.billingAddress.address.countryCode&&a?.supportedCountries.includes(s.billingAddress.address.countryCode)&&p(a?.availableLoanTypes,o,i);return!!(n||t.value&&!d||r.value&&!i)}let l=null;function b(s){l=s}function E(){l=null}
1async function w(s){if(!l)return{cvvSessionIds:[],isValid:!0};try{const e=await l(s);return e.isValid&&(e.cvvSessionIds.length!==s||e.cvvSessionIds.some(t=>!t))?{cvvSessionIds:[],isValid:!1}:e}catch{return{cvvSessionIds:[],isValid:!1}}}export{I as S,m as a,C as b,S as c,y as g,A as i,b as r,E as u,w 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.