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./js/popup.js","webpack:///webpack/bootstrap","webpack:///./js/login.js"],"sourcesContent":["'use strict';\r\n\r\nvar popup = require('./popup');\r\n\r\nfunction change(lang) {\r\n window.location.href = \"/Account/ChangeCurrentCulture?culture=\" + lang;\r\n};\r\n\r\nfunction changeModalInit() {\r\n $('#languagePopupClose').on('click', function () {\r\n popup.close('languageWindow');\r\n });\r\n\r\n $('.js-language').on('click', function () {\r\n var code = $(this).attr('id');\r\n change(code);\r\n });\r\n}\r\n\r\nmodule.exports = {\r\n changeModalInit: changeModalInit,\r\n change: change\r\n};","'use strict'\r\n\r\nfunction open(id) {\r\n $('#' + id).data('kendoWindow').open();\r\n}\r\n\r\nfunction openCenter(id) {\r\n $('#' + id).data('kendoWindow').center().open();\r\n}\r\n\r\nfunction close(id) {\r\n $('#' + id).data('kendoWindow').close();\r\n}\r\n\r\nfunction showWrapper(element) {\r\n element.siblings('.popup-wrapper').show();\r\n}\r\n\r\nfunction hideWrapper(element) {\r\n element.siblings('.popup-wrapper').hide();\r\n}\r\n\r\nfunction showError(id, text) {\r\n $('#' + id).children('.popup__error_text').html(text);\r\n $('#' + id).show();\r\n}\r\n\r\nfunction hideError(id) {\r\n $('#' + id).hide();\r\n $('#' + id).children('.popup__error_text').html('');\r\n}\r\n\r\nfunction openSaveChangesWindow(submitHandler, cancelHandler, message) {\r\n openCenter('saveChangesWindow');\r\n\r\n $('#saveChangesWindow').find('.popup__content').html(message);\r\n\r\n $('#saveChangesSubmit').unbind('click');\r\n $('#saveChangesSubmit').on('click', () => {\r\n close('saveChangesWindow');\r\n submitHandler();\r\n });\r\n\r\n $('.popup__savechanges__close').unbind('click');\r\n $('.popup__savechanges__close').on('click', () => {\r\n close('saveChangesWindow');\r\n cancelHandler();\r\n });\r\n}\r\n\r\nmodule.exports = {\r\n open: open,\r\n openCenter: openCenter,\r\n close: close,\r\n showWrapper: showWrapper,\r\n hideWrapper: hideWrapper,\r\n showError: showError,\r\n hideError: hideError,\r\n openSaveChangesWindow: openSaveChangesWindow,\r\n};\r\n","// 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","'use strict'\r\n\r\nvar culture = require('./culture.js');\r\n\r\n$(window).on('load', function () {\r\n loginInit(); \r\n});\r\n\r\nfunction loginInit() {\r\nconsole.log('login init success');\r\n\t$('#language').find('.k-toggle-button').on('click', function () {\r\n\t\tif (!$(this).hasClass('active-btn')) {\r\n\t\t\t$(this).addClass('active-btn k-state-active').siblings('.active-btn').removeClass('active-btn k-state-active');\r\n\t\t}\r\n\t});\r\n\r\n\t$('.k-split-button .k-overflow-button').on('click', function () {\r\n\t\t$(this).addClass('current-lang').siblings('.current-lang').removeClass('current-lang');\r\n\t});\r\n\r\n\tcheckFields();\r\n\r\n $('#loginForm input').on('change keyup input', checkFields);\r\n\r\n\t// for autofill in Google Chrome (input:-webkit-autofill)\r\n\tsetTimeout(function () {\r\n\t $('#password').trigger('change');\r\n\r\n\t window.scrollTo((document.body.scrollWidth - document.documentElement.clientWidth * 4) / 2, 0);\r\n\t}, 1);\r\n};\r\n\r\nfunction checkFields() {\r\n\tif ($('#username').val().length === 0 || ($('#password').val().length === 0 && $('#password:-webkit-autofill').length === 0)) {\r\n\t\t$('#loginSubmit').prop('disabled', 'disable').addClass('k-state-disabled');\r\n\t} else {\r\n\t\t$('#loginSubmit').prop('disabled', '').removeClass('k-state-disabled');\r\n\t}\r\n}\r\n\r\nfunction changeLanguage(e) {\r\n\tif (e.id.length > 0) {\r\n\t\tculture.change(e.id);\r\n\t}\r\n}\r\n\r\nfunction openAdditionalLanguages() {\r\n\r\n}\r\n\r\nwindow.changeLanguageClick = changeLanguage;\r\nwindow.openAdditionalLanguages = openAdditionalLanguages;\r\n"],"names":["popup","change","lang","window","location","href","module","exports","changeModalInit","$","on","close","this","attr","openCenter","id","data","center","open","showWrapper","element","siblings","show","hideWrapper","hide","showError","text","children","html","hideError","openSaveChangesWindow","submitHandler","cancelHandler","message","find","unbind","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","culture","checkFields","val","length","prop","addClass","removeClass","loginInit","console","log","hasClass","setTimeout","trigger","scrollTo","document","body","scrollWidth","documentElement","clientWidth","changeLanguageClick","changeLanguage","e","openAdditionalLanguages"],"sourceRoot":""}