{"version":3,"file":"ProjectSchema.DnE3yu06.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tQFTQIOE97P5efLnXbHU/uW0A7kZ7vMqwvVzh9k8V/ProjectSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Renders CreativeWork + BreadcrumbList JSON-LD for a Projects or Designs CMS item;\n// basePath picks the URL section (\"portfolio\" or \"portfolio/designs\").\n// The script is part of the rendered markup, so it ships in the static HTML.\n// Renders nothing until the item has a name and slug.\nconst SITE=\"https://www.theprestigecellars.com\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ProjectSchema(props){const name=props.name?.trim();const slug=props.slug?.trim();if(!name||!slug)return null;const base=(props.basePath||\"portfolio\").replace(/^\\/+|\\/+$/g,\"\");const url=`${SITE}/${base}/${slug}`;const image=typeof props.image===\"string\"?props.image:props.image?.src;const business={\"@type\":\"HomeAndConstructionBusiness\",\"@id\":`${SITE}/#business`,name:\"Prestige Wine Cellars\",url:`${SITE}/`};const work={\"@type\":\"CreativeWork\",\"@id\":`${url}#project`,name,url,creator:business,publisher:business,genre:props.category?.trim()||\"Custom wine cellar\",about:{\"@type\":\"Thing\",name:\"Custom wine cellar design and construction\"},mainEntityOfPage:url};if(props.description?.trim())work.description=props.description.trim();if(image)work.image=image;if(props.location?.trim())work.locationCreated={\"@type\":\"Place\",name:props.location.trim()};const crumbs={\"@type\":\"BreadcrumbList\",itemListElement:[[\"Home\",`${SITE}/`],[\"Portfolio\",`${SITE}/portfolio`],...base!==\"portfolio\"?[[props.sectionName||\"Designs\",`${SITE}/${base}`]]:[],[name,url]].map(([n,item],i)=>({\"@type\":\"ListItem\",position:i+1,name:n,item}))};const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":[work,crumbs]}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",\"data-project-schema\":\"portfolio\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(ProjectSchema,{name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},image:{type:ControlType.ResponsiveImage,title:\"Image\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},location:{type:ControlType.String,title:\"Location\",defaultValue:\"\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\"},basePath:{type:ControlType.String,title:\"Base Path\",defaultValue:\"portfolio\"},sectionName:{type:ControlType.String,title:\"Section Name\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectSchema.map"],"mappings":"4JAOG,SAAwB,EAAc,EAAM,CAAC,IAAM,EAAK,EAAM,MAAM,KAAK,EAAQ,EAAK,EAAM,MAAM,KAAK,EAAE,GAAG,CAAC,GAAM,CAAC,EAAK,OAAO,KAAK,IAAM,GAAM,EAAM,UAAU,YAAA,CAAa,QAAQ,aAAa,EAAE,EAAQ,EAAI,GAAG,EAAK,GAAG,EAAK,GAAG,IAAa,EAAM,OAAO,EAAM,OAAQ,SAAS,EAAM,MAAM,EAAM,OAAO,IAAU,EAAS,CAAC,QAAQ,8BAA8B,MAAM,GAAG,EAAK,YAAY,KAAK,wBAAwB,IAAI,GAAG,EAAK,EAAE,EAAQ,EAAK,CAAC,QAAQ,eAAe,MAAM,GAAG,EAAI,UAAU,OAAK,MAAI,QAAQ,EAAS,UAAU,EAAS,MAAM,EAAM,UAAU,KAAK,GAAG,qBAAqB,MAAM,CAAC,QAAQ,QAAQ,KAAK,4CAA4C,EAAE,iBAAiB,CAAG,EAAK,EAAM,aAAa,KAAK,IAAE,E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