{"version":3,"file":"SEO_Structured_Data.CqtdrAK5.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/x3rlrkTUQrsa9YTeP307/T3URu29hNyeHJAvDMnb2/SEO_Structured_Data.js"],"sourcesContent":["// User request: Create a Framer code component named \"SEO Structured Data\" that injects JSON-LD structured data into <head> via useEffect with cleanup, supports schemaType options (Organization, Person, BreadcrumbList) defaulting to Organization, keeps schema values hardcoded, uses unique script IDs per schema type, and remains visually invisible on canvas.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SEOStructuredData(props){const{schemaType=\"Organization\"}=props;const schemaContent=useMemo(()=>{if(schemaType===\"Organization\"){return{\"@context\":\"https://schema.org\",\"@type\":[\"Organization\",\"ProfessionalService\"],name:\"Holdfast Environmental Consulting Ltd.\",url:\"https://holdfastenvironmental.ca\",logo:\"https://framerusercontent.com/images/NrS6euNTbsw5MOmvhEToLmz.png\",description:\"Science-based aquatic and marine environmental consulting across British Columbia. Environmental assessment, regulatory permitting, environmental monitoring, habitat assessment, RAPR support, and environmental data analysis.\",address:{\"@type\":\"PostalAddress\",addressLocality:\"North Vancouver\",addressRegion:\"BC\",addressCountry:\"CA\"},areaServed:\"British Columbia\",telephone:\"+16723997403\",email:\"info@holdfastenvironmental.ca\",founder:{\"@type\":\"Person\",name:\"Daniel Wuitchik\",jobTitle:\"Founder, Registered Professional Biologist (RPBio)\",description:\"Aquatic and marine biologist, PhD, RPBio\"}};}if(schemaType===\"Person\"){return{\"@context\":\"https://schema.org\",\"@type\":\"Person\",name:\"Daniel Wuitchik\",jobTitle:\"Founder, Registered Professional Biologist (RPBio)\",description:\"Aquatic and computational biologist with experience on marine and freshwater projects. Founder of Holdfast Environmental Consulting Ltd., North Vancouver, British Columbia.\",worksFor:{\"@type\":\"Organization\",name:\"Holdfast Environmental Consulting Ltd.\",url:\"https://holdfastenvironmental.ca\"},url:\"https://holdfastenvironmental.ca/aboutus\"};}return null;},[schemaType]);useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}const scriptId=`seo-structured-data-${schemaType.toLowerCase()}`;const existingScript=document.getElementById(scriptId);if(existingScript){existingScript.remove();}if(!schemaContent){return;}const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.id=scriptId;script.text=JSON.stringify(schemaContent);document.head.appendChild(script);return()=>{script.remove();};},[schemaType,schemaContent]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:0,height:0,overflow:\"hidden\"}});}addPropertyControls(SEOStructuredData,{schemaType:{type:ControlType.Enum,title:\"Schema Type\",options:[\"Organization\",\"Person\",\"BreadcrumbList\"],optionTitles:[\"Organization\",\"Person\",\"BreadcrumbList\"],defaultValue:\"Organization\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SEOStructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SEO_Structured_Data.map"],"mappings":"+LAIG,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,aAAW,gBAAgB,EAAY,EAAcA,MAAgB,IAAa,eAAsB,CAAC,WAAW,qBAAqB,QAAQ,CAAC,eAAe,qBAAqB,EAAE,KAAK,yCAAyC,IAAI,mCAAmC,KAAK,mEAAmE,YAAY,mOAAmO,QAAQ,CAAC,QAAQ,gBAAgB,gBAAgB,kBAAkB,cAAc,KAAK,eAAe,IAAI,EAAE,WAAW,mBAAmB,UAAU,eAAe,MAAM,gCAAgC,QAAQ,CAAC,QAAQ,SAAS,KAAK,kBAAkB,SAAS,qDAAqD,YAAY,0CAA0C,CAAC,EAAM,IAAa,SAAgB,CAAC,WAAW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