PageSourceSearch

https://static.inworld.ai/0addc7b7/static/js/GuestDocsPage.BQ1kP9nM.js

js inworld.ai collected 2026-09-24 08:37:08 UTC 2,506 bytes, 1 lines download raw bytes

1import{a as l,j as e}from"./vendor-core.6lta8LCj.js";import{bg as b,bh as p,bi as w,bj as S,d as k,bk as j}from"./App.DVmysEmP.js";import{H as D,Q as y,J as x,B as g,L as E,az as I,bb as C,a0 as h,F as R,b as v,c as H}from"./bootstrap.Yl9dpo2n.js";import{u as M,E as A,d as F,M as L}from"./docsMarkdownDownload.Dlc7psIY.js";import{c as P,y as G}from"./vendor-mui-x.CmnfcHjQ.js";import"./vendor-firebase.dbYXL2Q0.js";const T=({pagePath:t,onSignIn:u})=>{const c=x(),[r,d]=l.useState(0),[s,i]=l.useState(null);l.useEffect(()=>{const o=new AbortController;return i(null),F(t,{accessScope:"public",signal:o.signal}).then(()=>{o.signal.aborted||c(p(`/${t}`),{replace:!0})}).catch(n=>{o.signal.aborted||i(n)}),()=>o.abort()},[t,r,c]);const a=s instanceof L&&[401,403].includes(s.status);return e.jsxs(g,{className:"GuestMarkdownDownload",sx:{p:4},role:"status",children:[e.jsx(G,{children:s?a?"Sign in to check access to this page.":"Could not download this page.":"Preparing Markdown download…"}),s&&e.jsx(h,{intent:"ghost","aria-label":"Retry Markdown download",onClick:()=>d(o=>o+1),children:"Try again"}),a&&e.jsx(h,{intent:"ghost","aria-label":"Sign in to download",onClick:u,children:"Sign in"})]})},J=()=>{const t=P(),{flags:u,ready:c}=M(),{"*":r}=D(),{search:d,hash:s}=y(),i=x(),[a,o]=l.useState(null),n=l.useCallback((f=w(r,d,s))=>{i(b(p(f)))},[i,r,d,s]),m=S(r);return e.jsxs(g,{className:`GuestDocsPage docs-appearance-${t.palette.mode}`,sx:{display:"flex",flexDirection:"column",height:"100dvh",bgcolor:"var(--docs-page)"},children:[e.jsxs(g,{component:"header",sx:{display:"flex",alignItems:"center",gap:2,px:2,flexShrink:0,height:k,borderBottom:"1px solid",borderColor:"divider"},children:[e.jsx(E,{component:I,to:"/docs/introduction","aria-label":"Inworld Docs home",sx:{color:"text.primary",display:"flex"},children:e.jsx(C,{width:20,height:28})}),e.jsx(j,{onSearch:()=>a==null?void 0:a.openSearch(),searchAvailable:!m&&!!a}),e.jsx(h,{intent:"ghost","aria-label":"Sign in to get help",onClick:()=>n(),startIcon:e.jsx(v,{icon:H.faMessage}),sx:{whiteSpace:"nowrap",flexShrink:0,display:{xs:"none",sm:"inline-flex"},fontSize:R.sm},children:"Get Help"}),e.jsx(h,{"aria-label":"Sign in",onClick:()=>n(),intent:"primary",sx:{whiteSpace:"nowrap",flexShrink:0},children:"Sign in"})]}),e.jsx(g,{sx:{flex:1,minHeight:0,overflow:"hidden"},children:m?e.jsx(T,{pagePath:m,onSignIn:()=>n()}):e.jsx(A,{guest:!0,featureFlags:u,featureFlagsReady:c,onHeaderActionsChange:o,onSignIn:n})})]})};export{J 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.