2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
|
"use strict";(("undefined"!=typeof self?self:global).webpackChunkopen=("undefined"!=typeof self?self:global).webpackChunkopen||[]).push([[8123],{77468:(e,t,i)=>{i.d(t,{l:()=>h});var n=i(56162),l=i(79475),a=i(54186),o=i(14874),s=i(57356),r=i(4637);const d={[a.Uo.MEDIUM]:"alto",[a.Uo.LARGE]:"alto",[a.Uo.XLARGE]:"forte"},c={[a.Uo.LARGE]:"ballad",[a.Uo.XLARGE]:"cello"},u={[a.Uo.LARGE]:"viola",[a.Uo.XLARGE]:"viola"},h=({title:e,subtitle:t,body:i,footnote:h,buttonText:b,callToActionClicked:m})=>{const x=(0,a.jh)(),v=x&&d[x]||"canon",g=x&&c[x]||"mesto",E=x&&u[x]||"finale";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.D,{as:"h1",variant:v,semanticColor:"textBase",className:s.Z.title,children:e}),(0,r.jsx)(n.D,{as:"h2",variant:g,semanticColor:"textSubdued",className:s.Z.subtitle,children:t}),i,m&&(0,r.jsx)(l.D,{className:s.Z.button,colorSet:"invertedLight",onClick:m,"data-testid":o.xd,children:b}),h&&(0,r.jsx)(n.D,{as:"p",variant:E,semanticColor:"textSubdued",className:s.Z.note,children:h})]})}},54743:(e,t,i)=>{i.d(t,{H:()=>p});var n=i(84875),l=i.n(n),a=i(3802),o=i(62344),s=i(91703),r=i(54186),d=i(77468),c=i(14874);const u="NTT5CathoDEMjrmgfv9y",h="WmmNhmwHDNvDxInfukYO";var b=i(4637);const m=e=>(0,b.jsx)("div",{className:u,children:(0,b.jsx)("div",{className:h,children:(0,b.jsx)("svg",{width:e.iconSize,height:e.iconSize,fill:"currentColor",viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg",children:(0,b.jsx)("path",{d:"M33 31.998v-23h-2v23H8v2h23v23h2v-23h23v-2z"})})})});var x=i(57356);const v={name:"",username:"",image_url:null,hash:""},g={[r.Uo.MEDIUM]:164,[r.Uo.LARGE]:164,[r.Uo.XLARGE]:270},E=(e,t)=>(0,b.jsx)(o.q,{label:a.ag.get("web-player.blend.invite.button-title"),images:[],width:e,userIconSize:t,customPlaceholder:(0,b.jsx)(m,{iconSize:t}),piled:!0}),p=({invitation:e,callToActionClicked:t,breakpointEltRef:i})=>{const n=!!e.members?.length,u=n&&e.members?.[0]||e.recipient||v,h=n&&e.recipient||null,m=(0,r.jh)(),p=m&&g[m]||128,j=Math.round(.475*p);return(0,b.jsxs)("div",{className:l()(x.Z.container,x.Z.TwoUsers),"data-testid":c.xS,ref:i,children:[(0,b.jsx)(s.$,{children:a.ag.get("blend.invite.page-title")}),(0,b.jsxs)("div",{className:x.Z.facepile,children:[(0,b.jsx)(o.q,{label:u.name,images:[{url:u.image_url??"",width:p,height:p}],width:p,userIconSize:j}),h?(0,b.jsx)(o.q,{label:h.name,images:[{url:h.image_url??"",width:p,height:p}],width:p,userIconSize:j,piled:!0}):E(p,j)]}),(0,b.jsx)(d.l,{title:e.title,subtitle:e.subtitle,footnote:e.footnote,buttonText:e.button_text,callToActionClicked:t})]})}},14874:(e,t,i)=>{i.d(t,{Eh:()=>o,ab:()=>a,e0:()=>n,xS:()=>l,xd:()=>s});const n="blend-deleted-container",l="blend-two-user-container",a="blend-multi-user-container",o="blend-full-container",s="blend-cta-button"},83092:(e,t,i)=>{i.d(t,{Z:()=>n});const n=()=>{const e=window.location.href;return window.location.href=`https://accounts.spotify.com/login?continue=${encodeURIComponent(e)}`,null}},99891:(e,t,i)=>{i.d(t,{Ag:()=>s,V3:()=>l,nW:()=>o,oN:()=>a});var n=i(27555);let l=function(e){return e.PENDING_INVITATION="PENDING_INVITATION",e.READY_TO_JOIN_EMPTY_BLEND="READY_TO_JOIN_EMPTY_BLEND",e.READY_TO_JOIN_ALREADY_CREATED_BLEND="READY_TO_JOIN_ALREADY_CREATED_BLEND",e.MAX_MEMBERS="MAX_MEMBERS",e.ALREADY_JOINED="ALREADY_JOINED",e.DELETED="DELETED",e}({});const a=(e,t)=>e.build().withHost(n.cM).withPath(`/v3/view-invitation/${encodeURIComponent(t)}`).withEndpointIdentifier("v3/view-invitation/{invitationId}").withLocale(e.locale).send(),o=(e,t)=>e.build().withHost(n.cM).withMethod("PUT").withPath(`/v2/join/${encodeURIComponent(t)}`).withEndpointIdentifier("join/{invitationId}").send(),s=e=>e.build().withHost(n.cM).withMethod("POST").withPath("/v1/generate").withEndpointIdentifier("v1/generate").send()},6438:(e,t,i)=>{i.d(t,{j:()=>a});var n=i(41909),l=i(75890);const a=()=>(0,l.D)({[n.U.SMALL]:536,[n.U.MEDIUM]:792,[n.U.LARGE]:1048,[n.U.XLARGE]:1688})},82097:(e,t,i)=>{i.d(t,{i:()=>u});var n=i(59496),l=i(61740),a=i(3802),o=i(25899),s=i(30009),r=i(70175),d=i(82108),c=i(99891);function u(){const{user:e}=(0,l.v9)(d.Gg),t=(0,r.k)(),i=(0,n.us
|
||
|
//# sourceMappingURL=xpui-routes-blend.js.map
|