{"version":3,"file":"FAQWrapper.PYFNLSnM.mjs","names":["useState","_Fragment","React"],"sources":["https:/framerusercontent.com/modules/IIzsz9Xoa85LVnvEmi10/ktPT6spJMZXdJAb4wRxv/FAQWrapper.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import React,{useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/*\n *\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// Function to generate structured data (currently not implemented and only guides are reference)\n//const generateStructuredData = (state) => {\n// return {\n// \"@context\": \"https://schema.org\",\n// \"@type\": \"FAQPage\",\n// mainEntity: state.map(({ question, answer }) => ({\n//   \"@type\": \"Question\",\n// name: question,\n// acceptedAnswer: {\n//      \"@type\": \"Answer\",\n//        text: answer,\n//      },\n//    })),\n//  }\n//}\nconst findElementWithFramerName=(node,targetFramerName)=>{var _node_dataset;let element=null;if((node===null||node===void 0?void 0:(_node_dataset=node.dataset)===null||_node_dataset===void 0?void 0:_node_dataset.framerName)===targetFramerName){element=node;}else{var // Recursively traverse child nodes if they exist\n_node_childNodes;node===null||node===void 0?void 0:(_node_childNodes=node.childNodes)===null||_node_childNodes===void 0?void 0:_node_childNodes.forEach(childNode=>{if(childNode.nodeType===1){const matchElement=findElementWithFramerName(childNode,targetFramerName);if(matchElement)element=matchElement;}});}return element;};// Your main wrapper component\nexport default function MyWrapperComponent(props){const[gtmState,setGtmState]=useState([]);return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\"},children:React.Children.map(props.faqs,(faqQuestionOrAnswer,index)=>{if(/*#__PURE__*/React.isValidElement(faqQuestionOrAnswer)){return /*#__PURE__*/React.cloneElement(faqQuestionOrAnswer,{style:{width:\"100%\"},ref:node=>{const questionElement=findElementWithFramerName(node,\"Question\");const answerElement=findElementWithFramerName(node,\"Answer\");setGtmState(state=>{var _questionElement_textContent,_answerElement_textContent;const newState=[...state];newState[index]={question:questionElement===null||questionElement===void 0?void 0:(_questionElement_textContent=questionElement.textContent)===null||_questionElement_textContent===void 0?void 0:_questionElement_textContent.trim(),answer:answerElement===null||answerElement===void 0?void 0:(_answerElement_textContent=answerElement.textContent)===null||_answerElement_textContent===void 0?void 0:_answerElement_textContent.trim()};return newState;});}});}return faqQuestionOrAnswer;})})});}const contentDivStyle={backgroundColor:\"rgb(242, 242, 243)\",display:\"flex\",flexFlow:\"column nowrap\",overflow:\"hidden\",padding:\"64px 40px 40px\",position:\"relative\",maxWidth:\"100%\",borderRadius:\"24px\"};const h2Style={fontFamily:'\"Inter-Bold\", \"Inter\", \"Inter Placeholder\", sans-serif',fontSize:\"56px\",fontWeight:700,letterSpacing:\"-2.3px\",lineHeight:\"1.1em\",marginTop:0,marginBottom:\"24px\",color:\"#111111\"};// Framer property controls\naddPropertyControls(MyWrapperComponent,{faqs:{type:ControlType.Array,propertyControl:{type:ControlType.ComponentInstance}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MyWrapperComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQWrapper.map"],"mappings":"yLAsBA,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAS,CAAC,CAAC,EAAE,OAAoB,EAAKC,EAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,EAAE,SAASC,EAAM,SAAS,IAAI,EAAM,MAAM,EAAoB,IAAyB,EAAM,eAAe,CAAmB,EAAuB,EAAM,aAAa,EAAoB,CAAC,MAAM,CAAC,MAAM,MAAM,EAAE,IAAI,GAAM,CAAC,IAAM,EAAgB,EAA0B,EAAK,UAAU,EAAQ,EAAc,EAA0B,EAAK,QAAQ,EAAE,EAAY,GAAO,CAA6D,IAAM,EAAS,CAAC,GAAG,CAAK,EAAgb,MAA9a,GAAS,GAAO,CAAC,SAAS,GAAsG,aAA+F,KAAK,EAAE,OAAO,GAA8F,aAA2F,KAAK,CAAC,EAAS,CAAS,CAAC,CAAE,CAAC,CAAC,EAAU,CAAqB,CAAC,CAAC,CAAC,CAAC,CAAE,mBAtBliC,IAAmC,IAAoD,EAoBjJ,GAA2B,EAAK,IAAmB,CAAmB,IAAI,EAAQ,KAAK,GAAI,GAAsD,SAA6D,aAAc,EAAkB,EAAQ,MAAU,CAAC,IACvQ,EAAiB,GAAO,OAA4B,EAAiB,EAAK,aAAc,MAAuC,EAAiB,QAAQ,GAAW,CAAC,GAAG,EAAU,WAAW,EAAE,CAAC,IAAM,EAAa,EAA0B,EAAU,CAAgB,EAAK,IAAa,EAAQ,EAAa,CAAC,CAAC,CAAE,CAAC,OAAO,CAAQ,EAEjU,EAAoB,EAAmB,CAAC,KAAK,CAAC,KAAK,EAAY,MAAM,gBAAgB,CAAC,KAAK,EAAY,iBAAiB,CAAC,CAAC,CAAC"}