PageSourceSearch

https://lithuania.travel/dist/web/247.min.js?v=b068c772540ecb3c8187

js lithuania.travel collected 2026-10-01 11:38:46 UTC 4,056 bytes, 5 lines download raw bytes

1"use strict";(self.webpackChunkPantera=self.webpackChunkPantera||[]).push([[247],{8247(C,l,i){i.r(l),i.d(l,{custom_element_map_view:()=>d});var m=i(48),h=i(6259),c=i(3071),p=i(1688);class g{constructor(t,s=!1,e=!1){this.instance=t,this.markers=[],this.dormant_markers=[],this.map=t,this.instance_map=t.map,this.edit=s,this.multi=e;let a=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2		<rect width="40" height="40" rx="18" fill="#E1B9FF"/>
3		<path d="M20 19.725C20.4833 19.725 20.896 19.5543 21.238 19.213C21.5793 18.871 21.75 18.4583 21.75 17.975C21.75 17.4916 21.5793 17.079 21.238 16.737C20.896 16.3956 20.4833 16.225 20 16.225C19.5167 16.225 19.104 16.3956 18.762 16.737C18.4207 17.079 18.25 17.4916 18.25 17.975C18.25 18.4583 18.4207 18.871 18.762 19.213C19.104 19.5543 19.5167 19.725 20 19.725ZM20 27.775C22.0667 25.9416 23.625 24.1873 24.675 22.512C25.725 20.8373 26.25 19.3916 26.25 18.175C26.25 16.275 25.646 14.725 24.438 13.525C23.2293 12.325 21.75 11.725 20 11.725C18.25 11.725 16.7707 12.325 15.562 13.525C14.354 14.725 13.75 16.275 13.75 18.175C13.75 19.3916 14.275 20.8373 15.325 22.512C16.375 24.1873 17.9333 25.9416 20 27.775ZM20 29.775C17.4 27.5083 15.4583 25.4083 14.175 23.475C12.8917 21.5416 12.25 19.775 12.25 18.175C12.25 15.7583 13.0293 13.829 14.588 12.387C16.146 10.9456 17.95 10.225 20 10.225C22.05 10.225 23.8543 10.9456 25.413 12.387C26.971 13.829 27.75 15.7583 27.75 18.175C27.75 19.775 27.1083 21.5416 25.825 23.475C24.5417 25.4083 22.6 27.5083 20 29.775Z" fill="black"/>
4		</svg>
5		`;return this.svg="data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(a),this}init(){}loadMarkers(t){t.forEach(s=>{this.addMarker(s)})}addMarker(t){let s=this,e=new google.maps.Marker({map:this.instance_map,icon:s.svg,label:{fontFamily:t.markerFontFamily||"",text:t.markerText||" ",color:t.markerTextColor||"white"},position:{lat:t.lat,lng:t.lng},title:t.title,visible:t.visible});return google.maps.event.addListener(e,"click",()=>{t.content&&new google.maps.InfoWindow({content:t.content}).open(this.instance_map,e)}),e}}class d extends h.A{constructor(){super(...arguments),this.mapLoaded=()=>{this.connectedAutocomplete=document.querySelector(this.dataset.connectedAutocomplete),this.mapContent=this.querySelector("div.google-map-place-content");const t={center:{lat:55.166319,lng:24.134217},zoom:10,disableDefaultUI:!0};this.dataset.mapId&&(t.mapId=this.dataset.mapId),this.map=new google.maps.Map(this.mapContent,t),this.directionsService=new google.maps.DirectionsService,this.directionsRenderer=new google.maps.DirectionsRenderer({map:this.map,suppressMarkers:!0}),this.marker=new google.maps.Marker({map:this.map}),this.pluginsInit()},this.setFromAutocomplete=()=>{const{latInput:t,lngInput:s}=this.connectedAutocomplete,e=new google.maps.LatLng(parseFloat(t.value),parseFloat(s.value));this.marker.setPosition(e),this.map.setCenter(e)}}_init(){c.z.addLoader({libraries:["places"]},this.dataset.apiKey).then(this.mapLoaded)}pluginsInit(){if(this.plugins={boundaries:new p.H(this),markers:new g(this,!1,!0)},this.dataset.boundary){let s=JSON.parse(this.dataset.boundary);this.plugins.boundaries.applyBoundaries(s)}let t={};this.dataset.urldata&&(t={data:this.dataset.urldata}),new m.h.post(this.dataset.markersurl,t,{json:!1,xloadingbar:!1},s=>{let e=s.markers;if(this.plugins.markers.loadMarkers(e),this.dataset.directions){const a={lat:e[0].lat,lng:e[0].lng},r={lat:e[e.length-1].lat,lng:e[e.length-1].lng},n=e.slice(1,e.length-1).map(o=>({lat:o.lat,lng:o.lng}));this.addDirectionsWithStops(a,n,r)}})}setMarkerPos(t){this.marker.setPosition(t),this.map.panTo(t)}addDirectionsWithStops(t,s,e){const a=s.map(n=>({location:n,stopover:!0})),r={origin:t,destination:e,waypoints:a,travelMode:google.maps.TravelMode.DRIVING,optimizeWaypoints:!0};this.directionsService.route(r,(n,o)=>{o===google.maps.DirectionsStatus.OK&&n?this.directionsRenderer.setDirections(n):console.error("Directions request failed:",o)})}}customElements.define("custom-element-map-view",d,{extends:"div"})}}]);

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.