{"version":3,"file":"SolutionFAQ.CS5SVqvo.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/6brB8DnHENrudhWrviPm/AVrbAkEtQLLZ5aCSxobv/SolutionFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";/**\n * SolutionFAQ — Dual-Purpose AI Signal + Premium Editorial FAQ\n * \n * FEATURES:\n * - Supports 8 Q&A Slots: Ideal for detailed industrial proof-points.\n * - Formatted Answers: Supports line breaks and lists via \"pre-wrap\".\n * - 2-Column Desktop Layout: Content on right, title on left.\n */export default function SolutionFAQ(props){const{titleText=\"Frequently Asked Questions About Marxx.ai\",showUI=true,textColor=\"#E5E5E5\",accentColor=\"#3B82F6\",q1=\"\",q2=\"\",q3=\"\",q4=\"\",q5=\"\",q6=\"\",q7=\"\",q8=\"\",a1=\"\",a2=\"\",a3=\"\",a4=\"\",a5=\"\",a6=\"\",a7=\"\",a8=\"\"}=props;const[openIndex,setOpenIndex]=useState(null);const faqItems=[{q:q1,a:a1},{q:q2,a:a2},{q:q3,a:a3},{q:q4,a:a4},{q:q5,a:a5},{q:q6,a:a6},{q:q7,a:a7},{q:q8,a:a8}].filter(i=>i.q&&i.a);const schemaData={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":faqItems.map(item=>({\"@type\":\"Question\",\"name\":item.q,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":item.a}}))};return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(schemaData)}}),showUI&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\",gap:60,maxWidth:1200,margin:\"0 auto\",padding:\"80px 20px\",flexWrap:\"wrap\",alignItems:\"flex-start\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1 1 300px\"},children:/*#__PURE__*/_jsx(\"h2\",{style:{color:textColor,fontSize:48,fontWeight:700,lineHeight:1.1,letterSpacing:\"-0.03em\",fontFamily:\"'Inter', sans-serif\"},children:titleText})}),/*#__PURE__*/_jsx(\"div\",{style:{flex:\"1.5 1 400px\",display:\"flex\",flexDirection:\"column\"},children:faqItems.map((item,index)=>{const isOpen=openIndex===index;return /*#__PURE__*/_jsxs(\"div\",{style:{borderBottom:`1px solid rgba(255,255,255,0.1)`,paddingBottom:24,paddingTop:index===0?0:24},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>setOpenIndex(isOpen?null:index),style:{width:\"100%\",display:\"flex\",alignItems:\"center\",gap:20,background:\"none\",border:\"none\",cursor:\"pointer\",textAlign:\"left\",padding:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{color:accentColor,fontSize:24,fontWeight:400,minWidth:24,height:24,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:isOpen?\"−\":\"+\"}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,fontSize:18,fontWeight:500,fontFamily:\"'Inter', sans-serif\",lineHeight:1.4},children:item.q})]}),/*#__PURE__*/_jsx(AnimatePresence,{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:\"16px 0 0 44px\",color:\"rgba(255,255,255,0.6)\",lineHeight:1.8,fontSize:16,fontFamily:\"'Inter', sans-serif\",whiteSpace:\"pre-wrap\"},children:item.a})})})]},index);})})]})]});}addPropertyControls(SolutionFAQ,{showUI:{type:ControlType.Boolean,title:\"Show to Users\",defaultValue:true},titleText:{type:ControlType.String,title:\"Section Title\",defaultValue:\"Frequently Asked Questions About Marxx.ai\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#E5E5E5\"},accentColor:{type:ControlType.Color,title:\"Plus\",defaultValue:\"#3B82F6\"},q1:{type:ControlType.String,title:\"Q1\"},a1:{type:ControlType.String,title:\"A1\"},q2:{type:ControlType.String,title:\"Q2\"},a2:{type:ControlType.String,title:\"A2\"},q3:{type:ControlType.String,title:\"Q3\"},a3:{type:ControlType.String,title:\"A3\"},q4:{type:ControlType.String,title:\"Q4\"},a4:{type:ControlType.String,title:\"A4\"},q5:{type:ControlType.String,title:\"Q5\"},a5:{type:ControlType.String,title:\"A5\"},q6:{type:ControlType.String,title:\"Q6\"},a6:{type:ControlType.String,title:\"A6\"},q7:{type:ControlType.String,title:\"Q7\"},a7:{type:ControlType.String,title:\"A7\"},q8:{type:ControlType.String,title:\"Q8\"},a8:{type:ControlType.String,title:\"A8\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SolutionFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SolutionFAQ.map"],"mappings":"yOAOG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,YAAU,4CAA4C,SAAO,GAAK,YAAU,UAAU,cAAY,UAAU,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,GAAG,KAAG,IAAI,EAAW,CAAC,EAAU,GAAcA,EAAS,KAAK,CAAO,EAAS,CAAC,CAAC,EAAE,EAAG,EAAE,EAAG,CAAC,CAAC,EAAE,EAAG,EAAE,EAAG,CAAC,CAAC,EAAE,EAAG,EAAE,EAAG,CAAC,CAAC,EAAE,EAAG,EAAE,EAAG,CAAC,CAAC,EAAE,EAAG,EAAE,EAAG,CAAC,CAAC,EAAE,EAAG,EAAE,EA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