PageSourceSearch

https://skine.com/assets/useCartCheckout-abtDZmOB.js

js skine.com collected 2026-10-07 23:46:24 UTC 1,655 bytes, 1 lines download raw bytes

1import{l as P}from"./layout-JpZwZ2sO.js";import"./components-DsIuDDL8.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[o]="fb59b177-fab8-4bc7-9916-e9479534c21b",c._sentryDebugIdIdentifier="sentry-dbid-fb59b177-fab8-4bc7-9916-e9479534c21b")}catch{}})();const x=({paymentMethod:c,discount:o,fxRate:f,preferredCurrency:a,products:d,cart:v=[]})=>{const{convertCurrency:t}=P(f),e=v.reduce((r,i)=>{const s=d==null?void 0:d.find(l=>l.slug===i.productSlug);if(s){const l=s.facevalue?t(s.facevalueCurrency,"usd",s.facevalue):t(s.priceCurrency,"usd",s.price),u=t("usd",a,l),F=s.serviceFeeFixed&&s.serviceFeeCurrency?t(s.serviceFeeCurrency,"usd",s.serviceFeeFixed):0,C=F!==0?t("usd",a,F):0;r.subTotalPrice+=u*i.amount,r.serviceFee+=s.serviceFeeFactor*(u*i.amount)-u*i.amount+C,r.totalPrice+=s.serviceFeeFactor*(u*i.amount)+C,r.skineCoins+=s.coinsEarned*i.amount}return r},{subTotalPrice:0,transactionCosts:0,serviceFee:0,totalPrice:0,skineCoins:0})??{subTotalPrice:0,transactionCosts:0,serviceFee:0,totalPrice:0,skineCoins:0};e.discount=o,e.discount&&(e.totalPrice=e.totalPrice-e.discount);const b=c==null?void 0:c.paymentMethodCurrencies.find(r=>r.currency===a),n=b||(c==null?void 0:c.paymentMethodCurrencies[0]);if(n&&(n.costVariable&&(e.transactionCosts+=e.totalPrice*(n.costVariable/100)),n.costFixed)){const r=t(n.currency,"usd",n.costFixed),i=t("usd",a,r);e.transactionCosts+=i}return e.transactionCosts&&e.transactionCosts>0&&(e.totalPrice+=e.transactionCosts),e.totalPrice=e.totalPrice<.009?0:e.totalPrice,e};export{x 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.