{"version":3,"file":"StructuredData.B0X4g4CB.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","ControlType","init_framer_Bf4_tcb2","isoDuration","m","length","mins","secs","buildData","p","SITE","data","d","StructuredData","props","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/UaqQLVfWFkiHCSyPFXPK/f6itkUmu3YT6Fyv4Oxjs/StructuredData.js"],"sourcesContent":["// Structured data for search engines: a VideoObject for a story page, or the business details for the home page.\n// It renders a hidden script block that Google reads, and nothing visible.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// \"2:26\" or \"about 1:00\" becomes the ISO form PT2M26S\nfunction isoDuration(length){const m=/(\\d+):(\\d\\d)/.exec(length||\"\");if(!m)return undefined;const mins=parseInt(m[1],10),secs=parseInt(m[2],10);return\"PT\"+(mins?mins+\"M\":\"\")+secs+\"S\";}const SITE=\"https://videographer.melbourne\";function buildData(p){if(p.kind===\"business\"){return{\"@context\":\"https://schema.org\",\"@type\":\"ProfessionalService\",name:\"Videographer Melbourne\",url:SITE,description:p.description||\"video production, videography and video editing for events, brands and artists in melbourne\",areaServed:{\"@type\":\"City\",name:\"Melbourne\"},address:{\"@type\":\"PostalAddress\",addressLocality:\"Melbourne\",addressRegion:\"VIC\",addressCountry:\"AU\"},sameAs:[\"https://www.instagram.com/videographer.melbourne\",\"https://www.youtube.com/@videographer.melbourne\"],knowsAbout:[\"event videos\",\"brand videos\",\"artist videos\",\"video editing\",\"corporate video\",\"social media video\"]};}const data={\"@context\":\"https://schema.org\",\"@type\":\"VideoObject\",name:p.name,description:p.description,publisher:{\"@type\":\"Organization\",name:\"Videographer Melbourne\",url:SITE}};if(p.thumbnail?.src)data.thumbnailUrl=[p.thumbnail.src];if(p.streamableId)data.embedUrl=\"https://streamable.com/e/\"+p.streamableId.trim();const d=isoDuration(p.length);if(d)data.duration=d;if(/^\\d{4}$/.test((p.year||\"\").trim()))data.uploadDate=p.year.trim()+\"-01-01\";if(p.pageUrl)data.url=p.pageUrl.startsWith(\"http\")?p.pageUrl:SITE+p.pageUrl;return data;}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind=\"video\",name=\"\",description=\"\",streamableId=\"\",length=\"\",year=\"\",pageUrl=\"\"}=props;const data=buildData({...props,kind,name,description,streamableId,length,year,pageUrl});return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:1,height:1,overflow:\"hidden\",opacity:0,pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data)}})});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"kind\",options:[\"video\",\"business\"],optionTitles:[\"video\",\"business\"],defaultValue:\"video\"},name:{type:ControlType.String,title:\"name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"description\",defaultValue:\"\",displayTextArea:true},thumbnail:{type:ControlType.ResponsiveImage,title:\"thumbnail\"},streamableId:{type:ControlType.String,title:\"streamable id\",defaultValue:\"\"},length:{type:ControlType.String,title:\"length\",defaultValue:\"\"},year:{type:ControlType.String,title:\"year\",defaultValue:\"\"},pageUrl:{type:ControlType.String,title:\"page url\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,6JAGA,SAASM,EAAY,EAAO,CAAC,IAAMC,EAAE,eAAe,KAAKC,GAAQ,EAAE,EAAE,GAAG,CAACD,EAAE,OAAiB,IAAME,EAAK,SAASF,EAAE,GAAG,EAAE,EAAEG,EAAK,SAASH,EAAE,GAAG,EAAE,EAAE,MAAM,MAAME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