{"version":3,"sources":["webpack:///./modules/auth/views/authUserPassResetView.js"],"names":["Base","__webpack_require__","module","exports","extend","templateName","id","headerTitle","i18n","t","eventStr","hideOnSubmit","removeOnHide","removeOnSimpleHide","events","change .item","initialize","opts","this","_super","apply","arguments","listenTo","model","profileModel","requestResult","$el","find","show","siblings","hide","dispatcher","trigger","__name__","cmsConfig","_","extendCore","view","requiresChanges","templateVars","logoUrl"],"mappings":";;;;;uCAOA,IAAAA,EAAWC,kCAAQ,IAEnBC,EAAAC,QAAAH,EAAAI,QAEAF,OAAA,OAEAG,aAAA,wBAEAC,GAAA,iBAEAC,YAAAC,KAAAC,EAAA,+BAEAC,SAAA,4BAEAC,cAAA,EAEAC,cAAA,EAEAC,oBAAA,EAGAC,QACAC,eAAA,UAMAC,WAAA,SAAAC,GAEAC,KAAAC,OAAAC,MAAAF,KAAAG,WAGAH,KAAAI,SAAAJ,KAAAK,MAAA,gCAAAC,EAAAC,GACA,OAAAA,GACA,cACAP,KAAAQ,IAAAC,KAAA,qBAAAC,OAAAC,WAAAC,OACAC,WAAAC,QAAA,qCACA,MACA,cACAd,KAAAQ,IAAAC,KAAA,qBAAAC,OAAAC,WAAAC,OACAC,WAAAC,QAAA,qCACA,MACA,YACAD,WAAAC,QAAA,yCAOA9B,EAAAC,QAAA8B,SAAA,wBAGA,IAAAC,EAAgBjC,sBAAQ,IAGxBkC,EAAAC,WAAAlC,EAAAC,QAAA,SAAAkC,GACA,OAEAC,iBAAA,EACAtB,WAAA,WACAqB,EAAArB,WAAAI,MAAAF,KAAAG,WAGAc,EAAA/B,OAAAc,KAAAqB,cACAC,QAAAN,EAAAM","file":"82.bundle.min.js?7629731","sourcesContent":["/**\n * View displays the password change request form\n * @class\n * @extends Netx.View\n * @see Netx.Model.AuthUserPassResetRequestView\n * @todo Finish documentation\n */\nvar Base = require('nx-core/lib/netx-formView');\n\nmodule.exports = Base.extend(/** @lends Netx.Views.AuthUserPassResetRequestView */{\n\t/** @type {string} */\n\tmodule: 'auth',\n\t/** @type {string} */\n\ttemplateName: 'authUserPassResetView',\n\t/** @type {string} */\n\tid: 'password-reset',\n\t/** @type {i18n} */\n\theaderTitle: i18n.t('user:i18n.resetYourPassword'),\n\t/** @type {string} */\n\teventStr: 'auth:user:password:change',\n\t/** @type {boolean} */\n\thideOnSubmit: false,\n\t/** @type {boolean} */\n\tremoveOnHide: true,\n\t/** @type {boolean} */\n\tremoveOnSimpleHide: true,\n\t\n\t/** @type {object} */\n\tevents: {\n\t\t'change .item' : 'change'\n\t},\n\t/**\n\t * @override\n\t * @param {object} opts View options\n\t */\n\tinitialize: function( opts ) {\n\t\t// Super\n\t\tthis._super.apply( this, arguments );\n\n\t\t// Hey, listen\n\t\tthis.listenTo(this.model, 'change:passwordReset', function(profileModel, requestResult) {\n\t\t\tswitch(requestResult) {\n\t\t\t\tcase 'success':\n\t\t\t\t\tthis.$el.find('.password-success').show().siblings().hide();\n\t\t\t\t\tdispatcher.trigger('auth:user:password:change:success');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'failure':\n\t\t\t\t\tthis.$el.find('.password-failure').show().siblings().hide();\n\t\t\t\t\tdispatcher.trigger('auth:user:password:change:failure');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error':\n\t\t\t\t\tdispatcher.trigger('auth:user:password:change:error');\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t});\n\t}\n} );\n\nmodule.exports.__name__ = \"AuthUserPassResetView\";\n/** @nxtend */\n\nvar cmsConfig = require('nx-cms/config');\n\n// Extend core\n_.extendCore( module.exports, function( view ) {\n\treturn {\n\n\t\trequiresChanges: false,\n\t\tinitialize: function() {\n\t\t\tview.initialize.apply(this, arguments);\n\n\t\t\t// start with default logo\n\t\t\t_.extend( this.templateVars, {\n\t\t\t\tlogoUrl: cmsConfig.logoUrl\n\t\t\t} );\n\n\t\t}\n\t};\n\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./modules/auth/views/authUserPassResetView.js\n// module id = 953\n// module chunks = 82"],"sourceRoot":""}