{"version":3,"file":"StructuredData.B5yrTGlP.mjs","names":["_jsx","__esmMin","c","init_jsx_runtime","init_framer_ChujFWHC","addPropertyControls","useLocaleInfo","StructuredData","props","json","jsonDa","info","source","body","init_StructuredData","ControlType"],"sources":["https:/framerusercontent.com/modules/XsfGF6cWADkzaIBrNNsA/hb2QwUVSPGk1dRebaGJb/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";/**\n * Renders a JSON-LD block into the page HTML so search engines and AI\n * answer engines can read the company facts. Invisible on the page.\n * On the Danish locale it uses `jsonDa` when set, otherwise `json`.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function StructuredData(props){const{json,jsonDa}=props;const info=useLocaleInfo();const da=String(info?.activeLocale?.code??\"\").toLowerCase().startsWith(\"da\");const source=da&&jsonDa?jsonDa:json;let body=\"\";try{body=JSON.stringify(JSON.parse(source));}catch{return null;}// \"</\" inside a string would close the script tag early\nbody=body.replace(/<\\//g,\"<\\\\/\");return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:body}})});}addPropertyControls(StructuredData,{json:{type:ControlType.String,title:\"JSON-LD\",displayTextArea:true,preventLocalization:true,defaultValue:\"{}\"},jsonDa:{type:ControlType.String,title:\"JSON-LD (Danish)\",displayTextArea:true,preventLocalization:true,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,+JAOG,SAAwBO,EAAeC,EAAM,CAAC,GAAK,CAACC,OAAKC,UAAQF,EAAYG,EAAKL,EAAc,EAAqFM,EAA1E,OAAOD,GAAM,cAAc,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,IAAoB,GAAGD,EAAOA,EAAOD,EAASI,EAAK,GAAG,GAAG,CAACA,EAAK,KAAK,UAAU,KAAK,MAAMD,CAAM,CAAC,CAAE,MAAM,CAAC,OAAO,IAAK,CAChQ,MAAjCC,GAAKA,EAAK,QAAQ,OAAO,MAAM,EAAsBb,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,EAAE,SAAS,QAAQ,EAAE,SAAsBA,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOa,CAAI,CAAC,CAAC,CAAC,CAAC,CAAE,C,sCAACR,EAAoBE,EAAe,CAAC,KAAK,CAAC,KAAKQ,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,oBAAoB,GAAK,aAAa,IAAI,EAAE,OAAO,CAAC,KAAKA,EAAY,OAAO,MAAM,mBAAmB,gBAAgB,GAAK,oBAAoB,GAAK,aAAa,EAAE,CAAC,CAAC,C"}