{"version":3,"file":"FAQWrapper.DhqqAWi6.mjs","names":["useState","_jsx","_Fragment","React","__esmMin","e","init_npm_react_18_3_1","c","init_jsx_runtime","l","_e","addPropertyControls","init_framer_B3LLf74D","ControlType","MyWrapperComponent","props","gtmState","setGtmState","faqQuestionOrAnswer","index","node","questionElement","findElementWithFramerName","answerElement","state","newState","init_FAQWrapper","targetFramerName","element","_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,SAAwBc,EAAmBC,EAAM,CAAC,GAAK,CAACC,EAASC,GAAajB,EAAS,CAAC,CAAC,EAAE,MAAoBC,gBAAKC,EAAU,CAAC,SAAsBD,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,EAAE,SAASE,EAAM,SAAS,IAAIY,EAAM,MAAMG,EAAoBC,IAAyBhB,gBAAM,eAAee,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