define(["modules/forms/module","bootstrap-validator"],function(a){"use strict";a.registerDirective("bootstrapTogglingForm",function(){return{restrict:"E",replace:!0,templateUrl:"build/modules/forms/directives/bootstrap-validation/bootstrap-toggling-form.tpl.html",link:function(a,b){b.bootstrapValidator({feedbackIcons:{valid:"glyphicon glyphicon-ok",invalid:"glyphicon glyphicon-remove",validating:"glyphicon glyphicon-refresh"},fields:{firstName:{validators:{notEmpty:{message:"The first name is required"}}},lastName:{validators:{notEmpty:{message:"The last name is required"}}},company:{validators:{notEmpty:{message:"The company name is required"}}},job:{validators:{notEmpty:{message:"The job title is required"}}},department:{validators:{notEmpty:{message:"The department name is required"}}},mobilePhone:{validators:{notEmpty:{message:"The mobile phone number is required"},digits:{message:"The mobile phone number is not valid"}}},homePhone:{validators:{digits:{message:"The home phone number is not valid"}}},officePhone:{validators:{digits:{message:"The office phone number is not valid"}}}}}).find("button[data-toggle]").on("click",function(){var a=$($(this).attr("data-toggle"));a.toggle(),a.is(":visible")||b.data("bootstrapValidator").disableSubmitButtons(!1)})}}})});