{"version":3,"file":"FAQ.DlgJfLM2.mjs","names":["React.useId","React.useState"],"sources":["https:/framerusercontent.com/modules/bEITEmdifIlsedeNmSu2/DSlITglIgedUS0XgJPMc/FAQ.js"],"sourcesContent":["// ORQEN FAQ — accessible accordion (buttons with aria-expanded / aria-controls, one or many open). Optional side panel\n// with a help line and link (e.g. \"Read the billing documentation\"). Questions are one per line: Question | Answer.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{AnimatePresence,motion}from\"framer-motion\";import{Section,Words,Reveal,Icon,Eyebrow,lines,cells,toneControl,idControl,linkControl,EASE_OUT}from\"https://framerusercontent.com/modules/Msp2IT6r9ttYp2ONyAUc/aBrEELJtq6hlVSvL3pkO/Kit.js\";const CSS=`\n.oq-faq .fq-lay{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:64px;align-items:start}\n.oq-faq .fq-side{position:sticky;top:110px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}\n.oq-faq .fq-help{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:8px;padding:18px;border-radius:16px;background:var(--glass);border:1px solid var(--line)}\n.oq-faq .fq-help b{font-size:15px;color:var(--text)}\n.oq-faq .fq-help span{font-size:14px;line-height:1.55;color:var(--text2)}\n.oq-faq .fq-list{display:grid;gap:10px}\n.oq-faq .fq-item{border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));border:1px solid var(--line);transition:border-color .25s}\n.oq-faq .fq-item[data-open]{border-color:rgba(0,201,219,.35)}\n.oq-faq .fq-q{display:flex;align-items:center;gap:16px;width:100%;padding:20px 22px;text-align:left;font-size:16.5px;font-weight:600;line-height:1.4;color:var(--text);border-radius:16px}\n.oq-faq .fq-q span{flex:1}\n.oq-faq .fq-q i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;flex-shrink:0;color:var(--text2);border:1px solid var(--line2);transition:transform .3s var(--e-out),color .2s,border-color .2s}\n.oq-faq .fq-item[data-open] .fq-q i{transform:rotate(45deg);color:var(--accent);border-color:rgba(0,201,219,.5)}\n.oq-faq .fq-a{overflow:hidden}\n.oq-faq .fq-a p{padding:0 22px 20px;font-size:15px;line-height:1.65;color:var(--text2);max-width:640px}\n@container (max-width:1000px){.oq-faq .fq-lay{grid-template-columns:minmax(0,1fr);gap:36px}.oq-faq .fq-side{position:static}}\n@container (max-width:600px){.oq-faq .fq-q{padding:16px 16px;font-size:15.5px}.oq-faq .fq-a p{padding:0 16px 16px}}\n`;export default function FAQ(props){const{eyebrow,title,bracket,subtitle,items,multiple,firstOpen,helpTitle,helpText,helpLabel,helpLink,sectionId,tone,style}=props;// One question per line: Question | Answer\nconst list=lines(items).map(l=>{const[q,...rest]=cells(l);return{q,a:rest.join(\" | \")};});const uid=React.useId?React.useId().replace(/[^a-zA-Z0-9]/g,\"\"):\"fq\";const[open,setOpen]=React.useState(firstOpen?[0]:[]);const toggle=i=>setOpen(o=>o.includes(i)?o.filter(x=>x!==i):multiple?[...o,i]:[i]);return /*#__PURE__*/_jsx(Section,{className:\"oq-faq\",css:CSS,style:style,tone:tone,id:sectionId,label:\"Frequently asked questions\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"oq-wrap fq-lay\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"fq-side\",children:[eyebrow&&/*#__PURE__*/_jsx(Reveal,{children:/*#__PURE__*/_jsx(Eyebrow,{text:eyebrow})}),/*#__PURE__*/_jsx(Words,{text:title,as:\"h2\",className:\"oq-h2\",bracket:bracket}),subtitle&&/*#__PURE__*/_jsx(Reveal,{delay:.1,children:/*#__PURE__*/_jsx(\"p\",{className:\"oq-lead\",children:subtitle})}),(helpTitle||helpText)&&/*#__PURE__*/_jsxs(Reveal,{delay:.18,className:\"fq-help\",children:[helpTitle&&/*#__PURE__*/_jsx(\"b\",{children:helpTitle}),helpText&&/*#__PURE__*/_jsx(\"span\",{children:helpText}),helpLabel&&/*#__PURE__*/_jsxs(\"a\",{className:\"oq-link\",href:helpLink||\"#\",children:[helpLabel,/*#__PURE__*/_jsx(Icon,{name:\"arrow-right\",size:15})]})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"fq-list\",children:list.map((it,i)=>{const isOpen=open.includes(i);return /*#__PURE__*/_jsx(Reveal,{delay:i*.05,children:/*#__PURE__*/_jsxs(\"div\",{className:\"fq-item\",\"data-open\":isOpen?\"\":undefined,children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0},children:/*#__PURE__*/_jsxs(\"button\",{className:\"fq-q\",\"aria-expanded\":isOpen,\"aria-controls\":`${uid}-a${i}`,id:`${uid}-q${i}`,onClick:()=>toggle(i),children:[/*#__PURE__*/_jsx(\"span\",{children:it.q}),/*#__PURE__*/_jsx(\"i\",{\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(Icon,{name:\"plus\",size:15})})]})}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&/*#__PURE__*/_jsx(motion.div,{className:\"fq-a\",id:`${uid}-a${i}`,role:\"region\",\"aria-labelledby\":`${uid}-q${i}`,initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:EASE_OUT},children:/*#__PURE__*/_jsx(\"p\",{children:it.a})})})]})},i);})})]})});}addPropertyControls(FAQ,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:\"FAQ\"},title:{type:ControlType.String,title:\"Title\",displayTextArea:true,defaultValue:\"Integration questions, answered.\"},bracket:{type:ControlType.Boolean,title:\"Brackets\",defaultValue:true},subtitle:{type:ControlType.String,title:\"Subtitle\",displayTextArea:true,defaultValue:\"\"},items:{type:ControlType.String,title:\"Questions\",displayTextArea:true,defaultValue:\"Do I need to replace my current finance software? | The goal is to work with your existing systems wherever supported, rather than require a full replacement.\\nCan I import spreadsheets and PDFs? | The proposed platform should support common financial files, subject to format and processing requirements.\\nWhat if my system isn't listed? | Contact the team to discuss API access, available connectors, and custom integration needs.\\nCan I control what data is shared? | Data access should be scoped to the connected sources and permissions configured for each workflow.\",description:\"One per line: Question | Answer\"},multiple:{type:ControlType.Boolean,title:\"Open many\",defaultValue:false},firstOpen:{type:ControlType.Boolean,title:\"First open\",defaultValue:true},helpTitle:{type:ControlType.String,title:\"Help title\",defaultValue:\"Still have questions?\"},helpText:{type:ControlType.String,title:\"Help text\",displayTextArea:true,defaultValue:\"Tell us which systems you use and we'll walk you through the options.\"},helpLabel:{type:ControlType.String,title:\"Help link label\",defaultValue:\"Contact the team\"},helpLink:linkControl(\"Help link\",\"/contact\"),sectionId:idControl(\"faq\"),tone:toneControl});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ.map"],"mappings":"sWAmBE,SAAwB,EAAI,EAAM,CAAC,GAAK,CAAC,UAAQ,QAAM,UAAQ,WAAS,QAAM,WAAS,YAAU,YAAU,WAAS,YAAU,WAAS,YAAU,OAAK,SAAO,EACzJ,EAAK,EAAM,CAAK,CAAC,CAAC,IAAI,GAAG,CAAC,GAAK,CAAC,EAAE,GAAG,GAAM,EAAM,CAAC,EAAE,MAAM,CAAC,IAAE,EAAE,EAAK,KAAK,KAAK,CAAC,CAAE,CAAC,EAAQ,EAAIA,EAAYA,EAAY,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAAE,KAAU,CAAC,EAAK,GAASC,EAAe,EAAU,CAAC,CAAC,EAAE,CAAC,CAAC,EAAQ,EAAO,GAAG,EAAQ,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,CAAC,EAAE,EAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAoB,EAAK,EAAQ,CAAC,UAAU,SAAS,IAAI,EAAU,QAAW,OAAK,G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