{"version":3,"file":"StructuredData.BFBolIs5.mjs","names":["useState","useMemo","__esmMin","init_ssg_sandbox_shims","te","window","_e","init_jsx_runtime","pe","init_npm_react_18_3_1","ce","addPropertyControls","init_framer_Bf4_tcb2","ControlType","normalizeImage","image","normalizeDate","value","normalizePath","withoutTrailing","pathname","cleanValue","trimmed","cleanedArray","item","cleanedObject","key","cleaned","StructuredData","currentUrl","setCurrentUrl","payload","imageUrl","props","published","modified","safeSameAs","url","baseCurrent","currentPath","currentName","breadcrumb","parentUrl","blogPosting","creativeWork","serialized","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/RycSpS9GAaOduRSbS7Ci/erDY5z4jmzy0xGV7Ui3J/StructuredData.js"],"sourcesContent":["// Request: Create a new invisible Framer code component named StructuredData that injects exactly one <script type=\"application/ld+json\"> and never affects layout or visuals. It must be SSR/hydration deterministic: initialize the current URL as empty, then set window.location.href only in an effect; omit URL-dependent properties until available. Escape < in serialized JSON. Omit every empty/undefined property rather than inventing values. Expose controls for schemaType, content, organization/contact/address fields, sameAs array, and breadcrumb fields, and follow the schema output rules for Home, CollectionPage, BlogPosting, and CreativeWork.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{startTransition,useEffect,useMemo,useState}from\"react\";function normalizeImage(image){if(!image)return undefined;if(typeof image===\"string\")return image.trim()||undefined;if(typeof image===\"object\"&&typeof image.src===\"string\"){return image.src.trim()||undefined;}return undefined;}function normalizeDate(value){if(typeof value!==\"string\")return undefined;const trimmed=value.trim();return trimmed||undefined;}function normalizePath(pathname){const withoutTrailing=pathname.replace(/\\/+$/,\"\");return withoutTrailing===\"\"?\"/\":withoutTrailing;}function cleanValue(value){if(value===undefined||value===null)return undefined;if(typeof value===\"string\"){const trimmed=value.trim();return trimmed===\"\"?undefined:trimmed;}if(Array.isArray(value)){const cleanedArray=value.map(item=>cleanValue(item)).filter(item=>item!==undefined);return cleanedArray.length>0?cleanedArray:undefined;}if(typeof value===\"object\"){const cleanedObject={};for(const key of Object.keys(value)){const cleaned=cleanValue(value[key]);if(cleaned!==undefined)cleanedObject[key]=cleaned;}return Object.keys(cleanedObject).length>0?cleanedObject:undefined;}return value;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const[currentUrl,setCurrentUrl]=useState(\"\");useEffect(()=>{if(typeof window===\"undefined\")return;startTransition(()=>setCurrentUrl(window.location.href));},[]);const payload=useMemo(()=>{const imageUrl=normalizeImage(props.image);const published=normalizeDate(props.datePublished);const modified=normalizeDate(props.dateModified);const safeSameAs=[props.sameAs1,props.sameAs2,props.sameAs3].map(url=>typeof url===\"string\"?url.trim():\"\").filter(Boolean);const baseCurrent=currentUrl?new URL(currentUrl):null;const currentPath=baseCurrent?normalizePath(baseCurrent.pathname):undefined;const currentName=props.headline||props.name;let breadcrumb;if(currentUrl&&props.breadcrumbParentName&&props.breadcrumbParentPath&&currentName&&baseCurrent){try{const parentUrl=new URL(props.breadcrumbParentPath,baseCurrent.origin).toString();breadcrumb={\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${baseCurrent.origin}/`},{\"@type\":\"ListItem\",position:2,name:props.breadcrumbParentName,item:parentUrl},{\"@type\":\"ListItem\",position:3,name:currentName,item:currentUrl}]};}catch(_error){breadcrumb=undefined;}}if(props.schemaType===\"Home\"){const data={\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"WebSite\",name:props.siteName,url:currentUrl||undefined},{\"@type\":\"Person\",name:props.personName,sameAs:safeSameAs},{\"@type\":\"ProfessionalService\",name:props.businessName,taxID:props.taxId,email:props.email,telephone:props.telephone,sameAs:safeSameAs,address:{\"@type\":\"PostalAddress\",streetAddress:props.streetAddress,postalCode:props.postalCode,addressLocality:props.addressLocality},url:currentUrl||undefined}]};return cleanValue(data)||{\"@context\":\"https://schema.org\"};}if(props.schemaType===\"CollectionPage\"){const data={\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",name:props.name,url:currentUrl||undefined};return cleanValue(data)||{\"@context\":\"https://schema.org\"};}if(props.schemaType===\"BlogPosting\"){const blogPosting={\"@type\":\"BlogPosting\",headline:props.headline,description:props.description,image:imageUrl,datePublished:published,dateModified:modified,author:props.authorName?{\"@type\":\"Person\",name:props.authorName}:undefined,url:currentUrl||undefined,mainEntityOfPage:currentUrl&&currentPath?{\"@type\":\"WebPage\",\"@id\":currentUrl}:undefined};const data={\"@context\":\"https://schema.org\",...breadcrumb?{\"@graph\":[blogPosting,breadcrumb]}:blogPosting};return cleanValue(data)||{\"@context\":\"https://schema.org\"};}const creativeWork={\"@type\":\"CreativeWork\",name:props.name||undefined,headline:props.headline||undefined,description:props.description,image:imageUrl,datePublished:published,creator:props.authorName?{\"@type\":\"Person\",name:props.authorName}:undefined,url:currentUrl||undefined};const creativeData={\"@context\":\"https://schema.org\",...breadcrumb?{\"@graph\":[creativeWork,breadcrumb]}:creativeWork};return cleanValue(creativeData)||{\"@context\":\"https://schema.org\"};},[currentUrl,props]);const serialized=useMemo(()=>JSON.stringify(payload).replace(/</g,\"\\\\u003c\"),[payload]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,overflow:\"hidden\",pointerEvents:\"none\",opacity:0},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",children:serialized})});}addPropertyControls(StructuredData,{schemaType:{type:ControlType.Enum,title:\"Schema Type\",defaultValue:\"Home\",options:[\"Home\",\"CollectionPage\",\"BlogPosting\",\"CreativeWork\"]},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Date Published\"},dateModified:{type:ControlType.Date,title:\"Date Modified\"},authorName:{type:ControlType.String,title:\"Author Name\",defaultValue:\"\"},siteName:{type:ControlType.String,title:\"Site Name\",defaultValue:\"\"},personName:{type:ControlType.String,title:\"Person Name\",defaultValue:\"\"},businessName:{type:ControlType.String,title:\"Business Name\",defaultValue:\"\"},streetAddress:{type:ControlType.String,title:\"Street\",defaultValue:\"\"},postalCode:{type:ControlType.String,title:\"Postal Code\",defaultValue:\"\"},addressLocality:{type:ControlType.String,title:\"Locality\",defaultValue:\"\"},taxId:{type:ControlType.String,title:\"Tax ID\",defaultValue:\"\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"\"},telephone:{type:ControlType.String,title:\"Telephone\",defaultValue:\"\"},sameAs1:{type:ControlType.String,title:\"Same As 1\",defaultValue:\"\",placeholder:\"https://\"},sameAs2:{type:ControlType.String,title:\"Same As 2\",defaultValue:\"\",placeholder:\"https://\"},sameAs3:{type:ControlType.String,title:\"Same As 3\",defaultValue:\"\",placeholder:\"https://\"},breadcrumbParentName:{type:ControlType.String,title:\"Crumb Parent\",defaultValue:\"\"},breadcrumbParentPath:{type:ControlType.String,title:\"Crumb Path\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,wMAC6J,SAASc,EAAe,EAAM,CAAC,GAAIC,EAAuB,IAAG,OAAOA,GAAQ,SAAS,OAAOA,EAAM,KAAK,GAAG,IAAA,GAAU,GAAG,OAAOA,GAAQ,UAAU,OAAOA,EAAM,KAAM,SAAU,OAAOA,EAAM,IAAI,KAAK,GAAG,IAAA,EAA5F,CAAwH,CAAC,SAASC,EAAc,EAAM,CAAC,GAAG,OAAOC,GAAQ,SAAqD,OAAbA,EAAM,KAAoB,GAAG,IAAA,EAAU,CAAC,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