PageSourceSearch

https://pelsbarn.org/cdn/shopifycloud/checkout-web/assets/c1/hooks-useShopPayExternalAppContext.DWwMuRnz.js

js pelsbarn.org collected 2026-09-26 06:21:17 UTC 1,496 bytes, 1 lines download raw bytes

1import{au as n,fH as r,a6 as i,lz as l,S as u}from"./addresses-is-address-empty.Bn2lNY_L.js";const c=/^[A-Za-z]{1,2}[\d]{1,2}(?:[A-Za-z])?\s?[\d][A-Za-z]{2}$|^BFPO\s\d{1,3}$/,p=/^[A-Za-z]\d[A-Za-z]\s*\d[A-Za-z]\d$/;function m({applePaySubscriptionsDecelerationActive:t,applePayThreePageVaultedReviewEnabled:e,isOnePageCheckout:a}){return t&&(a||e)}function M(t,e){if(t==null||e==null)return!1;switch(e){case"CA":return p.test(t.trim());case"GB":return c.test(t.trim());default:return!0}}function d(t){return t.reduce((e,a)=>e.flatMap(o=>a.map(s=>[...o,s])),[[]])}function O(t){return t.methods.map(e=>({deliveryLine:t,...e}))}function D(t){const e=d(t.map(s=>s.filter(f))),a=t.flatMap(s=>s.filter(h)),o=t.flatMap(s=>s.filter(P)).reduce(A,new Map).values();return[...e,a,...o]}function f(t){return t.methodType==="SHIPPING"}function h(t){return t.methodType==="LOCAL"}function P(t){return t.methodType==="PICK_UP"}function A(t,e){const a=e.title,o=t.get(a)||[];return o.push(e),t.set(a,o)}function E(t){if(!t)return!1;const e=!!n(t,"GOOGLE_PAY"),a=r(t,[i.BuyWithPrime]).length>0,o=t.some(s=>s.method.type==="shopWallet");return e||a||o}function G({paymentLines:t,walletUsedForSubmission:e}){return e!=="GOOGLE_PAY"&&l({paymentLines:t})}function _(t){return{...t,firstName:"",lastName:"",company:"",address1:"",address2:"",city:"",postalCode:"",phone:"",district:void 0,subdistrict:void 0}}function S(){const{shopPay:t}=u();return t}export{O as a,G as b,_ as c,M as d,D as g,E as h,m as i,S as u};

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.