{"version":3,"sources":["webpack:///./src/lib/components/ChangePasswordOnResetForm/ChangePasswordOnResetForm.less?4542","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/es/asn/LockOutlined.js","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/es/icons/LockOutlined.js","lib/components/ChangePasswordOnResetForm/ChangePasswordOnResetForm.tsx"],"names":["LockOutlined","props","ref","React","AntdIcon","_objectSpread","icon","LockOutlinedSvg","displayName","ChangePasswordOnResetForm","services","useServices","useParams","resetId","useState","isLoading","setIsLoading","handleChangePassword","values","userService","changePassword","success","sleep","window","location","href","getBaseUIPath","handleError","logo","margin","marginTop","maxWidth","remember","required","message"],"mappings":";;;;;AAAA,uC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA,IAAIA,yBAAY,GAAG;EAAE,QAAQ;IAAE,OAAO,KAAT;IAAgB,SAAS;MAAE,WAAW,eAAb;MAA8B,aAAa;IAA3C,CAAzB;IAA+E,YAAY,CAAC;MAAE,OAAO,MAAT;MAAiB,SAAS;QAAE,KAAK;MAAP;IAA1B,CAAD;EAA3F,CAAV;EAAse,QAAQ,MAA9e;EAAsf,SAAS;AAA/f,CAAnB;AACeA,8EAAf,E;;;;;CCDA;AACA;;AACA;AACA;AACA;;AAEA,IAAIA,+BAAY,GAAG,SAASA,YAAT,CAAsBC,KAAtB,EAA6BC,GAA7B,EAAkC;EACnD,OAAO,aAAaC,sBAAA,CAAoBC,2BAApB,EAA8BC,wCAAa,CAACA,wCAAa,CAAC,EAAD,EAAKJ,KAAL,CAAd,EAA2B,EAA3B,EAA+B;IAC5FC,GAAG,EAAEA,GADuF;IAE5FI,IAAI,EAAEC,gBAAeA;EAFuE,CAA/B,CAA3C,CAApB;AAID,CALD;;AAOAP,+BAAY,CAACQ,WAAb,GAA2B,cAA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CAAE,KANhB,CAOE,MAAM,CAAC,UAPT,CAQE,QAAQ,CAAEf,oBARZ,wBAUE,0CAAM,IAAN,EACE,IAAI,CAAC,UADP,CAEE,KAAK,CAAE,CACL,CACEgB,QAAQ,CAAE,IADZ,CAEEC,OAAO,CAAE,4BAFX,CADK,CAFT,CAQE,KAAK,cAAE,yDART,uBAUE,4CAAO,MAAM,cAAE,2BAAC,kBAAD,IAAf,CAAiC,IAAI,CAAC,UAAtC,CAAiD,WAAW,CAAC,UAA7D,EAVF,EAVF,cAuBE,kCAAK,SAAS,CAAC,yBAAf,uBACE,wDACE,6CAAQ,IAAI,CAAC,SAAb,CAAuB,QAAQ,CAAC,QAAhC,CAAyC,SAAS,CAAC,mBAAnD,CAAuE,OAAO,CAAEnB,SAAhF,kBADF,EADF,EAvBF,GAXF,EADF,CA6CD,CAhED,CAkEeN,iNAAf,E","file":"static/js/147.7e7c2ef6.chunk.js","sourcesContent":["// extracted by mini-css-extract-plugin","// This icon file is generated automatically.\nvar LockOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z\" } }] }, \"name\": \"lock\", \"theme\": \"outlined\" };\nexport default LockOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport LockOutlinedSvg from \"@ant-design/icons-svg/es/asn/LockOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar LockOutlined = function LockOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: LockOutlinedSvg\n }));\n};\n\nLockOutlined.displayName = 'LockOutlined';\nexport default /*#__PURE__*/React.forwardRef(LockOutlined);","// @Libs\nimport { useState } from \"react\"\nimport { useParams } from \"react-router-dom\"\nimport { Button, Card, Form, Input, message } from \"antd\"\n// @Components\nimport { handleError } from \"../components\"\n// @Hooks\nimport { useServices } from \"hooks/useServices\"\n// @Icons\nimport logo from \"icons/logo.svg\"\nimport { LockOutlined } from \"@ant-design/icons\"\n// @Utils\nimport { sleep } from \"lib/commons/utils\"\nimport { getBaseUIPath } from \"lib/commons/pathHelper\"\n// @Styles\nimport \"./ChangePasswordOnResetForm.less\"\n\nconst ChangePasswordOnResetForm = () => {\n const services = useServices()\n const { resetId } = useParams<{ resetId?: string }>()\n const [isLoading, setIsLoading] = useState(false)\n\n const handleChangePassword = async values => {\n setIsLoading(true)\n try {\n await services.userService.changePassword(values[\"password\"], resetId)\n message.success(\"Password has been changed!\")\n await sleep(800)\n window.location.href = getBaseUIPath() ?? \"/\"\n } catch (error) {\n handleError(error)\n } finally {\n setIsLoading(false)\n }\n }\n\n return (\n \n \"[logo]\"\n

Set your new password

\n \n }\n style={{ margin: \"auto\", marginTop: \"100px\", maxWidth: \"500px\" }}\n bordered={false}\n className=\"password-form-card\"\n >\n \n New Password}\n >\n } type=\"password\" placeholder=\"Password\" />\n \n\n
\n
\n \n
\n
\n \n \n )\n}\n\nexport default ChangePasswordOnResetForm\n"],"sourceRoot":""}