1import{y,u as x,a as v,j as e,ck as k,T as s,m as u,cl as C,cm as T,d as N,aY as w}from"./index-DPTR8SUU.js";import{S as A}from"./SettingsLayout-BxG9IiP6.js";import{P as h,a as c,C as d,b as o,F as g,S,o as P}from"./settings-ui-Dcd3i9hx.js";import{u as I}from"./voice-prefs-store-BwCAjznt.js";import"./dialog-CrkKelIr.js";import"./index-BDGVDWOY.js";import"./Combination-B_-5rhTd.js";import"./target-gH7hXXgc.js";import"./terminal-BeI1cL06.js";import"./life-buoy-CrdrJ_hy.js";import"./credit-card-DEfomj4y.js";import"./key-round-DhVNHDZO.js";import"./bell-CxKHM2Ub.js";import"./sliders-horizontal-Bi1T1nwX.js";import"./languages-OvnJFG7D.js";import"./palette-sqOrqqer.js";import"./layout-grid-CBhVtFyx.js";import"./arrow-up-right-Cpe7XFza.js";import"./circle-help-BTOmVhis.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const F=y("Pipette",[["path",{d:"m2 22 1-1h3l9-9",key:"1sre89"}],["path",{d:"M3 21v-3l9-9",key:"hpe2y6"}],["path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z",key:"196du1"}]]);function M(){x();const{themeId:n,setThemeId:i,mode:t,setMode:l,fontId:j,setFontId:f,customAccent:r,setCustomAccent:b}=v(),p=n===T;return e.jsxs(h,{children:[e.jsx(c,{title:e.jsx(s,{id:"FEr96N",message:"Theme"}),description:e.jsx(s,{id:"mDlDIe",message:"Light or dark, and the colour the interface is built around."}),action:e.jsx(S,{value:t,onChange:l,options:[{value:"light",label:e.jsx(s,{id:"1njn7W",message:"Light"})},{value:"dark",label:e.jsx(s,{id:"pvnfJD",message:"Dark"})}]}),footer:e.jsx(g,{children:p?e.jsx(s,{id:"8vjPTD",values:{customAccent:r},components:{0:e.jsx("span",{className:"font-mono uppercase text-foreground"})},message:"Accent <0>{customAccent}</0> â works in both light & dark."}):e.jsx(s,{id:"xwgwKf",message:"Applies to this browser only."})}),children:e.jsxs(d,{children:[k.map(a=>e.jsxs(o,{selected:n===a.id,onClick:()=>i(a.id),children:[e.jsxs("span",{className:"flex h-5 w-full overflow-hidden rounded",children:[e.jsx("span",{className:"flex-1",style:{backgroundColor:a.light.accent}}),e.jsx("span",{className:"flex-1",style:{backgroundColor:a.dark.accent}})]}),e.jsx("span",{className:"text-[13px] font-medium leading-none text-foreground",children:a.label})]},a.id)),e.jsxs(o,{as:"label",selected:p,children:[e.jsx("span",{className:"flex h-5 w-full items-center justify-center overflow-hidden rounded",style:{backgroundColor:r},children:e.jsx(F,{className:"h-3 w-3 text-white drop-shadow"})}),e.jsx("span",{className:"text-[13px] font-medium leading-none text-foreground",children:e.jsx(s,{id:"8Tg/JR",message:"Custom"})}),e.jsx("input",{type:"color",value:r,onChange:a=>b(a.target.value),className:"absolute inset-0 h-full w-full cursor-pointer opacity-0","aria-label":u._({id:"SDfOiu",message:"Pick a custom theme colour"})})]})]})}),e.jsx(c,{title:e.jsx(s,{id:"5Cj9Ws",message:"Font"}),description:e.jsx(s,{id:"4Af9Yp",message:"Typography, independent of the theme."}),children:e.jsx(d,{children:C.map(a=>e.jsxs(o,{selected:j===a.id,onClick:()=>f(a.id),children:[e.jsx("span",{className:"text-lg leading-tight text-foreground",style:{fontFamily:a.heading},children:"Ag"}),e.jsx("span",{className:"text-[13px] leading-none text-foreground",style:{fontFamily:a.body},children:a.label})]},a.id))})})]})}const D=[{value:"off",label:e.jsx(s,{id:"az8lvo",message:"Off"}),hint:e.jsx(s,{id:"A4xyM/",message:"Space types a space. Use the mic button instead."})},{value:"tap",label:e.jsx(s,{id:"ty80rX",message:"Tap to talk"}),hint:e.jsx(s,{id:"gGFQmR",message:"Press Space once to start, again to send."})},{value:"hold",label:e.jsx(s,{id:"lO8IrZ",message:"Hold to talk"}),hint:e.jsx(s,{id:"AQpTbf",message:"Hold Space while you speak, release to send."})}];function E(){const{mode:n,setMode:i}=I();return e.jsx(c,{title:e.jsx(s,{id:"gPuz/0",message:"Voice input"}),description:e.jsx(s,{id:"qYXAGB",message:"How the Space bar drives the microphone in chat."}),footer:e.jsx(g,{children:e.jsx(s,{id:"xwgwKf",message:"Applies to this browser only."})}),children:e.jsx(d,{children:D.map(t=>e.jsxs(o,{selected:n===t.value,onClick:()=>i(t.value),children:[e.jsx("span",{className:"text-[13px] font-medium leading-none text-foreground",children:t.label}),e.jsx("span",{className:"text-xs leading-snug text-muted-foreground",children:t.hint})]},t.value))})})}function H(){return e.jsx(h,{children:e.jsx(E,{})})}const m={appearance:"/app/interface",chat:"/app/interface/chat"},se=()=>{x();const n=N(),{pathname:i}=w(),t=i.startsWith(m.chat)?"chat":"appearance";return e.jsx(A,{title:u._({id:"GfnKOF",message:"Interface"}),children:e.jsxs("div",{className:"space-y-6",children:[e.jsx(P,{value:t,onChange:l=>n(m[l]),options:[{value:"appearance",label:e.jsx(s,{id:"aAIQg2",message:"Appearance"})},{value:"chat",label:e.jsx(s,{id:"AHZflp",message:"Chat"})}]}),t==="appearance"?e.jsx(M,{}):e.jsx(H,{})]})})};export{se 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.