graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 887 B
JavaScript
export const __webpack_esm_id__=81837;export const __webpack_esm_ids__=[81837];export const __webpack_esm_modules__={81837(e,t,n){n.d(t,{A:()=>r});const o=n(304).I.logger;class r{static getGraphqlPlaygroundDirectiveController(e){const t=angular.element(document.querySelector(e));return angular.element(t).isolateScope()}static getGraphqlPlaygroundComponent=e=>{const t=r.getGraphqlPlaygroundDirectiveController(e);if(t)return t.getGraphQLPlaygroundComponent()};static getGraphqlPlaygroundComponentAsync=(e,t=1)=>new Promise((n,l)=>{let a=r.getGraphqlPlaygroundComponent(e);a&&n(a);let c=1e3*t|1e3;const s=setInterval(()=>{a=r.getGraphqlPlaygroundComponent(e),a?(clearInterval(s),n(a)):(c-=100,c<0&&(clearInterval(s),o.info("GraphQL Playground component is not found",e),l(new Error("Element is not found: "+e))))},100)})}}};
//# sourceMappingURL=81837.bff02ec23214460cf765.bundle.js.map