{"version":3,"file":"registration.min.js","sources":["registration.min.js"],"sourcesContent":["/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 0:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\n\tvar processInclude = __webpack_require__(3);\n\n\t$(document).ready(function () {\n\t processInclude(__webpack_require__(179));\n\t processInclude(__webpack_require__(57));\n\t processInclude(__webpack_require__(65));\n\t});\n\n/***/ }),\n\n/***/ 1:\n/***/ (function(module, exports) {\n\n\t'use strict';\n\n\t/**\n\t * Remove all validation. Should be called every time before revalidating form\n\t * @param {element} form - Form to be cleared\n\t * @returns {void}\n\t */\n\n\tvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n\tfunction clearFormErrors(form) {\n\t $(form).find('.form-control.is-invalid').removeClass('is-invalid');\n\t}\n\n\tmodule.exports = function (formElement, payload) {\n\t // clear form validation first\n\t clearFormErrors(formElement);\n\t $('.alert', formElement).remove();\n\n\t if ((typeof payload === 'undefined' ? 'undefined' : _typeof(payload)) === 'object' && payload.fields) {\n\t Object.keys(payload.fields).forEach(function (key) {\n\t if (payload.fields[key]) {\n\t var feedbackElement = $(formElement).find('[name=\"' + key + '\"]').parents('.cc-form-group').find('.invalid-feedback');\n\n\t if (feedbackElement.length > 0) {\n\t if (Array.isArray(payload[key])) {\n\t feedbackElement.find('.cc-text-message').html(payload.fields[key].join('
'));\n\t } else {\n\t feedbackElement.find('.cc-text-message').html(payload.fields[key]);\n\t }\n\t feedbackElement.siblings('.form-control').addClass('is-invalid');\n\t feedbackElement.show();\n\t feedbackElement[0].scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });\n\t }\n\t }\n\t });\n\t }\n\t if (payload && payload.error) {\n\t var form = $(formElement).prop('tagName') === 'FORM' ? $(formElement) : $(formElement).parents('form');\n\n\t form.prepend('