PageSourceSearch

https://re-athlete.de/cdn/shopifycloud/checkout-web/assets/c1/2b89a178.dq9bza6T.js

js re-athlete.de collected 2026-10-02 23:01:52 UTC 4,756 bytes, 1 lines download raw bytes

1import{l as e,t as s,z as a,T as n,s as i}from"./2c1ab0fe.GMbxnz74.js";import{T as r,S as l,W as o,by as d,bz as t,bA as u,bh as p,bB as c,bC as v,ax as h,a3 as g}from"./4c290a1e.DMQ9xOwP.js";import{bp as y,bq as m}from"./164ad2e3.B4L1MRYB.js";import{u as b}from"./87bfafec.4CtkSIvo.js";const A={eligible:!1,nonEligibleReason:"SHOP_CASH_NOT_AVAILABLE",serverConfirmed:!0},_={eligible:!0,nonEligibleReason:null,serverConfirmed:!1};function f(){const{shopPay:e,checkout:n}=l(),i=o(),r=b(),p=s(()=>{if(!n.isShippingRequired.value)return{address:null,isShopPayVaultAddress:!1};const s=e.session.selectedShippingAddress.value;return s?.address?{address:s.address,isShopPayVaultAddress:!0}:{address:i.shippingAddress.value,isShopPayVaultAddress:!1}}),c=s(()=>{const s=e.session.selectedPaymentMethod.value,a=!i.paymentLines.value.some(e=>!d(e))&&null!=s&&t(s);return("APPLE_PAY"===r.value||a)&&null!=p.value.address}),v=s(()=>{const s=e.session.selectedPaymentMethod.value;if(c.value&&p.value.address){const s=p.value.address,a=s.phone||i.billingAddress.value.phone||e.user.phoneNumber.value;return{address:a&&a!==s.phone?{...s,phone:a}:s,isShopPayVaultAddress:p.value.isShopPayVaultAddress}}const a=u(s);if(a){const e=a.billingAddress.address;return{address:e.phone?e:{...e,phone:i.billingAddress.value.phone},isShopPayVaultAddress:!0}}const n=e.session.selectedBillingAddress.value;return n?.address?{address:n.address,isShopPayVaultAddress:!0}:"shipping"===i.billingAddressOption.value&&p.value.address?p.value:{address:i.billingAddress.value,isShopPayVaultAddress:!1}}),h=a(y(p.value.address?.countryCode,void 0,n.configuration.addressSettings.nonBillingAddressSettings.value,p.value.isShopPayVaultAddress?null:void 0)),g=a(y(v.value.address.countryCode,void 0,n.configuration.addressSettings.billingAddressSettings.value,v.value.isShopPayVaultAddress?null:void 0));return s(()=>{const e=p.value.address,s=v.value.address,a=e?h.value(e,"shipping"):new Map,n=g.value(s,"billing");return{selectedBillingAddress:s,selectedShippingAddress:e,isUsingApplePayShippingFallback:c.value,billingAddressErrors:n,shippingAddressErrors:a}})}function S({requiresAvailableBalance:a=!0}={}){const n=function({requiresAvailableBalance:a=!0}={}){const n=r().shopCashBalance,i=e(null);return s(()=>{const e=n.value;if("filled"===e?.status){const s={eligible:e.eligible,nonEligibleReason:e.eligible?null:e.nonEligibleReason??"SHOP_CASH_NOT_AVAILABLE",serverConfirmed:!0};return i.current=s,s}return"unavailable"===e?.status&&a?(i.current=A,A):i.current?{...i.current,serverConfirmed:!1}:_})}({requiresAvailableBalance:a}),i=r().deliveryNext,l=p("deliveryNext"),o=f();return s(()=>{const{nonEligibleReason:e,serverConfirmed:s}=n.value,a=i.value,r=l.value,{selectedShippingAddress:d,shippingAddressErrors:t,billingAddressErrors:u}=o.value,p=u.size>0,v=t.size>0||d&&!r&&"unavailable"===a?.status;let h=null;return e?h=e:v?h=c.ShopCashInvalidShippingAddress:p&&(h=c.ShopCashInvalidBillingAddress),{eligible:null==h,nonEligibleReason:h,serverConfirmed:s}})}const E=e=>(e=>"amount"in e&&"string"==typeof e.amount)(e)?{amount:Number(e.amount),currencyCode:e.currencyCode}:{amount:Number(e.value),currencyCode:e.currency},P=e=>{if(!e)return null;const s=E(e);return(e=>Boolean(e.amount&&!isNaN(e.amount)&&e.amount>0&&e.currencyCode&&Boolean(v[e.currencyCode])))(s)?s:null},C=()=>{const{userEvents:e,source:s,checkout:a,shop:r,shopPay:o}=l(),d=o.user.publicId.value,t=n(()=>({publicId:d}),[d]),u=i(n=>e.monorailEvent({schemaId:"shopify_pay_payment_page_shop_cash_redemption_visibility/1.1",payload:{...h(s,a,r),...t,...n}}),[e,s,a,r,t]),p=i(n=>e.monorailEvent({schemaId:"shopify_pay_payment_page_shop_cash_redemption_eligibility/3.1",payload:{...h(s,a,r),...t,...n}}),[e,s,a,r,t]);return{recordRedemptionActionEvent:i(n=>e.monorailEvent({schemaId:"shopify_pay_payment_page_shop_cash_redemption_actions/1.0",payload:{...h(s,a,r),...t,...n}}),[e,s,a,r,t]),recordRedemptionVisibilityEvent:u,recordRedemptionEligibilityEvent:p,recordRewardEligibilityEvent:i(n=>e.monorailEvent({schemaId:"shopify_pay_payment_page_shop_cash_reward_eligibility/5.1",payload:{...h(s,a,r),...t,...n}}),[e,s,a,r,t]),recordUiInteractionEvent:i(n=>e.monorailEvent({schemaId:"shopify_pay_payment_page_ui_interaction/1.1",payload:{...h(s,a,r),...n}}),[e,s,a,r])}};function B(){const{checkout:e,shopPay:a}=l(),n=m();return s(()=>
1{if(!e.installments.isSupported.value)return{spiPreselected:!1,preselectionReason:void 0};const s=[];n.value&&s.push(g.PointOfSale),a.config.shouldPreSelectInstallments&&s.push(g.SpiBanner);const i=a.user.installments.preselectReason.value;i&&s.push(i);const r=s.length>0;return{spiPreselected:r,preselectionReason:r?s.join(","):void 0}})}export{P as a,S as b,B as c,f as d,E as t,C 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.