{"version":3,"file":"SchemaLoader.D70ZcZfL.mjs","names":[],"sources":["https:/framerusercontent.com/modules/qcvtbWBtN7Fyeb6ewAja/5tV6U7kMlCgAopYaIeaA/SchemaLoader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SchemaLoader(_props){useEffect(()=>{if(typeof document===\"undefined\")return;if(document.getElementById(\"kg-article-schema\"))return;const src=\"https://cdn.jsdelivr.net/gh/KGNA-stack/kgnordic-schema@main/article-schema.js\";const existing=document.querySelector('script[data-kg-article-schema-loader=\"true\"]');const activateLegacyHandler=()=>{if(document.getElementById(\"kg-article-schema\"))return;if(document.readyState===\"loading\")return;if(document.documentElement.dataset.kgSchemaLegacyActivated===\"true\")return;document.documentElement.dataset.kgSchemaLegacyActivated=\"true\";window.dispatchEvent(new Event(\"DOMContentLoaded\"));};if(existing){existing.addEventListener(\"load\",activateLegacyHandler,{once:true});const retry=window.setTimeout(activateLegacyHandler,2e3);return()=>window.clearTimeout(retry);}const script=document.createElement(\"script\");script.src=src;script.async=true;script.dataset.kgArticleSchemaLoader=\"true\";script.addEventListener(\"load\",activateLegacyHandler,{once:true});document.head.appendChild(script);const retry=window.setTimeout(activateLegacyHandler,2e3);return()=>window.clearTimeout(retry);},[]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:1,height:1,overflow:\"hidden\",opacity:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{async:true,src:\"https://cdn.jsdelivr.net/gh/KGNA-stack/kgnordic-schema@main/article-schema.js\",\"data-kg-article-schema-loader\":\"true\"})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaLoader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaLoader.map"],"mappings":"2HAGG,SAAwB,EAAa,EAAO,CAAslC,OAArlC,MAAc,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAe,mBAAmB,EAAE,OAAO,IAAgG,EAAS,SAAS,cAAc,8CAA8C,EAAQ,MAA0B,CAAI,SAAS,eAAe,mBAAmB,GAAY,SAAS,aAAa,WAAoB,SAAS,gBAAgB,QAAQ,0BAA0B,SAAc,SAAS,gBAAgB,QAAQ,wBAAwB,OAAO,EAAO,cAAc,IAAI,MAAM,kBAAkB,CAAC,EAAE,EAAE,GAAG,EAAS,CAAC,EAAS,iBAAiB,OAAO,EAAsB,CAAC,KAAK,EAAI,CAAC,EAAE,IAAM,EAAM,EAAO,WAAW,EAAsB,GAAG,EAAE,UAAU,EAAO,aAAa,CAAK,CAAE,CAAC,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,IAAI,gFAAI,EAAO,MAAM,GAAK,EAAO,QAAQ,sBAAsB,OAAO,EAAO,iBAAiB,OAAO,EAAsB,CAAC,KAAK,EAAI,CAAC,EAAE,SAAS,KAAK,YAAY,CAAM,EAAE,IAAM,EAAM,EAAO,WAAW,EAAsB,GAAG,EAAE,UAAU,EAAO,aAAa,CAAK,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,QAAQ,EAAE,cAAc,MAAM,EAAE,SAAsB,EAAK,SAAS,CAAC,MAAM,GAAK,IAAI,gFAAgF,gCAAgC,MAAM,CAAC,CAAC,CAAC,CAAE,qBAH75C,IAA6B"}