{"version":3,"file":"StructuredData.dW82Dj4Z.mjs","names":["__esmMin","c","init_jsx_runtime","init_framer_BWFVvmND","addPropertyControls","useLocaleInfo","StructuredData","props","info","source","jsonDa","json","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,SAAwBM,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQC,EAAYC,EAAKH,EAAc,EAAqFI,EAA1E,OAAOD,GAAM,cAAc,MAAM,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,WAAW,IAAoB,GAAGE,EAAOA,EAAOC,EAASC,EAAK,GAAG,GAAG,CAAC,EAAK,KAAK,UAAU,KAAK,MAAMH,CAAM,CAAC,CAAE,MAAM,CAAC,OAAO,IAAK,CAChQ,MAAjC,GAAKG,EAAK,QAAQ,OAAO,MAAM,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,EAAE,SAAS,QAAQ,EAAE,SAAsB,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"}