{"version":3,"file":"CrawlableText.B9-V-gE6.mjs","names":["React.useState","React.Fragment","_Fragment"],"sources":["https:/framerusercontent.com/modules/6hwRQOJBhKvu1zgUZHWW/FD1T3NK4rIJfHFZXvehy/CrawlableText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";const SR={position:\"absolute\",width:1,height:1,margin:-1,padding:0,border:0,overflow:\"hidden\",clip:\"rect(0 0 0 0)\",clipPath:\"inset(50%)\",whiteSpace:\"nowrap\",pointerEvents:\"none\"};const isHtml=s=>/<[a-z][^>]*>/i.test(s);function Body({text}){return isHtml(text)?/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:text}}):/*#__PURE__*/_jsx(\"p\",{children:text});}export function CrawlerCopy({items,answer}){const[mounted,setMounted]=React.useState(false);React.useEffect(()=>setMounted(true),[]);if(mounted)return null;const list=(Array.isArray(items)?items:[]).filter(it=>it&&(typeof it.q===\"string\"&&it.q.trim()||typeof it.a===\"string\"&&it.a.trim()));const hasAnswer=typeof answer===\"string\"&&answer.trim()!==\"\";if(!list.length&&!hasAnswer)return null;return /*#__PURE__*/_jsxs(\"div\",{dir:\"auto\",style:SR,children:[hasAnswer?/*#__PURE__*/_jsx(Body,{text:answer}):null,list.length?/*#__PURE__*/_jsx(\"dl\",{children:list.map((it,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[it.q?/*#__PURE__*/_jsx(\"dt\",{children:it.q}):null,it.a?/*#__PURE__*/_jsx(\"dd\",{children:/*#__PURE__*/_jsx(Body,{text:it.a})}):null]},i))}):null]});}// Override for accordion modules whose code is not in this project (the Arabic FAQ, privacy,\n// terms and cancellation sections: props `title` + `items: {q, a}[]` or `title` + `answer`).\nexport function withCrawlableText(Component){return props=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props}),/*#__PURE__*/_jsx(CrawlerCopy,{items:props?.items,answer:props?.answer})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"CrawlerItem\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CrawlerCopy\":{\"type\":\"reactComponent\",\"name\":\"CrawlerCopy\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCrawlableText\":{\"type\":\"reactHoc\",\"name\":\"withCrawlableText\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CrawlableText.map"],"mappings":"oIAAsU,SAAS,EAAK,CAAC,QAAM,CAAC,OAAO,EAAO,CAAI,EAAe,EAAK,MAAM,CAAC,wBAAwB,CAAC,OAAO,CAAI,CAAC,CAAC,EAAe,EAAK,IAAI,CAAC,SAAS,CAAI,CAAC,CAAE,CAAC,SAAgB,EAAY,CAAC,QAAM,UAAQ,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAA2C,GAAzC,MAAoB,EAAW,EAAI,EAAE,CAAC,CAAC,EAAK,EAAQ,OAAO,KAAK,IAAM,GAAM,MAAM,QAAQ,CAAK,EAAE,EAAM,CAAC,EAAA,CAAG,OAAO,GAAI,IAAK,OAAO,EAAG,GAAI,UAAU,EAAG,EAAE,KAAK,GAAG,OAAO,EAAG,GAAI,UAAU,EAAG,EAAE,KAAK,EAAE,EAAQ,EAAU,OAAO,GAAS,UAAU,EAAO,KAAK,IAAI,GAA2C,MAArC,CAAC,EAAK,QAAQ,CAAC,EAAiB,KAAyB,EAAM,MAAM,CAAC,IAAI,OAAO,MAAM,EAAG,SAAS,CAAC,EAAuB,EAAK,EAAK,CAAC,KAAK,CAAM,CAAC,EAAE,KAAK,EAAK,OAAoB,EAAK,KAAK,CAAC,SAAS,EAAK,KAAK,EAAG,IAAiB,EAAMC,EAAe,CAAC,SAAS,CAAC,EAAG,EAAe,EAAK,KAAK,CAAC,SAAS,EAAG,CAAC,CAAC,EAAE,KAAK,EAAG,EAAe,EAAK,KAAK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