{ "version": 3, "sources": ["../../javascript/utils/brandColor.mjs", "../../javascript/utils/menuShape.mjs", "../../javascript/utils/siteStyle.mjs", "../../javascript/site_page.js"], "sourcesContent": ["// The restaurant's own colour on its order page and WhatsApp menu\n// (Settings \u2192 Website; docs/decisions/restaurant-website.md), in place of\n// WhatsApp's green.\n//\n// Any colour is taken: the page makes it readable rather than refusing it.\n// In the light look it is darkened until white text on it, and it as text on\n// white, reach 4.5:1 (WCAG AA); in the dark look lightened until it reaches\n// that against the dark ground, with the dark ground's colour as text on it.\n// Without a colour nothing here is set, and every page keeps its green.\n\nconst LIGHT_GROUND = '#ffffff';\nconst DARK_GROUND = '#111b21';\n// The dark look's cards and bars (SmartMenu/palette.js --sm-panel), which\n// words in the colour sit on too: Most ordered's prices, More, the\n// footer's links (owner, 2 Dec 2026: 3.7:1 there, readable on the ground\n// alone).\nconst DARK_PANEL = '#202c33';\nconst READABLE = 4.5;\n\nlet current = null;\n\n// The colour the pages are drawn in, set once from what the server sent.\nexport function setBrand(hex) {\n current = isColor(hex) ? hex.toLowerCase() : null;\n}\n\nexport function brand() {\n return current;\n}\n\nexport function isColor(hex) {\n return typeof hex === 'string' && /^#[0-9a-f]{6}$/i.test(hex);\n}\n\nconst rgb = (hex) => [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));\nconst toHex = (parts) => `#${parts.map((v) => Math.round(Math.min(255, Math.max(0, v))).toString(16).padStart(2, '0')).join('')}`;\n\nexport function luminance(hex) {\n const [r, g, b] = rgb(hex).map((v) => {\n const c = v / 255;\n return c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4;\n });\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n}\n\nexport function contrast(a, b) {\n const [hi, lo] = [luminance(a), luminance(b)].sort((x, y) => y - x);\n return (hi + 0.05) / (lo + 0.05);\n}\n\n// a moved toward b by t (0 to 1).\nexport function mix(a, b, t) {\n const [x, y] = [rgb(a), rgb(b)];\n return toHex(x.map((v, i) => v + (y[i] - v) * t));\n}\n\nexport function toHsl(hex) {\n const [r, g, b] = rgb(hex).map((v) => v / 255);\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const l = (max + min) / 2;\n if (max === min) return [0, 0, l];\n const d = max - min;\n const s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n const h = max === r ? (g - b) / d + (g < b ? 6 : 0) : max === g ? (b - r) / d + 2 : (r - g) / d + 4;\n return [h / 6, s, l];\n}\n\nexport function fromHsl([h, s, l]) {\n if (s === 0) return toHex([l, l, l].map((v) => v * 255));\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n const hue = (t) => {\n const x = t < 0 ? t + 1 : t > 1 ? t - 1 : t;\n if (x < 1 / 6) return p + (q - p) * 6 * x;\n if (x < 1 / 2) return q;\n if (x < 2 / 3) return p + (q - p) * (2 / 3 - x) * 6;\n return p;\n };\n return toHex([hue(h + 1 / 3), hue(h), hue(h - 1 / 3)].map((v) => v * 255));\n}\n\n// The colour made lighter or darker, its hue and strength kept (not mixed\n// with white, which greys it), until it reads against `ground`. Black or\n// white always gets there. ratio: 4.5 for words, less for a shape (a\n// website style's buttons, siteStyle.mjs).\nexport function readableOn(hex, ground, lighter, ratio = READABLE) {\n const [h, s] = toHsl(hex);\n let l = toHsl(hex)[2];\n let colour = hex;\n for (let step = 0; step < 60 && contrast(colour, ground) < ratio; step += 1) {\n l = Math.min(1, Math.max(0, l + (lighter ? 0.02 : -0.02)));\n colour = fromHsl([h, s, l]);\n }\n return colour;\n}\n\nconst alpha = (hex, a) => `rgba(${rgb(hex).join(', ')}, ${a})`;\n\n// The accent in each look.\nexport function accents(hex) {\n return {\n light: readableOn(hex, LIGHT_GROUND, false),\n dark: readableOn(readableOn(hex, DARK_GROUND, true), DARK_PANEL, true)\n };\n}\n\n// The variables to set for a look, or {} without a colour. --sm-* are the\n// menus' palette (SmartMenu/palette.js); --brand-* the order page's pieces\n// drawn light in either look (buttons with white text, a tint and the dark\n// text on it), which fall back to the green they were.\nexport function brandVars(mode, hex = current) {\n if (!isColor(hex)) return {};\n const { light, dark } = accents(hex);\n return {\n '--sm-accent': mode === 'light' ? light : dark,\n '--sm-accent-text': mode === 'light' ? '#ffffff' : DARK_GROUND,\n '--brand-fill': light,\n '--brand-ink': mix(light, '#000000', 0.35),\n '--brand-tint': mix(light, '#ffffff', 0.88)\n };\n}\n\n// The order page's older pieces in the dark look on a phone\n// (phoneTheme.mjs), or {} without a colour.\nexport function phoneDarkBrandVars(hex = current) {\n if (!isColor(hex)) return {};\n const { dark } = accents(hex);\n return { '--pm-accentText': dark, '--pm-active': alpha(dark, 0.16) };\n}\n\nexport const BRAND_VARS = ['--brand-fill', '--brand-ink', '--brand-tint'];\n", "// A website style's shape for the menu, a product's screen, the cart and the\n// checkout (owner, 29 Nov 2026; docs/decisions/restaurant-website.md): the\n// corners, the section headings, the rows, the + and the buttons drawn the\n// way the style's home is, where they had the style's colours and lettering\n// alone.\n//\n// Each is a CSS variable (--mn-*) read where the thing is drawn, with what\n// the page had as its fallback: `shape('r', '12px')`. So \"classic\", and the\n// WhatsApp menu, which sets none of them, draw exactly as they did.\n// siteStyle.mjs sets them with the style's colours and takes them off again.\n//\n// The spacing (--space, public/restaurants/show from the restaurant's own\n// choice: roomy or compact) multiplies the room between things, never a\n// button's own size or the page's side gutters.\n\nexport const shape = (name, fallback) => `var(--mn-${name}, ${fallback})`;\n\n// A length that follows the restaurant's spacing: space(12) is 12px at the\n// style's own spacing.\nexport const space = (px) => `calc(${typeof px === 'number' ? `${px}px` : px} * var(--space, 1))`;\n\nconst INK = 'var(--st-ink)';\nconst LINE = 'var(--st-line)';\nconst FILL = 'var(--st-fill)';\nconst ON_FILL = 'var(--st-on-fill)';\nconst SURFACE = 'var(--st-surface)';\nconst DISPLAY = 'var(--st-display)';\n\nconst SHAPES = {\n // A magazine: sharp corners, hairlines, the section's name in the serif,\n // the photo at the end of the row.\n editorial: {\n r: '4px', 'r-field': '4px', 'r-photo': '4px', 'r-btn': '4px', 'r-chip': '0px', 'r-step': '4px',\n 'add-bg': 'transparent', 'add-ink': INK, 'add-border': `1.5px solid ${INK}`, 'add-w': '36px', 'add-h': '36px', 'add-pad': '0',\n 'chip-bg': 'transparent', 'chip-border': '0', 'chip-pad': '8px 2px', 'chip-gap': '22px', 'chip-ink': 'var(--st-muted)',\n 'chip-on-bg': 'transparent', 'chip-on-ink': INK, 'chip-on-border': '0', 'chip-on-mark': `inset 0 -2px 0 ${INK}`,\n 'head-font': DISPLAY, 'head-size': '25px', 'head-weight': '500', 'head-case': 'none', 'head-track': '-0.01em',\n 'head-ink': INK, 'head-top': '30px', 'head-rule': `1px solid ${INK}`,\n 'row-y': '16px', photo: '92px',\n 'name-font': DISPLAY, 'name-size': '18px', 'name-weight': '500',\n 'card-border': '0', 'card-bg': 'transparent', 'card-pad': '12px 0 4px',\n 'title-font': DISPLAY, 'title-weight': '500', 'title-size': '26px', 'title-line': '1.15',\n 'over-bg': SURFACE, 'btn-bg': FILL, 'btn-ink': ON_FILL\n },\n // A poster: square, loud, capitals, thick rules.\n street: {\n r: '2px', 'r-field': '2px', 'r-photo': '2px', 'r-btn': '2px', 'r-chip': '2px', 'r-step': '2px',\n 'btn-case': 'uppercase', 'btn-track': '0.06em', 'btn-weight': '800', 'btn-bg': FILL, 'btn-ink': ON_FILL,\n 'add-bg': FILL, 'add-ink': ON_FILL, 'add-border': '0', 'add-w': '36px', 'add-h': '36px', 'add-pad': '0',\n 'chip-bg': 'transparent', 'chip-border': `1.5px solid ${INK}`, 'chip-case': 'uppercase', 'chip-weight': '700',\n 'chip-track': '0.04em', 'chip-size': '13px',\n 'chip-on-bg': FILL, 'chip-on-ink': ON_FILL, 'chip-on-border': `1.5px solid ${FILL}`,\n 'head-font': DISPLAY, 'head-size': '26px', 'head-weight': '400', 'head-case': 'uppercase', 'head-track': '0.02em',\n 'head-ink': INK, 'head-top': '26px', 'head-rule': `2px solid ${INK}`,\n 'name-case': 'uppercase', 'name-weight': '700', 'name-track': '0.02em',\n 'price-ink': 'var(--sm-accent)', 'price-weight': '800',\n 'card-border': `1.5px solid ${INK}`,\n 'title-font': DISPLAY, 'title-weight': '400', 'title-case': 'uppercase', 'title-track': '0.02em', 'title-size': '26px',\n 'title-line': '1.1'\n },\n // Soft: each dish a rounded card of its own on the tinted page, pills,\n // a round +.\n fresh: {\n r: '20px', 'r-field': '14px', 'r-photo': '14px', 'r-btn': '999px', 'r-chip': '999px', 'r-step': '999px',\n 'btn-weight': '700', 'btn-bg': FILL, 'btn-ink': ON_FILL,\n 'add-bg': FILL, 'add-ink': ON_FILL, 'add-border': '0', 'add-w': '36px', 'add-h': '36px', 'add-pad': '0',\n 'chip-bg': SURFACE, 'chip-border': '0', 'chip-pad': '9px 16px', 'chip-weight': '600',\n 'chip-on-bg': FILL, 'chip-on-ink': ON_FILL, 'chip-on-border': '0',\n 'head-size': '19px', 'head-weight': '800', 'head-case': 'none', 'head-track': '-0.01em',\n 'head-ink': INK, 'head-top': '22px', 'head-rule': '0',\n 'row-rule': '0', 'row-bg': SURFACE, 'row-r': '20px', 'row-margin': '0 12px 10px', 'row-x': '12px', photo: '76px',\n 'name-weight': '700',\n 'card-border': '0', 'card-bg': SURFACE, 'card-shadow': '0 1px 2px rgba(0, 0, 0, 0.06)',\n 'title-weight': '800'\n },\n // An ordering site's rows: white on a grey page, the photo at the end,\n // a filled square +.\n storefront: {\n r: '8px', 'r-field': '6px', 'r-photo': '8px', 'r-btn': '6px', 'r-chip': '6px', 'r-step': '6px',\n 'btn-case': 'uppercase', 'btn-track': '0.04em', 'btn-weight': '800', 'btn-bg': FILL, 'btn-ink': ON_FILL,\n 'add-bg': FILL, 'add-ink': ON_FILL, 'add-border': '0', 'add-w': '36px', 'add-h': '36px', 'add-pad': '0',\n 'chip-bg': SURFACE, 'chip-border': `1px solid ${LINE}`, 'chip-weight': '700', 'chip-size': '13px',\n 'chip-on-bg': FILL, 'chip-on-ink': ON_FILL, 'chip-on-border': `1px solid ${FILL}`,\n 'head-size': '18px', 'head-weight': '800', 'head-case': 'none', 'head-track': '0',\n 'head-ink': INK, 'head-top': '22px', 'head-rule': '0',\n 'row-bg': SURFACE, photo: '92px',\n 'name-size': '16px', 'name-weight': '700',\n 'price-ink': 'var(--sm-accent)', 'price-weight': '700',\n 'card-bg': SURFACE,\n 'title-weight': '800'\n }\n};\n\n// The styles whose rows have the photo at the end, the + on its corner.\nconst PHOTO_AT_END = ['editorial', 'storefront'];\n\nexport function photoAtEnd(style) {\n return PHOTO_AT_END.includes(style);\n}\n\n// The variables a style sets, or {} for one with no shape of its own.\nexport function shapeVars(style) {\n const table = SHAPES[style];\n if (!table) return {};\n return Object.fromEntries(Object.entries(table).map(([name, value]) => [`--mn-${name}`, value]));\n}\n\n// Every variable any style sets, so one can be taken off again.\nexport const SHAPE_VARS = [...new Set(Object.values(SHAPES).flatMap((table) => Object.keys(table)))].map((name) => `--mn-${name}`);\n", "// A website style's colours and fonts (Settings \u2192 Website; owner, 27 Nov\n// 2026; docs/decisions/restaurant-website.md): Editorial, Street, Fresh and\n// Storefront, each worked out from the restaurant's own colour, in the light\n// look and the dark. \"classic\" is the page as it was, and sets nothing here.\n//\n// Every colour is the restaurant's hue at a chosen strength and lightness\n// (tone), so a style looks like the restaurant whatever its colour. Words\n// always reach 4.5:1 on what they sit on (WCAG AA), by lightness alone: a\n// colour is never refused. Without a colour of its own the page keeps the\n// green it had.\n//\n// --sm-* are the menu's, cart's and checkout's palette (SmartMenu/palette.js),\n// --pm-* the order page's older pieces in the dark look (phoneTheme.mjs), and\n// --st-* the style's own, which its home and the header draw with, and\n// --mn-* its shape for the menu and what follows it (menuShape.mjs).\n\nimport { brand, isColor, contrast, toHsl, fromHsl, readableOn } from './brandColor.mjs';\nimport { shapeVars, SHAPE_VARS } from './menuShape.mjs';\n\nexport const SITE_STYLES = ['editorial', 'street', 'fresh', 'storefront'];\nconst OUR_GREEN = '#008069';\nconst SYSTEM = \"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\";\n\n// 'AJ Arabic' first: it has only the Arabic letters (unicode-range), so\n// Latin falls to the style's face and Arabic stays IBM Plex Sans Arabic.\nexport const FONTS = {\n editorial: {\n display: \"'AJ Arabic', 'AJ Fraunces', Georgia, 'Times New Roman', serif\",\n body: `'AJ Arabic', 'AJ DM Sans', ${SYSTEM}`\n },\n street: {\n display: \"'AJ Arabic', 'AJ Anton', Impact, 'Arial Narrow', sans-serif\",\n body: `'AJ Arabic', 'AJ Archivo', ${SYSTEM}`\n },\n fresh: {\n display: `'AJ Arabic', 'AJ Jakarta', ${SYSTEM}`,\n body: `'AJ Arabic', 'AJ Jakarta', ${SYSTEM}`\n },\n // Fresh's face: one file for both.\n storefront: {\n display: `'AJ Arabic', 'AJ Jakarta', ${SYSTEM}`,\n body: `'AJ Arabic', 'AJ Jakarta', ${SYSTEM}`\n }\n};\n\nlet current = null;\n\n// The style the page is drawn in, set once from what the server sent.\nexport function setSiteStyle(name) {\n current = SITE_STYLES.includes(name) ? name : null;\n}\n\nexport function siteStyle() {\n return current;\n}\n\nconst clamp = (n, low, high) => Math.min(high, Math.max(low, n));\n\n// White or the dark tone, whichever reads better on a fill; black where\n// neither reaches 4.5:1 (a mid tone, where the two cross).\nfunction wordsOn(fill, dark) {\n const best = contrast(fill, '#ffffff') >= contrast(fill, dark) ? '#ffffff' : dark;\n return contrast(fill, best) >= 4.5 ? best : '#000000';\n}\n\n// A colour as words on every ground it is written on.\nfunction wordsAmong(hex, grounds, lighter) {\n return grounds.reduce((colour, ground) => readableOn(colour, ground, lighter), hex);\n}\n\n// A fill told apart from the ground under it (a button, a bar), 2:1 at the\n// least: a pale colour on white is deepened, a dark one on black lifted.\nfunction standsOn(hex, grounds, lighter) {\n return grounds.reduce((colour, ground) => readableOn(colour, ground, lighter, 2), hex);\n}\n\n// A style's colours for a look, as names (not variables), from a colour.\nexport function stylePalette(style, mode, hex = brand()) {\n if (!SITE_STYLES.includes(style)) return null;\n const colour = isColor(hex) ? hex.toLowerCase() : OUR_GREEN;\n const dark = mode !== 'light';\n const [h, s, l] = toHsl(colour);\n const tone = (most, light) => fromHsl([h, Math.min(most / 100, s), light / 100]);\n\n if (style === 'editorial') {\n const p = dark\n ? { ground: tone(12, 7), surface: tone(12, 10), panel: tone(12, 11), ink: tone(14, 94), muted: tone(8, 66),\n line: tone(12, 20), wash: tone(16, 10), band: tone(18, 14), chip: tone(16, 16) }\n : { ground: '#ffffff', surface: '#ffffff', panel: tone(40, 96), ink: tone(18, 10), muted: tone(8, 36),\n line: tone(18, 86), wash: tone(40, 96), band: tone(18, 10), chip: tone(40, 93) };\n const grounds = [p.ground, p.wash, p.panel];\n p.deep = wordsAmong(dark ? tone(70, 74) : tone(85, 26), grounds, dark);\n p.accent = wordsAmong(colour, grounds, dark);\n p.fill = standsOn(colour, [p.ground], dark);\n p.onBand = '#ffffff';\n p.onBandSoft = tone(14, 80);\n p.bandPop = readableOn(tone(90, Math.max(62, Math.round(l * 100))), p.band, true);\n return finish(p, tone);\n }\n\n if (style === 'street') {\n // The colour kept where it is already loud; else made loud, its hue kept.\n // One with no hue to speak of (black, white, a grey) can't be: black on\n // the light look and white on the dark, not a grey between them.\n const keep = l >= 0.45 && l <= 0.68;\n const plain = s < 0.12;\n const loud = plain ? (dark ? '#f2f2f2' : '#141414')\n : keep ? colour : fromHsl([h, Math.max(s, 0.7), clamp(Math.round(l * 100), 52, 64) / 100]);\n const p = dark\n ? { ground: tone(6, 6), surface: tone(6, 11), panel: tone(6, 11), ink: tone(20, 94), muted: tone(8, 68),\n line: tone(8, 30), wash: tone(6, 11), chip: tone(8, 17) }\n : { ground: tone(8, 96), surface: '#ffffff', panel: '#ffffff', ink: tone(20, 7), muted: tone(8, 36),\n line: tone(8, 78), wash: '#ffffff', chip: tone(8, 91) };\n const grounds = [p.ground, p.surface];\n p.fill = standsOn(loud, grounds, dark);\n p.deep = wordsAmong(p.fill, grounds, dark);\n p.accent = p.deep;\n p.band = p.fill;\n p.onBand = wordsOn(p.fill, tone(30, 7));\n p.onBandSoft = p.onBand;\n p.bandPop = p.onBand;\n return finish(p, tone);\n }\n\n if (style === 'storefront') {\n // Plain: a grey page and white rows with next to none of the colour in\n // them, the colour itself kept for what is pressed.\n const p = dark\n ? { ground: tone(4, 8), surface: tone(4, 13), panel: tone(4, 13), ink: tone(6, 94), muted: tone(4, 68),\n line: tone(4, 22), wash: tone(4, 13), chip: tone(4, 19) }\n : { ground: tone(4, 94), surface: '#ffffff', panel: '#ffffff', ink: tone(6, 12), muted: tone(4, 36),\n line: tone(4, 86), wash: '#ffffff', chip: tone(4, 88) };\n const grounds = [p.ground, p.surface];\n p.fill = standsOn(colour, grounds, dark);\n p.accent = wordsAmong(colour, grounds, dark);\n p.deep = p.accent;\n p.band = p.fill;\n p.onBand = wordsOn(p.fill, tone(30, 8));\n p.onBandSoft = p.onBand;\n p.bandPop = p.onBand;\n return finish(p, tone);\n }\n\n const p = dark\n ? { ground: tone(30, 8), surface: tone(26, 13), panel: tone(26, 13), ink: tone(30, 94), muted: tone(12, 68),\n line: tone(24, 20), wash: tone(26, 13), chip: tone(40, 20) }\n : { ground: tone(70, 95), surface: '#ffffff', panel: '#ffffff', ink: tone(70, 14), muted: tone(16, 36),\n line: tone(40, 90), wash: '#ffffff', chip: tone(80, 88) };\n const grounds = [p.ground, p.surface];\n p.fill = standsOn(colour, grounds, dark);\n p.accent = wordsAmong(colour, grounds, dark);\n p.deep = p.accent;\n p.band = p.fill;\n p.onBand = wordsOn(p.fill, tone(70, 12));\n p.onBandSoft = p.onBand;\n p.bandPop = p.onBand;\n return finish(p, tone);\n}\n\nfunction finish(p, tone) {\n const dark = tone(30, 8);\n return { ...p, onFill: wordsOn(p.fill, dark), onAccent: wordsOn(p.accent, dark) };\n}\n\nconst rgba = (hex, a) => `rgba(${[1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16)).join(', ')}, ${a})`;\n\n// Every variable a style sets, so one can be taken off again.\nexport const STYLE_VARS = ['--st-ground', '--st-surface', '--st-ink', '--st-muted', '--st-line', '--st-wash',\n '--st-deep', '--st-fill', '--st-on-fill', '--st-band', '--st-on-band', '--st-on-band-soft', '--st-band-pop',\n '--st-chip', '--st-display', '--st-body', ...SHAPE_VARS];\n\n// The variables to set for a look, or {} on a page with no style.\nexport function styleVars(mode, style = current, hex = brand()) {\n const p = stylePalette(style, mode, hex);\n if (!p) return {};\n return {\n '--sm-bg': p.ground,\n '--sm-panel': p.panel,\n '--sm-line': p.line,\n '--sm-text': p.ink,\n '--sm-dim': p.muted,\n '--sm-accent': p.accent,\n '--sm-accent-text': p.onAccent,\n '--st-ground': p.ground,\n '--st-surface': p.surface,\n '--st-ink': p.ink,\n '--st-muted': p.muted,\n '--st-line': p.line,\n '--st-wash': p.wash,\n '--st-deep': p.deep,\n '--st-fill': p.fill,\n '--st-on-fill': p.onFill,\n '--st-band': p.band,\n '--st-on-band': p.onBand,\n '--st-on-band-soft': p.onBandSoft,\n '--st-band-pop': p.bandPop,\n '--st-chip': p.chip,\n // The restaurant's own choice of lettering first, where it made one\n // (--heading-font, set by public/restaurants/show).\n '--st-display': `var(--heading-font, ${FONTS[style].display})`,\n '--st-body': FONTS[style].body,\n // Its shape for the menu, a product, the cart and the checkout.\n ...shapeVars(style)\n };\n}\n\n// The order page's older pieces in the dark look (phoneTheme.mjs), in the\n// style's colours; {} on a page with no style.\nexport function stylePhoneVars(style = current, hex = brand()) {\n const p = stylePalette(style, 'dark', hex);\n if (!p) return {};\n return {\n '--pm-surface': p.panel,\n '--pm-subtle': p.ground,\n '--pm-line': p.line,\n '--pm-text': p.ink,\n '--pm-dim': p.muted,\n '--pm-active': rgba(p.accent, 0.16),\n '--pm-accentText': p.accent\n };\n}\n\n// The home's parts in the restaurant's order where it chose one (Settings \u2192\n// Website; rule 42): its parts first, as far as this home has them, then\n// the rest as the style has them. `usual` is the style's own order. Here\n// for the page and for Settings, which lists the parts the same way.\nexport function partOrder(chosen, usual) {\n const first = (Array.isArray(chosen) ? chosen : []).filter((part, i, all) => usual.includes(part) && all.indexOf(part) === i);\n return [...first, ...usual.filter((part) => !first.includes(part))];\n}\n\n// How much of its size a headline keeps, by how long it is (rule 60): all\n// of it up to 24 letters, `least` of it from 56, evenly between. A style\n// whose letters are big says how far down a long one comes; the\n// restaurant's Smaller or Bigger counts on top (scaledHeadline).\nexport function headlineKeeps(text, least = 1) {\n const letters = [...String(text || '').trim()].length;\n if (!(least < 1) || letters <= 24) return 1;\n if (letters >= 56) return least;\n return Number((1 - ((letters - 24) / 32) * (1 - least)).toFixed(3));\n}\n", "// The restaurant's website's own pages (About, Locations, Contact and its\n// policies; Public::SitePagesController) in the style its home is drawn in\n// (owner, 29 Nov 2026; docs/decisions/restaurant-website.md, rule 66): the\n// same colours the home sets (siteStyle.mjs styleVars), from the same code,\n// set on the page before it is drawn. Loaded in the page's head; the page\n// names its style, its look and its colour on .\n//\n// The look is the customer's own choice first (the order page's sun or\n// moon, kept in publicmenu:theme), then the restaurant's (rule 3; owner,\n// 1 Dec 2026). Classic has a dark look too: the order page's own dark\n// palette (SmartMenu/palette.js), the colour made readable on it.\nimport { styleVars, FONTS } from './utils/siteStyle.mjs';\nimport { accents, isColor } from './utils/brandColor.mjs';\n\n// Classic's dark look: the order page's (palette.js THEMES.dark).\nconst CLASSIC_DARK = {\n '--ground': '#111b21', '--surface': '#202c33', '--panel': '#202c33', '--line': '#2a3942',\n '--text': '#e9edef', '--dim': '#8696a0', '--on-fill': '#111b21'\n};\n\nfunction chosenLook(root) {\n try {\n const saved = window.localStorage.getItem('publicmenu:theme');\n if (saved === 'light' || saved === 'dark') return saved;\n } catch (e) { /* storage refused: the restaurant's look */ }\n return root.getAttribute('data-look') === 'dark' ? 'dark' : 'light';\n}\n\n(function applySiteStyle() {\n const root = document.documentElement;\n const look = chosenLook(root);\n root.setAttribute('data-look', look);\n root.style.colorScheme = look;\n const style = root.getAttribute('data-style');\n const colour = root.getAttribute('data-colour') || undefined;\n if (style && FONTS[style]) {\n const vars = styleVars(look, style, colour);\n Object.entries(vars).forEach(([name, value]) => root.style.setProperty(name, value));\n root.setAttribute('data-styled', 'true');\n return;\n }\n if (look !== 'dark') return;\n const accent = isColor(colour) ? accents(colour).dark : '#00a884';\n Object.entries({ ...CLASSIC_DARK, '--accent': accent, '--fill': accent }).forEach(([name, value]) => root.style.setProperty(name, value));\n}());\n"], "mappings": "MAUA,IAAMA,EAAe,UACfC,EAAc,UAKdC,EAAa,UAGnB,IAAIC,EAAU,KAOP,SAASC,GAAQ,CACtB,OAAOC,CACT,CAEO,SAASC,EAAQC,EAAK,CAC3B,OAAO,OAAOA,GAAQ,UAAY,kBAAkB,KAAKA,CAAG,CAC9D,CAEA,IAAMC,EAAOD,GAAQ,CAAC,EAAG,EAAG,CAAC,EAAE,IAAKE,GAAM,SAASF,EAAI,MAAME,EAAGA,EAAI,CAAC,EAAG,EAAE,CAAC,EACrEC,EAASC,GAAU,IAAIA,EAAM,IAAKC,GAAM,KAAK,MAAM,KAAK,IAAI,IAAK,KAAK,IAAI,EAAGA,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,SAAS,EAAG,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAExH,SAASC,EAAUN,EAAK,CAC7B,GAAM,CAACO,EAAGC,EAAGC,CAAC,EAAIR,EAAID,CAAG,EAAE,IAAKK,GAAM,CACpC,IAAMK,EAAIL,EAAI,IACd,OAAOK,GAAK,OAAUA,EAAI,QAAUA,EAAI,MAAS,QAAU,GAC7D,CAAC,EACD,MAAO,OAASH,EAAI,MAASC,EAAI,MAASC,CAC5C,CAEO,SAASE,EAASC,EAAGH,EAAG,CAC7B,GAAM,CAACI,EAAIC,CAAE,EAAI,CAACR,EAAUM,CAAC,EAAGN,EAAUG,CAAC,CAAC,EAAE,KAAK,CAACM,EAAGC,IAAMA,EAAID,CAAC,EAClE,OAAQF,EAAK,MAASC,EAAK,IAC7B,CAQO,SAASG,EAAMC,EAAK,CACzB,GAAM,C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AM,OAAS,OAAS,OAC9D,EAEC,UAA0B,CACzB,IAAMA,EAAO,SAAS,gBAChBE,EAAOH,EAAWC,CAAI,EAC5BA,EAAK,aAAa,YAAaE,CAAI,EACnCF,EAAK,MAAM,YAAcE,EACzB,IAAMC,EAAQH,EAAK,aAAa,YAAY,EACtCI,EAASJ,EAAK,aAAa,aAAa,GAAK,OACnD,GAAIG,GAASE,EAAMF,CAAK,EAAG,CACzB,IAAMG,EAAOC,EAAUL,EAAMC,EAAOC,CAAM,EAC1C,OAAO,QAAQE,CAAI,EAAE,QAAQ,CAAC,CAACE,EAAMC,CAAK,IAAMT,EAAK,MAAM,YAAYQ,EAAMC,CAAK,CAAC,EACnFT,EAAK,aAAa,cAAe,MAAM,EACvC,MACF,CACA,GAAIE,IAAS,OAAQ,OACrB,IAAMQ,EAASC,EAAQP,CAAM,EAAIQ,EAAQR,CAAM,EAAE,KAAO,UACxD,OAAO,QAAQ,CAAE,GAAGN,EAAc,WAAYY,EAAQ,SAAUA,CAAO,CAAC,EAAE,QAAQ,CAAC,CAACF,EAAMC,CAAK,IAAMT,EAAK,MAAM,YAAYQ,EAAMC,CAAK,CAAC,CAC1I,GAAE", "names": ["LIGHT_GROUND", "DARK_GROUND", "DARK_PANEL", "current", "brand", "current", "isColor", "hex", "rgb", "i", "toHex", "parts", "v", "luminance", "r", "g", "b", "c", "contrast", "a", "hi", "lo", "x", "y", "toHsl", "hex", "r", "g", "b", "rgb", "v", "max", "min", "l", "d", "s", "fromHsl", "h", "toHex", "q", "p", "hue", "t", "x", "readableOn", "ground", "lighter", "ratio", "colour", "step", "contrast", "accents", "hex", "readableOn", "LIGHT_GROUND", "DARK_GROUND", "DARK_PANEL", "INK", "LINE", "FILL", "ON_FILL", "SURFACE", "DISPLAY", "SHAPES", "shapeVars", "style", "table", "SHAPES", "name", "value", "SHAPE_VARS", "SITE_STYLES", "OUR_GREEN", "SYSTEM", "FONTS", "current", "clamp", "n", "low", "high", "wordsOn", "fill", "dark", "best", "contrast", "wordsAmong", "hex", "grounds", "lighter", "colour", "ground", "readableOn", "standsOn", "stylePalette", "style", "mode", "brand", "SITE_STYLES", "isColor", "OUR_GREEN", "h", "s", "l", "toHsl", "tone", "most", "light", "fromHsl", "p", "finish", "keep", "loud", "STYLE_VARS", "SHAPE_VARS", "styleVars", "mode", "style", "current", "hex", "brand", "p", "stylePalette", "FONTS", "shapeVars", "CLASSIC_DARK", "chosenLook", "root", "saved", "look", "style", "colour", "FONTS", "vars", "styleVars", "name", "value", "accent", "isColor", "accents"] }