PageSourceSearch

https://static.linear.app/web/_next/static/chunks/DyeFrDgl.js

js linear.app collected 2026-10-01 07:39:27 UTC 4,333 bytes, 1 lines download raw bytes

1var e,s,t,o,r,a,i,l,n,m,d,c;import{o as u}from"./C_JJxWoe.js";import{Dr as h,Vr as p,Zt as j}from"./BjWD_pN5.js";import{n as g}from"./CHuT9-AF.js";import{d as f,o as x,t as v}from"./CZ0eLTaL.js";import{a as y}from"./DM-diW2I.js";import{n as T}from"./DiPLRuyZ.js";import{t as b}from"./UYzAHlLv.js";import{t as C}from"./CtKFdeFl.js";import{t as k}from"./hIPNwcbx.js";import{n as I,t as N}from"./Bwu4cnIi.js";import{t as S}from"./C3lgXWW2.js";import{t as w}from"./DJFFhabX.js";import{t as W}from"./lbgwXGK1.js";import{t as z}from"./DaPEfpY32.js";import{t as J}from"./4pslD9UO2.js";import{t as V}from"./D6APSEOU2.js";import{t as F}from"./BVrvlLd62.js";import{n as G}from"./CceDOTbD2.js";import{c as X,t as _}from"./DL-PGpx32.js";import{i as B}from"./6ju4Taes.js";function D(){const{setTheme:e,resolvedTheme:s}=y(),t=F(s);T("t",()=>l(e,t))}function O(){const{setTheme:e,resolvedTheme:s}=y(),o=j();return X(new _({id:"agents-theme-toggle",name:"dark"===s?"Change theme to light":"Change theme to dark",keywords:"switch theme toggle dark light mode",group:B,metadata:{icon:"light"===s?(0,t.jsx)(r,{}):(0,t.jsx)(C,{icon:"Sun"})},applicable:()=>Boolean(o?.startsWith("/blog/")),priority:99999999,execute(){e("dark"===s?"light":"dark")}})),D(),null}function A(){const{resolvedTheme:e,setTheme:s}=y(),a=b(),i=j();return a&&g.system.some(e=>e.test(String(i)))?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(W.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.2},children:(0,t.jsx)(J,{title:(0,t.jsxs)(t.Fragment,{children:["Toggle theme ",(0,t.jsx)(G,{size:"small",children:"T"})]}),side:"top",sideOffset:8,delayDuration:100,asChild:!0,children:(0,t.jsxs)(o,{value:e?[e]:[],onValueChange:e=>{e[0]&&s(e[0])},className:n,children:[(0,t.jsxs)(N,{value:"dark",className:m,children:["dark"===e&&(0,t.jsx)(W.span,{layoutId:"theme-switcher-bg",className:d,transition:{type:"spring",duration:.3,bounce:.15}}),(0,t.jsx)(r,{color:"currentColor"})]}),(0,t.jsxs)(N,{value:"light",className:m,children:["light"===e&&(0,t.jsx)(W.span,{layoutId:"theme-switcher-bg",className:d,transition:{type:"spring",duration:.3,bounce:.15}}),(0,t.jsx)(C,{icon:"Sun",color:"currentColor"})]})]})})}),(0,t.jsx)(O,{})]}):null}e=u(p(),1),s=e.createContext(void 0),t=h(),o=e.forwardRef(function(o,r){const{defaultValue:a,disabled:i=!1,loopFocus:l=!0,onValueChange:n,orientation:m="horizontal",multiple:d=!1,value:c,className:u,render:h,style:p,...j}=o,g=w(!0),y=e.useContext(s),T=a??f,b=void 0!==c||void 0!==a,C=(g?.disabled??!1)||(y?.disabled??!1)||i,[N,W]=k({controlled:c,default:T,name:"ToggleGroup",state:"value"}),z=x((e,s,t)=>{let o;d?(o=N.slice(),s?o.push(e):o.splice(N.indexOf(e),1)):o=s?[e]:[],n?.(o,t),t.isCanceled||W(o)}),J={disabled:C,multiple:d,orientation:m},V=e.useMemo(()=>({disabled:C,setGroupValue:z,value:N,isValueInitialized:b}),[C,z,N,b]),F={role:"group"},G=v("div",o,{enabled:Boolean(g),state:J,ref:r,props:[F,j]});return(0,t.jsx)(I.Provider,{value:V,children:g?G:(0,t.jsx)(S,{render:h,className:u,style:p,state:J,refs:[r],props:[F,j],loopFocus:l,enableHomeAndEndKeys:!0,orientation:m})})}),r=e=>(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:(0,t.jsx)("path",{d:"M11.39 10.106c-3.271 0-5.363-2.053-5.363-5.327 0-.68.163-1.644.38-2.152a.7.7 0 0 0 .063-.284A.344.344 0 0 0 6.115 2c-.064 0-.204.014-.345.068-2.236.893-3.737 3.296-3.737 5.839C2.033 11.459 4.742 14 8.29 14c2.604 0 4.865-1.579 5.616-3.55.048-.14.06-.281.06-.339a.367.367 0 0 0-.354-.371 1 1 0 0 0-.257.047 6.7 6.7 0 0 1-1.964.32"})}),a=(s,t)=>{const o=b();e.useEffect(()=>{if(o)return s()},[...t||[],o])},i=u(V(),1),l=(0,i.default)((e,s)=>{e("dark"===s.current?"light":"dark")},100,{trailing:!1}),n="SjJXIW_toggleGroup",m="SjJXIW_toggleGroupItem",d="SjJXIW_toggleGroupItemBg",c=()=>{const{resolvedTheme:e,systemTheme:s,setTheme:o}=y();return D(),a(()=>{e===s&&o("system")},[e,s]),(0,t.jsx)(J,{title:(0,t.jsxs)(t.Fragment,{children:["Toggle theme ",(0,t.jsx)(G,{size:"small",children:"T"})]}),side:"bottom",sideOffset:8,delayDuration:100,asChild:!0,children:(0,t.jsxs)(z,{size:"small",variant:"tertiary","aria-label":"Toggle theme",onClick:()=>{const t="dark"===e?"light":"dark";o(t===s?"system":t)},children:[(0,t.jsx)(C,{icon:"Sun",className:"SjJXIW_sunIcon"}),(0,t.jsx)(r,{className:"SjJXIW_moonIcon"})]})})};export{c as n,A as t};

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.