PageSourceSearch

https://www.jamieslist.com/assets/communityTheme-D6w6V2g2.js

js jamieslist.com collected 2026-10-02 14:34:14 UTC 2,206 bytes, 29 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="148fc301-2555-53cb-b150-851f195632ac")}catch(e){}}();
3import{s as e}from"./jsx-runtime-D4ePz0Hl.js";import{t}from"./react-BXH-GOAS.js";var n=e(t(),1),r=e=>{let t=e.replace(`#`,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t;return`${Number.parseInt(n.slice(0,2),16)} ${Number.parseInt(n.slice(2,4),16)} ${Number.parseInt(n.slice(4,6),16)}`},i=e=>{if(!e)return!1;let[t,n,i]=r(e).split(` `).map(Number);return(t+n+i)/3>127},a=e=>`${i(e)?`
4    --community-mention-bg: color-mix(in oklab, var(--community-primary) 15%, white 85%);
5    --community-mention-text: color-mix(in oklab, var(--community-primary) 70%, black 30%);`:`
6    --community-mention-bg: color-mix(in oklab, var(--community-primary) 40%, white 60%);
7    --community-mention-text: color-mix(in oklab, var(--community-primary) 35%, black 65%);`}
8    --community-mention-border: oklch(from var(--community-mention-bg) calc(l - max(0, l - 0.97) * 3.3) c h);
9  `,o={primary:`#030712`,textOnPrimary:`#FFFFFF`,bg:`#FFFFFF`,textOnBg:`#000000`},s=e=>(0,n.useMemo)(()=>{let t=e?.primary_color??o.primary,n=e?.text_on_primary_color??o.textOnPrimary,i=e?.background_color??o.bg,s=e?.text_on_background_color??o.textOnBg;return`:root {
10  --community-primary: ${t};
11  --community-primary-rgb: ${r(t)};
12  --community-primary-on-light: var(--community-primary);
13  --community-accent: var(--community-primary);
14  --community-text-on-primary: ${n};
15  --community-text-on-primary-rgb: ${r(n)};
16  --community-bg: ${i};
17  --community-bg-rgb: ${r(i)};
18  --community-text-on-bg: ${s};
19  --community-text-on-bg-rgb: ${r(s)};
20  ${a(n)}
21}
22@supports (color: oklch(from red l c h)) {
23  :root {
24    --community-primary-on-light: oklch(from var(--community-primary) min(l, 0.5) c h);
25    --community-accent: hsl(from var(--community-primary) h s calc(l * 0.85));
26  }
27}`},[e]);export{s as i,r as n,a as r,i as t};
28//# sourceMappingURL=communityTheme-D6w6V2g2.js.map
29//# debugId=148fc301-2555-53cb-b150-851f195632ac

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.