{"version":3,"file":"Blog_FAQ.Cm8Zf4ps.mjs","names":["useState","useMemo","useRef"],"sources":["https:/framerusercontent.com/modules/9Yz7SC5wIZLn655NPIkv/q2MxhAd2taMBz6ECVeT3/Blog_FAQ.js"],"sourcesContent":["// FAQ Accordion component with text parsing and responsive font sizes\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useMemo,startTransition,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * FAQ Accordion with text parsing\n * \n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function BlogFAQ(props){const{faqText,questionFont,answerFont,questionFontMobile,answerFontMobile,backgroundColor,questionColor,answerColor,border,iconColor,itemPadding,style}=props;const[openItems,setOpenItems]=useState(new Set);const[isMobile,setIsMobile]=useState(false);useEffect(()=>{if(typeof window===\"undefined\")return;const checkMobile=()=>{startTransition(()=>{setIsMobile(window.innerWidth<890);});};checkMobile();window.addEventListener(\"resize\",checkMobile);return()=>window.removeEventListener(\"resize\",checkMobile);},[]);// Parse the FAQ text into question-answer pairs\nconst faqItems=useMemo(()=>{const items=[];// Split by triple newlines to allow line breaks within answers\nconst sections=faqText.split(/\\n\\n\\n+/);for(const section of sections){const trimmed=section.trim();if(!trimmed)continue;// Try to find question (ends with ?) and answer pattern\nconst lines=trimmed.split(\"\\n\");let question=\"\";let answer=\"\";// Find the question line (usually first line or line ending with ?)\nfor(let i=0;i<lines.length;i++){const line=lines[i].trim();if(line.endsWith(\"?\")||i===0){question=line;// Rest is the answer\nanswer=lines.slice(i+1).join(\"\\n\").trim();break;}}// If no question mark found, treat first line as question\nif(!question&&lines.length>0){question=lines[0].trim();answer=lines.slice(1).join(\"\\n\").trim();}if(question){items.push({question,answer:answer||\"\"});}}return items;},[faqText]);const activeQuestionFont=isMobile?questionFontMobile:questionFont;const activeAnswerFont=isMobile?answerFontMobile:answerFont;const toggleItem=index=>{startTransition(()=>{setOpenItems(prev=>{const newSet=new Set(prev);if(newSet.has(index)){newSet.delete(index);}else{newSet.add(index);}return newSet;});});};return /*#__PURE__*/_jsx(\"div\",{itemScope:true,itemType:\"https://schema.org/FAQPage\",style:{...style,width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:0,backgroundColor,padding:\"0px\"},children:faqItems.map((item,index)=>{const isOpen=openItems.has(index);return /*#__PURE__*/_jsx(FAQItem,{item:item,index:index,isOpen:isOpen,toggleItem:toggleItem,questionFont:questionFont,activeQuestionFont:activeQuestionFont,questionColor:questionColor,iconColor:iconColor,itemPadding:itemPadding,answerFont:answerFont,activeAnswerFont:activeAnswerFont,answerColor:answerColor,border:border},index);})});}function FAQItem({item,index,isOpen,toggleItem,questionFont,activeQuestionFont,questionColor,iconColor,itemPadding,answerFont,activeAnswerFont,answerColor,border}){const contentRef=useRef(null);const[height,setHeight]=useState(0);useEffect(()=>{if(contentRef.current){setHeight(contentRef.current.scrollHeight);}},[item.answer,activeAnswerFont]);return /*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"transparent\",overflow:\"hidden\",...border,borderTop:\"none\",borderLeft:\"none\",borderRight:\"none\"},itemScope:true,itemProp:\"mainEntity\",itemType:\"https://schema.org/Question\",children:[/*#__PURE__*/_jsxs(\"button\",{onClick:()=>toggleItem(index),style:{width:\"100%\",display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",padding:`${itemPadding}px 0`,border:\"none\",backgroundColor:\"transparent\",cursor:\"pointer\",textAlign:\"left\",gap:16},\"aria-expanded\":isOpen,children:[/*#__PURE__*/_jsx(\"h3\",{itemProp:\"name\",style:{...questionFont,...activeQuestionFont,color:questionColor,flex:1,margin:0,fontWeight:activeQuestionFont.fontWeight},children:item.question}),/*#__PURE__*/_jsx(motion.svg,{width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",fill:\"none\",style:{flexShrink:0},animate:{rotate:isOpen?180:0},transition:{duration:.3,ease:\"easeInOut\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 9L12 15L18 9\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})})]}),/*#__PURE__*/_jsx(\"div\",{itemScope:true,itemProp:\"acceptedAnswer\",itemType:\"https://schema.org/Answer\",style:{maxHeight:isOpen?`${height}px`:\"0\",opacity:isOpen?1:0,overflow:\"hidden\",transition:\"max-height 0.3s ease-in-out, opacity 0.3s ease-in-out\"},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{paddingBottom:`${itemPadding}px`,paddingRight:\"40px\"},children:/*#__PURE__*/_jsx(\"p\",{itemProp:\"text\",style:{...answerFont,...activeAnswerFont,color:answerColor,margin:0,whiteSpace:\"pre-wrap\"},children:item.answer})})})]});}addPropertyControls(BlogFAQ,{faqText:{type:ControlType.String,title:\"FAQ Text\",displayTextArea:true,defaultValue:`What does Zeliot do?\nZeliot is building a real-time data streaming platform that helps enterprises develop, scale, and operate production-grade streaming applications faster using:\n\n• AI-driven workflows\n• Managed Kafka infrastructure\n• Industry-specific streaming capabilities\n\n\nWhat exactly does \"AI-Driven Pipeline\" mean?\nOur AI-driven pipeline uses machine learning to automatically optimize your data streaming workflows, reducing manual configuration and improving performance.\n\n\nHow is Condense better than using any fully managed kafka platform or building on top of Kafka/Flink myself?\nCondense provides pre-built integrations, automated scaling, and AI-powered optimization that would take months to build yourself, allowing you to focus on your business logic instead of infrastructure.\n\n\nIf we deploy in our own cloud (BYOC), how much does Zeliot actually control or access?\nWith BYOC deployment, your data never leaves your cloud environment. Zeliot only accesses metadata and logs necessary for:\n\n• Monitoring and support\n• Performance optimization\n• Security compliance\n\nAll with full transparency and control on your end.`},itemPadding:{type:ControlType.Number,title:\"Item Padding\",defaultValue:24,min:0,max:60,step:1,unit:\"px\"},questionFont:{type:ControlType.Font,title:\"Question Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayFontSize:true,defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},questionFontMobile:{type:ControlType.Font,title:\"Question Font (Mobile)\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},answerFont:{type:ControlType.Font,title:\"Answer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",displayFontSize:true,defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},answerFontMobile:{type:ControlType.Font,title:\"Answer Font (Mobile)\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},questionColor:{type:ControlType.Color,title:\"Question Color\",defaultValue:\"#000000\"},answerColor:{type:ControlType.Color,title:\"Answer Color\",defaultValue:\"#666666\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"#EEEEEE\"}},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Blog_FAQ.map"],"mappings":"wQAMG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,UAAQ,eAAa,aAAW,qBAAmB,mBAAiB,kBAAgB,gBAAc,cAAY,SAAO,YAAU,cAAY,SAAO,EAAW,CAAC,EAAU,GAAcA,EAAS,IAAI,GAAG,EAAO,CAAC,EAAS,GAAaA,EAAS,EAAK,EAAE,MAAc,CAAC,GAAU,IAAS,OAAY,OAAO,IAAM,MAAgB,CAAC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