PageSourceSearch

https://member.arndtgerhardts.com/app/_next/static/chunks/5185.081b03ea971e1c0e.js

js arndtgerhardts.com collected 2026-09-25 03:34:19 UTC 11,158 bytes, 2 lines download raw bytes

1try{let e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2992977-22a6-4817-a001-5ebff253cb1c",e._sentryDebugIdIdentifier="sentry-dbid-f2992977-22a6-4817-a001-5ebff253cb1c")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5185],{13816:(e,t,r)=>{r.d(t,{FV:()=>d,Io:()=>u,Rv:()=>l,Zu:()=>c,j3:()=>v,vi:()=>m,xK:()=>o});var i=r(69884),n=r(22870);let a=/\/live\/([^/?#]+)\/(?:studio|recap)\/?/,s=/\/customer\/live\/([^/?#]+)\/?/;function o(e){let t=e.query.streamSessionId;if("string"==typeof t&&t)return t;if(Array.isArray(t)&&t[0])return t[0];let r=e.query.streamId;if("string"==typeof r&&r)return r;if(Array.isArray(r)&&r[0])return r[0];let i=e.asPath.match(a)??e.asPath.match(s);return i?.[1]}function l(e){let t=e.query.startNow;return"1"===t||"true"===t}function c(e){return"1"===e.query.recordOnStart}function d(e,t){let r={...e.query};return t?r.recordOnStart="1":delete r.recordOnStart,e.replace({pathname:e.pathname,query:r},void 0,{shallow:!0})}function u(e,t){let r=`/live/${e}/studio/`,i=new URLSearchParams;t?.startNow&&i.set("startNow","1"),t?.recordOnStart&&i.set("recordOnStart","1");let n=i.toString();return n?`${r}?${n}`:r}let m=e=>i.C.customerLive.replace("[streamId]",encodeURIComponent(e)),v=e=>{var t;return(t=m(e),new URL((0,n.ZM)(t),window.location.origin)).toString()}},20231:(e,t,r)=>{r.d(t,{U:()=>x});var i=r(81495),n=r(48711),a=r(78028),s=r(22870),o=r(90154),l=r(10881);let c=()=>{let e=l.A.getUser()?.portal?.id;if(null!=e)return String(e);throw Error("Portal session required — sign in to use Live Studio.")},d=e=>{if(!(0,n.F0)(e)||!e.response)return e;let t=(e=>{if("string"==typeof e)return e;if(null==e)return"";try{return JSON.stringify(e)}catch{return String(e)}})(e.response.data);return 401===e.response.status?Error("Unauthorized — the portal session is missing or expired."):t.trimStart().startsWith("<!DOCTYPE")||t.trimStart().startsWith("<html")?Error("Request hit the Next.js app instead of streaming-service. Set NEXT_PUBLIC_STREAMING_SERVICE_URL=https://live.<host> (with CORS_ORIGINS on the server) or fix STREAMING_SERVICE_PROXY_URL in .env.local and restart npm run dev."):Error(`streaming-service ${e.response.status}: ${t.slice(0,300)}`)},u=e=>{if(!(0,n.F0)(e)||!e.response)return e;let t=e.response.data;return Error("object"==typeof t&&null!==t&&"error"in t?String(t.error):`streaming-service ${e.response.status}`)},m=e=>{let t=a.A.create({withCredentials:!0,baseURL:o.A.streamingServiceUrl?.replace(/\/+$/,"")}),r="control"===e,i=r?d:u;return t.interceptors.request.use(e=>{var t;let i,n=l.A.getUserToken();if(e.headers.Authorization=`Bearer ${n}`,i=(t=e.url||"").startsWith("/")?t:`/${t}`,e.url=o.A.streamingServiceUrl&&"same-origin"!==o.A.streamingServiceUrl||i.endsWith("/")?i:`${i}/`,e.baseURL=o.A.streamingServiceUrl?.replace(/\/+$/,""),r){e.headers["x-mentor-id"]=c();let t=o.A.streamingControlSecret||"";t&&(e.headers["x-service-secret"]=t)}return e}),t.interceptors.response.use(e=>e,e=>Promise.reject(i(e))),t},v=m("control"),p=m("viewer"),y=(e,t)=>`${(()=>{let e=o.A.streamingWsUrl||o.A.streamingServiceUrl;if(e&&"same-origin"!==e)return e.replace(/^http/,"ws").replace(/\/+$/,"");{let e="https:"===window.location.protocol?"wss:":"ws:";return`${e}//${window.location.host}${(0,s.ZM)("/")}`.replace(/\/+$/,"")}})()}${e}?${t.toString()}`,h=e=>`/v1/livekit/rooms/${encodeURIComponent(e)}`,g=(e,t)=>`/v1/livekit/rooms/${encodeURIComponent(e)}/participants/${encodeURIComponent(t)}`,w=e=>`/v1/livekit/invites/${encodeURIComponent(e)}`,f="/v1/live_streams",S=e=>`/v1/live_streams/${encodeURIComponent(e)}`,I=e=>`/v1/stream-sessions/${encodeURIComponent(e)}`,x={createLivekitRoom:async e=>{let t={displayName:e.displayName};e.title&&(t.title=e.title),(0,i.Yf)(e.streamSessionId)&&(t.streamSessionId=e.streamSessionId);let{data:r}=await v.post("/v1/livekit/rooms",t);return r},stopLivekitRoom:async e=>{let{data:t}=await v.post(`${h(e)}/stop`);return t},stopStreamSession:async e=>{let{data:t}=await v.post(`${I(e)}/stop`);return t},getStreamSession:async e=>{let{data:t}=await v.get(I(e));return t},startRecording:async e=>{let{data:t}=await v.post(`${I(e)}/recording/start`);return t},stopRecording:async e=>{let{data:t}=await v.post(`${I(e)}/recording/stop`);return t},createLivekitInvite:async e=>{let{data:t}=await v.post(`${h(e.roomName)}/invites`,{displayName:e.displayName,ttlMs:e.ttlMs}
1);return t},grantScreenShare:async e=>{let{data:t}=await v.post(`${g(e.roomName,e.identity)}/screenshare`,{allow:e.allow});return t},setParticipantMuted:async e=>{let{data:t}=await v.post(`${g(e.roomName,e.identity)}/mute`,{source:e.source,muted:e.muted});return t},removeParticipant:async e=>{let{data:t}=await v.post(`${g(e.roomName,e.identity)}/remove`);return t},setScreenShareMode:async e=>{let{data:t}=await v.post(`${h(e.roomName)}/screenshare-mode`,{mode:e.mode});return t},getLiveStreamRecap:async e=>{let t,{data:r}=await v.get((t=e,`/v1/live_stream/${encodeURIComponent(t)}/recap`));return r},listLiveStreams:async()=>{let{data:e}=await v.get(f);return e},scheduleLiveStream:async e=>{let{data:t}=await v.post(f,e);return t},updateLiveStream:async(e,t)=>{let{data:r}=await v.patch(S(e),t);return r},getLiveStream:async e=>{let{data:t}=await v.get(S(e));return t},listPublicLiveStreams:async()=>{let{data:e}=await p.get("/v1/live/streams");return e.items??[]},buildAudienceStudioWsUrl:e=>{var t;let r,i;return t=`${h(e)}/audience/studio`,r=new URLSearchParams({mentorId:c()}),(i=o.A.streamingControlSecret||"")&&r.set("secret",i),y(t,r)},buildAudienceViewerWsUrl:(e,t)=>y(`${h(e)}/audience`,new URLSearchParams({displayName:t})),peekLivekitInvite:async e=>{let{data:t}=await p.get(w(e));return t},acceptLivekitInvite:async e=>{let{data:t}=await p.post(`${w(e)}/accept`);return t}}},30407:(e,t,r)=>{r.d(t,{Gg:()=>o,xC:()=>s});var i=r(74359),n=r(53497),a=r(20231);let s=e=>{let{data:t,isLoading:r,isError:s,error:o,refetch:l}=(0,i.I)({queryKey:n.t.publicList.queryKey,queryFn:a.U.listPublicLiveStreams,select:t=>t.find(t=>t.id===e),enabled:!!e,refetchInterval:1e4});return{stream:t,isStreamLoading:r,isStreamError:s,streamError:o,refetchStream:l}},o=e=>{let{data:t,isLoading:r,isError:s,error:o}=(0,i.I)({queryKey:n.t.publicList.queryKey,queryFn:a.U.listPublicLiveStreams,select:t=>t.find(t=>t.roomName===e),enabled:!!e,refetchInterval:1e4});return{stream:t,isStreamLoading:r,isStreamError:s,streamError:o}}},51214:(e,t,r)=>{r.r(t),r.d(t,{StudentLiveInviteViewer:()=>L});var i=r(37876),n=r(14232),a=r(89099),s=r(79378),o=r(66950),l=r(22208),c=r(19610),d=r(18664),u=r(62902),m=r(31941),v=r(64713),p=r(35126),y=r(40241),h=r(85189),g=r(30407),w=r(48569),f=r(41093),S=r(69884),I=r(22870),x=r(30801);let A=(0,v.Ay)(o.A)(({theme:e})=>({display:"grid",placeItems:"center",width:72,height:72,borderRadius:"50%",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText})),L=({inviteId:e})=>{let t=(0,a.useRouter)(),{user:r}=(0,h.A)(),{t:v}=(0,f.o)("translation",{keyPrefix:"PAGE.LIVE.viewer"}),L=r?.fullName?.trim()||r?.firstName?.trim()||v("common.student"),b=(0,w.T)({displayName:L,initialInviteId:e,enabled:!!e}),{stream:$,isStreamError:R}=(0,g.Gg)(b.participant?.roomName),U=b.participant?$??{id:b.participant.roomName,title:v("common.liveStream"),roomName:b.participant.roomName,playbackUrl:"",viewerCount:1,startedAt:null,hlsReady:!1}:void 0,C=()=>window.location.assign((0,I.ZM)(S.C.customerLiveDirectory));return((0,n.useEffect)(()=>{if(!$)return;let e=`${t.basePath}/customer/live/${encodeURIComponent($.id)}`;window.history.replaceState(window.history.state,"",e)},[t.basePath,$]),e)?U&&b.participant?(0,i.jsxs)(u.A,{spacing:4,children:[R&&(0,i.jsx)(s.A,{severity:"info",children:v("invite.detailsUnavailable")}),(0,i.jsx)(x.StudentLiveViewer,{stream:U,initialParticipant:b.participant,showShare:!1},U.id)]}):b.error?(0,i.jsx)(s.A,{severity:"warning",action:(0,i.jsx)(l.A,{variant:"text",color:"warning",size:"small",onClick:C,children:v("common.back")}),children:b.error}):b.invite?(0,i.jsx)(c.A,{sx:{maxWidth:620,mx:"auto",overflow:"hidden"},"data-sentry-element":"Card","data-sentry-component":"StudentLiveInviteViewer","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:(0,i.jsxs)(u.A,{alignItems:"center",spacing:4,sx:{p:{xs:6,sm:8},textAlign:"center"},"data-sentry-element":"Stack","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:[(0,i.jsx)(A,{"data-sentry-element":"InviteIcon","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:(0,i.jsx)(p.A,{icon:"tabler:video-plus",fontSize:34,"data-sentry-element":"Icon","data-sentry-source-file":"StudentLiveInviteViewer.tsx"})}),(0,i.jsxs)(o.A,{"data-sentry-element":"Box","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:[(0,i.jsx)(m.A,{variant:"h4",sx:{fontWeight:700},"data-sentry-element":"Typography","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:v("invite.joinLiveStageTitle")}),(0,i.jsx)(m.A,{variant:"body1",sx:{color:"text.secondary",mt:2},"data-sentry-element":"Typography","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:v("invite.invitedAs",{name:b.invite.displayName})})]}),(0,i.jsx)(d.A,{variant:"outlined",icon:(0,i.jsx)(p.A,{icon:"tabler:clock",fontSize:16}),label:v("common.expiresAt",{time:new Date(b.invite.expiresAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),"data-sentry-element":"Chip","data-sentry-source-file":"StudentLiveInviteViewer.tsx"}),(0,i.jsxs)(u.A,{direction:{xs:"column-reverse",sm:"row"},spacing:3,sx:{width:"100%"},"data-sentry-element":"Stack","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:[(0,i.jsx)(l.A,{fullWidth:!0,variant:"outlined",onClick:()=>{b.declineInvite(),C()},disabled:b.isAcceptingInvite,"data-sentry-element":"Button","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:v("invite.decline")}),(0,i.jsx)(l.A,{fullWidth:!0,variant:"contained",onClick:b.acceptInvite,disabled:b.isAcceptingInvite,startIcon:(0,i.jsx)(p.A,{icon:"tabler:video",fontSize:18}),"data-sentry-element":"Button","data-sentry-source-file":"StudentLiveInviteViewer.tsx",children:v(b.isAcceptingInvite?"common.joining":"common.joinWithCameraAndMic")})]})]})}):(0,i.jsx)(y.A,{fullHeight:!1}):(0,i.jsx)(s.A,{severity:"warning",action:(0,i.jsx)(l.A,{variant:"text",color:"warning",size:"small",onClick:C,children:v("common.back")}),children:v("invite.missingOrInvalid")})}},53497:(e,t,r)=>{r.d(t,{t:()=>i});let i=(0,r(84961).DY)("liveStreams",{list:null,publicList:null,detail
1:e=>({queryKey:[e]}),recording:e=>({queryKey:[e]}),recap:e=>({queryKey:[e]}),invite:e=>({queryKey:[e]})})},81495:(e,t,r)=>{r.d(t,{KS:()=>o,MM:()=>l,Yf:()=>s});let i=["awaiting_publisher","live","recording"],n=["stopped","failed","ready-for-agent"],a=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,s=e=>!!(e&&a.test(e));function o(e){return i.includes(e)}function l(e){return o(e)?"live":n.includes(e)?"completed":"scheduled"}}}]);
2//# sourceMappingURL=5185.081b03ea971e1c0e.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.