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AEU,EAAI,SAAS6B,GAAW,OAAoC,IAA7BD,EAAgBC,IAGrE,IAAIC,EAAuB,SAASC,EAA4BC,GAC/D,IAKIrD,EAAUkD,EALVrC,EAAWwC,EAAK,GAChBC,EAAcD,EAAK,GACnBE,EAAUF,EAAK,GAGInC,EAAI,EAC3B,GAAGL,EAAS2C,MAAK,SAASnD,GAAM,OAA+B,IAAxB4C,EAAgB5C,MAAe,CACrE,IAAIL,KAAYsD,EACZvD,EAAoBmC,EAAEoB,EAAatD,KACrCD,EAAoBU,EAAET,GAAYsD,EAAYtD,IAGhD,GAAGuD,EAAS,IAAI3C,EAAS2C,EAAQxD,GAGlC,IADGqD,GAA4BA,EAA2BC,GACrDnC,EAAIL,EAASM,OAAQD,IACzBgC,EAAUrC,EAASK,GAChBnB,EAAoBmC,EAAEe,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOnD,EAAoBY,EAAEC,IAG1B6C,EAAqBC,KAAK,iCAAmCA,KAAK,kCAAoC,GAC1GD,EAAmBE,QAAQR,EAAqBS,KAAK,KAAM,IAC3DH,EAAmBI,KAAOV,EAAqBS,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,I,GChDvF,IAAIK,EAAsB/D,EAAoBY,OAAET,EAAW,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,MAAM,WAAa,OAAOH,EAAoB,UAC9K+D,EAAsB/D,EAAoBY,EAAEmD,I","sources":["webpack://microsoft-academy/./src/pages/registration.vue","webpack://microsoft-academy/./src/components/RegistrationForm.vue","webpack://microsoft-academy/./src/components/RegistrationForm.vue?143a","webpack://microsoft-academy/./src/pages/registration.vue?dbac","webpack://microsoft-academy/./src/registration.js","webpack://microsoft-academy/webpack/bootstrap","webpack://microsoft-academy/webpack/runtime/chunk loaded","webpack://microsoft-academy/webpack/runtime/compat get default export","webpack://microsoft-academy/webpack/runtime/define property getters","webpack://microsoft-academy/webpack/runtime/global","webpack://microsoft-academy/webpack/runtime/hasOwnProperty shorthand","webpack://microsoft-academy/webpack/runtime/node module decorator","webpack://microsoft-academy/webpack/runtime/runtimeId","webpack://microsoft-academy/webpack/runtime/publicPath","webpack://microsoft-academy/webpack/runtime/jsonp chunk loading","webpack://microsoft-academy/webpack/startup"],"sourcesContent":["<template>\n  <BaseLayout :breadcrumb=\"breadcrumb\" :show-popup=\"false\">\n    <CenteredTitle>{{ translation('registration_page-title') }}</CenteredTitle>\n\n    <RegistrationForm/>\n    <SignHint\n        :title=\"translation('login_hint-title')\"\n        :text=\"translation('login_hint-text')\"\n        :link=\"translation('login_hint-link')\"\n        :url=\"'/login'\"\n    />\n  </BaseLayout>\n</template>\n\n<script>\nimport BaseLayout from '@/components/BaseLayout.vue'\nimport CenteredTitle from \"@/components/CenteredTitle\";\nimport RegistrationForm from '@/components/RegistrationForm.vue'\nimport SignHint from \"@/components/SignHint\";\nimport CodeBooksMixin from \"@/mixins/codeBooksMixin\";\n\nexport default {\n  computed: {\n    breadcrumb() {\n      return [{\n        title: this.translation('registration_page-title'),\n        url: '/registration',\n      }];\n    }\n  },\n  mixins: [CodeBooksMixin],\n  components: {\n    SignHint,\n    CenteredTitle,\n    BaseLayout,\n    RegistrationForm,\n  },\n}\n</script>\n","<template>\n  <form @submit=\"onSubmit\" class=\"authenticationForm\">\n\n    <div class=\"container container--xs\">\n      <BaseAlertList\n          :alerts=\"formAlerts\"\n          class=\"mb-4\"\n      />\n\n      <div class=\"formGrid\">\n        <!-- First name -->\n        <FormInput\n            :label=\"translation('global_input-firstname-label')\"\n            :required=\"true\"\n            :placeholder=\"translation('global_input-firstname-placeholder')\"\n            :uuid=\"`firstname`\"\n            :error=\"firstnameError\"\n            v-model=\"firstname\"\n        />\n\n        <!-- Last name -->\n        <FormInput\n            :label=\"translation('global_input-lastname-label')\"\n            :required=\"true\"\n            :placeholder=\"translation('global_input-lastname-placeholder')\"\n            :uuid=\"`lastname`\"\n            :error=\"lastnameError\"\n            v-model=\"lastname\"\n        />\n\n        <!-- Email -->\n        <FormInput\n            :label=\"translation('global_input-email-label')\"\n            :required=\"true\"\n            :type=\"'email'\"\n            :placeholder=\"translation('global_input-email-placeholder')\"\n            :uuid=\"`email`\"\n            :error=\"emailError\"\n            v-model=\"email\"\n        >\n          <template v-slot:icon>\n            <img\n                src=\"../assets/images/icons/envelope.svg\"\n                alt=\"\"\n                class=\"icon\"\n                width=\"23\"\n                height=\"18\"\n                loading=\"lazy\"\n            >\n          </template>\n        </FormInput>\n\n        <!-- Phone -->\n        <FormInput\n            :label=\"translation('global_input-phone-label')\"\n            :type=\"'tel'\"\n            :placeholder=\"translation('global_input-phone-placeholder')\"\n            :uuid=\"`phone`\"\n            :error=\"phoneError\"\n            v-model=\"phone\"\n        >\n          <template v-slot:icon>\n            <img\n                src=\"../assets/images/icons/phone.svg\"\n                alt=\"\"\n                class=\"icon\"\n                width=\"15\"\n                height=\"25\"\n                loading=\"lazy\"\n            >\n          </template>\n        </FormInput>\n      </div>\n\n      <div class=\"formGrid mt-lg-9 mb-3\">\n        <!-- Password -->\n        <FormInput\n            :label=\"translation('global_input-password-label')\"\n            :required=\"true\"\n            :type=\"isPasswordRevealed__main ? 'text' : 'password'\"\n            :placeholder=\"translation('global_input-password-placeholder')\"\n            :uuid=\"`password`\"\n            :error=\"passwordError\"\n            :help=\"translation('global_input-password-help', {'number': 8})\"\n            :showErrorIcon=\"false\"\n            v-model=\"password\"\n        >\n          <template v-slot:icon>\n            <img\n                src=\"../assets/images/icons/lock.svg\"\n                alt=\"\"\n                class=\"icon\"\n                width=\"19\"\n                height=\"23\"\n                loading=\"lazy\"\n            >\n          </template>\n          <template v-slot:button>\n            <button\n                type=\"button\"\n                class=\"passwordReveal\"\n                @click=\"handlePasswordReveal__main\"\n            >\n              <img\n                  v-if=\"isPasswordRevealed__main\"\n                  src=\"../assets/images/icons/eye-closed.svg\"\n                  alt=\"\"\n                  class=\"icon\"\n                  width=\"24\"\n                  height=\"20\"\n                  loading=\"lazy\"\n              >\n              <img\n                  v-if=\"!isPasswordRevealed__main\"\n                  src=\"../assets/images/icons/eye.svg\"\n                  alt=\"\"\n                  class=\"icon\"\n                  width=\"24\"\n                  height=\"14\"\n                  loading=\"lazy\"\n              >\n            </button>\n          </template>\n        </FormInput>\n\n        <!-- Confirm Password -->\n        <FormInput\n            :label=\"translation('global_input-password_confirm-label')\"\n            :required=\"true\"\n            :type=\"isPasswordRevealed__confirm ? 'text' : 'password'\"\n            :placeholder=\"translation('global_input-password_confirm-placeholder')\"\n            :uuid=\"`confirm`\"\n            :error=\"confirmError\"\n            :showErrorIcon=\"false\"\n            v-model=\"confirm\"\n        >\n          <template v-slot:icon>\n            <img\n                src=\"../assets/images/icons/lock.svg\"\n                alt=\"\"\n                class=\"icon\"\n                width=\"19\"\n                height=\"23\"\n                loading=\"lazy\"\n            >\n          </template>\n          <template v-slot:button>\n            <button\n                type=\"button\"\n                class=\"passwordReveal\"\n                @click=\"handlePasswordReveal__confirm\"\n            >\n              <img\n                  v-if=\"isPasswordRevealed__confirm\"\n                  src=\"../assets/images/icons/eye-closed.svg\"\n                  alt=\"\"\n                  class=\"icon\"\n                  width=\"24\"\n                  height=\"20\"\n                  loading=\"lazy\"\n              >\n              <img\n                  v-if=\"!isPasswordRevealed__confirm\"\n                  src=\"../assets/images/icons/eye.svg\"\n                  alt=\"\"\n                  class=\"icon\"\n                  width=\"24\"\n                  height=\"14\"\n                  loading=\"lazy\"\n              >\n            </button>\n          </template>\n        </FormInput>\n      </div>\n\n      <!-- Agree -->\n      <BaseCheckbox\n          :uuid=\"`agree`\"\n          :error=\"agreeError\"\n          class=\"mb-2\"\n          v-model=\"agree\"\n      >\n        <span v-html=\"translation('global_input-agree-label', {'privacyLinkStart': `<a href='/informacie-o-spracovani-osobnych-udajov' target='_blank'>`,'privacyLinkEnd': '</a>','personalDataLinkStart': `<a href='/politika-ochrany-osobnych-udajov' target='_blank'>`,'personalDataLinkEnd': '</a>'})\"></span>\n      </BaseCheckbox>\n\n      <!-- Newsletter -->\n      <BaseCheckbox\n          :uuid=\"`newsletter`\"\n          v-model=\"newsletter\"\n          class=\"mb-2\"\n      >\n        {{ translation('registration_form-newsletter-label') }}\n      </BaseCheckbox>\n\n      <!-- Student -->\n      <BaseCheckbox\n          :uuid=\"`student`\"\n          v-model=\"student\"\n      >\n        <a href=\"/studenti\" target=\"_blank\">{{ translation('global_input-student-label') }}</a>\n      </BaseCheckbox>\n    </div>\n\n    <div class=\"container container--xxxxs mt-6 mt-lg-9\">\n      <!-- Button -->\n      <BaseButton\n          type=\"submit\"\n          :full-width=\"true\"\n          :isDisabled=\"isSubmitting\"\n      >\n        {{ translation('registration_form-submit_button') }}\n      </BaseButton>\n    </div>\n  </form>\n</template>\n\n<script>\n\nimport BaseAlertList from \"@/components/BaseAlertList\";\nimport BaseButton from \"@/components/BaseButton\";\nimport BaseCheckbox from \"@/components/BaseCheckbox\";\nimport FormInput from \"@/components/FormInput\";\nimport {codeBooksHelpers} from \"@/helpers/codeBooks.helper\";\nimport {passwordRevealer} from \"@/helpers/passwordRevealer\";\nimport {authenticationService} from \"@/services/authentication\";\nimport {BadRequestError, ValidationError} from \"@/services/errors\";\nimport {userService} from \"@/services/user.service\";\nimport {useField, useForm} from 'vee-validate';\nimport {ref} from \"vue\";\nimport * as yup from 'yup';\n\nexport default {\n  components: {\n    BaseButton,\n    FormInput,\n    BaseCheckbox,\n    BaseAlertList\n  },\n  setup() {\n    // import password revealer\n    const {isPasswordRevealed: isPasswordRevealed__main, handlePasswordReveal: handlePasswordReveal__main} = passwordRevealer()\n    const {isPasswordRevealed: isPasswordRevealed__confirm, handlePasswordReveal: handlePasswordReveal__confirm} = passwordRevealer()\n\n    // form level alert variable\n    let formAlerts = ref(null);\n\n    let urlParams = ref(new URLSearchParams(window.location.search.substring(1)))\n\n    // import translations\n    const {translation} = codeBooksHelpers()\n\n    // validator config\n    const validationSchema = yup.object({\n      firstname: yup\n          .string()\n          .required(() => translation('global_input-firstname-error'))\n          .min(2, () => translation('global_validation-min_length', {number: 2}))\n          .max(80, () => translation('global_validation-max_length', {number: 80})),\n      lastname: yup\n          .string()\n          .required(() => translation('global_input-lastname-error'))\n          .min(2, () => translation('global_validation-min_length', {number: 2}))\n          .max(30, () => translation('global_validation-max_length', {number: 30})),\n      email: yup\n          .string()\n          .required(() => translation('global_input-email-error'))\n          .email(() => translation('global_validation-email_format'))\n          .max(255, () => translation('global_validation-max_length', {number: 255})),\n      phone: yup\n          .string()\n          .max(30, () => translation('global_validation-max_length', {number: 30})),\n      password: yup\n          .string()\n          .required(() => translation('global_input-password-error'))\n          .min(8, () => translation('global_validation-min_length', {number: 8}))\n          .max(255, () => translation('global_validation-max_length', {number: 255}))\n      ,\n      confirm: yup\n          .string()\n          .required(() => translation('global_input-password-error'))\n          .oneOf([yup.ref(\"password\"), null], () => translation('global_input-password_confirm-error')),\n      agree: yup\n          .boolean()\n          .oneOf([true], () => translation('global_input-agree-error')),\n      newsletter: yup\n          .boolean(),\n      student: yup\n          .boolean(),\n    })\n\n    // Creates a vee-validate form context\n    const {handleSubmit, isSubmitting} = useForm({\n      validationSchema,\n      initialValues: { // set default value for checkbox\n        agree: false,\n        newsletter: false,\n        student: false,\n        phone: '',\n      }\n    });\n\n    // create a form fields with its validation state\n    const {value: firstname, errorMessage: firstnameError} = useField('firstname')\n    const {value: lastname, errorMessage: lastnameError} = useField('lastname')\n    const {value: email, errorMessage: emailError} = useField('email')\n    const {value: phone, errorMessage: phoneError} = useField('phone')\n    const {value: password, errorMessage: passwordError} = useField('password')\n    const {value: confirm, errorMessage: confirmError} = useField('confirm')\n    const {value: agree, errorMessage: agreeError} = useField('agree')\n    const {value: newsletter} = useField('newsletter')\n    const {value: student} = useField('student')\n\n    // submit handler\n    const onSubmit = handleSubmit(async values => {\n\n      try {\n        // Send data to the API\n        await userService.createUser(values.firstname, values.lastname, values.email, values.password, values.phone, values.newsletter, values.student, urlParams.value.get('source'))\n\n        try {\n          // Try to log in\n          await authenticationService.login(values.email, values.password)\n\n          // redirect\n          location.href = '/dashboard?new-registration='\n        } catch (err) {\n          // redirect to log in on error\n          location.href = '/login'\n        }\n      } catch (err) {\n        if (err instanceof BadRequestError) {\n          // set form error\n          formAlerts.value = [{'message': translation('registration_form-alert-email_taken'), type: \"danger\"}];\n        } else if (err instanceof ValidationError) {\n          // set form error\n          formAlerts.value = [{'message': translation('registration_form-alert-validation_problem'), type: \"danger\"}];\n        } else {\n          formAlerts.value = [{'message': translation('global_alert-general'), type: \"danger\"}];\n        }\n      }\n    });\n\n    return {\n      firstname,\n      firstnameError,\n      lastname,\n      lastnameError,\n      email,\n      emailError,\n      phone,\n      phoneError,\n      password,\n      passwordError,\n      confirm,\n      confirmError,\n      agree,\n      agreeError,\n      newsletter,\n      student,\n      onSubmit,\n      isSubmitting,\n      formAlerts,\n      translation,\n      isPasswordRevealed__main,\n      isPasswordRevealed__confirm,\n      handlePasswordReveal__main,\n      handlePasswordReveal__confirm\n    };\n  }\n}\n</script>","import { render } from \"./RegistrationForm.vue?vue&type=template&id=ec15850a\"\nimport script from \"./RegistrationForm.vue?vue&type=script&lang=js\"\nexport * from \"./RegistrationForm.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/opt/itide.sk/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./registration.vue?vue&type=template&id=95e668d4\"\nimport script from \"./registration.vue?vue&type=script&lang=js\"\nexport * from \"./registration.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/opt/itide.sk/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import {authorizationService} from \"@/services/authorization\";\nimport {codebooksService} from \"@/services/codebooks.service\";\nimport {createApp, h} from 'vue'\nimport './assets/scss/index.scss'\nimport App from './pages/registration.vue'\nimport store from './store'\n\ncreateApp({\n    created() {\n        authorizationService.checkAccess('registration')\n        this.$store.dispatch('user/getUser')\n        this.$store.dispatch('studyPrograms/fetchData')\n        codebooksService.getAllCodebooks();\n    },\n    render: () => h(App),\n})\n    .use(store)\n    .mount('#app')\n\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\tid: moduleId,\n\t\tloaded: false,\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// Flag the module as loaded\n\tmodule.loaded = true;\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","var deferred = [];\n__webpack_require__.O = function(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 = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\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(function(key) { return __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};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 129;","__webpack_require__.p = \"/static/dist/\";","// 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\t129: 0,\n\t835: 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 = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\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(function(id) { return 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[\"webpackChunkmicrosoft_academy\"] = self[\"webpackChunkmicrosoft_academy\"] || [];\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, [381,179,522,992,490,634,922,548,720,218,564,547,819,835,900,494,653,300], function() { return __webpack_require__(77096); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_createBlock","_component_BaseLayout","breadcrumb","$options","_createVNode","_component_CenteredTitle","_ctx","_component_RegistrationForm","_component_SignHint","title","text","link","url","class","_createElementVNode","src","_imports_0","alt","width","height","loading","_imports_1","_imports_2","_imports_3","_imports_4","href","target","_createElementBlock","onSubmit","$setup","_component_BaseAlertList","alerts","_component_FormInput","label","required","placeholder","uuid","error","$event","type","icon","_hoisted_3","_hoisted_4","help","showErrorIcon","_hoisted_6","button","onClick","_hoisted_9","_component_BaseCheckbox","innerHTML","_toDisplayString","_component_BaseButton","isDisabled","components","BaseButton","FormInput","BaseCheckbox","BaseAlertList","setup","isPasswordRevealed","isPasswordRevealed__main","handlePasswordReveal","handlePasswordReveal__main","passwordRevealer","isPasswordRevealed__confirm","handlePasswordReveal__confirm","formAlerts","ref","urlParams","URLSearchParams","window","location","search","substring","translation","codeBooksHelpers","validationSchema","yup","firstname","min","number","max","lastname","email","phone","password","confirm","oneOf","agree","newsletter","student","handleSubmit","isSubmitting","useForm","initialValues","value","errorMessage","firstnameError","useField","lastnameError","emailError","phoneError","passwordError","confirmError","agreeError","async","userService","values","get","authenticationService","err","BadRequestError","ValidationError","__exports__","computed","this","mixins","CodeBooksMixin","SignHint","CenteredTitle","BaseLayout","RegistrationForm","render","createApp","created","authorizationService","$store","dispatch","codebooksService","h","App","use","store","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","g","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","nmd","paths","children","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}