define(["modules/forms/module","modules/forms/common","jquery-maskedinput","jquery-form","jquery-validation"],function(a,b){"use strict";return a.registerDirective("smartContactsForm",function(){return{restrict:"E",replace:!0,templateUrl:"build/modules/forms/directives/form-layouts/smart-contacts-form.tpl.html",scope:!0,link:function(a,c){c.validate(angular.extend({rules:{name:{required:!0},email:{required:!0,email:!0},message:{required:!0,minlength:10}},messages:{name:{required:"Please enter your name"},email:{required:"Please enter your email address",email:"Please enter a VALID email address"},message:{required:"Please enter your message"}},submitHandler:function(){c.ajaxSubmit({success:function(){c.addClass("submited")}})}},b.validateOptions))}}})});