PageSourceSearch

https://store.drdishbasketball.com/cdn/shopifycloud/checkout-web/a…ed-negotiation-input-redeemable.DoYPkwkm.js

js drdishbasketball.com collected 2026-09-25 00:24:27 UTC 2,498 bytes, 1 lines download raw bytes

1import{ib as a}from"./addresses-is-address-empty.ZJ1ThpFy.js";const c=[{buyerCountryCode:"CA",currencyCode:"CAD",scheduledPaymentCount:3,buyerFacingPaymentCount:4},{buyerCountryCode:"GB",currencyCode:"GBP",scheduledPaymentCount:2,buyerFacingPaymentCount:3}];function y(e,{buyerCountryCode:o,currencyCode:r}){if(e.loanType!=="SPLIT_PAY"||e.apr!==0||!r)return e.installmentsCount;const n=o??(r==="GBP"?"GB":void 0);return c.find(t=>t.buyerCountryCode===n&&t.currencyCode===r&&t.scheduledPaymentCount===e.installmentsCount)?.buyerFacingPaymentCount??e.installmentsCount}const m=[/Internal error\. Looks like something went wrong on our end/,/Session source not found/,/Country [A-Z]{0,2} is not supported/,/Invalid session token/,/Invalid query string parameter\./,/server_unavailable/];function A(e){return m.some(o=>o.test(e))}class h extends Error{constructor(){super(...arguments),this.name="UnactionableGraphQLExecutionError"}}const p=e=>e,u=e=>e,I={handle:p("e_769189b8"),variants:{control:u("v_11937282"),treatment:u("v_151ee815")}};function P(e,o,r){if(!(e.flag&&!r(e.flag)))for(const n of o){const[s,t]=n.split("=");if(s===e.handle)return t!=null&&Object.values(e.variants).includes(t)?t:void 0}}function C(e,...[o]){const r=(()=>{switch(e.redemptionSource){case"SHOP_CASH":{const n=e.redemptionContent,s=n.billingAddress?.streetAddress,d=!!(s?.address1||s?.extendedFields)&&s?s:o;return{shopCashRedemptionContent:{redemptionId:n.redemptionId,billingAddress:{streetAddress:d},destinationAmount:n.destinationAmount,sourceAmount:n.sourceAmount,redemptionPaymentOptionKind:n.redemptionPaymentOptionKind,details:n.details?.map(i=>({redemptionId:i.redemptionId,destinationAmount:{amount:i.destinationAmount.amount,currencyCode:i.destinationAmount.currencyCode},sourceAmount:i.sourceAmount?{amount:i.sourceAmount.amount,currencyCode:i.sourceAmount.currencyCode}:null,redemptionType:i.redemptionType}))}}}case"STORE_CREDIT":return{storeCreditRedemptionContent:{storeCreditAccountId:e.redemptionContent.storeCreditAccountId}};case"CUSTOM":{const n=e.redemptionContent;return{customRedemptionContent:{paymentMethodIdentifier:n.paymentMethodIdentifier,redemptionAttributes:n.redemptionAttributes,maskedIdentifier:n.maskedIdentifier}}}default:throw new a(`Redemption source ${e.redemptionSource} not implemented`)}})();return{redemptionSource:e.redemptionSource,redemptionContent:r}}function S(e){return{paymentMethod:C(e.paymentMethod)}}export{I as E,m as U,S as a,C as b,h as c,y as g,A as i,P as r};

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.