{"version":3,"sources":["webpack:///./src/assets/img/icon/success-send-bill.svg","webpack:///./src/views/pages/auth/ForgotPassword.vue","webpack:///./src/views/pages/auth/ForgotPassword.vue?85ac","webpack:///./src/assets/img/modal-confirmation/changes-credential.svg","webpack:///./src/views/components/modal/HjpAlertModal.vue?e4c2","webpack:///./src/views/components/modal/HjpAlertModal.vue","webpack:///./src/views/components/modal/HjpAlertModal.vue?c092","webpack:///./src/assets/img/icon/chevron-left.svg"],"names":["module","exports","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_createTextVNode","_hoisted_7","_createElementVNode","_hoisted_8","_hoisted_9","for","_hoisted_10","_hoisted_11","_hoisted_12","_defineComponent","__name","setup","__props","app","getCurrentInstance","loading","ref","router","useRouter","version","localStorage","getItem","isDesktop","window","innerWidth","$toast","appContext","config","globalProperties","schema","Yup","shape","email","required","initialValues","attrModalConfirmation","reactive","show","title","subTitle","btnSubmitTitle","imgContent","require","showBtnBack","showSubmit","handleApiError","response","errorMessage","errors","errorsArray","Object","values","flat","join","add","severity","detail","group","closable","life","onSubmit","async","value","error","message","apiUseCase","postOrPut","console","log","err","data","hideDialog","toPage","val","push","name","onMounted","removeItem","_ctx","_cache","_openBlock","_createElementBlock","_createCommentVNode","_createBlock","CommonHeader","key","ImageSection","src","_imports_0","alt","onClick","$event","_createVNode","_unref","Form","default","_withCtx","Field","field","handleChange","handleBlur","_mergeProps","onChange","onBlur","type","id","placeholder","_","_toDisplayString","ButtonWhite","classList","buttonText","isLoading","themes","HjpAlertModal","onHideDialog","onOnSubmit","__exports__","render","$props","$setup","$data","$options","_component_Button","_resolveComponent","_component_ButtonSecondary","_component_Dialog","showHeader","visible","showModal","breakpoints","style","width","modal","contentClass","closeDialog","innerHTML","slot","_renderSlot","$slots","btnBackTitle","defineComponent","components","Dialog","Button","ButtonSecondary","props","Boolean","String","emits","emit","useSlots","propertiesProps","computed","get","set"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0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CACtDxC,IAAK,EACL3F,MAAO,mBACPqH,WAAYjC,EAAK8D,aACjBlD,QAASX,EAAO,KAAOA,EAAO,GAAMY,GAAiBb,EAAKyD,gBACzD,KAAM,EAAG,CAAC,gBACbrD,gCAAoB,IAAI,SAIlCyB,EAAG,GACF,EAAG,CAAC,c,kDCxDIkC,+BAAgB,CAC7BlE,KAAM,iBACNmE,WAAY,CACVC,cACAC,cACAC,wBAEFC,MAAO,CACL7G,KAAM,CACJmE,KAAM2C,QACNpD,QAAS,KAAM,GAEjBpD,YAAa,CACX6D,KAAM2C,QACNpD,SAAS,GAEXnD,WAAY,CACV4D,KAAM2C,QACNpD,QAAS,KAAM,GAEjBtD,WAAY,CACVsD,QAAS,IAAMrD,EAAQ,SAEzBJ,MAAO,CACLkE,KAAM4C,OACNrD,QAAS,IAAM,SAEjBxD,SAAU,CACRiE,KAAM4C,OACNrD,QAAS,IAAM,cAEjBvD,eAAgB,CACdgE,KAAM4C,OACNrD,QAAS,IAAM,oBAEjB6C,aAAc,CACZpC,KAAM4C,OACNrD,QAAS,IAAM,YAGnBsD,MAAO,CAAC,aAAc,YACtB1I,MAAMuI,GAAO,KAAEI,IACb,MAAMb,EAAOc,wBACPC,EAAkBpH,sBAAS8G,GAC3BjB,EAAYwB,sBAAS,CACzBC,IAAK,IAAMF,EAAgBnH,KAC3BsH,IAAMlF,IACCA,GACH6E,EAAK,iBAIL3G,EAAc3B,iBAAIkI,EAAMvG,aACxB4F,EAAc,KAClBN,EAAUnE,OAAQ,GAEdF,EAAW,KACf0F,EAAK,aAEP,MAAO,CACLrB,YACAtF,cACA4F,cACA3E,WACA6E,W,qBCzEN,MAAMpB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASC,KAErD,U,qBCPf/H,EAAOC,QAAU,IAA0B,iC","file":"js/chunk-3a0b392b.666e6ff5.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/success-send-bill.5946e741.svg\";","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, createVNode as _createVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/icon/chevron-left.svg'\n\n\nconst _hoisted_1 = { class: \"login background-white absolute\" }\nconst _hoisted_2 = { class: \"flex w-full items-stretch\" }\nconst _hoisted_3 = { class: \"form w-full lg:w-2/6 flex flex-col justify-between\" }\nconst _hoisted_4 = { class: \"wrap\" }\nconst _hoisted_5 = { class: \"text-white font-bold text-3xl flex items-center mb-6\" }\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\" Lupa Kata Sandi \")\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"p\", { class: \"text-white mb-8 text-sm\" }, \" Kami akan mengirimkan link ke email yang Anda berikan untuk mengatur ulang kata sandi Anda. Pastikan sebelumnya telah terdaftar sebagai anggota MIISI. \", -1)\nconst _hoisted_8 = { class: \"mb-6\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"label\", {\n for: \"email\",\n class: \"text-white block mb-2\"\n}, \"Email\", -1)\nconst _hoisted_10 = [\"onChange\", \"onBlur\"]\nconst _hoisted_11 = { class: \"invalid-feedback text-red-500 mt-2\" }\nconst _hoisted_12 = { class: \"text-center text-white font-semibold text-xs\" }\n\nimport { ref, reactive, onMounted, getCurrentInstance } from 'vue'\nimport { useRouter } from 'vue-router'\nimport { Form, Field } from 'vee-validate'\nimport * as Yup from 'yup'\nimport apiUseCase from '@/usecase/apiUseCase'\nimport ButtonWhite from '@/views/components/button/ButtonWhite.vue'\nimport HjpAlertModal from '@/views/components/modal/HjpAlertModal.vue'\nimport ImageSection from '@/views/pages/auth/components/ImageSection.vue'\nimport CommonHeader from '@/views/pages/auth/components/CommonHeader.vue'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ForgotPassword',\n setup(__props) {\n\nconst app = getCurrentInstance()\nconst loading = ref(false)\nconst router = useRouter()\nconst version = localStorage.getItem('version')\nconst isDesktop = ref(window.innerWidth >= 1024)\nconst { $toast } = app!.appContext.config.globalProperties\n\n// Schema for form validation\nconst schema = Yup.object().shape({\n email: Yup.string().email('Email tidak valid').required('Email harus diisi'),\n})\n\n// Initial values for the form\nconst initialValues = { email: '' }\n\n// Modal attributes for confirmation\nconst attrModalConfirmation = reactive({\n show: false,\n title: 'Email Telah Dikirimkan',\n subTitle: '', \n btnSubmitTitle: 'Cek Email',\n imgContent: require('@/assets/img/icon/success-send-bill.svg'),\n showBtnBack: true,\n showSubmit: false\n})\n\nconst handleApiError = (response: any) => {\n if (!response) return\n\n const title = response.title || 'Error occurred'\n let errorMessage = title\n\n if (response.errors) {\n const errorsArray = Object.values(response.errors).flat()\n errorMessage = `${title}: ${errorsArray.join(', ')}`\n }\n\n $toast.add({\n severity: 'error',\n detail: errorMessage || 'An unexpected error occurred',\n group: 'br',\n closable: false,\n life: 3000\n })\n}\n \n// Form submission handler\nconst onSubmit = async (values: any) => {\n loading.value = true\n\n try {\n const { error, message } = await apiUseCase.postOrPut('openapi/v1/identity/forgotpassword', null, values)\n console.log(message)\n if (!error) {\n attrModalConfirmation.subTitle = `Email mengatur ulang kata sandi telah dikirimkan ke ${values.email}, mohon periksa email untuk mereset kata sandi`\n attrModalConfirmation.show = true\n loading.value = false\n }\n } catch (err: any) {\n const response = err?.response || null \n console.log('response err =>', response)\n handleApiError(response?.data)\n loading.value = false\n } finally {\n attrModalConfirmation.subTitle = `Email mengatur ulang kata sandi telah dikirimkan ke ${values.email}, mohon periksa email untuk mereset kata sandi`\n attrModalConfirmation.show = true\n loading.value = false\n }\n}\n\n// Hide dialog function\nconst hideDialog = () => {\n loading.value = false\n attrModalConfirmation.show = false\n}\n\n// Navigation function\nconst toPage = (val: string) => {\n router.push({ name: val })\n}\n\n// Cleanup logic on mount\nonMounted(() => {\n localStorage.removeItem('auth')\n})\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n (!isDesktop.value)\n ? (_openBlock(), _createBlock(CommonHeader, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"section\", _hoisted_2, [\n (isDesktop.value)\n ? (_openBlock(), _createBlock(ImageSection, { key: 0 }))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"img\", {\n src: _imports_0,\n class: \"mr-4 cursor-pointer\",\n alt: \"Back\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (toPage('Login')))\n }),\n _hoisted_6\n ]),\n _hoisted_7,\n _createVNode(_unref(Form), {\n onSubmit: onSubmit,\n \"validation-schema\": _unref(schema),\n \"initial-values\": initialValues,\n class: \"pb-16 w-full\"\n }, {\n default: _withCtx(({ errors }) => [\n _createElementVNode(\"div\", _hoisted_8, [\n _hoisted_9,\n _createVNode(_unref(Field), { name: \"email\" }, {\n default: _withCtx(({ field, handleChange, handleBlur }) => [\n _createElementVNode(\"input\", _mergeProps(field, {\n onChange: handleChange,\n onBlur: handleBlur,\n type: \"email\",\n id: \"email\",\n placeholder: \"Masukkan email terdaftar\",\n class: \"input-primary w-full px-4 py-2 rounded-lg bg-white border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500 transition\"\n }), null, 16, _hoisted_10)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString(errors.email), 1)\n ]),\n _createVNode(ButtonWhite, {\n classList: 'btn-size-lg w-full py-3 mt-6 text-lg',\n buttonText: 'Reset Kata Sandi',\n isLoading: loading.value,\n themes: 'primary',\n id: \"submit-login\",\n type: \"submit\"\n }, null, 8, [\"isLoading\"])\n ]),\n _: 1\n }, 8, [\"validation-schema\"])\n ]),\n _createElementVNode(\"p\", _hoisted_12, _toDisplayString(_unref(version)), 1)\n ])\n ]),\n _createVNode(HjpAlertModal, {\n show: attrModalConfirmation.show,\n imgContent: attrModalConfirmation.imgContent,\n title: attrModalConfirmation.title,\n subTitle: attrModalConfirmation.subTitle,\n btnSubmitTitle: attrModalConfirmation.btnSubmitTitle,\n onHideDialog: hideDialog,\n showSubmit: attrModalConfirmation.showSubmit,\n showBtnBack: attrModalConfirmation.showBtnBack,\n onOnSubmit: _cache[1] || (_cache[1] = ($event: any) => (toPage('change-password')))\n }, null, 8, [\"show\", \"imgContent\", \"title\", \"subTitle\", \"btnSubmitTitle\", \"showSubmit\", \"showBtnBack\"])\n ]))\n}\n}\n\n})","import script from \"./ForgotPassword.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./ForgotPassword.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"@/assets/styles/scss/login.scss?vue&type=style&index=0&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/changes-credential.50bb5903.svg\";","import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, resolveComponent as _resolveComponent, createBlock as _createBlock, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"container-hjp-confirm-modal\" }\nconst _hoisted_2 = { class: \"header flex\" }\nconst _hoisted_3 = { class: \"content\" }\nconst _hoisted_4 = { class: \"container-img\" }\nconst _hoisted_5 = [\"src\"]\nconst _hoisted_6 = { class: \"title\" }\nconst _hoisted_7 = [\"innerHTML\"]\nconst _hoisted_8 = { class: \"container-btn-action\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")!\n const _component_ButtonSecondary = _resolveComponent(\"ButtonSecondary\")!\n const _component_Dialog = _resolveComponent(\"Dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_Dialog, {\n showHeader: false,\n visible: _ctx.showModal,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.showModal) = $event)),\n breakpoints: { '960px': '75vw', '640px': '90vw' },\n style: { width: '30vw' },\n modal: true,\n contentClass: \"wrap-content-hjp-confirm-modal\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"i\", {\n class: \"pi pi-times cursor-pointer\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.closeDialog()))\n })\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"img\", { src: _ctx.imgContent }, null, 8, _hoisted_5)\n ]),\n _createElementVNode(\"div\", _hoisted_6, _toDisplayString(_ctx.title), 1),\n (_ctx.subTitle)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n innerHTML: _ctx.subTitle,\n class: \"sub-title\"\n }, null, 8, _hoisted_7))\n : _createCommentVNode(\"\", true),\n (_ctx.slot['additionalContent'])\n ? _renderSlot(_ctx.$slots, \"additionalContent\", { key: 1 })\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"div\", _hoisted_8, [\n (_ctx.showSubmit)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n type: \"submit\",\n class: \"btn-size-md mb-2\",\n buttonText: _ctx.btnSubmitTitle,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.onSubmit()))\n }, null, 8, [\"buttonText\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.showBtnBack)\n ? (_openBlock(), _createBlock(_component_ButtonSecondary, {\n key: 1,\n class: \"btn-size-md mr-2\",\n buttonText: _ctx.btnBackTitle,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.closeDialog()))\n }, null, 8, [\"buttonText\"]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 3\n }, 8, [\"visible\"])\n ]))\n}","\nimport './hjp-alert-modal.scss'\nimport Dialog from 'primevue/dialog'\n// import Button from 'primevue/button'\nimport Button from '@/views/components/button/ButtonPrimary.vue'\nimport ButtonSecondary from '@/views/components/button/ButtonSecondary.vue'\nimport {\n defineComponent,\n computed,\n reactive,\n ref,\n useSlots\n} from 'vue'\n\nexport default defineComponent({\n name: 'HjpCofirmModal',\n components: {\n Dialog,\n Button,\n ButtonSecondary\n },\n props: {\n show: {\n type: Boolean,\n default: () => true\n },\n showBtnBack: {\n type: Boolean,\n default: false\n },\n showSubmit: {\n type: Boolean,\n default: () => true\n },\n imgContent: {\n default: () => require('@/assets/img/modal-confirmation/changes-credential.svg')\n },\n title: {\n type: String,\n default: () => 'Title'\n },\n subTitle: {\n type: String,\n default: () => 'Sub - Tile'\n },\n btnSubmitTitle: {\n type: String,\n default: () => 'Simpan Perubahan'\n },\n btnBackTitle: {\n type: String,\n default: () => 'Kembali'\n }\n },\n emits: ['hideDialog', 'onSubmit'],\n setup(props, { emit }: any) {\n const slot = useSlots()\n const propertiesProps = reactive(props)\n const showModal = computed({\n get: () => propertiesProps.show,\n set: (val) => {\n if (!val) {\n emit('hideDialog')\n }\n }\n })\n const showBtnBack = ref(props.showBtnBack)\n const closeDialog = () => {\n showModal.value = false\n }\n const onSubmit = () => {\n emit('onSubmit')\n }\n return {\n showModal,\n showBtnBack,\n closeDialog,\n onSubmit,\n slot\n }\n }\n})\n","import { render } from \"./HjpAlertModal.vue?vue&type=template&id=5b2245fb&ts=true\"\nimport script from \"./HjpAlertModal.vue?vue&type=script&lang=ts\"\nexport * from \"./HjpAlertModal.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/chevron-left.5ff1d17d.svg\";"],"sourceRoot":""}