{"version":3,"file":"StructuredData.CPCXdzuO.mjs","names":[],"sources":["https:/framerusercontent.com/modules/aMGUv27qnSvHjegxpmwG/H2FAHAldAJlPqNG3rErK/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function parseFaq(json){try{const parsed=JSON.parse(json);return Array.isArray(parsed)?parsed:[];}catch{return[];}}/**\n * Outputs JSON-LD structured data for search and answer engines. Renders nothing visible.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function StructuredData(props){const{kind=\"faq\",faqJson=\"[]\",headline=\"\",description=\"\",image,datePublished,author=\"Karen Clements\",url=\"\"}=props;let data;if(kind===\"article\"){data={\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline,description,...image?.src?{image:[image.src]}:{},...datePublished?{datePublished}:{},author:{\"@type\":\"Person\",name:author,url:\"https://dearlife.com.au/about\"},publisher:{\"@id\":\"https://dearlife.com.au/#org\"},...url?{mainEntityOfPage:url}:{}};}else{data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:parseFaq(faqJson).filter(item=>item.question&&item.answer).map(item=>({\"@type\":\"Question\",name:item.question,acceptedAnswer:{\"@type\":\"Answer\",text:item.answer}}))};}const json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Type\",options:[\"faq\",\"article\"],optionTitles:[\"FAQ\",\"Article\"],defaultValue:\"faq\",displaySegmentedControl:true},faqJson:{type:ControlType.String,title:\"FAQ (JSON)\",description:\"Array of { question, answer } objects\",displayTextArea:true,defaultValue:\"[]\",hidden:p=>p.kind!==\"faq\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",hidden:p=>p.kind!==\"article\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true,hidden:p=>p.kind!==\"article\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:p=>p.kind!==\"article\"},datePublished:{type:ControlType.Date,title:\"Published\",hidden:p=>p.kind!==\"article\"},author:{type:ControlType.String,title:\"Author\",defaultValue:\"Karen Clements\",hidden:p=>p.kind!==\"article\"},url:{type:ControlType.String,title:\"Page URL\",defaultValue:\"\",hidden:p=>p.kind!==\"article\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"4JAA+F,SAAS,EAAS,EAAK,CAAC,GAAG,CAAC,IAAM,EAAO,KAAK,MAAM,CAAI,EAAE,OAAO,MAAM,QAAQ,CAAM,EAAE,EAAO,CAAC,CAAE,MAAM,CAAC,MAAM,CAAC,CAAE,CAAC,CAO9M,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,MAAM,UAAQ,KAAK,WAAS,GAAG,cAAY,GAAG,QAAM,gBAAc,SAAO,iBAAiB,MAAI,IAAI,EAAU,EAAmnB,MAA9mB,CAA8U,EAA3U,IAAO,UAAgB,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAS,cAAY,GAAG,GAAO,IAAI,CAAC,MAAM,CAAC,EAAM,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,EAAc,CAAC,eAAa,EAAE,CAAC,EAAE,OAAO,CAAC,QAAQ,SAAS,KAAK,EAAO,IAAI,+BAA+B,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