{"version":3,"file":"StructuredData.98dJsojD.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_D6uXRwWs","addPropertyControls","ControlType","parseFaq","parsed","json","StructuredData","props","data","kind","image","datePublished","author","url","faqJson","item","init_StructuredData","p"],"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":"A,4JAA+F,SAASM,EAAS,EAAK,CAAC,GAAG,CAAC,IAAMC,EAAO,KAAK,MAAMC,CAAI,EAAE,OAAO,MAAM,QAAQD,CAAM,EAAEA,EAAO,CAAC,CAAE,MAAM,CAAC,MAAM,CAAC,CAAE,CAAC,CAO9M,SAAwBE,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,MAAM,UAAQ,KAAK,WAAS,GAAG,cAAY,GAAG,QAAM,gBAAc,SAAO,iBAAiB,MAAI,IAAIC,EAAUC,EAAK,AAA8UA,EAA3UC,IAAO,UAAgB,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAS,cAAY,GAAGC,GAAO,IAAI,CAAC,MAAM,CAACA,EAAM,GAAG,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