1import{a9 as e,bo as n,oC as t,cy as s}from"./9dba8418.ogFVeXB5.js";function a(n){return{address1:n?.address1||"",address2:n?.address2||"",city:n?.city||"",company:n?.company||"",countryCode:e(n?.countryCodeV2??n?.country),firstName:n?.firstName||"",lastName:n?.lastName||"",phone:n?.phone||"",zoneCode:n?.province||"",postalCode:n?.zip||""}}function r(e){return"id"in e&&"handler_id"in e}function i(e){return"externalReferenceId"in e}function d(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 c(e){if(!e)return;if(i(e))return e.billingAddress;const n=e.billing_address;return n?{firstName:n.first_name,lastName:n.last_name,address1:n.street_address,address2:n.extended_address,city:n.address_locality,province:n.address_region,country:n.address_country,zip:n.postal_code,phone:n.phone_number}:void 0}function l(e,n){const t=e?.replace(/\s/g,""),s=n?.replace(/\s/g,"");return void 0!==s&&void 0!==t&&t.length>s.length&&t.startsWith(s)}function u(e){if(!e)return!1;const s=n(e)??e;return t.includes(s)}function f(e,n,t=!1){e.paymentLines.value=s(e.paymentLines.peek(),n,t)}function p(e=[],n){return[n,...e.filter(e=>null!=e.paymentMethod.giftCardPaymentMethod),...e.filter(e=>null!=e.paymentMethod.redeemablePaymentMethod)]}export{r as a,i as b,a as c,c as d,o as e,d as g,u as i,p as r,l as s,f 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.