1System.register(["./addresses-is-address-empty-legacy.TVJr8s2s.js","./app-legacy.Cm8L_kP1.js"],(function(e,t){"use strict";var n,o;return{setters:[e=>{n=e.j4},e=>{o=e.S}],execute:function(){e({c:function(e){return{paymentMethod:r(e.paymentMethod)}},d:r,g:function(e,{buyerCountryCode:n,currencyCode:o}){var r;if("SPLIT_PAY"!==e.loanType||0!==e.apr||!o)return e.installmentsCount;const d=null!=n?n:"GBP"===o?"GB":void 0,s=t.find((t=>t.buyerCountryCode===d&&t.currencyCode===o&&t.scheduledPaymentCount===e.installmentsCount));return null!==(r=null==s?void 0:s.buyerFacingPaymentCount)&&void 0!==r?r:e.installmentsCount}});const t=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function r(e,...[t]){const o=(()=>{switch(e.redemptionSource){case"SHOP_CASH":{var o,r;const n=e.redemptionContent,d=null===(o=n.billingAddress)||void 0===o?void 0:o.streetAddress,s=Boolean((null==d?void 0:d.address1)||(null==d?void 0:d.extendedFields))&&d?d:t;return{shopCashRedemptionContent:{redemptionId:n.redemptionId,billingAddress:{streetAddress:s},destinationAmount:n.destinationAmount,sourceAmount:n.sourceAmount,redemptionPaymentOptionKind:n.redemptionPaymentOptionKind,details:null===(r=n.details)||void 0===r?void 0:r.map((e=>({redemptionId:e.redemptionId,destinationAmount:{amount:e.destinationAmount.amount,currencyCode:e.destinationAmount.currencyCode},sourceAmount:e.sourceAmount?{amount:e.sourceAmount.amount,currencyCode:e.sourceAmount.currencyCode}:null,redemptionType:e.redemptionType})))}}}case"STORE_CREDIT":return{storeCreditRedemptionContent:{storeCreditAccountId:e.redemptionContent.storeCreditAccountId}};case"CUSTOM":{const t=e.redemptionContent;return{customRedemptionContent:{paymentMethodIdentifier:t.paymentMethodIdentifier,redemptionAttributes:t.redemptionAttributes,maskedIdentifier:t.maskedIdentifier}}}default:throw new n(`Redemption source ${e.redemptionSource} not implemented`)}})();return{redemptionSource:e.redemptionSource,redemptionContent:o}}e("I",class extends o{constructor(e){super(e),this.name="IgnoredApplePayAPIError"}}),e("b",class extends o{constructor(){super(...arguments),this.name="ApplePayAPIError"}}),e("a",class extends o{constructor(){super(...arguments),this.name="AbortedSessionError"}}),e("W",class extends o{constructor(){super(...arguments),this.name="WalletProviderFailureError"}}),e("A",class extends o{constructor(){super(...arguments),this.name="ApplePaySessionNotReadyError",this.defaultGroupingHash="ApplePaySessionNotReadyError"}})}}}));
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.