PageSourceSearch

https://www.cloria.ca/wp-content/plugins/jet-elements/assets/js/addons/jet-map.min.js?ver=2.9.2.3

js cloria.ca collected 2026-10-08 03:07:31 UTC 5,088 bytes, 1 lines download raw bytes

1!function(v){"use strict";function x(e){var i,o=document.createElement("div"),t=document.createElement("a"),n="string"==typeof e.link.url?e.link.url.trim():"",a=n.replace(/[\u0000-\u0020\u007f]/g,"").match(/^([^/?#:]+):/);return a&&!/^(https?|mailto|tel)$/i.test(a[1])&&(n="#"),o.className="jet-map-pin__wrapper",t.className="jet-map-pin__link",t.setAttribute("href",n||"#"),t.textContent=e.link_title,"on"===e.link.is_external&&t.setAttribute("target","_blank"),"on"===e.link.nofollow&&t.setAttribute("rel","nofollow"),a=e.link.custom_attributes,i=t,"string"==typeof a&&a&&a.split(",").forEach(function(e){var o=e.indexOf("|"),t=(o<0?e:e.substring(0,o)).trim().toLowerCase(),e=o<0?"":e.substring(o+1).trim();/^[-_a-z0-9]+$/.test(t)&&"href"!==t&&"on"!==t.substring(0,2)&&!i.hasAttribute(t)&&i.setAttribute(t,e)}),o.appendChild(t),o.outerHTML}window.widgetMap=function(e){var l,e=e.find(".jet-map"),s=0,r=[];if(e.length){var n,a,p,c,o,t,i,d,m,g,u,h,w=e.data("init")||{},b=e.data("pins")||[],f=e.data("provider")||w.provider||"google",k=!!w.pinsAutoClose;if("leaflet"===f)t=e,n=w,d=b,void 0!==window.L&&(o={zoom:n.zoom||11,scrollWheelZoom:n.scrollwheel,zoomControl:n.zoomControl},n.center?o.center=[n.center.lat,n.center.lng]:o.center=[0,0],!1===n.draggable&&(o.dragging=!1),a=window.L.map(t[0],o),t=window.JetElementsLeafletTiles||{},o=t.url||"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",t=t.options||{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'},window.L.tileLayer(o,t).addTo(a),!1===n.scrollwheel&&a.scrollWheelZoom.disable(),!1===n.zoomControl&&a.zoomControl&&a.zoomControl.remove(),!1===n.draggable&&a.dragging.disable(),p=null,c=n.pinsAutoClose?1:0,d)&&d.forEach(function(e){var o,t,i;e.position&&(t={},e.image&&(o={iconUrl:e.image},void 0!==e.image_width&&void 0!==e.image_height&&(o.iconSize=[e.image_width,e.image_height],o.iconAnchor=[e.image_width/2,e.image_height/2]),t.icon=window.L.icon(o)),o=window.L.marker([e.position.lat,e.position.lng],t).addTo(a),""===e.desc&&void 0===e.link_title||(t=e.desc||"",void 0!==e.link_title&&e.link&&(t+=x(e)),i={className:"jet-map-box",autoClose:!!n.pinsAutoClose,closeOnClick:!!n.pinsAutoClose},o.bindPopup(t,i),n.pinsAutoClose&&o.on("popupopen",function(e){p&&p!==e.popup&&p.close(),p=e.popup})),"visible"===e.state)&&""!==e.desc&&(1===c?(o.openPopup(),c++):0===c&&o.openPopup())});else if("mapbox"===f)o=e,t=w,i=b,void 0!==window.mapboxgl&&(void 0!==window.jetElements&&jetElements.mapboxToken?(mapboxgl.accessToken=jetElements.mapboxToken,(d=o.attr("id"))||(d="jet-map-"+Math.random().toString(36).substr(2,9),o.attr("id",d)),o={container:d,style:t.mapboxStyle||"mapbox://styles/mapbox/streets-v11",center:t.center?[t.center.lng,t.center.lat]:[0,0],zoom:t.zoom||11},m=new mapboxgl.Map(o),!1===t.scrollwheel&&m.scrollZoom.disable(),!1===t.draggable&&(m.dragPan.disable(),m.dragRotate.disable(),m.touchZoomRotate.disable(),m.boxZoom.disable(),m.doubleClickZoom.disable(),m.keyboard.disable()),!1!==t.zoomControl&&m.addControl(new mapboxgl.NavigationControl),g=!!t.pinsAutoClose,u=[],h=[],m.on("load",function(){i&&i.forEach(function(e){var o,t,i,n;e.position&&((n=e.image?((t=document.createElement("div")).className="jet-mapbox-marker",(o=document.createElement("img")).src=e.image,e.image_width&&(o.style.width=e.image_width+"px"),e.image_height&&(o.style.height=e.image_height+"px"),t.appendChild(o),new mapboxgl.Marker(t)):new mapboxgl.Marker).setLngLat([e.position.lng,e.position.lat]).addTo(m),n.getElement().style.cursor="pointer",e.desc||e.link_title&&e.link)&&(o=e.desc||"",e.link_title&&e.link&&(o+=x(e)),t=new mapboxgl.Popup({closeButton:!0,closeOnClick:!1,focusAfterOpen:!1,className:"jet-map-box",maxWidth:"320px"}).setHTML(o),(i=t).on("open",function(){g&&(u.forEach(function(e){e.remove()}),u=[]),u.push(i)}),i.on("close",function(){u=u.filter(function(e){return e!==i})}),n.setPopup(t),"visible"===e.state)&&""!==e.desc&&h.push(function(){n.getPopup().isOpen()||n.togglePopup()})}),h.length&&h.forEach(function(e){e()})})):console.warn("Mapbox access token is missing."));else if(window.google){if(!0==k&&(s=1),"undefined"!=typeof console){const _=console.warn;console.warn=function(e){e&&e.includes("google.maps.Marker is deprecated")||_.apply(console,arguments)}}l=new google.maps.Map(e[0],w),b&&v.each(b,function(e,o){var t,i,n,a={position:o.position,map:l,title:o.address};o.image&&(void 0!==o.image_width&&void 0!==o.image_height?(n={url:o.image,scaledSize:new google.maps.Size(o.image_width,o.image_height),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(o.image_width/2,o.image_height/2)},a.icon=n):a.icon=o.image),t=new google.maps.Marker(a),""===o.desc&&void 0===o.link_title||(void 0!==o.link_title&&o.link&&(o.desc+=x(o)
1),i=new google.maps.InfoWindow({content:o.desc,disableAutoPan:!0}),r[e]=i),t.addListener("click",function(){i.setOptions({disableAutoPan:!1}),!0==k&&v.each(r,function(e,o){o.close()}),i.open(l,t)}),1===s?"visible"===o.state&&""!==o.desc&&(i.open(l,t),s++):0===s&&"visible"===o.state&&""!==o.desc&&i.open(l,t)})}}}}(jQuery);

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.