PageSourceSearch

https://cleanroom-production.up.railway.app/assets/WidgetLayout-NWWB2SXI-cUmY1p2v.js

js cleanroom-production.up.railway.app collected 2026-10-03 12:11:39 UTC 2,207 bytes, 1 lines download raw bytes

1import{S as d}from"./chunk-TCAVLWYL-DVhtkE3q.js";import{c as x,r,j as e,C as f,I as p,f as b,e as h}from"./index-DJ1uWGdt.js";import"./chunk-OZTNBS6V-CLmmFX7d.js";function w({className:u}){const m=x("BrandLogo"),[a,o]=r.useState(!1),i=r.useRef(null),s=r.useRef(null),l=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=n=>{var c;n.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&o(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a]),r.useEffect(()=>{var t,n;if(a){l.current=!0,(t=s.current)==null||t.focus();return}l.current&&((n=i.current)==null||n.focus(),l.current=!1)},[a]),e.jsxs("div",{className:h("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(f,{children:e.jsx(d,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:b({variant:"ghost",size:"icon"}),onClick:()=>o(!1),children:e.jsx(p,{name:"xmark"})})})})}):null,e.jsx("button",{ref:i,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>o(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(m,{className:"size-6"})})]})}export{w as WidgetLayout};

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.