1import{g as c,b as g,W as b,u,j as e,$ as j,l as y,a0 as v,d as E,w as M,r as p,aD as k,aE as R}from"./index-CaxBhJu0.js";import{m as d}from"./react-error-boundary-wxpx2JxZ.js";import{u as S}from"./index-CSxSih4b.js";import{g as w}from"./getStatusWrapper-C17DSqQ8.js";import{W as C,S as T}from"./StatusWrapper-BZPWdygG.js";import{u as D}from"./useBlocker-RWAnIo7H.js";import{a as A}from"./index-Cz2WPUOc.js";import{C as f}from"./Card-6zdW9GWM.js";import{M as _}from"./Styles-DyqN2UDC.js";import"./Info-DqNE-Ypq.js";import"./Styles-C380mvqE.js";import"./Avatar-Dn9BUUVi.js";import"./Styles-B8VO2ISs.js";import"./navigation-DQZzKtY4.js";import"./Icon-Br2EmGeg.js";import{E as I}from"./404-DaOAGzYr.js";import"./Products-DWKVMOhK.js";import"./guards-C2AGIht4.js";import"./ProductModal-Dx50pIaa.js";import"./Styles-D3lcer9u.js";import"./ResourcesSimplified-DIngxd06.js";import"./FileType-D5PFoMBe.js";import"./Text-dcv4ia4E.js";import"./PrograssBar-CyLqhkKl.js";import"./Badge-DConAtrA.js";import"./PrograssBar2-CbQ2skJz.js";import"./Flex-BDSSzFm3.js";import"./LocalAlert-CxeVPOee.js";import"./SocialMedia-BEoevnZp.js";import"./NoData-Dx2QhUTu.js";import"./Checkbox-BM-Vqi-y.js";import"./onClickOutside-CGAGE5VM.js";import"./index-CE0qxI02.js";import"./Form-CHqbIP-X.js";import"./Live-BpW5UHty.js";import"./useTranslatedLang-DcPyCrWU.js";import"./BottomTabs-uzGRcMof.js";import"./TopbarActions-v5xTc0tA.js";import"./useAgendaRating-BJ9mZhO7.js";import"./Offcanvas-BXE51Gea.js";import"./hls-tFGa1EYI.js";import"./useElementDimensions-DwLLpk1i.js";import"./index-CVglg5_A.js";import"./usePopperHook-DAbHCjjY.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"912900042fb972c90a412c78090d4e6a1de59116"};var o=new r.Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="9ae6bfe3-29e7-4986-8c83-bc2fbdb859b1",r._sentryDebugIdIdentifier="sentry-dbid-9ae6bfe3-29e7-4986-8c83-bc2fbdb859b1")}catch{}})();const W=c.div` 2 position: relative; 3 width: 100%; 4 height: 100%; 5 max-height: 100%; 6 min-height: 100%; 7 background-color: ${({theme:r})=>r.black}; 8`,B=c.div` 9 display: flex; 10 align-items: center; 11 justify-content: center; 12`,F=c.div` 13 display: flex; 14 flex-direction: column; 15 gap: 1rem; 16`,L=({authToken:r})=>{const{t:o}=g(),n=b(),s=u(({event:t})=>t==null?void 0:t.slug),{name:m,profile:i}=u(({attendee:t})=>t),{avatarBig:a}=i??{};return D(o("general.confirm-router"),!0),e.jsx(d,{FallbackComponent:()=>null,children:e.jsx(W,{children:e.jsx(A,{attendee:{name:m,avatar:a},eventSlug:s,authToken:r,withPreview:!1,leaveRoomButtonCallback:()=>n(y.home.full),onError:t=>j.error("Meeting",t)})})})},N=_,P=({meeting:r})=>{const{t:o}=g(),{person:n,externalUrl:s,startingAt:m,endingAt:i}=r,{name:a,avatar:t}=n??{};return e.jsx(d,{FallbackComponent:()=>null,children:e.jsx(B,{children:e.jsx(f,{width:"auto",children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(N,{startingAt:m,endingAt:i}),t&&a&&e.jsx(C,{img:t,text:a}),s&&e.jsx(v.Root,{variant:"primary",mode:"filled",asChild:!0,children:e.jsx("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:o("meetings.join-meeting")})})]})})})})})},U=()=>{const{id:r}=E(),o=M(),{getMeeting:n,crudHandler:s}=S({id:r??""}),{isLoaded:m,isError:i,isLoading:a}=s("getMeeting"),[t,h]=p.useState(null),x=()=>t!=null&&t.externalUrl?e.jsx(P,{meeting:t}):t!=null&&t.authToken?e.jsx(L,{authToken:t.authToken}):null;return p.useEffect(()=>{r&&n({onFinish:l=>{h(l),l!=null&&l.chat&&o(k({chatRoom:l.chat,roomsList:"eventRooms"}))}})},[r]),p.useEffect(()=>()=>{t!=null&&t.chat&&o(R(t.chat))},[t==null?void 0:t.chat]),e.jsx(T,{status:w({isLoading:a,isLoaded:m,isError:i}),error:i==null?void 0:i.message,children:x()})},At=()=>e.jsx(d,{FallbackComponent:I,children:e.jsx(U,{})});export{At as default}; 17//# sourceMappingURL=Meeting-BJJFf7gf.js.map
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.