{"version":3,"file":"login.js","sources":["../src/login/index.js"],"sourcesContent":["window.docReady(() => {\r\n window.bootstrapValidation(\"#login-form\", {\r\n Username: (element) => {\r\n const errors = [];\r\n const { validity } = element;\r\n \r\n if (validity.valueMissing) {\r\n errors.push(\"Please enter an email address\");\r\n }\r\n if (validity.typeMismatch) {\r\n errors.push(\"Please enter a valid email address\");\r\n }\r\n \r\n return errors;\r\n },\r\n Password: (element) => {\r\n const errors = [];\r\n const { validity } = element;\r\n\r\n if (validity.valueMissing) {\r\n errors.push(\"Please enter a password\");\r\n }\r\n \r\n return errors;\r\n }\r\n }, window.errors);\r\n \r\n if ($(\"#Username\")[0].value !== \"\") {\r\n $(\"#Password\")[0].focus();\r\n }\r\n});"],"names":["window","docReady","bootstrapValidation","Username","element","errors","validity","valueMissing","push","typeMismatch","Password","$","value","focus"],"mappings":"aAAAA,OAAOC,SAAQ,WACbD,OAAOE,oBAAmB,cAAgB,CACxCC,SAAU,SAACC,GACT,IAAMC,EAAS,GACPC,EAAaF,EAAbE,SASR,OAPIA,EAASC,cACXF,EAAOG,KAAI,iCAETF,EAASG,cACXJ,EAAOG,KAAI,sCAGNH,GAETK,SAAU,SAACN,GACT,IAAMC,EAAS,GAOf,OANqBD,EAAbE,SAEKC,cACXF,EAAOG,KAAI,2BAGNH,IAERL,OAAOK,QAEsB,KAA7BM,EAAA,aAAgB,GAAGC,OACpBD,EAAA,aAAe,GAAGE"}