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