PageSourceSearch

https://elpea.vercel.app/_app/pages/home/__layout.svelte-b61a45c8.js

js elpea.vercel.app collected 2026-10-03 06:52:41 UTC 5,007 bytes, 1 lines download raw bytes

1import{S as w,i as x,s as k,e as _,k as E,t as D,c as h,a as g,n as L,g as I,d as p,M,b as m,f as j,I as d,h as q,J as O,N as T,O as C,j as A,m as N,o as P,x as b,u as y,v as S,r as G,w as H,D as B,F as J,G as K,H as Y}from"../../chunks/vendor-ba5f641c.js";import{s as V,p as W,a as z,t as Q,b as U}from"../../chunks/nowPlaying-34e0a6f8.js";function X(u){let e,t,a,o,s,l,i,f,n;return{c(){e=_("a"),t=_("img"),o=E(),s=_("div"),l=_("span"),i=D(u[1]),f=_("small"),n=D("Log Out"),this.h()},l(r){e=h(r,"A",{href:!0,rel:!0,class:!0});var c=g(e);t=h(c,"IMG",{src:!0,class:!0,alt:!0}),o=L(c),s=h(c,"DIV",{class:!0});var $=g(s);l=h($,"SPAN",{class:!0});var v=g(l);i=I(v,u[1]),v.forEach(p),f=h($,"SMALL",{});var F=g(f);n=I(F,"Log Out"),F.forEach(p),$.forEach(p),c.forEach(p),this.h()},h(){M(t.src,a=u[0])||m(t,"src",a),m(t,"class","w-10 pr-2 rounded-full"),m(t,"alt",u[1]),m(l,"class","-mb-1"),m(s,"class","flex flex-col items-center"),m(e,"href","/api/auth/logout"),m(e,"rel","external"),m(e,"class","flex items-center flex-shrink-0 btn svelte-123il19")},m(r,c){j(r,e,c),d(e,t),d(e,o),d(e,s),d(s,l),d(l,i),d(s,f),d(f,n)},p(r,[c]){c&1&&!M(t.src,a=r[0])&&m(t,"src",a),c&2&&m(t,"alt",r[1]),c&2&&q(i,r[1])},i:O,o:O,d(r){r&&p(e)}}}function Z(u,e,t){let a="",o="";return V.subscribe(s=>{var l,i,f,n;t(0,a=(f=s&&s.user&&s.user.images&&s.user.images[0]&&s.user.images[0].url)!=null?f:(i=(l=s==null?void 0:s.user)==null?void 0:l.images[0])==null?void 0:i.url),t(1,o=(n=s==null?void 0:s.user)==null?void 0:n.display_name)}),[a,o]}class ee extends w{constructor(e){super();x(this,e,Z,X,k,{})}}function te(u,e,t){let a;T(u,W,o=>t(0,a=o));{const o=document.createElement("script");o.src="https://sdk.scdn.co/spotify-player.js",o.async=!0,document.body.appendChild(o);let s=window;s.onSpotifyWebPlaybackSDKReady=()=>{const l=new s.Spotify.Player({name:"Elpea",getOAuthToken:i=>{fetch("/api/auth/token").then(f=>f.json()).then(f=>i(f.spotify_access_token))},volume:.5});l.addListener("ready",({device_id:i})=>{console.log("Ready with Device ID",i),l.id=i}),l.addListener("not_ready",({device_id:i})=>{console.log("Device ID has gone offline",i)}),l.addListener("player_state_changed",i=>{!i||(z.set(i),Q.set(i.track_window.current_track),U.set(i&&!i.paused))}),l.connect(),C(W,a=l,a)}}return[]}class se extends w{constructor(e){super();x(this,e,te,null,k,{})}}function R(u){let e,t;return e=new ee({}),{c(){A(e.$$.fragment)},l(a){N(e.$$.fragment,a)},m(a,o){P(e,a,o),t=!0},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){y(e.$$.fragment,a),t=!1},d(a){S(e,a)}}}function re(u){let e,t,a,o,s,l,i,f;l=new se({});let n=u[0]&&R();return{c(){e=_("nav"),t=_("div"),a=_("h1"),o=D("Elpea"),s=E(),A(l.$$.fragment),i=E(),n&&n.c(),this.h()},l(r){e=h(r,"NAV",{class:!0});var c=g(e);t=h(c,"DIV",{class:!0});var $=g(t);a=h($,"H1",{class:!0});var v=g(a);o=I(v,"Elpea"),v.forEach(p),$.forEach(p),s=L(c),N(l.$$.fragment,c),i=L(c),n&&n.l(c),c.forEach(p),this.h()},h(){m(a,"class","text-2xl font-light font-header text-brand-50"),m(t,"class","flex-1 pl-2"),m(e,"class","flex items-center p-2 border-b-2 bg-brand-900 border-brand-400")},m(r,c){j(r,e,c),d(e,t),d(t,a),d(a,o),d(e,s),P(l,e,null),d(e,i),n&&n.m(e,null),f=!0},p(r,[c]){r[0]?n?c&1&&b(n,1):(n=R(),n.c(),b(n,1),n.m(e,null)):n&&(G(),y(n,1,1,()=>{n=null}),H())},i(r){f||(b(l.$$.fragment,r),b(n),f=!0)},o(r){y(l.$$.fragment,r),y(n),f=!1},d(r){r&&p(e),S(l),n&&n.d()}}}function ae(u,e,t){let a;T(u,V,s=>t(1,a=s));let o;return o=a.user,[o]}class ne extends w{constructor(e){super();x(this,e,ae,re,k,{})}}function le(u){let e,t,a=new Date().getFullYear()+"",o;return{c(){e=_("footer"),t=D("\xA9 Traist Web Services "),o=D(a),this.h()},l(s){e=h(s,"FOOTER",{class:!0});var l=g(e);t=I(l,"\xA9 Traist Web Services "),o=I(l,a),l.forEach(p),this.h()},h(){m(e,"class","flex justify-end p-2 border-t-2 bg-brand-900 border-brand-400 text-brand-50")},m(s,l){j(s,e,l),d(e,t),d(e,o)},p:O,i:O,o:O,d(s){s&&p(e)}}}class oe extends w{constructor(e){super();x(this,e,null,le,k,{})}}function ce(u){let e,t,a,o,s,l,i;t=new ne({});const f=u[1].default,n=B(f,u,u[0],null);return l=new oe({}),{c(){e=_("div"),A(t.$$.fragment),a=E(),o=_("main"),n&&n.c(),s=E(),A(l.$$.fragment),this.h()},l(r){e=h(r,"DIV",{class:!0});var c=g(e);N(t.$$.fragment,c),a=L(c),o=h(c,"MAIN",{class:!0});var $=g(o);
1n&&n.l($),$.forEach(p),s=L(c),N(l.$$.fragment,c),c.forEach(p),this.h()},h(){m(o,"class","flex-grow h-full overflow-hidden"),m(e,"class","flex flex-col h-screen overflow-hidden font-light tracking-tight bg-brand-grey-900 text-brand-grey-300")},m(r,c){j(r,e,c),P(t,e,null),d(e,a),d(e,o),n&&n.m(o,null),d(e,s),P(l,e,null),i=!0},p(r,[c]){n&&n.p&&(!i||c&1)&&J(n,f,r,r[0],i?Y(f,r[0],c,null):K(r[0]),null)},i(r){i||(b(t.$$.fragment,r),b(n,r),b(l.$$.fragment,r),i=!0)},o(r){y(t.$$.fragment,r),y(n,r),y(l.$$.fragment,r),i=!1},d(r){r&&p(e),S(t),n&&n.d(r),S(l)}}}function ie(u,e,t){let{$$slots:a={},$$scope:o}=e;return u.$$set=s=>{"$$scope"in s&&t(0,o=s.$$scope)},[o,a]}class de extends w{constructor(e){super();x(this,e,ie,ce,k,{})}}export{de as default};

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.