{"version":3,"file":"webportal.min.js","sources":["../../../WebPortal/Scripts/src/webPortal.ts","../../../WebPortal/Scripts/src/eventEmitter.ts"],"sourcesContent":["import { initializeEventEmitter } from \"./eventEmitter\";\r\nconst GlobalsKey = \"__EDUADMIN_GLOBALS\";\r\n\r\n//Mindre script som kunder kommer att kunna länka in på sina egna sidor för att kunna lägga till huvudscriptet till de scriptbaserade anmälningsformulären\r\n(function () {\r\n\tfunction resolveHost(url: string) {\r\n\t\t//todo använd new URL istället när vi släpper IE supporten\r\n\t\tconst tmpLnk = document.createElement(\"a\");\r\n\t\ttmpLnk.href = url;\r\n\t\tconst hostName = tmpLnk.hostname;\r\n\t\tconst host = `https://${hostName}/`;\r\n\t\tif (hostName.indexOf(\"localhost\") > -1) {\r\n\t\t\treturn host + \"/legaonlineFaceCore/\";\r\n\t\t} else if (hostName.indexOf(\"lodev.se\") > -1) {\r\n\t\t\treturn host + \"/legaonlineFace/\";\r\n\t\t} else {\r\n\t\t\treturn host;\r\n\t\t}\r\n\t}\r\n\r\n\tconst eduAdminCustomerScript = document.getElementById(\r\n\t\t\"eduadmin-customer-script\"\r\n\t);\r\n\tif (!eduAdminCustomerScript) {\r\n\t\treturn;\r\n\t}\r\n\r\n\tconst loaderHtml = `
`;\r\n\tconst courseDivs = document.querySelectorAll(\"[data-eduadmin-courses]\");\r\n\tconst eventDivs = document.querySelectorAll(\"[data-eduadmin-events]\");\r\n\r\n\tfunction replaceInnerHtmlWithLoader(elements: NodeListOf