{ "version": 3, "sources": ["../../src/js/boot.ts"], "sourcesContent": ["declare const app: any;\ndeclare const nav: any;\ndeclare const bootstrap: any;\ndeclare const reportAppError: (message: string, customData: any) => void;\n\n(() => {\n\n\tlet initialized = false;\n\n\tconst bootApp = async () => {\n\t\tif (nav.captchaLoaded && !initialized) {\n\t\t\tinitialized = true;\n\t\t\tnav.init();\n\t\t}\n\n\t\tif (window.location.pathname === '/app' && !initialized) {\n\t\t\tinitialized = true;\n\t\t\tawait app.initApp();\n\t\t}\n\n\t\tconst tooltips = document.getElementsByClassName(\"tooltip-auto\");\n\t\t[...tooltips].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))\n\t};\n\n\twindow.addEventListener('load', async () => {\n\t\tbootApp();\n\t});\n\n\twindow.addEventListener('captchaLoaded', async () => {\n\t\tnav.init();\n\t});\n\n\twindow.onerror = (message, source, lineno, colno, error) => {\n\n\t\tconst stack = error ? error.stack : null;\n\t\tconst errorData = {\n\t\t\tmessage,\n\t\t\tsource,\n\t\t\tlineno,\n\t\t\tcolno,\n\t\t\tstack,\n\t\t};\n\n\t\tconsole.error(errorData);\n\n\t\treportAppError('Unhandled exception', errorData);\n\t};\n\n})();\n"], "mappings": "oBAKC,IAAM,CAEN,IAAIA,EAAc,GAEZC,EAAU,SAAY,CACvB,IAAI,eAAiB,CAACD,IACzBA,EAAc,GACd,IAAI,KAAK,GAGN,OAAO,SAAS,WAAa,QAAU,CAACA,IAC3CA,EAAc,GACd,MAAM,IAAI,QAAQ,GAInB,CAAC,GADgB,SAAS,uBAAuB,cAAc,CACnD,EAAE,IAAIE,GAAoB,IAAI,UAAU,QAAQA,CAAgB,CAAC,CAC9E,EAEA,OAAO,iBAAiB,OAAQ,SAAY,CAC3CD,EAAQ,CACT,CAAC,EAED,OAAO,iBAAiB,gBAAiB,SAAY,CACpD,IAAI,KAAK,CACV,CAAC,EAED,OAAO,QAAU,CAACE,EAASC,EAAQC,EAAQC,EAAOC,IAAU,CAE3D,IAAMC,EAAQD,EAAQA,EAAM,MAAQ,KAC9BE,EAAY,CACjB,QAAAN,EACA,OAAAC,EACA,OAAAC,EACA,MAAAC,EACA,MAAAE,CACD,EAIA,eAAe,sBAAuBC,CAAS,CAChD,CAED,GAAG", "names": ["initialized", "bootApp", "tooltipTriggerEl", "message", "source", "lineno", "colno", "error", "stack", "errorData"] }