radames's picture
static
64ae803
raw
history blame
No virus
2.91 kB
import{S as N,i as x,s as B,e as d,b as v,f as u,t as m,d as A,h as _,H as C,o as S,w as P,x as I,y as R,z as y,g as D,k as $,q as E,a as U,l as h,m as b,r as L,c as q,n as k,G as p,B as g}from"../../chunks/index-4b3edc7c.js";import{c as H,L as M,R as O,A as j}from"../../chunks/App-b4e90bcb.js";import{P as z,s as G}from"../../chunks/store-29c2f555.js";function w(n){let t,o;return t=new M({props:{client:n[1],$$slots:{default:[K]},$$scope:{ctx:n}}}),{c(){P(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,r){R(t,e,r),o=!0},p(e,r){const s={};r&2&&(s.client=e[1]),r&68&&(s.$$scope={dirty:r,ctx:e}),t.$set(s)},i(e){o||(u(t.$$.fragment,e),o=!0)},o(e){m(t.$$.fragment,e),o=!1},d(e){y(t,e)}}}function V(n){let t,o,e,r,s,c;return{c(){t=$("div"),o=$("h1"),e=E("No room selected"),r=U(),s=$("p"),c=E("Please select a room in the URL"),this.h()},l(i){t=h(i,"DIV",{class:!0});var l=b(t);o=h(l,"H1",{class:!0});var a=b(o);e=L(a,"No room selected"),a.forEach(_),r=q(l),s=h(l,"P",{class:!0});var f=b(s);c=L(f,"Please select a room in the URL"),f.forEach(_),l.forEach(_),this.h()},h(){k(o,"class","text-2xl font-bold"),k(s,"class","text-gray-500"),k(t,"class","flex flex-col items-center justify-center h-full")},m(i,l){v(i,t,l),p(t,o),p(o,e),p(t,r),p(t,s),p(s,c)},p:g,i:g,o:g,d(i){i&&_(t)}}}function F(n){let t,o;return t=new O({props:{id:n[2],$$slots:{default:[J]},$$scope:{ctx:n}}}),{c(){P(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,r){R(t,e,r),o=!0},p(e,r){const s={};r&4&&(s.id=e[2]),r&64&&(s.$$scope={dirty:r,ctx:e}),t.$set(s)},i(e){o||(u(t.$$.fragment,e),o=!0)},o(e){m(t.$$.fragment,e),o=!1},d(e){y(t,e)}}}function J(n){let t,o;return t=new j({}),{c(){P(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,r){R(t,e,r),o=!0},i(e){o||(u(t.$$.fragment,e),o=!0)},o(e){m(t.$$.fragment,e),o=!1},d(e){y(t,e)}}}function K(n){let t,o,e,r;const s=[F,V],c=[];function i(l,a){return l[2]?0:1}return t=i(n),o=c[t]=s[t](n),{c(){o.c(),e=d()},l(l){o.l(l),e=d()},m(l,a){c[t].m(l,a),v(l,e,a),r=!0},p(l,a){let f=t;t=i(l),t===f?c[t].p(l,a):(D(),m(c[f],1,1,()=>{c[f]=null}),A(),o=c[t],o?o.p(l,a):(o=c[t]=s[t](l),o.c()),u(o,1),o.m(e.parentNode,e))},i(l){r||(u(o),r=!0)},o(l){m(o),r=!1},d(l){c[t].d(l),l&&_(e)}}}function Q(n){let t,o,e=n[0]&&w(n);return{c(){e&&e.c(),t=d()},l(r){e&&e.l(r),t=d()},m(r,s){e&&e.m(r,s),v(r,t,s),o=!0},p(r,[s]){r[0]?e?(e.p(r,s),s&1&&u(e,1)):(e=w(r),e.c(),u(e,1),e.m(t.parentNode,t)):e&&(D(),m(e,1,1,()=>{e=null}),A())},i(r){o||(u(e),o=!0)},o(r){m(e),o=!1},d(r){e&&e.d(r),r&&_(t)}}}const Z=!0;function T(n,t,o){let e,r;C(n,G,a=>o(4,r=a));let{data:s}=t,c=s.rooms,i=!1,l;return S(()=>{o(1,l=H({authEndpoint:z+"/auth"})),o(0,i=!0)}),n.$$set=a=>{"data"in a&&o(3,s=a.data)},n.$$.update=()=>{var a;n.$$.dirty&16&&o(2,e=(a=c.find(f=>f.id===r))==null?void 0:a.room_id),n.$$.dirty&16&&console.log("ROOM ID",r)},[i,l,e,s,r]}class ee extends N{constructor(t){super(),x(this,t,T,Q,B,{data:3})}}export{ee as default,Z as prerender};