PageSourceSearch

https://www.pgarivieramaya.com/js/scripts-golf.js?v=2.8

js pgarivieramaya.com collected 2026-09-26 00:36:27 UTC 27,078 bytes, 563 lines download raw bytes

1if (typeof Golf === 'undefined') Golf = {};
2
3$.validator.addMethod( "nombreValido" , function ( value, element ){
4	var nameRegex = /[0-9\\\/$^¡!|@#%*~·€¬,;:\¿?\[\]+=\_\(\)]/;
5	var textoInvalido = nameRegex.test(value);
6	if (textoInvalido){
7		$.validator.messages.nombreValido = $(element).attr("data-msg-pattern");
8		return false;
9	} else {
10		return true;
11	}
12}, "" );
13
14$.validator.addMethod( "telefonoValido" , function ( value, element ){
15	var telRegex = /^[+]?[-\s0-9]+$/;
16	var telValido = telRegex.test(value.trim());		
17	if (telValido) {			
18		return true;
19	} else {
20		$.validator.messages.telefonoValido = $(element).attr("data-msg-pattern");
21		return false;
22	}
23}, "" );
24
25$.validator.addMethod( "prefijoValido" , function ( value, element ){
26	var dialCode = $("#p_dialtel").val();
27	if (dialCode){			
28		return true;
29	} else {
30		$.validator.messages.prefijoValido = $(element).attr("data-msg-pattern");
31		return false;
32	}
33}, "" );
34
35Golf.Formularios = {
36		
37	errorValidacion : function( error, element ){
38		var msgError = $("<div class='msg-error'></div>").text(error.text());		
39		if ($(element).attr("id") == "tel_contact") { 		
40			if ($(element).closest(".c-forms--compact").find("div.msg-error").length == 0) {				
41				$(element).closest(".c-forms--compact").append(msgError);				
42				$(element).closest(".c-forms--compact").parent().addClass("error");				
43			} else {
44				$(element).closest(".c-forms--compact").find("div.msg-error").text(error.text());
45			}
46		} else {
47			if ($(element).parent().find("div.msg-error").length == 0 ) {				
48				$(element).parent().append(msgError);
49				$(element).parent().parent().addClass("error");
50				if ($(element).parent().find(".c-checkbox")){
51					$(element).parent().addClass("error");
52				}
53			} else {
54				$(element).parent().find("div.msg-error").text(error.text());
55			}
56		}
57	},
58	
59	validacionCorrecta : function( error, element ){
60		if ($(element).attr("id") == "tel_contact") {
61			if ($(element).closest(".c-forms--compact").find("div.msg-error").length != 0) {	
62				$(element).closest(".c-forms--compact").find("div.msg-error").remove();
63				$(element).closest(".c-forms--compact").parent().removeClass("error");
64			}
65		} else {
66			if ($(element).parent().find("div.msg-error").length != 0) {
67				$(element).parent().find("div.msg-error").remove();
68				$(element).parent().parent().removeClass("error");
69				if($(element).parent().find(".c-checkbox")){
70					$(element).parent().removeClass("error");
71				}
72			}	
73		}
74	},
75	
76	Inscripcion : {
77		idFormulario : "#form_inscripcion",		
78		validarFormulario : function() {		
79			$(Golf.Formularios.Inscripcion.idFormulario).validate({		
80				rules: {
81					"nombre": {
82						required: true,
83						nombreValido: true
84					},
85					"apellido": {
86						required: true,
87						nombreValido: true
88					},
89					"correo": {
90						required: true,
91						email: true
92					},
93					"telefono": {
94						required: true,						
95						telefonoValido: true						
96					},					
97					"handicap": {
98						required: true
99					},
100					"pais": {
101						required: true,
102						nombreValido: true
103					},
104					"legal": {						
105						required: true
106					}
107				},				
108				errorPlacement: function( error, element ) {
109					Golf.Formularios.errorValidacion(error, element);					
110				},
111				success: function( error, element ) {
112					Golf.Formularios.validacionCorrecta(error, element);			
113				},				
114				highlight: function ( element ) { 									
115					$(element).parent().addClass("input-error"); 
116				},
117				unhighlight: function ( element ) {
118					$(element).parent().removeClass("input-error");
119				},
120				submitHandler: function ( form ) {
121					var msgExito = $(form).attr("data-exito");
122					var msgError = $(form).attr("data-error");
123					var dataApplication = "GOLF" + $(form).attr("data-site");
124					var dataType = "GOLF_" + $(form).attr("data-site") + "_OPEN";
125					var placement = "";
126					
127					if( $('#house',form)[0].checked == true){
128						placement = " *** Esta persona necesita alojamiento *** ";
129					}
130					var contactMail = {
131						"application": dataApplication,
132						"creationUser": "GOLF_WS",
133						"market": $(form).attr("data-market"), 
134						"subject": "Inscripcion: " + $(form).attr("data-torneo"),
135						"to": $('#correo',form).val(),
136						"clientData": {
137					        "clientMessage": "\n\n" + placement + "\n\n" + $('#mensaje',form).val(),
138					    	"email": $('#correo',form).val(),
139					        "name": $('#nombre',form).val(),
140							"lastName": $('#apellido',form).val(),
141					        "phoneNumber": $('#telefono',form).val(),
142					        "nationality": $('#pais',form).val(),
143					        "handicap": $("#handicap", form).val()
144					    },
145						"language" : $(form).attr("data-lang"),
146						"type": dataType
147					};
148					$.ajax({
149						dataType: "json",
150						url : "/mail-manager-ws/composer/createAndQueueContactMail",
151						type: "POST",
152						contentType: "application/json;charset=ISO-8859-1",
153						data : JSON.stringify(contactMail),
154						success: function(data) {
155							if (data.result.ok == true) {	
156								alert (msgExito);
157								ga('send', 'event', 'InscribirSe', location.href, 'FormEnviado');
158							} else {
159								alert (msgError);
160							}														
161							$(form).trigger("reset");
162						},
163						error: function(data) {							
164							alert (msgError);				
165							$(form).trigger("reset");
166						}
167					});
168				}
169			});		
170		}
171	},
172	
173	Contacto : {
174		idFormulario : "#form_contacto",		
175		validarFormulario : function() {		
176			$(Golf.Formularios.Contacto.idFormulario).validate({		
177				rules: {
178					"nombre": {
179						required: true,
180						nombreValido: true
181					},
182					"apellido": {
183						required: true,
184						nombreValido: true
185					},
186					"correo": {
187						required: true,
188						email: true
189					},
190					"tel_contact": {
191						required: true,
192						telefonoValido: true,
193						prefijoValido: true						
194					},
195					"nationality": {
196						required: true
197					},					
198					"asunto": {
199						required: true
200					},
201					"mensaje": {
202						required: true						
203					}
204				},				
205				errorPlacement: function( error, element ) {
206					Golf.Formularios.errorValidacion(error, element);					
207				},
208				success: function( error, element ) {
209					Golf.Formularios.validacionCorrecta(error, element);			
210				},				
211				highlight: function ( element ) { 									
212					$(element).parent().addClass("input-error"); 
213				},
214				unhighlight: function ( element ) {
215					$(element).parent().removeClass("input-error");
216				},
217				submitHandler: function ( form ) {
218					$("button[type='submit']", form).prop("disabled", true);
219					var msgExito = $(form).attr("data-exito");
220					var msgError = $(form).attr("data-error");
221					var skCap = $(form).attr("data-skc");
222					var msgReg = $(form).attr("data-reg");					
223					var dialCodeTel = "+" + $('#p_dialtel',form).val();
224					var telNumber = $('#tel_contact',form).val().trim();
225					var contactPhone = dialCodeTel + telNumber;
226					var dataMarket = $(form).attr("data-market");
227					var infoCom = "N";
228					var infoGDPR = false;
229					if ($("#comunicaciones",form).is(':checked')){
230						infoCom = "S";
231					}
232					if ($("#tratamiento",form).is(':checked')){
233						infoGDPR = true;
234					}
235					var ipCountry = "";
236					if (typeof paisIp !== 'undefined' && paisIp != null) {
237						ipCountry = paisIp;
238					}
239					var contactMail = {
240						"brand": "GOLF",
241						"gdpr": infoGDPR,
242						"newsletter": infoCom,
243						"languageCode": $(form).attr("data-lang"),
244						"mail": $('#correo',form).val(),
245						"market": dataMarket,						
246						"name": $('#nombre',form).val(),
247						"lastName": $('#apellido',form).val(),
248						"phoneNumber": contactPhone,
249						"channel": "WEB",
250						"interestType": "infoGolf",  
251						"nationality": $('#nationality',form).val(),
252						"subject": $('#asunto',form).val(),
253						"message": $('#mensaje',form).val(),
254						"productOfInterest": null,
255						"ipCountryIsoCode": ipCountry,
256						"profile": false
257					};
258					
259					grecaptcha.enterprise.ready(async () => {
260						grecaptcha.enterprise.execute(skCap, {action: 'login'}).then((newToken) => {	    		    				    		    		
261							contactMail["token"] = newToken;
262							
263							$.ajax({
264								dataType: "json",
265								contentType: "application/json;charset=ISO-8859-1",
266								url : "/residential-ws/getOurServicesDetails",
267								type: "POST",
268								data : JSON.stringify(contactMail),
269								success: function(data) {
270									if (data.result.ok == true) {			
271										try{
272											alert (msgExito);
273											ga('send', 'event', 'ContactForm', location.href, 'Enviado');
274										}catch(err){
275											console.log("ga not defined");
276										}
277									} else if (data.result.errorMessage != null && data.result.errorMessage.indexOf("Already registered email") != -1) {
278										alert (msgReg);								
279									} else {
280										alert (msgError);						
281									}
282									$(form).trigger("reset");
283									$("button[type='submit']", form).prop("disabled", false);							
284								},
285								error: function(data) {						
286									alert (msgError);					
287									$(form).trigger("reset");
288									$("button[type='submit']", form).prop("disabled", false);
289								}
290							});
291															
292						}).catch((error) => {	    		    			
293							alert (msgError);
294							console.debug(error);
295							$(form).trigger("reset");
296							$("button[type='submit']", form).prop("disabled", false);	
297						});
298					});
299				}
300			});		
301		}	
302	},
303	
304	Newsletter : {
305		idFormulario : "#form_newsletter",		
306		validarFormulario : function() {		
307			$(Golf.Formularios.Newsletter.idFormulario).validate({		
308				rules: {
309					"correo": {
310						required: true,
311						email: true
312					},
313					"legalNews": {						
314						required: true
315					}
316				},				
317				errorPlacement: function( error, element ) {
318					Golf.Formularios.errorValidacion(error, element);					
319				},
320				success: function( error, element ) {
321					Golf.Formularios.validacionCorrecta(error, element);			
322				},				
323				highlight: function ( element ) { 									
324					$(element).parent().addClass("input-error"); 
325				},
326				unhighlight: function ( element ) {
327					$(element).parent().removeClass("input-error");
328				},
329				submitHandler: function ( form ) {
330					var msgExito = $(form).attr("data-exito");
331					var msgError = $(form).attr("data-error");
332					$.ajax({
333						dataType: "json",
334						url : "",
335						type: "POST",
336						data : $(form).serialize(),
337						success: function(data) {
338							if (data.codigo == 0) {								
339								alert (msgExito);							
340							} else {								
341								alert (msgError);
342							}														
343							$(form).trigger("reset");
344						},
345						error: function(data) {							
346							alert (msgError);					
347							$(form).trigger("reset");
348						}
349					});
350				}
351			});		
352		}
353	},
354
355	obtenerPaises : function (idForm){
356		let urlGC = "/bp/getCountries";
357		if ($(idForm).attr("data-lang")){
358			urlGC = urlGC + "/" + $(idForm).attr("data-lang");
359		}
360		$.ajax({
361			dataType: "json",
362			url: urlGC,
363			type: "GET",
364			success: function(data) {
365				if (data.result.ok == true) {								
366					if (data.countries != null && $.isArray(data.countries)){	
367						let countryList = [];					
368						$.each(data.countries, function (pos, country) {							
369							if (country.description != null && country.iso2Code != null){	
370								let countryAux = {};
371								countryAux["name"] = country.description;
372								countryAux["value"] = country.iso2Code;
373								countryList.push(countryAux);																
374							}
375						});
376						$('#inputCountryList').attr("data-values", JSON.stringify(countryList));				
377					}										
378				} else {
379					console.log("[getCountries] No data");	
380				}
381			},
382			error: function(data) {							
383				console.log("[getCountries] WS Conection error");							
384			}
385		});			
386	},
387
388	prefijosTel : function (cInfo){	
389		for (var i = 0; i < cInfo.length; i++) {
390			var c = cInfo[i];
391			cInfo[i] = {
392				name: c[0] + ' +' + c[2],
393				value: c[2],
394				code: c[1],
395				icon: '/bookingwww-2018/desktop/images/common/flags/' + c[1] + '.svg'
396			};
397		}
398		$("#inputPrefInfo").attr("data-values", JSON.stringify(cInfo));	
399	}	
400}
401
402Golf.Ofertas = {
403	getOfertaResort : function( codigo ){		
404		var url = "/bp18/process/offers/GetOffers?p=" + encodeURIComponent("{'mercado':'"
405						+ mcd
406						+ "','tipoBusqueda':'','hotelBP':'" + codigo + "'}");
407		var divisa;
408		var precio = 0;
409		
410		if ($("#precio_"+codigo).length > 0 && $("#precio_"+codigo).html().trim() === ''){			 						
411			$.getJSON(url, function(result){
412				if (result != null && result.listaOfertasBP != null && result.listaOfertasBP.length > 0) {		
413					$.each(result, function(i, field){			
414						if (field != null){  
415
416							var idOferta = "D::" + field["0"].hotelBP + ":" + field["0"].destino + ":"
417								+ field["0"].origen + ":" + field["0"].fecha + ":" + field["0"].tipoOferta
418								+ ":" + field["0"].precio + ":"
419								+ (field["0"].tipoOferta == "P" ? "7" : "1") + "::" + field["0"].divisa;
420
421							divisa = field["0"].divisa;
422							precio = Math.round(field["0"].precio);
423
424							switch(divisa){
425								case "EUR":
426									divisa = "\u20AC";
427									$("#precio_"+codigo).html(precio + " " + divisa);
428									break;
429								case "GBP":
430									divisa = "\u00A3";
431									$("#precio_"+codigo).html(divisa + precio);
432									break;
433								case "USD":
434									divisa = "\u0024";
435									if(mcd == "MX" || mcd == "DO"){
436										$("#precio_"+codigo).html("US" + divisa + precio);
437									}else{
438										$("#precio_"+codigo).html(divisa + precio);
439									}
440									break;
441								case "DOP":
442									divisa = "\u0024";
443									$("#precio_"+codigo).html("RD" + divisa + precio);
444									break;
445								case "MEX":
446									divisa = "\u0024"
447									$("#precio_"+codigo).html(divisa + precio + "MXN");
448									break;
449							}
450							
451							$("#tipoOferta_"+codigo).html(window[field["0"].tipoOferta]);
452
453							url = "https://www.bahia-principe.com/booking/booking/Busqueda?idoferta=";
454							$("#reserva_"+codigo).attr({"href": url + encodeURIComponent(idOferta), "target": "_blank"});
455						}
456					});					
457				}			
458			});			
459		}	
460	}
461}
462
463Golf.UtagData = {
464	inicializar : function () {						
465		var incident = false;
466		var error = "";
467		if (pType == "Error"){			
468			incident = true;
469		}										
470		var moneda = "USD";
471		if ("WBP_ES,PT,IT,EU,EU_EST".indexOf(mcd) != -1){
472			moneda = "EUR";
473		} else if (mcd == "UK"){
474			moneda = "GBP";
475		} else if (mcd == "DO"){
476			moneda = "DOP";
477		} else if (mcd == "MX"){
478			moneda = "MXN";
479		}		
480		if (pType){
481			utag_data["page_type"] = pType.toLowerCase();
482		}
483		if (pName){
484			utag_data["page_name"] = pName.toLowerCase();
485		}
486		if (sl1){
487			utag_data["site_level_1"] = sl1.toLowerCase();
488		}		
489		if (sl2){
490			utag_data["site_level_2"] = sl2.toLowerCase();
491		}
492		if (sl3){
493			utag_data["site_level_3"] = sl3.toLowerCase();
494		}
495		if (typeof paisIp !== 'undefined' && paisIp != null) {
496			utag_data["customer_country_ip"] = paisIp;
497		}
498		if (typeof mcd !== 'undefined' && mcd != null) {		
499			utag_data["customer_market_ip"] = mcd;
500		}
501		utag_data["page_currency"] = moneda;
502		utag_data["page_language_code"] = gLang;				
503		utag_data["page_mode"] = "cliente";
504
505		if (incident){
506			utag_data["page_incident"] = incident;
507			utag_data["page_incident_category"] = "Server";
508			utag_data["page_incident_description"] = "Page not found";			
509		} else {
510			utag_data["page_incident"] = incident;
511		}	
512	}
513};
514
515Golf.setCookie = function (cname, cvalue, exdays, path, domain) {
516    var cookie = "";
517    if ( cname && cname.trim() && cvalue ) {
518        cookie = cookie + cname + "=" + cvalue;		
519		if ( domain ) {
520            cookie = cookie + "; " + "domain="+ domain;
521        }
522        if ( exdays ) {
523            var d = new Date();
524            d.setTime(d.getTime() + (exdays*24*60*60*1000));
525            cookie = cookie + "; " + "expires="+ d.toGMTString();
526        }
527        if ( path ) {
528            cookie = cookie + "; " + "path="+ path;
529        }
530        document.cookie = cookie;
531    }
532};
533
534$(document).ready(function(){
535	$(".c-cookies .close-msg").click(function(e) {
536		e.preventDefault();
537		Golf.setCookie('aceptaCookies', 'y', 90, '/', location.hostname);
538		$(".c-cookies").hide();
539	});	
540	$(".c-share__item, #compartir .c-social__icon").click(function(e) {				
541		var url = location.href;
542        e.preventDefault();	
543        var href = $(this).attr("href");	        	   	        	    
544		var winOptions = 'menubar=no, toolbar=no, resizable=yes, scrollbars=yes,';
545		window.open(href+escape(url), '', winOptions + 'height=450, width=600, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225)); 
546	});	
547	if ($("#form_inscripcion").length > 0) {
548		Golf.Formularios.Inscripcion.validarFormulario();	
549	}
550	if ($("#form_contacto").length > 0) {
551		
552		var countriesInfo = [ [ "Afghanistan (‫افغانستان‬‎)", "af", "93" ], [ "Albania (Shqipëri)", "al", "355" ], [ "Algeria (‫الجزائر‬‎)", "dz", "213" ], [ "American Samoa", "as", "1684" ], [ "Andorra", "ad", "376" ], [ "Angola", "ao", "244" ], [ "Anguilla", "ai", "1264" ], [ "Antigua and Barbuda", "ag", "1268" ], [ "Argentina", "ar", "54" ], [ "Armenia (Հայաստան)", "am", "374" ], [ "Aruba", "aw", "297" ], [ "Australia", "au", "61", 0 ], [ "Austria (Österreich)", "at", "43" ], [ "Azerbaijan (Azərbaycan)", "az", "994" ], [ "Bahamas", "bs", "1242" ], [ "Bahrain (‫البحرين‬‎)", "bh", "973" ], [ "Bangladesh (বাংলাদেশ)", "bd", "880" ], [ "Barbados", "bb", "1246" ], [ "Belarus (Беларусь)", "by", "375" ], [ "Belgium (België)", "be", "32" ], [ "Belize", "bz", "501" ], [ "Benin (Bénin)", "bj", "229" ], [ "Bermuda", "bm", "1441" ], [ "Bhutan (འབྲུག)", "bt", "975" ], [ "Bolivia", "bo", "591" ], [ "Bosnia and Herzegovina (Босна и Херцеговина)", "ba", "387" ], [ "Botswana", "bw", "267" ], [ "Brazil (Brasil)", "br", "55" ], [ "British Indian Ocean Territory", "io", "246" ], [ "British Virgin Islands", "vg", "1284" ], [ "Brunei", "bn", "673" ], [ "Bulgaria (България)", "bg", "359" ], [ "Burkina Faso", "bf", "226" ], [ "Burundi (Uburundi)", "bi", "257" ], [ "Cambodia (កម្ពុជា)", "kh", "855" ], [ "Cameroon (Cameroun)", "cm", "237" ], [ "Canada", "ca", "1", 1, [ "204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905" ] ], [ "Cape Verde (Kabu Verdi)", "cv", "238" ], [ "Caribbean Netherlands", "bq", "599", 1 ], [ "Cayman Islands", "ky", "1345" ], [ "Central African Republic (République centrafricaine)", "cf", "236" ], [ "Chad (Tchad)", "td", "235" ], [ "Chile", "cl", "56" ], [ "China (中国)", "cn", "86" ], [ "Christmas Island", "cx", "61", 2 ], [ "Cocos (Keeling) Islands", "cc", "61", 1 ], [ "Colombia", "co", "57" ], [ "Comoros (‫جزر القمر‬‎)", "km", "269" ], [ "Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)", "cd", "243" ], [ "Congo (Republic) (Congo-Brazzaville)", "cg", "242" ], [ "Cook Islands", "ck", "682" ], [ "Costa Rica", "cr", "506" ], [ "Côte d’Ivoire", "ci", "225" ], [ "Croatia (Hrvatska)", "hr", "385" ], [ "Cuba", "cu", "53" ], [ "Curaçao", "cw", "599", 0 ], [ "Cyprus (Κύπρος)", "cy", "357" ], [ "Czech Republic (Česká republika)", "cz", "420" ], [ "Denmark (Danmark)", "dk", "45" ], [ "Djibouti", "dj", "253" ], [ "Dominica", "dm", "1767" ], [ "Dominican Republic (República Dominicana)", "do", "1", 2, [ "809", "829", "849" ] ], [ "Ecuador", "ec", "593" ], [ "Egypt (‫مصر‬‎)", "eg", "20" ], [ "El Salvador", "sv", "503" ], [ "Equatorial Guinea (Guinea Ecuatorial)", "gq", "240" ], [ "Eritrea", "er", "291" ], [ "Estonia (Eesti)", "ee", "372" ], [ "Ethiopia", "et", "251" ], [ "Falkland Islands (Islas Malvinas)", "fk", "500" ], [ "Faroe Islands (Føroyar)", "fo", "298" ], [ "Fiji", "fj", "679" ], [ "Finland (Suomi)", "fi", "358", 0 ], [ "France", "fr", "33" ], [ "French Guiana (Guyane française)", "gf", "594" ], [ "French Polynesia (Polynésie française)", "pf", "689" ], [ "Gabon", "ga", "241" ], [ "Gambia", "gm", "220" ], [ "Georgia (საქართველო)", "ge", "995" ], [ "Germany (Deutschland)", "de", "49" ], [ "Ghana (Gaana)", "gh", "233" ], [ "Gibraltar", "gi", "350" ], [ "Greece (Ελλάδα)", "gr", "30" ], [ "Greenland (Kalaallit Nun
552aat)", "gl", "299" ], [ "Grenada", "gd", "1473" ], [ "Guadeloupe", "gp", "590", 0 ], [ "Guam", "gu", "1671" ], [ "Guatemala", "gt", "502" ], [ "Guernsey", "gg", "44", 1 ], [ "Guinea (Guinée)", "gn", "224" ], [ "Guinea-Bissau (Guiné Bissau)", "gw", "245" ], [ "Guyana", "gy", "592" ], [ "Haiti", "ht", "509" ], [ "Honduras", "hn", "504" ], [ "Hong Kong (香港)", "hk", "852" ], [ "Hungary (Magyarország)", "hu", "36" ], [ "Iceland (Ísland)", "is", "354" ], [ "India (भारत)", "in", "91" ], [ "Indonesia", "id", "62" ], [ "Iran (‫ایران‬‎)", "ir", "98" ], [ "Iraq (‫العراق‬‎)", "iq", "964" ], [ "Ireland", "ie", "353" ], [ "Isle of Man", "im", "44", 2 ], [ "Israel (‫ישראל‬‎)", "il", "972" ], [ "Italy (Italia)", "it", "39", 0 ], [ "Jamaica", "jm", "1", 4, [ "876", "658" ] ], [ "Japan (日本)", "jp", "81" ], [ "Jersey", "je", "44", 3 ], [ "Jordan (‫الأردن‬‎)", "jo", "962" ], [ "Kazakhstan (Казахстан)", "kz", "7", 1 ], [ "Kenya", "ke", "254" ], [ "Kiribati", "ki", "686" ], [ "Kosovo", "xk", "383" ], [ "Kuwait (‫الكويت‬‎)", "kw", "965" ], [ "Kyrgyzstan (Кыргызстан)", "kg", "996" ], [ "Laos (ລາວ)", "la", "856" ], [ "Latvia (Latvija)", "lv", "371" ], [ "Lebanon (‫لبنان‬‎)", "lb", "961" ], [ "Lesotho", "ls", "266" ], [ "Liberia", "lr", "231" ], [ "Libya (‫ليبيا‬‎)", "ly", "218" ], [ "Liechtenstein", "li", "423" ], [ "Lithuania (Lietuva)", "lt", "370" ], [ "Luxembourg", "lu", "352" ], [ "Macau (澳門)", "mo", "853" ], [ "Macedonia (FYROM) (Македонија)", "mk", "389" ], [ "Madagascar (Madagasikara)", "mg", "261" ], [ "Malawi", "mw", "265" ], [ "Malaysia", "my", "60" ], [ "Maldives", "mv", "960" ], [ "Mali", "ml", "223" ], [ "Malta", "mt", "356" ], [ "Marshall Islands", "mh", "692" ], [ "Martinique", "mq", "596" ], [ "Mauritania (‫موريتانيا‬‎)", "mr", "222" ], [ "Mauritius (Moris)", "mu", "230" ], [ "Mayotte", "yt", "262", 1 ], [ "Mexico (México)", "mx", "52" ], [ "Micronesia", "fm", "691" ], [ "Moldova (Republica Moldova)", "md", "373" ], [ "Monaco", "mc", "377" ], [ "Mongolia (Монгол)", "mn", "976" ], [ "Montenegro (Crna Gora)", "me", "382" ], [ "Montserrat", "ms", "1664" ], [ "Morocco (‫المغرب‬‎)", "ma", "212", 0 ], [ "Mozambique (Moçambique)", "mz", "258" ], [ "Myanmar (Burma) (မြန်မာ)", "mm", "95" ], [ "Namibia (Namibië)", "na", "264" ], [ "Nauru", "nr", "674" ], [ "Nepal (नेपाल)", "np", "977" ], [ "Netherlands (Nederland)", "nl", "31" ], [ "New Caledonia (Nouvelle-Calédonie)", "nc", "687" ], [ "New Zealand", "nz", "64" ], [ "Nicaragua", "ni", "505" ], [ "Niger (Nijar)", "ne", "227" ], [ "Nigeria", "ng", "234" ], [ "Niue", "nu", "683" ], [ "Norfolk Island", "nf", "672" ], [ "North Korea (조선 민주주의 인민 공화국)", "kp", "850" ], [ "Northern Mariana Islands", "mp", "1670" ], [ "Norway (Norge)", "no", "47", 0 ], [ "Oman (‫عُمان‬‎)", "om", "968" ], [ "Pakistan (‫پاکستان‬‎)", "pk", "92" ], [ "Palau", "pw", "680" ], [ "Palestine (‫فلسطين‬‎)", "ps", "970" ], [ "Panama (Panamá)", "pa", "507" ], [ "Papua New Guinea", "pg", "675" ], [ "Paraguay", "py", "595" ], [ "Peru (Perú)", "pe", "51" ], [ "Philippines", "ph", "63" ], [ "Poland (Polska)", "pl", "48" ], [ "Portugal", "pt", "351" ], [ "Puerto Rico", "pr", "1", 3, [ "787", "939" ] ], [ "Qatar (‫قطر‬‎)", "qa", "974" ], [ "Réunion (La Réunion)", "re", "262", 0 ], [ "Romania (România)", "ro", "40" ], [ "Russia (Россия)", "ru", "7", 0 ], [ "Rwanda", "rw", "250" ], [ "Saint Barthélemy", "bl", "590", 1 ], [ "Saint Helena", "sh", "290" ], [ "Saint Kitts and Nevis", "kn", "1869" ], [ "Saint Lucia", "lc", "1758" ], [ "Saint Martin (Saint-Martin (partie française))", "mf", "590", 2 ], [ "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)", "pm", "508" ], [ "Saint Vincent and the Grenadines", "vc", "1784" ], [ "Samoa", "ws", "685" ], [ "San Marino", "sm", "378" ], [ "São Tomé and Príncipe (São Tomé e Príncipe)", "st", "239" ], [ "Saudi Arabia (‫المملكة العربية السعودية‬‎)", "sa", "966" ], [ "Senegal (Sénégal)", "sn", "221" ], [ "Serbia (Србија)", "rs", "381" ], [ "Seychelles", "sc", "248" ], [ "Sierra Leone", "sl", "232" ], [ "Singapore", "sg", "65" ], [ "Sint Maarten", "sx", "1721" ], [ "Slovakia (Slovensko)", "sk", "421" ], [ "Slovenia (Slovenija)", "si", "386" ], [ "Solomon Islands", "sb", "677" ], [ "Somalia (Soomaaliya)", "so", "252" ], [ "South Africa", "za", "27" ], [ "South Korea (대한민국)", "kr", "82" ], [ "South Sudan (‫جنوب السودان‬‎)", "ss", "211" ], [ "Spain (España)", "es", "34" ], [ "Sri Lanka (ශ්‍රී ලංකාව)", "lk", "94" ], [ "Sudan (‫السودان‬‎)", "sd", "249" ], [ "Suriname", "sr", "597" ], [ "Svalbard and Jan Mayen", "sj", "47", 1 ], [ "Swaziland", "sz", "268" ], [ "Sweden (Sverige)", "se", "46" ], [ "Switzerland (Schweiz)", "ch", "41" ], [ "Syria (‫سوريا‬‎)", "sy", "963" ], [ "Taiwan (台灣)", "tw", "886" ], [ "Tajikistan", "tj", "992" ], [ "Tanzania", "tz", "255" ], [ "Thailand (ไทย)", "th", "66" ], [ "Timor-Leste", "tl", "670" ], [ "Togo", "tg", "228" ], [ "Tokelau", "tk", "690" ], [ "Tonga", "to", "676" ], [ "Trinidad and Tobago", "tt", "1868" ], [ "Tunisia (‫تونس‬‎)", "tn", "216" ], [ "Turkey (Türkiye)", "tr", "90" ], [ "Turkmenistan", "tm", "993" ], [ "Turks and Caicos Islands", "tc", "1649" ], [ "Tuvalu", "tv", "688" ], [ "U.S. Virgin Islands", "vi", "1340" ], [ "Uganda", "ug", "256" ], [ "Ukraine (Україна)", "ua", "380" ], [ "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)", "ae", "971" ], [ "United Kingdom", "gb", "44", 0 ], [ "United States", "us", "1", 0 ], [ "Uruguay", "uy", "598" ], [ "Uzbekistan (Oʻzbekiston)", "uz", "998" ], [ "Vanuatu", "vu", "678" ], [ "Vatican City (Città del Vaticano)", "va", "39", 1 ], [ "Venezuela", "ve", "58" ], [ "Vietnam (Việt Nam)", "vn", "84" ], [ "Wallis and Futuna (Wallis-et-Futuna)", "wf", "681" ], [ "Western Sahara (‫الصحراء الغربية‬‎)", "eh", "212", 1 ], [ "Yemen (‫اليمن‬‎)", "ye", "967" ], [ "Zambia", "zm", "260" ], [ "Zimbabwe", "zw", "263" ], [ "Åland Islands", "ax", "358", 1 ] ];
553		        
554		
555		Golf.Formularios.prefijosTel(countriesInfo);
556		Golf.Formularios.obtenerPaises("#form_contacto");
557		Golf.Formularios.Contacto.validarFormulario();					
558	}
559	if ($("#form_newsletter").length > 0) {
560		Golf.Formularios.Newsletter.validarFormulario();	
561	}
562	Golf.UtagData.inicializar();
563});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.