var pagesinternationales=function(n,t,i){"use strict";var u=null,f=null,e=null,o=null,s="mapcard",h=null,r=function(n){return n===null||n===undefined||n.length===0?!0:!1},c=function(n,t){return t?o.replace("666",n):e.replace("--code--",n)},l=function(t,i,r,u){if(t&&i&&r){var e=Date.now()/1e3|0,f={gps:{latitude:t,longitude:i},googleApiKey:r},o="https://maps.googleapis.com/maps/api/timezone/json?location={lat},{long}&timestamp={time}&key={key}".replace("{long}",f.gps.longitude).replace("{lat}",f.gps.latitude).replace("{time}",e).replace("{key}",f.googleApiKey);n.ajax({url:o,success:function(n){var t=new Date,i=t.getTime()/1e3+t.getTimezoneOffset()*60,r=n.rawOffset*1e3+n.dstOffset*1e3,f=new Date(i*1e3+r),e=f.toLocaleTimeString("fr-FR").replace(/\u200E/g,"").substring(0,5).replace(":","h");u.find(".localTime")[0].innerHTML=e;u.find(".utc")[0].innerHTML=(n.rawOffset<0?"":"+")+(n.dstOffset/3600+n.rawOffset/3600)},error:function(){u.find(".timezone").hide()}})}else u.find(".timezone").hide();return""},a=function(n){return n.length>0?n.map(function(n){var t=c(n.Code,n.PageType===1);return n.HasPublishedPagePays?'<a href="'+t+'">'+n.Libelle+"<\/a>":n.Libelle}).join(" • "):""},v=function(n){var t=n.IsRpDp?n.BureauId:n.PaysCode;return'<div class="map-info-content"><div><p class="timezone" class="date">Il est actuellement <span class="localTime"><\/span> pour ce bureau (UTC <span class="utc"><\/span>)<\/p><p>   <strong>'+n.BureauLibelle+"<\/strong><br />"+(n.IsRpDp?"":"Zones de compétences : "+a(n.Zones))+'<\/p><div class="post-address">   <span><i class="material-icons md-circle md-default" aria-hidden="true">business<\/i><\/span><span>'+(r(n.BureauAddress1)?"":n.BureauAddress1+"<br />")+(r(n.BureauAddress2)?"":n.BureauAddress2+"<br />")+(n.VilleLibelle||"")+" "+(n.PaysLibelle||"")+"<\/span><\/div>"+(r(n.BureauTel)?"":'<div class="post-mobile"><span><i class="material-icons md-circle md-default" aria-hidden="true">phone_iphone<\/i>'+n.BureauTel+"<\/span><\/div>")+(n.DisplayFormulaireContact?'<div class="post-link"><span><i class="material-icons md-circle md-default" aria-hidden="true">mail<\/i><\/span> <a href="'+f.replace("666",n.BureauId)+'">Contacter<\/a><\/div>':"")+(n.HasPageInternationale?'<p><a href="'+c(t,n.IsRpDp)+'" class="btn btn-lg btn-rounded btn-default">Accéder à la page<\/a><\/p>':"")+"<\/div><\/div><!-- .map-info-content -->"},y=function(t){var i="#"+s+t;n.get(u.replace("666",t),function(t){var r=v(t);n(i).find(".map-info-content").replaceWith(r);l(t.Latitude,t.Longitude,h,n(i))})},p=function(n){var t=n.bureau;return'<div class="map-info" id="'+s+t.BureauId+'">'+(t.IsRpDp?"":'<div class="map-info-title">'+t.PaysLibelle+"<\/div>")+'<div class="map-info-content"><div><p>   <strong>'+t.BureauLibelle+'<\/strong><br />   <i class="fa fa-spinner fa-spin bureau-spinner"><\/i><\/p><\/div><\/div><!-- .map-info-content --><\/div><!-- .map-info -->'},w=function(n){var s,t,a,c,w,l;u=n.bureauApiUrl;f=n.contactBureauUrl;e=n.pageInternationalPaysUrl;o=n.pageInternationalRdPdUrl;h=n.googleKey;var v={zoom:2.1,center:{lat:45,lng:0},mapTypeId:google.maps.MapTypeId.ROADMAP,styles:[{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative",stylers:[{visibility:"off"},{weight:1}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#d9e2c9"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{weight:3}]},{featureType:"administrative.country",stylers:[{color:"#a9b1a1"}]},{featureType:"administrative.country",elementType:"geometry.fill",stylers:[{color:"#d9e2c9"},{visibility:"on"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#b9c4c0"},{visibility:"on"},{weight:1}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#50544b"}]},{featureType:"administrative.country",elementType:"labels.text.stroke",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"geometry",stylers:[{visibility:"on"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#d9e2c9"},{visibility:"on"}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{visibility:"off"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{visibility:"off"}]},{featureType:"landscape.natural",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"landscape.natural.landcover",stylers:[{color:"#d9e2c9"}]},{featureType:"landscape.natural.landcover",elementType:"geometry.fill",stylers:[{color:"#d9e2c9"},{visibility:"on"}]},{featureType:"landscape.natural.landcover",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"landscape.natural.terrain",elementType:"geometry.fill",stylers:[{visibility:"off"}]},{featureType:"landscape.natural.terrain",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#aacbf1"}]},{featureType:"water",elementType:"geometry.stroke",stylers:[{visibility:"off"}]}]},i=new google.maps.Map(document.getElementById("map_canvas"),v),r=new OverlappingMarkerSpiderfier(i);for(r.addListener("format",function(n,t){var r=t==OverlappingMarkerSpiderfier.markerStatus.SPIDERFIED?"Content/Images/public/map/marker.png":t==OverlappingMarkerSpiderfier.markerStatus.SPIDERFIABLE?"Content/Images/public/map/marker-plus.png":t==OverlappingMarkerSpiderfier.markerStatus.UNSPIDERFIABLE?"Content/Images/public/map/marker.png":null,i=new google.maps.Size(23,32);n.setIcon({url:r,size:i,scaledSize:i})}),s=[],t=0;t<n.bureaux.length;t++)a={position:new google.maps.LatLng(n.bureaux[t].Latitude,n.bureaux[t].Longitude),title:n.bureaux[t].VilleLibelle,bureau:n.bureaux[t]},c=new google.maps.Marker(a),s.push(c),r.addMarker(c);w=new MarkerClusterer(i,s,{maxZoom:3,styles:[{height:53,url:"Content/Images/public/map/m1.png",width:53,textColor:"#ffffff"},{height:56,url:"Content/Images/public/map/m2.png",width:56,textColor:"#ffffff"},{height:66,url:"Content/Images/public/map/m3.png",width:66,textColor:"#ffffff"},{height:78,url:"Content/Images/public/map/m4.png",width:78,textColor:"#ffffff"},{height:90,url:"Content/Images/public/map/m5.png",width:90,textColor:"#ffffff"}],imagePath:"~/Content/Images/public/map/marker-clusterer"});l=new google.maps.InfoWindow;r.addListener("click",function(n){l.setContent(p(n));l.open(i,n);y(n.bureau.BureauId)})};return i.initializeMap=w,i}(jQuery,window,pagesinternationales||{}),pagesinternationales=function(n,t,i){"use strict";var r=function(t,i){var r=n(t),u=n(i),f=n(i+" button");r.on("change",function(){n(this).val()?(f.removeAttr("disabled"),n.isNumeric(n(this).val())?u.attr("action",n(this).data("urlrpdp").replace("1234",n(this).val())):u.attr("action",n(this).data("urlpays").replace("--code--",n(this).val()))):f.attr("disabled","disabled")});r.length!==0&&(r.select2({theme:"bootstrap"}),r.trigger("change"))};return i.initializeNavPays=r,i}(jQuery,window,pagesinternationales||{}),pagesinternationales=function(n,t,i){"use strict";var r,u=function(t){var f=Date.now()/1e3|0,i,u;t&&t.latitude&&t.longitude&&r&&(i="https://maps.googleapis.com/maps/api/timezone/json?location={lat},{long}&timestamp={time}&key={key}",u=i.replace("{long}",t.longitude).replace("{lat}",t.latitude).replace("{time}",f).replace("{key}",r),n.ajax({url:u,bureauId:t.bureauId,success:function(t){var i=n("#contact-"+this.bureauId),u=i.find(".timezone"),f=i.find(".utc"),e=i.find(".date"),r=new Date,o=r.getTime()/1e3+r.getTimezoneOffset()*60,s=t.rawOffset*1e3+t.dstOffset*1e3,h=new Date(o*1e3+s);u[0].innerHTML=h.toLocaleTimeString("fr-FR").replace(/\u200E/g,"").substr(0,5).replace(":","h");f[0].innerHTML=(t.rawOffset<0?"":"+")+(t.dstOffset/3600+t.rawOffset/3600);e.removeClass("hide")}}))},f=function(t){var i=t.gpsData;r=t.googleApiKey;n.each(i,function(){u(this)})};return i.initializeLocalTime=f,i}(jQuery,window,pagesinternationales||{})