PageSourceSearch

https://static.activ-travaux.com/dist/concessionary_list.6d668798ad9748b316eb.js.gz

js activ-travaux.com collected 2026-10-07 20:05:46 UTC 3,620 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7370],{1045:(n,e,t)=>{var o=t(9602),i=t.n(o),a=t(4067);t(5151),t(559),t(80),t(8681);let l="#spider-map";i()(l).is(":hidden")&&(l="#spider-map-mobile");let r=i()('[name="csrfmiddlewaretoken"]').attr("value"),d=i()("div#spider-map").data("icon-url");function c(){if(!window.mymap)return 0;let n=0;return window.mymap.eachLayer(e=>{e._childCount&&(n+=e._childCount)}),n}function w(n,e=null,t=null,o=null,l=null,d=!1,w=!0){e||(e=n.attr("data-url")),t||(t=n.attr("data-zoom")),i().ajax({url:e,headers:{"X-CSRFToken":r},type:"get",success:function(e,r){!function(n,e,t,o=null,l=null,r=!1,d=!0){if(!n||0===e.length||!d&&window.nb_markers===c())return;o?!r&&n.center&&null!=n.center.lat&&(window.denied_zoom=!0,o.flyTo([n.center.lat,n.center.lng],t),window.nb_markers=c(),window.denied_zoom=!1):(o=a.map(e.attr("id")).setView([n.center.lat,n.center.lng],t),a.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© Les contributeurs d'<a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a>"}).addTo(o));l&&o.removeLayer(l);if(l=new window.L.markerClusterGroup,i().each(n.location,function(n,e){if(e.lat_lng&&e.lat_lng.length>0){let n=a.polygon(e.lat_lng).bindPopup(e.bubble_content).openPopup();l.addLayer(n)}else{let n=a.marker([e.lat,e.lng]).bindPopup(e.bubble_content).openPopup();l.addLayer(n)}}),o.addLayer(l),o.invalidateSize(),0===window.nb_markers){let n=i()("span.nb-concessionary").html();i().isNumeric(n)&&(window.nb_markers=parseInt(n))}window.mymap=o,window.markers=l}(e,n,t,o,l,d,w)},error:function(n,e){console.log("error",n,e)}})}function u(n,e,t,o=!1,a=!0,d=!1){let c=i()("form#search-concessionary").attr("action");i().ajax({url:c,headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRFToken":r},data:n,type:"POST"}).done(function(n){i()("div.concessionary-listing").html(n);let r=i()(".new-map"),d=r.data("url"),c=r.data("zoom");w(i()(l),d,c,e,t,o,a)})}a.Marker.prototype.setIcon(a.icon({iconUrl:d,iconSize:[32,32],iconAnchor:[16,32]})),window.mymap=null,window.markers=null,window.denied_zoom=!1,window.nb_markers=0,window.current_locality=null,i()(function(){let n=i()(l);if(!n.length)return;w(n,null,null,null,null,!0),i()(document).on("click","button#pills-map-tab",function(){window.mymap.invalidateSize()});let e=window.location.search,t=null;e&&e.length&&(t=e.replace("?locality=","")),i()(document).on("submit","form#search-concessionary",function(n){n.preventDefault();let e=i()("#id_locality :selected").val();if(window.current_locality=e,t){let n=new URL(window.location.origin+window.location.pathname);n.searchParams.append("locality",e),window.history.pushState({},"",n)}return u(JSON.stringify({locality:e}),window.mymap,window.markers),!1}),setTimeout(function(){window.mymap&&window.mymap.on("moveend",function(n,e){let t;return function(...o){const i=this;clearTimeout(t),t=setTimeout(()=>n.apply(i,o),e)}}(function(){window.denied_zoom||window.denied_zoom||(window.denied_zoom=!0,function(n,e,t=!1,o=!0){if(i()(l).is(":hidden"))return void console.log("Map cachée, pas de reload par bounds");
1let a=n.getBounds(),r=a.getSouthWest().wrap(),d=a.getNorthEast().wrap(),c={latlng:{sw_lat:r.lat,sw_lng:r.lng,ne_lat:d.lat,ne_lng:d.lng}};window.current_locality&&(c.order_by=window.current_locality,window.current_locality=null),c=JSON.stringify(c),u(c,n,e,t,o)}(window.mymap,window.markers,!0,!1),window.denied_zoom=!1)},400))},2e3)})}},n=>{n.O(0,[8881,6334,5184],()=>{return e=1045,n(n.s=e);var e});n.O()}]);
2//# sourceMappingURL=concessionary_list.6d668798ad9748b316eb.js.map

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.