{"version":3,"file":"StructuredData.BL894pC0.mjs","names":[],"sources":["https:/framerusercontent.com/modules/hlPPBkorcXP36HsDv9QZ/Bc5PqIoeExxOg2L48A18/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// MxM structured data (JSON-LD) for CMS detail pages.\n// Renders an invisible <script type=\"application/ld+json\"> so Google can read\n// Product / Article + BreadcrumbList data. Bind the text controls to CMS fields.\nconst SITE=\"https://mxm.world\";const BRAND=\"M\\xc1NO \\xd7 MNRL\";function stripHtml(s){return(s||\"\").replace(/<[^>]*>/g,\" \").replace(/\\s+/g,\" \").trim();}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StructuredData(props){const{type,name,description,image,slug,pathPrefix,price,availability,section,sectionPath,published,author}=props;const url=`${SITE}${pathPrefix}/${slug||\"\"}`;const img=typeof image===\"string\"?image:image?.src;const desc=stripHtml(description).slice(0,5e3);const breadcrumb={\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:`${SITE}/`},{\"@type\":\"ListItem\",position:2,name:section,item:`${SITE}${sectionPath}`},{\"@type\":\"ListItem\",position:3,name,item:url}]};const main=type===\"Article\"?{\"@type\":\"Article\",headline:name,description:desc,image:img?[img]:undefined,datePublished:published||undefined,author:{\"@type\":author?\"Person\":\"Organization\",name:author||BRAND},publisher:{\"@type\":\"Organization\",name:BRAND,url:SITE},mainEntityOfPage:url}:{\"@type\":\"Product\",name,description:desc,image:img?[img]:undefined,brand:{\"@type\":\"Brand\",name:BRAND},url,offers:price?{\"@type\":\"Offer\",price:String(price).replace(/[^0-9.]/g,\"\"),priceCurrency:\"GBP\",availability:`https://schema.org/${availability}`,url}:undefined};const data={\"@context\":\"https://schema.org\",\"@graph\":[main,breadcrumb]};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data)}});}StructuredData.defaultProps={type:\"Product\",name:\"Black Cherry Vice\",description:\"\",slug:\"\",pathPrefix:\"/fragrances\",price:\"\",availability:\"InStock\",section:\"Shop\",sectionPath:\"/shop\",published:\"\",author:\"\"};addPropertyControls(StructuredData,{type:{type:ControlType.Enum,title:\"Type\",options:[\"Product\",\"Article\"]},name:{type:ControlType.String,title:\"Name\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},slug:{type:ControlType.String,title:\"Slug\"},pathPrefix:{type:ControlType.String,title:\"Path Prefix\"},price:{type:ControlType.String,title:\"Price\",hidden:p=>p.type!==\"Product\"},availability:{type:ControlType.Enum,title:\"Availability\",options:[\"InStock\",\"PreOrder\",\"OutOfStock\"],hidden:p=>p.type!==\"Product\"},section:{type:ControlType.String,title:\"Section\"},sectionPath:{type:ControlType.String,title:\"Section Path\"},published:{type:ControlType.String,title:\"Published\",hidden:p=>p.type!==\"Article\"},author:{type:ControlType.String,title:\"Author\",hidden:p=>p.type!==\"Article\"}});\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":"4JAG+D,SAAS,EAAU,EAAE,CAAC,OAAO,GAAG,GAAA,CAAI,QAAQ,WAAW,GAAG,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,CAAE,CAGnJ,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,cAAY,QAAM,OAAK,aAAW,QAAM,eAAa,UAAQ,cAAY,YAAU,UAAQ,EAAY,EAAI,GAAG,IAAO,EAAW,GAAG,GAAM,KAAW,EAAI,OAAO,GAAQ,SAAS,EAAM,GAAO,IAAU,EAAK,EAAU,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