{"version":3,"sources":["webpack:///./src/views/otp/DisableOtp.vue?edc5","webpack:///./src/views/otp/DisableOtp.vue","webpack:///./src/views/otp/DisableOtp.vue?4151"],"names":["_hoisted_1","class","id","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","key","_hoisted_14","render","_ctx","_cache","$props","$setup","$data","$options","_component_Field","_component_ErrorMessage","_component_Form","validationSchema","onSubmit","handleFormSubmit","default","type","placeholder","name","autocomplete","onClick","handleCancelButton","args","disabled","loading","_","RemoveOTPError","components","Form","Field","ErrorMessage","setup","store","router","shape","userPassword","required","setLoading","value","push","formData","dispatch","then","SET_FETCH_USER","fire","icon","timer","title","catch","err","response","data","message","INVALID_PASSWORD","__exports__"],"mappings":"uIAEMA,EAAa,CACjBC,MAAO,uCACPC,GAAI,eAEAC,EAAa,CAAEF,MAAO,oDACtBG,EAA0B,+BAAmB,8WAAiY,GAC9aC,EAAa,CAAEJ,MAAO,+GACtBK,EAAa,CAAEL,MAAO,yGACtBM,EAAa,CAAEN,MAAO,4EACtBO,EAA0B,gCAAoB,MAAO,CAAEP,MAAO,qBAAuB,CAC5E,gCAAoB,KAAM,CAAEA,MAAO,sBAAwB,8BAC3D,gCAAoB,MAAO,CAAEA,MAAO,oCAAsC,yDACrF,GACEQ,EAAa,CAAER,MAAO,4BACtBS,EAAa,CAAET,MAAO,gCACtBU,EAAc,CAAEV,MAAO,iBACvBW,EAAc,CAAEX,MAAO,mCACvBY,EAAc,CAAC,YACfC,EAAc,CAClBC,IAAK,EACLd,MAAO,yCAEHe,EAA2B,6BAAiB,gBAE3C,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAmB,8BAAkB,SACrCC,EAA0B,8BAAkB,gBAC5CC,EAAkB,8BAAkB,QAE1C,OAAQ,yBAAc,gCAAoB,MAAO1B,EAAY,CAC3D,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SAAS,gCAAiCD,EAASL,cACnDO,MAAK,WACJL,GAAW,GACXL,EAAMS,SAAS,OAAQE,gBAAgB,GACvCV,EAAOM,KAAK,2BAA2BG,MAAK,WAC1C,IAAKE,KAAK,CACRC,KAAM,UACNC,MAAO,KACPC,MAAO,kEAIZC,OAAM,SAAAC,GACLZ,GAAW,GACX,IAAMa,EAAWD,EAAIC,SACrB,GAAIA,EAASC,KAAM,CACjB,IAAIC,EAAUH,EACVC,EAASC,KAAKnC,OAASU,EAAe2B,mBACxCD,EAAU,oBAEZ,IAAKR,KAAK,CACRC,KAAM,QACNC,MAAO,KACPC,MAAOK,QAMjB,MAAO,CACL/B,mBAAkB,EAClBT,iBAAgB,EAChBE,iBAAgB,EAChBU,QAAO,M,qBC/Db,MAAM8B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASpD,KAErD","file":"js/chunk-2d0dd86c.e45dfa07.js","sourcesContent":["import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createStaticVNode as _createStaticVNode } from \"vue\"\n\nconst _hoisted_1 = {\n class: \"d-flex flex-column flex-root bg-dark\",\n id: \"kt_app_root\"\n}\nconst _hoisted_2 = { class: \"d-flex flex-column flex-column-fluid flex-lg-row\" }\nconst _hoisted_3 = /*#__PURE__*/_createStaticVNode(\"
\", 1)\nconst _hoisted_4 = { class: \"d-flex flex-column-fluid flex-lg-row-auto justify-content-center justify-content-lg-end p-6 p-sm-12 p-lg-20\" }\nconst _hoisted_5 = { class: \"bg-body d-flex flex-column align-items-stretch flex-center rounded-4 w-md-600px p-sm-20 p-5 rounded-3\" }\nconst _hoisted_6 = { class: \"d-flex flex-center flex-column flex-column-fluid px-lg-10 pb-15 pb-lg-20\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-center mb-10\" }, [\n /*#__PURE__*/_createElementVNode(\"h1\", { class: \"text-gray-900 mb-3\" }, \"Please enter your password\"),\n /*#__PURE__*/_createElementVNode(\"div\", { class: \"text-muted fw-semibold fs-5 mb-5\" }, \" Disabling 2FA requires you to enter your password \")\n], -1)\nconst _hoisted_8 = { class: \"d-flex flex-column w-100\" }\nconst _hoisted_9 = { class: \"fv-plugins-message-container\" }\nconst _hoisted_10 = { class: \"fv-help-block\" }\nconst _hoisted_11 = { class: \"d-flex mt-4 justify-content-end\" }\nconst _hoisted_12 = [\"disabled\"]\nconst _hoisted_13 = {\n key: 0,\n class: \"spinner-border-sm spinner-border me-2\"\n}\nconst _hoisted_14 = /*#__PURE__*/_createTextVNode(\" Remove 2FA \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\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 _createElementVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_Form, {\n \"validation-schema\": _ctx.validationSchema,\n onSubmit: _ctx.handleFormSubmit,\n class: \"w-100 d-flex flex-column\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_Field, {\n class: \"form-control w-100 form-control-lg form-control-solid\",\n type: \"password\",\n placeholder: \"Enter your password\",\n name: \"userPassword\",\n autocomplete: \"off\"\n }),\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createVNode(_component_ErrorMessage, { name: \"userPassword\" })\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"button\", {\n type: \"button\",\n onClick: _cache[0] || (_cache[0] = \n//@ts-ignore\n(...args) => (_ctx.handleCancelButton && _ctx.handleCancelButton(...args))),\n class: \"me-4 btn-secondary btn d-flex justify-content-center align-items-center h-35px\"\n }, \" Cancel \"),\n _createElementVNode(\"button\", {\n disabled: _ctx.loading,\n type: \"submit\",\n class: \"btn-primary btn d-flex justify-content-center align-items-center h-35px\"\n }, [\n (_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_13))\n : _createCommentVNode(\"\", true),\n _hoisted_14\n ], 8, _hoisted_12)\n ])\n ]),\n _: 1\n }, 8, [\"validation-schema\", \"onSubmit\"])\n ])\n ])\n ])\n ])\n ]))\n}","\nimport { Form, Field, ErrorMessage } from \"vee-validate\";\nimport { Actions } from \"@/store/enums/StoreEnums\";\nimport { defineComponent, ref } from \"vue\";\nimport * as Yup from \"yup\";\nimport { useStore } from \"vuex\";\nimport { useRouter } from \"vue-router\";\nimport Swal from \"sweetalert2\";\n\nenum RemoveOTPError {\n INVALID_PASSWORD = \"invalid_password\"\n}\n\nexport default defineComponent({\n name: \"disable-otp\",\n components: { Form, Field, ErrorMessage },\n setup: function() {\n const store = useStore();\n const router = useRouter();\n const loading = ref