{"version":3,"file":"ArticleSchema.C9AS3eFi.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/OI0MjInNOAegvYhZKm2k/xfcPBPkXPzlXItnH6RFq/ArticleSchema.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Framer image fields resolve to an object ({src, srcSet, ...}); normalize to a URL.\nfunction imgSrc(v){if(!v)return\"\";if(typeof v===\"string\")return v;return v.src||v.url||\"\";}function toISO(s){if(!s)return undefined;try{const d=new Date(s);return isNaN(d.getTime())?s:d.toISOString();}catch{return s;}}/**\n * Emits JSON-LD structured data (Article + Breadcrumb) for CMS article pages.\n * Renders no visible UI. Bind the props to the collection's fields.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n */export default function ArticleSchema(props){const{schemaType=\"BlogPosting\",headline=\"\",datePublished=\"\",dateModified=\"\",authorName=\"When\",imageUrl=\"\",breadcrumbParent=\"Blog\",breadcrumbParentUrl=\"https://www.forwhen.com/explore/blog\"}=props;const article={\"@context\":\"https://schema.org\",\"@type\":schemaType||\"BlogPosting\",headline:headline,author:{\"@type\":\"Organization\",name:authorName||\"When\"},publisher:{\"@type\":\"Organization\",name:\"When\",logo:{\"@type\":\"ImageObject\",url:\"https://framerusercontent.com/images/CnGt6KZLysNUso0XV4j9PpbkaYk.png\"}}};const image=imgSrc(imageUrl);if(image)article.image=[image];if(datePublished)article.datePublished=toISO(datePublished);const mod=toISO(dateModified||datePublished);if(mod)article.dateModified=mod;const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:\"https://www.forwhen.com/\"},{\"@type\":\"ListItem\",position:2,name:breadcrumbParent,item:breadcrumbParentUrl}];if(headline)crumbs.push({\"@type\":\"ListItem\",position:3,name:headline});const breadcrumb={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:crumbs};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(article)}}),/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(breadcrumb)}})]});}addPropertyControls(ArticleSchema,{schemaType:{type:ControlType.Enum,title:\"Type\",options:[\"BlogPosting\",\"NewsArticle\"],defaultValue:\"BlogPosting\"},headline:{type:ControlType.String,title:\"Headline\"},datePublished:{type:ControlType.String,title:\"Published\"},dateModified:{type:ControlType.String,title:\"Modified\"},authorName:{type:ControlType.String,title:\"Author\",defaultValue:\"When\"},imageUrl:{type:ControlType.String,title:\"Image URL\"},breadcrumbParent:{type:ControlType.String,title:\"Crumb Parent\",defaultValue:\"Blog\"},breadcrumbParentUrl:{type:ControlType.String,title:\"Crumb Parent URL\",defaultValue:\"https://www.forwhen.com/explore/blog\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"0\",\"framerIntrinsicWidth\":\"0\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleSchema.map"],"mappings":"qKACA,SAAS,EAAO,EAAE,CAAgD,OAA3C,EAAc,OAAO,GAAI,SAAgB,EAAS,EAAE,KAAK,EAAE,KAAK,GAAxD,EAA2D,CAAC,SAAS,EAAM,EAAE,CAAK,KAAmB,GAAG,CAAC,IAAM,EAAE,IAAI,KAAK,CAAC,EAAE,OAAO,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,EAAE,YAAY,CAAE,MAAM,CAAC,OAAO,CAAE,CAAC,CAOtN,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,aAAW,cAAc,WAAS,GAAG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