UNPKG

graphdb-workbench

Version:
2 lines 1.16 kB
export const __webpack_esm_id__=2975;export const __webpack_esm_ids__=[2975];export const __webpack_esm_modules__={2975(e,t,o){o(82493);var n=o(57154);function c(e){const t=(0,n.service)(n.RuntimeConfigurationContextService),o=[],c=document.getElementById("webapi_frame");if(!c)return;c.style.display="none";const r=()=>{try{const e=c.contentDocument||c.contentWindow?.document;if(!e?.documentElement)return;const t=getComputedStyle(document.documentElement),o=e.documentElement;for(const e of t){if(!e.startsWith("--gw-"))continue;const n=t.getPropertyValue(e);o.style.getPropertyValue(e)!==n&&o.style.setProperty(e,n)}c.style.display="block"}catch(e){c.style.display="block",console.error("Cannot access iframe styles:",e)}};let s;const a=()=>{"function"==typeof s&&s(),s=t.onThemeModeChanged(r)};c.addEventListener("load",a),o.push(()=>{c.removeEventListener("load",a)}),e.$on("$destroy",()=>{c.removeEventListener("load",a),"function"==typeof s&&(s(),s=void 0),o.forEach(e=>{try{e()}catch{}})})}angular.module("graphdb.framework.webapi",[]).controller("WebApiCtrl",c),c.$inject=["$scope"]}}; //# sourceMappingURL=2975.8be1a79816fd811be223.bundle.js.map