www.tuimusement.com Open in urlscan Pro
18.244.18.11  Public Scan

URL: https://www.tuimusement.com/_nuxt/6119587f9.js
Submission: On October 16 via api from IT — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{1738:function(t,e){function r(map,t,e){this.extend(r,google.maps.OverlayView),this.map_=map,this.markers_=[],this.clusters_=[],this.markersCluster_={},this.markersUniqueID=1,this.sizes=[53,56,66,78,90],this.styles_=[],this.cssClass_="",this.cssDefaultClass_="cluster",this.setIndex_=0,this.ready_=!1;var o=e||{};this.gridSize_=void 0!==o.gridSize?o.gridSize:60,this.minClusterSize_=o.minimumClusterSize||2,this.ignoreHiddenMarkers_=o.ignoreHiddenMarkers||!1,this.maxZoom_=o.maxZoom||null,this.styles_=o.styles||[],this.cssClass_=o.cssClass||null,this.imagePath_=o.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=o.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,null!=o.zoomOnClick&&(this.zoomOnClick_=o.zoomOnClick),this.averageCenter_=!1,null!=o.averageCenter&&(this.averageCenter_=o.averageCenter),this.onMouseoverCluster_=o.onMouseoverCluster,this.onMouseoutCluster_=o.onMouseoutCluster,this.drawCluster_=o.drawCluster,this.hideCluster_=o.hideCluster,this.showCluster_=o.showCluster,this.onAddCluster_=o.onAddCluster,this.onRemoveCluster_=o.onRemoveCluster,this.setupStyles_(),this.setMap(map),this.prevZoom_=this.map_.getZoom();var n=this;google.maps.event.addListener(this.map_,"zoom_changed",(function(){var t=n.map_.getZoom();n.prevZoom_!=t&&(n.prevZoom_=t,n.resetViewport())})),google.maps.event.addListener(this.map_,"idle",(function(){n.redraw()})),t&&t.length&&this.addMarkers(t,!1)}function o(t){this.markerClusterer_=t,this.map_=t.getMap(),this.gridSize_=t.getGridSize(),this.minClusterSize_=t.getMinClusterSize(),this.averageCenter_=t.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new n(this,t.getStyles(),t.getGridSize())}function n(t,e,r){t.getMarkerClusterer().extend(n,google.maps.OverlayView),this.styles_=e,this.padding_=r||0,this.cluster_=t,this.center_=null,this.map_=t.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}r.prototype.MARKER_CLUSTER_IMAGE_PATH_="https://raw.githubusercontent.com/gmaps-marker-clusterer/gmaps-marker-clusterer/master/images/m",r.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",r.prototype.extend=function(t,e){return function(object){for(var t in object.prototype)this.prototype[t]=object.prototype[t];return this}.apply(t,[e])},r.prototype.onAdd=function(){this.setReady_(!0)},r.prototype.draw=function(){},r.prototype.setupStyles_=function(){if(!this.styles_.length)for(var t,i=0;t=this.sizes[i];i++){var e="";e="function"==typeof this.imagePath_?this.imagePath_(i,t):this.imagePath_+(i+1)+"."+this.imageExtension_,this.styles_.push({url:e,height:t,width:t})}},r.prototype.fitMapToMarkers=function(){for(var marker,t=this.getMarkers(),e=new google.maps.LatLngBounds,i=0;marker=t[i];i++)e.extend(marker.getPosition());this.map_.fitBounds(e)},r.prototype.setStyles=function(t){this.styles_=t},r.prototype.getStyles=function(){return this.styles_},r.prototype.isZoomOnClick=function(){return this.zoomOnClick_},r.prototype.isAverageCenter=function(){return this.averageCenter_},r.prototype.getMarkers=function(){return this.markers_},r.prototype.getTotalMarkers=function(){return this.markers_.length},r.prototype.setMaxZoom=function(t){this.maxZoom_=t},r.prototype.getMaxZoom=function(){return this.maxZoom_},r.prototype.getMarkersCluster=function(marker){return this.clusters_[this.markersCluster_[marker.uniqueID]]},r.prototype.calculator_=function(t,e){for(var r=0,o=t.length,n=o;0!==n;)n=parseInt(n/10,10),r++;return{text:o,index:r=Math.min(r,e)}},r.prototype.setCalculator=function(t){this.calculator_=t},r.prototype.getCalculator=function(){return this.calculator_},r.prototype.addMarkers=function(t,e){for(var marker,i=0;marker=t[i];i++)this.pushMarkerTo_(marker);e||this.redraw()},r.prototype.pushMarkerTo_=function(marker){if(marker.isAdded=!1,marker.draggable){var t=this;google.maps.event.addListener(marker,"dragend",(function(){marker.isAdded=!1,t.repaint()}))}marker.uniqueID=this.markersUniqueID,this.markersUniqueID++,this.markers_.push(marker)},r.prototype.addMarker=function(marker,t){this.pushMarkerTo_(marker),t||this.redraw()},r.prototype.removeMarker_=function(marker){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(marker);else for(var e,i=0;e=this.markers_[i];i++)if(e==marker){t=i;break}return-1!=t&&(marker.setMap(null),this.markers_.splice(t,1),delete this.markersCluster_[marker.uniqueID],!0)},r.prototype.removeMarker=function(marker,t){var e=this.removeMarker_(marker);return!(t||!e)&&(this.resetViewport(),this.redraw(),!0)},r.prototype.removeMarkers=function(t,e){for(var r=!1,i=t.length;i>=0;i--){var marker=t[i],o=this.removeMarker_(marker);r=r||o}if(!e&&r)return this.resetViewport(),this.redraw(),!0},r.prototype.setReady_=function(t){this.ready_||(this.ready_=t,this.createClusters_())},r.prototype.getTotalClusters=function(){return this.clusters_.length},r.prototype.getClusters=function(){return this.clusters_},r.prototype.getMap=function(){return this.map_},r.prototype.setMap=function(map){this.map_=map},r.prototype.getGridSize=function(){return this.gridSize_},r.prototype.setGridSize=function(t){this.gridSize_=t},r.prototype.getMinClusterSize=function(){return this.minClusterSize_},r.prototype.setMinClusterSize=function(t){this.minClusterSize_=t},r.prototype.getExtendedBounds=function(t){var e=this.getProjection(),tr=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),r=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),o=e.fromLatLngToDivPixel(tr);o.x+=this.gridSize_,o.y-=this.gridSize_;var n=e.fromLatLngToDivPixel(r);n.x-=this.gridSize_,n.y+=this.gridSize_;var h=e.fromDivPixelToLatLng(o),l=e.fromDivPixelToLatLng(n);return t.extend(h),t.extend(l),t},r.prototype.isMarkerInBounds_=function(marker,t){return t.contains(marker.getPosition())},r.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[],this.markersCluster_={},this.markersUniqueID=1},r.prototype.resetViewport=function(t){for(var e,i=0;e=this.clusters_[i];i++)e.remove();var marker;for(i=0;marker=this.markers_[i];i++)marker.isAdded=!1,t&&marker.setMap(null);this.clusters_=[],this.markersCluster_={},this.markersUniqueID=1},r.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout((function(){for(var e,i=0;e=t[i];i++)e.remove()}),0)},r.prototype.redraw=function(){this.createClusters_()},r.prototype.distanceBetweenPoints_=function(t,e){if(!t||!e)return 0;var r=(e.lat()-t.lat())*Math.PI/180,o=(e.lng()-t.lng())*Math.PI/180,a=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(e.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 6371*(2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a)))},r.prototype.addToClosestCluster_=function(marker){for(var t,e=4e4,r=null,n=(marker.getPosition(),null),i=0;t=this.clusters_[i];i++){var h=t.getCenter();if(h){var l=this.distanceBetweenPoints_(h,marker.getPosition());l<e&&(e=l,r=t,n=i)}}r&&r.isMarkerInClusterBounds(marker)?r.addMarker(marker):((t=new o(this)).addMarker(marker),this.clusters_.push(t),n=this.clusters_.length-1);marker.isAdded&&(this.markersCluster_[marker.uniqueID]=n)},r.prototype.createClusters_=function(){if(this.ready_)for(var marker,t=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),e=this.getExtendedBounds(t),i=0;marker=this.markers_[i];i++)marker.isAdded||!this.isMarkerInBounds_(marker,e)||this.ignoreHiddenMarkers_&&!marker.getVisible()||this.addToClosestCluster_(marker)},o.prototype.isMarkerAlreadyAdded=function(marker){if(this.markers_.indexOf)return-1!=this.markers_.indexOf(marker);for(var t,i=0;t=this.markers_[i];i++)if(t==marker)return!0;return!1},o.prototype.addMarker=function(marker){if(this.isMarkerAlreadyAdded(marker))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,e=(this.center_.lat()*(t-1)+marker.getPosition().lat())/t,r=(this.center_.lng()*(t-1)+marker.getPosition().lng())/t;this.center_=new google.maps.LatLng(e,r),this.calculateBounds_()}}else this.center_=marker.getPosition(),this.calculateBounds_();marker.isAdded=!0,this.markers_.push(marker);var o=this.markers_.length;if(o<this.minClusterSize_&&marker.getMap()!=this.map_&&marker.setMap(this.map_),o==this.minClusterSize_)for(var i=0;i<o;i++)this.markers_[i].setMap(null);return o>=this.minClusterSize_&&marker.setMap(null),this.updateIcon(),!0},o.prototype.getMarkerClusterer=function(){return this.markerClusterer_},o.prototype.getBounds=function(){for(var marker,t=new google.maps.LatLngBounds(this.center_,this.center_),e=this.getMarkers(),i=0;marker=e[i];i++)t.extend(marker.getPosition());return t},o.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},o.prototype.getSize=function(){return this.markers_.length},o.prototype.getMarkers=function(){return this.markers_},o.prototype.getCenter=function(){return this.center_},o.prototype.calculateBounds_=function(){var t=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(t)},o.prototype.isMarkerInClusterBounds=function(marker){return this.bounds_.contains(marker.getPosition())},o.prototype.getMap=function(){return this.map_},o.prototype.updateIcon=function(){var t=this.map_.getZoom(),e=this.markerClusterer_.getMaxZoom();if(e&&t>e)for(var marker,i=0;marker=this.markers_[i];i++)marker.setMap(this.map_);else if(this.markers_.length<this.minClusterSize_)this.clusterIcon_.hide();else{var r=this.markerClusterer_.getStyles().length,o=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(o),this.clusterIcon_.show()}},n.prototype.triggerClusterClick=function(t){var e=this.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"clusterclick",this.cluster_,t),e.isZoomOnClick()&&this.map_.fitBounds(this.cluster_.getBounds())},n.prototype.triggerClusterMouseover=function(t){var e=this.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"clustermouseover",this.cluster_,t),"function"==typeof this.cluster_.markerClusterer_.onMouseoverCluster_&&this.cluster_.markerClusterer_.onMouseoverCluster_(this,t)},n.prototype.triggerClusterMouseout=function(t){var e=this.cluster_.getMarkerClusterer();google.maps.event.trigger(e,"clustermouseout",this.cluster_,t),"function"==typeof this.cluster_.markerClusterer_.onMouseoutCluster_&&this.cluster_.markerClusterer_.onMouseoutCluster_(this,t)},n.prototype.onAdd=function(){"function"==typeof this.cluster_.markerClusterer_.onAddCluster_?this.cluster_.markerClusterer_.onAddCluster_(this):function(t){if(t.div_=document.createElement("DIV"),t.visible_){var e=t.getPosFromLatLng_(t.center_);t.div_.style.cssText=t.createCss(e),t.div_.innerHTML=t.sums_.text,t.addClass()}t.getPanes().overlayMouseTarget.appendChild(t.div_);var r=!1,o=!1;google.maps.event.addDomListener(t.div_,"click",(function(e){r||t.triggerClusterClick(e)})),google.maps.event.addDomListener(t.div_,"mousedown",(function(){r=!1,o=!0})),google.maps.event.addDomListener(t.div_,"mouseup",(function(){r=!1,o=!1})),google.maps.event.addDomListener(t.div_,"mousemove",(function(){o&&(r=!0)})),google.maps.event.addDomListener(t.div_,"mouseover",(function(e){t.triggerClusterMouseover(e)})),google.maps.event.addDomListener(t.div_,"mouseout",(function(e){t.triggerClusterMouseout(e)}))}(this)},n.prototype.getPosFromLatLng_=function(t){var e=this.getProjection().fromLatLngToDivPixel(t);return"object"==typeof this.iconAnchor_&&2===this.iconAnchor_.length?(e.x-=this.iconAnchor_[0],e.y-=this.iconAnchor_[1]):(e.x-=parseInt(this.width_/2,10),e.y-=parseInt(this.height_/2,10)),e},n.prototype.draw=function(){"function"==typeof this.cluster_.markerClusterer_.drawCluster_?this.cluster_.markerClusterer_.drawCluster_(this):function(t){if(t.visible_){var e=t.getPosFromLatLng_(t.center_);t.div_.style.top=e.y+"px",t.div_.style.left=e.x+"px"}}(this)},n.prototype.hide=function(){"function"==typeof this.cluster_.markerClusterer_.hideCluster_?this.cluster_.markerClusterer_.hideCluster_(this):function(t){t.div_&&(t.div_.style.display="none",t.div_.className="");t.visible_=!1}(this)},n.prototype.show=function(){"function"==typeof this.cluster_.markerClusterer_.showCluster_?this.cluster_.markerClusterer_.showCluster_(this):function(t){if(t.div_){var e=t.getPosFromLatLng_(t.center_);t.div_.style.cssText=t.createCss(e),t.div_.style.display="",t.addClass()}t.visible_=!0}(this)},n.prototype.remove=function(){this.setMap(null)},n.prototype.onRemove=function(){var t;"function"==typeof this.cluster_.markerClusterer_.onRemoveCluster_?this.cluster_.markerClusterer_.onRemoveCluster_(this):(t=this).div_&&t.div_.parentNode&&(t.hide(),t.div_.parentNode.removeChild(t.div_),t.div_=null)},n.prototype.setSums=function(t){this.sums_=t,this.text_=t.text,this.index_=t.index,this.div_&&(this.div_.innerHTML=t.text),this.useStyle()},n.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1);t=Math.min(this.styles_.length-1,t);var style=this.styles_[t];this.url_=style.url,this.height_=style.height,this.width_=style.width,this.textColor_=style.textColor,this.anchor_=style.anchor,this.textSize_=style.textSize,this.backgroundPosition_=style.backgroundPosition,this.iconAnchor_=style.iconAnchor,this.setIndex_=t},n.prototype.setCenter=function(t){this.center_=t},n.prototype.createCss=function(t){var style=[];if(this.cluster_.getMarkerClusterer().cssClass_)style.push("top:"+t.y+"px; left:"+t.x+"px;");else{style.push("background-image:url("+this.url_+");");var e=this.backgroundPosition_?this.backgroundPosition_:"0 0";style.push("background-position:"+e+";"),"object"==typeof this.anchor_?("number"==typeof this.anchor_[0]&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?style.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):"number"==typeof this.anchor_[0]&&this.anchor_[0]<0&&-this.anchor_[0]<this.height_?style.push("height:"+this.height_+"px; line-height:"+(this.height_+this.anchor_[0])+"px;"):style.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),"number"==typeof this.anchor_[1]&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?style.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):style.push("width:"+this.width_+"px; text-align:center;")):style.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;");var r=this.textColor_?this.textColor_:"black",o=this.textSize_?this.textSize_:11;style.push("cursor:pointer; top:"+t.y+"px; left:"+t.x+"px; color:"+r+"; position:absolute; font-size:"+o+"px; font-family:Arial,sans-serif; font-weight:bold")}return style.join("")},n.prototype.addClass=function(){var t=this.cluster_.getMarkerClusterer();t.cssClass_?this.div_.className=t.cssClass_+" "+t.cssDefaultClass_+this.setIndex_:this.div_.className=t.cssDefaultClass_+this.setIndex_},window.MarkerClusterer=r,r.prototype.addMarker=r.prototype.addMarker,r.prototype.addMarkers=r.prototype.addMarkers,r.prototype.clearMarkers=r.prototype.clearMarkers,r.prototype.fitMapToMarkers=r.prototype.fitMapToMarkers,r.prototype.getCalculator=r.prototype.getCalculator,r.prototype.getGridSize=r.prototype.getGridSize,r.prototype.getExtendedBounds=r.prototype.getExtendedBounds,r.prototype.getMap=r.prototype.getMap,r.prototype.getMarkers=r.prototype.getMarkers,r.prototype.getMaxZoom=r.prototype.getMaxZoom,r.prototype.getMarkersCluster=r.prototype.getMarkersCluster,r.prototype.getStyles=r.prototype.getStyles,r.prototype.getTotalClusters=r.prototype.getTotalClusters,r.prototype.getTotalMarkers=r.prototype.getTotalMarkers,r.prototype.redraw=r.prototype.redraw,r.prototype.removeMarker=r.prototype.removeMarker,r.prototype.removeMarkers=r.prototype.removeMarkers,r.prototype.resetViewport=r.prototype.resetViewport,r.prototype.repaint=r.prototype.repaint,r.prototype.setCalculator=r.prototype.setCalculator,r.prototype.setGridSize=r.prototype.setGridSize,r.prototype.setMaxZoom=r.prototype.setMaxZoom,r.prototype.onAdd=r.prototype.onAdd,r.prototype.draw=r.prototype.draw,o.prototype.getCenter=o.prototype.getCenter,o.prototype.getSize=o.prototype.getSize,o.prototype.getMarkers=o.prototype.getMarkers,n.prototype.onAdd=n.prototype.onAdd,n.prototype.draw=n.prototype.draw,n.prototype.onRemove=n.prototype.onRemove}}]);