{"version":3,"file":"FusionFAQ.CPXDIpiN.mjs","names":["React","useCallback","useState","p"],"sources":["https:/framerusercontent.com/modules/L2ECt6FFGMs7AeqeAeEk/S2QYHk47fY3pY3B5G88Q/FusionFAQ.js"],"sourcesContent":["// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight any\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useCallback,useLayoutEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{fusionChipCSS}from\"https://framerusercontent.com/modules/zwDkmssHNJUHYvxRumQk/Kflp7zmgUCwZlaf90Xog/fusionChip.js\";import{fusionSectionHeaderCSS}from\"https://framerusercontent.com/modules/hwHbIwUKcuHLKUsP82mM/D5BPE5dRdt9mOOTgnTZQ/fusionSectionHeader.js\";import{BG_OPTIONS,BG_VAR,fuseSurfaceDataAttrs,fusionScaleAtViewport,fusionTokenCSS}from\"https://framerusercontent.com/modules/jrXm811URT62aWI5pHGi/oOyM8E7t7H7egCFk8D2e/FusionTokens.js\";// ─── FusionFAQ (Phase 2.7) ───────────────────────────────────────────────────\n// Accordion-style FAQ list with schema.org FAQPage / Question / Answer\n// structured-data markup for SEO. Consumes the consolidated FusionTokens\n// custom properties (`--fuse-text`, `--fuse-text-2`, `--fuse-pink`,\n// `--fuse-bg-*`, `--fuse-border`, …) and exposes a single `background` enum\n// sourced from the shared `BG_OPTIONS`; no per-instance colour overrides.\n//\n// This is the SLIM Phase-2 shape — the component has no `layout` enum (it\n// is a single surface) and intentionally omits the media-neutral-layout\n// scaffolding (`normalizeLayout`, `isMediaBearingLayout`,\n// `isVideoApplicableLayout`, `renderVideo`, `usePrefersReducedMotion`) and\n// the `mediaType` / `video` / `videoPoster` controls. There is no <video>\n// surface here and adding one would break SEO expectations for an FAQ\n// component (the accordion questions are the canonical content surface).\n//\n// CMS / Framer collection binding for `faqs` items — **phase 2** (see\n// `docs/plans/archive/2026-04-17-storybook-signoff-follow-up.md`); phase 1 keeps the\n// array + object controls only.\n//\n// Migration window — this unit is a pure tokens + `background` alignment\n// pass: the only public-surface change is the removal of the legacy\n// `transparentBg` boolean in favour of `background: BG_OPTIONS`. No layout\n// renames, no new layouts to defer, no colour overrides to retire. The\n// accordion open/close behaviour (single vs. `allowMultipleOpen`), the\n// keyboard/`aria-expanded` accessibility, and the schema.org `itemScope`\n// / `itemType` / `itemProp` markup are all preserved verbatim.\n//\n// Note for sibling authors: components with any <video> surface (e.g.\n// FusionClientProof's `quoteVideo`, FusionHero, or any future layout that\n// grows a `<video>`) MUST follow the Hero/Block shape — import\n// `usePrefersReducedMotion` + `renderVideo` and declare the\n// `mediaType` / `video` / `videoPoster` controls. Do NOT copy this slim\n// variant as a template for those.\nconst SCALE={xl:{\"--f-h2\":\"52px\",\"--f-lead\":\"20px\",\"--f-base\":\"18px\",\"--f-pad\":\"100px\",\"--f-max\":\"1366px\"},l:{\"--f-h2\":\"48px\",\"--f-lead\":\"18px\",\"--f-base\":\"16px\",\"--f-pad\":\"80px\",\"--f-max\":\"1200px\"},m:{\"--f-h2\":\"34px\",\"--f-lead\":\"16px\",\"--f-base\":\"15px\",\"--f-pad\":\"72px\",\"--f-max\":\"992px\"},s:{\"--f-h2\":\"28px\",\"--f-lead\":\"16px\",\"--f-base\":\"15px\",\"--f-pad\":\"48px\",\"--f-max\":\"768px\"},xs:{\"--f-h2\":\"22px\",\"--f-lead\":\"15px\",\"--f-base\":\"14px\",\"--f-pad\":\"24px\",\"--f-max\":\"480px\"}};const STYLES=fusionTokenCSS(\".faq-wrap\")+fusionChipCSS(\".faq-wrap\")+fusionSectionHeaderCSS(\".faq-wrap\")+`\n*, *::before, *::after { box-sizing: border-box; }\n.faq-inner{max-width:var(--f-max);margin:0 auto;padding:var(--f-pad);}\n.faq-list{display:flex;flex-direction:column;max-width:800px;margin:0 auto;}\n.faq-item{border-bottom:1px solid var(--fuse-border);}\n.faq-item:first-child{border-top:1px solid var(--fuse-border);}\n.faq-q{width:100%;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0;text-align:left;font-family:'Open Sans',sans-serif;}\n.faq-q:hover{background:var(--fuse-ghost-hover);}\n.faq-qt{font-family:'Inter',sans-serif;font-size:17px;font-weight:600;line-height:1.4;flex:1;color:var(--fuse-text);}\n.faq-ico{flex-shrink:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .3s,background .2s;background:var(--fuse-border-2);}\n.faq-ico svg{transition:transform .3s;}\n.faq-ico.open{background:var(--fuse-pink);}\n.faq-ico.open svg{transform:rotate(45deg);}\n.faq-aw{overflow:hidden;transition:max-height .35s cubic-bezier(.4,0,.2,1),opacity .3s;max-height:0;opacity:0;}\n.faq-aw.open{opacity:1;}\n.faq-a{padding:0 40px 28px 0;font-size:var(--f-base);line-height:var(--f-body-lh);color:var(--fuse-text-2);}\n@media(max-width:992px){.faq-list{max-width:100%;}}\n@media(max-width:768px){.faq-qt{font-size:16px;}.faq-q{padding:20px 0;}}\n@media(max-width:480px){.faq-a{padding-right:0;}.faq-qt{font-size:15px;}}\n`;function FAQRow({item,idx,open,onToggle,viewport}){const ref=React.useRef(null);const[h,setH]=React.useState(0);const measure=useCallback(()=>{const el=ref.current;if(el)setH(el.scrollHeight);},[]);// Remeasure when answer text, viewport scale (typography/padding), or open state\n// changes — otherwise S/XS keep a stale max-height from L/M measurement.\nuseLayoutEffect(()=>{measure();},[item.answer,open,viewport,measure]);React.useEffect(()=>{const el=ref.current;if(!el||typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(()=>measure());ro.observe(el);return()=>ro.disconnect();},[measure]);return /*#__PURE__*/_jsxs(\"div\",{className:\"faq-item\",itemScope:true,itemProp:\"mainEntity\",itemType:\"https://schema.org/Question\",children:[/*#__PURE__*/_jsxs(\"button\",{className:\"faq-q\",onClick:onToggle,\"aria-expanded\":open,\"aria-controls\":`faq-a-${idx}`,children:[/*#__PURE__*/_jsx(\"span\",{className:\"faq-qt\",itemProp:\"name\",children:item.question}),/*#__PURE__*/_jsx(\"span\",{className:`faq-ico${open?\" open\":\"\"}`,\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 1v12M1 7h12\",stroke:\"white\",strokeWidth:\"2\",strokeLinecap:\"round\"})})})]}),/*#__PURE__*/_jsx(\"div\",{id:`faq-a-${idx}`,className:`faq-aw${open?\" open\":\"\"}`,style:{maxHeight:open?`${h}px`:\"0\"},itemScope:true,itemProp:\"acceptedAnswer\",itemType:\"https://schema.org/Answer\",children:/*#__PURE__*/_jsx(\"div\",{ref:ref,className:\"faq-a\",itemProp:\"text\",children:item.answer})})]});}export default function FusionFAQ(props){const{sectionHeading=\"\",sectionBody=\"\",showChip=false,chipLabel=\"\",allowMultipleOpen=false,faqs=[],viewport=\"l\",background=\"Transparent\"}=props;const[open,setOpen]=useState([]);const toggle=i=>{if(allowMultipleOpen){setOpen(p=>p.includes(i)?p.filter(x=>x!==i):[...p,i]);}else{setOpen(p=>p.includes(i)?[]:[i]);}};const bgValue=background in BG_VAR?BG_VAR[background]:\"transparent\";const wrapStyle={background:bgValue,...fusionScaleAtViewport(SCALE,viewport)};return /*#__PURE__*/_jsxs(\"div\",{className:\"faq-wrap\",style:wrapStyle,itemScope:true,itemType:\"https://schema.org/FAQPage\",...fuseSurfaceDataAttrs(background),children:[/*#__PURE__*/_jsx(\"style\",{children:STYLES}),/*#__PURE__*/_jsxs(\"div\",{className:\"faq-inner\",children:[(sectionHeading||showChip)&&/*#__PURE__*/_jsxs(\"div\",{className:\"fuse-sect-hdr fuse-sect-hdr--center fuse-sect-hdr--mb56\",children:[showChip&&chipLabel&&/*#__PURE__*/_jsx(\"span\",{className:\"fuse-chip\",children:chipLabel}),sectionHeading&&/*#__PURE__*/_jsx(\"h2\",{className:\"fuse-sect-title\",children:sectionHeading}),sectionBody&&/*#__PURE__*/_jsx(\"p\",{className:\"fuse-sect-sub fuse-sect-sub--narrow\",children:sectionBody})]}),/*#__PURE__*/_jsx(\"div\",{className:\"faq-list\",children:faqs.map((item,i)=>/*#__PURE__*/_jsx(FAQRow,{item:item,idx:i,open:open.includes(i),onToggle:()=>toggle(i),viewport:viewport},i))})]})]});}FusionFAQ.defaultProps={background:\"Transparent\",viewport:\"l\",sectionHeading:\"Frequently asked questions\",sectionBody:\"\",showChip:false,chipLabel:\"FAQs\",allowMultipleOpen:false,faqs:[{question:\"What is an LMS?\",answer:\"A Learning Management System (LMS) is a platform that helps organisations create, deliver, manage, and track learning and training programmes across their workforce.\"},{question:\"How does L&D drive value in organisations?\",answer:\"Effective L&D reduces onboarding time, improves employee performance, reduces churn, and builds the capability your business needs to adapt and grow — all with measurable ROI.\"},{question:\"What makes Fuse different from other LMS platforms?\",answer:\"Fuse is built for the AI era. Unlike traditional LMS platforms that focus on course completions, Fuse embeds learning into the daily flow of work, uses AI to surface the right knowledge at the right moment, and gives leaders real analytics tied to business outcomes.\"}]};addPropertyControls(FusionFAQ,{background:{type:ControlType.Enum,title:\"Background\",options:BG_OPTIONS,defaultValue:\"Transparent\"},sectionHeading:{type:ControlType.String,title:\"Section heading\"},sectionBody:{type:ControlType.String,title:\"Section body\",displayTextArea:true},showChip:{type:ControlType.Boolean,title:\"Show chip\",defaultValue:false},chipLabel:{type:ControlType.String,title:\"Chip label\",hidden:p=>!p.showChip},allowMultipleOpen:{type:ControlType.Boolean,title:\"Allow multiple open\",defaultValue:false},faqs:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}}},viewport:{type:ControlType.Enum,title:\"Viewport\",options:[\"xl\",\"l\",\"m\",\"s\",\"xs\"],optionTitles:[\"XL — 1750px\",\"L — 1200px (default)\",\"M — 992px\",\"S — 768px\",\"Xs — 480px\"],defaultValue:\"l\"}});\nexport const __FramerM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