{"version":3,"file":"FAQ_Fullwidth_Book_Demo.pX-HB6GJ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/080qKDkJzr0R0rJAD39Z/RBfI4yaR78FuOahpFloa/FAQ_Fullwidth_Book_Demo.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function FAQ(props){const{items,allowMultiple,background,borderColor,hoverBorderColor,hoverBackground,titleColor,contentColor,iconColor,linkColor,borderRadius,itemSpacing,padding,mobilePadding,textpadding,textmobilePadding,hoverScale,shadow}=props;const[openItems,setOpenItems]=useState([]);const toggleItem=index=>{if(allowMultiple){setOpenItems(prev=>prev.includes(index)?prev.filter(i=>i!==index):[...prev,index]);}else{setOpenItems(prev=>prev.includes(index)?[]:[index]);}};// Builds the answer HTML, injecting the link field where {link} appears\n// (or appending it at the end if no placeholder is present)\nconst buildAnswer=item=>{let html=item.answer||\"\";if(item.linkURL&&item.linkText){const target=item.linkNewTab?' target=\"_blank\" rel=\"noopener noreferrer\"':\"\";const anchor='<a href=\"'+item.linkURL+'\"'+target+' style=\"color:'+linkColor+\";text-decoration:underline;cursor:pointer;pointer-events:auto;position:relative;z-index:2;\"+'\">'+item.linkText+\"</a>\";if(html.indexOf(\"{link}\")!==-1){html=html.split(\"{link}\").join(anchor);}else{html=html+\" \"+anchor;}}return html;};const isMobile=typeof window!==\"undefined\"&&window.innerWidth<768;const currentPadding=isMobile?mobilePadding:padding;const textPadding=isMobile?textmobilePadding:textpadding;const titleSize=isMobile?17:17;const contentSize=isMobile?15:15;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:itemSpacing},children:items.map((item,index)=>{const isOpen=openItems.includes(index);return /*#__PURE__*/_jsxs(motion.div,{whileHover:{scale:hoverScale,borderColor:hoverBorderColor,backgroundColor:hoverBackground,boxShadow:shadow?\"0px 12px 30px rgba(141,43,252,.08)\":\"none\"},transition:{type:\"spring\",stiffness:400,damping:30},style:{border:`1px solid ${borderColor}`,borderRadius,background,overflow:\"hidden\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggleItem(index),style:{width:\"100%\",background:\"transparent\",border:\"none\",padding:currentPadding,display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",cursor:\"pointer\",textAlign:\"left\",gap:12},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:titleSize,fontWeight:700,letterSpacing:\"-0.01em\",lineHeight:1.05,color:titleColor,fontFamily:'\"Familjen Grotesk\", \"Familjen Grotesk Placeholder\", sans-serif',flex:1},children:item.question}),/*#__PURE__*/_jsx(motion.span,{animate:{rotate:isOpen?45:0,scale:isOpen?1.15:1},transition:{type:\"spring\",stiffness:500,damping:25},style:{color:iconColor,fontSize:22,fontWeight:500,lineHeight:1,flexShrink:0,fontFamily:'\"Familjen Grotesk\", \"Familjen Grotesk Placeholder\", sans-serif'},children:\"+\"})]}),/*#__PURE__*/_jsx(AnimatePresence,{initial:false,children:isOpen&&/*#__PURE__*/_jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:\"auto\",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},style:{overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"div\",{style:{padding:textPadding,color:contentColor,fontSize:contentSize,lineHeight:1.65,fontFamily:'\"Manrope\", \"Manrope Placeholder\", sans-serif',pointerEvents:\"auto\",position:\"relative\",zIndex:1},onClick:e=>{e.stopPropagation();const target=e.target;const anchor=target.closest?.(\"a\");if(anchor&&anchor.href){e.preventDefault();window.open(anchor.href,anchor.target===\"_blank\"?\"_blank\":\"_self\",anchor.rel?\"noopener,noreferrer\":undefined);}},dangerouslySetInnerHTML:{__html:buildAnswer(item)}})})})]},index);})});}FAQ.defaultProps={allowMultiple:false,background:\"#FFFFFF\",borderColor:\"#E2DCE6\",hoverBorderColor:\"#8d2bfc\",hoverBackground:\"#FFFFFF\",titleColor:\"#232026\",contentColor:\"#6B7280\",iconColor:\"#8d2bfc\",linkColor:\"#8d2bfc\",borderRadius:0,itemSpacing:12,padding:\"22px 26px\",mobilePadding:\"18px 18px\",textpadding:\"0 26px 22px 26px\",textmobilePadding:\"0 18px 18px 18px\",hoverScale:1,shadow:true,items:[{question:\"How long does it take?\",answer:\"30 minutes.\",linkText:\"\",linkURL:\"\",linkNewTab:true},{question:\"What do I need to bring?\",answer:\"Your strategy doc (or business plan) and a list of your senior team. That's enough to build a meaningful cascade.\",linkText:\"\",linkURL:\"\",linkNewTab:true},{question:\"Is this a sales pitch?\",answer:\"No. It's a working session built around your strategy, and you'll see real output.\",linkText:\"\",linkURL:\"\",linkNewTab:true},{question:\"What if we're not funded?\",answer:\"RoleKick isn't only for VC or PE-backed businesses. The execution gap, i.e. strategy that dilutes as it moves through the organisation, exists in any company trying to grow through its people, funded or not. RoleKick gives you the same real-time visibility into how strategy is actually being executed, so you can focus effort where it creates value and grow efficiently. And if you do plan to raise, a business that can clearly show its priorities and how they're tracking is a far easier one to back.\",linkText:\"\",linkURL:\"\",linkNewTab:true},{question:\"What happens to my data?\",answer:\"You stay in control of your data, and it's only ever used to deliver RoleKick to you. We act as a data processor; you remain the data controller. Your data is never used to train general-purpose or cross-customer AI models. If you ever leave, we delete or return your data within 30 days. Full details are in our Data Processing Addendum and AI Use Policy.\",linkText:\"Data Processing Addendum\",linkURL:\"https://www.rolekick.com/legal/data-processing-addendum\",linkNewTab:true}]};addPropertyControls(FAQ,{allowMultiple:{type:ControlType.Boolean,title:\"Multiple Open\"},items:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,description:\"Use {link} where you want the link to appear. If omitted, the link is added at the end.\"},linkText:{type:ControlType.String,title:\"Link Text\",placeholder:\"e.g. Data Processing Addendum\"},linkURL:{type:ControlType.Link,title:\"Link URL\"},linkNewTab:{type:ControlType.Boolean,title:\"Open New Tab\",defaultValue:true}}}},background:{type:ControlType.Color,title:\"Background\"},borderColor:{type:ControlType.Color,title:\"Border\"},hoverBorderColor:{type:ControlType.Color,title:\"Hover Border\"},hoverBackground:{type:ControlType.Color,title:\"Hover Bg\"},titleColor:{type:ControlType.Color,title:\"Title\"},contentColor:{type:ControlType.Color,title:\"Content\"},iconColor:{type:ControlType.Color,title:\"Icon\"},linkColor:{type:ControlType.Color,title:\"Link\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:40},itemSpacing:{type:ControlType.Number,title:\"Gap\",min:0,max:50},padding:{type:ControlType.String,title:\"Padding\"},mobilePadding:{type:ControlType.String,title:\"Mobile Pad\"},textpadding:{type:ControlType.String,title:\"Padding\"},textmobilePadding:{type:ControlType.String,title:\"Mobile Pad\"},hoverScale:{type:ControlType.Number,title:\"Scale\",min:1,max:1.05,step:.005},shadow:{type:ControlType.Boolean,title:\"Shadow\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQ_Fullwidth_Book_Demo.map"],"mappings":"uPAA2L,SAAwB,EAAI,EAAM,CAAC,GAAK,CAAC,QAAM,gBAAc,aAAW,cAAY,mBAAiB,kBAAgB,aAAW,eAAa,YAAU,YAAU,eAAa,cAAY,UAAQ,gBAAc,cAAY,oBAAkB,aAAW,UAAQ,EAAW,CAAC,EAAU,GAAcA,EAAS,CAAC,CAAC,EAAQ,EAAW,GAAO,CAAmB,EAAf,EAA4B,GAAM,EAAK,SAAS,CAAK,EAAE,EAAK,OAAO,GAAG,IAAI,CAAK,EAAE,CAAC,GAAG,EAAK,CAAK,EAAsB,GAAM,EAAK,SAAS,CAAK,EAAE,CAAC,EAAE,CAAC,CAAK,CAAC,CAAG,EAEhqB,EAAY,GAAM,CA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