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(27129),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"}},38962:(e,t,o)=>{"use strict";o.d(t,{I:()=>l});var r=o(80263),a=o(33894),i=o(53239),s=o(22310);class n extends i.Component{static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){e instanceof Error&&t.componentStack&&(e.stack=`${e.stack??e.message} 2Component stack:${t.componentStack}`),a.vF.error(e)}render(){let{error:e}=this.state;return e?(0,r.jsx)(s.q,{subtitle:this.props.subtitle,title:this.props.title}):this.props.children}constructor(...e){super(...e),this.state={error:void 0}}}let l=n},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(27129),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})]})]})}},66377:(e,t,o)=>{"use strict";o.d(t,{z:()=>p});var r=o(80263),a=o(59447),i=o(53239),s=o(84897),n=o(55132),l=o(12806),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=>{let t,{anchorElement:o,autoAdjustPosition:a=!0,autoPosition:m=!0,children:p,hasBlockingOverlay:h=!1,innerRef:_,maximizeHeight:v,preferredDirection:g="bottomRight",preferredDirectionDistance:f,onHitTestOutsideElement:y,...x}=e,{isAboveMd:b}=(0,d.yU)(),w=(t=(0,i.useRef)(!1),(0,i.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),t),j=(0,i.useRef)(null),k=(0,l.aB)([_,j]),C=(0,i.useCallback)(()=>{if(!o)return;let e=(0,n.mB)(o),t=j.current,r=t?{...(0,n.mB)(t),width:t.offsetWidth,height:t.offsetHeight}:void 0,i=(0,n.$S)(),s=50*!!b,l=m&&a,c=e&&u(e,g,f,l?r:void 0,l?i:void 0,l?s:0);if(a&&c&&e&&r&&i){let t=(0,n.ad)({...u(e,g,void 0,m?r:void 0,m?i:void 0,m?s:0),width:r.width,height:r.height},b?{...i,height:i.height-50}:i);c=(0,n.yt)(c,t)}return c},[o,x.inPortal,g,a,m]),[N,E]=(0,i.useState)(()=>x.open&&m?C():void 0),T=(0,i.useCallback)(()=>{let e=C();w.current&&(x.open?E(t=>!e||t&&(0,c.bN)(e,t)?t:e):N&&E(void 0))},[C,N,x.open]);(0,i.useLayoutEffect)(()=>{x.open&&m&&T()},[x.open,m,T]),(0,i.useEffect)(()=>{if(x.open){if(m&&setTimeout(()=>{(0,n.M9)(j.current).then(T)},200),o&&!h){m&&window.addEventListener("resize",T,{passive:!0});let e=[...(0,n.kd)(o),document],t=x.onCloseAttempt;
2return t&&e.forEach(e=>e.addEventListener("scroll",t,{passive:!0})),()=>{m&&window.removeEventListener("resize",T),t&&e.forEach(e=>e.removeEventListener("scroll",t))}}}else m&&T()},[x.open]),(0,i.useEffect)(()=>{if(m&&o&&x.open){if(!window.ResizeObserver)return void console.warn("Running without ResizeObserver");let e=new ResizeObserver(()=>{T()});return e.observe(o),()=>e.disconnect()}},[o,m,x.open]);let L=(0,i.useCallback)(e=>y?y(e):!o?.contains(e),[o]),M=v?a?"calc(100dvh - 50px)":"leftTop"===g||"rightTop"===g||"topLeft"===g||"topRight"===g?`calc(100dvh - ${N?.bottom??0}px)`:`calc(100dvh - ${N?.top??0}px)`:void 0;return(0,r.jsx)(s.u,{...x,coords:m?N:void 0,hasBlockingOverlay:h,innerRef:k,open:(!m||!!N)&&x.open,style:m?{...x.style,maxHeight:M}:x.style,onHitTestOutsideElement:L,onResize:m?T:void 0,children:p})},p=e=>!!(0,a.t)(e.open)&&(0,r.jsx)(m,{...e})},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(27129),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:()=>w});var r=o(80263),a=o(5085),i=o(87048),s=o(12556),n=o(1985),l=o(48851),c=o(13463),d=o(43138),u=o(27518),m=o.n(u),p=o(61469),h=o(53239),_=o(53372),v=o(11647),g=o(74966),f=o(38962),y=o(11359),x=o(74471);let b=e=>{let t=(0,p.useRouter)(),{t:o}=(0,c.c3)(),{isAppRehydrated:u}=(0,i.Fh)(),{checkoutId:b,handleCheckoutChange:w}=(0,x.B6)((0,d.Rq)(t.query.checkoutId)),{data:j,isFetching:k}=(0,y.ZR)(b),C=(0,h.useMemo)(()=>j?(0,x.hz)(j):void 0,[j]),N=(0,h.useMemo)(()=>C?{type:"purchase",checkout_id:C.id,amount:C.total_amount}:void 0,[C]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m(),{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)(f.I,{subtitle:o("An unhandled rendering error occurred on the client"),title:o("Something went wrong, we have already filed the report."),children:u&&(0,r.jsx)(n.p,{data:N,isLoading:k,children:e=>(0,r.jsxs)(g.l,{amount:e.amount,children:[(0,r.jsx)(_.f,{checkout:C}),(0,r.jsx)(v.q,{payorderSubject:e,returnUrl:window.parent?.location.href,onCheckoutChange:w,onSuccess:e=>{window.dispatchEvent(new CustomEvent("checkout_success",{detail:e}))}})]})})})})})]})};b.displayName="CheckoutPage",b.getConfig=()=>({allowIFrame:!0,noBg:!0,noScroll:!0,skipNonBasicGlobalDataFetching:!0,skipGlobalLayout:!0,skipCookieConsent:!0}),b.getInitialProps=async e=>{let{res:t}=e;t&&t.headersSent};let w=b},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(66377),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.