define(['jquery'],function($){return function(validator){validator.addRule('validate-phone-country',function(value,country){var countryIdRegEx={'AT':'^([0-9]{1,4}[0-9]{3,12})?$','BE':'^([0-9]{1,2}[0-9]{6,7})?$','BG':'^([0-9]{1,5}[0-9]{3,7})?$','CY':'^([0-9]{1,2}[0-9]{4,6})?$','HR':'^([0-9]{1,2}[0-9]{5,7})?$','DK':'^([0-9]{8,9})?$','SK':'^([0-9]{1,2}[0-9]{7,8})?$','SI':'^([0-9]{1,3}[0-9]{5,7})?$','ES':'^([0-9]{9})?$','EE':'^([0-9]{0,2}[0-9]{5,8})?$','FI':'^([0-9]{1,2}[0-9]{4,9})?$','FR':'^([0-9]{9})?$','DE':'^([0-9]{2,5}[0-9]{3,9})?$','GR':'^([0-9]{8,10})?$','HU':'^([0-9]{1,2}[0-9]{6,7})?$','IE':'^([0-9]{1,3}[0-9]{5,7})?$','IT':'^([0-9]{1,3}[0-9]{5,8})?$','LV':'^([0-9]{7,8})?$','LT':'^([0-9]{1,2}[0-9]{5,6})?$','LU':'^([0-9]{5,11})?$','MT':'^([0-9]{8})?$','MX':'^([0-9]{8,10})?$','NL':'^([0-9]{2,3}[0-9]{6,7})?$','PL':'^([0-9]{9})?$','CZ':'^([0-9]{8,9})?$','RO':'^([0-9]{9})?$','SE':'^([0-9]{1,3}[0-9]{5,8})?$','GB':'^([0-9]{2,5}[0-9]{5,8})?$','PT':'^([0-9]{9})?$'};if(countryIdRegEx[country]){var reg=new RegExp(countryIdRegEx[country]);if(!reg.test(value)){return false;}} return true;},$.mage.__('Phone format is not correct'));return validator;}});