{ "version": 3, "sources": ["../../../../../Modules/Membership/PasswordActions/ForgotPasswordPage.tsx", "../../../../../Modules/ServerTypes/Extensions/ForgotPasswordForm.ts"], "sourcesContent": ["import { ForgotPasswordFormTexts } from \"../../ServerTypes/Texts\";\nimport { PropertyPanel, informationDialog, resolveUrl, serviceCall, toggleClass } from \"@serenity-is/corelib\";\nimport { ForgotPasswordForm } from \"../../ServerTypes/Extensions/ForgotPasswordForm\";\nimport { ForgotPasswordRequest } from \"../../ServerTypes/Extensions/ForgotPasswordRequest\";\nimport { AccountPanelTitle } from \"../AccountPanelTitle\";\n\nexport default function pageInit() {\n toggleClass(new ForgotPasswordPanel({ element: \"#PanelDiv\" }).domNode, \n \"s-full-page justify-content-center s-Form\", true);\n}\n\nexport class ForgotPasswordPanel<P = {}> extends PropertyPanel<ForgotPasswordRequest, P> {\n\n protected getFormKey() { return ForgotPasswordForm.formKey; }\n\n protected submitClick() {\n if (!this.validateForm())\n return;\n\n var request = this.getSaveEntity();\n serviceCall({\n url: resolveUrl('~/Account/ForgotPassword'),\n request: request,\n onSuccess: () => {\n informationDialog(ForgotPasswordFormTexts.SuccessMessage, () => {\n window.location.href = resolveUrl('~/');\n });\n }\n });\n }\n\n renderContents(): any {\n const id = this.useIdPrefix();\n return (\n <div class=\"s-container-tight\">\n <AccountPanelTitle />\n <div class=\"s-Panel p-4\">\n <h5 class=\"text-center mb-4\">{ForgotPasswordFormTexts.FormTitle}</h5>\n <p class=\"text-center\">{ForgotPasswordFormTexts.FormInfo}</p>\n <form id={id.Form} action=\"\">\n <div id={id.PropertyGrid}></div>\n <button id={id.SubmitButton} type=\"submit\" class=\"btn btn-primary mx-8 w-100\"\n onClick={e => { e.preventDefault(); this.submitClick() }}>\n {ForgotPasswordFormTexts.SubmitButton}\n </button>\n </form>\n </div>\n </div>\n );\n }\n}", "\uFEFFimport { EmailAddressEditor, PrefixedContext, initFormType } from \"@serenity-is/corelib\";\n\nexport interface ForgotPasswordForm {\n Email: EmailAddressEditor;\n}\n\nexport class ForgotPasswordForm extends PrefixedContext {\n static readonly formKey = 'Serenity.Extensions.ForgotPasswordRequest';\n private static init: boolean;\n\n constructor(prefix: string) {\n super(prefix);\n\n if (!ForgotPasswordForm.init) {\n ForgotPasswordForm.init = true;\n\n var w0 = EmailAddressEditor;\n\n initFormType(ForgotPasswordForm, [\n 'Email', w0\n ]);\n }\n }\n}"], "mappings": "0LACA,IAAAA,EAAuF,SCDtF,IAAAC,EAAkE,SAM5D,IAAMC,EAAN,MAAMA,UAA2B,iBAAgB,CAIpD,YAAYC,EAAgB,CAGxB,GAFA,MAAMA,CAAM,EAER,CAACD,EAAmB,KAAO,CAC3BA,EAAmB,KAAO,GAE1B,IAAIE,EAAK,wBAET,gBAAaF,EAAoB,CAC7B,QAASE,CACb,CAAC,CACL,CACJ,CACJ,EAjBwDC,EAAAH,EAAA,sBAA3CA,EACO,QAAU,4CADvB,IAAMI,EAANJ,EDAQ,SAARK,GAA4B,IAC/B,eAAY,IAAIC,EAAoB,CAAE,QAAS,WAAY,CAAC,EAAE,QAC1D,4CAA6C,EAAI,CACzD,CAHwBC,EAAAF,EAAA,YAKjB,IAAMG,EAAN,MAAMA,UAAoC,eAAwC,CAE3E,YAAa,CAAE,OAAOC,EAAmB,OAAS,CAElD,aAAc,CACpB,GAAK,KAAK,aAAa,EAGvB,KAAIC,EAAU,KAAK,cAAc,KACjC,eAAY,CACR,OAAK,cAAW,0BAA0B,EAC1C,QAASA,EACT,UAAWH,EAAA,IAAM,IACb,qBAAkBI,EAAwB,eAAgB,IAAM,CAC5D,OAAO,SAAS,QAAO,cAAW,IAAI,CAC1C,CAAC,CACL,EAJW,YAKf,CAAC,EACL,CAEA,gBAAsB,CAClB,IAAMC,EAAK,KAAK,YAAY,EAC5B,OACIC,EAAC,OAAI,MAAM,oBACP,UAAAA,EAACC,EAAA,EAAkB,EACnBD,EAAC,OAAI,MAAM,cACP,UAAAA,EAAC,MAAG,MAAM,mBAAoB,SAAAF,EAAwB,UAAU,EAChEE,EAAC,KAAE,MAAM,cAAe,SAAAF,EAAwB,SAAS,EACzDE,EAAC,QAAK,GAAID,EAAG,KAAM,OAAO,GACtB,UAAAC,EAAC,OAAI,GAAID,EAAG,aAAc,EAC1BC,EAAC,UAAO,GAAID,EAAG,aAAc,KAAK,SAAS,MAAM,6BAC7C,QAASG,GAAK,CAAEA,EAAE,eAAe,EAAG,KAAK,YAAY,CAAE,EACtD,SAAAJ,EAAwB,aAC7B,GACJ,GACJ,GACJ,CAER,CACJ,EAvCyFJ,EAAAC,EAAA,uBAAlF,IAAMF,EAANE", "names": ["import_corelib", "import_corelib", "_ForgotPasswordForm", "prefix", "w0", "__name", "ForgotPasswordForm", "pageInit", "ForgotPasswordPanel", "__name", "_ForgotPasswordPanel", "ForgotPasswordForm", "request", "ForgotPasswordFormTexts", "id", "jsx", "AccountPanelTitle", "e"] }