PageSourceSearch

https://store.familytreemagazine.com/cdn/shopifycloud/checkout-web/assets/c1/apple-pay-errors.CcNuwNMC.js

js familytreemagazine.com collected 2026-09-24 09:25:33 UTC 2,389 bytes, 1 lines download raw bytes

1import{j4 as a}from"./addresses-is-address-empty.-MuOhIyI.js";import{S as u}from"./app.A60-IfPs.js";const m=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function l(e,{buyerCountryCode:r,currencyCode:o}){if(e.loanType!=="SPLIT_PAY"||e.apr!==0||!o)return e.installmentsCount;const t=r??(o==="GBP"?"GB":void 0);return m.find(d=>d.buyerCountryCode===t&&d.currencyCode===o&&d.scheduledPaymentCount===e.installmentsCount)?.buyerFacingPaymentCount??e.installmentsCount}function p(e,...[r]){const o=(()=>{switch(e.redemptionSource){case"SHOP_CASH":{const t=e.redemptionContent,s=t.billingAddress?.streetAddress,i=!!(s?.address1||s?.extendedFields)&&s?s:r;return{shopCashRedemptionContent:{redemptionId:t.redemptionId,billingAddress:{streetAddress:i},destinationAmount:t.destinationAmount,sourceAmount:t.sourceAmount,redemptionPaymentOptionKind:t.redemptionPaymentOptionKind,details:t.details?.map(n=>({redemptionId:n.redemptionId,destinationAmount:{amount:n.destinationAmount.amount,currencyCode:n.destinationAmount.currencyCode},sourceAmount:n.sourceAmount?{amount:n.sourceAmount.amount,currencyCode:n.sourceAmount.currencyCode}:null,redemptionType:n.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 a(`Redemption source ${e.redemptionSource} not implemented`)}})();return{redemptionSource:e.redemptionSource,redemptionContent:o}}function y(e){return{paymentMethod:p(e.paymentMethod)}}class A extends u{constructor(r){super(r),this.name="IgnoredApplePayAPIError"}}class P extends u{constructor(){super(...arguments),this.name="ApplePayAPIError"}}class I extends u{constructor(){super(...arguments),this.name="AbortedSessionError"}}class S extends u{constructor(){super(...arguments),this.name="WalletProviderFailureError"}}class h extends u{constructor(){super(...arguments),this.name="ApplePaySessionNotReadyError",this.defaultGroupingHash="ApplePaySessionNotReadyError"}}export{h as A,A as I,S as W,I as a,P as b,y as c,p as d,l as g};

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.