define(["modules/forms/module","modules/forms/common","jquery-maskedinput","jquery-validation"],function(a,b){"use strict";return a.registerDirective("smartCheckoutForm",function(){return{restrict:"E",replace:!0,templateUrl:"build/modules/forms/directives/form-layouts/smart-checkout-form.tpl.html",scope:!0,link:function(a,c){a.countries=b.countries,c.validate(angular.extend({rules:{fname:{required:!0},lname:{required:!0},email:{required:!0,email:!0},phone:{required:!0},country:{required:!0},city:{required:!0},code:{required:!0,digits:!0},address:{required:!0},name:{required:!0},card:{required:!0,creditcard:!0},cvv:{required:!0,digits:!0},month:{required:!0},year:{required:!0,digits:!0}},messages:{fname:{required:"Please enter your first name"},lname:{required:"Please enter your last name"},email:{required:"Please enter your email address",email:"Please enter a VALID email address"},phone:{required:"Please enter your phone number"},country:{required:"Please select your country"},city:{required:"Please enter your city"},code:{required:"Please enter code",digits:"Digits only please"},address:{required:"Please enter your full address"},name:{required:"Please enter name on your card"},card:{required:"Please enter your card number"},cvv:{required:"Enter CVV2",digits:"Digits only"},month:{required:"Select month"},year:{required:"Enter year",digits:"Digits only please"}}},b.validateOptions))}}})});