{"version":3,"file":"register.min.js","sources":["account/register.js"],"sourcesContent":["$(document).ready(function ()\n{\n var app = new Vue(\n {\n el: \"#body-container\",\n data:\n {\n newAccount: model.newAccount,\n registered: 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/register\", \"POST\", { RequestVerificationToken: model.antiforgeyToken }, JSON.stringify(app.newAccount))\n .then(function (data)\n {\n eventBus.$emit(\"notify-success\", data.message);\n app.registered = 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.newAccount.email = null;\n this.newAccount.confirmEmail = null;\n this.newAccount.password = null;\n this.newAccount.confirmPassword = null;\n this.$validator.reset();\n }\n }\n });\n});\n\n"],"names":["$","document","ready","app","Vue","el","data","newAccount","model","registered","busy","mounted","clearLoading","methods","setBusy","isBusy","this","submitForm","$validator","validateAll","then","result","eventBus","$emit","RequestVerificationToken","antiforgeyToken","JSON","stringify","message","resetForm","catch","finally","email","confirmEmail","password","confirmPassword","reset"],"mappings":"AAAAA,EAAEC,UAAUC,MAAM,WAEhB,IAAIC,EAAM,IAAIC,IACZ,CACEC,GAAI,kBACJC,KACA,CACEC,WAAYC,MAAMD,WAClBE,YAAY,EACZC,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,oBAAqB,OAAQ,CAAEO,yBAA0BhB,MAAMiB,iBAAmBC,KAAKC,UAAUxB,EAAII,aAC3Ga,KAAK,SAAUd,GAEdgB,SAASC,MAAM,iBAAkBjB,EAAKsB,SACtCzB,EAAIM,YAAa,EACjBN,EAAI0B,cAELC,MAAM,SAAUxB,GAEfgB,SAASC,MAAM,eAAgBjB,KAEhCyB,QAAQ,WAEP5B,EAAIW,SAAQ,SAMxBe,UAAW,WAETb,KAAKT,WAAWyB,MAAQ,KACxBhB,KAAKT,WAAW0B,aAAe,KAC/BjB,KAAKT,WAAW2B,SAAW,KAC3BlB,KAAKT,WAAW4B,gBAAkB,KAClCnB,KAAKE,WAAWkB"}