(function() { var loadScript = function (url, callback) { var script = document.createElement("script"); script.type = "text/javascript"; script.src = url; if (script.readyState) { script.onreadystatechange = function () { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { script.onload = function () { callback(); }; } document.getElementsByTagName("head")[0].appendChild(script); }; var loadLeafletLib = function($) { "use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t){i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,i)}return n}function c(e){for(var t=1;t\n
\n

").concat(this.i18n.chronoprecise.title,"

\n

").concat(this.i18n.chronoprecise.content,"
\n ").concat(this.i18n.chronoprecise.content2,"

\n
\n \n "));$("body").append(''));$("body").append('
'));var c=$("#".concat(this.refList.selectRelay));c.closest(".section__content").prepend(c.closest(".content-box"));c.closest(".content-box").css("position","relative");c.closest(".content-box").css("z-index",this.zindex+1);$("#".concat(this.refList.chronoPreciseRdvBouton)).on("click",function(){$("#".concat(n.refList.chronoOverlay)).show();$("#".concat(n.refList.chronoPreciseContent)).show();if(n.preciseDeliverySlots.length){return}$.ajax({url:"".concat(n.deliverySlotUrl,"/searchDeliverySlot"),type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify({shop:n.shopId,checkoutToken:n.checkoutToken,shippingRateCode:n.shippingRateCode,shippingAddress:n.shippingAddress}),success:function t(e){n.preciseDeliverySlots=e.slots;n.preciseCustomData=e.customData;$("#".concat(n.refList.chronoPreciseContent)).html(e.html);$("#".concat(n.refList.chronoPreciseContent," #").concat(n.refList.chronoPreciseNav," .prev")).hide();$("#".concat(n.refList.chronoPreciseContent," section")).first().show();n.bindPreciseAction()}})});return}if(this.relayCode.includes(o)){Shopify.Checkout.OrderStatus.addContentBox("
\n
\n

").concat(this.i18n.mapcheckout.contentbox.title,"

\n

").concat(this.i18n.mapcheckout.contentbox.content,"
\n ").concat(this.i18n.mapcheckout.contentbox.content2,"

\n
\n \n
"));var r=!this.relayCodeMapping[o]?'\n
\n \n
\n
'):"";$("body").append('"));$("body").append('
'));$("#".concat(this.refList.chronoListSearch,"-street")).val(this.shippingAddress.address1);$("#".concat(this.refList.chronoListSearch,"-zipcode")).val(this.shippingAddress.zip);$("#".concat(this.refList.chronoListSearch,"-city")).val(this.shippingAddress.city);$("#".concat(this.refList.buttonOpenSelectRelay)).hide();this.$.ajax({url:"".concat(this.relayUrl,"/relay/check"),type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify({shop:this.shopId,checkoutToken:this.checkoutToken}),success:function t(e){$("#".concat(n.refList.buttonOpenSelectRelay)).show();if(e){n.selectedRelay=e;n.showSelectedRelay()}}});this.bindAction();this.launchSearch();e()}}}},{key:"showConfirmRelayData",value:function t(){$("#".concat(this.refList.chronoListContainerConfirm,"__content span")).html(this.getMarkerInfoContent(this.selectedRelay));$("#".concat(this.refList.chronoListContainerConfirm,"__overlay")).show();$("#".concat(this.refList.chronoListContainerConfirm)).show()}},{key:"bindAction",value:function t(){var e=this;var $=this.$;var n=this;var i=$("#".concat(this.refList.selectRelay));i.closest(".section__content").prepend(i.closest(".content-box"));i.closest(".content-box").css("position","relative");i.closest(".content-box").css("z-index",this.zindex+1);$("#".concat(this.refList.chronoMap)).unbind();$("#".concat(this.refList.chronoMap)).on("contextmenu",function(t){$("#".concat(e.refList.chronoMapContextMenu)).css({top:t.pageY-$(window).scrollTop()+"px",left:t.pageX+"px"}).show();return false});$("#".concat(this.refList.chronoMap)).on("mousedown",function(t){if(e.refList.chronoMapContextMenuSearchNear===$(t.target).attr("id")){e.launchSearch(true)}switch(t.which){case 3:break;default:$("#".concat(e.refList.chronoMapContextMenu)).hide()}});$("#".concat(this.refList.buttonOpenSelectRelay)).unbind();$("#".concat(this.refList.buttonOpenSelectRelay)).on("click",function(){$("#".concat(e.refList.chronoMapContainer)).show();e.invalidateSize()});$("#".concat(this.refList.chronoMapCloseContainer)).unbind();$("#".concat(this.refList.chronoMapCloseContainer)).on("click",function(){$("#".concat(e.refList.chronoMapContainer)).hide()});$(".".concat(this.refList.relayItem)).unbind();$(".".concat(this.refList.relayItem)).on("click",function(){if(!$(this).find(".".concat(n.refList.relayHours)).is(":visible")){$(".".concat(n.refList.relayItem)).removeClass("open");$(".".concat(n.refList.relayItem," .").concat(n.refList.relayHours)).slideUp(100);$(this).addClass("open");$(this).find(".".concat(n.refList.relayHours)).slideDown(100)}n.centerLeafletMapOnMarker(n.markers[$(this).attr("id")])});$(".".concat(this.refList.buttonSelectRelay)).unbind();$(".".concat(this.refList.buttonSelectRelay)).on("click",function(){var e=$(this).closest(".".concat(n.refList.relayItem)).attr("id");var t=n.relayList.find(function(t){return t.identifiant===e});if(t){n.selectedRelay=t;n.showConfirmRelayData()}});$("#".concat(this.refList.chronoListContainerConfirm,"__content-action #valid-relay")).unbind();$("#".concat(this.refList.chronoListContainerConfirm,"__content-action #valid-relay")).on("click",function(){n.setRelayPoint()});$("#".concat(this.refList.chronoListContainerConfirm,"__content-action #cancel-relay")).unbind();$("#".concat(this.refList.chronoListContainerConfirm,"__content-action #cancel-relay")).on("click",function(){n.selectedRelay=null;$("#".concat(n.refList.chronoListContainerConfirm,"__overlay")).hide();$("#".concat(n.refList.chronoListContainerConfirm)).hide()});$("#".concat(this.refList.chronoListSearch,"-launch")).unbind();$("#".concat(this.refList.chronoListSearch,"-launch")).on("click",function(){n.launchSearch()})}},{key:"bindMapPopup",value:function t(){var $=this.$;var n=this;$(".".concat(this.refList.buttonSelectRelayMap)).unbind();$(".".concat(this.refList.buttonSelectRelayMap)).on("click",function(){var e=$(this).attr("id").split("-")[1];var t=n.relayList.find(function(t){return t.identifiant===e});if(t){n.selectedRelay=t;n.showConfirmRelayData()}})}},{key:"bindPreciseAction",value:function t(){var i=this;var $=this.$;var e=this;$("#".concat(this.refList.chronoPreciseNav," .next")).unbind();$("#".concat(this.refList.chronoPreciseNav," .prev")).unbind();$("#".concat(this.refList.chronoPreciseCancel)).unbind();$("#".concat(this.refList.chronoPreciseValid)).unbind();$(".".concat(this.refList.chronoPreciseRadio)).unbind();$("#".concat(this.refList.chronoPreciseNav," .next")).on("click",function(){$("#".concat(i.refList.chronoPreciseNav," .next")).hide();$("#".concat(i.refList.chronoPreciseNav," .prev")).show();$("#".concat(i.refList.chronoPreciseContent," section")).first().hide();$("#".concat(i.refList.chronoPreciseContent," section")).last().show()});$("#".concat(this.refList.chronoPreciseNav," .prev")).on("click",function(){$("#".concat(i.refList.chronoPreciseNav," .prev")).hide();$("#".concat(i.refList.chronoPreciseNav," .next")).show();$("#".concat(i.refList.chronoPreciseContent," section")).first().show();$("#".concat(i.refList.chronoPreciseContent," section")).last().hide()});$("#".concat(this.refList.chronoPreciseCancel)).on("click",function(){$("#".concat(i.refList.chronoPreciseContent)).hide()});$("#".concat(this.refList.chronoPreciseValid)).on("click",function(){var n=$("input[name=".concat(i.refList.chronoPreciseRadio,"]:checked"));var e=n.val();var t=i.preciseDeliverySlots.find(function(t){return t.deliverySlotCode===e});if(!t){return}$.ajax({url:"".concat(i.deliverySlotUrl,"/confirmDeliverySlot"),type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(c(c({shop:i.shopId,checkoutToken:i.checkoutToken,shippingRateCode:i.shippingRateCode,shippingAddress:i.shippingAddress},t),i.preciseCustomData)),success:function t(e){if(e.code===0){$("#".concat(i.refList.chronoPreciseContent)).hide();$("#".concat(i.refList.chronoOverlay)).hide();i.showSelectedRdv(n.data("delivery"))}else{$("#".concat(i.refList.chronoPreciseError)).html(i.i18n.chronoprecise.error)}}})});$("input[name=".concat(this.refList.chronoPreciseRadio,"]")).on("change",function(){$("#".concat(e.refList.chronoPreciseValid)).prop("disabled",false)})}},{key:"launchSearch",value:function t(e){var n=this;$("#".concat(this.refList.chronoList)).html("");$("#".concat(this.refList.chronoListContainer," .chronopost-lds-roller")).show();var i=e?{lat:this.currentLonLat.lat,lng:this.currentLonLat.lng}:{zipCode:$("#".concat(this.refList.chronoListSearch,"-zipcode")).val(),city:$("#".concat(this.refList.chronoListSearch,"-city")).val(),street:$("#".concat(this.refList.chronoListSearch,"-street")).val()};var o=[];$("#".concat(this.refList.chronoListSearch,"-error")).html("");if(!e){if(!i.zipCode){o.push(this.i18n.mapcheckout.mapcontent.search.errorzipcoderequired)}if(i.zipCode.length<4){o.push(this.i18n.mapcheckout.mapcontent.search.errorzipcode)}if(!i.city){o.push(this.i18n.mapcheckout.mapcontent.search.errorcityrequired)}}if(o.length){$("#".concat(this.refList.chronoListSearch,"-error")).html(o.join("
"));$("#".concat(this.refList.chronoListContainer," .chronopost-lds-roller")).hide();return}this.$.ajax({url:"".concat(this.relayUrl,"/search"),type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(c({shop:this.shopId,checkoutToken:this.checkoutToken,shippingRateCode:this.shippingRateCode,shippingAddress:this.shippingAddress},i)),success:function t(e){if(e){n.relayList=e;n.relayList.sort(function(t,e){return t.distanceEnMetree.distanceEnMetre?1:0});n.relayList.forEach(function(t){t.listeHoraireOuverture.sort(function(t,e){return e.jour===7?1:t.joure.jour?1:0})});if(n.relayMap){n.createdTabbedMarkerList()}}n.generateRelayList()}})}},{key:"setRelayPoint",value:function t(){var n=this;$("#".concat(this.refList.chronoListContainer," .chronopost-lds-roller")).show();this.$.ajax({url:"".concat(this.relayUrl,"/setRelayPoint"),type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(c({shop:this.shopId,checkoutToken:this.checkoutToken,shippingRateCode:this.shippingRateCode},this.selectedRelay)),success:function t(e){n.showSelectedRelay()}})}},{key:"generateRelayList",value:function t(){var e=this;var $=this.$;var n="";this.relayList.forEach(function(t){n+="\n
\n
\n
\n
").concat(t.nom," (").concat(t.distanceEnMetre," m)
\n
").concat(t.adresse1,"
\n
").concat(t.codePostal," - ").concat(t.localite,"
\n
\n
\n \n
\n
\n ").concat(e.getHoursTab(t),"\n
\n ")});$("#".concat(this.refList.chronoList)).html(n);$("#".concat(this.refList.chronoListContainer," .chronopost-lds-roller")).hide();this.bindAction()}},{key:"createMap",value:function t(){if($("#".concat(this.refList.chronoMap)).length){var e=this;this.relayMap=L.map(this.refList.chronoMap).setView([48.819241,2.328623],12);$("#".concat(this.refList.chronoMap," .chronopost-lds-roller")).hide();this.markers=[];this.markerGroup=L.featureGroup();this.markerGroup.addTo(this.relayMap);L.tileLayer("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",{attribution:'données © OpenStreetMap/ODbL - rendu OSM France',minZoom:1,maxZoom:20}).addTo(this.relayMap);if(this.relayList){this.createdTabbedMarkerList()}this.relayMap.on("mousedown",function(t){e.currentLonLat.lat=t.latlng.lat.toString();e.currentLonLat.lng=t.latlng.lng.toString()});this.invalidateSize()}else{$("#".concat(this.refList.chronoMapContainer)).css("right","auto");$("#".concat(this.refList.chronoListContainer)).css("width","100%")}}},{key:"invalidateSize",value:function t(){if(this.relayMap){this.relayMap.invalidateSize(true);if(this.relayList.length){this.relayMap.fitBounds(this.markerGroup.getBounds(),{padding:[50,50]})}}}},{key:"createdTabbedMarkerList",value:function t(){var o=this;this.markerGroup.clearLayers();this.relayList.forEach(function(t){var e=L.marker([t.coordGeolocalisationLatitude,t.coordGeolocalisationLongitude],{icon:L.icon({iconUrl:o.iconUrl,iconSize:[79,84]})});var n=t.identifiant;var i="\n
\n ".concat(o.getMarkerInfoContent(t),"\n
").concat(o.i18n.mapcheckout.mapcontent.relaylist.hourstitle,"
\n ").concat(o.getHoursTab(t),"\n
").concat(o.i18n.mapcheckout.mapcontent.relaylist.selectrelaymap," >>
\n
\n ");o.markers[n]=e;e.bindPopup(i).on("click",function(){o.bindMapPopup()});o.markerGroup.addLayer(e)});this.invalidateSize()}},{key:"getMarkerInfoContent",value:function t(e){return"\n
\n ".concat(e.nom,"\n
\n
\n ").concat(e.adresse1," \n
\n
\n ").concat(e.codePostal," - ").concat(e.localite,"\n
\n ")}},{key:"centerLeafletMapOnMarker",value:function t(e){if(this.relayMap){var n=[e.getLatLng()];var i=L.latLngBounds(n);this.relayMap.fitBounds(i,{maxZoom:this.relayMap.getZoom()});e.openPopup();this.bindMapPopup()}}},{key:"getHoursTab",value:function t(e){var n=this;var i="";var o=[this.i18n.mapcheckout.days["0"],this.i18n.mapcheckout.days["1"],this.i18n.mapcheckout.days["2"],this.i18n.mapcheckout.days["3"],this.i18n.mapcheckout.days["4"],this.i18n.mapcheckout.days["5"],this.i18n.mapcheckout.days["6"]];e.listeHoraireOuverture.forEach(function(t){i+="\n
\n
").concat(o[t.jour-1],"
\n
").concat(t.horairesAsString?t.horairesAsString:"Fermé","
\n
\n ")});return"
").concat(i,"
")}},{key:"showSelectedRelay",value:function t(){var $=this.$;var e="\n

".concat(this.i18n.mapcheckout.contentbox.youchoose,"

\n ").concat(this.getMarkerInfoContent(this.selectedRelay),"\n
\n
").concat(this.i18n.mapcheckout.contentbox.showhours,"
\n ").concat(this.getHoursTab(this.selectedRelay),"\n
\n ");$("#".concat(this.refList.chronoListContainer," .chronopost-lds-roller")).hide();$("#".concat(this.refList.chronoMapContainer)).hide();$("#".concat(this.refList.chronoListContainerConfirm,"__overlay")).hide();$("#".concat(this.refList.chronoListContainerConfirm)).hide();this.blockRelayChange?$("#".concat(this.refList.buttonOpenSelectRelay)).remove():$("#".concat(this.refList.buttonOpenSelectRelay));$("#".concat(this.refList.buttonOpenSelectRelay));$("#".concat(this.refList.chronoOverlay)).hide();$("#".concat(this.refList.selectedRelayContent)).html(e);var n=$("#".concat(this.refList.selectedRelayContentShowHours)).find(".".concat(this.refList.relayHours));n.hide();$("#".concat(this.refList.selectedRelayContentShowHours)).unbind();$("#".concat(this.refList.selectedRelayContentShowHours)).on("click",function(){n.is(":visible")?n.slideUp(100):n.slideDown(100)})}},{key:"showSelectedRdv",value:function t(e){var n="\n

".concat(this.i18n.chronoprecise.youchoose,"

\n
").concat(e,"
\n ");$("#".concat(this.refList.selectedRelayContent)).html(n)}},{key:"lon2tile",value:function t(e,n){return Math.floor((e+180)/360*Math.pow(2,n))}},{key:"lat2tile",value:function t(e,n){return Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,n))}}]);return ChronopostMap}();; var chronopostMap = new ChronopostMap($, {baseUrl : "https://files.chronopost.fr/api", rateProvider : "Chronopost Rate Provider", relay: "/chronopostPointRelais", deliverySlot: "/chronopostCreneau", relayCode: ["86","49","4P","5X","6B"], relayCodeMapping: {"86":0}, icon: "/chronopostMapProvider/icon", i18n: {"chronoprecise":{"title":"Choisir un créneau de rendez-vous","content":"Vous avez choisi le mode de livraison ChronoPrecise","content2":"Merci de choisir un créneau de rendez-vous","selectbutton":"Choisir un créneau","youchoose":"Choix effectué","error":"Une erreur est survenue lors de la sélection du rendez vous, veuillez réessayer"},"mapcheckout":{"contentbox":{"title":"Choisir un relais Pickup","content":"Vous avez sélectionné la livraison en relais Pickup","content2":"Merci de sélectionner le relais de votre choix","selectbutton":"Sélectionner un relais Pickup","changebutton":"Choisir un autre relais Pickup","youchoose":"Vous avez sélectionné ce relais Pickup","showhours":"Voir les horaires d'ouverture"},"mapcontent":{"search":{"title":"Rechercher un relais Pickup","button":"Rechercher","errorzipcoderequired":"Veuillez renseigner un code postal","errorcityrequired":"Veuillez renseigner une ville","errorzipcode":"Le code postal doit comprendre au moins 4 caractères"},"relaylist":{"selectrelay":"Choisir ce relais Pickup","hourstitle":"Horaires d'ouverture","selectrelaymap":"Sélectionner","confirm":"Vous allez choisir le relais Pickup suivant pour réceptionner votre colis","cancel":"Annuler"}},"days":{"0":"Lundi","1":"Mardi","2":"Mercredi","3":"Jeudi","4":"Vendredi","5":"Samedi","6":"Dimanche"}}}, blockRelayChange: 0 }); chronopostMap.init(function() { $('head').append($('').attr('href','//unpkg.com/leaflet@1.3.1/dist/leaflet.css')); $.getScript("//unpkg.com/leaflet@1.3.1/dist/leaflet.js", function( data, textStatus, jqxhr ) { chronopostMap.createMap(); }); }); } var chronopostMapCss = '#continue_button[disabled] { opacity: 0.3; opacity: 0.3; }.chronopost-button { min-width: 12em; padding: 1em; margin: auto; margin-top: 1em; background: #0077ae; border-radius: 1em; color: white; }.chronopost-button:disabled { background: #414042; opacity: 0.3; }#chronopost-overlay { position: fixed; top: 0; left: 0; bottom: 0; right: 0; background: #414042; opacity: 0.6; }#chronopost-select-relay-container button#button-open-select-relay { margin-top: 1em; }#chronopost-relay-map-container { min-width: 25%; position: fixed; top: 0; left: 0; bottom: 0; right: 0; background: white; display: flex; align-items: center; } #chronopost-relay-map-container #chronopost-relay-map-container-close { max-width: 2em; max-height: 2em; padding: 1em; position: absolute; top: 0; right: 0; } #chronopost-relay-map-container #chronopost-relay-map-content { height: 100%; width: 100%; display: flex; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-map-context-menu { position: fixed; width: 200px; padding: 0.5em 0; background: white; box-shadow: 5px 5px 10px 0px #414042; z-index: 1000; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-map-context-menu li { padding: 0 0.5em; min-height: 30px; line-height: 30px; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-map-context-menu li:hover { background: #e6e7e8; cursor: pointer; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container { width: 33%; overflow: auto; position: relative; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search { padding: 1em; text-align: center; border-bottom: 1px solid #808285; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-content { padding: 2em 0 1em 0; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-content #chronopost-relay-search-form .form-row { margin-bottom: 0.5em; display: flex; align-items: center; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-content #chronopost-relay-search-form .form-row #chronopost-relay-search-city { width: 63%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-content input[type="text"] { padding: 1em; border: 1px solid #e6e7e8; border-radius: 1em; flex-grow: 1; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-launch { background-color: #414042; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-search #chronopost-relay-search-error { font-weight: bold; color: #e21212; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item { padding: 1em; margin: 0; border-bottom: 1px solid #e6e7e8; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item .relay-item-header { display: flex; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item .relay-item-header .relay-item-header-left { width: 60%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item .relay-item-header .relay-item-header-left .relay-title { font-weight: bold; color: #0077ae; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item .relay-item-header .relay-item-header-right { flex-grow: 2; margin: auto; text-align: center; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item .relay-hours { display: none; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item.open { background-color: #cac4be; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container .relay-item:hover { cursor: pointer; background-color: #e6e7e8; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm { width: 32%; top: 50%; transform: translateY(-50%); position: fixed; z-index: 1001; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content { width: 80%; margin: auto; padding: 2em; background: white; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content-action { display: flex; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content-action button { min-width: 100px; flex: 1; margin: 0.5em; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content-action button:first-child { margin-left: 0; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content-action button:last-child { margin-right: 0; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__content-action button#cancel-relay { background-color: #e6e7e8; border-color: #808285; color: #808285; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm__overlay { position: fixed; top: 0; left: 0; right: 67%; bottom: 0; background: #c5c5c57a; z-index: 1000; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-map { flex-grow: 2; position: relative; } #chronopost-relay-map-container #chronopost-relay-map-content .leaflet-container { font: inherit !important; } #chronopost-relay-map-container #chronopost-relay-map-content .leaflet-container .relay-day { width: 40%; } #chronopost-relay-map-container #chronopost-relay-map-content .leaflet-container .button-select-relay-map { color: #0077ae; } #chronopost-relay-map-container #chronopost-relay-map-content .leaflet-container .button-select-relay-map:hover { cursor: pointer; } #chronopost-relay-map-container #chronopost-relay-map-content .leaflet-container .leaflet-popup-close-button { margin: 0.8em; padding: 0; } #chronopost-relay-map-container #chronopost-relay-map-container-close:hover, #chronopost-relay-map-container button#button-select-relay:hover { cursor: pointer; }#chronopost-selected-relay-container .relay-hours-item,#chronopost-relay-map-container .relay-hours-item { display: flex; } #chronopost-selected-relay-container .relay-hours-item .relay-day, #chronopost-relay-map-container .relay-hours-item .relay-day { width: 60%; font-weight: bold; } #chronopost-selected-relay-container .relay-hours-item .relay-hours-details, #chronopost-relay-map-container .relay-hours-item .relay-hours-details { flex-grow: 2; text-align: center; }#chronopost-selected-relay-container div[class*="relay"],#chronopost-relay-map-container div[class*="relay"] { margin: 0.1em 0; }#chronopost-selected-relay-container .chronopost-title,#chronopost-relay-map-container .chronopost-title { font-weight: bold; padding: 1em 0; }#chronopost-selected-relay-container #button-select-relay-map,#chronopost-relay-map-container #button-select-relay-map { color: #0077ae; }#chronopost-precise-container { min-width: 50%; min-height: 20%; padding: 0 2em; position: absolute; left: 25%; top: 0; background: #e6e7e8; } #chronopost-precise-container h1 { padding: 1em 0; } #chronopost-precise-container #chronopost-precise-nav { margin-bottom: 1em; display: flex; } #chronopost-precise-container #chronopost-precise-nav div { display: flex; align-items: center; font-weight: bold; font-size: 1.2em; cursor: pointer; } #chronopost-precise-container #chronopost-precise-nav div.next { margin: auto; margin-right: 0; } #chronopost-precise-container #chronopost-precise-error { padding: 1em; font-weight: bold; color: #ff1a1a; } #chronopost-precise-container table tr { border-bottom: 1px solid #808285; } #chronopost-precise-container table tr th { width: 5em; padding: 0.7em 0.5em; background: #0060a2; color: white; text-align: center; border-top: 1px solid #e6e7e8; border-right: 1px solid #e6e7e8; } #chronopost-precise-container table tr th .day-number { margin: 0.3em 0; font-size: 2em; } #chronopost-precise-container table tr td { text-align: center; border-right: 1px solid #808285; padding-left: 0; } #chronopost-precise-container #chrono-precise-footer { padding: 2em 0; text-align: right; }.leaflet-popup-content { min-width: 250px !important; }.chronopost-lds-roller { display: inline-block; position: absolute; width: 80px; height: 80px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 999999999999; }.chronopost-lds-roller div { animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; transform-origin: 40px 40px; }.chronopost-lds-roller div:after { content: " "; display: block; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #0077ae; margin: -4px 0 0 -4px; }.chronopost-lds-roller div:nth-child(1) { animation-delay: -0.036s; }.chronopost-lds-roller div:nth-child(1):after { top: 63px; left: 63px; }.chronopost-lds-roller div:nth-child(2) { animation-delay: -0.072s; }.chronopost-lds-roller div:nth-child(2):after { top: 68px; left: 56px; }.chronopost-lds-roller div:nth-child(3) { animation-delay: -0.108s; }.chronopost-lds-roller div:nth-child(3):after { top: 71px; left: 48px; }.chronopost-lds-roller div:nth-child(4) { animation-delay: -0.144s; }.chronopost-lds-roller div:nth-child(4):after { top: 72px; left: 40px; }.chronopost-lds-roller div:nth-child(5) { animation-delay: -0.18s; }.chronopost-lds-roller div:nth-child(5):after { top: 71px; left: 32px; }.chronopost-lds-roller div:nth-child(6) { animation-delay: -0.216s; }.chronopost-lds-roller div:nth-child(6):after { top: 68px; left: 24px; }.chronopost-lds-roller div:nth-child(7) { animation-delay: -0.252s; }.chronopost-lds-roller div:nth-child(7):after { top: 63px; left: 17px; }.chronopost-lds-roller div:nth-child(8) { animation-delay: -0.288s; }.chronopost-lds-roller div:nth-child(8):after { top: 56px; left: 12px; }@keyframes lds-roller { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }@media (max-width: 950px) { #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container { width: 50%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-list-container__relay-confirm__overlay { right: 50%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm { width: 50%; } }@media (max-width: 700px) { #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container { width: 100%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container #chronopost-relay-list-container__relay-confirm__overlay { right: 0; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-list-container__relay-confirm { width: 100%; } #chronopost-relay-map-container #chronopost-relay-map-content #chronopost-relay-map { display: none; } }'; if ((typeof jQuery === 'undefined') || (parseInt(jQuery.fn.jquery) === 1 && parseFloat(jQuery.fn.jquery.replace(/^1./,"")) < 9.1)) { loadScript('//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js', function(){ jQuery351 = jQuery.noConflict(true); jQuery351("head").append(''); loadLeafletLib(jQuery351); }); } else { jQuery("head").append(''); loadLeafletLib(jQuery); } })()