PageSourceSearch

https://www.smarty-hotels.com/integration/tc-theme/public/js/chunk…nk-tc-custom-map-ui-97b06bb0fe69c5c624d8.js

js smarty-hotels.com collected 2026-09-26 11:39:45 UTC 2,962 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[5764],{5436(e,t,a){var l=a(1919),n=a.n(l),o=a(8972),i=a(4374),s=a(5589),r=a(7275),d=a(4692);const{Gb:m,_k:c}=o.iW;let p;n().templateSettings=c;let u,h,g,f,C,w,k,v,x,z,L,M=!1,b=null,j=null,y=!1,O=[],Z=13,A=[],_={},B="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",I=d("#filter-hotels-show-map"),S=d("#filter-hotels-show-list"),T=d("#hotels-map"),F=d("#hotels-list");const P=(e={})=>{(0,i.o)(o.nf+"/list",{module:"hotel",fields:[],filters:e}).then(e=>{O=e}).finally(()=>{U()})},D=(e,t,a)=>{e.addListener("click",function(){null!=z&&null!=z.getMap()?z.close():z==t&&(z=null),z&&z.close(),v.setCenter(a),v.setZoom(15),z=t,p=z,z.open(v,e)}),j.event.addListener(e,"click",function(){let a=A.length-1;for(let l=0;l<=a;l++)A[l].setIcon(h),l===a&&(g&&e.setIcon(g),t.open(v,this))})},G=e=>{let t=A.length-1;for(let a=0;a<=t;a++)A[a].setMap(null),A[a]=null,a===t&&(A=[],M=!1,x&&x.clearMarkers(),P(e))},U=()=>{b.data("mapObject")?(v=b.data("mapObject"),y&&(p&&(p.close(),p=null),M&&b.trigger("clearAllMarkers"))):(v=new j.Map(b[0],_),b.data("mapObject",v),b.on("clearAllMarkers",function(){G({})}),j.event.addListenerOnce(v,"bounds_changed",()=>{v.getZoom()>14&&v.setZoom(14)}),d("#filter-hotels").on("hotelListTriggered",function(e){d(e.currentTarget).attr("data-filters",e.detail.filters),y=!0,G(e.detail.filters)}),I.on("click keydown",()=>{T.hasClass("hidden")&&(T.removeClass("hidden"),I.attr("aria-expanded",!0),F.addClass("hidden"),S.attr("aria-expanded",!1),v.fitBounds(L))}),S.on("click keydown",()=>{F.hasClass("hidden")&&(F.removeClass("hidden"),S.attr("aria-expanded",!0),T.addClass("hidden"),I.attr("aria-expanded",!1))})),"mobile"==C&&v.panBy(0,100),M||(()=>{if(O.map(e=>{if(e.latitude&&e.longitude){let t=e.latitude,a=e.longitude,l=new j.LatLng(t,a),o=e.name,i=w&&k?new j.Size(w,k):null,r={position:l,map:v,optimized:!1,title:o};h.length>0&&(r={position:l,map:v,icon:{url:h,scaledSize:i},optimized:!1,title:o});let m=new j.Marker(r),c=n().template(d("#hotels-map").find(".js-filters__template_map").html());u=c(e);let p=new s.A({content:u,gMap:j});A.push(m),M=!0,L.extend(new j.LatLng(t,a)),D(m,p,l)}}),f){let e=parseInt(b.data("cluster-max-zoom"),10)||9;b.data("cluster-image").length>0?(B=b.data("cluster-image"),x=new r.A(v,A,{imagePath:B,styles:[{url:B,width:w,height:k,textColor:b.data("cluster-font-color")}],zoomOnClick:!0,maxZoom:e})):x=new r.A(v,A,{imagePath:B,zoomOnClick:!0,maxZoom:e})}v.fitBounds(L)})()};a.d(t,["default",0,(e,t=!1,a)=>{b=e,y=t,j=a,T.removeClass("not-built"),h=b.data("pin"),g=b.data("active-pin-image"),Z=b.data("zoom")||13,f=b.data("cluster"),C=m(),w=b.data("pin-width")||50,k=b.data("pin-height")||50,L=new j.LatLngBounds,_={zoom:Z,minZoom:1.5,repeat:0,disableDefaultUI:!0,panControl:!1,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,overviewMapControl:!1,rotateControl:!1},P()}])}}]);

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.