{"version":3,"file":"FAQWrapper.CdPdK5pw.mjs","names":["useState","_Fragment","React","__esmMin","e","init_npm_react_18_3_1","init_jsx_runtime","l","_e","addPropertyControls","init_framer_DS5RHCUB","ControlType","MyWrapperComponent","gtmState","setGtmState","props","faqQuestionOrAnswer","questionElement","findElementWithFramerName","node","answerElement","newState","state","index","init_FAQWrapper","element","targetFramerName","_node_childNodes","childNode","matchElement"],"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":"A,yLAsBA,SAAwBY,EAAmB,EAAM,CAAC,GAAK,CAACC,EAASC,GAAad,EAAS,CAAC,CAAC,EAAE,MAAoB,gBAAKC,EAAU,CAAC,SAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,EAAE,SAASC,EAAM,SAAS,IAAIa,EAAM,MAAM,EAAoB,IAAyB,gBAAM,eAAeC,CAAmB,EAAuB,g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