/* FAQ page direction — engineered for both human readability and machine extraction (Google AI Overviews, ChatGPT, Perplexity). For each Q: -

question - One-sentence "answer" lead paragraph (extractable snippet) - Longer "detail" paragraph (context for LLMs) All visible by default — no JS-hidden content. FAQPage JSON-LD is injected in the HTML head (not here). */ const { useState: useStateFaq, useEffect: useEffectFaq, useMemo: useMemoFaq } = React; function FaqDirection({ lang, setLang, accent, palette, revealAll, noNav }) { const cart = useCart(); const drop = window.DROP_DATA.drop; const cd = useCountdown(drop.iso); const seo = window.AWOTOWA_SEO; const cats = seo.faq.categories; const items = seo.faq.items; // Group items by category, preserving order const grouped = useMemoFaq(() => { const map = {}; cats.forEach(c => { map[c.id] = []; }); items.forEach(it => { (map[it.cat] || (map[it.cat] = [])).push(it); }); return map; }, [items, cats]); const f = { stack: "'Newsreader', 'Times New Roman', serif", body: 500, display: 600 }; return (
{!noNav && } {!noNav && }
{cats.map((c, ci) => ( it.cat === c.id)} lang={lang} accent={accent} /> ))}
); } // ───────────────────────────────────────────────────────────────── // HERO // ───────────────────────────────────────────────────────────────── function FaqHero({ lang, accent, items }) { return (
{lang === "no" ? "Ofte stilte spørsmål" : "Frequently asked questions"} · BGO · {items.length.toString().padStart(2, "0")} {lang === "no" ? "innlegg" : "entries"}

{lang === "no" ? "Spørsmål," : "Questions,"}
{lang === "no" ? "stort sett besvart." : "mostly answered."}

{lang === "no" ? "Det vi vet — og det vi fortsatt finner ut av. Hvis svaret ditt ikke står her, skriv til " : "What we know — and what we are still figuring out. If your answer is not here, write to "} info@awotowa.com.

); } // ───────────────────────────────────────────────────────────────── // TOC — quick jump to a category // ───────────────────────────────────────────────────────────────── function FaqToc({ lang, accent, cats, grouped }) { return ( ); } // ───────────────────────────────────────────────────────────────── // CATEGORY block // ───────────────────────────────────────────────────────────────── function FaqCategory({ cat, index, items, startN, lang, accent }) { if (!items.length) return null; return (
0{index + 1} · {(items.length).toString().padStart(2, "0")} {lang === "no" ? "spørsmål" : "questions"}

{cat[lang]}

{items.map((it, i) => ( ))}
); } // ───────────────────────────────────────────────────────────────── // FAQ item — uses
for semantic grouping; visible always. // ───────────────────────────────────────────────────────────────── function FaqItem({ it, n, lang, accent }) { return (

{it.q[lang]}

{/* Direct one-sentence answer — what AI Overviews / LLMs extract */}

{lang === "no" ? "Kort svar" : "TL;DR"} {it.answer[lang]}

{/* Longer detail — context for LLMs */}

{it.detail[lang]}

); } // ───────────────────────────────────────────────────────────────── // CTA — still have a question? // ───────────────────────────────────────────────────────────────── function FaqCta({ lang, accent }) { return (
{lang === "no" ? "Fortsatt et spørsmål?" : "Still got a question?"}

{lang === "no" ? "Skriv til oss. Vi svarer." : "Write to us. We answer."}

info@awotowa.com →
); } Object.assign(window, { FaqDirection });