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AQqE,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KC7CvF,IAAII,EAAsB3D,EAAoBS,OAAEN,EAAW,CAAC,MAAM,IAAOH,EAAoB,OAC7F2D,EAAsB3D,EAAoBS,EAAEkD,G","sources":["webpack://app/webpack/runtime/chunk loaded","webpack://app/./Content/img/BG_Cows.png","webpack://app/./Content/img/BG_Crop.png","webpack://app/./Content/img/BG_Pigs.png","webpack://app/./Content/img/envelope.svg","webpack://app/./Content/img/favicon.ico","webpack://app/./Content/img/favicon.png","webpack://app/./Content/img/lock.svg","webpack://app/./Content/img/logo-agrovision-final-loginpage.svg","webpack://app/./Content/img/logo-agrovision.svg","webpack://app/./Content/fonts/Poppins-Regular.ttf","webpack://app/./Views/Account/login.ts","webpack://app/./Views/Account/signoutRedirect.ts","webpack://app/./Views/Register/register.ts","webpack://app/./Views/Shared/Components/CultureSelection/cultureSelection.ts","webpack://app/./Views/Shared/carousel.ts","webpack://app/./Views/Shared/signinRedirect.ts","webpack://app/./Views/Shared/site.ts","webpack://app/./Views/Shared/userAgent.ts","webpack://app/./Views/main.ts","webpack://app/webpack/bootstrap","webpack://app/webpack/runtime/define property getters","webpack://app/webpack/runtime/global","webpack://app/webpack/runtime/hasOwnProperty shorthand","webpack://app/webpack/runtime/make namespace object","webpack://app/webpack/runtime/publicPath","webpack://app/webpack/runtime/jsonp chunk loading","webpack://app/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","export default __webpack_public_path__ + \"img/BG_Cows.png\";","export default __webpack_public_path__ + \"img/BG_Crop.png\";","export default __webpack_public_path__ + \"img/BG_Pigs.png\";","export default __webpack_public_path__ + \"img/envelope.svg\";","export default __webpack_public_path__ + \"img/favicon.ico\";","export default __webpack_public_path__ + \"img/favicon.png\";","export default __webpack_public_path__ + \"img/lock.svg\";","export default __webpack_public_path__ + \"img/logo-agrovision-final-loginpage.svg\";","export default __webpack_public_path__ + \"img/logo-agrovision.svg\";","export default __webpack_public_path__ + \"fonts/Poppins-Regular.ttf\";","class Login {\r\n constructor() {\r\n jQuery(() => {\r\n Login.prototype.initializeLogin();\r\n });\r\n }\r\n\r\n private initializeLogin() {\r\n const form = document.getElementById(\"login-form\") as HTMLFormElement;\r\n const loginBtn = document.getElementById(\"loginBtn\") as HTMLInputElement;\r\n const usernameField = document.getElementById(\"username-field\") as HTMLInputElement;\r\n const passwordField = document.getElementById(\"password-field\") as HTMLInputElement;\r\n\r\n form.onsubmit = (e) => {\r\n if (loginBtn.classList.contains(\"disabled\")) {\r\n e.preventDefault();\r\n } else if (usernameField.value !== \"\" && passwordField.value !== \"\") {\r\n loginBtn.classList.add(\"disabled\");\r\n }\r\n };\r\n }\r\n}\r\n\r\nif (/\\/Account\\/Login\\/?$/i.test(location.pathname)) {\r\n const loginWindow = window as any;\r\n loginWindow.login = new Login();\r\n}","export class SignoutRedirect {\r\n constructor() {\r\n jQuery(() => {\r\n window.addEventListener(\"load\", () => {\r\n const a = document.querySelector(\"a.PostLogoutRedirectUri\") as HTMLAnchorElement;\r\n if (a) {\r\n window.location.href = a.href;\r\n }\r\n });\r\n });\r\n }\r\n}\r\n\r\nif (/\\/Account\\/LoggedOut\\/?$/i.test(location.pathname)) {\r\n const signoutWindow = window as any;\r\n signoutWindow.signoutRedirect = new SignoutRedirect();\r\n}","class Register {\r\n constructor() {\r\n jQuery(() => {\r\n Register.prototype.initializeRegister();\r\n });\r\n }\r\n\r\n private initializeRegister() {\r\n const form = document.getElementById(\"register-form\") as HTMLFormElement;\r\n const registerBtn = document.getElementById(\"registerBtn\") as HTMLInputElement;\r\n\r\n form.onsubmit = (e) => {\r\n if (registerBtn.classList.contains(\"disabled\")) {\r\n e.preventDefault();\r\n } else {\r\n registerBtn.classList.add(\"disabled\");\r\n }\r\n };\r\n }\r\n}\r\n\r\nif (/\\/Register\\/?$/i.test(location.pathname)) {\r\n const registerWindow = window as any;\r\n registerWindow.Register = new Register();\r\n}","class CultureSelection {\r\n constructor() {\r\n jQuery(() => {\r\n CultureSelection.prototype.initializeCultureSelection();\r\n });\r\n }\r\n\r\n private initializeCultureSelection() {\r\n const select = document.getElementById(\"culture\") as HTMLSelectElement;\r\n if (select) {\r\n // auto submit on change\r\n select.onchange = function(e) {\r\n const form: HTMLFormElement = (this as any).form;\r\n const refererInput: HTMLInputElement = document.createElement(\"input\");\r\n refererInput.type = \"hidden\";\r\n refererInput.name = \"returnUrl\";\r\n refererInput.value = window.location.href;\r\n form.appendChild(refererInput);\r\n form.submit();\r\n };\r\n }\r\n }\r\n}\r\n\r\n// needed on all pages\r\nif (/\\/?$/i.test(location.pathname)) {\r\n const cultureSelectionWindow = window as any;\r\n cultureSelectionWindow.cultureSelection = new CultureSelection();\r\n}\r\n","export class Carousel {\r\n constructor() {\r\n const animationDuration = 1000;\r\n const animationInterval = 10000;\r\n\r\n document.addEventListener(\"DOMContentLoaded\", (event) => {\r\n $(\".carousel > div:gt(0)\").hide();\r\n\r\n setInterval(() => {\r\n $(\".carousel > div:first\")\r\n .fadeOut(animationDuration)\r\n .next()\r\n .fadeIn(animationDuration)\r\n .end()\r\n .appendTo(\".carousel\");\r\n }, animationInterval);\r\n });\r\n }\r\n}\r\n\r\n// needed on all pages\r\nif (/\\/?$/i.test(location.pathname)) {\r\n const carouselWindow = window as any;\r\n carouselWindow.carousel = new Carousel();\r\n}\r\n","class SigninRedirect {\r\n constructor() {\r\n jQuery(() => {\r\n window.location.href = document.querySelector(\"meta[http-equiv=refresh]\").getAttribute(\"data-url\");\r\n });\r\n }\r\n}\r\n\r\nif (/\\/Shared\\/Redirect\\/?$/i.test(location.pathname)) {\r\n const signInRedirectWindow = window as any;\r\n signInRedirectWindow.signInRedirect = new SigninRedirect();\r\n}","import { MDCTextField } from \"@material/textfield\";\r\nimport $ from \"jquery\";\r\nimport zxcvbn from \"zxcvbn\";\r\n\r\nexport class Site {\r\n constructor() {\r\n jQuery(() => {\r\n $(\".mdc-text-field\").each((index, element) => {\r\n const textField = new MDCTextField(element);\r\n });\r\n\r\n const inputElements = document.querySelectorAll(\"input\");\r\n this.checkInputsForErrorsOnPageReload(inputElements);\r\n this.checkPasswordStrength();\r\n this.togglePasswordVisibility();\r\n this.initializePasswordValidations();\r\n });\r\n }\r\n\r\n private initializePasswordValidations() {\r\n $(\".password-field.validation\").on(\"input\", () => {\r\n this.validatePasswords();\r\n });\r\n\r\n $(\"#registerBtn,#newPasswordBtn\").on(\"click\", (event) => {\r\n if (!this.validatePasswords()) {\r\n event.preventDefault();\r\n }\r\n });\r\n }\r\n\r\n private togglePasswordValidator(result: RegExpMatchArray | boolean, element: string): void {\r\n if (result) {\r\n $(element).removeClass(\"fa-times\").addClass(\"fa-check\");\r\n }\r\n else {\r\n $(element).removeClass(\"fa-check\").addClass(\"fa-times\");\r\n }\r\n }\r\n\r\n private validatePasswords(): boolean {\r\n const password1 = $(\"#password-field1\").val().toString();\r\n const password2 = $(\"#password-field2\").val().toString();\r\n\r\n this.togglePasswordValidator(password1.match(/.{6,}/g), \".password-validation-length\");\r\n this.togglePasswordValidator(password1.match(/[a-z]+/g), \".password-validation-lower\");\r\n this.togglePasswordValidator(password1.match(/[A-Z]+/g), \".password-validation-upper\");\r\n this.togglePasswordValidator(password1.match(/[0-9]+/g), \".password-validation-number\");\r\n this.togglePasswordValidator(password1.match(/[^A-Za-z0-9]+/g), \".password-validation-special\");\r\n this.togglePasswordValidator(password1 !== \"\" && password2 !== \"\" && password1 === password2, \".password-validation-match\");\r\n\r\n return $(\".fa-times\").length === 0;\r\n }\r\n\r\n private checkInputsForErrorsOnPageReload(inputElements: NodeListOf) {\r\n Array.from(inputElements).forEach((inputElement) => {\r\n if (inputElement.classList.contains(\"input-validation-error\")) {\r\n inputElement.parentElement.classList.add(\"placeholder-error\");\r\n }\r\n });\r\n }\r\n\r\n private checkPasswordStrength() {\r\n const elements = document.getElementsByClassName(\"password-field\");\r\n\r\n if (elements.length > 0) {\r\n const password = elements[0] as HTMLInputElement;\r\n const meter = document.getElementById(\"password-strength-meter\") as HTMLMeterElement;\r\n\r\n if (password !== null && meter !== null) {\r\n password.addEventListener(\"input\", () => {\r\n const val = password.value;\r\n const result = zxcvbn(val);\r\n\r\n // Update the password strength meter\r\n meter.value = result.score;\r\n\r\n // Update the text indicator\r\n // 0 worst 1 bad 2 weak 3 good 4 strong\r\n for (let i = 0; i <= 4; i++) {\r\n const indicator = document.getElementById(`password-strength-${i}`);\r\n indicator.hidden = result.score !== i;\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n private togglePasswordVisibility() {\r\n $(\".view-password\").on(\"click\", () => {\r\n let passwords = $(\".password-field\");\r\n for (let i = 0; i < passwords.length; i++) {\r\n if (passwords[i].getAttribute(\"type\") === \"password\") {\r\n passwords[i].setAttribute(\"type\", \"text\");\r\n $(passwords[i]).siblings(\"span\").children(\"i\").removeClass(\"fa-eye\").addClass(\"fa-eye-slash\");\r\n }\r\n else {\r\n passwords[i].setAttribute(\"type\", \"password\");\r\n $(passwords[i]).siblings(\"span\").children(\"i\").removeClass(\"fa-eye-slash\").addClass(\"fa-eye\");\r\n }\r\n }\r\n });\r\n }\r\n}\r\n\r\n// needed on all pages\r\nif (/\\/?$/i.test(location.pathname)) {\r\n const siteWindow = window as any;\r\n siteWindow.site = new Site();\r\n}\r\n","export class UserAgent {\r\n public static isOldVersionOfEdge = window.navigator.userAgent.indexOf(\"Edge\") > -1;\r\n public static isFirefox = window.navigator.userAgent.indexOf(\"Firefox\") > 0;\r\n}","// import scripts\r\nimport \"./Account/login\";\r\nimport \"./Account/signoutRedirect\";\r\nimport \"./Register/register\";\r\nimport \"./Shared/carousel\";\r\nimport \"./Shared/Components/CultureSelection/cultureSelection\";\r\nimport \"./Shared/signinRedirect\";\r\nimport \"./Shared/site\";\r\nimport {UserAgent} from \"./Shared/userAgent\";\r\n\r\nexport {UserAgent};\r\n\r\n// import scss\r\nimport \"./Account/login.scss\";\r\nimport \"./Register/register.scss\";\r\nimport \"./site.scss\";\r\n\r\n// import libraries\r\nimport \"bootstrap\";\r\nimport \"bootstrap-select/dist/css/bootstrap-select.min.css\";\r\nimport \"bootstrap-select/dist/js/bootstrap-select.min.js\";\r\nimport \"bootstrap/dist/css/bootstrap.min.css\";\r\nimport \"bootstrap/dist/js/bootstrap.min.js\";\r\nimport \"font-awesome/css/font-awesome.min.css\";\r\nimport \"jquery\";\r\nimport \"zxcvbn/dist/zxcvbn.js\";\r\n\r\n// Import images\r\nimport \"../Content/img/BG_Cows.png\";\r\nimport \"../Content/img/BG_Crop.png\";\r\nimport \"../Content/img/BG_Pigs.png\";\r\nimport \"../Content/img/envelope.svg\";\r\nimport \"../Content/img/favicon.ico\";\r\nimport \"../Content/img/favicon.png\";\r\nimport \"../Content/img/lock.svg\";\r\nimport \"../Content/img/logo-agrovision-final-loginpage.svg\";\r\nimport \"../Content/img/logo-agrovision.svg\";\r\n\r\n// Fonts\r\nimport \"../Content/fonts/Poppins-Regular.ttf\";","// 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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// 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};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkapp\"] = self[\"webpackChunkapp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [736], () => (__webpack_require__(817)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","jQuery","Login","prototype","initializeLogin","form","document","getElementById","loginBtn","usernameField","passwordField","onsubmit","e","classList","contains","preventDefault","value","add","test","location","pathname","window","login","addEventListener","a","querySelector","href","SignoutRedirect","signoutRedirect","Register","initializeRegister","registerBtn","CultureSelection","initializeCultureSelection","select","onchange","this","refererInput","createElement","type","name","appendChild","submit","cultureSelection","event","$","hide","setInterval","fadeOut","next","fadeIn","end","appendTo","Carousel","carousel","signInRedirect","getAttribute","each","index","element","MDCTextField","inputElements","querySelectorAll","checkInputsForErrorsOnPageReload","checkPasswordStrength","togglePasswordVisibility","initializePasswordValidations","on","validatePasswords","togglePasswordValidator","result","removeClass","addClass","password1","val","toString","password2","match","length","Array","from","forEach","inputElement","parentElement","elements","getElementsByClassName","score","i","hidden","passwords","setAttribute","siblings","children","Site","site","isOldVersionOfEdge","navigator","userAgent","indexOf","isFirefox","UserAgent","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prop","hasOwnProperty","Symbol","toStringTag","scriptUrl","importScripts","currentScript","src","scripts","getElementsByTagName","Error","replace","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}