{"version":3,"file":"PageSchema.C9Azmf-4.mjs","names":["__esmMin","init_jsx_runtime","c","init_framer_Bf4_tcb2","addPropertyControls","ControlType","buildGraph","props","parent","SECTIONS","section","path","slug","url","SITE","crumbs","graph","i","kind","name","image","datePublished","author","ORG","PageSchema","json","init_PageSchema"],"sources":["https:/framerusercontent.com/modules/EyTiJfvDCIkEukBuAPHN/Lm4TnbxUOkMrgvVoCpZW/PageSchema.js"],"sourcesContent":["/**\n * @framerDisableUnlink\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://carbonblackdigital.com.au\";const ORG={\"@id\":`${SITE}/#org`};const SECTIONS={insights:{name:\"Insights\",path:\"/insights\"},work:{name:\"Work\",path:\"/work\"},none:null};function buildGraph(props){const{kind,name,description,section,slug,image,datePublished,author}=props;const parent=SECTIONS[section];const path=parent?`${parent.path}/${slug}`:`/${slug.replace(/^\\//,\"\")}`;const url=`${SITE}${path}`;const crumbs=[{name:\"Home\",url:SITE}];if(parent)crumbs.push({name:parent.name,url:`${SITE}${parent.path}`});crumbs.push({name,url});const graph=[{\"@type\":\"BreadcrumbList\",itemListElement:crumbs.map((c,i)=>({\"@type\":\"ListItem\",position:i+1,name:c.name,item:c.url}))}];if(kind===\"article\"){graph.push({\"@type\":\"BlogPosting\",headline:name,description,url,mainEntityOfPage:url,image:image?.src?[image.src]:undefined,datePublished:datePublished||undefined,author:{\"@type\":\"Person\",name:author||\"Josh Hockley\"},publisher:ORG});}if(kind===\"service\"){graph.push({\"@type\":\"Service\",name,description,url,provider:ORG,areaServed:{\"@type\":\"Country\",name:\"Australia\"}});}return{\"@context\":\"https://schema.org\",\"@graph\":graph};}/**\n * Per-page JSON-LD (breadcrumbs, plus BlogPosting or Service). Renders nothing visible.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function PageSchema(props){// Escape \"<\" so CMS text can't close the script tag.\nconst json=JSON.stringify(buildGraph(props)).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",display:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(PageSchema,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"article\",\"case\",\"service\"],optionTitles:[\"Article\",\"Case study\",\"Service page\"],defaultValue:\"service\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Page name\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"},section:{type:ControlType.Enum,title:\"Section\",options:[\"insights\",\"work\",\"none\"],optionTitles:[\"Insights\",\"Work\",\"None\"],defaultValue:\"none\"},slug:{type:ControlType.String,title:\"Slug / path\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},datePublished:{type:ControlType.Date,title:\"Published\",optional:true},author:{type:ControlType.String,title:\"Author\",defaultValue:\"Josh Hockley\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PageSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PageSchema.map"],"mappings":"A,4JAEyR,SAASM,EAAW,EAAM,CAAC,GAAK,CAAC,OAAK,OAAK,cAAY,UAAQ,OAAK,QAAM,gBAAc,UAAQC,EAAYC,EAAOC,EAASC,GAAeC,EAAKH,EAAO,GAAGA,EAAO,KAAK,GAAGI,IAAO,IAAIA,EAAK,QAAQ,MAAM,EAAE,IAAUC,EAAI,GAAGC,IAAOH,IAAaI,EAAO,CAAC,CAAC,KAAK,OAAO,IAAID,CAAI,CAAC,EAAKN,GAAOO,EAAO,KAAK,CAAC,KAAKP,EAAO,KAAK,IAAI,GAAGM,IAAON,EAAO,MAAM,CAAC,EAAEO,EAAO,KAAK,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