1import{bj as e,cq as n}from"./f67abd2c.BTHhdhoM.js";const t=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function r(e,{buyerCountryCode:n,currencyCode:r}){if("SPLIT_PAY"!==e.loanType||0!==e.apr||!r)return e.installmentsCount;const u=n??("GBP"===r?"GB":void 0),o=t.find(n=>n.buyerCountryCode===u&&n.currencyCode===r&&n.scheduledPaymentCount===e.installmentsCount);return o?.buyerFacingPaymentCount??e.installmentsCount}const u=["19052033","116568653825"],o=["5398945","5806535","5806485","5806583","5825541","11063525377","22909485057","45694222337","50064130049","50997919745","82930335745","50996150273","50997592065","71881981953","83640877057","51137445889","76562890753",...u],a=new Set(["OFFSITE","MANUAL_PAYMENT","CUSTOM_MANUAL_PAYMENT","PAYMENT_ON_DELIVERY"]);function s(e,n){const t=e?.replace(/\s/g,""),r=n?.replace(/\s/g,"");return void 0!==r&&void 0!==t&&t.length>r.length&&t.startsWith(r)}function c(n){if(!n)return!1;const t=e(n)??n;return u.includes(t)}function y(e,t,r=!1){e.paymentLines.value=n(e.paymentLines.peek(),t,r)}function d(e=[],n){return[n,...e.filter(e=>null!=e.paymentMethod.giftCardPaymentMethod),...e.filter(e=>null!=e.paymentMethod.redeemablePaymentMethod)]}export{o as A,a as R,r as g,c as i,d as r,s,y 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.