PageSourceSearch

https://volumo.com/_next/static/chunks/pages/checkout/[checkoutId]-f0296e6a4f187dac.js

js volumo.com collected 2026-10-03 21:23:10 UTC 16,828 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2410],{136:(e,t,o)=>{"use strict";o.d(t,{p:()=>l});var r=o(80263),a=o(3638),i=o(53239),s=o(49266),n=o.n(s);let l=i.forwardRef((e,t)=>{let{className:o,children:i,fullWidth:s,icon:l,type:c="success",variant:d="normal"}=e;return(0,r.jsx)("div",{className:(0,a.A)(n().root,n()[c],n()[`root-${d}`],s&&n().fullWidth,l&&n().withIcon,o),ref:t,children:l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:n().icon,children:l}),(0,r.jsx)("div",{className:n().content,children:i})]}):i})});l.displayName="MessageBox"},1985:(e,t,o)=>{"use strict";o.d(t,{p:()=>c});var r=o(80263),a=o(24318),i=o(12806),s=o(3638);o(53239);var n=o(93862),l=o.n(n);let c=e=>{let{children:t,className:o,data:n,id:c,innerRef:d,isBlocking:u,isLoading:m=!1,loader:p,role:h,spacing:_="default",style:v}=e,g=(0,i.OJ)(e);return m&&!n?(0,r.jsx)("div",{"aria-busy":!0,"aria-label":"Loading",className:(0,s.A)(l()[`spacing--${_}`],o),id:c,ref:d,role:"status",style:v,...g,children:p||(0,r.jsx)(a.a,{size:80})}):n?(0,r.jsxs)("div",{"aria-busy":m||void 0,"aria-disabled":m||void 0,className:(0,s.A)(l().dimmableWrapper,{[l().dimmed]:m&&!1!==u},o),id:c,ref:d,role:h,style:v,...g,children:["function"==typeof t?t(n):t,m&&(0,r.jsx)("div",{"aria-label":"Loading",className:(0,s.A)(!1===u?l().unobtrusive:l().obtrusive),role:"status",children:(0,r.jsx)(a.a,{size:80})})]}):null}},3483:(e,t,o)=>{"use strict";o.d(t,{e:()=>l,_:()=>c});var r=o(80263),a=o(53239),i=o(33310);let s=(0,a.createContext)({...(0,i.pq)(void 0),isCartUpdating:!1,addToCart:()=>Promise.resolve(!1),clearCart:()=>Promise.resolve(!1),removeFromCart:()=>Promise.resolve(!1),undoRemoveFromCart:()=>Promise.resolve(!1),setCartCheckout:()=>void 0,setPurchasedTrackIds:()=>void 0}),n=e=>e.then(()=>!0,()=>!1),l=e=>{let{children:t}=e,{data:o}=(0,i.K5)(),[l,c]=(0,a.useState)(),[d,u]=(0,a.useState)(),{cartAlbumIdByTrackId:m,cartAlbumIds:p,cartTrackIds:h}=(0,a.useMemo)(()=>(0,i.pq)(o),[o]),_=(0,i.ww)(),{mutateAsync:v}=_.addToCart,{mutateAsync:g}=_.clearCart,{mutateAsync:f}=_.removeFromCart,{mutateAsync:y}=_.undoRemoveFromCart,x=(0,a.useCallback)(e=>n(v(e)),[v]),b=(0,a.useCallback)(()=>n(g()),[g]),w=(0,a.useCallback)(e=>n(f(e)),[f]),j=(0,a.useCallback)(e=>n(y(e)),[y]),k=_.addToCart.isPending||_.clearCart.isPending||_.removeFromCart.isPending||_.undoRemoveFromCart.isPending,C=(0,a.useMemo)(()=>({addToCart:x,cartAlbumIdByTrackId:m,cartAlbumIds:p,cartCheckout:l,cartTrackIds:h,clearCart:b,isCartUpdating:k,purchasedTrackIds:d,removeFromCart:w,setCartCheckout:c,setPurchasedTrackIds:u,undoRemoveFromCart:j}),[x,m,p,l,h,b,k,d,w,j]);return(0,r.jsx)(s.Provider,{value:C,children:t})},c=()=>(0,a.useContext)(s)},6105:e=>{e.exports={root:"PayByExpressCheckout_root__GAYvF"}},7825:(e,t,o)=>{"use strict";o.d(t,{DK:()=>m,My:()=>n,dF:()=>s,fN:()=>u,uV:()=>d,vO:()=>c});var r=o(27394),a=o(77148);let i=e=>{if((0,r.g1)(e)||(0,r.kj)(e))return{item_name:e.title,type:"track",item_id:e.id,price:(0,a.ET)(e.price??void 0),item_category:e.recordlabel?.name??"Volumo direct",item_variant:e.album.title,quantity:1};if((0,r.HJ)(e)||(0,r.cD)(e))return{item_name:e.title,type:"album",item_id:e.id,price:(0,a.ET)(e.price??void 0),item_category:e.recordlabel?.name??"Volumo direct",item_variant:e.title,quantity:1};throw Error("Unrecognized object type: "+JSON.stringify(e))},s=()=>{window.dataLayer.push({event:"volumo_account_created"})},n=e=>{window.dataLayer.push({event:"volumo_add_to_playlist",type:e.length>1?"multiple":"single",ecommerce:{items:e.map(e=>i(e))}})},l=0,c=e=>{let t=2==++l?"volumo_track_play_2":10===l?"volumo_track_play_10":null;t&&window.dataLayer.push({event:t,track_id:e.id,label_name:e.recordlabel?.name??"Volumo direct",album_title:e.album.title})},d=e=>{window.dataLayer.push({event:"volumo_begin_checkout",ecommerce:{items:[...e.tracks,...e.albums].map(e=>i(e))}})},u=(e,t)=>{window.dataLayer.push({event:"volumo_purchase",purchase_type:"one_click",ecommerce:{transaction_id:e.id,value:(0,a.ET)(e.total_amount),currency:"EUR",payment_type:t,items:[...e.tracks,...e.albums].map(e=>i(e))}})},m=(e,t)=>{window.dataLayer.push({event:"volumo_top_up_balance",amount:(0,a.ET)(e.total_amount),currency:"EUR",payment_type:t})}},11647:(e,t,o)=>{"use strict";o.d(t,{q:()=>v});var r=o(80263),a=o(40773),i=o(136),s=o(78852),n=o(48851),l=o(553),c=o(3638),d=o(53239),u=o(89654),m=o(98959),p=o(74471),h=o(6105),_=o.n(h);let v=e=>{let{className:t,payorderSubject:o,returnUrl:h,onCheckoutChange:v,onSuccess:g}=e,{api:f}=(0,u.gf)(),[y,x]=(0,d.useState)(),b=(0,a.t2)(),w=(0,a.HH)(),{themeName:j}=(0,d.useContext)(n.Dx),k=(0,p.MX)(v),C=(0,d.useMemo)(()=>({buttonBorderRadius:8,buttonHeight:48,buttonTheme:{applePay:(0,l.If)(j)?"white-outline":"black",googlePay:(0,l.If)(j)?"white":"black"},buttonType:{applePay:"buy",googlePay:"buy"},layout:{maxColumns:1,maxRows:3},paymentMethods:{amazonPay:"auto",applePay:"always",googlePay:"always",klarna:"never",link:"never",paypal:"never"}}),[j]);
1return(0,r.jsxs)("div",{className:(0,c.A)(_().root,t),children:[o?(0,r.jsx)(a.F8,{options:C,onConfirm:async e=>{let t;x(void 0);try{if(!w||!b)throw Error("Stripe is not loaded");let{error:e}=await w.submit();if(e)throw e;if(t=await f.createPayorder((0,p.WS)(o,void 0)),!t?.stripe?.client_secret)throw Error("The payorder carries no Stripe client secret");let{error:r}=await b.confirmPayment({clientSecret:t.stripe.client_secret,confirmParams:{return_url:h??window.location.href},elements:w,redirect:"if_required"});if(r)throw r}catch(t){e.paymentFailed(),x(await k(t,o.checkout_id));return}g?.(t)}}):null,y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.K,{mt:3}),(0,r.jsx)(i.p,{type:"error",children:(0,m.n)(y)})]}):null]})}},12635:(e,t,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/[checkoutId]",function(){return o(78925)}])},15533:e=>{e.exports={row:"CheckoutSummary_row__znALp",rowTitle:"CheckoutSummary_rowTitle__zn1BA",discount:"CheckoutSummary_discount__ufilM",dot:"CheckoutSummary_dot__ItjlP"}},18733:e=>{e.exports={root:"EmbedError_root__qkFKF",title:"EmbedError_title__9Dg6J",subtitle:"EmbedError_subtitle__SQc_L"}},22310:(e,t,o)=>{"use strict";o.d(t,{q:()=>n});var r=o(80263),a=o(50016);o(53239);var i=o(18733),s=o.n(i);let n=e=>{let{title:t,subtitle:o}=e;return(0,r.jsxs)("div",{className:s().root,children:[(0,r.jsx)(a.V,{className:s().title,component:"h1",variant:"h1",children:t}),o&&(0,r.jsx)(a.V,{className:s().subtitle,component:"h2",variant:"h2",children:o})]})}},22504:e=>{e.exports={root:"Discount_root__36au4"}},36018:(e,t,o)=>{"use strict";o.d(t,{I:()=>m});var r=o(80263),a=o(64011),i=o(33894),s=o(53239),n=o(13463),l=o(22310),c=o(86507);let d=e=>{let{error:t}=e,{t:o}=(0,n.c3)();return(0,r.jsx)(l.q,{subtitle:(0,r.jsx)(c.r,{error:t}),title:o("Something went wrong")})};class u extends s.Component{static getDerivedStateFromError(e){return{error:(0,a.$)(e)}}componentDidCatch(e,t){let o=e instanceof Error?e:this.state.error;o&&(t.componentStack&&(o.stack=`${o.stack??o.message}
2Component stack:${t.componentStack}`),i.vF.error(o))}render(){let{error:e}=this.state;return e?(0,r.jsx)(d,{error:e}):this.props.children}constructor(...e){super(...e),this.state={}}}let m=u},49266:e=>{e.exports={root:"MessageBox_root__o6DMY",fullWidth:"MessageBox_fullWidth__mgVQc",withIcon:"MessageBox_withIcon__roQro",icon:"MessageBox_icon__OVklX",content:"MessageBox_content__P5j5h",success:"MessageBox_success__jxcIt",error:"MessageBox_error__SHSKk",warning:"MessageBox_warning__lCdfQ",info:"MessageBox_info__MUF7Q",tip:"MessageBox_tip__wZpdA","root-small-note":"MessageBox_root-small-note__FATGB"}},53372:(e,t,o)=>{"use strict";o.d(t,{f:()=>g});var r=o(80263),a=o(54525),i=o(97930),s=o(13463),n=o(553),l=o(76923),c=o(10330);o(53239);var d=o(99435),u=o(51143),m=o(22504),p=o.n(m);let h=e=>{let{className:t,discountPercentage:o}
2=e,{t:a}=(0,s.c3)(),{user:i}=(0,u.IE)(),n=i?.discount?.leftdays?a("Discount active for {count} more day(s)",void 0,{count:i?.discount?.leftdays}):a("Top up your balance to get a discount");return(0,r.jsx)(d.m,{anchor:(0,r.jsx)("div",{className:p().root,title:n,children:a("{percent} off","discount",{percent:(0,l.Ee)(o??i?.discount?.rate??0)})}),className:t,children:n})};var _=o(15533),v=o.n(_);let g=e=>{let{checkout:t,className:o,forceShowTax:d}=e,{t:u}=(0,s.c3)(),m=t?.subtotal_amount||t?.amount,p=t?.discount?.rate??0,_=t?.discount?.amount??0,g=t?.tax?.amount,f=t?.tax?.name,y=t?.tax?.rate,x=[f,y&&(0,l.Ee)(y)].filter(c.vN).join(", "),b=t?.total_amount??0,w=t?.quantity;return(0,r.jsxs)(i.xA,{className:o,verticalSpacing:1.5,children:[(0,r.jsxs)("div",{className:v().row,children:[(0,r.jsxs)("div",{className:v().rowTitle,children:[u("Subtotal"),":"]}),(0,r.jsx)(a.HJ,{value:m})]}),w>1&&(0,r.jsxs)("div",{className:v().row,children:[(0,r.jsxs)("div",{className:v().rowTitle,children:[u("Quantity"),":"]}),(0,r.jsx)("div",{className:n.Yr,children:w})]}),p>0&&(0,r.jsxs)("div",{className:v().row,children:[(0,r.jsx)("div",{className:v().rowTitle,children:(0,r.jsxs)("span",{children:[u("Discount"),":"]})}),(0,r.jsxs)(i.xA,{alignItems:"center",autoFlow:"column",horizontalSpacing:1,justifyContent:"right",children:[(0,r.jsx)(h,{className:v().discount,discountPercentage:p}),(0,r.jsx)("span",{className:v().dot}),(0,r.jsx)(a.HJ,{value:_})]})]}),("number"==typeof g||d)&&(0,r.jsxs)("div",{className:v().row,children:[(0,r.jsxs)("div",{className:v().rowTitle,children:[`${u("Taxes")}${x&&` (${x})`}`,":"]}),(0,r.jsx)(a.HJ,{value:g})]}),(0,r.jsxs)("div",{className:v().row,children:[(0,r.jsxs)("div",{className:v().rowTitle,children:[u("Total"),":"]}),(0,r.jsx)(a.HJ,{value:b})]})]})}},62886:(e,t,o)=>{"use strict";o.d(t,{z:()=>m});var r=o(80263),a=o(59447),i=o(51902),s=o(12806),n=o(53239),l=o(55132),c=o(40377),d=o(12556);let u=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=t;if(("bottomRight"===t||"bottomLeft"===t)&&r&&a){let n=Math.ceil((e.top??0)+(e.height??0)+o),l=(a.height??0)-i,c=r.height??0,d=(e.top??0)>=c;n+c>l&&d&&(s="bottomRight"===t?"topRight":"topLeft")}return{left:["topRight","bottomRight"].includes(s)?Math.floor(e.left??0):["rightTop","rightBottom"].includes(s)?Math.ceil((e.left??0)+(e.width??0)+o):void 0,right:["topLeft","bottomLeft"].includes(s)?Math.floor(e.right??0):["leftTop","leftBottom"].includes(s)?Math.ceil((e.right??0)+(e.width??0)+o):void 0,top:["bottomLeft","bottomRight"].includes(s)?Math.ceil((e.top??0)+(e.height??0)+o):["leftBottom","rightBottom"].includes(s)?Math.floor(e.top??0):void 0,bottom:["topLeft","topRight"].includes(s)?Math.ceil((e.bottom??0)+(e.height??0)+o):["leftTop","rightTop"].includes(s)?Math.floor(e.bottom??0):void 0}},m=e=>(0,a.t)(e.open)?(0,r.jsx)(p,{...e}):null,p=e=>{let{anchorElement:t,autoAdjustPosition:o=!0,autoPosition:a=!0,children:m,hasBlockingOverlay:p=!1,innerRef:h,maximizeHeight:_,preferredDirection:v="bottomRight",preferredDirectionDistance:g,onHitTestOutsideElement:f,...y}=e,x=(0,n.useRef)(null),b=(0,s.aB)([h,x]),{coords:w,recomputeAndSaveCoords:j}=(e=>{let t,{anchorElement:o,autoAdjustPosition:r,autoPosition:a,hasBlockingOverlay:i,inPortal:s,isOpen:m,popupRef:p,preferredDirection:h,preferredDirectionDistance:_}=e,{isAboveMd:v}=(0,d.yU)(),g=(t=(0,n.useRef)(!1),(0,n.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t),f=(0,n.useCallback)(()=>{if(!o)return;let e=(0,l.mB)(o),t=p.current,i=t?{...(0,l.mB)(t),width:t.offsetWidth,height:t.offsetHeight}:void 0,s=(0,l.$S)(),n=50*!!v,c=a&&r,d=e&&u(e,h,_,c?i:void 0,c?s:void 0,c?n:0);if(r&&d&&e&&i&&s){let t=(0,l.ad)({...u(e,h,void 0,a?i:void 0,a?s:void 0,a?n:0),width:i.width,height:i.height},v?{...s,height:s.height-50}:s);d=(0,l.yt)(d,t)}return d},[o,s,h,r,a]),[y,x]=(0,n.useState)(()=>m&&a?f():void 0),b=(0,n.useCallback)(()=>{let e=f();g.current&&(m?x(t=>!e||t&&(0,c.bN)(e,t)?t:e):y&&x(void 0))},[f,y,m]);return(0,n.useLayoutEffect)(()=>{m&&a&&b()},[m,a,b]),(0,n.useEffect)(()=>
2{if(m){if(a&&(setTimeout(()=>{(0,l.M9)(p.current).then(b)},200),o&&!i))return window.addEventListener("resize",b,{passive:!0}),()=>{window.removeEventListener("resize",b)}}else a&&b()},[m]),(0,n.useEffect)(()=>{if(a&&o&&m){if(!window.ResizeObserver)return void console.warn("Running without ResizeObserver");let e=new ResizeObserver(()=>{b()});return e.observe(o),()=>e.disconnect()}},[o,a,m]),{coords:y,recomputeAndSaveCoords:b}})({anchorElement:t,autoAdjustPosition:o,autoPosition:a,hasBlockingOverlay:p,inPortal:y.inPortal,isOpen:y.open,popupRef:x,preferredDirection:v,preferredDirectionDistance:g});(e=>{let{anchorElement:t,hasBlockingOverlay:o,isOpen:r,onCloseAttempt:a}=e;(0,n.useEffect)(()=>{if(r&&t&&!o&&a){let e=[...(0,l.kd)(t),document];return e.forEach(e=>e.addEventListener("scroll",a,{passive:!0})),()=>{e.forEach(e=>e.removeEventListener("scroll",a))}}},[r])})({anchorElement:t,hasBlockingOverlay:p,isOpen:y.open,onCloseAttempt:y.onCloseAttempt});let k=(0,n.useCallback)(e=>f?f(e):!t?.contains(e),[t]),C=_?o?"calc(100dvh - 50px)":"leftTop"===v||"rightTop"===v||"topLeft"===v||"topRight"===v?`calc(100dvh - ${w?.bottom??0}px)`:`calc(100dvh - ${w?.top??0}px)`:void 0;return(0,r.jsx)(i.u,{...y,coords:a?w:void 0,hasBlockingOverlay:p,innerRef:b,open:(!a||!!w)&&y.open,style:a?{...y.style,maxHeight:C}:y.style,onHitTestOutsideElement:k,onResize:a?j:void 0,children:m})}},74966:(e,t,o)=>{"use strict";o.d(t,{l:()=>d});var r=o(80263),a=o(40773),i=o(48851),s=o(13463),n=o(553),l=o(53239),c=o(60867);let d=e=>{let{amount:t,borderRadius:d="0",children:u}=e,{locale:m}=(0,s.c3)(),{themeName:p}=(0,l.useContext)(i.Dx),{data:h}=(0,c.eT)(),[_,v]=(0,l.useState)(null);(0,l.useEffect)(()=>{(async()=>{let e=(await o.e(7493).then(o.bind(o,17493))).loadStripe;v(await e(h?.stripe_pub_key||"",{developerTools:{assistant:{enabled:!1}}}))})()},[h?.stripe_pub_key]);let g=(0,l.useMemo)(()=>t?{amount:t,appearance:{theme:(0,n.If)(p)?"stripe":"night",variables:{borderRadius:d,fontFamily:"Inter",gridRowSpacing:"12px"}},currency:"eur",loader:"always",locale:m,mode:"payment",syncAddressCheckbox:"none"}:void 0,[t,d,m,p]);return(0,r.jsx)(a.S8,{options:g,stripe:_,children:"function"==typeof u?u(_):u},h?.stripe_pub_key||0)}},76664:e=>{e.exports={popup:"Tooltip_popup__7_kLN"}},78925:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>b});var r=o(80263),a=o(5085),i=o(87048),s=o(12556),n=o(1985),l=o(48851),c=o(43138),d=o(27518),u=o.n(d),m=o(61469),p=o(53239),h=o(53372),_=o(11647),v=o(74966),g=o(36018),f=o(11359),y=o(74471);let x=e=>{let t=(0,m.useRouter)(),{isAppRehydrated:o}=(0,i.Fh)(),{checkoutId:d,handleCheckoutChange:x}=(0,y.B6)((0,c.Rq)(t.query.checkoutId)),{data:b,isFetching:w}=(0,f.ZR)(d),j=(0,p.useMemo)(()=>b?(0,y.hz)(b):void 0,[b]),k=(0,p.useMemo)(()=>j?{type:"purchase",checkout_id:j.id,amount:j.total_amount}:void 0,[j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u(),{children:(0,r.jsx)("meta",{content:"noindex, indexifembedded",name:"robots"})}),(0,r.jsx)(s.pB,{clientDeviceType:e.clientInfo?.device?.type,children:(0,r.jsx)(l.NP,{defaultThemeName:e.themeName??l.Um,themeClassNames:a.c,children:(0,r.jsx)(g.I,{children:o&&(0,r.jsx)(n.p,{data:k,isLoading:w,children:e=>(0,r.jsxs)(v.l,{amount:e.amount,children:[(0,r.jsx)(h.f,{checkout:j}),(0,r.jsx)(_.q,{payorderSubject:e,returnUrl:window.parent?.location.href,onCheckoutChange:x,onSuccess:e=>{window.dispatchEvent(new CustomEvent("checkout_success",{detail:e}))}})]})})})})})]})};x.displayName="EmbeddedCheckoutPage",x.getConfig=()=>({allowIFrame:!0,noBg:!0,noScroll:!0,skipNonBasicGlobalDataFetching:!0,skipGlobalLayout:!0,skipCookieConsent:!0}),x.getInitialProps=async e=>{let{res:t}=e;t&&t.headersSent};let b=x},93862:e=>{e.exports={unobtrusive:"LoadingOverlay_unobtrusive__emWnL","gain-opacity":"LoadingOverlay_gain-opacity__H22w2",obtrusive:"LoadingOverlay_obtrusive__v6q0E",dimmableWrapper:"LoadingOverlay_dimmableWrapper__eqd5O",dimmed:"LoadingOverlay_dimmed__gWLFc","spacing--default":"LoadingOverlay_spacing--default__Itlx4","spacing--large":"LoadingOverlay_spacing--large__i1lBj","spacing--compact":"LoadingOverlay_spacing--compact__cbU8o"}},99435:(e,t,o)=>{"use strict";o.d(t,{m:()=>u});var r=o(80263),a=o(43959),i=o(62886),s=o(12806),n=o(3638),l=o(53239),c=o(76664),d=o.n(c);let u=e=>{let{anchor:t,className:o,children:c,popupClassName:u,preferredDirection:m,title:p}=e,{open:h,close:_,isOpen:v}=(0,a.F)(),g=(0,l.useRef)(null),f=(0,l.useCallback)(e=>{h(),e.preventDefault(),e.stopPropagation()},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:o,ref:g,title:p??(0,s.xi)(c),onClick:f,children:t}),(0,r.jsx)(i.z,{anchorElement:g.current??void 0,inPortal:!0,open:v,popupClassName:(0,n.A)(u,d().popup),preferredDirection:m??"topRight",onCloseAttempt:_,children:c??p})]})}}},e=>{e.O(0,[773,4471,636,6593,8792],()=>e(e.s=12635)),_N_E=e.O()}]);

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.