{"version":3,"file":"StructuredData.5OUKVVVz.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/U3rG5DzUe8Pe5sakSbUP/hr776Nf6LRL55TIFRmBx/SiteConfig.js","https:/framerusercontent.com/modules/7MffAJrxzwt4cUOxQxzs/eZEzIJmJJJzKr9jacz4k/StructuredData.js"],"sourcesContent":["// One place to set site-wide values used by the StructuredData component.\n// BUYER: change these four constants to your real company details before you publish.\nexport const SITE_URL=\"https://instrava.framer.website\"// your published domain, no trailing slash\n;export const ORG_NAME=\"INSTRAVA Process Technologies\";export const ORG_DESCRIPTION=\"Fictional demonstration company: process instrumentation and control template. Replace with your own description.\";export const ORG_LOGO=\"\"// absolute URL of a logo image, or empty to omit\n;\nexport const __FramerMetadata__ = {\"exports\":{\"SITE_URL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ORG_DESCRIPTION\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ORG_NAME\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ORG_LOGO\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SiteConfig.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{SITE_URL,ORG_NAME,ORG_DESCRIPTION,ORG_LOGO}from\"https://framerusercontent.com/modules/U3rG5DzUe8Pe5sakSbUP/hr776Nf6LRL55TIFRmBx/SiteConfig.js\";const esc=o=>JSON.stringify(o).replace(/</g,\"\\\\u003c\").replace(/>/g,\"\\\\u003e\").replace(/&/g,\"\\\\u0026\");const clean=o=>{const r={};Object.keys(o).forEach(k=>{const v=o[k];if(v!==undefined&&v!==null&&v!==\"\")r[k]=v;});return r;};const ARTICLE_TYPES=[\"Technical article\",\"Application note\",\"Whitepaper\"];/**\n * Renders schema.org JSON-LD (Organization + WebSite, Product, Article, BreadcrumbList) from CMS values.\n * Nothing is invented: no ratings, reviews, offers, prices, certifications or addresses. Empty fields are omitted.\n * Site-wide values live in SiteConfig.tsx. Invisible on the page.\n *\n * @framerIntrinsicWidth 10\n * @framerIntrinsicHeight 10\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind=\"organization\",name=\"\",slug=\"\",section=\"products\",sku=\"\",description=\"\",image=\"\",category=\"\",resourceType=\"\",parentName=\"\",parentSlug=\"\",parentSection=\"\",sectionLabel=\"\",sectionSlug=\"\"}=props;const[origin,setOrigin]=useState(SITE_URL);useEffect(()=>{const c=document.querySelector('link[rel=\"canonical\"]');if(c&&c.href){try{setOrigin(new URL(c.href).origin);}catch(e){/* keep configured URL */}}},[]);const url=(sec,s)=>`${origin}/${sec}${s?\"/\"+s:\"\"}`;const org=clean({\"@type\":\"Organization\",\"@id\":`${origin}/#organization`,name:ORG_NAME,url:origin,description:ORG_DESCRIPTION,logo:ORG_LOGO});const docs=[];if(kind===\"organization\"){docs.push({\"@context\":\"https://schema.org\",...org});docs.push({\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"@id\":`${origin}/#website`,name:ORG_NAME,url:origin,publisher:{\"@id\":`${origin}/#organization`}});}else if(kind===\"product\"&&name){docs.push(clean({\"@context\":\"https://schema.org\",\"@type\":\"Product\",name,sku,mpn:sku,description,image:image||undefined,category,brand:{\"@type\":\"Brand\",name:ORG_NAME},url:url(section,slug)}));}else if(kind===\"article\"&&name&&ARTICLE_TYPES.indexOf(resourceType)>=0){docs.push(clean({\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline:name,description,mainEntityOfPage:url(section,slug),author:{\"@type\":\"Organization\",name:ORG_NAME},publisher:{\"@type\":\"Organization\",name:ORG_NAME}}));}else if(kind===\"breadcrumbs\"&&name){const items=[{name:\"Home\",item:origin+\"/\"}];if(sectionLabel&&sectionLabel!==\"-\")items.push({name:sectionLabel,item:url(sectionSlug||section,\"\")});if(parentName&&parentSlug)items.push({name:parentName,item:url(parentSection||section,parentSlug)});items.push({name,item:url(section,slug)});docs.push({\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:items.map((it,i)=>({\"@type\":\"ListItem\",position:i+1,name:it.name,item:it.item}))});}if(docs.length===0)return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"},\"aria-hidden\":\"true\"});return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"},\"aria-hidden\":\"true\",children:docs.map((d,i)=>/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:esc(d)}},i))});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"organization\",\"product\",\"article\",\"breadcrumbs\"],optionTitles:[\"Organization + WebSite\",\"Product\",\"Article\",\"Breadcrumbs\"],defaultValue:\"organization\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},section:{type:ControlType.String,title:\"URL section\",defaultValue:\"products\",description:\"products, technologies, industries, applications, projects, resources, family\"},sku:{type:ControlType.String,title:\"Model code\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},image:{type:ControlType.Image,title:\"Image\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\"},resourceType:{type:ControlType.String,title:\"Resource type\",defaultValue:\"\"},sectionLabel:{type:ControlType.String,title:\"Section label\",defaultValue:\"Products\"},sectionSlug:{type:ControlType.String,title:\"Section URL\",defaultValue:\"\",description:\"Overrides the URL of the section crumb (e.g. products for family pages). Use - as Section label to skip the crumb.\"},parentName:{type:ControlType.String,title:\"Parent name\",defaultValue:\"\"},parentSlug:{type:ControlType.String,title:\"Parent slug\",defaultValue:\"\"},parentSection:{type:ControlType.String,title:\"Parent section\",defaultValue:\"family\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"10\",\"framerIntrinsicWidth\":\"10\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"qMAEa,EAAS,kCACR,EAAS,gCAA6C,EAAgB,uHCMjF,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,eAAe,OAAK,GAAG,OAAK,GAAG,UAAQ,WAAW,MAAI,GAAG,cAAY,GAAG,QAAM,GAAG,WAAS,GAAG,eAAa,GAAG,aAAW,GAAG,aAAW,GAAG,gBAAc,GAAG,eAAa,GAAG,cAAY,IAAI,EAAW,CAAC,EAAO,GAAWA,EAAS,CAAQ,EAAE,MAAc,CAAC,IAAM,EAAE,SAAS,cAAc,uBAAuB,EAAE,GAAG,GAAG,EAAE,KAAM,GAAG,CAAC,EAAU,IAAI,IAAI,EAAE,IAAI,CAAC,CAAC,MAAM,CAAE,MAAS,CAA0B,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,GAAK,EAAI,IAAI,GAAG,EAAO,GAAG,IAAM,EAAE,IAAI,EAAE,KAAW,EAAI,EAAM,CAAC,QAAQ,eAAe,MAAM,GAAG,EAAO,gBAAgB,KAAK,EAAS,IAAI,EAAO,YAAY,EAAgB,KAAA,EAAa,CAAC,EAAQ,EAAK,CAAC,EAAE,GAAG,IAAO,eAAgB,EAAK,KAAK,CAAC,WAAW,qBAAqB,GAAG,CAAG,CAAC,EAAE,EAAK,KAAK,CAAC,WAAW,qBAAqB,QAAQ,UAAU,MAAM,GAAG,EAAO,WAAW,KAAK,EAAS,IAAI,EAAO,UAAU,CAAC,MAAM,GAAG,EAAO,eAAe,CAAC,CAAC,OAAQ,GAAG,IAAO,WAAW,EAAM,EAAK,KAAK,EAAM,CAAC,WAAW,qBAAqB,QAAQ,UAAU,OAAK,MAA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