1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6665],{14967:(e,t,a)=>{a.d(t,{DP:()=>d,NP:()=>c,b3:()=>l});var r=a(54568),s=a(7620);let l=[{id:"default",label:"Default",swatch:"#0485F7"},{id:"sky",label:"Sky",swatch:"#06B6D4"},{id:"lavender",label:"Lavender",swatch:"#C79EF7"},{id:"mint",label:"Mint",swatch:"#80DBA2"},{id:"netflix",label:"Netflix",swatch:"#E50914"},{id:"uber",label:"Uber",swatch:"#000000"},{id:"brutalism",label:"Brutalism",swatch:"#000000"},{id:"glass",label:"Glass",swatch:"#9CA3AF"}],n=(0,s.createContext)(null),i="theme",o="theme-preset";function c(e){let{children:t}=e,[a,c]=(0,s.useState)("light"),[d,u]=(0,s.useState)("glass"),[h,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{try{let e=localStorage.getItem(i);("dark"===e||"light"===e)&&c(e);let t=localStorage.getItem(o);t&&l.some(e=>e.id===t)&&u(t)}catch(e){}m(!0)},[]),(0,s.useEffect)(()=>{if(h){let e=document.documentElement;e.classList.remove("dark","light"),e.classList.add(a),e.setAttribute("data-theme","".concat(d,"-").concat(a));try{localStorage.setItem(i,a),localStorage.setItem(o,d)}catch(e){}}},[d,a,h]);let x=(0,s.useCallback)(e=>c(e),[]),f=(0,s.useCallback)(e=>u(e),[]),b=(0,s.useCallback)(()=>{c(e=>"dark"===e?"light":"dark")},[]);return(0,r.jsx)(n.Provider,{value:{mode:a,preset:d,setMode:x,setPreset:f,toggleTheme:b,theme:a},children:t})}function d(){let e=(0,s.useContext)(n);if(!e)throw Error("useTheme must be used within ThemeProvider");return e}},35747:(e,t,a)=>{a.d(t,{wv:()=>o});let r=(0,a(34545).tv)({base:"separator",defaultVariants:{orientation:"horizontal",variant:"default"},variants:{orientation:{horizontal:"separator--horizontal",vertical:"separator--vertical"},variant:{default:"separator--default",secondary:"separator--secondary",tertiary:"separator--tertiary"}}});var s=a(10500),l=a(18583),n=a(54568);let i=e=>{var t;let{className:a,orientation:i,variant:o,...c}=e,d=(0,l.CC)(s.$S),u=null!=(t=null!=i?i:null==d?void 0:d.orientation)?t:"horizontal";return(0,n.jsx)(s.wv,{"data-orientation":u,"data-slot":"separator",orientation:u,className:r({orientation:u,variant:o,className:a}),...c})},o=Object.assign(i,{Root:i})},36665:(e,t,a)=>{a.r(t),a.d(t,{AppearanceTab:()=>o});var r=a(54568),s=a(97066),l=a(35747),n=a(78622),i=a(14967);function o(){var e,t;let a=(0,s.c)("settings.appearance"),{preset:n,mode:o,setPreset:d,setMode:h}=(0,i.DP)(),m=null!=(t=null==(e=i.b3.find(e=>e.id===n))?void 0:e.label)?t:"Glass";return(0,r.jsxs)("div",{className:"space-y-8 pt-6",children:[(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-semibold text-[var(--foreground)]",children:a("modeSection")}),(0,r.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:a("modeDescription")}),(0,r.jsx)(c,{value:o,onChange:h,lightLabel:a("light"),darkLabel:a("dark")})]}),(0,r.jsx)(l.wv,{}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"text-base font-semibold text-[var(--foreground)]",children:a("presetSection")}),(0,r.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:a("presetDescription")}),(0,r.jsx)("div",{className:"mt-5 grid grid-cols-4 gap-x-4 gap-y-5 sm:grid-cols-8",children:i.b3.map(e=>(0,r.jsx)(u,{id:e.id,label:e.label,swatch:e.swatch,active:n===e.id,onSelect:()=>d(e.id)},e.id))})]}),(0,r.jsx)(l.wv,{}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm text-[var(--muted)]",children:a("current")}),(0,r.jsxs)("span",{className:"text-sm font-medium text-[var(--foreground)]",children:[m," \xb7 ",a("dark"===o?"dark":"light")]})]})]})}function c(e){let{value:t,onChange:a,lightLabel:s,darkLabel:l}=e;return(0,r.jsxs)("div",{role:"radiogroup","aria-label":"Color mode",className:"mt-4 inline-flex items-center rounded-full border border-[var(--border)] bg-[var(--surface-secondary)] p-1",children:[(0,r.jsx)(d,{active:"light"===t,onSelect:()=>a("light"),icon:(0,r.jsx)(n.bd,{className:"h-4 w-4"}),label:s}),(0,r.jsx)(d,{active:"dark"===t,onSelect:()=>a("dark"),icon:(0,r.jsx)(n.AX,{className:"h-4 w-4"}),label:l})]})}function d(e){let{active:t,onSelect:a,icon:s,label:l}=e;return(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":t,onClick:a,className:"inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-medium transition-colors ".concat(t?"bg-[var(--surface)] text-[var(--foreground)] shadow-[var(--surface-shadow)]":"text-[var(--muted)] hover:text-[var(--foreground)]"),children:[s,(0,r.jsx)("span",{children:l})]})}function u(e){let{id:t,label:a,swatch:s,active:l,onSelect:i}=e;return(0,r.jsxs)("button",{type:"button",onClick:i,"aria-pressed":l,"aria-label":"".concat(a," theme"),className:"group flex flex-col items-center gap-2 outline-none","data-theme-preset":t,children:[(0,r.jsx)("span",{className:"relative flex h-12 w-12 items-center justify-center rounded-full transition-transform group-hover:scale-105 ".concat(l?"ring-2 ring-[var(--accent)] ring-offset-2 ring-offset-[var(--background)]":""),style:{backgroundColor:s},children:l&&(0,r.jsx)(n.Sr,{className:"h-4 w-4 text-white drop-shadow"})}),(0,r.jsx)("span",{className:"text-xs ".concat(l?"font-semibold text-[var(--foreground)]":"text-[var(--muted)]"),children:a})]})}}}]);
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.