define(["modules/forms/module","modules/forms/common","jquery-maskedinput","jquery-validation"],function(a,b){"use strict";return a.registerDirective("smartRegistrationForm",function(){return{restrict:"E",replace:!0,templateUrl:"build/modules/forms/directives/form-layouts/smart-registration-form.tpl.html",scope:!0,link:function(a,c){c.validate(angular.extend({rules:{username:{required:!0},email:{required:!0,email:!0},password:{required:!0,minlength:3,maxlength:20},passwordConfirm:{required:!0,minlength:3,maxlength:20,equalTo:"#password"},firstname:{required:!0},lastname:{required:!0},gender:{required:!0},terms:{required:!0}},messages:{login:{required:"Please enter your login"},email:{required:"Please enter your email address",email:"Please enter a VALID email address"},password:{required:"Please enter your password"},passwordConfirm:{required:"Please enter your password one more time",equalTo:"Please enter the same password as above"},firstname:{required:"Please select your first name"},lastname:{required:"Please select your last name"},gender:{required:"Please select your gender"},terms:{required:"You must agree with Terms and Conditions"}}},b.validateOptions))}}})});