PageSourceSearch

https://app.paper.co/js/index.fs8apON2.js

js paper.co collected 2026-09-24 09:14:14 UTC 2,223 bytes, 2 lines download raw bytes

1import"./libs-vue.Cm6uuXgL.js";import{l as k}from"./libs-@paper-co/web-toolkit.13DCvk5B.js";import{useRoute as y}from"./libs-vue-router.D_VOtZj2.js";import{useStore as w}from"./libs-vuex.CGmN1rAv.js";import{jsCookie as g}from"./libs-js-cookie.B4X9cT4E.js";import{defineComponent as b,computed as s,onMounted as _,openBlock as T,createElementBlock as j}from"./libs-@vue/runtime-core.DuueAziv.js";import{ref as l}from"./libs-@vue/reactivity.CL8OCaPf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8660d564-7121-451f-bb87-260c1e12c49f",e._sentryDebugIdIdentifier="sentry-dbid-8660d564-7121-451f-bb87-260c1e12c49f")}catch{}})();{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=Object.assign({},t._sentryModuleMetadata[new t.Error().stack],{dsn:"https://[email protected]/6688884"})}const E=["^live-kit-url","^school-name","^token"],C=b({__name:"index",setup(e){const o=y(),i=w(),a=l(void 0),c=l(void 0),f="https://grow-classroom-web.paper.co",r=s(()=>o.path==="/tutor/grow-ai"||o.path==="/superuser/grow/grow-ai"),p=s(()=>r.value?a.value:void 0),m=s(()=>r.value?c.value:void 0),v=s(()=>r.value?void 0:i.state.currentUser?.school?.name),h=async()=>{a.value=void 0,c.value=void 0;const n=g.get("access_token");try{const d=await(await fetch(`${f}/api/livekit-monitor/join`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({roomName:o.query.room,participantName:`Tutor-${i.state.currentUser?.id}`,metadata:{role:"observer"},permissions:{canPublish:!1,canPublishData:!0,canSubscribe:!0}})})).json();a.value=d.token,c.value=d.url}catch(u){k(u)}};return _(()=>{r.value&&h(),setTimeout(()=>{const n=document.getElementById("launcher");n&&(n.style.display="none")},1e3)}),(n,u)=>(T(),j("grow-ai-mfe",{class:"block h-[100vh]","^live-kit-url":m.value,"^school-name":v.value,"^token":p.value},null,8,E))}});export{C as default};
2//# sourceMappingURL=index.fs8apON2.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.