{"version":3,"file":"bundle.f10054f5a1884feac2df.js","mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;ACAA;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;ACNA;AACoC;AACP;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,CAAC","sources":["webpack://snappet-authentication/./node_modules/normalize.css/normalize.css?fb57","webpack://snappet-authentication/./Ui/Styles/main.scss?8f0b","webpack://snappet-authentication/webpack/bootstrap","webpack://snappet-authentication/webpack/runtime/make namespace object","webpack://snappet-authentication/./Ui/Scripts/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// Write your JavaScript code.\r\nimport 'normalize.css/normalize.css'\r\nimport '../Styles/main.scss';\r\n\r\nfunction init() {\r\n // Modify forms to disable all buttons on submit\r\n\r\n function disableButtonsAndInputs(form) {\r\n form.querySelectorAll('button, input[type=submit]').forEach(e => {\r\n e.disabled = true;\r\n });\r\n }\r\n\r\n document.querySelectorAll('form').forEach(e => {\r\n e.addEventListener('submit', (evt) => {\r\n disableButtonsAndInputs(evt.target);\r\n });\r\n });\r\n\r\n // Enable show password button\r\n const passwordIcon = document.getElementById('password-icon');\r\n const passwordInput = document.getElementById('password-input');\r\n if (passwordIcon && passwordInput) {\r\n passwordIcon.addEventListener('mousedown', function (event) {\r\n passwordInput.type = 'text';\r\n });\r\n passwordIcon.addEventListener('mouseup', function (event) {\r\n passwordInput.type = 'password';\r\n });\r\n passwordIcon.addEventListener('touchstart', function () {\r\n passwordInput.type = 'text';\r\n });\r\n passwordIcon.addEventListener('touchend', function () {\r\n passwordInput.type = 'password';\r\n });\r\n }\r\n}\r\n\r\n(function() {\r\n\twindow.addEventListener('DOMContentLoaded', init);\r\n})();\r\n"],"names":[],"sourceRoot":""}