;(function($){"use strict";ips.controller.register('nexus.global.forms.businessAddressVat',{initialize:function(){this.on('change','[data-role="addressTypeRadio"]',this.changeRelevantField);this.on('change','[data-role="countrySelect"]',this.changeRelevantField);this.changeRelevantField();},changeRelevantField:function(){if(this.scope.find('[data-role="addressTypeRadio"][value="business"]').is(':checked')&&['AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IE','IT','LV','LT','LU','MT','NL','PL','PT','RO','SK','SI','ES','SE','GB','GP','MQ','RE','BL','GF','MF','NC','PF','PM','TF','YT','WF'].indexOf(this.scope.find('[data-role="countrySelect"]').val())!==-1){this.scope.find('[data-role="vatField"]').show();this.scope.find('[data-role="business"]').show();}else{this.scope.find('[data-role="vatField"]').hide();this.scope.find('[data-role="business"]').hide();}}});}(jQuery));;