PageSourceSearch

https://www.luckyvoicekaraoke.com/assets/index-rurnGGma.js

js luckyvoicekaraoke.com collected 2026-10-02 19:46:03 UTC 35,968 bytes, 90 lines download raw bytes

1var et=Object.defineProperty;var tt=(e,t,n)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var O=(e,t,n)=>tt(e,typeof t!="symbol"?t+"":t,n);import{e as p,f as D,a0 as Se,a1 as X,h as d,j as s,a2 as Ce,O as T,B as I,a3 as K,n as u,a4 as y,c as C,u as nt,d as ot,a5 as we,a6 as S,y as P,a7 as g,a8 as h,a9 as N,aa as $e,ab as x,ac as Be,ad as Oe,ae as Ye,af as _,ag as A,ah as de,ai as st,r as ue,aj as k,ak as pe,b as B,a as F,al as Ee,am as R,an as it,ao as rt,ap as at,aq as lt,ar as ct,as as dt,at as ut,au as Ue,av as _e,aw as ce,ax as j,ay as ne,az as pt,aA as G,aB as se,C as V,aC as ie,aD as Fe,aE as mt,k as fe,aF as Ge,aG as U,aH as He,aI as Y,aJ as oe,i as gt,aK as z,aL as Ae,aM as H,aN as Le,N as ye,aO as Pe,aP as ht,aQ as Te,aR as ft,aS as yt,o as q,aT as St,aU as Ct,s as Z,aV as Qe,aW as Et,aX as Ie,aY as Pt,aZ as bt,q as wt}from"./index-CuA3t7wx.js";import{r as b,b as f,u as _t,j as At}from"./react-BZVHYbbn.js";import{u as Lt,M as Tt}from"./usePageEffect-BpL-m8ZN.js";const It=typeof window<"u"?b.useLayoutEffect:b.useEffect,Nt=e=>{const t=b.useRef(e);return It(()=>{t.current=e},[e]),t},vt=e=>{const t=Nt(e);return b.useCallback((...n)=>t.current&&t.current(...n),[t])},xt=27,me=()=>{};function Mt(e){return e.button===0}function Rt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kt(e,t){return!!e.closest(t)}function Dt(e,t,{disabled:n,clickTrigger:o="click"}={}){const i=b.useRef(!1),r=t||me,l=b.useCallback(c=>{const m=e&&("current"in e?e.current:e);m&&console.warn("RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),i.current=!m||Rt(c)||!Mt(c)||m.contains(c.target)||kt(c.target,".uikit-dropdown-block"),i.current||r(c)},[e]),a=vt(c=>{c.keyCode===xt&&r(c)});b.useEffect(()=>{if(!(n||e==null))return document.addEventListener(o,l,!0),document.addEventListener("keyup",a),"ontouchstart"in document.documentElement&&[].slice.call(document.body.children).map(c=>c.addEventListener("mousemove",me)),()=>{document.removeEventListener(o,l,!0),document.removeEventListener("keyup",a),[].slice.call(document.body.children).forEach(c=>c.removeEventListener("mousemove",me))}},[e,n,o,l,a])}const Ne=300,$t=p(I).withConfig({displayName:"ErrorNotification__StyledCloseButton",componentId:"sc-16bk2sd-0"})(["& > svg{color:",";}position:absolute;right:1.5rem;top:1rem;padding:0;"],({theme:e})=>e.colors.white),Bt=p(K).withConfig({displayName:"ErrorNotification__MenuBlock",componentId:"sc-16bk2sd-1"})(["background-color:",";position:absolute;max-width:38rem;width:100%;left:0;bottom:0;padding:1.5rem 3rem;"," transform:translateY(0);"],({theme:e})=>e.colors.pink,({playerControlsDimensions:e})=>({paddingBottom:`calc(1.5rem + ${e.height}px)`})),Ot=({copy:e,show:t,hidden:n,dismiss:o,isMobile:i,playerControlsDimensions:r})=>{const l=b.useRef(null),[a,c]=b.useState(!1);return b.useEffect(()=>{t&&c(!0)},[t]),Se(()=>{a&&t&&X.from(l.current,{duration:Ne/1e3,y:"100%",ease:"power1.inOut"}),a&&!t&&X.to(l.current,{duration:Ne/1e3,y:"100%",ease:"power1.inOut",onComplete:()=>{c(!1),n()}})},[a,t]),a&&d(Bt,{ref:l,playerControlsDimensions:r,rounding:i?"top":"right",children:[s($t,{color:"white",onClick:o,icon:Ce}),d(T,{m:0,children:[s("b",{children:"Error: "}),e]})]})},Yt=e=>({playerControlsDimensions:u.fullscreen.getPlayerControlsDimensions(e)}),Ut={dismiss:y.notification.dismiss,hidden:y.notification.hidden},Ft=D(Yt,Ut)(Ot),ve=300,Gt=p(I).withConfig({displayName:"InfoNotification__StyledCloseButton",componentId:"sc-heeayb-0"})(["& > svg{color:",";}position:absolute;right:1.5rem;top:1rem;padding:0;"],({theme:e})=>e.colors.white),Ht=p(K).withConfig({displayName:"InfoNotification__MenuBlock",componentId:"sc-heeayb-1"})(["background-color:",";position:absolute;max-width:38rem;width:100%;left:0;bottom:0;padding:1.5rem 3rem;transform:translateY(0);",""],({theme:e})=>e.colors.pink,({playerControlsDimensions:e})=>({paddingBottom:`calc(1.5rem + ${e.height}px)`})),Qt=({copy:e,show:t,hidden:n,dismiss:o,isMobile:i,playerControlsDimensions:r})=>{const l=b.useRef(null),[a,c]=b.useState(!1);return b.useEffect(()=>{t&&c(!0)},[t]),Se(()=>{a&&t&&X.from(l.current,{duration:ve/1e3,y:"100%",ease:"power1.inOut"}),a&&!t&&X.to(l.current,{duration:ve/1e3,y:"100%",ease:"power1.inOut",onComplete:()=>{c(!1),n()}})},[a,t]),a&&d(Ht,{ref:l,playerControlsDimensions:r,rounding:i?"top":"right",children:[s(Gt,{color:"white",onClick:o,icon:Ce}),s(T,{m:0,children:e})]})},Wt=e=>({playerControlsDimensions:u.fullscreen.getPlayerControlsDimensions(e)}),qt={dismiss:y.notification.dismiss,hidden:y.notification.hidden},Kt=D(Wt,qt)(Qt),jt={[we.ERROR]:Ft,[we.INFO]:Kt},Vt=f.memo(()=>{const e=C(u.notification.getCurrent),t=nt({query:ot.mobile});if(!e)return null;const{type:n,props:o={},show:i}=e,r=jt[n];return r?s(r,{...o,show:i,isMobile:t}):null}),ge=p(_.Button).withConfig({displayName:"DesktopTabNav__StyledTabButton",componentId:"sc-1olsspu-0"})(["",""],S.lg`
2    margin: -1.5rem 0;
3    &:first-child {
4      margin-left: -1.5rem;
5      padding-left: 3rem;
6    }
7  `),zt=p(_.Nav).withConfig({displayName:"DesktopTabNav__StyledTabNav",componentId:"sc-1olsspu-1"})(["display:flex;flex-direction:row;height:100%;
7"]),he=P.PLAYER.MENU.BASE;class Xt extends f.Component{constructor(){super(...arguments);O(this,"onChangeTab",(n,o)=>{const{showMenu:i,closeMenu:r,openMenu:l}=this.props;n===o&&i?(g(he,h.CLOSE),r()):i?n!==o&&g(he,h.CHANGE_TAB,n):(g(he,h.OPEN,n),l())})}render(){const{showMenu:n,activeTabKey:o,songsNumber:i}=this.props;return d(zt,{tabsId:N,activeTabKey:n&&o,onChange:this.onChangeTab,children:[s(ge,{icon:$e,tabKey:x.PLAYLIST}),s(ge,{icon:Be,tabKey:x.QUEUE,children:s(Oe,{children:i})}),s(ge,{icon:Ye,tabKey:x.SEARCH})]})}}const Zt=p(_.Nav).withConfig({displayName:"MobileTabNav__StyledTabNav",componentId:"sc-n3y1w8-0"})(["height:100%;background-color:",";display:flex;flex-direction:column;"],A.menu.toolbar),Jt=({songsNumber:e})=>{const t=(n,o)=>{n!==o&&g(P.PLAYER.MENU.BASE,h.CHANGE_TAB,n)};return d(Zt,{tabsId:N,defaultKey:x.QUEUE,onChange:t,children:[s(_.Button,{icon:$e,tabKey:x.PLAYLIST}),s(_.Button,{icon:Be,tabKey:x.QUEUE,children:s(Oe,{children:e})}),s(_.Button,{icon:Ye,tabKey:x.SEARCH})]})},We=({mobile:e,...t})=>e?s(Jt,{...t}):s(Xt,{...t}),qe=p(K).withConfig({displayName:"styled__ControlsBlock",componentId:"sc-184ivg2-0"})(["position:absolute;bottom:0px;width:100%;background-color:",";display:flex;flex-direction:row;flex-wrap:wrap;padding:1.5rem;"," "," "," transform:translateY(0);"],A.player.background,S.mdOnly`
8    padding: 3rem;
9  `,S.lg`
10    user-select: none;
11    flex-wrap: nowrap;
12  `,S.mdDownLandscape`
13    flex-wrap: nowrap;
14  `);qe.defaultProps={rounding:"top",shadow:"top"};const en=p.div.withConfig({displayName:"styled__PlaybackBlock",componentId:"sc-184ivg2-1"})(["order:3;flex:0 0 33.333%;max-width:33.333%;width:100%;display:flex;align-items:center;justify-content:center;"," ",""],S.lg`
15    order: 2;
16    flex: 0 0 auto;
17    max-width: 100%;
18    width: auto;
19    padding: 0 1.5rem;
20  `,S.mdDownLandscape`
21    order: 2;
22    flex: 0 1 auto;
23    width: auto;
24    max-width: 100%;
25    padding: 0 2.5rem;
26  `),tn=p.div.withConfig({displayName:"styled__SettingsBlock",componentId:"sc-184ivg2-2"})(["order:4;flex:0 0 33.333%;max-width:33.333%;width:100%;display:flex;align-items:center;justify-content:flex-end;"," ",""],S.lg`
27    flex: 0 1 25%;
28    max-width: 25%;
29  `,S.mdDownLandscape`
30    flex: 0 0 auto;
31    width: auto;
32    max-width: 100%;
33    padding-left: 2.5rem;
34  `),nn=p.div.withConfig({displayName:"styled__ActionsBlock",componentId:"sc-184ivg2-3"})(["order:2;flex:0 0 33.333%;max-width:33.333%;width:100%;display:flex;align-items:center;justify-content:flex-start;"," ",""],S.lg`
35    order: 1;
36    flex: 0 1 25%;
37    max-width: 25%;
38  `,S.mdDownLandscape`
39    order: 1;
40    flex: 0 0 auto;
41    width: auto;
42    max-width: 100%;
43    padding-right: 2.5rem;
44  `),on=p.div.withConfig({displayName:"styled__PlaybackBarBlock",componentId:"sc-184ivg2-4"})(["order:1;flex:0 0 100%;max-width:100%;width:100%;display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;"," "," ",""],S.mdOnly`
45    margin-bottom: 3rem;
46  `,S.lg`
47    margin: 0;
48    order: 3;
49    flex: 1 0 40%;
50    padding: 0 1.5rem;
51  `,S.mdDownLandscape`
52    margin: 0;
53    order: 3;
54    flex: 1 0 40%;
55    padding: 0 2.5rem;
56  `),Q=p(I).withConfig({displayName:"styled__PlayerButton",componentId:"sc-184ivg2-5"})(["",""],S.mdOnly`
57    font-size: 3rem;
58  `),Ke=p(T).withConfig({displayName:"styled__ElapsedTime",componentId:"sc-184ivg2-6"})(["color:",";transform:translateZ(0);"],A.player.elapsed);Ke.defaultProps={as:"span",size:"small",mr:[1,5,2],lineHeight:[1,1,1]};const je=p(T).withConfig({displayName:"styled__Duration",componentId:"sc-184ivg2-7"})(["color:",";"],A.player.duration);je.defaultProps={as:"span",size:"small",lineHeight:[1,1,1]};const xe=P.PLAYER.MENU.BASE;class sn extends f.Component{constructor(){super(...arguments);O(this,"toggleMenu",()=>{const{showMenu:n,openMenu:o,closeMenu:i,play:r,pause:l,isSongLoading:a,hasCurrentSong:c,wasPlaying:m}=this.props,E=!a&&c;n?(g(xe,h.CLOSE),i(),E&&m&&r()):(g(xe,h.OPEN),o(),E&&l())})}render(){const{showMenu:n}=this.props;return s(nn,{children:s(de,{children:o=>o?s(cn,{icon:st,active:n,onClick:this.toggleMenu}):s(We,{...this.props})})})}}const rn=e=>({isSongLoading:u.requestStatus.getById(e,ue.play.start),hasCurrentSong:k.hasCurrentSong(e),activeTabKey:u.tab.getById(e,N),showMenu:u.menu.getById(e,N),songsNumber:k.getSongsNumber(e),wasPlaying:pe.wasPlaying(e)}),an=e=>({openMenu:()=>e(y.menu.open(N)),closeMenu:()=>e(y.menu.close(N)),play:()=>e(B.play()),pause:()=>e(B.pause())}),ln=D(rn,an)(sn);var cn=p(Q).withConfig({displayName:"Actions___StyledPlayerButton",componentId:"sc-ivppqc-0"})(["padding:0"]);const Me=e=>{const t=Math.round(e),n=Math.floor(t/60)||0,o=t-n*60||0;return`${n}:${o<10?"0":""}${o}`},dn=(e,t,n)=>Math.min(Math.max(e,t),n),un=e=>{let t=0,n=0;return e.type==="touchmove"?(t=e.touches[0].clientX,n=e.touches[0].clientY):e.type==="touchend"?(t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY):(t=e.clientX,n=e.clientY),{x:t,y:n}},pn=(e,{left:t,width:n})=>dn(un(e).x-t,0,n)/n*100,mn=p.div.withConfig({displayName:"ElapsedBar__BarWrapper",componentId:"sc-1xr5yjh-0"})(["position:relative;overflow:hidden;width:100%;height:0.4rem;border-radius:0.4rem;"]),gn=p.div.withConfig({displayName:"ElapsedBar__Bar",componentId:"sc-1xr5yjh-1"})(["width:100%;position:absolute;
58left:0;height:0.4rem;border-radius:0.4rem;"," transition:background-color "," ease-in-out;will-change:transform,background-color;"],({dragging:e})=>({backgroundColor:e?A.player.progress.active:A.player.progress.filled}),A.button.animDuration),hn=({progress:e,...t})=>s(mn,{children:s(gn,{...t,style:{transform:`translateX(${-100+e}%)`}})}),fn=p.button.withConfig({displayName:"SeekButton__StyledButton",componentId:"sc-1o5wiqo-0"})(["position:absolute;height:1.2rem;width:1.2rem;top:50%;border-radius:50%;"," "," padding:0;margin:0;border:none;touch-action:none;"," &:focus{outline:none;}transition:background-color "," ease-in-out,transform "," ease-in-out;"],({dragging:e})=>({transform:`translate(-50%, -50%) scale(${e?1.5:1})`}),({dragging:e})=>({backgroundColor:e?A.player.progress.active:A.player.progress.filled}),S.md`
59    height: 1.5rem;
60    width: 1.5rem;
61  `,A.button.animDuration,A.button.animDuration),yn=({progress:e,...t})=>s(fn,{"data-testid":"player-seek-button",...t,style:{left:`${e}%`}}),Sn=p.div.withConfig({displayName:"ProgressBar__ProgressBarContainer",componentId:"sc-y8o2nt-0"})(["position:relative;height:1.8rem;width:100%;margin-right:1.5rem;"," display:flex;align-items:center;",""],S.mdOnly`
62    margin-right: 5rem;
63  `,({disabled:e})=>e&&{pointerEvents:"none"}),Cn=p.div.withConfig({displayName:"ProgressBar__Bar",componentId:"sc-y8o2nt-1"})(["position:relative;height:0.4rem;width:100%;border-radius:0.4rem;background-color:",";touch-action:none;"],A.player.progress.notFilled),En=f.forwardRef(({progress:e,dragging:t,onClick:n,...o},i)=>s(Sn,{ref:i,...o,"data-testid":"player-track",children:d(Cn,{children:[s(hn,{progress:e,dragging:t}),s(yn,{progress:e,dragging:t})]})})),Pn=()=>{const e=F(),t=C(pe.getSongDuration),n=C(w=>u.requestStatus.getById(w,ue.play.start)),o=C(k.hasCurrentSong),[i,r]=f.useState(!1),[l,a]=f.useState(0),[c,m]=f.useState(0),E=f.useRef(null),v=Ee(E,{boundingRect:!0});f.useEffect(()=>{const w=re=>{m(re/t*100),a(re)};return i||(R.on("progress",w),R.on("seek",w)),()=>{R.removeListener("progress",w),R.removeListener("seek",w)}},[i,t]);const M=f.useCallback((w,re=!0)=>{const W=pn(w,v),Ze=R.elapsed()/t*100;if(m(W),a(t*W/100),re){const Je=W>Ze?"Forward":"Backward";g(P.PLAYER.BASE,h.SEEK,Je,{value:~~W}),e(B.seek(W))}return W},[e,t,v]),L=it({onSwiping:({event:w})=>{r(!0),M(w,!1)},onSwiped:({event:w})=>{r(!1),M(w)},trackMouse:!0,delta:0}),$=n||!o;return f.useEffect(()=>{(n||!o)&&(m(0),a(0))},[o,n]),d(on,{children:[s(En,{...L,ref:rt(E,L.ref),progress:c,dragging:i,onMouseUp:i?void 0:M,disabled:$}),s(Ke,{"data-testid":"player-song-elapsed",children:Me(l)}),s(je,{"data-testid":"player-song-duration",children:Me(t)})]})},ae=P.PLAYER.BASE,bn=({play:e,pause:t,rewind:n,next:o,isSongLoading:i,hasCurrentSong:r,hasNextSong:l,isPlaying:a})=>{const c=()=>{a?(g(ae,h.PAUSE),t()):(g(ae,h.PLAY),e())},m=i||!r;return d(en,{children:[s(Q,{"data-testid":"player-controls-rewind",disabled:m,onClick:()=>{g(ae,h.REWIND),n()},icon:at}),s(Ln,{"data-testid":`player-controls-${a?"pause":"play"}`,disabled:m,onClick:c,icon:a?lt:ct}),s(Q,{"data-testid":"player-controls-next",disabled:!l,onClick:()=>{g(ae,h.SKIP),o()},icon:dt})]})},wn=e=>({isSongLoading:u.requestStatus.getById(e,ue.play.start),hasCurrentSong:k.hasCurrentSong(e),hasNextSong:k.hasNextSong(e),isPlaying:pe.getPlaying(e)}),_n={play:B.play,pause:B.pause,rewind:B.rewind,next:B.next},An=D(wn,_n)(bn);var Ln=p(Q).withConfig({displayName:"PlaybackControls___StyledPlayerButton",componentId:"sc-1m5d8kp-0"})(["padding:0 1.5rem"]);const le=P.PLAYER.BASE,Tn=()=>{const e=F(),t=C(pe.getMuted),n=C(u.fullscreen.isEnabled);return d(tn,{children:[s(Q,{pr:"1.5rem",active:t,icon:ut,onClick:()=>{t?g(le,h.UNMUTE):g(le,h.MUTE),e(B.setMute(!t))}}),s(Q,{active:n,icon:Ue,onClick:()=>{n?(g(le,h.EXIT_FULLSCREEN),e(y.fullscreen.exit())):(g(le,h.ENTER_FULLSCREEN),e(y.fullscreen.enter()))}})]})},In=()=>{const e=F(),t=C(u.fullscreen.isEnabled),n=C(u.fullscreen.isPlayerControlsVisible),[o,i]=f.useState(!1),r=f.useRef(null),l=f.useCallback(()=>{clearTimeout(r.current),n||e(y.fullscreen.showPlayerControls()),o||(r.current=setTimeout(()=>{e(y.fullscreen.hidePlayerControls())},_e))},[n,e,o]),a=()=>{t&&(o||i(!0),clearTimeout(r.current),n||e(y.fullscreen.showPlayerControls()))},c=()=>{t&&(o&&i(!1),clearTimeout(r.current),r.current=setTimeout(()=>{e(y.fullscreen.hidePlayerControls())},_e))};return f.useEffect(()=>(t&&window.addEventListener("mousemove",l),()=>{clearTimeout(r.current),t&&window.removeEventListener("mousemove",l)}),[t,l]),{onMouseOver:a,onMouseLeave:c}},Nn=()=>{const e=F(),t=b.useRef(null);Ee(t,{onCalculated:l=>e(y.fullscreen.setPlayerControlsDimensions(l))});const n=In(),o=C(u.fullscreen.isPlayerControlsVisible),[i,r]=b.useState(o);return b.useEffect(()=>{o&&r(!0)},[o]),Se(()=>{i&&o&&X.from(t.current,{duration:ce/1e3,y:"100%",ease:"power1.inOut"}),i&&!o&&X.to(t.current,{duration:ce/1e3,y:"100%",ease:"power1.inOut",onComplete:()=>r(!1)})},[i,o]),i&&d(qe,{ref:t,...n,children:[s(Pn,{}),s(ln,{}),s(An,{}),s(Tn,{})]})},vn={height:"55rem",maxWidth:"32rem",display:"flex",paddingTop:"5rem",marginBottom:2,flexDirection:"column"},xn=e=>s(mt,{...e}),Mn={[j.MY_PLAYLIST]:ne.MY_PLAYLIST,[j.MY_PLAYLIST_MODAL]:ne.MY_PLAYLIST,[j.FEATURED_PLAYLIST]:ne.FEATURED_PLAYLIST};class be extends f.Component{constructor(){super(...arguments);O(this,"handleSingAll",()=>{const{playlist:n,singAll:o,gaCategory:i}=this.props;g(i,h.SING_ALL),o(n.songs)});O(this,"handleSortEnd",(n,o)=>{const{playlist:i,moveSong:r,gaCategory:l}=this.props;if(n===o)return;const a=o<n?"up":"down",c=Math.abs(o-n);g(l,h.DRAG_AND_DROP,a,{value:c}),r(i.id,n,o)})}render(){const{playlist:n,duration:o,closePlaylist:i,openSearchModal:r,shuffleSongs:l,type:a,isDesktop:c,gaCategory:m,myPlaylist:E}=this.props,v=Mn[a],M=n.songs||[];return d(f.Fragment,{children:[s(pt,{playlist:n,duration:o,handleReturn:i,playlistItemType:a,shuffleSongs:l,songsNumber:n.count,myPlaylist:E,gaCategory:m}),s(G.Wrapper,{flex:"1 1 100%;",children:s(G,{"data-testid":"myplaylist-songs",sortable:E,onSortEnd:this.handleSortEnd,distance:c?1:void 0,pressDelay:c?void 0:200,items:M,children:E?L=>M.map(($,w)=>
63s(se,{sortable:!0,isDragging:L===w,song:$,id:$.id,index:w,type:v,playlistId:n.id,openActionsOnTitleClick:!0,gaCategory:m},`${$.id}-${w}`)):M.map((L,$)=>s(se,{song:L,index:$,type:v,playlistId:n.id,openActionsOnTitleClick:!0,gaCategory:m},`${L.id}-${$}`))})}),d(V,{mt:"0.75rem",display:"flex",flex:"1 0 auto",children:[n.count>0&&s(I,{variant:"contained",flex:"1 1 50%",mr:2,onClick:this.handleSingAll,children:"Sing All"}),E&&s(de,{children:L=>L?s(I,{variant:"contained",flex:"1 1 50%",onClick:()=>{r(),g(m,h.OPEN_POPUP,ie.ADD_A_SONG)},children:"Add a song"}):s(Fe,{style:vn,drop:"up",wrapperCss:"flex: 1 1 50%;",renderContent:xn,gaCategory:P.ADD_SONGS_POPUP.BASE,children:({isOpen:$})=>s(I,{variant:"contained",flex:"1 1 50%",width:1,onClick:()=>{$&&g(m,h.OPEN_POPUP,ie.ADD_A_SONG)},children:"Add a song"})})})]})]})}}be.defaultProps={singAll:()=>{},moveSong:()=>{}};const Rn=p(I).withConfig({displayName:"PlaylistList__StyledListButton",componentId:"sc-sop7p1-0"})(["text-align:left;width:100%;&:hover > ","{color:",";}&:active > ","{color:",";}transition:all "," ease-in-out;"],fe,A.button.hover,fe,A.button.active,A.button.animDuration),Ve=({playlists:e,openPlaylist:t,createPlaylist:n,isLoading:o,gaCategory:i,isAuthenticated:r,openFreeTrialModal:l})=>d(f.Fragment,{children:[d(G,{flex:"1 1 100%",children:[e.map(a=>{var c;return s(G.Item,{children:s(Rn,{plain:!0,onClick:()=>{t(a.id),g(i,h.OPEN_PLAYLIST,a.id)},children:d(fe,{as:"span",children:[a.name," (",a.count||((c=a.songs)==null?void 0:c.length),")"]})})},a.id)}),o&&s(Ge,{cover:"black",mt:"5rem",mx:"auto"})]}),n&&s(I,{variant:"contained",mt:"0.75rem",flex:"1 0 auto",onClick:()=>{r?(g(i,h.OPEN_POPUP,ie.CREATE_PLAYLIST),n()):l()},children:"New playlist"})]}),kn=({currentPlaylist:e,currentPlaylistDuration:t,openPlaylist:n,closePlaylist:o,singAll:i,featuredPlaylists:r,isLoading:l})=>e?s(be,{playlist:e,duration:t,closePlaylist:o,singAll:i,type:j.FEATURED_PLAYLIST,gaCategory:P.PLAYER.MENU.FEATURED_PLAYLIST}):s(Ve,{playlists:r,openPlaylist:n,isLoading:l,gaCategory:P.PLAYER.MENU.FEATURED_PLAYLISTS_LIST}),Dn=e=>({currentPlaylist:U.current.getPlaylist(e),currentPlaylistDuration:U.current.getDuration(e),featuredPlaylists:U.featured.getPlaylists(e),isLoading:u.requestStatus.getById(e,He.featured.fetch)}),$n=e=>({openPlaylist:t=>e(Y.current.fetch(t)),closePlaylist:()=>e(Y.current.close()),singAll:t=>e(oe.singAll(t))}),Bn=D(Dn,$n)(kn),On=({currentPlaylist:e,currentPlaylistDuration:t,openPlaylist:n,closePlaylist:o,openSearchModal:i,singAll:r,moveSong:l,myPlaylists:a,createPlaylist:c,shuffleSongs:m,isDesktop:E,isLoading:v,isAuthenticated:M,openFreeTrialModal:L})=>e?s(be,{playlist:e,duration:t,closePlaylist:o,openSearchModal:i,singAll:r,moveSong:l,shuffleSongs:m,droppableId:j.MY_PLAYLIST,type:j.MY_PLAYLIST,isDesktop:E,myPlaylist:!0,gaCategory:P.PLAYER.MENU.MY_PLAYLIST}):s(Ve,{isAuthenticated:M,openFreeTrialModal:L,playlists:a,openPlaylist:n,createPlaylist:c,isLoading:v,gaCategory:P.PLAYER.MENU.MY_PLAYLISTS_LIST}),Yn=e=>({isAuthenticated:gt(e),currentPlaylist:U.current.getPlaylist(e),currentPlaylistDuration:U.current.getDuration(e),myPlaylists:U.my.getPlaylists(e),isLoading:u.requestStatus.getById(e,He.my.fetch),isDesktop:u.responsive.isDesktop(e)}),Un=e=>({openPlaylist:t=>e(Y.current.fetch(t)),createPlaylist:()=>e(y.modal.open(z.CREATE_PLAYLIST,{gaCategory:P.PLAYER.MENU.MY_PLAYLISTS_LIST})),closePlaylist:()=>e(Y.current.close()),openSearchModal:()=>e(y.modal.open(z.SEARCH_SONG_SMALL)),singAll:t=>e(oe.singAll(t)),moveSong:(...t)=>e(Ae.moveSongInPlaylist(...t)),shuffleSongs:t=>e(Ae.shufflePlaylist(t)),openFreeTrialModal:()=>e(y.modal.open(z.FREE_TRIAL))}),Fn=D(Yn,Un)(On),Gn=p(_.Nav).withConfig({displayName:"Playlists__PlaylistTabsNav",componentId:"sc-1pjemwq-0"})(["width:100%;border-bottom:1px solid white;margin-bottom:0.75rem;position:relative;display:flex;justify-content:space-between;align-items:baseline;flex:0 0 auto;"]),Re=p(_.Button).withConfig({displayName:"Playlists__StyledTabButton",componentId:"sc-1pjemwq-1"})(["flex:1 1 auto;border-radius:0;padding:0;padding-top:0.5rem;padding-bottom:1.75rem;width:100%;& > h2{color:",";}"],({active:e,theme:t})=>e&&t.colors.white),Hn=({currentPlaylist:e,myPlaylists:t,featuredPlaylists:n,closePlaylist:o})=>{const i=e&&e.isFeatured?H.FEATURED:H.USER;return d(Pe,{children:[d(Gn,{tabsId:Le,defaultKey:i,onChange:(l,a)=>{if(a!==l){const c=a===H.USER?P.PLAYER.MENU.MY_PLAYLISTS_LIST:P.PLAYER.MENU.FEATURED_PLAYLISTS_LIST;g(c,h.CHANGE_TAB,l)}o(a,l)},children:[s(Re,{plain:!0,tabKey:H.USER,children:d(ye,{m:0,textAlign:"left",color:"lightGrey",children:["My Playlists (",t.length,")"]})}),s(Re,{plain:!0,tabKey:H.FEATURED,children:d(ye,{m:0,textAlign:"left",color:"lightGrey",children:["Browse All (",n.length,")"]})})]}),d(_.Content,{tabsId:Le,defaultKey:i,children:[s(_.Pane,{tabKey:H.USER,children:s(Fn,{})}),s(_.Pane,{tabKey:H.FEATURED,children:s(Bn,{})})]})]})},Qn=e=>({currentPlaylist:U.current.getPlaylist(e),myPlaylists:U.my.getPlaylists(e,!1),featuredPlaylists:U.featured.getPlaylists(e)}),Wn=e=>({closePlaylist:()=>e(Y.current.close())}
63),qn=D(Qn,Wn)(Hn),Kn=p.div.withConfig({displayName:"styled__QueueHeading",componentId:"sc-1kggbnu-0"})(["position:relative;width:100%;border-bottom:1px solid white;display:flex;justify-content:space-between;align-items:baseline;padding-bottom:1.75rem;padding-top:0.5rem;flex:0 0 auto;margin-bottom:0.75rem;& > h2{margin-bottom:0;}"]),jn=e=>s(ht,{dropdown:!0,...e}),Vn=({children:e,...t})=>s(Fe,{gaCategory:P.PLAYER.MENU.QUEUE_OPTIONS,contentProps:t,renderContent:jn,children:e}),ke={"data-testid":"dropdown-button",position:"relative",ml:"0.5rem"},ze=P.PLAYER.MENU.QUEUE,zn=({openModal:e,...t})=>s(de,{children:n=>n?s(Te,{onClick:e,...ke}):s(Vn,{...t,children:({isOpen:o})=>s(Te,{...ke,onClick:()=>{o&&g(ze,h.OPEN_POPUP,ie.QUEUE_OPTIONS)}})})}),Xn=(e,t)=>({openModal:()=>{g(ze,h.OPEN_POPUP,ie.QUEUE_OPTIONS),e(y.modal.open(z.QUEUE_OPTIONS,t))}}),Zn=D(null,Xn)(zn),Jn=({songs:e,songsNumber:t,songsTotalTime:n,shuffleSongs:o})=>d(Kn,{"data-testid":"queue-heading",children:[d(ye,{children:["Queue  ",d(T,{as:"span",color:"lightGrey",children:["(",t===0?"empty":`${t} songs: ${ft(n)}`,")"]})]}),t>0&&d(V,{display:"flex",children:[t>2&&s(I,{"data-testid":"shuffle-songs",icon:yt,onClick:o}),t>0&&s(Zn,{songs:e})]})]}),te=P.PLAYER.MENU.QUEUE;class eo extends f.Component{render(){const{songs:t,songsTotalTime:n,currentSong:o,openSearch:i,shuffleSongs:r,moveSong:l,getRandomSong:a,isDesktop:c}=this.props;return d(Pe,{children:[s(Jn,{songs:t,songsNumber:t.length,songsTotalTime:n,shuffleSongs:r}),s(G.Wrapper,{flex:"1 1 100%",children:s(G,{"data-testid":"queue-songs",sortable:!0,onSortEnd:l,distance:c?1:void 0,pressDelay:c?void 0:200,items:t,children:m=>d(f.Fragment,{children:[o&&s(se,{song:o,playing:!0}),t.map((E,v)=>s(se,{sortable:!0,isDragging:m===E.id,song:E,index:v,id:E.id,openActionsOnTitleClick:!0,type:ne.QUEUE,gaCategory:te},`${E.id}-${v}`))]})})}),d(V,{display:"flex",justifyContent:"space-between",width:1,mt:"0.75rem",flex:"1 0 auto",children:[s(I,{variant:"contained",width:1,mr:2,onClick:i,children:"Add a song"}),s(I,{variant:"contained",width:1,onClick:a,children:"I'm feeling lucky"})]})]})}}const to=e=>({currentSong:k.getCurrentSong(e),songs:k.getSongs(e),songsTotalTime:k.getDuration(e),isDesktop:u.responsive.isDesktop(e)}),no=e=>({getRandomSong:()=>{g(te,h.RANDOM_SONG),e(oe.randomSong.request())},moveSong:(t,n)=>{if(t===n)return;const o=n<t?"up":"down",i=Math.abs(n-t);g(te,h.DRAG_AND_DROP,o,{value:i}),e(oe.moveSong(t,n))},shuffleSongs:()=>{g(te,h.SHUFFLE),e(oe.shuffle())},openSearch:()=>{g(te,h.CLICK,"Add a song"),e(y.tab.change(N,x.SEARCH))}}),oo=D(to,no)(eo),De=P.PLAYER.MENU.SEARCH,so=({hasFetchedSuggestions:e,suggestions:t,popularSongs:n,hasFetchedSongs:o,foundSongs:i,isLoading:r,searchSong:l,suggestSongs:a,clearSuggestions:c,clearSearchResults:m})=>{const E=St({gaCategory:De,searchSong:l,suggestSongs:a,clearSuggestions:c,clearSearchResults:m}),v=o&&i.length===0,M=o?i:n;return d(Pe,{children:[s(Ct,{showSuggestionsDropdown:!0,showResetButton:o,hasFetchedSuggestions:e,suggestions:t,...E}),s(G.Wrapper,{flex:"1 1 100%",mt:"0.75rem",children:d(G,{children:[M.map(L=>s(se,{song:L,type:ne.SEARCH,openActionsOnTitleClick:!0,gaCategory:De},L.id)),v&&s(lo,{children:s(T,{as:"span",children:"Sorry, no result found"})}),r&&s(Ge,{cover:"black",mt:"5rem",mx:"auto"})]})})]})},io=e=>({hasFetchedSuggestions:Z.suggest.hasFetched(e),suggestions:Z.suggest.getSuggestions(e),hasFetchedSongs:Z.search.songs.hasFetched(e),foundSongs:Z.search.songs.getSongs(e),popularSongs:Z.popular.getSongs(e),isLoading:u.requestStatus.getById(e,ue.search.songs)}),ro={searchSong:q.search.songs.request,suggestSongs:q.suggest.request,clearSuggestions:q.suggest.clear,clearSearchResults:q.search.songs.clear},ao=D(io,ro)(so);var lo=p("li").withConfig({displayName:"Search___StyledLi",componentId:"sc-c7ou35-0"})(["padding:0.75rem 0;"]);const J=(e="1.5rem")=>({playerControlsVisible:t,playerControlsDimensions:n})=>({paddingBottom:t?`calc(1.5rem + ${n.height}px)`:e}),co=()=>({transition:`padding-bottom ${ce}ms ease-in-out`}),uo=p.div.withConfig({displayName:"Tabs__StyledContent",componentId:"sc-ni3wi2-0"})(["flex:1;display:flex;flex-direction:column;padding:1.5rem;height:100%;position:relative;"," "," "," "," "," ",""],J("5rem"),S.md`
64    ${J("6rem")}
65  `,S.lg`
66    ${J()}
67    padding-left: 3rem;
68  `,S.smDownLandscape`
69    ${J("5rem")}
70  `,S.tabletLandscape`
71    ${J("6rem")}
72  `,co),po=p(Q).withConfig({displayName:"Tabs__StyledPlayerButton",componentId:"sc-ni3wi2-1"})(["position:absolute;right:1.5rem;bottom:1.5rem;"]),Xe=({mobile:e})=>{const t=F(),n=C(u.fullscreen.isPlayerControlsVisible),o=C(u.fullscreen.isEnabled),i=C(u.fullscreen.getPlayerControlsDimensions),r=()=>{t(o?y.fullscreen.exit():y.fullscreen.enter())};return d(uo,{playerControlsDimensions:i,playerControlsVisible:n,children:[d(_.Content,{tabsId:N,defaultKey:x.QUEUE,children:[s(_.Pane,{tabKey:x.PLAYLIST,children:s(qn,{})}),s(_.Pane,{tabKey:x.QUEUE,children:s(oo,{})}),s(_.Pane,{tabKey:x.SEARCH,children:s(ao,{})})]}),e&&s(po,{active:o,icon:Ue,onClick:r})]})},mo=({maxHeight:e})=>s(Qe,{menuId:N,rounding:"top-right",shadow:"right",anchor:"left",bg:"black",width:"38rem",maxHeight:e,children:s(Xe,{})}),go=({maxHeight:e})=>{const t=C(k.getSongsNumber);
72return d(Qe,{menuId:N,anchor:"bottom",shadow:"top",rounding:"top",bg:"black",overflow:"hidden",maxHeight:e,children:[s(We,{mobile:!0,songsNumber:t}),s(Xe,{mobile:!0})]})},ho=e=>{const t=C(u.fullscreen.getHeaderDimensions),o=C(u.fullscreen.isEnabled)?"100%":`calc(100% - ${t.height}px)`;return s(de,{children:i=>i?s(go,{...e,maxHeight:o}):s(mo,{...e,maxHeight:o})})},fo=({songId:e,startPlay:t})=>{const n=f.useRef(null),o=F(),i=C(u.fullscreen.isEnabled),r=C(c=>u.menu.getById(c,N)),l=C(u.modal.isAnyOpened),a=f.useCallback(()=>{g(P.PLAYER.MENU.BASE,h.CLICK_OUTSIDE_MENU),o(y.menu.close(N)),i&&o(y.fullscreen.hidePlayerControls())},[o,i]);return Dt(n,a,{disabled:!r||l}),f.useEffect(()=>{e?o(q.play.start.request(e)):t&&o(B.next({hideFreeTrialPopup:!0}))},[o,e,t]),f.useEffect(()=>()=>{o(Et.player.stopSession()),o(B.stop()),o(y.fullscreen.exit())},[o]),d("div",{ref:n,children:[s(ho,{}),s(Vt,{}),s(Nn,{})]})},yo=(e,t,n)=>{const o=document.getElementById(e);if(o){const i=(n-t.start)*100/t.duration;o.style.transform=`translate3d(-${100-i}%,0,0)`,o.firstChild.style.transform=`translate3d(${100-i}%,0,0)`}},So=e=>{const t=document.getElementById(e);t&&(t.style.transform="translateX(0%)",t.firstChild.style.transform="translateX(0%)",t.parentNode.style.color="white")},Co=e=>{const t=document.getElementById(e);t&&(t.style.transform="",t.firstChild.style.transform="",t.parentNode.style.color="")},Eo=({playerMenuOpened:e,isDesktop:t,headerDimensions:n,playerControlsDimensions:o,songInfoDimensions:i,fullscreen:r,playerControlsVisible:l})=>{const a=!t&&r&&window.innerWidth>window.innerHeight,c=window.innerHeight-n.height*!r-i.height-o.height*l-(t?100:0)-(a?50:0),m=window.innerWidth-380*t*e-(t?300:50)-(a?50:0);return{height:c,width:m}},Po=({playerMenuOpened:e,isDesktop:t,headerDimensions:n,playerControlsDimensions:o,songInfoDimensions:i,fullscreen:r,playerControlsVisible:l})=>{const a=!t&&r&&window.innerWidth>
72window.innerHeight,m=`${(o.height*l+i.height-n.height*!r-(a?50:0))/2*-1}px`;return{x:e&&t?"19rem":"0",y:m}};class bo extends f.PureComponent{constructor(){super(...arguments);O(this,"state",{currentScreen:null,headerDimensions:{}});O(this,"calculateLyricsSize",({transition:n=!0}={})=>{if(!this.state.currentScreen)return;const o=this.state.currentScreen.lines.length,i=document.getElementById("lyrics__screen");if(i){const r=Eo(this.props),l=Po(this.props),a=o<Ie?i.clientHeight/o*Ie:i.clientHeight,c=r.width/r.height,E=i.clientWidth/a>=c?r.width/i.clientWidth:r.height/a;i.style.transform=`translate(${l.x}, ${l.y}) scale(${E})`,i.style.transition=n?"transform 0.2s ease-in-out":""}});O(this,"handleLyricsChange",n=>{this.state.currentScreen!==n&&this.setState({currentScreen:n})});O(this,"step",n=>{const{currentScreen:o}=this.state,i=n*1e3+bt;o&&o.hasShown(i)&&o.isNowPlaying(i)&&this.updateWipe(i)})}componentDidMount(){R.on("lyrics:changed",this.handleLyricsChange),R.on("step",this.step),R.on("seek",this.step),window.addEventListener("resize",this.calculateLyricsSize)}componentWillUnmount(){R.removeListener("lyrics:changed",this.handleLyricsChange),R.removeListener("step",this.step),R.removeListener("seek",this.step),window.removeEventListener("resize",this.calculateLyricsSize)}componentDidUpdate(n,o){const{currentScreen:i}=this.state,{fullscreen:r,playerControlsVisible:l,playerMenuOpened:a,songInfoDimensions:c}=this.props;(i!==o.currentScreen&&i||r!==n.fullscreen||l!==n.playerControlsVisible||a!==n.playerMenuOpened||c!==n.songInfoDimensions)&&this.calculateLyricsSize({transition:i===o.currentScreen})}updateWipe(n){const{currentScreen:o}=this.state;o.isNowPlaying(n)&&o.lines.forEach((i,r)=>{i.syllables.forEach((l,a)=>{const c=`wipe-outer-${r}-${a}-${l.text}`;l.isNowPlaying(n)?yo(c,l,n):l.hasPlayed(n)?So(c):Co(c)})})}render(){const{currentScreen:n}=this.state;return n?s("div",{id:"lyrics__screen",className:"lyrics__screen",children:n.lines.map((o,i)=>s("div",{className:"lyrics__line",id:`line-${i}`,children:o.syllables.map(({text:r,singer:l},a)=>d("span",{className:Pt("lyrics__syllable",l&&`lyrics__syllable--singer-${l}`),children:[r,s("span",{className:"lyrics__wipe lyrics__wipe--outer",id:`wipe-outer-${i}-${a}-${r}`,children:s("span",{className:"lyrics__wipe lyrics__wipe--inner",id:`wipe-inner-${i}-${a}-${r}`,children:r})})]},`${i}-${a}-${r}`))},i))},n.id):null}}const wo=e=>({playerMenuOpened:u.menu.getById(e,N),fullscreen:u.fullscreen.isEnabled(e),isDesktop:u.responsive.isDesktop(e),playerControlsVisible:u.fullscreen.isPlayerControlsVisible(e),playerControlsDimensions:u.fullscreen.getPlayerControlsDimensions(e),headerDimensions:u.fullscreen.getHeaderDimensions(e),songInfoDimensions:u.fullscreen.getSongInfoDimensions(e)}),_o=D(wo)(bo),ee=({playerControlsVisible:e,playerControlsDimensions:t})=>({transform:`translateY(${e?`-${t.height}px`:"0rem"})`}),Ao=()=>({transition:`transform ${ce}ms ease-in-out`}),Lo=p.div.withConfig({displayName:"SongInfo__StyledInfoContainer",componentId:"sc-hsn2xg-0"})(["position:absolute;display:flex;align-items:flex-end;justify-content:space-between;width:100%;padding:1.5rem;bottom:0;"," "," "," "," "," ",""],ee,S.md`
73    ${ee}
74  `,S.lg`
75    ${ee}
76  `,S.smDownLandscape`
77    ${ee}
78  `,S.tabletLandscape`
79    ${ee}
80  `,Ao),To=p.div.withConfig({displayName:"SongInfo__CurrentSongContainer",componentId:"sc-hsn2xg-1"})(["text-align:left;max-width:45%;",""],S.lg`
81    padding-right: 1.5rem;
82    max-width: 30rem;
83    transform: translateX(
84      ${({playerMenuOpened:e})=>e?"38.5rem":0}
85    );
86    transition: transform 350ms ease-in-out;
87  `),Io=p.div.withConfig({displayName:"SongInfo__NextSongContainer",componentId:"sc-hsn2xg-2"})(["margin-left:auto;text-align:right;max-width:45%;",""],S.lg`
88    padding-left: 1.5rem;
89    max-width: 30rem;
90  `),No=()=>{const e=f.useRef(null),t=F(),n=C(k.getCurrentSong),o=C(k.getNextSong),i=C(a=>u.menu.getById(a,N)),r=C(u.fullscreen.isPlayerControlsVisible),l=C(u.fullscreen.getPlayerControlsDimensions);return Ee(e,{onCalculated:a=>t(y.fullscreen.setSongInfoDimensions(a))},[o]),d(Lo,{ref:e,playerControlsDimensions:l,playerControlsVisible:r,children:[n&&d(To,{playerMenuOpened:i,children:[s(T,{m:0,children:n.title}),s(T,{m:0,color:"lightGrey",children:n.artistName})]}),o&&d(Io,{children:[s(T,{m:0,color:"pink",children:"Next:"}),s(T,{m:0,children:o.title}),s(T,{m:0,color:"lightGrey",children:o.artistName})]})]})},vo=()=>{const e=F(),t=C(u.responsive.isMobile),[n,o]=f.useState(!0);return t?null:n?d(K,{position:"absolute",right:"0",top:"15rem",bg:"purple",rounding:"bottom-left",shadow:"none",maxWidth:"16rem",children:[s(K,{position:"absolute",maxHeight:"5rem",height:"100%",rounding:"left",bg:"purple",shadow:"none",padding:"1rem",top:"0",left:"-4rem",display:"flex",justifyContent:"center",alignItems:"center",children:s(I,{icon:Ce,color:"white",onClick:()=>{o(!1)}})}),s(V,{height:"5rem",padding:"1rem 1rem 0.5rem 1rem",textAlign:"center",children:s(Mo,{src:"/assets/icons/dual-screen.png",alt:"dual screen",title:"Remote control"})}),d(V,{display:"flex",flexDirection:"column",padding:"1rem",children:[s(T,{color:"white",mb:"1rem",size:"small",fontWeight:"bold",children:"Remote control"}),s(T,{color:"white",mb:"1rem",size:"small",children:"Control and choose your songs from your mobile."}),s(T,{color:"white",mb:"1rem",size:"small",children:"Click the button below to get started."}),s(I,{px:"0.1rem",variant:"outlined",color:"white",onClick:()=>{e(y.modal.open(z.QR_CODE)),o(!1)},children:"Show QR code"})]})]}):s(K,{position:"absolute",right:"0",top:"15rem",bg:"purple",rounding:"left",shadow:"none",maxWidth:"13rem",children:s(V,{height:"5rem",padding:"1rem 1rem 0.5rem 1rem",textAlign:"center",children:s(I,{onClick:()=>o(!0),children:s(xo,{src:"/assets/icons/dual-screen.png",alt:"dual screen",title:"Remote control"})})})})};var xo=p("img")`display:inline-block; height: 100%`,Mo=p("img").withConfig({displayName:"RemoteControlInfo___StyledImg2",componentId:"sc-fsi9st-0"})(["display:inline-block;height:100%"]);const Ro=p.div.withConfig({displayName:"Sing__Main",componentId:"sc-1so2olk-0"})(["position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;overflow:hidden;"]),ko=e=>
90d(f.Fragment,{children:[d(Ro,{children:[s(_o,{}),s(No,{})]}),s(fo,{...e}),s(vo,{})]}),Yo=()=>{const e=_t(),t=F(),[n]=At(),{mode:o,playlist:i,song:r}=Object.fromEntries(n);return b.useEffect(()=>{async function l(){try{await t(wt.verify()).unwrap(),await t(Y.my.fetch({limit:1e3,offset:0})).unwrap()}catch(a){console.info("Error verifying auth and fetching my playlists",a),!r&&!i&&o!=="play"&&e(`/login?next=/sing${n.toString()}`)}if(i)try{o==="play"&&await t(Y.current.play(i)).unwrap(),o==="edit"&&(await t(Y.current.fetch(i)).unwrap(),t(y.modal.open(z.EDIT_PLAYLIST,{clearOnClose:!0})))}catch{e("/not-found")}}l()},[]),b.useEffect(()=>{t(q.popular.fetch.request()),t(Y.featured.fetch({limit:900,offset:0}))},[]),Lt(Tt.SING),s(ko,{songId:r,startPlay:i&&o==="play"})};export{Yo as Component};

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.