PageSourceSearch

https://www.falaise-suissenormande.com/wp-content/plugins/wp-etourisme/public/js/wp-etourisme-maps.min.js

js falaise-suissenormande.com collected 2026-10-02 16:17:56 UTC 16,274 bytes, 1 lines download raw bytes

1(()=>{var e={311:e=>{"use strict";e.exports=jQuery}},t={};function a(i){var p=t[i];if(void 0!==p)return p.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,a),n.exports}!function(e){"use strict";e((function(){var t,a=function(a,i){var p=this;this.type=a,this.options=i,this.original=null,this.idMap=null,this.mapAdapter=null,this.map=null,this.mapObject=null,this.markers=[],this.bounds=null,this.map_search_on_move=!1,this.idSingleMap="js-wpet-map-detail",this.idListMap="js-wpet-map",this.customMarkers=[],this.markercluster=null,this.infoWindow=null,this.ajax_enable=!1,this.hasKml=!1,this.kmlState=!1,this.currentMode=null,this.buildKml=[],this.posts=[],this.askSingleReccurence=!1,this.singlePicker=null,this.singleReccurence={},this.poiMarkers=[],this.poiCache={},this.poiMarkerCluster=null,this.ecoMode=!1,this.ecoModeClick=!1,this.init=function(){if(wpetMaps.ajax_mode&&(p.ajax_enable=!0),e("[data-wpet-current-mode]").length>0&&(p.currentMode=e("[data-wpet-current-mode]").attr("data-wpet-current-mode"),"map"===p.currentMode&&e(".wpet_wrapper_pagination").hide()),0===e("#"+p.idListMap).length&&0===e("#"+p.idSingleMap).length){if(e(".wpet-map").length>0)null!=(t=e(".wpet-map").attr("id"))&&!1!==t&&""!=t?p.idListMap=t:e(".wpet-map").attr("id",p.idListMap),p.idMap=p.idListMap;else if(e(".wpet-map-detail").length>0){var t;null!=(t=e(".wpet-map-detail").attr("id"))&&!1!==t&&""!=t?p.idSingleMap=t:e(".wpet-map-detail").attr("id",p.idSingleMap),p.idMap=p.idSingleMap}}else e("#"+p.idListMap).length?p.idMap=p.idListMap:p.idMap=p.idSingleMap;if(null!==p.idMap){if(p.idMap===p.idSingleMap||e("#"+p.idMap).hasClass("wpet-map-detail")){var a=!0;"undefined"!=typeof wpetMaps&&void 0!==wpetMaps.white_label&&void 0!==scoope.type&&(a=!1);var i=e("#"+p.idMap).attr("data-wpet-type-map");!0===a&&void 0!==i&&""!=i&&null!=i&&(p.type=i)}"1"===e("#"+p.idMap).attr("data-wpet-ecomode")?(p.ecoMode=!0,e(document).bind("wpet_ecomode_trigger",(function(){p.mapAdapter=new window.IRIS.WPETMapAdpater(p.type,p.options),p.ecoModeClick=p.idMap}))):p.mapAdapter=new window.IRIS.WPETMapAdpater(p.type,p.options),null!==p.currentMode&&(p.mapAdapter.currentMode=p.currentMode)}},this.initializeMap=function(){var t=e("#"+p.idMap),a=t.parent().css("width"),i=t.parent().css("height");"0px"==i&&(i="350px"),t.css("width",a),t.css("height",i),p.mapObject=new p.mapAdapter.Map(p.idMap),p.map=p.mapObject.map,e(document).trigger("wpet_map_initialized")},this.bindEvents=function(){e(document).bind("wpet_map_ready",(function(){null===p.map&&(!p.ecoMode||p.ecoMode&&p.idMap==p.ecoModeClick)&&p.initializeMap(),e("[data-wpet-mapsearchonmovecheckbox]").length>0&&(e("[data-wpet-mapsearchonmovecheckbox]").unbind("click"),e("[data-wpet-mapsearchonmovecheckbox]").bind("click",(function(){p.map_search_on_move=e("[data-wpet-mapsearchonmovecheckbox]").is(":checked")})))})),e(document).bind("wpet_map_adapter_initialized",(function(e,t){t.idMap!=p.idListMap&&t.idMap!=p.idSingleMap||(p.get_wpet_offers(),"undefined"!=typeof wpet_public&&wpet_public.init_ajax())})),e(document).unbind("wpet_map_results"),e(document).bind("wpet_map_results",(function(){if(e("[data-wpet-trace]").length>0&&e("[data-wpet-trace]").each((function(t,a){var i=e(this).attr("data-wpet-trace"),n=!0,o=!1,r={};-1==e.inArray(i,p.buildKml)&&(p.buildKml.push(i),e(this).attr("data-wpet-disable-center")&&(n=!1),e(this).attr("data-wpet-color")&&(r.strokeColor=e(this).attr("data-wpet-color")),e(this).attr("data-wpet-color-hover")&&(r.strokeColorHover=e(this).attr("data-wpet-color-hover")),e(this).attr("data-wpet-trace-elevation")&&e("[data-wpet-graph-elevation]").length>0&&(o=!0,e("[data-wpet-graph-elevation]").attr("data-wpet-marker")&&(r.markerHover=e("[data-wpet-graph-elevation]").attr("data-wpet-marker")),e("[data-wpet-graph-elevation]").attr("data-wpet-marker-start")&&(r.markerStart=e("[data-wpet-graph-elevation]").attr("data-wpet-marker-start")),e("[data-wpet-graph-elevation]").attr("data-wpet-marker-end")&&(r.markerEnd=e("[data-wpet-graph-elevation]").attr("data-wpet-marker-end"))),null==p.bounds&&(p.bounds=new p.mapAdapter.Bounds),p.hasKml=!0,p.mapObject.addKmlGpx(i,null,n,o,r))})),e('[data-wpet-type="gpx"]').length>0&&"undefined"!=typeof wpetMaps&&1!=wpetMaps.maponly&&""!=e('[data-wpet-type="gpx"] input[type="hidden"]').val()){var t=null;void 0!==window.wpet_map_object.gpxKmlStyle&&(t=window.wpet_map_object.gpxKmlStyle),p.mapObject.addKmlGpx(e('[data-wpet-type="gpx"] input[type="hidden"]').val(),t,!1,!1)}})),e(document).unbind("wpet_map_update"),e(document).bind("wpet_map_update",(function(e,t,a,i,n,o){"map"===p.currentMode&&!0!==o||p.add_markers(t,a,n)})),e(".resultsListMode a").click((function(t){t.preventDefault(),setTimeout((function(){var t=e("#"+p.idMap);if(t.parent().css("width"),t.parent().css("height"),p.mapObject.resize(),null!=p.bounds)p.mapObject.fitBounds(p.bounds);else{if(void 0!==wpetMaps.options&&void 0!==wpetMaps.options.zoom&&p.mapObject.setZoom(parseInt(wpetMaps.options.zoom)),void 0!==wpetMaps.options.latitude&&""!=wpetMaps.options.latitude&&null!=wpetMaps.options.latitude&&"undefined"!==wpetMaps.options.longitude&&""!=wpetMaps.options.longitude&&null!=wpetMaps.options.longitude)var a=new p.mapAdapter.LatLng(wpetMaps.options.latitude,wpetMaps.options.longitude);else a=p.mapObject.getCenter();p.mapObject.setCenter(a)}}),100)})),e("[data-wpet-switch-mode]").length>0&&e("[data-wpet-switch-mode]").bind("click",(function(a){a.preventDefault();var i=e(this).attr("data-wpet-switch-mode");t.mapAdapter.currentMode=i,"map"===i&&i!==p.currentMode?(p.clean_markers(!0),e("#"+p.idMap).length&&e("#"+p.idMap).addClass("is_loading"),p.
1currentMode="map",p.get_wpet_offers(),e(".wpet_wrapper_pagination").length>0&&e(".wpet_wrapper_pagination").hide()):"map"===p.currentMode&&"map"!==i&&i!==p.currentMode&&(p.clean_markers(!0),e("#"+p.idMap).length&&e("#"+p.idMap).addClass("is_loading"),p.currentMode=i,p.get_wpet_offers(),e(".wpet_wrapper_pagination").length>0&&e(".wpet_wrapper_pagination").show())})),p.map_search_on_move||e(window).resize((function(){if(void 0!==p.map&&null!=p.map)if(null!=p.bounds)p.mapObject.fitBounds(p.bounds);else{var e=p.mapObject.getCenter();p.mapObject.setCenter(e)}})),e("#wpet_agenda_single_event").length>0&&(p.askSingleReccurence=!0,p.singlePicker=new Lightpick({field:document.getElementById("wpet_agenda_single_event_value"),parentEl:document.getElementById("wpet_agenda_single_event"),lang:wpetMaps.locale,readOnly:!0,singleDate:!1,inline:!0,dropdowns:{years:!1,months:!1},format:wpetMaps.lightpick,onPickerChange:function(){void 0!==e.fn.tooltip&&e('[data-wpet-agenda-toggle="tooltip"]').tooltip({container:".lightpick",html:!0})}})),e("#wpet_add_to_google_calendar").length>0&&(p.askSingleReccurence=!0,"undefined"!=typeof wpetCalendar)&&new window.IRIS.WPETGoogleCalendar(wpetCalendar.clientid,wpetCalendar.apikey),e("[data-wpet-poi]").length>0&&(e("[data-wpet-poi]").unbind("click"),e("[data-wpet-poi]").bind("click",(function(){var t=e(this).prop("checked"),a=e(this).val();p.add_poi(a,t)})))},this.get_geolocalisation=function(t){/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&navigator.geolocation&&navigator.geolocation.getCurrentPosition((function(a){var i={lat:a.coords.latitude.toString().replace(",","."),lng:a.coords.longitude.toString().replace(",",".")};p.mapObject.setCenter(i),t&&"undefined"!=typeof wpet_public&&wpet_public.submit_wpet_form(e('form[name="wpet_engine_form"]'))}),(function(e){}),{enableHighAccuracy:!0,timeout:5e3,maximumAge:25e4})},this.get_wpet_offers=function(t){if(void 0===t&&(t=!1),"undefined"==typeof wpet_utils||"undefined"!=typeof wpetMaps&&void 0!==wpetMaps.maponly&&0==wpetMaps.maponly||wpetMaps.maponly&&!0===t){var a,i=wpetMaps.ajax_param;(a=0==i.filter.length?{}:i.filter).order=i.order,a.search=i.search,a.posts_per_page=i.posts_per_page,a.mapmode=!0,a.current_mode=p.currentMode,"map"===p.currentMode&&(a.posts_per_page=-1),void 0!==i.default&&(a.filters=i.default),void 0!==i.wpet_id_page&&(a.wpet_id_page=i.wpet_id_page),void 0!==i.recurrence&&(a.recurrence=!0,a.old_posts_per_page=i.old_posts_per_page),void 0!==wpetMaps.white_label&&e.each(wpetMaps.white_label,(function(e,t){a[e]=t})),void 0!==wpetMaps.interactive_map&&"1"==wpetMaps.interactive_map&&(a.interactive_map=!0),void 0!==i.reset&&1==i.reset?p.add_markers([],!0,!0):(!0===p.askSingleReccurence&&(a.single_recurrence=!0),e.ajax({url:i.ajax,type:"post",dataType:"JSON",data:a,success:function(t){e(".wpet-map").removeClass("is_loading");var a=t.allPosts;null!=p.idMap&&p.add_markers(a,!0,!0),(e("#wpet_agenda_single_event").length>0||e("#wpet_add_to_google_calendar").length>0)&&p.build_agenda_events(t),e(document).trigger("wpet_map_results")}}))}},this.clean_markers=function(e){if((void 0!==wpetMaps.maponly&&1==wpetMaps.maponly&&null!==p.markercluster||null!==p.markercluster)&&p.markercluster.cleanMarkers(),e){for(var t in p.markers)"function"==typeof p.markers[t].reset&&p.markers[t].reset(p.mapObject.map);p.markers=[],p.bounds=null}},this.add_markers=function(a,i,n){if(0!==e("#"+p.idMap).length&&null!==p.mapAdapter){if(e("#"+p.idMap).length&&e("#"+p.idMap).hasClass("is_loading")&&e("#"+p.idMap).removeClass("is_loading"),p.posts=a,this.clean_markers(i),null==p.bounds&&(p.bounds=new p.mapAdapter.Bounds),p.customMarkers.length>0)for(var o=0;o<p.customMarkers.length;o++){var r=p.customMarkers[o];p.bounds.extend(r.getPosition())}var d=a;p.markers.length;var s={};for(o=0;o<d.length;o++)if(""!=d[o].wpet_fields.latitude&&null!=d[o].wpet_fields.latitude&&null!=d[o].wpet_fields.latitude&&""!=d[o].wpet_fields.longitude&&null!=d[o].wpet_fields.longitude&&null!=d[o].wpet_fields.longitude){void 0===s[w=d[o].wpet_fields.latitude+"-"+d[o].wpet_fields.longitude]&&(s[w]=[]);var l='<div class="InfoBox wpetInfoBox wpetInfoBoxMulti"><div class="infoBoxContent">';l+='<p class="infoBoxContentTitle"><strong><a target="blank" href="'+d[o].guid+'">',l+=d[o].post_title+"</a></strong></p>",l+="</div></div>",s[w].push(l)}for(o=0;o<d.length;o++)if(""!=d[o].wpet_fields.latitude&&null!=d[o].wpet_fields.latitude&&null!=d[o].wpet_fields.latitude&&""!=d[o].wpet_fields.longitude&&null!=d[o].wpet_fields.longitude&&null!=d[o].wpet_fields.longitude){var c=wpetMaps.options.marker;void 0!==d[o].wpet_fields.marker&&""!=d[o].wpet_fields.marker&&(c=d[o].wpet_fields.marker);var u="";void 0!==d[o].post_title&&(u=d[o].post_title);var m={title:u,id:d[o].guid,oldicon:c,is_reference:!1};p.idMap==p.idSingleMap&&(m.flat=!0,m.optimized=!0);var w,_=new p.mapAdapter.LatLng(d[o].wpet_fields.latitude,d[o].wpet_fields.longitude),g=new p.mapAdapter.Marker(_,p.mapObject.map,c,m),f="";void 0!==s[w=d[o].wpet_fields.latitude+"-"+d[o].wpet_fields.longitude]&&(s[w]=Array.from(new Set(s[w]))),f=void 0!==s[w]&&s[w].length>1?s[w].join(""):void 0!==d[o].wpet_fields.info_window&&""!=d[o].wpet_fields.info_window?d[o].wpet_fields.info_window:'<div class="InfoBox wpetInfoBox"><p><strong><a target="blank" href="'+d[o].guid+'">'+d[o].post_title+"</strong></p></div>",g.setInfoWindow(f),p.markers.push(g),p.bounds.extend(_)}
1if(1!=wpetMaps.maponly&&"map"!==p.currentMode||(p.markercluster=new p.mapAdapter.MarkerCluster(t.markers)),"undefined"!=typeof wpetMaps&&void 0!==wpetMaps.options&&void 0!==wpetMaps.options.norecenter&&(n=!1),p.markers.length>0&&n&&!p.map_search_on_move)p.idMap==p.idSingleMap?(void 0!==wpetMaps.options&&void 0!==wpetMaps.options.zoom&&p.mapObject.setZoom(parseInt(wpetMaps.options.zoom)),p.mapObject.setCenter(_)):n&&(p.markers.length>1?p.mapObject.fitBounds(p.bounds):(p.mapObject.fitBounds(p.bounds),p.mapObject.setZoom(parseInt(wpetMaps.options.zoom))),p.mapObject.resize());else if(!1!==p.mapObject.currentKmlBounds&&!0===p.mapObject.currentKmlResize)p.mapObject.fitBounds(p.mapObject.currentKmlBounds),p.mapObject.resize();else if(void 0!==wpetMaps.options&&!p.map_search_on_move&&(void 0!==wpetMaps.options.zoom&&p.mapObject.setZoom(parseInt(wpetMaps.options.zoom)),void 0!==wpetMaps.options.latitude&&""!=wpetMaps.options.latitude&&null!=wpetMaps.options.latitude&&"undefined"!==wpetMaps.options.longitude&&""!=wpetMaps.options.longitude&&null!=wpetMaps.options.longitude)){var h=new p.mapAdapter.LatLng(wpetMaps.options.latitude,wpetMaps.options.longitude);p.mapObject.setCenter(h)}p.bind_marker(),p.bind_map_center_change()}},this.bind_marker=function(){e(".resultsListItem").bind("mouseenter",(function(){e(this).trigger("wpet-active")})),e(".resultsListItem").bind("mouseleave",(function(){e(this).trigger("wpet-inactive")})),e(".resultsListItem").bind("wpet-active",(function(){var t=e(this).find("a").attr("href");e.each(p.markers,(function(e,a){a.marker.id==t&&(a.setIcon(wpetMaps.options.markerhover),void 0!==a.marker.setZIndexOffset&&a.marker.setZIndexOffset(999))}))})),e(".resultsListItem").bind("wpet-inactive",(function(){e(this).find("a").attr("href"),e.each(p.markers,(function(e,t){t.setIcon(t.marker.oldicon),void 0!==t.marker.setZIndexOffset&&t.marker.setZIndexOffset(100)}))}))},this.bind_map_center_change=function(){p.mapObject.bindDragEnd(),p.mapObject.bindZoomChange(),e(document).unbind("wpet_map_dragend"),e(document).bind("wpet_map_dragend",(function(){e('form[name="wpet_engine_form"]').length&&t.map_search_on_move&&t.ajax_enable&&"undefined"!=typeof wpet_public&&wpet_public.submit_wpet_form(e('form[name="wpet_engine_form"]'))})),e(document).unbind("wpet_map_zoomchanged"),e(document).bind("wpet_map_zoomchanged",(function(){e('form[name="wpet_engine_form"]').length&&t.map_search_on_move&&t.ajax_enable&&"undefined"!=typeof wpet_public&&wpet_public.submit_wpet_form(e('form[name="wpet_engine_form"]'))}))},this.get_map_corner=function(){return p.mapObject.getCorner()},this.add_custom_marker=function(e){p.customMarkers.push(e)},this.build_agenda_events=function(t){void 0!==t&&void 0!==t.wpet_all_dates&&(null!==p.singlePicker&&p.singlePicker.setRangeInterval(t.wpet_all_dates),void 0!==t.wpet_min_date&&void 0!==t.wpet_max_date&&null!==t.wpet_min_date&&null!==t.wpet_max_date&&(p.singleReccurence.title=t.allPosts[0].post_title,p.singleReccurence.wpet_min_date=t.wpet_min_date,p.singleReccurence.wpet_max_date=t.wpet_max_date,p.singleReccurence.wpet_all_dates=t.wpet_all_dates,null!==p.singlePicker&&(p.singlePicker.reloadOptions({minDate:moment(t.wpet_min_date),maxDate:moment(t.wpet_max_date)}),void 0!==t.wpet_year&&p.singlePicker.gotoYear(t.wpet_year),void 0!==t.wpet_month&&p.singlePicker.gotoMonth(t.wpet_month))),void 0!==e.fn.tooltip&&e('[data-wpet-agenda-toggle="tooltip"]').tooltip({container:".lightpick",html:!0}))},this.add_poi=function(t,a){if(null!==p.poiMarkerCluster&&p.poiMarkerCluster.cleanMarkers(),a)void 0===p.poiCache[t]?e.ajax({url:wpetMaps.poi_path+t,type:"post",dataType:"JSON",success:function(e){p.poiCache[t]=e,p.add_poi_markers(e,t)}}):p.add_poi_markers(p.poiCache[t],t);else{var i=[];if(p.poiMarkers.length>0)for(var n in p.poiMarkers)p.poiMarkers[n].id_poi!=t&&i.push(p.poiMarkers[n]);p.poiMarkers=i,p.poiMarkerCluster=new p.mapAdapter.MarkerCluster(p.poiMarkers)}},this.add_poi_markers=function(t,a){e(t).each((function(e,t){if(""!=t.wpet_fields.latitude&&null!=t.wpet_fields.latitude&&null!=t.wpet_fields.latitude&&""!=t.wpet_fields.longitude&&null!=t.wpet_fields.longitude&&null!=t.wpet_fields.longitude){var i=wpetMaps.options.marker;void 0!==t.wpet_fields.marker&&""!=t.wpet_fields.marker&&(i=t.wpet_fields.marker);var n="";void 0!==t.post_title&&(n=t.post_title);var o={title:n,id:t.guid,oldicon:i,is_reference:!1};p.idMap==p.idSingleMap&&(o.flat=!0,o.optimized=!0);var r=new p.mapAdapter.LatLng(t.wpet_fields.latitude,t.wpet_fields.longitude),d=new p.mapAdapter.Marker(r,p.mapObject.map,i,o,!0);d.id_poi=a;var s="";
1s=void 0!==t.wpet_fields.info_window&&""!=t.wpet_fields.info_window?t.wpet_fields.info_window:'<div class="InfoBox wpetInfoBox"><p><strong><a target="blank" href="'+t.guid+'">'+t.post_title+"</strong></p></div>",d.setInfoWindow(s),p.poiMarkers.push(d)}})),null!==p.poiMarkerCluster&&p.poiMarkerCluster.cleanMarkers(),p.poiMarkerCluster=new p.mapAdapter.MarkerCluster(p.poiMarkers,{customClass:"wpet-poi-cluster"})},this.init(),this.bindEvents()};window.IRIS=window.IRIS||{},e(document).ready((function(){"undefined"!=typeof wpetMaps&&(t=new a(wpetMaps.selected,wpetMaps),window.wpet_map_object=t)}))}))}(a(311))})();

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.