{"version":3,"file":"resendconfirmation.min.js","sources":["account/resendconfirmation.js"],"sourcesContent":["$(document).ready(function ()\n{\n var app = new Vue(\n {\n el: \"#body-container\",\n data:\n {\n resendConfirmationLink: model.resendConfirmationLink,\n sent: false,\n busy: false\n },\n mounted: function()\n {\n clearLoading();\n },\n methods:\n {\n setBusy: function (isBusy)\n {\n this.busy = isBusy;\n },\n \n submitForm: function ()\n {\n this.$validator.validateAll().then(function (result)\n {\n eventBus.$emit(\"notify-clear\");\n\n if (result)\n {\n app.setBusy(true);\n\n submitForm(\"/account/resendconfirmation\", \"POST\", { RequestVerificationToken: model.antiforgeyToken }, JSON.stringify(app.resendConfirmationLink), null, null)\n .then(function (data)\n {\n eventBus.$emit(\"notify-success\", data.message);\n app.sent = true;\n app.resetForm();\n })\n .catch(function (data)\n {\n eventBus.$emit(\"notify-error\", data);\n })\n .finally(function()\n {\n app.setBusy(false);\n });\n }\n });\n },\n\n resetForm: function ()\n {\n this.resendConfirmationLink.username = null;\n this.$validator.reset();\n }\n }\n });\n});\n\n\n"],"names":["$","document","ready","app","Vue","el","data","resendConfirmationLink","model","sent","busy","mounted","clearLoading","methods","setBusy","isBusy","this","submitForm","$validator","validateAll","then","result","eventBus","$emit","RequestVerificationToken","antiforgeyToken","JSON","stringify","message","resetForm","catch","finally","username","reset"],"mappings":"AAAAA,EAAEC,UAAUC,MAAM,WAEhB,IAAIC,EAAM,IAAIC,IACZ,CACEC,GAAI,kBACJC,KACA,CACEC,uBAAwBC,MAAMD,uBAC9BE,MAAM,EACNC,MAAM,GAERC,QAAS,WAEPC,gBAEFC,QACA,CACEC,QAAS,SAAUC,GAEjBC,KAAKN,KAAOK,GAGdE,WAAY,WAEVD,KAAKE,WAAWC,cAAcC,KAAK,SAAUC,GAE3CC,SAASC,MAAM,gBAEXF,IAEFlB,EAAIW,SAAQ,GAEZG,WAAW,8BAA+B,OAAQ,CAAEO,yBAA0BhB,MAAMiB,iBAAmBC,KAAKC,UAAUxB,EAAII,wBAAyB,KAAM,MACpJa,KAAK,SAAUd,GAEdgB,SAASC,MAAM,iBAAkBjB,EAAKsB,SACtCzB,EAAIM,MAAO,EACXN,EAAI0B,cAELC,MAAM,SAAUxB,GAEfgB,SAASC,MAAM,eAAgBjB,KAEhCyB,QAAQ,WAEP5B,EAAIW,SAAQ,SAMxBe,UAAW,WAETb,KAAKT,uBAAuByB,SAAW,KACvChB,KAAKE,WAAWe"}