{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.regexp.constructor.js","webpack:///./src/views/pages/ForgotPassword.vue?3cbf","webpack:///./src/views/pages/ForgotPassword.vue","webpack:///./src/views/pages/ForgotPassword.vue?7fce","webpack:///./src/assets/styles/scss/pages/forgot-password.scss?4432"],"names":["DESCRIPTORS","global","isForced","inheritIfRequired","defineProperty","f","getOwnPropertyNames","isRegExp","getFlags","stickyHelpers","redefine","fails","setInternalState","set","setSpecies","wellKnownSymbol","MATCH","NativeRegExp","RegExp","RegExpPrototype","prototype","re1","re2","CORRECT_NEW","UNSUPPORTED_Y","FORCED","RegExpWrapper","pattern","flags","sticky","thisIsRegExp","this","patternIsRegExp","flagsAreUndefined","undefined","constructor","source","call","indexOf","replace","result","proxy","key","configurable","get","it","keys","index","length","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","for","_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","render","_ctx","_cache","$props","$setup","$data","$options","_component_InputText","_component_Password","_component_Button","title","onSubmit","$event","submitData","v$","$invalid","isForgot","id","placeholder","type","modelValue","username","$model","$error","submitted","$errors","error","$message","$pending","$response","required","email","feedback","toggleMask","validatePassword","modelModifiers","trim","newPassword","specialChar","regexLeast1Numeric","minLength","default","titleButton","_","mustBeCool","value","regSpecialChar","test","regatLeast1Numeric","setup","rules","app","store","appContext","config","globalProperties","$toast","$confirm","router","$strInd","route","form","name","withMessage","ctx","$params","min","checkResponse","val","console","log","add","severity","detail","message","group","life","Detail","push","dispatch","storeProcess","data","Username","Email","response","Guid","state","appActiveUser","guid","NewPassword","OldPassword","isFormValid","__exports__"],"mappings":"8HAAA,IAAIA,EAAc,EAAQ,QACtBC,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AAgB,EAAQ,CAAC,CAAC,SAAS5F,KAErD,gB,kCCTf","file":"js/chunk-3e6d9a8e.19c5de49.js","sourcesContent":["var DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar isRegExp = require('../internals/is-regexp');\nvar getFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar setInternalState = require('../internals/internal-state').set;\nvar setSpecies = require('../internals/set-species');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\nvar NativeRegExp = global.RegExp;\nvar RegExpPrototype = NativeRegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n\n// \"new\" should create a new object, old webkit bug\nvar CORRECT_NEW = new NativeRegExp(re1) !== re1;\n\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\n\nvar FORCED = DESCRIPTORS && isForced('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y || fails(function () {\n re2[MATCH] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';\n})));\n\n// `RegExp` constructor\n// https://tc39.es/ecma262/#sec-regexp-constructor\nif (FORCED) {\n var RegExpWrapper = function RegExp(pattern, flags) {\n var thisIsRegExp = this instanceof RegExpWrapper;\n var patternIsRegExp = isRegExp(pattern);\n var flagsAreUndefined = flags === undefined;\n var sticky;\n\n if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) {\n return pattern;\n }\n\n if (CORRECT_NEW) {\n if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source;\n } else if (pattern instanceof RegExpWrapper) {\n if (flagsAreUndefined) flags = getFlags.call(pattern);\n pattern = pattern.source;\n }\n\n if (UNSUPPORTED_Y) {\n sticky = !!flags && flags.indexOf('y') > -1;\n if (sticky) flags = flags.replace(/y/g, '');\n }\n\n var result = inheritIfRequired(\n CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags),\n thisIsRegExp ? this : RegExpPrototype,\n RegExpWrapper\n );\n\n if (UNSUPPORTED_Y && sticky) setInternalState(result, { sticky: sticky });\n\n return result;\n };\n var proxy = function (key) {\n key in RegExpWrapper || defineProperty(RegExpWrapper, key, {\n configurable: true,\n get: function () { return NativeRegExp[key]; },\n set: function (it) { NativeRegExp[key] = it; }\n });\n };\n var keys = getOwnPropertyNames(NativeRegExp);\n var index = 0;\n while (keys.length > index) proxy(keys[index++]);\n RegExpPrototype.constructor = RegExpWrapper;\n RegExpWrapper.prototype = RegExpPrototype;\n redefine(global, 'RegExp', RegExpWrapper);\n}\n\n// https://tc39.es/ecma262/#sec-get-regexp-@@species\nsetSpecies('RegExp');\n","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, withModifiers as _withModifiers } from \"vue\"\n\nconst _hoisted_1 = { class: \"forgot-password\" }\nconst _hoisted_2 = { class: \"card-content mx-auto my-auto\" }\nconst _hoisted_3 = { class: \"text-title\" }\nconst _hoisted_4 = { class: \"p-fluid\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"p-field mb-6\"\n}\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"label\", { for: \"username\" }, \"Username\", -1)\nconst _hoisted_7 = { key: 0 }\nconst _hoisted_8 = { class: \"p-error\" }\nconst _hoisted_9 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_10 = {\n key: 1,\n class: \"p-field mb-6\"\n}\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"label\", { for: \"email\" }, \"Email\", -1)\nconst _hoisted_12 = { key: 0 }\nconst _hoisted_13 = { class: \"p-error\" }\nconst _hoisted_14 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_15 = {\n key: 2,\n class: \"p-field mb-6\"\n}\nconst _hoisted_16 = /*#__PURE__*/_createVNode(\"label\", { for: \"idValidatePassword\" }, \"Password Lama\", -1)\nconst _hoisted_17 = { key: 0 }\nconst _hoisted_18 = { class: \"p-error\" }\nconst _hoisted_19 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_20 = {\n key: 3,\n class: \"p-field mb-8\"\n}\nconst _hoisted_21 = /*#__PURE__*/_createVNode(\"label\", { for: \"idNewPassword\" }, \"Password Baru\", -1)\nconst _hoisted_22 = { key: 0 }\nconst _hoisted_23 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_24 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_25 = {\n key: 2,\n class: \"p-error\"\n}\nconst _hoisted_26 = {\n key: 3,\n class: \"p-error\"\n}\nconst _hoisted_27 = { class: \"mx-auto font-bold text-black\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_Password = _resolveComponent(\"Password\")\n const _component_Button = _resolveComponent(\"Button\")\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"section\", _hoisted_2, [\n _createVNode(\"p\", _hoisted_3, _toDisplayString($setup.title), 1),\n _createVNode(\"form\", {\n class: \"w-full\",\n onSubmit: _cache[5] || (_cache[5] = _withModifiers(($event: any) => ($setup.submitData(!$setup.v$.$invalid)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_4, [\n ($setup.isForgot())\n ? (_openBlock(), _createBlock(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_InputText, {\n id: \"username\",\n class: \"grey-input mt-1\",\n placeholder: \"Username\",\n type: \"text\",\n modelValue: $setup.v$.username.$model,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ($setup.v$.username.$model = $event))\n }, null, 8, [\"modelValue\"]),\n ($setup.v$.username.$error && $setup.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_7, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList($setup.v$.username.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"username-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_8, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : (($setup.v$.username.$invalid && $setup.submitted) || $setup.v$.username.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_9, _toDisplayString($setup.v$.username.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n ($setup.isForgot())\n ? (_openBlock(), _createBlock(\"div\", _hoisted_10, [\n _hoisted_11,\n _createVNode(_component_InputText, {\n id: \"email\",\n class: \"grey-input mt-1\",\n placeholder: \"John.doe@email.com\",\n type: \"text\",\n modelValue: $setup.v$.email.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => ($setup.v$.email.$model = $event))\n }, null, 8, [\"modelValue\"]),\n ($setup.v$.email.$error && $setup.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_12, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList($setup.v$.email.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"email-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_13, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : (($setup.v$.email.$invalid && $setup.submitted) || $setup.v$.email.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_14, _toDisplayString($setup.v$.email.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (!$setup.isForgot())\n ? (_openBlock(), _createBlock(\"div\", _hoisted_15, [\n _hoisted_16,\n _createVNode(_component_Password, {\n id: \"idValidatePassword\",\n class: \"grey-input mt-1\",\n placeholder: \"Password Lama\",\n feedback: false,\n toggleMask: true,\n modelValue: $setup.v$.validatePassword.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => ($setup.v$.validatePassword.$model = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"modelValue\"]),\n ($setup.v$.validatePassword.$error && $setup.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_17, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList($setup.v$.validatePassword.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"validasi-password-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_18, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : (($setup.v$.validatePassword.$invalid && $setup.submitted) || $setup.v$.validatePassword.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_19, _toDisplayString($setup.v$.validatePassword.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true),\n (!$setup.isForgot())\n ? (_openBlock(), _createBlock(\"div\", _hoisted_20, [\n _hoisted_21,\n _createVNode(_component_Password, {\n id: \"idNewPassword\",\n class: \"grey-input mt-1\",\n placeholder: \"Password Baru\",\n feedback: false,\n toggleMask: true,\n modelValue: $setup.v$.newPassword.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => ($setup.v$.newPassword.$model = $event)),\n modelModifiers: { trim: true }\n }, null, 8, [\"modelValue\"]),\n (($setup.v$.newPassword.$invalid && $setup.submitted) || $setup.v$.newPassword.$pending.$response)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_22, [\n ($setup.v$.newPassword.required.$invalid)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_23, _toDisplayString(`${$setup.v$.newPassword.required.$message}`), 1))\n : ($setup.v$.newPassword.specialChar.$invalid)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_24, _toDisplayString($setup.v$.newPassword.specialChar.$message), 1))\n : ($setup.v$.newPassword.regexLeast1Numeric.$invalid)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_25, _toDisplayString($setup.v$.newPassword.regexLeast1Numeric.$message), 1))\n : ($setup.v$.newPassword.minLength.$invalid)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_26, _toDisplayString($setup.v$.newPassword.minLength.$message), 1))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(_component_Button, {\n class: \"btn-primary w-full mb-4\",\n id: \"submit-change\",\n type: \"submit\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"span\", _hoisted_27, _toDisplayString($setup.titleButton), 1)\n ]),\n _: 1\n })\n ], 32)\n ])\n ]))\n}","\r\nimport {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n reactive\r\n} from 'vue'\r\nimport {\r\n gantiPassword,\r\n lupaPassword\r\n} from '@/domain/usecase'\r\nimport useVuelidate from '@vuelidate/core'\r\nimport {\r\n required,\r\n helpers,\r\n email,\r\n sameAs,\r\n minLength\r\n} from '@vuelidate/validators'\r\nimport {\r\n useStore\r\n} from 'vuex'\r\nimport {\r\n useRoute,\r\n useRouter\r\n} from 'vue-router'\r\n\r\nconst mustBeCool = (value: any) => {\r\n /* eslint-disable no-useless-escape */\r\n const regSpecialChar = new RegExp(/(?=.[!@#\\$%^&*])/)\r\n return regSpecialChar.test(value)\r\n}\r\n\r\nconst regatLeast1Numeric = (value: any) => {\r\n /* eslint-disable no-useless-escape */\r\n const regSpecialChar = new RegExp(/(?=.[0-9])/)\r\n return regSpecialChar.test(value)\r\n}\r\n\r\nexport default {\r\n setup() {\r\n const app = getCurrentInstance()\r\n const store = useStore()\r\n const {\r\n $confirm,\r\n $toast,\r\n $strInd\r\n } = app!.appContext.config.globalProperties\r\n const router = useRouter()\r\n const route = useRoute()\r\n const form = reactive({\r\n username: null,\r\n email: null,\r\n newPassword: null,\r\n validatePassword: null\r\n })\r\n const submitted = ref(false)\r\n const title = ref('Lupa Password')\r\n const titleButton = ref('Submit')\r\n\r\n const isForgot = () => {\r\n if (route.name === 'change-password' || route.name === 'change-password-ansurance') {\r\n title.value = 'Ubah Password'\r\n titleButton.value = 'Ubah Password'\r\n return false\r\n }\r\n return true\r\n }\r\n\r\n let rules\r\n\r\n if (route.name === 'change-password' || route.name === 'change-password-ansurance') {\r\n rules = {\r\n newPassword: {\r\n required: helpers.withMessage('Password Baru harus diisi', required),\r\n // minLength: helpers.withMessage('Password Baru minimal mengandung 6 karakter.', minLength(6))\r\n specialChar: helpers.withMessage('Password Baru harus ada spesial karakter (!@#\\$%^&*)', mustBeCool),\r\n regexLeast1Numeric: helpers.withMessage('Password Baru harus ada angka', regatLeast1Numeric),\r\n minLength: helpers.withMessage(\r\n (ctx: any) => `Password Baru minimal mengandung ${ctx.$params.min} karakter`,\r\n minLength(8)\r\n )\r\n },\r\n validatePassword: {\r\n required: helpers.withMessage('Password Lama harus diisi', required),\r\n // minLength: helpers.withMessage('Password Lama Baru minimal mengandung 6 karakter.', minLength(6))\r\n // sameAs: helpers.withMessage('Validasi Password tidak cocok dengan Password Baru', sameAs('newPassword'))\r\n },\r\n }\r\n } else {\r\n rules = {\r\n username: {\r\n required: helpers.withMessage('Username harus diisi', required),\r\n },\r\n email: {\r\n required: helpers.withMessage('Email harus diisi', required),\r\n email: helpers.withMessage('Email harus berupa alamat email yang benar.', email)\r\n }\r\n }\r\n }\r\n\r\n const v$ = useVuelidate(rules, form)\r\n\r\n const checkResponse = (val: any) => {\r\n console.log('pass', val)\r\n if (val.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: val.message,\r\n group: 'bc',\r\n life: 5000\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success',\r\n detail: val.result.detail ?? val.result.Detail,\r\n group: 'bc',\r\n life: 5000\r\n })\r\n if (isForgot() === true) {\r\n router.push({\r\n name: 'home'\r\n })\r\n } else {\r\n router.push({ name: 'dashboard' })\r\n }\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n // console.log('store', store)\r\n\r\n const storeProcess = async () => {\r\n store.dispatch('showLoading')\r\n let response\r\n let data\r\n if (isForgot()) {\r\n data = {\r\n Username: form.username,\r\n Email: form.email\r\n }\r\n response = await lupaPassword(data)\r\n } else {\r\n data = {\r\n Guid: store.state.appActiveUser.guid,\r\n NewPassword: form.newPassword,\r\n OldPassword: form.validatePassword\r\n }\r\n response = await gantiPassword(data)\r\n }\r\n checkResponse(response)\r\n }\r\n\r\n const submitData = (isFormValid: boolean) => {\r\n submitted.value = true\r\n if (!isFormValid) {\r\n return\r\n }\r\n storeProcess()\r\n }\r\n return {\r\n form,\r\n storeProcess,\r\n submitted,\r\n submitData,\r\n v$,\r\n router,\r\n isForgot,\r\n title,\r\n titleButton\r\n }\r\n }\r\n}\r\n","import { render } from \"./ForgotPassword.vue?vue&type=template&id=0f3cb7b6&ts=true\"\nimport script from \"./ForgotPassword.vue?vue&type=script&lang=ts\"\nexport * from \"./ForgotPassword.vue?vue&type=script&lang=ts\"\n\nimport \"@/assets/styles/scss/pages/forgot-password.scss?vue&type=style&index=0&lang=scss\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./forgot-password.scss?vue&type=style&index=0&lang=scss\""],"sourceRoot":""}