{"version":3,"file":"StructuredData.QmUmejpj.mjs","names":["__esmMin","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_CaDWdxiz","toNumber","n","value","build","section","p","url","SITE","image","crumbs","ORG","home","StructuredData","json","props","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/w9xeSJ5ln2PQx4uxujMK/umThJ6cpd5FxY158Daf3/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://brick-forte.com\";const ORG={\"@type\":\"Organization\",\"@id\":SITE+\"/#organization\",name:\"BrickForte LTD\",url:SITE+\"/\",logo:SITE+\"/logo.svg\"};function toNumber(value){const n=parseFloat(String(value||\"\").replace(/[^0-9.]/g,\"\"));return Number.isFinite(n)?n:undefined;}function build(p){const section=p.kind===\"article\"?\"blog\":\"listings\";// Framer cannot bind slug fields to code components; Google takes the page URL from the canonical tag.\nconst url=p.slug?`${SITE}/${section}/${p.slug}`:undefined;const image=p.image?.src?p.image.src.split(\"?\")[0]:undefined;const crumbs={\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:SITE+\"/\"},p.kind===\"article\"?{\"@type\":\"ListItem\",position:2,name:\"Blog\",item:SITE+\"/blog\"}:{\"@type\":\"ListItem\",position:2,name:\"Properties\",item:SITE+\"/listings\"},{\"@type\":\"ListItem\",position:3,name:p.title,...url?{item:url}:{}}]};if(p.kind===\"article\"){return{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",headline:p.title,description:p.description||undefined,image,datePublished:p.date||undefined,url,mainEntityOfPage:url,author:ORG,publisher:ORG},crumbs]};}const home={\"@type\":\"SingleFamilyResidence\",name:p.title,numberOfBedrooms:toNumber(p.bedrooms),numberOfBathroomsTotal:toNumber(p.bathrooms),floorSize:toNumber(p.floorArea)?{\"@type\":\"QuantitativeValue\",value:toNumber(p.floorArea),unitCode:\"MTK\"}:undefined,additionalProperty:p.houseType?[{\"@type\":\"PropertyValue\",name:\"House type\",value:p.houseType}]:undefined};return{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"RealEstateListing\",name:p.title,description:p.description||undefined,image,datePosted:p.date||undefined,url,mainEntity:home,offers:p.price?{\"@type\":\"Offer\",price:p.price,priceCurrency:\"NGN\",availability:p.availability?\"https://schema.org/\"+p.availability:undefined,seller:ORG}:undefined},crumbs]};}/**\n * Invisible: outputs JSON-LD structured data for a CMS article or listing page.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StructuredData(props){const json=JSON.stringify(build(props)).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:0,height:0,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}StructuredData.defaultProps={kind:\"article\",title:\"\",description:\"\",slug:\"\"};addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Type\",options:[\"article\",\"listing\"],optionTitles:[\"Article\",\"Listing\"]},title:{type:ControlType.String,title:\"Title\"},description:{type:ControlType.String,title:\"Description\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},date:{type:ControlType.Date,title:\"Date\"},slug:{type:ControlType.String,title:\"Slug\"},price:{type:ControlType.Number,title:\"Price\",hidden:p=>p.kind!==\"listing\"},availability:{type:ControlType.String,title:\"Availability\",hidden:p=>p.kind!==\"listing\"},bedrooms:{type:ControlType.String,title:\"Bedrooms\",hidden:p=>p.kind!==\"listing\"},bathrooms:{type:ControlType.String,title:\"Bathrooms\",hidden:p=>p.kind!==\"listing\"},floorArea:{type:ControlType.String,title:\"Floor area\",hidden:p=>p.kind!==\"listing\"},houseType:{type:ControlType.String,title:\"House type\",hidden:p=>p.kind!==\"listing\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAA4P,SAASM,EAAS,EAAM,CAAC,IAAMC,EAAE,WAAW,OAAOC,GAAO,EAAE,CAAC,CAAC,QAAQ,WAAW,EAAE,CAAC,EAAE,OAAO,OAAO,SAASD,CAAC,EAAEA,EAAE,IAAA,EAAU,CAAC,SAASE,EAAM,EAAE,CAAC,IAAMC,EAAQC,EAAE,OAAO,UAAU,OAAO,WAC7aC,EAAID,EAAE,KAAK,GAAGE,EAAK,GAAGH,EAAQ,GAAGC,EAAE,OAAO,IAAA,GAAgBG,EAAMH,EAAE,OAAO,IAAIA,EAAE,MAAM,IAAI,MAAM,GAAG,CAAC,CAAC,GAAG,IAAA,GAAgBI,EAAO,CAAC,QAAQ,iBAAiB,gBAAgB,CAAC,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAKF,EAAK,GAAG,EAAEF,EAAE,OAAO,UAAU,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,OAAO,KAAKE,EAAK,OAAO,EAAE,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAK,aAAa,KAAKA,EAAK,WAAW,EAAE,CAAC,QAAQ,WAAW,SAAS,EAAE,KAAKF,EAAE,MAAM,GAAGC,EAAI,CAAC,KAAKA,CAAG,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAGD,EAAE,OAAO,UAAW,MAAM,CAAC,WAAW,qBAAqB,SAAS,CAAC,CAAC,QAAQ,cAAc,SAASA,EAAE,MAAM,YAAYA,EAAE,aAAa,IAAA,GAAU,QAAM,cAAcA,EAAE,MAAM,IAAA,GAAU,MAAI,iBAAiBC,EAAI,OAAOI,EAAI,UAAUA,CAAG,EAAED,CAAM,CAAC,EAAG,IAAME,EAAK,CAAC,QAAQ,wBAAwB,KAAKN,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