1import{j as e}from"./react-vendor-DUhHROXo.js";import{d as n,L as d}from"./router-vendor-Dz9PdDzH.js";import{a5 as c,o as m,a4 as l,x}from"./index-BLtzf0SR.js";import{C as r,a as i}from"./card-9IoFUltb.js";import{B as o}from"./badge-BsE4KYIf.js";import{j as h}from"./useStudioSession-DgiicGBW.js";import{D as u,a as f}from"./CueOverlay-DRANTPxl.js";import{A as p}from"./arrow-left-CRb8P6iH.js";import{R as j}from"./radio-BQgeDg5T.js";import"./useMutation-BXp6BKyU.js";import"./client-DTel1CZI.js";import"./monitor-Cfk1nyiF.js";import"./circle-alert-C1akQxLN.js";import"./refresh-cw-BBiwQZvS.js";import"./camera-BKoNWt3p.js";function T(){const{sessionId:t}=n(),{data:s,isLoading:a}=h(t);return a?e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsx(c,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):s?s.status==="completed"||s.status==="ended"?e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsx(r,{children:e.jsxs(i,{className:"py-12 text-center",children:[e.jsx("p",{className:"text-lg font-medium",children:"Session has ended"}),e.jsx("p",{className:"text-muted-foreground",children:"Thank you for recording. The production team is processing your session."})]})})}):e.jsxs("div",{className:"space-y-4",children:[e.jsx(m,{variant:"ghost",size:"sm",asChild:!0,className:"mb-2",children:e.jsxs(d,{to:"/host/recording-studio",children:[e.jsx(p,{className:"h-4 w-4 mr-1"}),"Back to Recording Studio"]})}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(l,{className:"h-5 w-5 text-primary"}),e.jsx("h1",{className:"text-xl font-display font-bold",children:"Recording Studio"})]}),s.status==="live"&&e.jsxs(o,{className:"bg-red-600 text-white animate-pulse",children:[e.jsx(j,{className:"h-3 w-3 mr-1"}),"LIVE"]}),s.status==="pre_flight"&&e.jsx(o,{className:"bg-yellow-500/20 text-yellow-700",children:"Pre-Flight Check"}),s.status==="scheduled"&&e.jsx(o,{className:"bg-muted text-muted-foreground",children:"Waiting for Producer"})]}),s.host_token&&s.room_url?e.jsxs("div",{className:"rounded-xl overflow-hidden shadow-2xl relative",style:{height:"calc(100vh - 220px)"},children:[e.jsx(u,{roomUrl:s.room_url,token:s.host_token,userName:"Host",startWithDevicesOff:!0}),t&&e.jsx(f,{sessionId:t})]}):e.jsx(r,{children:e.jsxs(i,{className:"py-20 text-center text-muted-foreground",children:[e.jsx(x,{className:"h-12 w-12 mx-auto mb-4 opacity-50"}),e.jsx("p",{children:"Waiting for producer to set up the session..."})]})}),e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Your producer is managing the recording. Just focus on the conversation."})]}):e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsx(r,{children:e.jsxs(i,{className:"py-12 text-center",children:[e.jsx("p",{className:"text-lg font-medium",children:"Session not found"}),e.jsx("p",{className:"text-muted-foreground",children:"This studio session may have ended or the link is invalid."})]})})})}export{T 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.