{"version":3,"file":"WebPageSchema.BqF-Rkve.mjs","names":[],"sources":["https:/framerusercontent.com/modules/S2muvVCNLQAJVtkMVsuI/TPfhfEEiKob4ikC08JgU/WebPageSchema.js"],"sourcesContent":["// WebPage Schema Markup for Milemarker SEO\n// This component injects JSON-LD structured data for individual pages\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * WebPage Schema Markup\n * Injects JSON-LD structured data for individual pages\n * \n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function WebPageSchema(props){const{pageName=\"Milemarker - Data Infrastructure for Wealth Management\",pageDescription=\"Transform your wealth management firm with Milemarker's Data & Experience Platform. Connect 130+ systems, unify your data, and power intelligent automation.\",pageUrl=\"https://www.milemarker.co\",pageType=\"WebPage\",breadcrumbs=\"Home\",datePublished=\"2024-01-01\",dateModified=new Date().toISOString().split(\"T\")[0]}=props;useEffect(()=>{// Only inject in preview/production, not in canvas\nif(RenderTarget.current()===RenderTarget.canvas)return;if(typeof window===\"undefined\")return;// Build breadcrumb items\nconst breadcrumbItems=breadcrumbs.split(\",\").map((item,index)=>{const trimmed=item.trim();const[name,url]=trimmed.includes(\"|\")?trimmed.split(\"|\").map(s=>s.trim()):[trimmed,index===0?\"https://www.milemarker.co\":`https://www.milemarker.co/${trimmed.toLowerCase().replace(/\\s+/g,\"-\")}`];return{\"@type\":\"ListItem\",position:index+1,name:name,item:url};});const schema={\"@context\":\"https://schema.org\",\"@type\":pageType,name:pageName,description:pageDescription,url:pageUrl,datePublished,dateModified,publisher:{\"@type\":\"Organization\",name:\"Milemarker\",url:\"https://www.milemarker.co\",logo:{\"@type\":\"ImageObject\",url:\"https://www.milemarker.co/images/milemarker-logo.svg\"}},breadcrumb:{\"@type\":\"BreadcrumbList\",itemListElement:breadcrumbItems},mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":pageUrl}};// Check if script already exists\nconst existingScript=document.querySelector('script[data-schema=\"webpage\"]');if(existingScript){existingScript.innerHTML=JSON.stringify(schema);return;}// Create and inject script\nconst script=document.createElement(\"script\");script.type=\"application/ld+json\";script.setAttribute(\"data-schema\",\"webpage\");script.innerHTML=JSON.stringify(schema);document.head.appendChild(script);return()=>{const scriptToRemove=document.querySelector('script[data-schema=\"webpage\"]');if(scriptToRemove){scriptToRemove.remove();}};},[pageName,pageDescription,pageUrl,pageType,breadcrumbs,datePublished,dateModified]);// Show visual indicator only in canvas\nif(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(\"div\",{style:{width:200,height:40,backgroundColor:\"rgba(14, 165, 233, 0.1)\",border:\"1px dashed rgb(14, 165, 233)\",borderRadius:8,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:12,color:\"rgb(14, 165, 233)\",fontFamily:\"system-ui, sans-serif\"},children:\"📄 WebPage Schema\"});}// Render nothing in preview/production (schema is injected via script)\nreturn null;}addPropertyControls(WebPageSchema,{pageName:{type:ControlType.String,title:\"Page Name\",defaultValue:\"Milemarker - Data Infrastructure for Wealth Management\"},pageDescription:{type:ControlType.String,title:\"Description\",defaultValue:\"Transform your wealth management firm with Milemarker's Data & Experience Platform. Connect 130+ systems, unify your data, and power intelligent automation.\",displayTextArea:true},pageUrl:{type:ControlType.String,title:\"Page URL\",defaultValue:\"https://www.milemarker.co\"},pageType:{type:ControlType.Enum,title:\"Page Type\",options:[\"WebPage\",\"AboutPage\",\"ContactPage\",\"FAQPage\",\"CollectionPage\",\"ItemPage\"],optionTitles:[\"Web Page\",\"About Page\",\"Contact Page\",\"FAQ Page\",\"Collection Page\",\"Item Page\"],defaultValue:\"WebPage\"},breadcrumbs:{type:ControlType.String,title:\"Breadcrumbs\",defaultValue:\"Home\",placeholder:\"Home, Platform, Data Engine\",description:\"Comma-separated. Use 'Name|URL' for custom URLs.\"},datePublished:{type:ControlType.String,title:\"Date Published\",defaultValue:\"2024-01-01\",placeholder:\"YYYY-MM-DD\"},dateModified:{type:ControlType.String,title:\"Date Modified\",defaultValue:new Date().toISOString().split(\"T\")[0],placeholder:\"YYYY-MM-DD\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WebPageSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WebPageSchema.map"],"mappings":"+LAQG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,WAAS,yDAAyD,kBAAgB,+JAA+J,UAAQ,4BAA4B,WAAS,UAAU,cAAY,OAAO,gBAAc,aAAa,eAAa,IAAI,MAAM,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,IAAI,EAMjc,OANuc,MAAc,CAC9Z,GAApD,EAAa,SAAS,GAAG,EAAa,QAAwB,IAAS,OAAY,OACtF,IAAM,EAAgB,EAAY,MAAM,IAAI,CAAC,KAAK,EAAK,IAAQ,CAAC,IAAM,EAAQ,EAAK,MAAM,CAAM,CAAC,EAAK,GAAK,EAAQ,SAAS,IAAI,CAAC,EAAQ,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,EAAQ,IAAQ,EAAE,4BAA4B,6BAA6B,EAAQ,aAAa,CAAC,QAAQ,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,WAAW,SAAS,EAAM,EAAO,OAAK,KAAK,EAAI,EAAG,CAAO,EAAO,CAAC,WAAW,qBAAqB,QAAQ,EAAS,KAAK,EAAS,YAAY,EAAgB,IAAI,EAAQ,gBAAc,eAAa,UAAU,CAAC,QAAQ,eAAe,KAAK,aAAa,IAAI,4BAA4B,KAAK,CAAC,QAAQ,cAAc,IAAI,uDAAuD,CAAC,CAAC,WAAW,CAAC,QAAQ,iBAAiB,gBAAgB,EAAgB,CAAC,iBAAiB,CAAC,QAAQ,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