{"version":3,"file":"StructuredData.CLICL0D2.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_BpuvUAiZ","addPropertyControls","ControlType","stripHtml","s","StructuredData","props","url","SITE","pathPrefix","slug","img","image","desc","description","breadcrumb","section","sectionPath","data","type","name","published","author","BRAND","price","availability","init_StructuredData","p"],"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":"A,4JAG+D,SAASM,EAAU,EAAE,CAAC,OAAOC,GAAG,GAAA,CAAI,QAAQ,WAAW,GAAG,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,CAAE,CAGnJ,SAAwBC,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,c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