PageSourceSearch

https://onsigil.com/_next/static/chunks/2248-2b0e5900de83bda0.js

js onsigil.com collected 2026-10-02 01:38:45 UTC 10,306 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2248],{3246:(e,r,t)=>{t.d(r,{V:()=>m});var s=t(95155),n=t(12115),a=t(28570),i=t(47352),l=t(78661),d=t(65707),o=t(17037),c=t(64269);function m(e){let{children:r,footer:t,className:m,embedded:u=!1,scrollKey:x}=e,f=(0,n.useRef)(null),h=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{let e=f.current,r=h.current;if(!e||!r)return;let t=e.querySelector("[data-radix-scroll-area-viewport]");if(!t)return;let s=()=>{t.scrollTop=t.scrollHeight};s();let n=new ResizeObserver(s);return n.observe(r),()=>n.disconnect()},[x]),(0,s.jsxs)("div",{ref:f,className:(0,c.cn)("relative flex h-full min-h-0 overflow-hidden bg-background text-foreground",!u&&"rounded-xl border border-border shadow-sm",m),children:[(0,s.jsxs)("aside",{"aria-hidden":!0,className:"flex w-14 shrink-0 flex-col items-center gap-1 border-r border-sidebar-border bg-sidebar py-2 text-sidebar-foreground",children:[(0,s.jsx)("div",{className:"mb-1 flex size-9 items-center justify-center",children:(0,s.jsx)(d.E,{size:22})}),(0,s.jsx)("span",{className:"inline-flex size-9 items-center justify-center rounded-lg bg-sidebar-accent text-sidebar-accent-foreground",children:(0,s.jsx)(a.A,{className:"size-4"})}),(0,s.jsx)("span",{className:"inline-flex size-9 items-center justify-center rounded-lg text-sidebar-foreground/70",children:(0,s.jsx)(i.A,{className:"size-4"})}),(0,s.jsx)("span",{className:"mt-auto inline-flex size-9 items-center justify-center rounded-lg text-sidebar-foreground/70",children:(0,s.jsx)(l.A,{className:"size-4"})})]}),(0,s.jsxs)("div",{className:"relative z-0 flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",children:[(0,s.jsx)(o.F,{className:"min-h-0 flex-1",children:(0,s.jsx)("div",{ref:h,className:"mx-auto flex w-full min-w-0 max-w-3xl flex-col gap-4 px-4 py-4",children:r})}),t?(0,s.jsx)("div",{className:"shrink-0 space-y-3 border-t border-border bg-background p-4",children:(0,s.jsx)("div",{className:"mx-auto max-w-3xl space-y-2",children:t})}):null]})]})}},3998:(e,r,t)=>{t.d(r,{$:()=>o});var s=t(95155),n=t(12115),a=t(32467),i=t(83101),l=t(64269);let d=(0,i.F)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:opacity-90",secondary:"bg-muted text-foreground hover:bg-accent",ghost:"text-foreground hover:bg-accent",outline:"border border-border bg-background hover:bg-accent"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-6 text-sm",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),o=n.forwardRef((e,r)=>{let{className:t,variant:n,size:i,asChild:o=!1,...c}=e,m=(0,l.cn)(d({variant:n,size:i,className:t}));return o?(0,s.jsx)(a.DX,{className:m,ref:r,...c}):(0,s.jsx)("button",{className:m,ref:r,...c})});o.displayName="Button"},14936:(e,r,t)=>{t.d(r,{p:()=>a});var s=t(95155),n=t(64269);function a(e){let{children:r,className:t}=e;return(0,s.jsx)("span",{className:(0,n.cn)("demo-thinking-shimmer inline-block font-medium",t),children:r})}},17037:(e,r,t)=>{t.d(r,{F:()=>l});var s=t(95155),n=t(12115),a=t(63866),i=t(64269);let l=n.forwardRef((e,r)=>{let{className:t,children:n,...l}=e;return(0,s.jsxs)(a.bL,{ref:r,className:(0,i.cn)("relative overflow-hidden",t),...l,children:[(0,s.jsx)(a.LM,{className:"h-full max-h-[inherit] w-full rounded-[inherit]",children:n}),(0,s.jsx)(d,{}),(0,s.jsx)(a.OK,{})]})});l.displayName=a.bL.displayName;let d=n.forwardRef((e,r)=>{let{className:t,orientation:n="vertical",...l}=e;return(0,s.jsx)(a.VM,{ref:r,orientation:n,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-px",t),...l,children:(0,s.jsx)(a.lr,{className:"relative flex-1 rounded-full bg-border"})})});d.displayName=a.VM.displayName},24284:(e,r,t)=>{t.d(r,{MA:()=>a,kp:()=>l,rE:()=>i});let s="sigil.utm";function n(){try{let e=window.localStorage.getItem(s);if(!e)return{};let r=JSON.parse(e);return{utm_source:"string"==typeof r.utm_source?r.utm_source:void 0,utm_medium:"string"==typeof r.utm_medium?r.utm_medium:void 0,utm_campaign:"string"==typeof r.utm_campaign?r.utm_campaign:void 0}}catch(e){return{}}}function a(e){var r,t,a;let i={utm_source:(null==(r=e.get("utm_source"))?void 0:r.trim())||void 0,utm_medium:(null==(t=e.get("utm_medium"))?void 0:t.trim())||void 0,utm_campaign:(null==(a=e.get("utm_campaign"))?void 0:a.trim())||void 0};if(!i.utm_source&&!i.utm_medium&&!i.utm_campaign)return n();let l={...n(),...i};try{window.localStorage.setItem(s,JSON.stringify(l))}catch(e){}return l}function i(e,r){try{let t=new URL(e,window.location.origin);if(r.utm_source&&t.searchParams.set("utm_source",r.utm_source),r.utm_medium&&t.searchParams.set("utm_medium",r.utm_medium),r.utm_campaign&&t.searchParams.set("utm_campaign",r.utm_campaign),e.startsWith("http://")||e.startsWith("https://"))return t.toString();return"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(r){return e}}function l(e){return{utm_source:"other"===e?"chrome":e,utm_medium:"homepage"}}},61928:(e,r,t)=>{t.d(r,{O:()=>n});var s=t(95155);function n(e){let{children:r}=e;return(0,s.jsx)("div",{className:"flex min-w-0 justify-end",children:(0,s.jsx)("div",{className:"max-w-[min(92%,100%)] min-w-0 rounded-2xl border border-border bg-muted px-4 py-3 text-sm leading-6 break-words text-foreground [overflow-wrap:anywhere]",children:r})})}},62060:(e,r,t)=>{t.d(r,{Y:()=>m});var s=t(95155),n=t(69746),a=t(34073),i=t(23916),l=t(25352),d=t(88977),o=t(14936),c=t(64269);function m(e){let{steps:r,visibleSteps:t,phase:m,open:u=!0}=e;return"typing"===m||"sending"===m||"thinking"===m||0===t?null:(0,s.jsxs)("div",{className:"not-prose w-full min-w-0 max-w-full space-y-2",children:[(0,s.jsxs)("div",{className:"flex w-full items-center gap-2 text-sm text-foreground",children:[(0,s.jsxs)("span",{className:"flex flex-1 items-center gap-2 text-left",children:["working"===m||"waiting"===m?(0,s.jsx)(n.A,{className:"size-4 shrink-0 animate-spin text-muted-foreground","aria-hidden":!0}):(0,s.jsx)(a.A,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":!0}),(0,s.jsx)("span",{className:"font-medium",children:"Actions"}),(0,s.jsx)("span",{className:"rounded-full border border-border bg-muted/40 px-1.5 py-0 text-[10px] font-medium text-muted-foreground tabular-nums",children:t}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"done"===m?"Done":"waiting"===m?"Awaiting approval":"In progress"})]}
1),(0,s.jsx)(i.A,{className:(0,c.cn)("size-4 text-muted-foreground transition-transform",u&&"rotate-180"),"aria-hidden":!0})]}),u?(0,s.jsx)("div",{className:"mt-2 space-y-3 pr-0",children:r.map((e,r)=>{if(r>=t)return null;let a=r===t-1,i=!a||"waiting"===m||"done"===m,u=a&&"working"===m;return(0,s.jsxs)("div",{className:(0,c.cn)("flex gap-2 text-sm",i?"text-muted-foreground":"text-foreground"),children:[(0,s.jsxs)("div",{className:"relative mt-0.5",children:[u?(0,s.jsx)(n.A,{className:"size-4 animate-spin","aria-hidden":!0}):i?(0,s.jsx)(l.A,{className:"size-4 text-emerald-500","aria-hidden":!0}):(0,s.jsx)(d.A,{className:"size-4","aria-hidden":!0}),r<t-1||"waiting"===m||"done"===m?(0,s.jsx)("div",{className:"absolute top-7 bottom-0 left-1/2 -mx-px w-px bg-border"}):null]}),(0,s.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-2 overflow-hidden",children:[(0,s.jsx)("span",{className:"min-w-0",children:u?(0,s.jsx)(o.p,{children:e}):e}),a&&"waiting"===m?(0,s.jsx)("span",{className:"rounded-full border border-border/80 px-1.5 py-0 text-[10px] font-medium text-muted-foreground",children:"Awaiting approval"}):null]})]},e)})}):null]})}},64269:(e,r,t)=>{t.d(r,{cn:()=>a});var s=t(2821),n=t(75889);function a(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,n.QP)((0,s.$)(r))}},65707:(e,r,t)=>{t.d(r,{E:()=>a});var s=t(95155),n=t(64269);function a(e){let{size:r=24,className:t,alt:a="",...i}=e;return(0,s.jsxs)("span",{className:(0,n.cn)("relative inline-flex shrink-0 items-center justify-center",t),style:{width:r,height:r},"aria-hidden":!a||void 0,...i,children:[(0,s.jsx)("img",{src:"/sigil-glyph-black.svg",alt:a,width:r,height:r,className:"h-full w-full object-contain dark:hidden"}),(0,s.jsx)("img",{src:"/sigil-glyph-white.svg",alt:a,width:r,height:r,className:"hidden h-full w-full object-contain dark:block"})]})}},94185:(e,r,t)=>{t.d(r,{I:()=>l});var s=t(95155),n=t(28570),a=t(40209),i=t(64269);function l(e){let{placeholder:r="Send follow-up...",value:t,caret:l=!1,sending:d=!1,className:o}=e,c="string"==typeof t&&t.length>0;return(0,s.jsx)("div",{className:(0,i.cn)("relative",o),children:(0,s.jsxs)("div",{className:(0,i.cn)("rounded-[1.75rem] border border-border bg-composer p-3 text-composer-foreground shadow-sm transition-shadow",d&&"ring-2 ring-primary/40"),children:[(0,s.jsxs)("div",{className:(0,i.cn)("min-h-[4.5rem] w-full whitespace-pre-wrap px-1 text-sm leading-6",c?"text-foreground":"text-muted-foreground"),children:[c?t:r,l?(0,s.jsx)("span",{"aria-hidden":!0,className:"ml-0.5 inline-block h-[1.05em] w-[2px] translate-y-[2px] animate-pulse bg-foreground align-middle"}):null]}),(0,s.jsxs)("div",{className:"flex items-center justify-between px-1 pt-1",children:[(0,s.jsx)("div",{className:"flex items-center gap-1",children:(0,s.jsx)("span",{className:"inline-flex size-8 items-center justify-center rounded-full text-muted-foreground",children:(0,s.jsx)(n.A,{className:"size-4","aria-hidden":!0})})}),(0,s.jsx)("span",{className:(0,i.cn)("inline-flex size-8 items-center justify-center rounded-full transition-transform",d?"scale-110 bg-primary text-primary-foreground":c?"bg-primary text-primary-foreground":"bg-primary/40 text-primary-foreground/80"),children:(0,s.jsx)(a.A,{className:"size-4","aria-hidden":!0})})]})]})})}},97915:(e,r,t)=>{t.d(r,{D:()=>n});var s=t(95155);function n(e){let{lines:r}=e;return(0,s.jsx)("div",{className:"w-full min-w-0 max-w-full space-y-0",children:(0,s.jsx)("div",{className:"demo-chat-markdown w-full min-w-0 max-w-full space-y-3 text-sm leading-6 text-foreground",children:r.map(e=>(0,s.jsx)("p",{children:e},e))})})}}}]);

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.