{"version":3,"sources":["webpack:///./src/CVI/WebCore/components/outdated-browser-popup.js"],"names":["outdatedPopup","then","fetch","document","documentElement","lang","method","headers","Accept","response","json","result","headingText","browserPopupHeading","bodyText","browserPopupDescription","popupHtml","body","innerHTML","popup","querySelector","button","classList","add","addEventListener","remove"],"mappings":"gHACA,WAAMA,EAAgB,WACpB,gDAAuBC,MAAK,WAC1BC,MAAM,4BAAD,OAA6BC,SAASC,gBAAgBC,KAAtD,KAA+D,CAClEC,OAAQ,MACRC,QAAS,CACP,eAAgB,mBAChBC,OAAQ,sBAGTP,MAAK,SAAAQ,GAAQ,OAAIA,EAASC,UAC1BT,MAAK,SAACU,GACL,IAAMC,EAAcD,EAAOE,oBACrBC,EAAWH,EAAOI,wBAClBC,EAAY,6NAAH,OAGeJ,EAHf,wKAMeE,EANf,02BAkBfX,SAASc,KAAKC,WAAaF,EAE3B,IAAMG,EAAQhB,SAASiB,cAAc,qBAC/BC,EAASF,EAAMC,cAAc,2BAEnCD,EAAMG,UAAUC,IAAI,UACpBF,EAAOG,iBAAiB,SAAS,WAC/BL,EAAMG,UAAUG,OAAO,aACtB,UAKIzB","file":"js/chunk-2d216238.074b5163.js","sourcesContent":["\r\nconst outdatedPopup = () => {\r\n import('whatwg-fetch').then(() => {\r\n fetch(`/cvi/outdatedbrowser/api/${document.documentElement.lang}/`, {\r\n method: 'GET',\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json'\r\n }\r\n })\r\n .then(response => response.json())\r\n .then((result) => {\r\n const headingText = result.browserPopupHeading\r\n const bodyText = result.browserPopupDescription\r\n const popupHtml = `
`\r\n\r\n document.body.innerHTML += popupHtml\r\n\r\n const popup = document.querySelector('.js-browser-popup')\r\n const button = popup.querySelector('.js-browser-popup-close')\r\n\r\n popup.classList.add('active')\r\n button.addEventListener('click', () => {\r\n popup.classList.remove('active')\r\n }, false)\r\n })\r\n })\r\n}\r\n\r\nexport default outdatedPopup\r\n"],"sourceRoot":""}