PageSourceSearch

https://www.sellpy.se/market/Payment.Fq1de9LW.bundle.js

js sellpy.se collected 2026-10-02 03:01:48 UTC 6,066 bytes, 13 lines download raw bytes

1var v=Object.defineProperty,O=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var I=(e,n,t)=>n in e?v(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,T=(e,n)=>{for(var t in n||(n={}))N.call(n,t)&&I(e,t,n[t]);if(A)for(var t of A(n))F.call(n,t)&&I(e,t,n[t]);return e},_=(e,n)=>O(e,U(n));var R=(e,n,t)=>new Promise((r,i)=>{var l=s=>{try{a(t.next(s))}catch(u){i(u)}},c=s=>{try{a(t.throw(s))}catch(u){i(u)}},a=s=>s.done?r(s.value):Promise.resolve(s.value).then(l,c);a((t=t.apply(e,n)).next())});import{j as o,P as d}from"./npm.sellpy-design-system.DdsWMDHW.bundle.js";import{r as p}from"./npm.react-hook-form.HNw-giVQ.bundle.js";import{N as W}from"./npm.react-router.BDfxye5A.bundle.js";import{g}from"./npm.styled-components.CzYR6Qdp.bundle.js";import{bF as D,bJ as B,fC as H,aa as K,a7 as Y,aS as x,aH as G,aQ as J,Q as L,y as q,fD as Q}from"./index.DWkcZ-_z.bundle.js";import"./npm.apollo-client.CXJpJPbe.bundle.js";import{u as V}from"./npm.react-i18next.BwOa93YU.bundle.js";import{ab as y,a8 as X,J as $}from"./npm.sellpy-commons.B413ARrd.bundle.js";import{u as z}from"./useIsAdyenReturn.Cuu_l7Ho.bundle.js";import{a as Z,b as ee,S as te,k as ne,c as oe,d as se}from"./SessionPayment.RpPkUxNq.bundle.js";import{u as re}from"./useAnalyticsItems.BL70FXn1.bundle.js";import{u as ae}from"./useIsEligibleForReverseCharge.DMiGXs1c.bundle.js";import{g as ie}from"./useCacheItemOrderPaymentData.CbjnYbQB.bundle.js";import{u as me}from"./useCreditsAndBalance.DNzBDTVX.bundle.js";import{u as de}from"./CheckoutProvider.C0OXsiZM.bundle.js";import{u as ue}from"./funnelTracking.D9pYwcPE.bundle.js";import{H as le}from"./HeaderComponent.DBXvgqsi.bundle.js";import{C as ce,a as pe}from"./styles.BFpDhh33.bundle.js";import{d as ye}from"./npm.sentry-react.Z7tY98T1.bundle.js";import"./npm.react-dom.DlIYrMBD.bundle.js";import"./npm.luxon.3NOFZn7k.bundle.js";import"./npm.zod.DEnjmUYT.bundle.js";import"./npm.lodash.DxN61Y-S.bundle.js";import"./npm.parse.BcWrqAIh.bundle.js";import"./npm.swr.CiJqMJM6.bundle.js";import"./npm.algolia.BDObKZ-5.bundle.js";import"./npm.i18next.B74d65Th.bundle.js";import"./translations.B5c9TvV-.bundle.js";import"./npm.graphql.ClDiDpi3.bundle.js";import"./npm.immutable.DTQZtUT4.bundle.js";import"./actions.CRL_VH_A.bundle.js";import"./utils.DGZXBK23.bundle.js";import"./errors.dMazk1gb.bundle.js";import"./formHelpers.KzxNUZ3U.bundle.js";import"./Credits.DygCPpVk.bundle.js";import"./useUserTotalBalance.DWvVnMXx.bundle.js";import"./useDac7BlocksForUser.CRK7cdXQ.bundle.js";import"./freight.6w9i6vBj.bundle.js";import"./usePrevious.C4FWeHWm.bundle.js";try{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},n=new e.Error().stack;
1n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6d74c31d-adb5-4292-9955-349c79f8967f",e._sentryDebugIdIdentifier="sentry-dbid-6d74c31d-adb5-4292-9955-349c79f8967f")}catch(e){}{let e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sellpy-market":!0})}const fe=g.div`
2  display: flex;
3  align-items: center;
4  justify-content: center;
5  flex-direction: column;
6`,f=g.div`
7  display: flex;
8  justify-content: space-between;
9  width: 100%;
10`,ge=({totalItemAmountWithoutPromoCode:e,totalItemAmountPromoCodeDiscount:n,freightPrice:t})=>{const{t:r}=V("adyenSessionPayment");return o.jsxs(fe,{children:[o.jsxs(f,{children:[o.jsx(d,{design:"body3",noMargin:!0,children:r("amountElements.ItemsAmountElement.itemPrice.label")}),o.jsx(d,{design:"body3",noMargin:!0,children:y(e)})]}),o.jsxs(f,{children:[o.jsx(d,{design:"body3",noMargin:!0,children:r("amountElements.ItemsAmountElement.shipping.label")}),o.jsx(d,{design:"body3",noMargin:!0,children:y(t)})]}),n.amount>0&&o.jsxs(f,{children:[o.jsx(d,{design:"body3",noMargin:!0,children:r("amountElements.ItemsAmountElement.promoCodeDiscount.label")}),o.jsx(d,{design:"body3",noMargin:!0,children:`-${y(n)}`})]})]})},Ce=g.div`
11  background-color: white;
12`,rt=()=>{var h,E;const e=p.useMemo(()=>ie(),[]),n=z(),t=re(),{items:r}=D(),{analyticsConsent:i}=B(),l=ae(),c=p.useCallback(m=>R(null,null,function*(){const w=yield Z(m);return ee(_(T({},m),{analyticsItems:t,analyticsConsent:i})),w}),[t,i]),a=q(),[s,u]=de(),j=s.address.country==="BE"&&a==="FR"?"BE":a;p.useEffect(()=>{t.length&&H({checkoutType:x.CART,items:t})},[JSON.stringify(t)]);const M=new X(Number.MAX_SAFE_INTEGER,$[a]),{creditsUsedAmount:C,sellerBalanceCreditValueUsed:P}=me(M,!0),b=C.amount+P.amount,S=b>0?{amount:b,currency:C.currency}:null;ue("start_payment",{ready:r.length>0,payload:{items_list:r.map(m=>m.objectId),payment_amount:(h=e==null?void 0:e.totalAmount)==null?void 0:h.amount,payment_currency:(E=e==null?void 0:e.totalAmount)==null?void 0:E.currency,credits_available:S}});const k=K();return!e&&!n?(ye("Redirecting to cart from Payment page: no cached payment data","warning"),o.jsx(W,{to:Y.CART_ROUTE,replace:!0})):o.jsx(ce,{children:o.jsxs(pe,{children:[o.jsx(le,{}),o.jsx(Ce,{children:k&&o.jsx(te,{regionOverride:j,adyenCreateSession:se,adyenCommenceSession:c,klarnaOverride:L(Q),klarnaCreateSession:oe,klarnaCommenceSession:ne({analyticsItems:t,analyticsConsent:i}),totalPrice:e==null?void 0:e.totalAmount,amountComponent:e&&o.jsx(ge,{totalItemAmountWithoutPromoCode:e.totalItemAmountWithoutPromoCode,totalItemAmountPromoCodeDiscount:e.totalItemAmountPromoCodeDiscount,freightPrice:e.totalFreightAmount}),isReverseCharge:l,userPermissions:[{type:G,required:!0},{type:J,required:!1}],checkoutType:x.CART,useCredits:s.useCredits,setUseCredits:m=>u({type:"setUseCredits",data:m})})})]})})};export{rt as default};
13//# sourceMappingURL=Payment.Fq1de9LW.bundle.js.map

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.