{"version":3,"file":"StructuredData.DD4JKImI.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","init_framer_CDGohruR","ControlType","StructuredData","props","org","siteUrl","data","schemaType","items","faqs","faqJson","parsed","f","description","image","datePublished","category","headline","year","client","json","init_StructuredData","p"],"sources":["https:/framerusercontent.com/modules/tsp4QjKXRC2SC6T8Rz2e/ekLeOb40PI9UBjexBI5c/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Structured Data\n *\n * Outputs schema.org JSON-LD for answer engines and search engines.\n * Renders nothing visible.\n *\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{schemaType=\"FAQPage\",faqs=[],faqJson=\"\",headline=\"\",description=\"\",image,datePublished=\"\",category=\"\",client=\"\",year=\"\",siteUrl=\"https://dynamic-directions-819344.framer.app\"}=props;const org={\"@id\":`${siteUrl}/#organization`};let data;if(schemaType===\"FAQPage\"){let items=faqs;if(faqJson.trim()){try{// Accept an optional prefix such as \"faqs=\" before the JSON array\nconst parsed=JSON.parse(faqJson.slice(Math.max(0,faqJson.indexOf(\"[\"))));if(Array.isArray(parsed))items=parsed;}catch{// Fall back to the FAQs list when the JSON is invalid\n}}data={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.filter(f=>f.question&&f.answer).map(f=>({\"@type\":\"Question\",name:f.question,acceptedAnswer:{\"@type\":\"Answer\",text:f.answer}}))};}else if(schemaType===\"BlogPosting\"){data={\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",headline,description:description||undefined,image:image?.src||undefined,datePublished:datePublished||undefined,articleSection:category||undefined,author:{\"@type\":\"Organization\",name:\"Minima\",...org},publisher:org,inLanguage:\"en\"};}else{data={\"@context\":\"https://schema.org\",\"@type\":\"CreativeWork\",name:headline,description:description||undefined,image:image?.src||undefined,genre:category||undefined,dateCreated:year||undefined,creator:org,sourceOrganization:org,about:client?{\"@type\":\"Organization\",name:client}:undefined};}// Escape \"<\" so content can never close the script tag early\nconst json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{...props.style,position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(StructuredData,{schemaType:{type:ControlType.Enum,title:\"Type\",options:[\"FAQPage\",\"BlogPosting\",\"CreativeWork\"],optionTitles:[\"FAQ\",\"Blog Post\",\"Project\"],defaultValue:\"FAQPage\"},faqs:{type:ControlType.Array,title:\"FAQs\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"What does Minima do?\"},answer:{type:ControlType.String,title:\"Answer\",displayTextArea:true,defaultValue:\"Minima is an independent design studio.\"}}},defaultValue:[{question:\"What does Minima do?\",answer:\"Minima is an independent design studio.\"}],hidden:p=>p.schemaType!==\"FAQPage\"},faqJson:{type:ControlType.String,title:\"FAQs (JSON)\",description:\"Optional. A JSON array of {question, answer}, optionally prefixed with faqs=. Overrides the FAQs list when set.\",displayTextArea:true,defaultValue:\"\",hidden:p=>p.schemaType!==\"FAQPage\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"\",hidden:p=>p.schemaType===\"FAQPage\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\",hidden:p=>p.schemaType===\"FAQPage\"},image:{type:ControlType.ResponsiveImage,title:\"Image\",hidden:p=>p.schemaType===\"FAQPage\"},datePublished:{type:ControlType.Date,title:\"Published\",hidden:p=>p.schemaType!==\"BlogPosting\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\",hidden:p=>p.schemaType===\"FAQPage\"},client:{type:ControlType.String,title:\"Client\",defaultValue:\"\",hidden:p=>p.schemaType!==\"CreativeWork\"},year:{type:ControlType.String,title:\"Year\",defaultValue:\"\",hidden:p=>p.schemaType!==\"CreativeWork\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://dynamic-directions-819344.framer.app\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAWG,SAAwBM,EAAe,EAAM,CAAC,GAAK,CAAC,aAAW,UAAU,OAAK,CAAC,EAAE,UAAQ,GAAG,WAAS,GAAG,cAAY,GAAG,QAAM,gBAAc,GAAG,WAAS,GAAG,SAAO,GAAG,OAAK,GAAG,UAAQ,gDAAgDC,EAAYC,EAAI,CAAC,MAAM,GAAGC,EAAQ,eAAe,EAAMC,EAAK,GAAGC,IAAa,UAAU,CAAC,IAAIC,EAAMC,EAAK,GAAGC,EAAQ,KAAK,EAAG,GAAG,CACnW,IAAMC,EAAO,KAAK,MAAMD,EAAQ,MAAM,KAAK,IAAI,EAAEA,EAAQ,QAAQ,GAAG,CAAC,CAAC,CAAC,EAAK,MAAM,QAAQC,CAAM,IAAE,EAAMA,EAAO,MAAM,CACrH,CAAE,EAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAWH,EAAM,OAAO,GAAGI,EAAE,UAAUA,EAAE,MAAM,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAKA,EAAE,SAAS,eAAe,CAAC,QAAQ,SAAS,KAAKA,EAAE,MAAM,CAAC,EAAE,CAAC,CAAE,KAAM,CAAuUN,EAApUC,IAAa,cAAoB,CAAC,WAAW,qBAAqB,QAAQ,cAAc,WAAS,YAAYM,GAAa,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