{"version":3,"sources":["webpack:///./src/views/crafted/authentication/basic-flow/SignUp.vue?aca0","webpack:///./src/views/crafted/authentication/basic-flow/SignUp.vue?efa5","webpack:///./src/views/crafted/authentication/basic-flow/SignUp.vue"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","alt","src","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","href","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","id","ref","type","_hoisted_41","_hoisted_42","_hoisted_43","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_link","_component_Field","_component_ErrorMessage","_component_Form","novalidate","onSubmit","onSubmitRegister","registration","default","$t","currentLanguage","to","_","onClick","$event","AuthProvider","placeholder","name","autocomplete","value","components","Field","Form","ErrorMessage","setup","store","router","t","getters","getCurrentLanguage","localStorage","getItem","submitButton","shape","required","label","email","min","password","password_confirmation","oneOf","toc","bootstrap","values","disabled","setAttribute","ApiService","post","then","data","success","fire","title","text","icon","confirmButtonText","allowOutsideClick","allowEscapeKey","allowEnterKey","removeAttribute","catch","response","message","provider","push","__exports__"],"mappings":"uIAEMA,EAAa,CAAEC,MAAO,yDACtBC,EAAa,CAAED,MAAO,qBACtBE,EAAa,CAAEF,MAAO,kBACtBG,EAAa,CAAEH,MAAO,8BACtBI,EAA0B,gCAAoB,MAAO,CACzDC,IAAK,OACLC,IAAK,yCACLN,MAAO,eACN,MAAO,GACJO,EAA0B,gCAAoB,MAAO,CACzDF,IAAK,OACLC,IAAK,oCACLN,MAAO,eACN,MAAO,GACJQ,EAAa,CAAER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,EAASZ,KAAKa,QACpBR,KAAM,UACNC,kBAAmB,KACnBC,mBAAmB,EACnBC,gBAAgB,EAChBC,eAAe,IAKhB,KAAKP,KAAK,CACPC,MAAO,QACPC,KAAMQ,EAASZ,KAAKa,QACpBR,KAAM,QACNC,kBAAmB,KACnBC,mBAAmB,EACnBC,gBAAgB,EAChBC,eAAe,IAKrB1B,EAAab,MAAOyB,UAAW,EAGb,QAAlB,EAAAZ,EAAab,aAAK,SAAEwC,gBAAgB,yB,cApDtC,S,YA0DE5C,EAAe,SAACgD,GACpBrC,EAAOsC,KAAK,UAAYD,IAG1B,MAAO,CACLxD,aAAY,EACZD,iBAAgB,EAChB0B,aAAY,EACZtB,gBAAe,EACfK,aAAY,M,wBCrHlB,MAAMkD,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASxE,KAErD","file":"js/chunk-2d21aabb.0f6878ea.js","sourcesContent":["import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"custom-dark-bg rounded shadow-sm p-10 p-lg-15 mx-auto\" }\nconst _hoisted_2 = { class: \"mb-10 text-center\" }\nconst _hoisted_3 = { class: \"text-dark mb-3\" }\nconst _hoisted_4 = { class: \"text-gray-400 fw-bold fs-4\" }\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"img\", {\n alt: \"Logo\",\n src: \"/media/svg/brand-logos/google-icon.svg\",\n class: \"h-20px me-3\"\n}, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"img\", {\n alt: \"Logo\",\n src: \"/media/svg/brand-logos/github.svg\",\n class: \"h-20px me-3\"\n}, null, -1)\nconst _hoisted_7 = { class: \"d-flex align-items-center mb-10\" }\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"border-bottom border-gray-300 mw-50 w-100\" }, null, -1)\nconst _hoisted_9 = { class: \"fw-bold text-gray-500 fs-7 mx-2\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"border-bottom border-gray-300 mw-50 w-100\" }, null, -1)\nconst _hoisted_11 = { class: \"row fv-row mb-7\" }\nconst _hoisted_12 = { class: \"col-xl-12\" }\nconst _hoisted_13 = { class: \"form-label fw-bolder text-dark fs-6\" }\nconst _hoisted_14 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_15 = { class: \"fv-help-block\" }\nconst _hoisted_16 = { class: \"fv-row mb-7\" }\nconst _hoisted_17 = /*#__PURE__*/_createElementVNode(\"label\", { class: \"form-label fw-bolder text-dark fs-6\" }, \"E-mail\", -1)\nconst _hoisted_18 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_19 = { class: \"fv-help-block\" }\nconst _hoisted_20 = {\n class: \"mb-10 fv-row\",\n \"data-kt-password-meter\": \"true\"\n}\nconst _hoisted_21 = { class: \"mb-1\" }\nconst _hoisted_22 = { class: \"form-label fw-bolder text-dark fs-6\" }\nconst _hoisted_23 = { class: \"position-relative mb-3\" }\nconst _hoisted_24 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_25 = { class: \"fv-help-block\" }\nconst _hoisted_26 = /*#__PURE__*/_createElementVNode(\"div\", {\n class: \"d-flex align-items-center mb-3\",\n \"data-kt-password-meter-control\": \"highlight\"\n}, [\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px me-2\" }),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"flex-grow-1 bg-secondary bg-active-success rounded h-5px\" })\n], -1)\nconst _hoisted_27 = { class: \"text-muted\" }\nconst _hoisted_28 = { class: \"fv-row mb-5\" }\nconst _hoisted_29 = { class: \"form-label fw-bolder text-dark fs-6\" }\nconst _hoisted_30 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_31 = { class: \"fv-help-block\" }\nconst _hoisted_32 = { class: \"fv-row mb-10\" }\nconst _hoisted_33 = { class: \"form-check form-check-custom form-check-solid\" }\nconst _hoisted_34 = { class: \"form-check-label fw-bold text-gray-700 fs-6\" }\nconst _hoisted_35 = {\n href: \"/privacy-and-terms\",\n class: \"ms-1 link-primary\"\n}\nconst _hoisted_36 = /*#__PURE__*/_createTextVNode(\". \")\nconst _hoisted_37 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_38 = { class: \"fv-help-block\" }\nconst _hoisted_39 = { class: \"text-center\" }\nconst _hoisted_40 = {\n id: \"kt_sign_up_submit\",\n ref: \"submitButton\",\n type: \"submit\",\n class: \"btn btn-lg btn-info\"\n}\nconst _hoisted_41 = { class: \"indicator-label\" }\nconst _hoisted_42 = { class: \"indicator-progress\" }\nconst _hoisted_43 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"spinner-border spinner-border-sm align-middle ms-2\" }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_Field = _resolveComponent(\"Field\")!\n const _component_ErrorMessage = _resolveComponent(\"ErrorMessage\")!\n const _component_Form = _resolveComponent(\"Form\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_Form, {\n class: \"form w-100 fv-plugins-bootstrap5 fv-plugins-framework\",\n novalidate: \"novalidate\",\n onSubmit: _ctx.onSubmitRegister,\n id: \"kt_login_signup_form\",\n \"validation-schema\": _ctx.registration\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h1\", _hoisted_3, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.create_your_account`)), 1),\n _createElementVNode(\"div\", _hoisted_4, [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.already_have_an_account`)) + \" \", 1),\n _createVNode(_component_router_link, {\n to: \"/sign-in\",\n class: \"link-primary fw-bolder\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.sign_in`)) + \" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.here`)), 1)\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"a\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.AuthProvider('google'))),\n class: \"btn btn-flex flex-center btn-light btn-lg w-100 mb-5\"\n }, [\n _hoisted_5,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.continue_with`)) + \" Google \", 1)\n ]),\n _createElementVNode(\"a\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.AuthProvider('github'))),\n class: \"btn btn-flex flex-center btn-light btn-lg w-100 mb-10\"\n }, [\n _hoisted_6,\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.continue_with`)) + \" Github \", 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.or`)), 1),\n _hoisted_10\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"label\", _hoisted_13, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.your_full_name`)), 1),\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"text\",\n placeholder: \"\",\n name: \"name\",\n autocomplete: \"off\"\n }),\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_ErrorMessage, { name: \"name\" })\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _hoisted_17,\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"email\",\n placeholder: \"\",\n name: \"email\",\n autocomplete: \"off\"\n }),\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"div\", _hoisted_19, [\n _createVNode(_component_ErrorMessage, { name: \"email\" })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createElementVNode(\"div\", _hoisted_21, [\n _createElementVNode(\"label\", _hoisted_22, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.common.password`)), 1),\n _createElementVNode(\"div\", _hoisted_23, [\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: _ctx.$t(`${_ctx.currentLanguage}.auth.your_super_secret_password`),\n name: \"password\",\n autocomplete: \"off\"\n }, null, 8, [\"placeholder\"]),\n _createElementVNode(\"div\", _hoisted_24, [\n _createElementVNode(\"div\", _hoisted_25, [\n _createVNode(_component_ErrorMessage, { name: \"password\" })\n ])\n ])\n ]),\n _hoisted_26\n ]),\n _createElementVNode(\"div\", _hoisted_27, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.use_8_or_more_characters_with_a_mix_of_letters_numbers_symbols`)), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_28, [\n _createElementVNode(\"label\", _hoisted_29, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.confirm_password`)), 1),\n _createVNode(_component_Field, {\n class: \"form-control form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: _ctx.$t(`${_ctx.currentLanguage}.auth.type_your_password_again`),\n name: \"password_confirmation\",\n autocomplete: \"off\"\n }, null, 8, [\"placeholder\"]),\n _createElementVNode(\"div\", _hoisted_30, [\n _createElementVNode(\"div\", _hoisted_31, [\n _createVNode(_component_ErrorMessage, { name: \"password_confirmation\" })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_32, [\n _createElementVNode(\"label\", _hoisted_33, [\n _createVNode(_component_Field, {\n class: \"form-check-input\",\n type: \"checkbox\",\n name: \"toc\",\n value: \"1\"\n }),\n _createElementVNode(\"span\", _hoisted_34, [\n _createTextVNode(_toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.i_agree_with_the`)) + \" \", 1),\n _createElementVNode(\"a\", _hoisted_35, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.terms_and_conditions`)), 1),\n _hoisted_36\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_37, [\n _createElementVNode(\"div\", _hoisted_38, [\n _createVNode(_component_ErrorMessage, { name: \"toc\" })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_39, [\n _createElementVNode(\"button\", _hoisted_40, [\n _createElementVNode(\"span\", _hoisted_41, _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.auth.become_a_member_of_the_club`)), 1),\n _createElementVNode(\"span\", _hoisted_42, [\n _createTextVNode(\" Hacking \" + _toDisplayString(_ctx.$t(`${_ctx.currentLanguage}.user_progress.in_progress`)) + \"... \", 1),\n _hoisted_43\n ])\n ], 512)\n ])\n ]),\n _: 1\n }, 8, [\"onSubmit\", \"validation-schema\"])\n ]))\n}","\r\nimport {defineComponent, ref, onMounted, nextTick, computed} from \"vue\";\r\nimport { ErrorMessage, Field, Form } from \"vee-validate\";\r\nimport * as Yup from \"yup\";\r\nimport { useStore } from \"vuex\";\r\nimport { useRouter } from \"vue-router\";\r\nimport { Actions } from \"@/store/enums/StoreEnums\";\r\nimport { PasswordMeterComponent } from \"@/assets/ts/components\";\r\nimport Swal from \"sweetalert2/dist/sweetalert2.min.js\";\r\nimport ApiService from \"@/core/services/ApiService\";\r\nimport { useI18n } from 'vue-i18n';\r\n\r\nexport default defineComponent({\r\n name: \"sign-up\",\r\n components: {\r\n Field,\r\n Form,\r\n ErrorMessage,\r\n },\r\n setup() {\r\n const store = useStore();\r\n const router = useRouter();\r\n const { t } = useI18n();\r\n\r\n const currentLanguage = computed(() => store.getters.getCurrentLanguage || localStorage.getItem('currentLanguage'));\r\n\r\n const submitButton = ref(null);\r\n\r\n const registration = Yup.object().shape({\r\n name: Yup.string().required(t(`${currentLanguage.value}.profile.name_is_a_required_field`)).label(\"Name\"),\r\n email: Yup.string().min(4).required(t(`${currentLanguage.value}.messages.email_is_a_required_field`)).email(t(`${currentLanguage.value}.messages.email_is_a_required_field`)).label(\"E-mail\"),\r\n password: Yup.string().min(8, t(`${currentLanguage.value}.messages.password_must_be_at_least_8_characters`)).required(t(`${currentLanguage.value}.messages.password_is_a_required_field`)).label(\"Password\"),\r\n password_confirmation: Yup.string()\r\n .required(t(`${currentLanguage.value}.messages.password_confirmation_is_a_required_field`))\r\n .oneOf([Yup.ref(\"password\"), null], t(`${currentLanguage.value}.messages.the_passwords_must_match`))\r\n .label(\"Password Confirmation\"),\r\n toc: Yup.number().required(t(`${currentLanguage.value}.messages.you_must_accept_the_terms_and_conditions`)).label(\"Terms and Conditions\"),\r\n });\r\n\r\n onMounted(() => {\r\n nextTick(() => {\r\n PasswordMeterComponent.bootstrap();\r\n });\r\n });\r\n\r\n const onSubmitRegister = async (values) => {\r\n\r\n \r\n // eslint-disable-next-line\r\n submitButton.value!.disabled = true;\r\n\r\n // Activate indicator\r\n submitButton.value?.setAttribute(\"data-kt-indicator\", \"on\");\r\n\r\n\r\n await ApiService.post(\"auth/register\", values)\r\n .then(({ data }) => {\r\n if(data.success){\r\n Swal.fire({\r\n title: t(`${currentLanguage.value}.common.success`),\r\n text: t(`${currentLanguage.value}.messages.your_account_has_been_created_Please_check_your_e_mail_to_confirm_your_account`),\r\n icon: \"success\",\r\n confirmButtonText: \"Ok\",\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: false,\r\n });\r\n\r\n }\r\n // eslint-disable-next-line\r\n submitButton.value!.disabled = false;\r\n\r\n // Remove indicator\r\n submitButton.value?.removeAttribute(\"data-kt-indicator\");\r\n \r\n\r\n })\r\n .catch(({ response }) => {\r\n\r\n if(response.data.success){\r\n Swal.fire({\r\n title: \"Sucesso!\",\r\n text: response.data.message,\r\n icon: \"success\",\r\n confirmButtonText: \"Ok\",\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: false,\r\n });\r\n\r\n }\r\n else{\r\n Swal.fire({\r\n title: \"Oops!\",\r\n text: response.data.message,\r\n icon: \"error\",\r\n confirmButtonText: \"Ok\",\r\n allowOutsideClick: false,\r\n allowEscapeKey: false,\r\n allowEnterKey: false,\r\n });\r\n }\r\n \r\n // eslint-disable-next-line\r\n submitButton.value!.disabled = false;\r\n\r\n // Remove indicator\r\n submitButton.value?.removeAttribute(\"data-kt-indicator\");\r\n \r\n\r\n });\r\n \r\n }\r\n const AuthProvider = (provider: string) => {\r\n router.push(\"/oauth/\" + provider);\r\n };\r\n \r\n return {\r\n registration,\r\n onSubmitRegister,\r\n submitButton,\r\n currentLanguage,\r\n AuthProvider\r\n };\r\n },\r\n});\r\n","import { render } from \"./SignUp.vue?vue&type=template&id=4eda8892&ts=true\"\nimport script from \"./SignUp.vue?vue&type=script&lang=ts\"\nexport * from \"./SignUp.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/codebuild/output/src791094775/src/hackingclub-spa/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}