{"version":3,"file":"FaqList.CE2PlFeU.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/tl0wMPlCT1laBmra3yEB/KCMTE87FCQZXfyMwXHj3/FaqList.js"],"sourcesContent":["// FAQ accordion, with an optional \"What Synteris is not\" list (wording from the brief).\n// FAQ field format: one question per line, \"Question · Answer\". Answers may carry inline links as\n// [label](/path), e.g. \"[Read a case study](/case-studies/...)\". The Basis pricing panels are gone.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{ctlCells}from\"https://framerusercontent.com/modules/JnrYTyOjqjqPtAJfvwc2/bdrAdHGnyxpJnrbnxwxs/controls.js\";import{withLinks}from\"https://framerusercontent.com/modules/DLif1gKEp0hRaG5h0wGG/0xhuExF2Oq3sYBz6rhfs/links.js\";import{Css,Eyebrow,InnerShell,Rise,useMeasure,useStill,LAYOUT_W_CONTROL,lw}from\"https://framerusercontent.com/modules/61YXww0YSbehJLdVTN7C/xytgdOzwgXYHyvvyqgjJ/motion.js\";import{ACCENT,ACCENT_DEEP,EASE_CSS,ELEV,HAIR,HAIR_SOFT,INK,INK2,INK3,MONO,PAPER,SANS}from\"https://framerusercontent.com/modules/jJQJadxiyfiEQ1dJxBbB/6VEtEBxp9IBw73pQJbVS/tokens.js\";const FALLBACK_FAQS=[[\"[Question]\",\"[Answer - Phase 4]\"],[\"[Question]\",\"[Answer - Phase 4]\"],[\"[Question]\",\"[Answer - Phase 4]\"]];// From the brief (\"Synteris is not ...\")\nconst NOT_LIST=[\"A development agency\",\"An outsourced dev team\",\"A generic SaaS product\",\"A self-service AI platform\"];function FaqItem({q,a,open,onToggle,still,idx}){const id=\"faq-\"+idx;return /*#__PURE__*/_jsxs(\"div\",{style:{borderTop:`1px solid ${HAIR}`},children:[/*#__PURE__*/_jsxs(\"button\",{\"aria-expanded\":open,\"aria-controls\":id,onClick:onToggle,style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:16,padding:\"18px 0\",background:\"transparent\",border:\"none\",cursor:\"pointer\",textAlign:\"left\",fontFamily:SANS,fontSize:17,fontWeight:500,color:INK},children:[q,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{fontFamily:MONO,fontSize:16,color:open?ACCENT_DEEP:INK3,transform:open?\"rotate(45deg)\":\"none\",transition:still?\"none\":`transform .25s ${EASE_CSS}`},children:\"+\"})]}),/*#__PURE__*/_jsx(\"div\",{id:id,role:\"region\",hidden:!open,style:{paddingBottom:18,fontSize:15.5,lineHeight:1.65,color:INK2,maxWidth:680},children:withLinks(a)})]});}/** @framerSupportedLayoutWidth any-prefer-fixed\n *  @framerSupportedLayoutHeight auto\n *  @framerIntrinsicWidth 1200 */export function FaqList(props){const FAQS=ctlCells(props.faqs,FALLBACK_FAQS,2);const{heading=\"QUESTIONS\",showNotList=false}=props;const{still}=useStill();const{ref,w}=useMeasure(lw(props));const compact=w<860;const[open,setOpen]=React.useState(0);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{width:\"100%\",background:PAPER,fontFamily:SANS},children:[/*#__PURE__*/_jsx(Css,{}),/*#__PURE__*/_jsx(InnerShell,{compact:compact,children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:compact||!showNotList?\"1fr\":\"1.5fr 1fr\",gap:compact?36:70,alignItems:\"start\"},children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(Eyebrow,{text:heading,still:still}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:18,borderBottom:`1px solid ${HAIR}`},children:FAQS.map(([q,a],i)=>/*#__PURE__*/_jsx(FaqItem,{idx:i,q:q,a:a,open:open===i,onToggle:()=>setOpen(open===i?-1:i),still:still},i))})]}),showNotList&&/*#__PURE__*/_jsx(Rise,{still:still,children:/*#__PURE__*/_jsxs(\"div\",{style:{border:`1px solid ${HAIR}`,borderRadius:14,background:ELEV,padding:compact?18:24},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:MONO,fontSize:10,letterSpacing:\"0.14em\",color:INK3},children:\"WHAT SYNTERIS IS NOT\"}),/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",margin:\"14px 0 0\",padding:0},children:NOT_LIST.map(n=>/*#__PURE__*/_jsxs(\"li\",{style:{display:\"flex\",gap:10,alignItems:\"baseline\",padding:\"10px 0\",borderTop:`1px solid ${HAIR_SOFT}`,fontSize:15,color:INK},children:[/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{color:ACCENT,fontFamily:MONO},children:\"\\xd7\"}),n]},n))})]})})]})})]});}addPropertyControls(FaqList,{layoutWidth:LAYOUT_W_CONTROL,heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"QUESTIONS\"},faqs:{type:ControlType.String,title:\"Faqs\",displayTextArea:true,description:\"one per line: Question \\xb7 Answer\",defaultValue:FALLBACK_FAQS.map(r=>r.join(\" \\xb7 \")).join(\"\\n\")},showNotList:{type:ControlType.Boolean,title:\"Show Not List\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"FaqList\":{\"type\":\"reactComponent\",\"name\":\"FaqList\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"yXAIuH,SAAS,EAAQ,CAAC,IAAE,IAAE,OAAK,WAAS,QAAM,OAAK,CAAC,IAAM,EAAG,OAAO,EAAI,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,UAAU,aAAa,GAAM,EAAE,SAAS,CAAc,EAAM,SAAS,CAAC,gBAAgB,EAAK,gBAAgB,EAAG,QAAQ,EAAS,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,eAAe,gBAAgB,WAAW,SAAS,IAAI,GAAG,QAAQ,SAAS,WAAW,cA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