PageSourceSearch

https://spacetimedb.com/assets/ChatButton-Be5A9LB7.js

js spacetimedb.com collected 2026-10-03 19:25:53 UTC 3,805 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-ClGgD7v-.js","assets/preload-helper-oqmhCI76.js","assets/jsx-runtime-DIRWX-0_.js","assets/index-Cko8AjFI.js"])))=>i.map(i=>d[i]);
2import{_ as e}from"./preload-helper-oqmhCI76.js";import{r as t,j as n}from"./jsx-runtime-DIRWX-0_.js";import{u as r}from"./index-Xcr2TsOA.js";const o="HLg-TW_icons",s="HLg-TW_trigger",a="'Inter Variable', sans-serif",i="'Source Code Pro Variable', monospace",c={green:"#4cf490",white:"#f4f6fc",n1:"#e6e9f0",n2:"#ced3e0",n3:"#b6c0cf",n4:"#6f7987",n5:"#363840",n6:"#202126",n7:"#050505",shade2:"#0d0d0e",border:"",text:"",bgHover:"",bgSelected:""};c.border=c.n6,c.text=c.n1,c.bgHover=c.n6,c.bgSelected=c.n5;const d={apiKey:"13504c49fb56b7c09a5ea0bcd68c2b55857661be4d6d311b",integrationId:"clpd739q2000is601tgjrbim5",organizationId:"org_qV3ULrf3cTK1A8O7",organizationDisplayName:"Spacetime",primaryBrandColor:c.green,theme:{colorMode:{forcedColorMode:"dark"},tokens:{fonts:{heading:a,body:a,mono:i},colors:{"grayDark.50":c.white,"grayDark.100":c.n1,"grayDark.200":c.n2,"grayDark.300":c.n3,"grayDark.400":c.n4,"grayDark.500":c.n5,"grayDark.600":c.n6,"grayDark.700":c.shade2,"grayDark.800":c.shade2,"grayDark.900":c.n7}}}};function l(){const a=r(),[i,c]=t.useState({preferences:!1,statistics:!1,marketing:!1}),[l,f]=t.useState(!1),[h,u]=t.useState();t.useEffect(()=>{"Cookiebot"in window?window.addEventListener("CookiebotOnConsentReady",()=>{c(window.Cookiebot.consent)}):c({preferences:!0,statistics:!0,marketing:!0})},[]),d.optOutAnalyticalCookies=!i.statistics,d.optOutFunctionalCookies=!i.preferences;const T=t.useCallback(()=>{f(!1)},[]);function p(){f(!0),async function(){if(!h)try{const{InkeepCustomTrigger:t}=await e(async()=>{const{InkeepCustomTrigger:e}=await import("./index-ClGgD7v-.js");return{InkeepCustomTrigger:e}},__vite__mapDeps([0,1,2,3]));u(()=>t)}catch(t){console.error("Failed to load Custom Trigger:",t)}}()}function k(e){"/"===e.key&&e.metaKey&&p()}return t.useEffect(()=>(document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)),[k]),!a.pathname.includes("docs/ai-chat")&&n.jsxs(n.Fragment,{children:[n.jsxs("button",{className:s,onClick:p,onPointerEnter:function(){e(()=>import("./index-ClGgD7v-.js"),__vite__mapDeps([0,1,2,3]))},children:[n.jsxs("div",{className:o,children:[n.jsx(g,{})," ",n.jsxs("span",{style:{display:"flex",alignItems:"center"},children:[n.jsx(m,{})," /"]})]}),"Ask anything"]}),h&&n.jsx(h,{baseSettings:d,isOpen:l,onClose:T,modalSettings:{defaultView:"AI_CHAT"}})]})}function g(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",color:"#9FFDB5",viewBox:"0 0 512 512",children:n.jsx("path",{fill:"currentColor",d:"m208 512l-52.38-139.62L16 320l139.62-52.38L208 128l52.38 139.62L400 320l-139.62 52.38ZM88 176l-23.57-64.43L0 88l64.43-23.57L88 0l23.57 64.43L176 88l-64.43 23.57Zm312 80l-31.11-80.89L288 144l80.89-31.11L400 32l31.11 80.89L512 144l-80.89 31.11Z"})})}function m(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M6.5 21q-1.45 0-2.475-1.025T3 17.5t1.025-2.475T6.5 14H8v-4H6.5q-1.45 0-2.475-1.025T3 6.5t1.025-2.475T6.5 3t2.475 1.025T10 6.5V8h4V6.5q0-1.45 1.025-2.475T17.5 3t2.475 1.025T21 6.5t-1.025 2.475T17.5 10H16v4h1.5q1.45 0 2.475 1.025T21 17.5t-1.025 2.475T17.5 21t-2.475-1.025T14 17.5V16h-4v1.5q0 1.45-1.025 2.475T6.5 21m0-2q.625 0 1.063-.437T8 17.5V16H6.5q-.625 0-1.062.438T5 17.5t.438 1.063T6.5 19m11 0q.625 0 1.063-.437T19 17.5t-.437-1.062T17.5 16H16v1.5q0 .625.438 1.063T17.5 19M10 14h4v-4h-4zM6.5 8H8V6.5q0-.625-.437-1.062T6.5 5t-1.062.438T5 6.5t.438 1.063T6.5 8M16 8h1.5q.625 0 1.063-.437T19 6.5t-.437-1.062T17.5 5t-1.062.438T16 6.5z"})})}export{l as ChatButton,d as baseSettings};

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.