{"version":3,"file":"StructuredData.4GFf65Rt.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_CaDWdxiz","addPropertyControls","ControlType","StructuredData","origin","p","url","entity","image","crumbs","data","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/nMH2OtHydcwiRBJiK7Fj/LiBNQhMgjS3stPAYRWGp/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(p){const origin=\"https://argonix.net\";if(!p.title||!p.prefix?.startsWith(\"/\"))return null;const path=p.prefix+(p.slug||\"\");const url=origin+path;const entity={\"@type\":p.kind===\"Service\"?\"Service\":\"Article\",\"@id\":url+\"#\"+(p.kind===\"Service\"?\"service\":\"article\"),url,name:p.title,description:p.description,inLanguage:\"en-AU\"};if(p.kind===\"Service\"){delete entity.inLanguage;entity.serviceType=p.title;entity.provider={\"@id\":origin+\"/#organization\"};}else{entity.headline=p.title;entity.author={\"@type\":\"Organization\",\"@id\":origin+\"/#organization\",name:\"Argonix\",url:origin+\"/about\"};entity.publisher={\"@id\":origin+\"/#organization\"};entity.mainEntityOfPage={\"@type\":\"WebPage\",\"@id\":url};if(p.published&&/^\\d{4}-\\d{2}-\\d{2}/.test(p.published)&&Number.isFinite(Date.parse(p.published)))entity.datePublished=p.published.slice(0,10);if(p.modified&&/^\\d{4}-\\d{2}-\\d{2}/.test(p.modified)&&Number.isFinite(Date.parse(p.modified))&&(!p.published||Date.parse(p.modified)>=Date.parse(p.published)))entity.dateModified=p.modified.slice(0,10);const image=typeof p.image===\"string\"?p.image:p.image?.src;if(image&&/^https:\\/\\//.test(image))entity.image=image;}const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:origin+\"/\"}];if(p.parentName&&p.parentPath?.startsWith(\"/\"))crumbs.push({\"@type\":\"ListItem\",position:2,name:p.parentName,item:origin+p.parentPath});crumbs.push({\"@type\":\"ListItem\",position:crumbs.length+1,name:p.title,item:url});const data={\"@context\":\"https://schema.org\",\"@graph\":[entity,{\"@type\":\"BreadcrumbList\",\"@id\":url+\"#breadcrumb\",itemListElement:crumbs}]};return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(data).replace(/</g,\"\\\\u003c\")}});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,options:[\"Service\",\"Article\"],defaultValue:\"Service\"},title:{type:ControlType.String,defaultValue:\"\"},description:{type:ControlType.String,defaultValue:\"\",displayTextArea:true},prefix:{type:ControlType.String,defaultValue:\"/\"},slug:{type:ControlType.String,defaultValue:\"\"},parentName:{type:ControlType.String,defaultValue:\"\"},parentPath:{type:ControlType.String,defaultValue:\"\"},published:{type:ControlType.Date,optional:true,displayTime:true},modified:{type:ControlType.Date,optional:true,displayTime:true},image:{type:ControlType.ResponsiveImage}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JAGG,SAAwBM,EAAe,EAAE,CAAC,IAAMC,EAAO,sBAAsB,GAAG,CAACC,EAAE,OAAO,CAACA,EAAE,QAAQ,WAAW,GAAG,EAAE,OAAO,KAAsC,IAAMC,EAAIF,GAAhCC,EAAE,QAAQA,EAAE,MAAM,KAAgCE,EAAO,CAAC,QAAQF,EAAE,OAAO,UAAU,UAAU,UAAU,MAAMC,EAAI,KAAKD,EAAE,OAAO,UAAU,UAAU,WAAW,MAAI,KAAKA,EAAE,MAAM,YAAYA,EAAE,YAAY,WAAW,OAAO,EAAE,GAAGA,EAAE,OAAO,UAAW,OAAOE,EAAO,WAAW,EAAO,YAAYF,E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