{ "version": 3, "sources": ["../../../../../../../../source/febe/ui/src/scripts/components/Loader.ts"], "sourcesContent": ["import EventEmitter from \"../classes/EventEmitter.js\";\nimport { wait } from \"../classes/Utils.js\";\nimport autorenew from \"@icons/autorenew.svg\";\n\nexport default class Loader extends EventEmitter {\n loaderElement: HTMLElement;\n parent: HTMLElement;\n active: boolean;\n text: string;\n /*\n The Loader is used to mask a certain container and ad an loading symbol.\n\n Usage:\n Take note that all parameters are OPTIONAL\n Loader.init(\n element: The element that needs to be covered\n active: Is the loader active from start\n text: Add a String as loading text\n )\n\n */\n\n init(element: HTMLElement, active: boolean, text: string) {\n let loaderHtml = `\n