{"version":3,"file":"Schema.6srEn7MB.mjs","names":[],"sources":["https:/framerusercontent.com/modules/wUpKiAdumtZmBozkaTL9/ySfUC87PsqhBUCK31Ii1/Schema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerDisableUnlink\n */export default function FAQPageSchema(props){const{baseUrl,pageSlug,faq1q,faq1a,faq2q,faq2a,faq3q,faq3a,faq4q,faq4a,faq5q,faq5a,faq6q,faq6a,faq7q,faq7a,faq8q,faq8a,faq9q,faq9a,faq10q,faq10a}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;React.useEffect(()=>{if(isCanvas)return;const BASE_URL=baseUrl;const SCRIPT_ID=\"faqpage-schema\";const pairs=[{q:faq1q,a:faq1a},{q:faq2q,a:faq2a},{q:faq3q,a:faq3a},{q:faq4q,a:faq4a},{q:faq5q,a:faq5a},{q:faq6q,a:faq6a},{q:faq7q,a:faq7a},{q:faq8q,a:faq8a},{q:faq9q,a:faq9a},{q:faq10q,a:faq10a}].map(({q,a})=>({q:(q??\"\").trim(),a:(a??\"\").trim()})).filter(({q,a})=>q.length>0&&a.length>0);const existing=document.getElementById(SCRIPT_ID);// If no valid FAQs, remove schema and exit\nif(pairs.length===0){if(existing?.parentNode)existing.parentNode.removeChild(existing);return;}const jsonLd={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:pairs.map(({q,a})=>({\"@type\":\"Question\",name:q,acceptedAnswer:{\"@type\":\"Answer\",text:a}}))};// Optional page identifier from slug\nconst slug=(pageSlug??\"\").trim();if(slug){const normalizedSlug=slug.startsWith(\"/\")?slug.slice(1):slug;jsonLd[\"@id\"]=BASE_URL+normalizedSlug;}const scriptContent=JSON.stringify(jsonLd);let scriptEl=existing;if(!scriptEl){scriptEl=document.createElement(\"script\");scriptEl.type=\"application/ld+json\";scriptEl.id=SCRIPT_ID;document.head.appendChild(scriptEl);}if(scriptEl.textContent!==scriptContent){scriptEl.textContent=scriptContent;}// Cleanup on unmount\nreturn()=>{const el=document.getElementById(SCRIPT_ID);if(el?.parentNode)el.parentNode.removeChild(el);};},[isCanvas,baseUrl,pageSlug,faq1q,faq1a,faq2q,faq2a,faq3q,faq3a,faq4q,faq4a,faq5q,faq5a,faq6q,faq6a,faq7q,faq7a,faq8q,faq8a,faq9q,faq9a,faq10q,faq10a]);// Invisible anchor component\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,overflow:\"hidden\",opacity:0,pointerEvents:\"none\"}});}addPropertyControls(FAQPageSchema,{baseUrl:{type:ControlType.String,title:\"Base URL\",defaultValue:\"https://www.netcraft.com/\"},pageSlug:{type:ControlType.String,title:\"Page Slug\",defaultValue:\"\",placeholder:\"e.g. pricing, help/faq\"},faq1q:{type:ControlType.String,title:\"1 \\xb7 Question\",defaultValue:\"\"},faq1a:{type:ControlType.String,title:\"1 \\xb7 Answer\",defaultValue:\"\"},faq2q:{type:ControlType.String,title:\"2 \\xb7 Question\",defaultValue:\"\"},faq2a:{type:ControlType.String,title:\"2 \\xb7 Answer\",defaultValue:\"\"},faq3q:{type:ControlType.String,title:\"3 \\xb7 Question\",defaultValue:\"\"},faq3a:{type:ControlType.String,title:\"3 \\xb7 Answer\",defaultValue:\"\"},faq4q:{type:ControlType.String,title:\"4 \\xb7 Question\",defaultValue:\"\"},faq4a:{type:ControlType.String,title:\"4 \\xb7 Answer\",defaultValue:\"\"},faq5q:{type:ControlType.String,title:\"5 \\xb7 Question\",defaultValue:\"\"},faq5a:{type:ControlType.String,title:\"5 \\xb7 Answer\",defaultValue:\"\"},faq6q:{type:ControlType.String,title:\"6 \\xb7 Question\",defaultValue:\"\"},faq6a:{type:ControlType.String,title:\"6 \\xb7 Answer\",defaultValue:\"\"},faq7q:{type:ControlType.String,title:\"7 \\xb7 Question\",defaultValue:\"\"},faq7a:{type:ControlType.String,title:\"7 \\xb7 Answer\",defaultValue:\"\"},faq8q:{type:ControlType.String,title:\"8 \\xb7 Question\",defaultValue:\"\"},faq8a:{type:ControlType.String,title:\"8 \\xb7 Answer\",defaultValue:\"\"},faq9q:{type:ControlType.String,title:\"9 \\xb7 Question\",defaultValue:\"\"},faq9a:{type:ControlType.String,title:\"9 \\xb7 Answer\",defaultValue:\"\"},faq10q:{type:ControlType.String,title:\"10 \\xb7 Question\",defaultValue:\"\"},faq10a:{type:ControlType.String,title:\"10 \\xb7 Answer\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FAQPageSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Schema.map"],"mappings":"kLAKG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,UAAQ,WAAS,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,QAAM,SAAO,UAAQ,EAAY,EAAS,EAAa,SAAS,GAAG,EAAa,OAI7P,OAJoQ,MAAoB,CAAC,GAAG,EAAS,OAAO,IAAM,EAAS,EAAc,EAAU,iBAAuB,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,CAAC,EAAE,EAAM,EAAE,EAAM,CAAC,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