{"version":3,"file":"StructuredData.DxMSF5mt.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","RenderTarget","init_framer_B1b760uK","ControlType","normalizeJson","raw","stripped","CanvasLabel","text","Script","json","JsonLd","normalized","ArticleSchema","props","headline","url","slug","data","description","image","datePublished","dateModified","authorName","authorRole","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/c3hBt9q4qpJmnjl21mQD/wNGseDDuDqOu31z0eWK7/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Accepts plain JSON or JSON wrapped in a <script> tag and returns safe JSON text, or null if invalid.\nfunction normalizeJson(raw){if(!raw)return null;const stripped=raw.replace(/^\\s*<script[^>]*>/i,\"\").replace(/<\\/script>\\s*$/i,\"\").trim();if(!stripped)return null;try{return JSON.stringify(JSON.parse(stripped)).replace(/</g,\"\\\\u003c\");}catch{return null;}}function CanvasLabel({text}){return /*#__PURE__*/_jsx(\"div\",{style:{fontSize:10,fontFamily:\"monospace\",color:\"#7F56D9\",padding:2},children:text});}function Script({json}){return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}/**\n * Outputs a JSON-LD structured data block from raw JSON text.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function JsonLd({json}){const normalized=normalizeJson(json);if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(CanvasLabel,{text:normalized?\"JSON-LD ✓\":\"JSON-LD (empty or invalid)\"});}return normalized?/*#__PURE__*/_jsx(Script,{json:normalized}):null;}addPropertyControls(JsonLd,{json:{type:ControlType.String,title:\"JSON\",displayTextArea:true,defaultValue:\"\"}});/**\n * Outputs BlogPosting structured data for a blog post.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export function ArticleSchema(props){const{headline,description,image,datePublished,dateModified,authorName,authorRole,slug}=props;if(RenderTarget.current()===RenderTarget.canvas){return /*#__PURE__*/_jsx(CanvasLabel,{text:\"Article JSON-LD\"});}if(!headline)return null;const url=slug?`https://flowflex.ai/blog/${slug}`:undefined;const data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline,description:description||undefined,image:image?.src?[image.src]:undefined,datePublished:datePublished||undefined,dateModified:dateModified||datePublished||undefined,author:authorName?{\"@type\":\"Person\",name:authorName,jobTitle:authorRole||undefined}:{\"@type\":\"Organization\",name:\"FlowFlex\",url:\"https://flowflex.ai\"},publisher:{\"@type\":\"Organization\",name:\"FlowFlex\",url:\"https://flowflex.ai\",logo:{\"@type\":\"ImageObject\",url:\"https://framerusercontent.com/images/dGX54r5YNHt9OE7xsHgAiuslpA.png\"}},mainEntityOfPage:url?{\"@type\":\"WebPage\",\"@id\":url}:undefined,url,inLanguage:\"en\"};return /*#__PURE__*/_jsx(Script,{json:JSON.stringify(data).replace(/</g,\"\\\\u003c\")});}addPropertyControls(ArticleSchema,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Published\"},dateModified:{type:ControlType.Date,title:\"Modified\"},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"\"},authorRole:{type:ControlType.String,title:\"Author Role\",defaultValue:\"\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ArticleSchema\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"JsonLd\":{\"type\":\"reactComponent\",\"name\":\"JsonLd\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\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