1import{a as e}from"./chunk-Cyuzqnbw.js";import{t}from"./react-DpcNkwYL.js";import{t as n}from"./jsx-runtime-CXk3X59i.js";import{t as r}from"./compiler-runtime-DJrZ-MLN.js";import{t as i}from"./createLucideIcon-DNc9xCHL.js";var a=i(`bookmark`,[[`path`,{d:`m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z`,key:`1fy3hk`}]]),o=r(),s=e(t(),1),c=e(n(),1),l={surfaceMain:`#f1f4f8`,surfaceHeader:`#ffffff`,surfaceSidebar:`#ffffff`,surfaceContent:`#f8fafc`,homeCardSurface:`#ffffff`,homeCardFooter:`#eef2f6`,homeCardBorder:`#cbd5e1`,homeCardOverlay:`#2563eb`,listCardSurface:`#ffffff`,listCardFooter:`#eef2f6`,listCardBorder:`#cbd5e1`,subcategoryTileSurface:`#f8fafc`,subcategoryTileActive:`#2563eb`,subcategoryTileText:`#1f2937`,subcategoryTileMuted:`#64748b`,textMain:`#1f2937`,textMuted:`#6b7280`},u=[{key:`inter`,label:`Inter`},{key:`raleway`,label:`Raleway`},{key:`outfit`,label:`Outfit`},{key:`serif`,label:`Editorial Serif`},{key:`mono`,label:`JetBrains Mono`}],d={inter:`"Inter Variable", Inter, system-ui, sans-serif`,raleway:`Raleway, "Inter Variable", system-ui, sans-serif`,outfit:`Outfit, "Inter Variable", system-ui, sans-serif`,serif:`Iowan Old Style, "Palatino Linotype", Georgia, serif`,mono:`"JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace`},f=[{key:`tech-stable`,name:`Tech Stable`,description:`Bright blue with clear card hierarchy.`,colors:{surfaceMain:`#dfe9f8`,surfaceHeader:`#ffffff`,surfaceSidebar:`#c6d6f0`,surfaceContent:`#f4f8ff`,homeCardSurface:`#ffffff`,homeCardFooter:`#d6e4fb`,homeCardBorder:`#6f8fc8`,homeCardOverlay:`#1d4ed8`,listCardSurface:`#f9fbff`,listCardFooter:`#dce8fb`,listCardBorder:`#7f9ccc`,subcategoryTileSurface:`#dce8ff`,subcategoryTileActive:`#1d4ed8`,subcategoryTileText:`#0b1324`,subcategoryTileMuted:`#3f5572`,textMain:`#0b1324`,textMuted:`#4e617c`}},{key:`warm-editorial`,name:`Warm Editorial`,description:`Warm paper with orange emphasis.`,colors:{surfaceMain:`#f1e6d8`,surfaceHeader:`#fff9f1`,surfaceSidebar:`#e0c3a2`,surfaceContent:`#f9f0e4`,homeCardSurface:`#fffdf8`,homeCardFooter:`#ecd4b7`,homeCardBorder:`#b98354`,homeCardOverlay:`#9a4f12`,listCardSurface:`#fffaf3`,listCardFooter:`#ead0b2`,listCardBorder:`#b87f4d`,subcategoryTileSurface:`#f2ddc2`,subcategoryTileActive:`#9a4f12`,subcategoryTileText:`#2a1a0d`,subcategoryTileMuted:`#6f4a2a`,textMain:`#2a1a0d`,textMuted:`#7a5737`}},{key:`deep-ocean`,name:`Deep Ocean`,description:`Cool cyan with stronger panel separation.`,colors:{surfaceMain:`#d9e7ef`,surfaceHeader:`#f7fcff`,surfaceSidebar:`#9eb9ca`,surfaceContent:`#eaf4f9`,homeCardSurface:`#ffffff`,homeCardFooter:`#c7dbe8`,homeCardBorder:`#5f839b`,homeCardOverlay:`#0a6a8f`,listCardSurface:`#f6fcff`,listCardFooter:`#c5dbe9`,listCardBorder:`#62869e`,subcategoryTileSurface:`#d2e5f0`,subcategoryTileActive:`#0a6a8f`,subcategoryTileText:`#0e2231`,subcategoryTileMuted:`#39586c`,textMain:`#0e2231`,textMuted:`#456378`}}],p=[{key:`light-blue`,label:`Light Blue`,header:`#eff6ff`,sidebar:`#eff6ff`},{key:`light-green`,label:`Light Green`,header:`#f0fdf4`,sidebar:`#f0fdf4`},{key:`light-purple`,label:`Light Purple`,header:`#faf5ff`,sidebar:`#faf5ff`},{key:`light-orange`,label:`Light Orange`,header:`#fff7ed`,sidebar:`#fff7ed`},{key:`light-gray`,label:`Light Gray`,header:`#f8fafc`,sidebar:`#f8fafc`}],m=`urls-ai-directory-preferences-v1`,h={colors:l,directoryTypography:`mono`,editorialTypography:`inter`,homeCardDomainMode:`hover-top`},g=(0,s.createContext)(void 0);function _(e){return typeof e==`string`&&/^#[0-9a-f]{6}$/i.test(e)}function v(e){if(!e||typeof e!=`object`)return h;let t=e,n=Object.fromEntries(Object.entries(l).map(([e,n])=>{let r=t.colors?.[e];return[e,_(r)?r:n]})),r=new Set(u.map(e=>e.key));return{colors:n,directoryTypography:r.has(t.directoryTypography)?t.directoryTypography:h.directoryTypography,editorialTypography:r.has(t.editorialTypography)?t.editorialTypography:h.editorialTypography,homeCardDomainMode:t.homeCardDomainMode===`off`||t.homeCardDomainMode===`hover-top`?t.homeCardDomainMode:h.homeCardDomainMode}}function y(){try{return v(JSON.parse(localStorage.getItem(m)??`null`))}catch{return h}}function b(e){let t=(0,o.c)(42),{children:n}
1=e,[r,i]=(0,s.useState)(h),[a,l]=(0,s.useState)(!1),u,v;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i(y()),l(!0)},v=[],t[0]=u,t[1]=v):(u=t[0],v=t[1]),(0,s.useEffect)(u,v);let b,S;t[2]!==a||t[3]!==r?(b=()=>{a&&localStorage.setItem(m,JSON.stringify(r))},S=[a,r],t[2]=a,t[3]=r,t[4]=b,t[5]=S):(b=t[4],S=t[5]),(0,s.useEffect)(b,S);let C=d[r.directoryTypography],w=d[r.editorialTypography],T;t[6]!==r.colors.homeCardBorder||t[7]!==r.colors.homeCardFooter||t[8]!==r.colors.homeCardOverlay||t[9]!==r.colors.homeCardSurface||t[10]!==r.colors.listCardBorder||t[11]!==r.colors.listCardFooter||t[12]!==r.colors.listCardSurface||t[13]!==r.colors.subcategoryTileActive||t[14]!==r.colors.subcategoryTileMuted||t[15]!==r.colors.subcategoryTileSurface||t[16]!==r.colors.subcategoryTileText||t[17]!==r.colors.surfaceContent||t[18]!==r.colors.surfaceHeader||t[19]!==r.colors.surfaceMain||t[20]!==r.colors.surfaceSidebar||t[21]!==r.colors.textMain||t[22]!==r.colors.textMuted||t[23]!==C||t[24]!==w?(T={"--url-surface-main":r.colors.surfaceMain,"--url-surface-header":r.colors.surfaceHeader,"--url-surface-sidebar":r.colors.surfaceSidebar,"--url-surface-content":r.colors.surfaceContent,"--url-home-card-surface":r.colors.homeCardSurface,"--url-home-card-footer":r.colors.homeCardFooter,"--url-home-card-border":r.colors.homeCardBorder,"--url-home-card-overlay":r.colors.homeCardOverlay,"--url-list-card-surface":r.colors.listCardSurface,"--url-list-card-footer":r.colors.listCardFooter,"--url-list-card-border":r.colors.listCardBorder,"--url-subcategory-tile-surface":r.colors.subcategoryTileSurface,"--url-subcategory-tile-active":r.colors.subcategoryTileActive,"--url-subcategory-tile-text":r.colors.subcategoryTileText,"--url-subcategory-tile-muted":r.colors.subcategoryTileMuted,"--url-text-main":r.colors.textMain,"--url-text-muted":r.colors.textMuted,"--url-directory-font":C,"--url-editorial-font":w,"--primary":r.colors.homeCardOverlay,"--foreground":r.colors.textMain,"--muted-foreground":r.colors.textMuted},t[6]=r.colors.homeCardBorder,t[7]=r.colors.homeCardFooter,t[8]=r.colors.homeCardOverlay,t[9]=r.colors.homeCardSurface,t[10]=r.colors.listCardBorder,t[11]=r.colors.listCardFooter,t[12]=r.colors.listCardSurface,t[13]=r.colors.subcategoryTileActive,t[14]=r.colors.subcategoryTileMuted,t[15]=r.colors.subcategoryTileSurface,t[16]=r.colors.subcategoryTileText,t[17]=r.colors.surfaceContent,t[18]=r.colors.surfaceHeader,t[19]=r.colors.surfaceMain,t[20]=r.colors.surfaceSidebar,t[21]=r.colors.textMain,t[22]=r.colors.textMuted,t[23]=C,t[24]=w,t[25]=T):T=t[25];let E=T,D,O,k,A,j,M,N;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(M=(e,t)=>{_(t)&&i(n=>({...n,colors:{...n.colors,[e]:t}}))},N=e=>i(t=>({...t,directoryTypography:e})),D=e=>i(t=>({...t,editorialTypography:e})),O=e=>i(t=>({...t,homeCardDomainMode:e})),k=e=>{let t=f.find(t=>t.key===e);t&&i(e=>({...e,colors:t.colors}))},A=e=>{let t=p.find(t=>t.key===e);t&&i(e=>({...e,colors:{...e.colors,surfaceHeader:t.header,surfaceSidebar:t.sidebar}}))},j=()=>i(x),t[26]=D,t[27]=O,t[28]=k,t[29]=A,t[30]=j,t[31]=M,t[32]=N):(D=t[26],O=t[27],k=t[28],A=t[29],j=t[30],M=t[31],N=t[32]);let P;t[33]!==E||t[34]!==r?(P={...r,cssVariables:E,setColor:M,setDirectoryTypography:N,setEditorialTypography:D,setHomeCardDomainMode:O,applyPreset:k,applyLayout:A,resetColors:j},t[33]=E,t[34]=r,t[35]=P):P=t[35];let F=P,I;t[36]!==n||t[37]!==F.cssVariables?(I=(0,c.jsx)(`div`,{className:`url-directory-theme relative flex min-h-screen w-full flex-col overflow-x-clip`,style:F.cssVariables,children:n}),t[36]=n,t[37]=F.cssVariables,t[38]=I):I=t[38];let L;return t[39]!==I||t[40]!==F?(L=(0,c.jsx)(g.Provider,{value:F,children:I}),t[39]=I,t[40]=F,t[41]=L):L=t[41],L}function x(e){return{...e,colors:{...l}}}function S(){let e=(0,s.use)(g);if(!e)throw Error(`useDirectoryPreferences must be used within DirectoryPreferencesProvider`);return e}export{S as a,b as i,u as n,a as o,f as r,p 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.