PageSourceSearch

https://www.antholzertal.com/cache-buster-1788276533/bundles/destisuite/html/dist/js/app_106.js

js antholzertal.com collected 2026-10-10 00:31:35 UTC 120,587 bytes, 1 lines download raw bytes

1!function(t){function e(e){for(var n,s,r=e[0],d=e[1],c=e[2],u=0,m=[];u<r.length;u++)s=r[u],Object.prototype.hasOwnProperty.call(i,s)&&i[s]&&m.push(i[s][0]),i[s]=0;for(n in d)Object.prototype.hasOwnProperty.call(d,n)&&(t[n]=d[n]);for(l&&l(e);m.length;)m.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var t,e=0;e<o.length;e++){for(var a=o[e],n=!0,r=1;r<a.length;r++){var d=a[r];0!==i[d]&&(n=!1)}n&&(o.splice(e--,1),t=s(s.s=a[0]))}return t}var n={},i={1:0},o=[];function s(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.e=function(t){var e=[],a=i[t];if(0!==a)if(a)e.push(a[2]);else{var n=new Promise((function(e,n){a=i[t]=[e,n]}));e.push(a[2]=n);var o,r=document.createElement("script");r.charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.src=function(t){return s.p+"js/"+({0:"vendors~vendor-clndr~vendor-daterangepicker~vendor-moment",2:"vendor-tooltip",3:"vendor-wnumb",5:"vendors~vendor-clndr",6:"vendors~vendor-daterangepicker",7:"vendors~vendor-nouislider"}[t]||t)+"_106.js"}(t);var d=new Error;o=function(e){r.onerror=r.onload=null,clearTimeout(c);var a=i[t];if(0!==a){if(a){var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;d.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",d.name="ChunkLoadError",d.type=n,d.request=o,a[1](d)}i[t]=void 0}};var c=setTimeout((function(){o({type:"timeout",target:r})}),12e4);r.onerror=r.onload=o,document.head.appendChild(r)}return Promise.all(e)},s.m=t,s.c=n,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/bundles/destisuite/html/dist/",s.oe=function(t){throw console.error(t),t};var r=window.webpackJsonp=window.webpackJsonp||[],d=r.push.bind(r);r.push=e,r=r.slice();for(var c=0;c<r.length;c++)e(r[c]);var l=d;o.push([28,4]),a()}([,,,,,,,,,function(t,e,a){},,,,,function(t,e,a){var n=a(0);if(window.jQuery=n,n.fn.setDsAppCookie=function(t){var e=new Date;e.setTime(e.getTime()+36e5);var a="expires="+e.toUTCString();document.cookie="ds_app_cookie="+t+"; "+a+"; path=/ "},n.fn.getDsAppCookie=function(){for(var t="ds_app_cookie=",e=document.cookie.split(";"),a=0;a<e.length;a++){for(var n=e[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""},n.fn.getDsAppCookieParsed=function(){var t=n(document).getDsAppCookie();try{return JSON.parse(t)}catch(t){return null}},n.fn.checkDsAppCookies=function(){var t=!!n(document).getDsAppCookie();if(t){var e=n(document).getDsAppCookieParsed();return void 0!==e.ds_accommodationsPageWidget_lastSearches&&void 0!==e.genericHrefParam}return t},n.fn.dsAppCookies_initialize=function(){n(document).setDsAppCookie(JSON.stringify({ds_accommodationsPageWidget_lastSearches:{},genericHrefParam:{}}))},n.fn.dsAppCookies_accoPageWidget_buildKey=function(t,e){var a=window.location.href;void 0!==e&&(a=e);var i="";a.split("?").length>0&&(i=new URLSearchParams("?"+a.split("?")[1]).get("special_layout"));a=(a=a.split("?")[0]).split("#")[0];var o=t.closest(".pimcore_area_content");return a+"_"+n(".pimcore_area_content").index(o)+"_"+i},n.fn.dsAppCookies_accoPageWidget_setLastSearched=function(t,e,a){var i=new Date;i.setTime(i.getTime()+9e5);var o=n(document).dsAppCookies_accoPageWidget_buildKey(t,a),s=n(document).getDsAppCookieParsed(),r=e;r="/"+r.replace(/^(?:\/\/|[^/]+)*\//,""),s.ds_accommodationsPageWidget_lastSearches[o]={url:r,expirationTimestamp:i.getTime()},n(document).setDsAppCookie(JSON.stringify(s))},n.fn.dsAppCookies_accoPageWidget_getLastSearchedFromAllWidget=function(){var t=n(document).getDsAppCookieParsed(),e=null,a=0;if(void 0===t.ds_accommodationsPageWidget_lastSearches)return e;for(const[n,i]of Object.entries(t.ds_accommodationsPageWidget_lastSearches))i.expirationTimestamp>a&&(a=i.expirationTimestamp,e=i.url);return e},n.fn.dsAppCookies_accoPageWidget_getLastSearched=function(t){var e=n(document).dsAppCookies_accoPageWidget_buildKey(t),a=n(document).getDsAppCookieParsed();if(void 0===a.ds_accommodationsPageWidget_lastSearches[e])return null;var i=a.ds_accommodationsPageWidget_lastSearches[e],o=i.expirationTimestamp;return(new Date).getTime()>o?null:i.url},n.fn.dsAppCookies_genericHrefParam_buildKey=function(t){return t},n.fn.dsAppCookies_genericHrefParam_set=function(t){var e=new Date;e.setTime(e.getTime()+9e5);var a=n(document).dsAppCookies_genericHrefParam_buildKey(t.id),i=n(document).getDsAppCookieParsed(),o=!0;null!=t&&(o=!Object.keys(t).some(t=>"id"!==t)),o?void 0!==i.genericHrefParam[a]&&delete i.genericHrefParam[a]:i.genericHrefParam[a]={data:t,expirationTimestamp:e.getTime()},n(document).setDsAppCookie(JSON.stringify(i))},n.fn.dsAppCookies_genericHrefParam_get=function(t){var e=n(document).dsAppCookies_genericHrefParam_buildKey(t),a=n(document).getDsAppCookieParsed();if(void 0===a.genericHrefParam[e])return null;var i=a.genericHrefParam[e],o=i.expirationTimestamp;return(new Date).getTime()>o?null:i.data},n(document).checkDsAppCookies()||n(document).dsAppCookies_initialize(),n(".js-acco-custom-search-redirect").length>0){var i=n(".js-acco-custom-search-redirect"),o=i.attr("data-url"),s=i.attr("data-redirect");n(document).dsAppCookies_accoPageWidget_setLastSearched(n("none"),o,s),window.location.replace(s)}},function(t,e){void 0===window.dsApp&&(window.dsApp={}),window.dsApp.initNavTabs=function(t){t.querySelectorAll(".ds-nav-tabs .nav-link").forEach((t,e)=>{t.addEventListener("click",(function(t){t.preventDefault();var e=t.target,a=e.getAttribute("href").substr(1);e.closest(".ds-nav-tabs").querySelectorAll(".nav-link").forEach((t,e)=>{t.classList.remove("active"),t.setAttribute("aria-selected","false")}),e.classList.add("active"),e.setAttribute("aria-selected","true");var n=document.getElementById(a);n.closest(".tab-content").querySelectorAll(".tab-pane").forEach((t,e)=>{t.classList.remove("show"),t.setAttribute("aria-hidden","true"),setTimeout((function(){t.classList.remove("active")}),150)}),n.classList.add("show"),n.setAttribute("aria-hidden","false"),setTimeout((function(){var t;n.classList.add("active");document.createEvent?((t=document.createEvent("HTMLEvents")).initEvent("shown.bs.tab",!0,!0),t.eventName="shown.bs.tab",n.dispatchEvent(t)):((t=document.createEventObject()).eventName="shown.bs.tab",t.eventType="shown.bs.tab",n.fireEvent("on"+t.eventType,t))}),150)}))})},window.dsApp.initNavTabs(document)},function(t,e){void 0===window.dsMap&&(window.dsMap={},window.mapList=[],window.mapMarkers=[],window.mapMarkerClusters=[],window.mapPolylines=[]),window.dsMap.removeMap=function(t){void 0!==window.mapList[t]?(window.dsMap.removeMarkerAndCluster(t),void 0!==window.mapList[t]&&null!=window.mapList[t]&&(window.mapList[t]=null)):console.log("map not found widh id: "+t)},window.dsMap.removeMarkerAndCluster=function(t){if(void 0!==window.mapList[t]){var e=window.mapList[t];if(void 0!==window.mapMarkers[t]){for(var a=0;a<window.mapMarkers[t].length;a++)e.removeLayer(window.mapMarkers[t][a]);window.mapMarkers[t]=[]}if(void 0!==window.mapMarkerClusters[t]){for(a=0;a<window.mapMarkerClusters[t].length;a++)e.removeLayer(window.mapMarkerClusters[t][a]);window.mapMarkerClusters[t]=[]}}else console.log("map not found widh id: "+t)},window.dsMap.handleMarkerDatas=function(t,e,n){void 0!==e.tour_geojson&&m(t,e.tour_geojson),void 0!==e.pois&&p(t,e.pois,i()),void 0!==e.events&&p(t,e.events,o()),void 0!==e.experiences&&p(t,e.experiences,s()),void 0!==e.accommodations&&p(t,e.accommodations,r(),!1,"customPopup customPopup--accommodation"),void 0!==e.start_points&&p(t,e.start_points,d(),!0),void 0!==e.end_points&&p(t,e.end_points,c(),!0),void 0!==n&&n&&a(t)};var a=function(t){var e=window.mapList[t];if(window.mapMarkers[t].length>1){var a=new L.featureGroup(window.mapMarkers[t].concat(window.mapMarkerClusters[t]).concat(window.mapPolylines[t]));e.fitBounds(a.getBounds().pad(.05))}else if(window.mapPolylines[t].length>0){a=new L.featureGroup(window.mapPolylines[t]);e.fitBounds(a.getBounds().pad(.05))}else 1==window.mapMarkers[t].length&&e.panTo(window.mapMarkers[t][0]._latlng)},n=function(t,e,a){if(void 0!==window.mapList[t]&&window.mapList[t]){var n=window.mapList[t],i=L.icon({iconUrl:multisiteConfig.map_marker_dir+"/marker.svg",iconSize:[20,27]}),o=L.marker([e,a],{icon:i}).addTo(n);window.mapMarkers[t].push(o)}},i=function(){return l(multisiteConfig.map_marker_dir+"/marker-poi.svg")},o=function(){return l(multisiteConfig.map_marker_dir+"/marker-event.svg")},s=function(){return l(multisiteConfig.map_marker_dir+"/marker-experience.svg")}
1,r=function(){return l(multisiteConfig.map_marker_dir+"/marker-accommodation.svg")},d=function(){return l(multisiteConfig.map_marker_dir+"/marker-start-point.svg")},c=function(){return l(multisiteConfig.map_marker_dir+"/marker-end-point.svg")},l=function(t){return{clickable:!0,keyboard:!1,draggable:!1,icon:L.icon({iconUrl:t,iconSize:[26,35]}),zIndexOffset:999999}},u=function(t){t&&(void 0!==window.dsApp&&("function"==typeof window.dsApp.initSwiperGallery&&window.dsApp.initSwiperGallery(t),"function"==typeof window.dsApp.initLightbox&&window.dsApp.initLightbox(t)),"function"==typeof window.ds_onWatchlistToggleChanged&&window.ds_onWatchlistToggleChanged(),"undefined"!=typeof jQuery&&"function"==typeof jQuery.fn.updateEnquiryCheckboxInAccommodationResult&&jQuery(document).updateEnquiryCheckboxInAccommodationResult())},m=function(t,e){!function(t,e){var a=window.mapList[t],n={color:"#b00000",weight:3,opacity:.9},i=function(t){var e={color:"#b00000",weight:5,opacity:1};t.setStyle(e)},o=function(t){var e=n;t.setStyle(e)};if(e.features)for(var s=0;s<e.features.length;s++){var r,d=new Array,c=e.features[s].geometry.coordinates,l=e.features[s].properties,m=null;void 0!==l.popup_url&&(m=l.popup_url),c=c[0];for(var p=0;p<c.length;p++){var f=new L.LatLng(c[p][1],c[p][0]);d.push(f)}var h=n;if(r=new L.Polyline(d,h),m){var v='<div class="js-ajax-content" data-url="'+m+'"><div class="ds-loading"><div class="spinner-border" role="status"></div></div></div>';r.bindPopup(v,{className:"customPopup",minWidth:350,autoPan:!1}),r.on("click",(function(t){var e=t.target,n=(new DOMParser).parseFromString(e._popup._content,"text/html").querySelector(".js-ajax-content");if(null!==n){var i=n.getAttribute("data-url");fetch(i).then(t=>t.text()).then(e=>{document.querySelectorAll('.js-ajax-content[data-url="'+i+'"]').forEach((t,a)=>{t.innerHTML=e,u(t)});var n=a.project(t.target._popup._latlng);n.y-=t.target._popup._container.clientHeight/2,a.panTo(a.unproject(n),{animate:!0})})}}))}r.on("mouseover",(function(){i(jQuery(this)[0])})),r.on("click",(function(){jQuery(this)[0]})),r.on("mouseout",(function(){o(jQuery(this)[0])})),r.addTo(a),window.mapPolylines[t].push(r)}}(t,e)},p=function(t,e,a,n,i){if(e&&0!=e.length){for(var o=window.mapList[t],s=new L.MarkerClusterGroup({iconCreateFunction:function(t){return L.divIcon({html:'<div class="cluster_marker_primary"><span style="">'+t.getChildCount()+"</span></div>",className:" marker-cluster ",iconSize:L.point(34,34)})},spiderfyOnMaxZoom:!0}),r=0;r<e.length;r++){var d=e[r],c=d.lat,l=d.lng,m=d.url,p=L.marker(L.latLng(c,l),a);if(void 0!==n&&n);else if(m){var f='<div class="js-ajax-content" data-url="'+m+'"><div class="ds-loading"><div class="spinner-border" role="status"></div></div></div>';p.bindPopup(f,{className:void 0!==i&&i?i:"customPopup",minWidth:350,autoPan:!1}),p.on("click",(function(t){var e=t.target,a=(new DOMParser).parseFromString(e._popup._content,"text/html").querySelector(".js-ajax-content");if(null!==a){var n=a.getAttribute("data-url");fetch(n).then(t=>t.text()).then(e=>{document.querySelectorAll('.js-ajax-content[data-url="'+n+'"]').forEach((t,a)=>{t.innerHTML=e,u(t)});var a=o.project(t.target._popup._latlng);a.y-=t.target._popup._container.clientHeight/2,o.panTo(o.unproject(a),{animate:!0})})}}))}else{var h=document.getElementById(t).getAttribute("data-direction-tooltip");s.bindTooltip(h,{direction:"top"}),p.on("click",(function(t){var e=t.target._map._container.getAttribute("data-google-dir-url");e=(e=e.replace("__LAT__",t.latlng.lat)).replace("__LNG__",t.latlng.lng);window.open(e,"_blank")}))}s.addLayer(p),window.mapMarkers[t].push(p)}o.addLayer(s),window.mapMarkerClusters[t].push(s)}};window.dsMap.initMap=function(){0!=document.querySelectorAll(".js-map").length&&function(t){if(null!==document.getElementById("dsLeafletScript"))t();else{var e=document.createElement("script");e.type="text/javascript",e.id="dsLeafletScript",e.src="/bundles/destisuite/js/leaflet/leaflet.js",document.body.appendChild(e),document.querySelector("#dsLeafletScript").addEventListener("load",(function(){t()}))}}((function(){!function(t){if(null!==document.getElementById("dsLeafletGestureScript"))t
1();else{var e=document.createElement("script");e.type="text/javascript",e.id="dsLeafletGestureScript",e.src="/bundles/destisuite/js/leaflet/gesture/leaflet-gesture-handling.min.js",document.body.appendChild(e),document.querySelector("#dsLeafletGestureScript").addEventListener("load",(function(){t()}))}}((function(){!function(t){if(null!==document.getElementById("dsLeafletMarkerclusterScript"))t();else{var e=document.createElement("script");e.type="text/javascript",e.id="dsLeafletMarkerclusterScript",e.src="/bundles/destisuite/js/leaflet/markercluster/leaflet.markercluster.js",document.body.appendChild(e),document.querySelector("#dsLeafletMarkerclusterScript").addEventListener("load",(function(){t()}))}}((function(){!function(){for(var t=["/bundles/destisuite/js/leaflet/gesture/leaflet-gesture-handling.min.css","/bundles/destisuite/js/leaflet/markercluster/MarkerCluster.css"],e=0;e<t.length;e++){let a=document.getElementsByTagName("HEAD")[0],n=document.createElement("link");n.id="dsLeafletStyle_"+e,n.rel="stylesheet",n.type="text/css",n.href=t[e],a.prepend(n)}}(),document.querySelectorAll(".js-map").forEach((t,e)=>{if(!t.classList.contains("js-map-initialized")){t.classList.add("js-map-initialized");var i=t.getAttribute("id"),o=null,s=null;null!==t.getAttribute("data-lat")&&null!==t.getAttribute("data-lng")&&(o=parseFloat(t.getAttribute("data-lat")),s=parseFloat(t.getAttribute("data-lng"))),function(t,e,i){if(null!==document.getElementById(t)){if(void 0!==window.mapList[t]&&null!=window.mapList[t])return void console.log('skip initialization of map id "'+t+'" (already initialized)');var o=document.getElementById(t);L.Control.prototype._refocusOnMap=function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus({preventScroll:!0})};var s={zoom:13,zoomControl:!1,gestureHandling:!0};null!==o.getAttribute("data-disable-scroll-zoom")&&(s.scrollWheelZoom=!1);var r=new L.Map(t,s);if(L.control.zoom({position:"topright"}).addTo(r),"openstreetmap"==o.getAttribute("data-layer"))var d=L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{id:"mtbmap",maxZoom:18,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &amp; USGS'});else if("tour"==o.getAttribute("data-layer"))d=L.tileLayer("https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",{id:"mtbmap",maxZoom:15,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &amp; Kartendarstellung: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>'});else d=L.tileLayer("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",{id:"h_osm",maxZoom:18,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>'});if(r.addLayer(d),window.mapList[t]=r,window.mapMarkers[t]=[],window.mapMarkerClusters[t]=[],window.mapPolylines[t]=[],null!==o.getAttribute("data-zoom")){var c=parseInt(o.getAttribute("data-zoom"));r.setZoom(c)}if(null!==o.getAttribute("data-marker-on-center")&&e&&i&&n(t,e,i),null!==o.getAttribute("data-entities-data")){var l=JSON.parse(o.getAttribute("data-entities-data"));window.dsMap.handleMarkerDatas(t,l)}if(null!==o.getAttribute("data-fit-marker-bounds"))a(t);else if(e&&i){var u=new L.LatLng(e,i);r.panTo(u)}}}(i,o,s)}})}))}))}))},window.dsMap.initMap()},function(t,e,a){var n,i,o;i=[a(0)],void 0===(o="function"==typeof(n=function(t){var e=Array.prototype.slice,a=Array.prototype.splice,n={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},i=t(window),o=t(document),s=[],r=i.height(),d=function(){for(var e=i.scrollTop(),a=o.height(),n=a-r,d=e>n?n-e:0,c=0,l=s.length;c<l;c++){var u=s[c],m=u.stickyWrapper.offset().top-u.topSpacing-d;if(u.stickyWrapper.css("height",u.stickyElement.outerHeight()),e<=m)null!==u.currentTop&&(u.stickyElement.css({width:"",position:"",top:"","z-index":""}),u.stickyElement.parent().removeClass(u.className),u.stickyElement.trigger("sticky-end",[u]),u.currentTop=null);else{var p,f=a-u.stickyElement.outerHeight()-u.topSpacing-u.bottomSpacing-e-d;f<0?f+=u.topSpacing:f=u.topSpacing,u.currentTop!==f&&(u.getWidthFrom?(padding=u.stickyElement.innerWidth()-u.stickyElement.width(),p=t(u.getWidthFrom).width()-padding||null):u.widthFromWrapper&&(p=u.stickyWrapper.width()),null==p&&(p=u.stickyElement.width()),u.stickyElement.css("width",p).css("position","fixed").css("top",f).css("z-index",u.zIndex),u.stickyElement.parent().addClass(u.className),null===u.currentTop?u.stickyElement.trigger("sticky-start",[u]):u.stickyElement.trigger("sticky-update",[u]),u.currentTop===u.topSpacing&&u.currentTop>f||null===u.currentTop&&f<u.topSpacing?u.stickyElement.trigger("sticky-bottom-reached",[u]):null!==u.currentTop&&f===u.topSpacing&&u.currentTop<f&&u.stickyElement.trigger("sticky-bottom-unreached",[u]),u.currentTop=f);var h=u.stickyWrapper.parent();u.stickyElement.offset().top+u.stickyElement.outerHeight()>=h.offset().top+h.outerHeight()&&u.stickyElement.offset().top<=u.topSpacing?u.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):u.stickyElement.css("position","fixed").css("top",f).css("bottom","").css("z-index",u.zIndex)}}},c=function(){r=i.height();for(var e=0,a=s.length;e<a;e++){var n=s[e],o=null;n.getWidthFrom?n.responsiveWidth&&(o=t(n.getWidthFrom).width()):n.widthFromWrapper&&(o=n.stickyWrapper.width()),null!=o&&n.stickyElement.css("width",o)}},l={init:function(e){return this.each((function(){var a=t.extend({},n,e),i=t(this),o=i.attr("id"),r=o?o+"-"+n.wrapperClassName:n.wrapperClassName,d=t("<div></div>").attr("id",r).addClass(a.wrapperClassName);i.wrapAll((function(){if(0==t(this).parent("#"+r).length)return d}));var c=i.parent();a.center&&c.css({width:i.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===i.css("float")&&i.css({float:"none"}).parent().css({float:"right"}
1),a.stickyElement=i,a.stickyWrapper=c,a.currentTop=null,s.push(a),l.setWrapperHeight(this),l.setupChangeListeners(this)}))},setWrapperHeight:function(e){var a=t(e),n=a.parent();n&&n.css("height",a.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver((function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&l.setWrapperHeight(t)})).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",(function(){l.setWrapperHeight(t)}),!1),t.addEventListener("DOMNodeRemoved",(function(){l.setWrapperHeight(t)}),!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",(function(){l.setWrapperHeight(t)})),t.attachEvent("onDOMNodeRemoved",(function(){l.setWrapperHeight(t)})))},update:d,unstick:function(e){return this.each((function(){for(var e=t(this),n=-1,i=s.length;i-- >0;)s[i].stickyElement.get(0)===this&&(a.call(s,i,1),n=i);-1!==n&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))}))}};window.addEventListener?(window.addEventListener("scroll",d,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",d),window.attachEvent("onresize",c)),t.fn.sticky=function(a){return l[a]?l[a].apply(this,e.call(arguments,1)):"object"!=typeof a&&a?void t.error("Method "+a+" does not exist on jQuery.sticky"):l.init.apply(this,arguments)},t.fn.unstick=function(a){return l[a]?l[a].apply(this,e.call(arguments,1)):"object"!=typeof a&&a?void t.error("Method "+a+" does not exist on jQuery.sticky"):l.unstick.apply(this,arguments)},t((function(){setTimeout(d,0)}))})?n.apply(e,i):n)||(t.exports=o)},function(t,e,a){var n=a(0);window.jQuery=n,void 0===window.dsApp&&(window.dsApp={});var i=function(t,e,a,i){var o=t.offset().top;return void 0!==e&&e&&(o+=t.outerHeight()),o=function(t){if("undefined"!=typeof ds_settings&&void 0!==ds_settings.header_sticky_selector&&""!=ds_settings.header_sticky_selector){var e=jQuery(""+ds_settings.header_sticky_selector);e.length>0&&n.each(e,(function(){jQuery(this).is(":visible")&&(t-=jQuery(this).outerHeight(!0))}))}return t}(o-=a),i&&(o=t.position().top),o};window.dsApp.scrollToEl=function(t,e,a){if("undefined"==typeof ds_settings||"function"!=typeof ds_settings.scrollToEl){if(t&&0!=t.length){void 0===a&&(a=0);var o=!1,s=jQuery("html,body");if(jQuery("body").hasClass("modal-open")&&(s=jQuery("#modal"),o=!0),t.length>0){var r=!1;if("smooth"==n("html").css("scroll-behavior")){r=!0;n("html").css("scroll-behavior","auto")}var d=i(t,e,a,o);s.animate({scrollTop:d},1e3,"linear"),r&&setTimeout((function(){n("html").css("scroll-behavior","smooth")}),1100),setTimeout((function(){var n=i(t,e,a,o);n!=d&&s.stop(!0,!1).animate({scrollTop:n},300,"linear")}),700)}}}else ds_settings.scrollToEl(t,e,a)},n.fn.scrollToEl=window.dsApp.scrollToEl,n.fn.updateFeratelSearchParams=function(t){var e=n(".tab-pane.active .ds-bookingWidgetContainer");0!=e.length?"undefined"!=typeof dw&&void 0!==dw.accommodationDetailQuickFind&&(void 0!==window.dsApp.initialized_acco_booking_widget&&void 0!==window.dsApp.initialized_acco_booking_widget.tosc_tag&&window.dsApp.initialized_acco_booking_widget.tosc_tag&&void 0!==window.dw&&(console.log("&&&&&&&","destroyTag"),window.dw.destroyTag(window.dsApp.initialized_acco_booking_widget.tosc_tag)),n.each(e,(function(){var e=n(this),a=e.attr("data-storage-id"),i=e.attr("data-db"),o=e.attr("data-acco-fid"),s=e.attr("data-start-date"),r=e.attr("data-end-date"),d=e.attr("data-ages-pro-room");if(void 0!==a&&void 0!==i&&void 0!==o&&void 0!==s&&void 0!==r&&void 0!==d&&""!=s&&""!=r&&""!=d){d=JSON.parse(d),s=new Date(s),r=new Date(r);for(var c={units:1,adults:2,children:[]},l=[],u=0;u<d.length;u++){for(var m=d[u].split(","),p=[],f=0,h=0;h<m.length;h++)""!=m[h]&&(m[h]>=18?f++:p.push(m[h]));if(f>0){var v=JSON.parse(JSON.stringify(c));v.adults=f,v.children=p,l.push(v)}}var g={dateFrom:s,dateTo:r,dbCode:i,id:o};for(u=0;u<l.length;u++)g["occupancy"+(u+1)]=l[u];dw.accommodationDetailQuickFind(a,g,(function(){t(!0)}))}else t(!1)}))):t(!1)},n.fn.initMobileDevicesEls=function(t){n.each(t.find(".ds-js-only-mobile-devices"),(function(){var t=n(this);window.dsApp.is_mobile()?t.addClass("ds-visible"):t.remove()}))},n(document).initMobileDevicesEls(n("body")),n(document).on("click",".ds-app-link",(function(t){t.preventDefault();var e=n(this).attr("data-android-link");window.dsApp.is_iOS()&&(e=n(this).attr("data-ios-link"));var a=n(this).attr("data-href");setTimeout((function(){window.open(e,"_blank")}),25),window.location=a})),n.fn.initSticky=function(t){var e=0,a=jQuery(""+ds_settings.header_sticky_selector);a.length>0&&n.each(a,(function(){jQuery(this).is(":visible")&&(e=jQuery(this).outerHeight(!0))})),t.find(".ds-sticky").sticky({topSpacing:e,zIndex:1999})};var o=null;n(window).resize((function(){null!=o&&clearTimeout(o),o=setTimeout((function(){n(".sticky").sticky("update")}),100)})),n.fn.elementInViewport=function(t){for(var e=t.offsetTop,a=t.offsetLeft,n=t.offsetWidth,i=t.offsetHeight;t.offsetParent;)e+=(t=t.offsetParent).offsetTop,a+=t.offsetLeft;return e<window.pageYOffset+window.innerHeight&&a<window.pageXOffset+window.innerWidth&&e+i>window.pageYOffset&&a+n>window.pageXOffset},n.fn.getVideoPortView=function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},n.fn.handleQuickRequestClass=function(){n("#ds-quick-request").length>0&&n("#ds-quick-request").hasClass("d-md-block")&&n("body").addClass("ds-withQuickRequest")},n.fn.handle_ds_request_buttons_mobile_visbility=function(){var t=n(".ds-detail-page--accommodation .ds-nav-tabs-outer-container .nav-link.active");0!=t.length&&("#tab-3"==t.attr("href")||"#tab-4"==t.attr("href")?n("#ds-request-buttons-mobile").addClass("ds-hidden"):n("#ds-request-buttons-mobile").removeClass("ds-hidden"))}},,function(t,e){window.ds_sha256=function(t){function e(t,e){return t>>>e|t<<32-e}for(var a,n,i=Math.pow,o=i(2,32),s="",r=[],d=8*t.length,c=window.ds_sha256.h=window.ds_sha256.h||[],l=window.ds_sha256.k=window.ds_sha256.k||[],u=l.length,m={},p=2;u<64;p++)if(!m[p]){for(a=0;a<313;a+=p)m[a]=p;c[u]=i(p,.5)*o|0,l[u++]=i(p,1/3)*o|0}for(t+="€";t.length%64-56;)t+="\0";for(a=0;a<t.length;a++){if((n=t.charCodeAt(a))>>8)return;r[a>>2]|=n<<(3-a)%4*8}for(r[r.length]=d/o|0,r[r.length]=d,n=0;n<r.length;){var f=r.slice(n,n+=16),h=c;for(c=c.slice(0,8),a=0;a<64;a++){var v=f[a-15],g=f[a-2],w=c[0],_=c[4],k=c[7]+(e(_,6)^e(_,11)^e(_,25))+(_&c[5]^~_&c[6])+l[a]+(f[a]=a<16?f[a]:f[a-16]+(e(v,7)^e(v,18)^v>>>3)+f[a-7]+(e(g,17)^e(g,19)^g>>>10)|0);(c=[k+((e(w,2)^e(w,13)^e(w,22))+(w&c[1]^w&c[2]^c[1]&c[2]))|0].concat(c))[4]=c[4]+k|0}for(a=0;a<8;a++)c[a]=c[a]+h[a]|0}for(a=0;a<8;a++)for(n=3;n+1;n--){var b=c[a]>>8*n&255;s+=(b<16?"0":"")+b.toString(16)}return s}},function(t,e){var a=function(){return void 0===ds_settings.ds_gtm_tracking_version?"1":ds_settings.ds_gtm_tracking_version};if(window.ds_get_gtm_tracking_version=a,-1!=window.ds_get_gtm_tracking_version().indexOf("custom_"));else{var n=function(){var t=jQuery(".js-gtm-acco-name");return 0==t.length?"":jQuery(t[0]).text().trim()},i=function(t){if(console.log(t),"undefined"==typeof dataLayer)return console.log("dataLayer not defined"),void(void 0!==t.eventCallback&&t.eventCallback());dataLayer.push(t),console.log(t.eventCallback),void 0!==t.eventCallback&&t.eventCallback()};window.ds_pushDataLayer=i;var o=function(t){var e=t.find('input[name="newsletter_on"]');e.length>0&&e.prop("checked")&&i({event:"nl_signup"})};window.ds_onSingleAccommodationRequestSent=function(t){"1"==a()&&(i({event:"hi-request",name:n()}),o(t))};window.ds_onMultipleAccommodationRequestSent=function(t,e,n){"1"==a()&&(i({"accomodations-info":e,event:"hi-multiple",amount:t}),o(n))};window.ds_onEnquiryEntityRequestSent=function(t){o(t)};window.ds_onAccoClickOnEmail=function(){"1"==a()&&i({event:"hi-mail",name:n()})};window.ds_trackVirtualPageView=function(t,e){"1"==a()&&i({event:"virtual_pageview",virtual_path:t,virtual_title:e})},"1"==a()&&(jQuery(document).on("click",".js-ds-track-acco-tel",(function(t){i({event:"hi-tel",name:n(),url:jQuery(this).attr("href")})})),jQuery(document).on("click",".js-ds-track-acco-email",(function(t){window.ds_onAccoClickOnEmail()})),jQuery(document).on("click",".js-ds-track-acco-website",(function(t){i({event:"hi-web",n
1ame:n(),url:jQuery(this).attr("href")})}))),jQuery(document).on("click",".js-ds-track-acco-rqst-link",(function(t){t.preventDefault();var e=jQuery(this).attr("href"),n={event:"hotel_click_request",name:jQuery(this).attr("data-ds-track-name"),eventTimeout:2e3};void 0!==jQuery(this).attr("data-generic-href")||(n.eventCallback=function(){window.location.href=e}),"1"==a()?i(n):void 0!==n.eventCallback&&n.eventCallback()})),jQuery(document).on("click",".js-ds-track-acco-book-link",(function(t){t.preventDefault();var e=jQuery(this).attr("href"),n={event:"hotel_click_booking",name:jQuery(this).attr("data-ds-track-name"),eventTimeout:2e3};void 0!==jQuery(this).attr("data-generic-href")||(n.eventCallback=function(){window.location.href=e}),"1"==a()?i(n):void 0!==n.eventCallback&&n.eventCallback()}))}},function(t,e){if(-1!=window.ds_get_gtm_tracking_version().indexOf("custom_")&&(window.ds_track={jQuery:jQuery,custom:{location:function(t){}},event:{cta_booking:function(t){},click_directions:function(t){}},accommodation:{cta_request_multiple:function(t,e){},cta_request_single:function(t){},cta_addto_request_multiple:function(t){},form_request_multiple:function(t,e){},form_request_single:function(t,e){},cta_booking_list:function(t){},cta_booking_detail:function(t){},form_booking:function(t,e,a,n,i){},search:function(t,e,a,n){}},experience:{cta_booking:function(t){},cta_cart:function(t){},cta_checkout:function(){},form_booking:function(t,e){}},general:{contact_web:function(t){},contact_tel:function(t){},contact_mail:function(t){},virtual_pageview:function(t,e){}},on_page_load_events:function(t){}},window.ds_onSingleAccommodationRequestSent=function(t){},window.ds_onMultipleAccommodationRequestSent=function(t,e,a){},window.ds_onEnquiryEntityRequestSent=function(t){},window.ds_onAccoClickOnEmail=function(){},window.ds_trackVirtualPageView=function(t,e){},void 0!==window.ds_track_config)){for(var a in window.ds_track_config)window.ds_track[a]=window.ds_track_config[a];void 0!==window.ds_track_config.custom_event_binding_init&&window.ds_track_config.custom_event_binding_init()}},function(t,e){if(-1!=window.ds_get_gtm_tracking_version().indexOf("custom_"));else{var a=function(t){if("2"==window.ds_get_gtm_tracking_version()){if(console.log("ds_pushDataLayer_v2--V2",t),"undefined"==typeof dataLayer)return console.log("dataLayer not defined"),void(void 0!==t.eventCallback&&t.eventCallback());var e=function(){};void 0!==t.eventCallback&&(e=t.eventCallback,delete t.eventCallback),dataLayer.push(t),setTimeout((function(){e()}),100)}};window.ds_pushDataLayer_v2=a,window.ds_track={custom:{location:function(t){a({event:"location",name:t.name+" - id:"+t.id})}},event:{cta_booking:function(t){a({event:"EVENTS_CTA_booking",name:t.title+" - id:"+t.id})},click_directions:function(t){a({event:"EVENTS_CLICK_directions",name:t.title+" - id:"+t.id})}},accommodation:{cta_request_multiple:function(t,e){a({event:"ACCOMODATION_CTA_request_multiple",amount:t})},cta_request_single:function(t){a({event:"ACCOMODATION_CTA_request_single",name:t.name+" - id:"+t.id})},cta_addto_request_multiple:function(t){a({event:"ACCOMODATION_CTA_addto_request_multiple",name:t.name+" - id:"+t.id})},form_request_multiple:function(t,e){a({event:"ACCOMODATION_FORM_request_multiple",amount:t})},form_request_single:function(t,e){a({event:"ACCOMODATION_FORM_request_single",name:t.name+" - id:"+t.id})},cta_booking_list:function(t){a({event:"ACCOMODATION_CTA_booking_list",name:t.name+" - id:"+t.id})},cta_booking_detail:function(t){a({event:"ACCOMODATION_CTA_booking_detail",name:t.name+" - id:"+t.id})},form_booking:function(t,e,n,i,o){"function"==typeof e.toISOString&&(e=(e=e.toISOString().split("T"))[0]),e=String(e),"function"==typeof n.toISOString&&(n=(n=n.toISOString().split("T"))[0]),n=String(n),a({event:"ACCOMODATION_FORM_booking",name:t,"arr-par":e+", "+n,persone:i,value:o})},search:function(t,e,n,i){var o={event:"ACCOMODATION_SEARCH","arr-par":(t=String(t))+", "+(e=String(e)),persone:n};void 0!==i&&(o.eventCallback=i),a(o)}},experience:{cta_booking:function(t){a({event:"EXPERIENCE_CTA_booking",name:t.title+" - id:"+t.id})},cta_cart:function(t){},cta_checkout:function(){a({event:"EXPERIENCE_CTA_checkout"})},form_booking:function(t,e){a({event:"EXPERIENCE_FORM_booking",name:t,value:e})}},general:{contact_web:function(t){a({event:"CONTACT_web",url:t})},contact_tel:function(t){a({event:"CONTACT_tel",number:t})},contact_mail:function(t){a({event:"CONTACT_mail",mail:t})},virtual_pageview:function(t,e){a({event:"virtual_pageview",virtual_path:t,virtual_title:e})}},on_page_load_events:function(t){jQuery.each(t.find(".js-ds-track-custom_location"),(function(){var t=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.custom.location(t)})),t.find(".js-ds-track-experience_cta_checkout").length>0&&window.ds_track.experience.cta_checkout()}}}window.ds_track.on_page_load_events(jQuery("body")),jQuery(document).on("click",".js-ds-track-event_cta_booking",(function(t){if(void 0!==jQuery(this).attr("data-gtm-el")){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.event.cta_booking(e)}})),jQuery(document).on("click",".js-ds-track-event_click_directions",(function(t){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.event.click_directions(e)})),jQuery(document).on("click",".js-ds-track-accommodation_cta_request_multiple",(function(t){var e=parseFloat(jQuery(this).attr("data-gtm-amount")),a=null;jQuery(this).closest(".ds-accomodationsPage").length>0&&(a=jQuery(this).closest(".ds-accomodationsPage")),window.ds_track.accommodation.cta_request_multiple(e,a)})),jQuery(document).on("click",".js-ds-track-accommodation_cta_request_single",(function(t){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.accommodation.cta_request_single(e)})),jQuery(document).on("click",".js-ds-track-accommodation_cta_booking_list",(function(t){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.accommodation.cta_booking_list(e)})),jQuery(document).on("click",".js-ds-track-accommodation_cta_booking_detail",(function(t){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.accommodation.cta_booking_detail(e)})),jQuery(document).on("click",".js-ds-track-experience_cta_booking",(function(t){var e=JSON.parse(jQuery(this).attr("data-gtm-el"));window.ds_track.experience.cta_booking(e)})),jQuery(document).on("click",".js-ds-track-general_contact_web",(function(t){var e=jQuery(this).attr("data-gtm-val");window.ds_track.general.contact_web(e)})),jQuery(document).on("click",".js-ds-track-general_contact_tel",(function(t){var e=jQuery(this).attr("data-gtm-val");window.ds_track.general.contact_tel(e)})),jQuery(document).on("click",".js-ds-track-general_contact_mail",(function(t){var e=jQuery(this).attr("data-gtm-val");window.ds_track.general.contact_mail(e)}))},function(t,e,a){var n=a(0);if(window.jQuery=n,window.mobilecheck=function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
1sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e=!0),e},n(document).on("click",".js-watchlistMenu a.js-scrollLink",(function(t){t.preventDefault();var e=n(this).attr("href"),a=n(""+e);a.length>0&&n(document).scrollToEl(a)})),window.mobilecheck()&&n(".ds-socials .ds-wsOuter").removeClass("d-none"),n(document).on("click",".ds-socials .js-openShareWindow",(function(t){t.preventDefault();var e="350",a=window.screen.height/2-e/2,i=window.screen.width/2-260,o=n(this).attr("data-social"),s=n(this).closest(".ds-socials").attr("data-share-title"),r=n(this).closest(".ds-socials").attr("data-share-url");if("fb"==o){var d="https://www.facebook.com/sharer.php?u="+encodeURIComponent(r);window.open(d,"sharer","top="+a+",left="+i+",toolbar=0,status=0,width=520,height="+e)}else if("tw"==o)window.open("https://twitter.com/share?url="+r+"&text="+encodeURIComponent(s),"sharer","top="+a+",left="+i+",toolbar=0,status=0,width=520,height="+e);else if("li"==o){e="700";var c=n(this).attr("href");window.open(c,"sharer","top="+a+",left="+i+",toolbar=0,status=0,width=520,height="+e)}})),n(".js-watchlist-index").length>0){n.each(n(".js-watchlist-index"),(function(){var t=n(this),e=t.attr("data-url");if(void 0!==e){var a=window.ds_getWatchlistCookies_keys();0==a.length&&(a=[-1]),n.get(e,{keys:a},(function(e){var a=(e=n("<div>"+e+"</div>")).find(".js-watchlist-index").attr("data-keys");a=JSON.parse(a),setWatchlistCookie(JSON.stringify(a)),updateWatchlistCounter(),t.html(e.find(".js-watchlist-index").html()),n(document).initSticky(t),n(document).initializeOpenStatus(t),n(document).scrollToEl(t)}))}}));var i=null;n(window).scroll((function(){null!=i&&clearTimeout(i),i=setTimeout((function(){if(void 0!==ds_settings.footer_selector&&null!=ds_settings.footer_selector){var t=n(".ds-menu-section.ds-sticky"),e=n(ds_settings.footer_selector);if(e.length>0&&t.length>0){var a=e.offset().top;if(t.offset().top+t.height()>a){if("function"==typeof n(".ds-menu-section.ds-sticky").unstick){if(0==n(".ds-menu-section.ds-sticky").closest(".sticky-wrapper").length)return;n(".ds-menu-section.ds-sticky").unstick(),n(".ds-menu-section.ds-sticky").css("height","auto")}}else{if(t.closest(".sticky-wrapper").length)return;if(function(){if(void 0===ds_settings.footer_selector||null==ds_settings.footer_selector)return!1;var t=n(ds_settings.footer_selector);return n(document).elementInViewport(t[0])}())return;n(document).initSticky(t.closest(".ds-col-sidebar-inner")),setTimeout((function(){t.sticky("update")}),10)}}}}),100)}))}var o=function(t,e){var a=new Date;a.setTime(a.getTime()+2592e6);var n="expires="+a.toUTCString();document.cookie="accopreferites_cookie="+t+"; "+n+"; path=/ "},s=function(){for(var t="accopreferites_cookie=",e=document.cookie.split(";"),a=0;a<e.length;a++){for(var n=e[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""},r=function(){var t=s();return t=JSON.parse(t),Array.isArray(t)?t:[]};s()||o(JSON.stringify([]));var d=r(),c=function(){var t=n(".js-enquiryBtn");t.attr("data-gtm-amount",d.length);var e=t.find(".ds-anfrageCounter");e.html(d.length),e.addClass("pulse"),setTimeout((function(){e.removeClass("pulse")}),1500),d.length>0?(t.removeClass("d-none"),e.removeClass("d-none"),t.find(".js-noItemText").addClass("d-none"),t.find(".js-withItemText").removeClass("d-none")):(t.addClass("d-none"),e.addClass("d-none"),t.find(".js-noItemText").removeClass("d-none"),t.find(".js-withItemText").addClass("d-none"))};n.fn.updateAccoPreferitesCounter=c,n((function(){var t=function(t){var e=function(t){t=parseInt(t);var e=s();if(e=JSON.parse(e),Array.isArray(e))for(var a=0;a<e.length;a++)if(e[a]==t)return!0;return!1}(t=parseInt(t)),a=s();a=JSON.parse(a),Array.isArray(a)||(a=[]);var n=!1;if(e){for(var i=[],c=0;c<a.length;c++)a[c]!=t&&i.push(a[c]);o(JSON.stringify(i)),n="removed"}else{var l=5;if("undefined"!=typeof ds_settings&&void 0!==ds_settings.accommodation&&void 0!==ds_settings.accommodation.multiple_enquiry_max_items&&(l=ds_settings.accommodation.multiple_enquiry_max_items),a.length>=l)return void alert(ds_translations.acco_wishlist.max_item_reached);a.push(t),o(JSON.stringify(a)),n="added"}return d=r(),n};if(n.fn.updateEnquiryCheckboxInAccommodationResult=function(){d=r();var t=n(' .ds-accomodationsPage .ds-accomodationResults input[name="to_wishlist"],  .ds-anfrageList .accommodations-list input[name="to_wishlist"],  .ds-hotel-item input[name="to_wishlist"],  .ds-hotel-card-item input[name="to_wishlist"] ');n.each(t,(function(){var t=n(this),e=t.val();e=parseInt(e);var a="";-1==d.indexOf(e)?(t.prop("checked",!1),void 0!==t.attr("data-watchlist-add-content")&&(a=t.attr("data-watchlist-add-content"))):(t.prop("checked",!0),void 0!==t.attr("data-watchlist-remove-content")&&(a=t.attr("data-watchlist-remove-content"))),""!=a&&t.closest("label").find("i").length>0&&t.closest("label").find("i").html(a)}))},n(document).on("click",'.ds-hotel-item input[name="to_wishlist"], .ds-preferite-accommodation input[name="to_wishlist"], .ds-hotel-item_grid-layout input[name="to_wishlist"], .ds-hotel-card-item input[name="to_wishlist"]',(function(e){n(this).is(":checked");var a=n(this).attr("value");if("added"==t(a)&&void 0!==window.ds_track){var i=JSON.parse(n(this).attr("data-gtm-el"));window.ds_track.accommodation.cta_addto_request_multiple(i)}if(c(),n(this).closest(".ds-enquiryListPage").length>0){var o=n(this).closest(".ds-enquiryListPage").attr("data-url");r().length>0&&(o=o+"?"+jQuery.param({"ids[]":r()})),window.location.href=o}n(document).updateEnquiryCheckboxInAccommodationResult()})),c(),n(document).updateEnquiryCheckboxInAccommodationResult(),n(document).on("click",".js-enquiryBtn",(function(t){t.preventDefault();var e=n(this).attr("data-href");e=e+"?"+jQuery.param({me:"1"}),r().length>0&&(e=e+"&"+jQuery.param({"ids[]":r()}));var a=n('#ds-accommodationSearchForm input[name="mealCode[]"]:checked');if(a.length>0){var i=null;n.each(a,(function(){var t=n(this);""!=t.attr("value")&&null==i&&(i=t.attr("value"))})),null!==i&&(e=e+"&"+jQuery.param({mealCode:i}))}if(n('#ds-accommodationSearchForm input[name="no_date"]:checked').length>0);else{var o=n('#ds-accommodationSearchForm input[name="arrival"]'),s=n('#ds-accommodationSearchForm input[name="departure"]');o.length>0&&s.length>0&&""!=o.val()&&""!=s.val()&&(e=(e=e+"&"+jQuery.param({arrival:o.val()}))+"&"+jQuery.param({departure:s.val()}))}for(var d=[],c=!0,l=1;c;l++){var u=n('#ds-accommodationSearchForm select[name="room-'+l+'-guest-age[]"]');if(u.length>0){var m=[];n.each(u,(function(){var t=n(this);m.push(t.val())})),d.push(m.join(","))}else c=!1}e=e+"&"+jQuery.param({"agesProRoom[]":d}),n(document).loadUrlInModal(e,!0)})),n(".ds-enquiryListPage").length>0){var e=n(".ds-enquiryListPage").attr("data-ids");e=JSON.parse(e),o(JSON.stringify(e))}n(document).on("click",".js-watchlist-remove-all",(function(t){window.ds_setWatchlistCookie(JSON.stringify([]),1),window.location.reload()}))}))},function(t,e,a){var n=a(0);window.jQuery=n,n((function(){n(document).on("submit",".ds-anfrageForm",(function(t){t.preventDefault();var e=n(this);e.find(".ds-bg-success, .ds-bg-error").remove();var a=e.find("input[required], select[required], textarea[required]"),i=!1,o=null,s=0;e.find('input[name="accomodation_ids"]').length>0&&(s=e.find('input[name="accomodation_ids"]').val().split(",").length);var r=null;if(void 0!==jQuery(this).attr("data-gtm-el")&&(r=JSON.parse(jQuery(this).attr("data-gtm-el"))),n.each(a,(function(){var t=n(this).val(),e=n(this).attr("type"),a=n(this);n(this).closest(".checkbox").length>0&&(a=n(this).closest(".checkbox")),"checkbox"==e?n(this).is(":checked")?a.removeClass("error"):(a.addClass("error"),null==o&&(o=a).closest(".ds-checkbox").length>0&&(o=o.closest(".ds-checkbox")),i=!0):""==t?(a.addClass("error"),null==o&&(o=a),i=!0):a.removeClass("error")})),i)return null!=o&&n(document).scrollToEl(o),!1;var d=e.find('input[name="email"]');if(!n(document).validateEmail(d.val()))return d.addClass("error"),null==o&&(o=d),null!=o&&n(document).scrollToEl(o),!1;if(d.removeClass("error"),i)return null!=o&&n(document).scrollToEl(o),!1;var c=e.attr("action"),l=e.find('button[type="submit"]');l.attr("disabled","disabled");var u=e.find('input[name="captchaKey"]').val();e.hasClass("js-ds-accoAnfrageForm")&&e.find('input[name="referer"]')&&""==e.find('input[name="referer"]').val()&&e.find('input[name="referer"]').val(n(document).dsAppCookies_accoPageWidget_getLastSearchedFromAllWidget()),window.ds.fillCsrfValue(e,(function(){gre
1captcha.ready((function(){grecaptcha.execute(u,{action:"action_name"}).then((function(t){e.find('input[name="captchaToken"]').val(t);var a="";e.find('input[name="accommodationNames"]').length>0&&(a=e.find('input[name="accommodationNames"]').val());var i=e.serialize();n.post(c,i,(function(t){l.removeAttr("disabled");var i=function(t){var e={date_departure:t.find('input[name="departure"]').length>0?t.find('input[name="departure"]').val():"",date_arrival:t.find('input[name="arrival"]').length>0?t.find('input[name="arrival"]').val():"",adult:t.find('select[name="num_adults"]').length>0?parseInt(t.find('select[name="num_adults"]').val()):"",children:t.find('select[name="num_children"]').length>0?parseInt(t.find('select[name="num_children"]').val()):"",customer:{gender:t.find('select[name="anrede"]').length>0?t.find('select[name="anrede"]').val():"",firstname:t.find('input[name="firstname"]').length>0?t.find('input[name="firstname"]').val():"",lastname:t.find('input[name="lastname"]').length>0?t.find('input[name="lastname"]').val():"",email:t.find('input[name="email"]').length>0?t.find('input[name="email"]').val():"",phone:t.find('input[name="phone"]').length>0?t.find('input[name="phone"]').val():""}};if(t.find('select[name="room"]').length>0&&""!=t.find('select[name="room"]').val()){var a=t.find('select[name="room"]').find('option[value="'+t.find('select[name="room"]').val()+'"]');a.length>0&&(e.room=a.text().trim())}return e}(e);t.success?(e.hasClass("js-track-acco-enquiry")&&s>0&&(1==s?window.ds_onSingleAccommodationRequestSent(e):window.ds_onMultipleAccommodationRequestSent(s,a,e)),e.hasClass("js-ds-track-accommodation_form_request_generic")&&s>0&&(1==s&&r?window.ds_track.accommodation.form_request_single(r,i):window.ds_track.accommodation.form_request_multiple(s,i)),e.hasClass("js-track-entity-enquiry")&&window.ds_onEnquiryEntityRequestSent(e),e.html('<p class="ds-bg-success">'+t.message+"</p>"),n(document).scrollToEl(e.find("p.ds-bg-success"))):void 0!==t.message&&(e.prepend('<p class="ds-bg-error">'+t.message+"</p>"),n(document).scrollToEl(e.find(".ds-bg-error"))),t=n(t)}))}))}))}))}))}))},function(t,e,a){void 0===window.dsApp&&(window.dsApp={});var n=a(0);window.jQuery=n,window.dsApp.trackingHelper_accoSearchFormData=function(t){var e=t.find("#ds-accommodationSearchForm"),a={none_period:e.find('input[name="no_date"]').length>0&&e.find('input[name="no_date"]').prop("checked")?"true":"false",date_departure:e.find('input[name="departure"]').length>0?e.find('input[name="departure"]').val():"",date_arrival:e.find('input[name="arrival"]').length>0?e.find('input[name="arrival"]').val():"",rooms:e.find('input[name="room-num"]').length>0?parseInt(e.find('input[name="room-num"]').val()):"",adult:0,children:0,location:[],category:[],stars:[],treatment:[],services:[],offers:[],name:e.find('input[name="accommodation_name"]').length>0?e.find('input[name="accommodation_name"]').val():""};n.each(e.find('input[name="ages[]"]'),(function(){for(var t=n(this).val().split(","),e=0;e<t.length;e++){var i=t[e].trim();""!=i&&((i=parseInt(i))<18?a.children++:a.adult++)}}));var i=function(t,e){n.each(t,(function(){if(n(this).prop("checked")){var t=n(this).val();void 0!==n(this).attr("data-gtm-name")?t=n(this).attr("data-gtm-name"):n(this).closest("label").length>0&&(t=n(this).closest("label").text().trim()),a[e].push(t)}})),a[e]=a[e].join(",")};return i(e.find('input[name="accommodationLocation[]"]'),"location"),i(e.find('input[name="accommodationCategory[]"]'),"category"),i(e.find('input[name="classifications[]"]'),"stars"),i(e.find('input[name="mealCode[]"]'),"treatment"),i(e.find('input[name="custom_facilities[]"]'),"services"),i(e.find('input[name="custom_offer_facilities[]"]'),"offers"),a};window.dsApp.addUtmToTrackAccoWebsiteUrl=function(t){if(void 0!==ds_settings["ds-track-acco-website_urlSuffix"]&&""!=ds_settings["ds-track-acco-website_urlSuffix"]){var e=ds_settings["ds-track-acco-website_urlSuffix"];n.each(t.find(".js-ds-track-acco-website"),(function(){var t=n(this),a=t.attr("href");-1==a.indexOf("?")?a+="?"+e:a+="&"+e,t.attr("href",a)}))}},n((function(){window.dsApp.addUtmToTrackAccoWebsiteUrl(n("body"));var t=function(t){var e=0,a=t.find("#accoFilterAccordion_heading_accoFilters .ds-counter");a.length>0&&(e=parseInt(a.html().trim()));var n=t.find(".ds-show-advanced-filter-button .ds-counter");n.length>0&&(n.html(e),e>0?n.removeClass("d-none"):n.addClass("d-none"))},e=function(e){void 0!==e&&e.length>0&&(window.dsApp.initSwiperGallery(e[0]),window.dsApp.initLightbox(e[0])),n.each(e.find(".ds-accommodations-list .ds-hotel-item .ds-content .ds-action"),(function(){var t=n(this).find(">a");1==t.length&&t.addClass("ds-btn-fullwidth")})),e.find(".ds-accomodationResults").find(".selectpicker").selectpicker(),t(e),window.ds_track.on_page_load_events(e),n(document).setAccoListingElMargins()},a=null,i=null,o=function(t,e,o,r,d){var c=t.find(".ds-accomodationResults .js-map"),l=t.find(".ds-accomodationSidebar"),u=c.attr("id"),m=t.find(".js-acccoNumStr
1ing"),p=t.find(".ds-acco-title"),f=t.find(".ds-accomodationResults .ds-loader"),h=c.closest(".ds-accommodationsPageWidget");f.removeClass("d-none"),h.addClass("js-ds-loading"),null!=a&&clearTimeout(a),t.find(".ds-accomodationResults .js-noEntities").remove(),a=setTimeout((function(){window.dsMap.removeMarkerAndCluster(u);var a=t.find("#ds-accommodationSearchForm"),v=a.attr("action");a.closest(".ds-accommodationsPageWidget").length>0&&(r=!0);var g=a.serializeArray();g.push({name:"ajax",value:"1"});var w="";if(void 0!==e)g={},w=(w=(v=e).split("?")).length>1?(w=w[1]).replace("&ajax=1","").replace("&noLayout=1",""):"";else{g.push({name:"page",value:"1"});var _=g;w=[],n.each(_,(function(t,e){"ajax"!=e.name&&"noLayout"!=e.name&&w.push(e)})),w=decodeURIComponent(n.param(w))}void 0!==r&&1==r||history.pushState({type:"accommodationSearch"},"","?"+w);var k=Date.now();f.removeClass("d-none"),(null==i||i<k)&&(i=k),n.get(v,g,(function(e){if(k==i){var r=(e=n("<div>"+e+"</div>")).find(".ds-accomodationSidebar");if(0==c.length)t.find(".ds-accomodationResults").html(e.find(".ds-accomodationsPage .ds-accomodationResults").html()),c=t.find(".ds-accomodationResults .js-map"),u=c.attr("id"),window.dsMap.initMap();else if(e.find("#"+u).length>0&&void 0!==e.find("#"+u).attr("data-entities-data")){var v=JSON.parse(e.find("#"+u).attr("data-entities-data"));window.dsMap.handleMarkerDatas(u,v,!0)}c.closest(".ds-accomodationResults").append(e.find(".ds-accomodationResults .js-noEntities")),void 0!==o&&1==o&&(l.html(r.html()),l.find(".selectpicker").selectpicker(),n(document).initDatepicker(l)),s(e,l),f.addClass("d-none"),h.removeClass("js-ds-loading"),m.html(e.find(".js-acccoNumString").html()),p.html(e.find(".ds-acco-title").html()),n(document).updateAccoPreferitesCounter();var g=a.closest(".ds-accommodationsPageWidget");g.length>0&&n(document).dsAppCookies_accoPageWidget_setLastSearched(g,this.url),window.dsApp.addUtmToTrackAccoWebsiteUrl(t.find),void 0!==d&&d(t)}}))}),500)},s=function(t,e){e.find(".ds-acco-tag-panelGroup").html(t.find(".ds-acco-tag-panelGroup").html())},r=function(t,o,r,d,c){var l=t.find(".ds-accomodationResults"),u=t.find(".ds-accomodationSidebar"),m=t.find(".js-acccoNumString"),p=t.find(".ds-acco-title"),f=l.closest(".ds-accomodationResults").find(".ds-loader"),h=l.closest(".ds-accommodationsPageWidget");f.removeClass("d-none"),h.addClass("js-ds-loading"),null!=a&&clearTimeout(a),a=setTimeout((function(){var a=t.find("#ds-accommodationSearchForm"),v=a.attr("action");a.closest(".ds-accommodationsPageWidget").length>0&&(d=!0);var g=a.serializeArray();g.push({name:"ajax",value:"1"});var w="";if(void 0!==o)g={},w=(w=(v=o).split("?")).length>1?(w=w[1]).replace("&ajax=1","").replace("&noLayout=1",""):"";else{g.push({name:"page",value:"1"});var _=g;w=[],n.each(_,(function(t,e){"ajax"!=e.name&&"noLayout"!=e.name&&w.push(e)})),w=decodeURIComponent(n.param(w))}void 0!==d&&1==d||history.pushState({type:"accommodationSearch"},"","?"+w);var k=Date.now();f.removeClass("d-none"),(null==i||i<k)&&(i=k),n.get(v,g,(function(o){if(k==i){o=n(o),l.find(".js-map").length>0&&n.each(l.find(".js-map"),(function(){var t=n(this).attr("id");window.dsMap.removeMap(t)}));var d=o.find(".ds-accomodationResults"),v=o.find(".ds-accomodationSidebar");l.html(d.html()),l.length>0&&(window.dsApp.initSwiperGallery(l[0]),window.dsApp.initLightbox(l[0])),void 0!==r&&1==r&&(u.html(v.html()),u.find(".selectpicker").selectpicker(),n(document).initDatepicker(u)),s(o,u),window.ds_onWatchlistToggleChanged(),n(document).updateEnquiryCheckboxInAccommodationResult(),f.addClass("d-none"),h.removeClass("js-ds-loading"),m.html(o.find(".js-acccoNumString").html()),p.html(o.find(".ds-acco-title").html()),n(document).updateAccoPreferitesCounter();var g=a.closest(".ds-accommodationsPageWidget");g.length>0&&n(document).dsAppCookies_accoPageWidget_setLastSearched(g,this.url),e(g),window.dsApp.addUtmToTrackAccoWebsiteUrl(g),void 0!==c&&c(t)}}))}),500)};n(document).on("change","#ds-accommodationSearchForm .js-submit",(function(t){if(t.preventDefault(),n(this).hasClass("js-ds-disable-all")){var e=n(this).closest("form"),a=n(this).attr("name"),i=e.find('input[name="'+a+'"]'),o=!1;n.each(i,(function(){var t=n(this);t.hasClass("js-ds-disable-all")&&t.prop("checked")&&(o=!0)}));var s=e.find('input.js-ds-all[name="'+a+'"]');s&&(o?s.prop("checked")&&s.prop("checked",!1):s.prop("checked",!0))}else if(n(this).hasClass("js-ds-all")){e=n(this).closest("form"),a=n(this).attr("name"),i=e.find('input[name="'+a+'"]');n.each(i,(function(){var t=n(this);t.hasClass("js-ds-disable-all")&&t.prop("checked")&&t.prop("checked",!1)}))}n("#ds-accommodationSearchForm").submit()})),n(document).on("change",".ds-checkbox-single-choice input",(function(t){var e=n(this).val();n.each(n(this).closest(".ds-checkbox-single-choice").find("input"),(function(){var t=n(this);t.val()!=e&&t.prop("checked",!1)}))})),n(document).on("submit","#ds-accommodationSearchForm",(function(t){t.preventDefault();var e=n(this).closest(".ds-accommodationsPageWidget"),a=n(this);if(a.find('input[name="arrival"]').data("daterangepicker")&&a.find('input[name="departure"]').data("daterangepicker")&&a.find('input[name="arrival"]').data("daterangepicker").startDate.toDate().getTime()&&a.find('input[name="departure"]').data("daterangepicker").startDate.toDate().getTime()&&a.find('input[name="arrival"]').data("daterangepicker").startDate.toDate().getTime()<a.find('input[name="departure"]').data("daterangepicker").startDate.toDate().getTime()||a.find('input[name="no_date"]').prop("checked")){var i=a.find('input[name="bookable_only"]');if(i.length>0){var s=i.closest(".ds-checkbox");a.find('input[name="no_date"]').prop("checked")?(i.prop("checked",!1),i.attr("disabled","disabled"),s.addClass("ds-disabled")):(i.removeAttr("disabled"),s.removeClass("ds-disabled"))}if(function(t,e,a,n){var i=t.find(".ds-accomodationsPage");if(0!=i.length){var s=function(t){if(void 0!==window.ds_track&&void 0!==window.ds_track.accommodation_category){var e=window.dsApp.trackingHelper_accoSearchFormData(t);window.ds_track.accommodation_category.search_accommodation(e)}};"map"==i.find('#ds-accommodationSearchForm input[name="view"]').val()?void 0===e||e.indexOf("view=map")>-1?o(i,e,a,n,s):void 0!==e&&(window.location.href=e):void 0===e||-1==e.indexOf("view=map")?r(i,e,a,n,s):void 0!==e&&(window.location.href=e)}}(e),void 0!==window.ds_track){var d=null,c=null,l=0;a.find('input[name="no_date"]').prop("checked")||(d=3==(d=a.find('input[name="arrival"]').val().split(".")).length?d[2]+"-"+d[1]+"-"+d[
10]:"",c=3==(c=a.find('input[name="departure"]').val().split(".")).length?c[2]+"-"+c[1]+"-"+c[0]:""),n.each(a.find('input[name="ages[]"]'),(function(){var t=n(this);l+=t.val().split(",").length})),window.ds_track.accommodation.search(d,c,l)}}return!1})),document.addEventListener("shown.bs.tab",(function(t){t.target.getAttribute("data-ds-tab-content-html")&&(t.target.innerHTML=t.target.getAttribute("data-ds-tab-content-html"),t.target.removeAttribute("data-ds-tab-content-html"),n(document).initializeDetailPageFunctions(n(t.target))),t.target.querySelectorAll(".js-map").forEach((t,e)=>{var a=window.mapList[t.getAttribute("id")];L.Util.requestAnimFrame(a.invalidateSize,a,!1,a._container)});var e=t.target.querySelector(".ds-bookingWidgetContainer"),a=t.target.querySelector("#ltswidget-booking-outer");(e||a)&&f()}));var d=function(){var t=n("#ds-booking-box-room-detail").find(".js-room-form__age"),e=[],a=[],i=0,o=[];n.each(n(".js-room-form__row"),(function(){var t=parseInt(n(this).find(".js-room-form__room-adult-number-select").val())+parseInt(n(this).find(".js-room-form__room-children-number-select").val());i+=t,e.push(t),o.push([])})),n.each(t,(function(){a.push(n(this).val())}));for(var s=0,r=0;r<e.length;r++)for(var d=0;d<e[r];d++)o[r].push(a[s]),s++;var c=n(".ds-accomodationSidebar form, .ds-zimmerBuchenContainer .ds-quick-request");n.each(c,(function(){var t=n(this);t.find('input[name="ages[]"]').remove();for(var e=0;e<o.length;e++)t.append('<input type="hidden" name="ages[]" value="'+o[e].join()+'" />');t.find(".js-person-num").html(i)}))},c=function(){var t=n("#ds-booking-box-room-detail"),e=t.find(".js-room-num"),a=n(".ds-accomodationSidebar form, .ds-zimmerBuchenContainer .ds-quick-request");n.each(a,(function(){var a=n(this);e.val(a.find('input[name="ages[]"]').length);var i=e.closest(".js-add-remove-from-group").find(".js-room-num");i.val(e.val()),i.closest(".js-add-remove-from-group").find(".js-val").html(e.val()),e.trigger("change",[{disable_copyModalValuesToFormHiddenFields:!0}]);var o=0,s=0;n.each(a.find('input[name="ages[]"]'),(function(){for(var e=n(t.find(".js-room-form__row")[o]),a=n(this).val().split(","),i=0,r=0,d=0;d<a.length;d++)18==a[d]?i++:r++;e.find(".js-room-form__room-adult-number-select").val(i),e.find(".js-room-form__room-adult-number-select").closest(".js-add-remove-from-group").find(".ds-val").html(i),e.find(".js-room-form__room-adult-number-select").trigger("change",[{disable_copyModalValuesToFormHiddenFields:!0}]),e.find(".js-room-form__room-children-number-select").val(r),e.find(".js-room-form__room-children-number-select").closest(".js-add-remove-from-group").find(".ds-val").html(r),e.find(".js-room-form__room-children-number-select").trigger("change",[{disable_copyModalValuesToFormHiddenFields:!0}]);var c=t.find(".js-room-form__age");for(d=0;d<a.length;d++)18==a[d]&&(n(c[s]).val(a[d]),s++);for(d=0;d<a.length;d++)18!=a[d]&&(n(c[s]).val(a[d]),s++);o++})),d()}))};window.dsApp.syncAgesFromHiddenToModal=c,n(document).on("click",".js-roomFilter",(function(){n("#ds-booking-box-room-detail").modal("show")})),n(document).on("click",".js-roomFilter-toggle",(function(){var t=n(this).closest(".js-roomFilter-toggle-outer").find(".ds-roomFilter-widget");t.removeClass("d-none"),n(document).scrollToEl(t),0==n(".ds-custom-backdrop").length&&n("body").append('<div class="ds-custom-backdrop"></div>')}));var l=function(){n(".ds-roomFilter-widget").addClass("d-none"),n(".ds-custom-backdrop").remove()};n(document).on("click",".ds-custom-backdrop",(function(t){n("#ds-accommodationSearchForm").submit(),l()})),n(document).on("change",".js-room-form__room-adult-number-select, .js-room-form__room-children-number-select",(function(t,e){var a=n("#ds-booking-box-room-detail"),i=n(this).closest(".js-room-form__row"),o=parseInt(i.find(".js-room-form__room-adult-number-select").val()),s=parseInt(i.find(".js-room-form__room-children-number-select").val()),r=o+s,c=i.find(".js-room-form__age"),l=0,u=0;n.each(c,(function(){var t=!1;18==n(this).val()?++l>o&&(t=!0):++u>s&&(t=!0),t&&n(this).closest(".js-room-form__age-select").remove()}));var m=n(this).closest("div[data-room-count]");m=parseInt(m.attr("data-room-count"));for(var p=c.length+1;p<=r;p++){var f=a.attr("data-age-template").replace(new RegExp("__ROOM_COUNT__","g"),m);if(f=f.replace(new RegExp("__PERSON_COUNT__","g"),p),f=n(f),l!=o){l++;var h=n('#ds-booking-box-room-detail .js-room-form__row[data-room-count="'+m+'"]').find(".js-room-form__age").first().closest(".
1js-room-form__age-select");f.insertBefore(h)}else{h=n('#ds-booking-box-room-detail .js-room-form__row[data-room-count="'+m+'"]').find(".js-room-form__age").last().closest(".js-room-form__age-select");f.insertAfter(h)}}c=i.find(".js-room-form__age");var v=0;for(p=0;p<o;p++){if(void 0!==c[v]){var g=n(c[v]);n.each(g.find("option"),(function(){"18"!=n(this).attr("value")&&n(this).remove()})),g.val(18),g.closest(".js-room-form__age-select").addClass("d-none")}v++}for(p=0;p<s;p++){if(void 0!==c[v]){g=n(c[v]);n.each(g.find("option"),(function(){"18"==n(this).attr("value")&&n(this).remove()})),g.closest(".js-room-form__age-select").removeClass("d-none")}v++}void 0!==e&&void 0!==e.disable_copyModalValuesToFormHiddenFields&&e.disable_copyModalValuesToFormHiddenFields||d()})),n(document).on("change",".js-room-num",(function(t,e){for(var a=parseInt(n(this).val()),i=n("#ds-booking-box-room-detail"),o=i.find(".js-room-form__row"),s=a+1;s<=o.length;s++)n(o[s-1]).closest(".ds-asFieldset").remove();for(s=o.length+1;s<=a;s++){var r=n(this).closest("div[data-room-fields]").attr("data-room-fields");r=r.replace(new RegExp("__ROOM_COUNT__","g"),s),r=n(r);var c=i.find(".ds-asFieldset");r.insertAfter(n(c[c.length-1]))}void 0!==e&&void 0!==e.disable_copyModalValuesToFormHiddenFields&&e.disable_copyModalValuesToFormHiddenFields||d()})),n(document).on("click",".js-room-form__submit",(function(t){t.preventDefault(),d(),n("#ds-accommodationSearchForm").submit(),l()})),c();var u=null,m=function(){console.log("FIRE initBookWidget_feratel"),u&&clearInterval(u),u=setInterval((function(){"undefined"!=typeof dw&&void 0!==dw.accommodationDetailQuickFind&&(clearInterval(u),n.fn.updateFeratelSearchParams((function(t){!function(t){var a=n(".tab-pane.active .ds-bookingWidgetContainer");n.each(a,(function(){var a=n(this),i=a.attr("data-url");void 0===i||(a.attr("data-url-init",a.attr("data-url")),a.removeAttr("data-url"),location.hash="",a.closest("#tab-3").length>0&&n(document).scrollToEl(a.closest("#tab-3")),t=void 0!==t&&t?"1":"0",void 0!==window.dsApp.initialized_acco_booking_widget&&void 0!==window.dsApp.initialized_acco_booking_widget.tosc_tag&&window.dsApp.initialized_acco_booking_widget.tosc_tag&&void 0!==window.dw&&n.each(n(".tab-pane .ds-bookingWidgetContainer"),(function(){var t=n(this);t.attr("id")!=a.attr("id")&&(t.attr("data-url",t.attr("data-url-init")),t.removeAttr("data-url-init"))})),n.ajax({url:i,data:{quickfindFired:t},type:"GET",success:function(t){a.html(t);var n=a.find("[data-tosc-tag]");window.dsApp.initialized_acco_booking_widget={dom_id:a.attr("id"),tosc_tag:n.attr("data-tosc-tag")},e(a)},error:function(t,e,a){console.log(a)}}))}))}(t)})))}),100)},p=function(){var t=n("#ltswidget-booking-outer").closest(".container").find(".ds-zimmerBuchenContainer");"2"==function(t){for(var e=window.location.search.substring(1).split("&"),a=0;a<e.length;a++){var n=e[a].split("=");if(n[0]==t)return n[1]}}("openBookingTag")?n(document).scrollToEl(t.find(".ds-roomList")):n(document).scrollToEl(t)},f=function(){n(".ds-bookingWidgetContainer").length>0?(n(".ds-accomodation-detail-page-container #tab-3.active .ds-bookingWidgetContainer[data-url]").length>0||n(".ds-accomodation-detail-page-container #tab-feratel_package_id.active .ds-bookingWidgetContainer[data-url]").length>0)&&m():n("#ltswidget-booking-outer").length>0&&p()};(n(".ds-accomodation-detail-page-container #tab-3.active").length>0||n(".ds-accomodation-detail-page-container #tab-feratel_package_id.active").length>0)&&setTimeout((function(){f()}),100),n(document).on("click",".ds-accomodationsPage .ds-paginator a, .ds-accomodationsPage .ds-paginator button",(function(t){t.preventDefault();var e=n(this).closest(".ds-accomodationsPage"),a="#";"#"!=(a=void 0!==n(this).attr("data-href")?n(this).attr("data-href"):n(this).attr("href"))&&(n(document).scrollToEl(e.find(".resultContent")),r(e,a))})),n(".ds-accommodationsPageWidget").length>0&&n.each(n(".ds-accommodationsPageWidget"),(function(){var t=n(this),a=n(this).attr("data-url"),i=n(document).dsAppCookies_accoPageWidget_getLastSearched(t),o=!1;void 0!==t.attr("data-ignore-last-search")&&"1"==t.attr("data-ignore-last-search")&&(o=!0),i&&0==o&&(a=i),o&&t.removeAttr("data-ignore-last-search"),-1==a.indexOf("noLayout=")&&(-1==a.indexOf("?")?a+="?noLayout=1":a+="&noLayout=1"),n.get(a,(function(a){t.html(a),n(document).initDatepicker(t),c(),h(t),n(document).updateAccoPreferitesCounter(),window.ds_onWatchlistToggleChanged(),n(document).updateEnquiryCheckboxInAccommodationResult(),window.dsMap.initMap(),n(document).dsAppCookies_accoPageWidget_setLastSearched(t,this.url),e(t),window.dsApp.addUtmToTrackAccoWebsiteUrl(t),n(document).initTooltip(t)}))})),n(document).on("click",".ds-show-advanced-filter",(function(t){var e=n(this).closest("#ds-accommodationSearchForm").find(".ds-advanced-filter").clone(!0),a=n(".ds_modal");a.removeClass("d-none"),a.find(".ds_modal_inner").removeClass("ds_modal_inner_fill").scrollTop(),a.find(".ds_modal_loader").remove(),n("html").addClass("modal-open"),a.find(".ds_modal_content").html('<div class="ds-accomodationSidebar"></div>'),a.find(".ds_modal_footer").html(""),a.find(".ds_modal_content .ds-accomodationSidebar").html(e);var i=a.find(".ds_modal_content .ds-apply").clone(!0);a.find(".ds_modal_footer").html(i),a.find(".ds_modal_content .ds-apply").remove()})),n(document).on("click",".ds_modal .ds-apply-acco-filter",(function(e){e.preventDefault();var a=n(this).closest(".ds_modal"),i=n("#ds-accommodationSearchForm .ds-advanced-filter");a.find(".ds-advanced-filter").clone(!0).insertAfter(i),i.remove(),n("#ds-accommodationSearchForm .ds-advanced-filter").append(n(this).clone(!0)),n.each(n(".ds-accommodationsPageWidget"),(function(){t(n(this))})),n(".ds_modal .ds_modal_dismiss").click(),n("#ds-accommodationSearchForm").submit(),n(document).scrollToEl(n(".ds-accommodationsPageWidget .ds-accomodationResults"))})),n(document).on("click",".ds-accomodationsPage .js-toggle-map",(function(t){t.preventDefault();var e=n(this).closest(".ds-accomodationsPage");n.each(e.find(".ds-loader"),(function(){n(this).removeClass("d-none")}));var a=n("#ds-accommodationSearchForm"),i=a.find('input[name="view"]').val();
1i="map"==i?"":"map",a.find('input[name="view"]').val(i),a.find('button[type="submit"]').click(),n(document).updateAccoPreferitesCounter()}));var h=function(t){var e=t.find(".ds-acco-mkg-ctas .btn"),a=!1;n.each(e,(function(){var e=n(this),i=t.find('#ds-accommodationSearchForm input[name="marketingGroupFids[]"][value="'+e.attr("data-fid")+'"]');i.length>0&&i.prop("checked")?(e.addClass("ds-active"),a=!0):e.removeClass("ds-active")})),0==a&&t.find('.ds-acco-mkg-ctas .btn[data-fid=""]').length>0&&t.find('.ds-acco-mkg-ctas .btn[data-fid=""]').addClass("ds-active")};n(document).on("click",".ds-accomodationsPage .ds-acco-mkg-ctas .btn",(function(t){var e=n(this).closest(".ds-accomodationsPage"),a=n(this),i=e.find('#ds-accommodationSearchForm input[name="marketingGroupFids[]"]');n.each(i,(function(){var t=n(this);t.val()==a.attr("data-fid")?t.prop("checked",!0):t.prop("checked",!1)})),e.find("#ds-accommodationSearchForm").submit(),n(document).scrollToEl(n(".ds-accomodationsPage .ds-accomodationResults")),h(e),i.length>0&&i.closest(".panel-collapse").length>0&&!i.closest(".panel-collapse").hasClass("show")&&i.closest(".panel-collapse").prev(".panel-heading").find("a").click()})),n(document).on("change",'.ds-accomodationsPage #ds-accommodationSearchForm input[name="marketingGroupFids[]"]',(function(t){h(n(this).closest(".ds-accomodationsPage"))})),n(document).on("click",".ds-accomodationsPage .ds-accommodations-list-reset-box .btn",(function(t){t.preventDefault();var e=n(this).closest(".ds-accomodationsPage"),a=e.find("#ds-accommodationSearchForm");if(0==e.closest(".ds-accommodation-listing-page").length){v(a,!0,!0);var i=n(this).attr("data-acco-page");if(""!=i){var o=jQuery("#ds-accommodationSearchForm").serialize();-1==o.indexOf("&overwrite=")&&(o+="&overwrite=1");var s="";s=-1==i.indexOf("?")?i+"?"+o:i+"&"+o,window.location.href=s}}else v(a,!1,!0)}));var v=function(t,e,a){void 0!==a&&a?console.log("ignoreAges",a):(t.find('input[name="ages[]"]').remove(),t.append('<input type="hidden" name="ages[]" value="18,18" />'),c()),n.each(t.find('input[name="accommodationLocation[]"], input[name="accommodationCategory[]"], input[name="classifications[]"], input[name="mealCode"], input[name="marketingGroupFids[]"], input[name="custom_facilities[]"], input[name="custom_mktGroups[]"] '),(function(){var a=!1,i=n(this).closest(".collapse").attr("id"),o=t.find('.panel-heading a[href="#'+i+'"]');o.length>0&&"none"==(o=o.closest(".panel-heading")).css("display")&&(a=!0),(e||0==a)&&n(this).prop("checked",!1)})),t.find('input[name="accommodation_name"]').val(""),t.submit(),h(n(this).closest(".ds-accomodationsPage"))};n(document).on("click","#ds-accommodationSearchForm .ds-clear-all-tags",(function(t){var e=n(this).closest("#ds-accommodationSearchForm");v(e,!1,!0)})),n(document).on("click","#ds-accommodationSearchForm .js-ds-acco-catalog-request, .ds_modal .js-ds-acco-catalog-request",(function(t){t.preventDefault();var e=n(this);if(!e.hasClass("ds-disabled")){e.addClass("ds-disabled");var a=n(this).closest("form");0==a.length&&n(this).closest(".ds_modal").length>0&&(a=n("#ds-accommodationSearchForm"));var i=a.serializeArray(),o=n(this).attr("data-action"),s=n(this).attr("data-fids");i.push({name:"data-fids-json",value:s}),void 0!==n(this).attr("data-fids-request-id")&&i.push({name:"data-fids-request-id",value:n(this).attr("data-fids-request-id")});var r="ds_acco_catalog_request_tmp";n("#"+r).remove(),n("body").append('<form action="'+o+'" method="POST" id="'+r+'" style="display:none;" target="_blank"><input type="hidden" name="fid-json" /><button type="submit"></button></form>');var d=n("#"+r);d.append(n(this).attr("data-captcha-html")),window.ds.checkRecaptchaLoaded((function(){var t=d.find('input[name="captchaKey"]').val();grecaptcha.ready((function(){grecaptcha.execute(t,{action:"action_name"}).then((function(t){d.find('input[name="captchaToken"]').val(t),i.push({name:"captchaKey",value:d.find('input[name="captchaKey"]').val()}),i.push({name:"captchaToken",value:d.find('input[name="captchaToken"]').val()});var a=d.attr("action");n.post(a,i,(function(t){n(document).loadUrlInModal(t.url,!0)})).always((function(){e.removeClass("ds-disabled")}))}))}))}))}})),n(document).on("change",'.ds-accomodationsPage .ds-orderByBar select[name="order_by"]',(function(t){var e=n(this).val(),a=n(this).closest(".ds-accomodationsPage").find(".ds-accomodationSidebar form");a.find('input[name="order_by"]').val(e),a.submit()})),n(document).on("change",".ds_modal .ds-accomodationSidebar .ds-advanced-filter input, .ds_modal .ds-accomodationSidebar .ds-advanced-filter select ",(function(t){n(this).closest(".ds-accomodationSidebar").find(".ds-acco-tag-panelGroup").html("")}));n.fn.setAccoListingElMargins=function(){var t=n(document).getVideoPortView(),e=n(".ds-accommodations-list .ds-hotel-item");n.each(e,(function(){var e=n(this),a=e.find(".ds-name"),i=e.find(".ds-content"),o=e.find(".ds-price"),s=e.find(".ds-rating-widget");if(a.css("margin-bottom","0px"),i.css("padding-bottom","0px"),t<992){var r=e.find(".ds-price, .ds-action"),d=0;if(n.each(r,(function(){d+=n(this).outerHeight(!0)})),s.length>0&&o.length>0&&(d-=s.outerHeight(!0)),i.css("padding-bottom",d+"px"),o.length>0){var c=0;e.find(".ds-action").length>0&&(c=e.find(".ds-action").outerHeight(!0)),o.css("bottom",c+"px")}}else{r=[];i.removeAttr("style"),o.removeAttr("style")}}))};var g=null;n(window).resize((function(){null!=g&&clearInterval(g),g=setTimeout((function(){n(document).setAccoListingElMargins()}),300)}));var w;w=function(t){let e=t.length;for(;0!=e;){let a=Math.floor(Math.random()*e);e--,[t[e],t[a]]=[t[a],t[e]]}},n.each(n(".js-ds-shuffle-by-prio"),(function(){var t=n(this),e=t.find("> .ds-hotel-item_grid-layout"),a=0;n.each(e,(function(){n(this).attr("data-index",a),a++}));var i=t.find('> .ds-hotel-item_grid-layout[data-priority="high"]'),o=t.find('> .ds-hotel-item_grid-layout[data-priority="low"]'),s=[];n.each(i,(function(){s.push(n(this).attr("data-index"))}));var r=[];n.each(o,(function(){r.push(n(this).attr("data-index"))})),w(s),w(r);for(var d=[],c=0;c<s.length;c++)d.push(s[c]);for(c=0;c<r.length;c++)d.push(r[c]);for(e.detach(),c=0;c<d.length;c++)t.append(e.eq(d[c]));t.addClass("js-initialized")}))}))},function(t,e,a){var n=a(0);window.jQuery=n,void 0===window.dsApp&&(window.dsApp={}),n((function(){var t=function(t){var e=n(".ds-accomodation-detail-page-container").prev(".ds-nav-tabs-outer-container").find('.nav-link[href="#tab-4"]');e.length>0&&e[0].click(),setTimeout((function(){n(document).scrollToEl(n("#tab-4").closest(".ds-accomodation-detail-page-container"))}),100),"function"==typeof t&&setTimeout((function(){t()}),350)};window.showAccoDetailEnquiryForm_function=t,n(document).on("click",".ds-detail-page--accommodation .ds-nav-tabs-outer-container .nav-link",(function(t){t.preventDefault(),"#tab-3"!=n(this).attr("href")?n("#ds-quick-request").addClass("d-md-block"):n("#ds-quick-request").removeClass("d-md-block"),n(document).handleQuickRequestClass(),n(document).handle_ds_request_buttons_mobile_visbility(),window.dsApp.initializeDsLazyload(n(""+n(this).attr("href"))[0])}));var e=function(){var t=n(".ds-accomodation-detail-page-container").prev(".ds-nav-tabs-outer-container").find('.nav-link[href="#tab-3"]');t.length>0&&(t[0].click(),n("#ds-quick-request").removeClass("d-md-block")),setTimeout((function(){n(document).scrollToEl(n("#tab-3").closest(".ds-accomodation-detail-page-container"))}),100)};n(document).on("click",".js-showAccoDetailEnquiryForm, .ds-app-noRoomFound a",(function(e){e.preventDefault();var a=n(this);t((function(){var t=a.attr("data-room-id");void 0!==t&&n('.ds-anfrageContainer select[name="room"]').length>0&&n('.ds-anfrageContainer select[name="room"]').val(t);var e="";if(void 0!==a.attr("data-valid-period-index")&&(e=a.attr("data-valid-period-index")),n(".ds-anfrageContainer").length>0){var i=n(".ds-anfrageContainer").find('select[name="offerValidPeriodIndex"]');if(0==i.length)return;i.val(e),i.closest(".ds-asFieldset").removeClass("d-none")}}))})),window.ds_showAccoDetailPriceTab_function=e,n(document).on("click",".js-showAccoDetailPriceTab",(function(t){t.preventDefault(),e()}));setTimeout((function(){!function(){if(void 0!==window.location&&void 0!==window.location.hash&&""!=window.location.hash)try{"#openEnquiryTab"==window.location.hash?(t(),void 0!==window.ds_onAccoClickOnEmail&&window.ds_onAccoClickOnEmail()):"#openPriceTab"==window.location.hash&&e()}catch(t){}}()}),100),n(document).on("click",".ds-roomRow .ds-checkboxContainer .dsico, .ds-roomRow .ds-titleOuter .ds-title, .ds-roomRow .ds-priceOuter ",(function(t){t.preventDefault();var e=n(this).closest(".ds-roomRow");if(!e.hasClass("ds-active")){var a=n(this).closest(".ds-roomList");a.find(".ds-roomRow.ds-active").removeClass("ds-active"),e.addClass("ds-active");var i=e.attr("data-script");a.find(".js-room-buchen").attr("data-script",i),n("#ltswidget-booking-outer #ltswidget-booking").html(""),e.hasClass("js-isAvailable")?(n("#ltswidget-booking-outer").hasClass("d-none"),a.find(".js-room-buchen").click()):a.find(".js-room-buchen").addClass("d-none")}})),n(document).on("click",".ds-roomList .js-room-buchen",(function(t){t.preventDefault();var e=n(this).attr("data-script"),a=n(this).attr("data-script-html");void 0!==e&&""!=e?(n("#ltswidget-booking-outer").removeClass("d-none"),n("#ltswidget-booking-outer script").remove(),n("#ltswidget-booking-outer div, #ltswidget-booking-outer lts-hotelfinder").remove(),n("#ltswidget-booking-outer").append(n("#ltswidget-booking-outer").attr("data-widget-template")),n("#ltswidget-booking-outer").append("<script type='text/javascript' src='"+e+"'><\/script>"),n(document).scrollToEl(n("#ltswidget-booking-outer"))):void 0!==a&&""!=a&&(n("#ltswidget-booking-outer").removeClass("d-none"),n("#ltswidget-booking-outer script").remove(),n("#ltswidget-booking-outer div, #ltswidget-booking-outer lts-hotelfinder").remove(),n("#ltswidget-booking-outer").append(n("#ltswidget-booking-outer").attr("data-widget-template")),n("#ltswidget-booking-outer").append(a),n(document).scrollToEl(n("#ltswidget-booking-outer")))})),n(document).on("click",".ds-roomRow .js-openExpandible",(function(t){t.preventDefault(),n(this).closest(".ds-roomRow").find(".ds-expandible").toggleClass("d-none")}))}))},function(t,e,a){"use strict";a.r(e);a(9),a(10),a(11),a(12),a(13),a(14);var n=a(8),i=a.n(n);void 0===window.dsApp&&(window.dsApp={}),i.a.cfg.loadMode=1,document.addEventListener("lazybeforeunveil",(function(t){if(null==t.target)return null;var e=t.target.getAttribute("data-bg");e&&(t.target.style.backgroundImage="url("+e+")");let a=t.target.closest(".ds-swiper-outer");a&&a.querySelectorAll(".lazyload").forEach((t,e)=>{t.removeAttribute("loading"),t.classList.add("lazypreload")})})),window.dsApp.initDateBox_dropdownToggle=function(t){t.querySelectorAll(".ds-dateBoxList .ds-dropdownToggle").forEach((t,e)=>{t.addEventListener("click",(function(t){t.target.closest(".ds-dateBoxList").classList.toggle("open")}))})},window.dsApp.initDateBox_dropdownToggle(document),window.dsApp.is_iOS=function(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document},window.dsApp.is_android=function(){return navigator.userAgent.toLowerCase().indexOf("android")>-1},window.dsApp.is_mobile=function(){return window.dsApp.is_android()||window.dsApp.is_iOS()},window.dsApp.initializeDsLazyload=function(t){t.querySelectorAll(".ds-lazyload").forEach((t,e)=>{t.classList.add("lazyload"),t.classList.remove("ds-lazyload")})};a(15);var o=a(34),s=a(30),r=a(31),d=a(32),c=a(33);void 0===window.dsApp&&(window.dsApp={}),o.a.use([s.a,r.a,d.a,c.a]),void 0===window.dsApp.swiperGalleryCounter&&(window.dsApp.swiperGalleryCounter=0),void 0===window.dsApp.swiperAlternateCounter&&(window.dsApp.swiperAlternateCounter=0),window.dsApp.initSwiperGallery=function(t){try{t.querySelectorAll("[data-ds-swiper-gallery]").forEach(t=>{if(null==t.getAttribute("data-ds-swiper-initialized")){t.setAttribute("data-ds-swiper-initialized","1");var e=window.dsApp.swiperGalleryCounter++;t.closest(".ds-gallery-slider").classList.add("swiper-gallery-"+e);var a={slidesPerView:1,observer:!0,observeParents:!0,pagination:!1,navigation:{nextEl:".swiper-gallery-"+e+" .swiper-button-next",prevEl:".swiper-gallery-"+e+" .swiper-button-prev"},on:{init:function(t){void 0!==t.slides[t.activeIndex]&&window.dsApp.initializeDsLazyload(t.slides[t.activeIndex]);const e=t.$el[0].querySelector(".swiper-slides-total");if(null==e)return;let a=t.slides.length;0==a&&(a=t.$el[0].querySelectorAll(".swiper-slide").length),a<10&&(a="0"+a),e.innerHTML=a},transitionEnd:function(t){for(var e=t.slides,a=-1,n=-1,i=-1,o=[],s=0;s<e.length;s++)e[s].classList.contains("swiper-slide-active")?i=s:e[s].classList.contains("swiper-slide-prev")?a=s:e[s].classList.contains("swiper-slide-next")&&(n=s);if(-1!=i&&o.push(i),-1!=a)for(var r=a;r>a-5&&r>-1;r--)o.push(r);if(-1!=n)for(r=n;r<n+5&&r<e.length;r++)n>-1&&o.push(r);for(s=0;s<o.length;s++){var d=o[s];window.dsApp.initializeDsLazyload(e[d])}const c=t.$el[0].querySelector(".swiper-slides-current");
1if(null==c)return;let l=t.realIndex+1;l<10&&(l="0"+l),t.isEnd&&(l=t.slides.length,l<10&&(l="0"+l)),c.innerHTML=l}}};"undefined"!=typeof ds_translations&&void 0!==ds_translations.swiper&&void 0!==ds_translations.swiper.a11y&&(a.a11y=ds_translations.swiper.a11y),new o.a(t,a)}}),t.querySelectorAll("[data-ds-alternate-slider]").forEach(t=>{if(null==t.getAttribute("data-ds-swiper-initialized")){t.setAttribute("data-ds-swiper-initialized","1");var e=window.dsApp.swiperAlternateCounter++,a={768:{slidesPerView:2},992:{slidesPerView:2},1200:{slidesPerView:3}};t.getAttribute("data-ds-alternate-slider-breakpoint-obj")&&(a=JSON.parse(t.getAttribute("data-ds-alternate-slider-breakpoint-obj"))),t.closest(".ds-alternate-slider").classList.add("swiper-alternate-"+e);var n={slidesPerView:1,observer:!0,observeParents:!0,centerInsufficientSlides:!0,pagination:!1,navigation:{nextEl:".swiper-alternate-"+e+" .swiper-button-next",prevEl:".swiper-alternate-"+e+" .swiper-button-prev"},breakpoints:a};"undefined"!=typeof ds_translations&&void 0!==ds_translations.swiper&&void 0!==ds_translations.swiper.a11y&&(n.a11y=ds_translations.swiper.a11y),new o.a(t,n)}})}catch(t){console.log("ERROR",t)}},document.addEventListener("DOMContentLoaded",(function(){window.dsApp.initSwiperGallery(document)}));var l=a(5),u=a.n(l);void 0===window.dsApp&&(window.dsApp={}),window.dsApp.initLightbox=function(t){try{let e=[];t.querySelectorAll("[data-ds-lightbox]").forEach((t,a)=>{if(null!=t.getAttribute("data-ds-lightbox-initialized"))return;t.setAttribute("data-ds-lightbox-initialized","1");const n=t.getAttribute("data-ds-lightbox"),i=t.getAttribute("href").substr(1);t.addEventListener("click",(function(a){a.preventDefault();let o=t,s=o.getAttribute("data-gallery-ref"),r=parseInt(o.getAttribute("data-index"));if(n.includes("gallery")){let t=[];document.querySelectorAll('[data-ds-lightbox="'+n+'"][data-gallery-ref="'+s+'"]').forEach((e,a)=>{t.push({href:e.getAttribute("href"),type:"image"})}),u()({elements:t}).openAt(r),e.push(s)}else{const t=u()({selector:null,width:n.includes("press")?"1600px":"900px",height:"auto"});o.getAttribute("href").includes("#")?t.setElements([{content:document.getElementById(i).innerHTML}]):t.setElements([{href:o.getAttribute("href"),type:"video"}]),t.open()}}))})}catch(t){}},window.dsApp.initLightbox(document);a(16),a(17),a(18);var m=a(0);window.jQuery=m,window.ds_jQuery=m,void 0===window.dsApp&&(window.dsApp={}),a(19);var p=function(t){0!=t.find('[data-toggle="tooltip"]').length&&a.e(2).then(a.bind(null,43)).then(e=>{t.find('[data-toggle="tooltip"]').tooltip()})};p(m("body")),m.fn.initTooltip=p,m.fn.validateEmail=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},window.dsApp.initSelectpicker=function(t){var e=t[0];(t=m(e)).find(".selectpicker").selectpicker()},m.fn.initDatepicker=function(t){if(0!=t.find("input.datepicker").length){a.e(0).then(a.t.bind(null,36,7)).then(e=>{window.moment=e.default;var n="en";"undefined"!=typeof ds_translations&&void 0!==ds_translations.app_locale&&(n=ds_translations.app_locale),window.moment.locale(n),Promise.all([a.e(0),a.e(6)]).then(a.t.bind(null,39,7)).then(a=>{m.each(t.find("input.datepicker"),(function(){var t=m(this),a={singleDatePicker:!0,autoUpdateInput:!1,autoApply:!0,locale:{format:"DD.MM.YYYY"}};if("undefined"!=typeof ds_translations&&void 0!==ds_translations.datarange_picker&&void 0!==ds_translations.datarange_picker.locale&&(a.locale=ds_translations.datarange_picker.locale),void 0!==t.attr("data-date-start-date")){var n=new Date(t.attr("data-date-start-date"));a.minDate=n}if(void 0!==t.attr("data-date-end-date")){var i=new Date(t.attr("data-date-end-date"));a.maxDate=i}void 0!==t.attr("data-drops")&&(a.drops=t.attr("data-drops")),void 0!==t.attr("data-parent")&&(a.parentEl=t.closest(""+t.attr("data-parent"))[0]),void 0!==t.attr("data-opens")&&(a.opens=t.attr("data-opens"));var o=function(t,e,a){};if(t.closest(".js-mydatepickerInterval").length>0){t.closest(".js-mydatepickerInterval").attr("data-date-interval-initial",t.closest(".
1js-mydatepickerInterval").attr("data-date-interval"));if(o=function(t,a,n){var i=jQuery(jQuery(this)[0].element[0]);if(i.val(t.format("DD.MM.YYYY")),i.closest("#ds-accommodationSearchForm").length>0){var o=jQuery('#ds-accommodationSearchForm input[name="no_date"]');o.length>0&&o.prop("checked",!1),jQuery("#ds-accommodationSearchForm").submit()}var s=i.closest(".js-mydatepickerInterval"),r=[];void 0!==s.attr("data-dynamic-interval-by-arrival")&&(r=JSON.parse(s.attr("data-dynamic-interval-by-arrival"))),function(t,a,n){var i=a.data("daterangepicker").startDate;i=e.default(i);var o=n.find(t=>{var a=e.default(t.from,"YYYY-MM-DD"),n=e.default(t.to,"YYYY-MM-DD");return i.isBetween(a,n,null,"[]")}),s=o?o.days:null;s?t.attr("data-date-interval",s):t.attr("data-date-interval",t.attr("data-date-interval-initial"))}(s,s.find("input[data-from]"),r);var d=parseInt(s.attr("data-date-interval")),c=s.find("input[data-from]"),l=s.find("input[data-to]");if(void 0!==i.attr("data-from")){var u=c.data("daterangepicker").startDate;u=(u=e.default(u)).add(d,"days"),l.data("daterangepicker").minDate=u,l.data("daterangepicker").startDate<u&&(l.val(u.format("DD.MM.YYYY")),l.data("daterangepicker").startDate=u)}void 0!==i.attr("data-from")&&l.data("daterangepicker").show()},t.closest(".ds-acco-period-filter").find('input[name="no_date"]').length>0)t.closest(".ds-acco-period-filter").find('input[name="no_date"]').change((function(t){var a=m(this).closest(".ds-acco-period-filter").find(".js-mydatepickerInterval"),n=a.find("input[data-from]"),i=a.find("input[data-to]");if(m(this).prop("checked"))m(this).attr("old-date-from",n.data("daterangepicker").startDate),m(this).attr("old-date-to",i.data("daterangepicker").startDate),n.val(""),i.val("");else if(void 0!==m(this).attr("old-date-from")&&""!=m(this).attr("old-date-from")&&void 0!==m(this).attr("old-date-to")&&""!=m(this).attr("old-date-to")){n.closest(".js-mydatepickerInterval");n.data("daterangepicker").setStartDate(e.default(parseInt(m(this).attr("old-date-from")))),n.data("daterangepicker").setEndDate(e.default(parseInt(m(this).attr("old-date-from")))),i.data("daterangepicker").setStartDate(e.default(parseInt(m(this).attr("old-date-to")))),i.data("daterangepicker").setEndDate(e.default(parseInt(m(this).attr("old-date-to")))),n.val(e.default(parseInt(m(this).attr("old-date-from"))).format("DD.MM.YYYY")),i.val(e.default(parseInt(m(this).attr("old-date-to"))).format("DD.MM.YYYY"))}else n.val(e.default().format("DD.MM.YYYY")),i.val(e.default().add(1,"days").format("DD.MM.YYYY"))}));var s=m(t.closest(".js-mydatepickerInterval")[0]);if(void 0!==s.attr("data-valid-dates")){var r=JSON.parse(s.attr("data-valid-dates"));a.isInvalidDate=function(t){var e=t._d,a=""+(e.getMonth()+1),n=""+e.getDate(),i=e.getFullYear();a.length<2&&(a="0"+a),n.length<2&&(n="0"+n);var o=[i,a,n].join("-");return!r.includes(o)}}}t.daterangepicker(a,o),t.on("showCalendar.daterangepicker",(function(t,e){e.container.find("table").addClass("ds-datepicker-table")})),t.closest(".js-mydatepickerInterval").length>0&&t.on("show.daterangepicker",(function(t,e){var a=m(t.currentTarget),n=a.closest(".js-mydatepickerInterval");void 0!==a.attr("data-from")?n.find("input[data-to]").data("daterangepicker").hide():n.find("input[data-from]")}))}))})});var e=t.find(".ds-table-actions .datepicker");e.length>0&&m.each(e,(function(){var t=m(this);t.closest(".pimcore_area_d-s-pois-table").length>0&&t.on("apply.daterangepicker",(function(e,a){var n=t.closest(".ds-table-actions").find('input[name="filterOpeningDate"]');m.each(n,(function(){var t=m(this);a.startDate?t.val(a.startDate.format("YYYY-MM-DD")):t.val("")}));var i=t.closest(".pimcore_area_d-s-pois-table").find('.ds-filters input[name="filterOpeningDate"]');i.length>0&&(m.each(i,(function(){var t=m(this);a.startDate?t.val(a.startDate.format("YYYY-MM-DD")):t.val("")})),t.closest(".pimcore_area_d-s-pois-table").find(".ds-filters form").submit())}))}))}},m(document).initDatepicker(m("body")),m("input.js-daterangepicker").length>0&&a.e(0).then(a.t.bind(null,36,7)).then(t=>{window.moment=t.default;var e="en";"undefined"!=typeof ds_translations&&void 0!==ds_translations.app_locale&&(e=ds_translations.app_locale),window.moment.locale(e),Promise.all([a.e(0),a.e(6)]).then(a.t.bind(null,39,7)).then(t=>{m.each(m("input.js-daterangepicker"),(function(){var t=m(this).attr("data-date"),e=null,a=null;void 0!==t&&void 0!==(t=t.split(" - "))[0]&&void 0!==t[1]&&(e=t[0],a=t[1]);var n={autoUpdateInput:!1,autoApply:!0,opens:"center",locale:{format:"DD.MM.YYYY",separator:" - ",firstDay:1}};void 0!==m(this).attr("data-parent")&&m(this).closest(""+m(this).attr("data-parent")).length>0&&(n.parentEl=m(this).closest(""+m(this).attr("data-parent"))),"undefined"!=typeof ds_translations&&void 0!==ds_translations.datarange_picker&&void 0!==ds_translations.datarange_picker.locale&&(n.locale=ds_translations.datarange_picker.locale),e&&(n.startDate=e),a&&(n.endDate=a),void 0!==m(this).attr("data-drops")&&(n.drops=m(this).attr("data-drops")),m(this).daterangepicker(n,(function(t,e,a){var n=m(m(this)[0].element);t&&e&&n.val(t.format("DD.MM.YYYY")+" - "+e.format("DD.MM.YYYY"))})),m(this).data("daterangepicker").startDate&&m(this).data("daterangepicker").endDate})),m(document).on("click",".js-daterangepicker-outer .ds-icon",(function(t){t.preventDefault(),m(this).closest(".
1js-daterangepicker-outer").find(".js-daterangepicker").click()}))})});var f=function(t){t.find(".ds-calendar-small").length>0&&a.e(0).then(a.t.bind(null,36,7)).then(e=>{window.moment=e.default;var n="en";"undefined"!=typeof ds_translations&&void 0!==ds_translations.app_locale&&(n=ds_translations.app_locale),window.moment.locale(n),Promise.all([a.e(0),a.e(5)]).then(a.t.bind(null,40,7)).then(e=>{m.each(t.find(".ds-calendar-small"),(function(){var t=m(this),e=[];void 0!==t.attr("data-dates")&&(e=JSON.parse(t.attr("data-dates")));var a=null,n=null;void 0!==t.attr("data-start-date")&&""!=t.attr("data-start-date")&&(a=t.attr("data-start-date")),void 0!==t.attr("data-end-date")&&""!=t.attr("data-end-date")&&(n=t.attr("data-end-date"));var i={template:m("#ds-mini-clndr-template").html(),events:e,clickEvents:{},doneRendering:function(){},multiDayEvents:{singleDay:"date",endDate:"dateTo",startDate:"dateFrom"},showAdjacentMonths:!0,adjacentDaysChangeMonth:!1};(a||n)&&(i.constraints={},a&&(i.constraints.startDate=a),n&&(i.constraints.endDate=n)),t.clndr(i)})),T(m("body"))})})};f(m("body")),m(".js-min-max-slider").length>0&&a.e(7).then(a.t.bind(null,41,7)).then(t=>{a.e(3).then(a.t.bind(null,42,7)).then(e=>{m(".js-min-max-slider").each((function(){var a=m(this).get(0),n=m(a).attr("id"),i=parseInt(m(this).attr("data-min")),o=parseInt(m(this).attr("data-max")),s=parseInt(m(this).attr("data-start-min")),r=parseInt(m(this).attr("data-start-max"));if(void 0!==m(this).attr("data-append"))m(this).attr("data-append");t.create(a,{start:[s,r],connect:!0,behaviour:"drag-tap",step:1,range:{min:i,max:o},format:e.default({decimals:0})});var d=m(this).parent().find(".min-value").get(0),c=m(this).parent().find(".max-value").get(0);a.noUiSlider.on("update",(function(t,e,a,i,o,s){var r=m(s.target);d.value=t[0],c.value=t[1];var l=t[0],u=t[1];if(void 0!==r.attr("data-format-values")){var p=JSON.parse(r.attr("data-format-values")),f=function(t){for(var e=0;e<p.length;e++)if(p[e].val==t)return p[e].name;return t};l=f(l),u=f(u)}var h=m("#"+n+"-min-text"),v=m("#"+n+"-max-text"),g=h.find("+ .ds-sep");h.text(l),v.text(u),l==u?(g.addClass("d-none"),h.addClass("d-none")):(g.removeClass("d-none"),h.removeClass("d-none"))}))}))})}),m(document).on("change",".ds-filters input, .ds-filters select",(function(){m(this).closest(".ds-filters").find(".ds-filter-as-tags").remove()})),m(document).on("change",".ds-filters .ds-toggle-wrapper input",(function(){m(this).closest(".ds-filters").find("form").submit()}));var h=null,v=function(t,e){void 0!==e&&e||(h&&clearTimeout(h),h=setTimeout((function(){t.submit()}),1e3))};m(document).on("click",".ds-filter-as-tags .ds-clear-all-tags",(function(){var t=m(this).closest(".ds-filters").find(".ds-form");0==t.length&&m(this).closest(".ds-accomodationSidebar").length>0&&m(this).closest(".ds_modal").length>0&&(t=m(".ds-accommodationsPageWidget .ds-accomodationSidebar")),m.each(t.find(".selectpicker"),(function(){m(this).val("")}
1));var e=m(this).closest(".ds-filter-as-tags").find(".ds-filter-as-tag button");m.each(e,(function(){m(this).click()}))})),m(document).on("change",".ds-tag input",(function(){var t=m(this).closest("form");t.length>0&&v(t)})),m(document).on("click",".ds-filter-as-tag button",(function(){var t=m(this).closest(".ds-filter-as-tag"),e=t.attr("data-input-name"),a=t.attr("data-value"),n=t.closest("form"),i=!1;if(0==n.length&&m(this).closest(".ds-accomodationSidebar").length>0&&m(this).closest(".ds_modal").length>0){i=!0,n=t.closest(".ds-accomodationSidebar");var o=m(this).closest(".ds-accomodationSidebar");o.find(".js-ds-acco-catalog-request").remove(),o.find(".ds-acco-tag-panelGroup .ds-counter").remove()}(u=n.find('input[name="'+e+'"]')).length>0&&("checkbox"==u.attr("type")?n.find('input[name="'+e+'"][value="'+a+'"]').prop("checked",!1):u.val(""));var s=n.find('select[name="'+e+'"]');if(s.length>0){var r=s.val();if(m.isArray(s.val())){var d=r.indexOf(a);d>-1&&r.splice(d,1)}else r="";s.val(r),s.hasClass("selectpicker")&&s.selectpicker("refresh")}var c=e.split("~");if(c.length>1)for(var l=0;l<c.length;l++){var u,p=c[l];(u=n.find('input[name="'+p+'"]')).length>0&&("checkbox"==u.attr("type")?n.find('input[name="'+e+'"][value="'+a+'"]').prop("checked",!1):u.val(""))}var f=n.find('.ds-acco-period-filter input[name="arrival"]'),h=n.find('.ds-acco-period-filter input[name="arrival"]'),g=n.find('.ds-acco-period-filter input[name="no_date"]');f.length>0&&h.length>0&&g.length>0&&""==f.val()&&""==h.val()&&g.prop("checked",!0),t.closest("li").remove(),v(n,i)}));var g=function(t){for(var e=t.find(".js-childrenAgesRow"),a=e.attr("data-select-template"),n=t.find(".js-childrenNumSelect"),i=parseInt(n.val()),o=e.find('> [class^="col-"]'),s=0;s<o.length;s++)s<i||m(o[s]).remove();o=e.find('> [class^="col-"]');for(s=1;s<=i;s++)s<=o.length||e.append(a)},w=function(t){m.each(t.find(".ds-asFieldset .js-childrenNumSelect"),(function(){var t=m(this).closest(".js-roomFieldset, .ds-asFieldset");g(t);for(var e=t.find(".js-childrenAgesRow"),a=JSON.parse(e.attr("data-current-age")),n=0;n<a.length;n++)m(e.find("select")[n]).val(a[n])}))};m.each(m(".ds-asFieldset .js-childrenNumSelect"),(function(){w(m("body"))})),m(document).on("change",".ds-asFieldset .js-childrenNumSelect",(function(t){var e=m(this).closest(".js-roomFieldset, .ds-asFieldset");g(e)}));var _=function(t){var e=t.find(".js-roomFieldsetsContainer"),a=e.attr("data-select-template"),n=t.find('[name="room_qty"]'),i=parseInt(n.val());(isNaN(i)||i<1)&&(i=1);for(var o=e.find("> .js-roomFieldset"),s=o.length-1;s>=i;s--)m(o[s]).remove();var r=i-(o=e.find("> .js-roomFieldset")).length;for(s=0;s<r;s++){var d=m(a);e.append(d),g(d)}!function(t){t.find("> .js-roomFieldset .js-roomFieldset-label").each((function(t){m(this).text(t+1)}))}(e)},k=function(t){m.each(t.find('.ds-asFieldset [name="room_qty"]'),(function(){var t=m(this).closest(".ds-asFieldset");_(t)}))};m.each(m('.ds-asFieldset [name="room_qty"]'),(function(){k(m("body"))})),m(document).on("change",'.ds-asFieldset [name="room_qty"]',(function(t){var e=m(this).closest(".ds-asFieldset");_(e)})),m(document).handleQuickRequestClass(),m(document).handle_ds_request_buttons_mobile_visbility(),window.dsApp.trackingHelper_dsFiltersData=function(t){var e={},a=function(t,a){if(0!=t.length){var n=[],i=t.val();if(jQuery.isArray(i))for(var o=0;o<i.length;o++){var s=i[o],r=t.find('option[value="'+s+'"]');r.length>0&&n.push(r.text().trim())}e[a]=n}},n=function(t,a){if(0!=t.length){var n=t.val();t.hasClass("js-daterangepicker")&&2==(n=n.split(" - ")).length&&(n={from:n[0],to:n[1]}),e[a]=n}},i=function(t,a){0!=t.length&&(e[a]=t.prop("checked"))};return a(t.find('select[name="locations[]"]'),"locations"),a(t.find('select[name="categories[]"]'),"categories"),a(t.find('select[name="subcategories[]"]'),"subcategories"),n(t.find('input[name="length-min"]'),"length-min"),n(t.find('input[name="length-max"]'),"length-max"),n(t.find('input[name="duration-min"]'),"duration-min"),n(t.find('input[name="duration-max"]'),"duration-max"),n(t.find('input[name="ascent-min"]'),"ascent-min"),n(t.find('input[name="ascent-max"]'),"ascent-max"),n(t.find('input[name="difficulty-min"]'),"difficulty-min"),n(t.find('input[name="difficulty-max"]'),"difficulty-max"),n(t.find('input[name="date"]'),"date"),i(t.find('input[name="is_open"]'),"is_open"),i(t.find('input[name="topEvent"]'),"topEvent"),e};var b=function(t){if(void 0!==window.ds_track){var e=t.closest(".ds-filters").attr("data-content-type"),a=window.dsApp.trackingHelper_dsFiltersData(t);"event"==e&&void 0!==window.ds_track.event&&void 0!==window.ds_track.event.search?window.ds_track.event.search(a):"experience"==e&&void 0!==window.ds_track.experience&&void 0!==window.ds_track.experience.search?window.ds_track.experience.search(a):"poi"==e&&void 0!==window.ds_track.poi&&void 0!==window.ds_track.poi.search?window.ds_track.poi.search(a):"tour"==e&&void 0!==window.ds_track.tour&&void 0!==window.ds_track.tour.search&&window.ds_track.tour.search(a)}};m(document).on("submit",".ds-filters form",(function(){var t=m(this);t.closest(".pimcore_area_d-s-pois,  .pimcore_area_d-s-tours,  .pimcore_area_d-s-experiences-slider,  .pimcore_area_d-s-events-slider,  .pimcore_area_d-s-pois-table").length>0||b(t)})),m(document).on("submit",".pimcore_area_d-s-pois .ds-filters form,  .pimcore_area_d-s-tours .ds-filters form,  .pimcore_area_d-s-experiences-slider .ds-filters form,  .pimcore_area_d-s-events-slider .ds-filters form,  .pimcore_area_d-s-pois-table .ds-filters form",(function(t){t.preventDefault();var e=m(this),a=e.attr("action"),n=e.serialize(),i=m(this).closest(".pimcore_area_content"),o=m(".pimcore_area_content").index(i);return i.append('<div class="ds-loading"><div class="spinner-border" role="status"></div></div>'),b(e),m.get(a,n,(function(t){t=/<body[^>]*>((.|[\n\r])*)<\/body>/im.exec(t),t=m("<div>"+t+"</div>"),i.find(".js-ajax-content").html(m(t.find(".pimcore_area_content")[o]).find(".js-ajax-content").html()),m(document).initializeOpenStatus(i.find(".js-ajax-content")),m(document).initDatepicker(i.find(".js-ajax-content")),i.find(".ds-filter-as-tags-placeholder").length>0&&i.find(".ds-filter-as-tags-placeholder").html(m(t.find(".pimcore_area_content")[o]).find(".ds-filter-as-tags-placeholder").html()),i.find(".ds-form .ds-js-ajax-additional-filter").length>0&&i.find(".ds-form .ds-js-ajax-additional-filter").html(m(t.find(".pimcore_area_content")[o]).find(".ds-form .ds-js-ajax-additional-filter").html()),i.find(".ds-loading").remove(),window.ds_track.on_page_load_events(i)})),!1})),m(document).on("click",".ds-paginator button",(function(t){m(this).closest(".
1js-ajax-content").length>0||m(this).closest(".ds-accomodationResults").length>0||(window.location.href=m(this).attr("data-href"))})),m(document).on("click"," .pimcore_area_d-s-pois .ds-paginator a, .pimcore_area_d-s-tours .ds-paginator a, .pimcore_area_d-s-events-slider .ds-paginator a,  .pimcore_area_d-s-pois .ds-paginator button, .pimcore_area_d-s-tours .ds-paginator button, .pimcore_area_d-s-events-slider .ds-paginator button,  .pimcore_area_d-s-pois-table .ds-paginator button, .pimcore_area_d-s-pois-table .ds-paginator a,  .pimcore_area_d-s-experiences-slider .ds-paginator button, .pimcore_area_d-s-experiences-slider .ds-paginator a ",(function(t){t.preventDefault();var e="#";if("#"!=(e=void 0!==m(this).attr("data-href")?m(this).attr("data-href"):m(this).attr("href"))){var a=m(this).closest(".pimcore_area_content"),n=m(".pimcore_area_content").index(a);a.append('<div class="ds-loading"><div class="spinner-border" role="status"></div></div>'),m(document).scrollToEl(a),m.get(e,(function(t){t=/<body[^>]*>((.|[\n\r])*)<\/body>/im.exec(t),t=m("<div>"+t+"</div>"),a.find(".js-ajax-content").html(m(t.find(".pimcore_area_content")[n]).find(".js-ajax-content").html()),m(document).initializeOpenStatus(a.find(".js-ajax-content")),m(document).initDatepicker(a.find(".js-ajax-content")),a.find(".ds-loading").remove(),window.ds_track.on_page_load_events(a)}))}})),m(document).on("click",".js-add-remove-from-group .js-remove, .js-add-remove-from-group .js-add",(function(t){t.preventDefault();var e=m(this).closest(".js-add-remove-from-group"),a=e.find("input"),n=parseInt(a.val()),i=-999999999999;void 0!==e.attr("data-min")&&(i=parseInt(e.attr("data-min")));var o=999999999999;void 0!==e.attr("data-max")&&(o=parseInt(e.attr("data-max"))),m(this).hasClass("js-add")&&n<o&&(n+=1),m(this).hasClass("js-remove")&&n>i&&(n-=1),a.val()!=n&&(a.val(n),e.find(".js-val").html(n),a.trigger("change"))}));var y=function(t){var e=m(".ds-filters div[data-categories]");m.each(e,(function(){var e=m(this),a=JSON.parse(e.attr("data-categories")),n=e.find('.selectpicker[name="categories[]"]'),i=e.find('.selectpicker[name="subcategories[]"]'),o=function(t,e){for(var a=[],n=[],i=0;i<t.length;i++){if(t[i].selected){var s=t[i];e&&(s=e),-1==n.indexOf(s.val)&&(n.push(s.val),a.push(s))}for(var r=o(t[i].children,t[i]),d=0;d<r.length;d++)-1==n.indexOf(s.val)&&(n.push(s.val),a.push(s));if(r){s=r;e&&(s=e)}}return a},s=function(t){for(var e=[],a=0;a<t.length;a++)for(var n=t[a],i=0;i<n.children.length;i++){var o=n.children[i],r="";o.selected&&(r='selected="selected"'),e.push('<option value="'+o.val+'" '+r+">"+o.name+"</option>");var d=s(o);d&&(e=e.concat(d))}return e},r=function(t,e){for(var a=0;a<t.length;a++){var n=t[a];-1==e.indexOf(n.val)&&(t[a].children=r(n.children,e),t[a].selected=!1)}return t};if(t){for(var d=0;d<a.length;d++)for(var c=a[d],l=0;l<c.children.length;l++){var u=!1;-1!=i.val().indexOf(c.children[l].val)&&(u=!0),a[d].children[l].selected=u}a=r(a,n.val());for(d=0;d<a.length;d++){c=a[d],u=!1;-1!=n.val().indexOf(c.val)&&(u=!0),a[d].selected=u}}var p=o(a,null),f=function(t){for(var e=[],a=function(t){if(t.selected)return!0;for(var e=0;e<t.children.length;e++){var n=t.children[e];if(a(n))return!0}return!1},n=0;n<t.length;n++){var i=t[n],o="";a(i)&&(o='selected="selected"'),e.push('<option value="'+i.val+'" '+o+">"+i.name+"</option>")}return e}(a);n.attr("data-none-selected-text");n.html(f.join(""));i.attr("data-none-selected-text");var h=s(p);i.html(h.join("")),n.selectpicker("refresh"),i.selectpicker("refresh")}))};y(!1),m(document).on("change",'.ds-filters div[data-categories] .selectpicker[name="categories[]"]',(function(){y(!0)})),m(document).on("hide.bs.select",".pimcore_area_d-s-pois .ds-filters .selectpicker, .pimcore_area_d-s-tours .ds-filters .selectpicker,  .pimcore_area_d-s-events-slider .ds-filters .selectpicker,  .pimcore_area_d-s-experiences-slider .ds-filters .selectpicker",(function(){m(this).closest("form").submit()}));if(m.fn.initializeOpenStatus=function(t){var e=new Date,a=e.getTime()/1e3,n=t.find("[data-next-opening-timestamps]");m.each(n,(function(){for(var t=m(this),e=t.find(".js-nextOpenCloseInfo"),n=JSON.parse(t.attr("data-next-opening-timestamps")),i=!1,o=!1,s=0;s<n.length;s++){var r=n[s];r.from_timestamp=parseInt(r.from_timestamp),r.to_timestamp=parseInt(r.to_timestamp),r.from_timestamp<=a&&r.to_timestamp>=a&&(i=!0,o=(o=(o=(o=r.to_str).split(" ")[1]).split(":"))[0]+":"+
1o[1])}i?(t.addClass("js-open"),e.length>0&&e.html("("+ds_settings.tr["ds.close_at_TIME"].replace("_TIME_",o)+")")):t.removeClass("js-open"),t.addClass("js-opening-timestamps-init"),t.closest(".ds-withAbsProperty").length>0&&(t.hasClass("js-open")||void 0!==t.attr("data-next-closing-timestamps")||t.closest(".ds-withAbsProperty").removeClass("ds-withAbsProperty"))}));n=t.find("[data-next-closing-timestamps]");m.each(n,(function(){for(var t=m(this),n=t.find(".js-nextOpenCloseInfo"),i=JSON.parse(t.attr("data-next-closing-timestamps")),o=!1,s=0;s<i.length;s++){(c=i[s]).from_timestamp=parseInt(c.from_timestamp),c.to_timestamp=parseInt(c.to_timestamp),a>=c.from_timestamp&&a<=c.to_timestamp&&(o=!0)}var r=JSON.parse(t.attr("data-next-opening-timestamps")),d=null;for(s=0;s<r.length;s++){var c;(c=r[s]).from_timestamp=parseInt(c.from_timestamp),null==d&&c.from_timestamp>=a&&(d=c)}if(o&&!t.hasClass("js-open")){if(t.addClass("js-closed"),n.length>0&&d){var l=d.from_str.split(" "),u=l[1].split(":");u=u[0]+":"+u[1];var p=l[0].split("-");p=p[2]+"."+p[1]+".",void 0!==d.isOverDayLimit&&d.isOverDayLimit?n.html("("+ds_settings.tr["ds.open_on_DATE"].replace("_DATE_",p)+")"):function(t){return t.toISOString().match(/(\d{4}\-\d{2}\-\d{2})T(\d{2}:\d{2})/)[1]}(e)==l[0]?n.html("("+ds_settings.tr["ds.open_at_TIME"].replace("_TIME_",u)+")"):n.html("("+ds_settings.tr["ds.open_on_DATE_at_TIME"].replace("_DATE_",p).replace("_TIME_",u)+")")}}else t.removeClass("js-closed");t.addClass("js-opening-timestamps-init"),t.closest(".ds-withAbsProperty").length>0&&(t.hasClass("js-open")||t.hasClass("js-closed")||t.closest(".ds-withAbsProperty").removeClass("ds-withAbsProperty"))}))},m(document).initializeOpenStatus(m("body")),m(".ds-social-wall-show-all").on("click",(function(t){t.preventDefault(),m(this).fadeOut(),m(".ds-social-wall-outer").addClass("ds-show-all")})),"undefined"!=typeof listingSubmitted&&listingSubmitted){var j=m(".ds-listing");0==j.length&&(j=m(".js-map")),0!=j.length&&m(document).scrollToEl(j)}var C=m(".js-scroll-on-init");C.length>0&&m(document).scrollToEl(m(C[0])),m(document).initSticky(m("body")),m(document).on("click",".js-exp-booking-scroll",(function(t){t.preventDefault(),m(document).scrollToEl(m("#bookingWidget").closest("section"))})),m(document).on("click",".js-evt-booking-scroll",(function(t){t.preventDefault();var e=m("#ds-event-booking-widget"),a=e.closest(".tab-pane"),n=0;if(a.length>0&&!a.hasClass("show")){n=400;var i=m('.ds-detail-page.ds-detail-page--event .ds-nav-tabs-outer-container .ds-nav-tabs .nav-link[href="#'+a.attr("id")+'"]');i.length>0&&i[0].dispatchEvent(new Event("click"))}setTimeout((function(){m(document).scrollToEl(e)}),n)}));var A=function(t){if(void 0===t&&(t=function(){}),m(".js-ds-recaptcha-rq").length>0){if(document.getElementById("dsRecaptchaScript"))return void t();var e=document.createElement("script");e.type="text/javascript",e.id="dsRecaptchaScript",e.src="https://www.google.com/recaptcha/api.js?render="+ds_settings.captcha_site_key,e.addEventListener("load",(function(){t()})),document.body.appendChild(e)}else t()};A();window.ds={checkRecaptchaLoaded:A,fillCsrfValue:function(t,e){var a=t.find(".js-ds-csrf-token-live");if(0!=a.length){var n={tokenName:a.attr("data-name")};m.post("/ds-csrf-token",n,(function(t){a.val(t.value),e()}))}else e()}};var x=function(){var t=jQuery(".js-readMoreContent");jQuery("body").hasClass("editMode")||jQuery.each(t,(function(){var t=jQuery(this),e=t.find(".ds-readMoreBar");if(!t.hasClass("ds-displayAll")){t.addClass("ds-withReadMoreBar");var a=t.height();t.addClass("ds-displayAll");var n=t.height();t.removeClass("ds-displayAll");n>a+100?(e.removeClass("hidden"),t.addClass("ds-withReadMoreBar")):(e.addClass("hidden"),t.removeClass("ds-withReadMoreBar"))}}))};x();var S=null;m(window).resize((function(){null!=S&&clearInterval(S),S=setTimeout((function(){x()}),300)})),m(document).on("click",".js-readMoreContent .ds-readMoreBar a",(function(t){t.preventDefault(),jQuery(this).closest(".js-readMoreContent").toggleClass("ds-displayAll")}));var T=function(t){var e=t.find("section[data-detail-page-id], div[data-detail-page-id]");if(0!=e.length){var a=e.attr("data-detail-page-id"),n=m(document).dsAppCookies_genericHrefParam_get(a);if(n&&void 0!==n.dateFrom){var i=n.dateFrom,o=new Date(i),s=t.find(".ds-dateBoxList.js-generic");if(s.length>0){var r=null;if(m.each(s.find(".ds-dateBoxDropdown .ds-dateBox[data-date]"),(function(){var t=m(this),e=new Date(t.attr("data-date"));null==r&&e.getTime()>=o.getTime()&&(r=t)})),null!=r){var d=s.find(".ds-dateBox.ds-dropdownToggle");d.html(""),d.append(r.html());var c=t.find(".ds-calendar-small");
1if(c.length>0){var l=new Date(r.attr("data-date")),u=c.clndr();u.setYear(l.getFullYear()),u.setMonth(l.getMonth())}}}}}};T(m("body")),m.fn.initDetailPageParams=T;var D=function(t){window.dsMap.initMap(),window.dsApp.initDateBox_dropdownToggle(t[0]),f(t),window.dsApp.initSwiperGallery(t[0]),window.dsApp.initLightbox(t[0]),window.dsApp.initNavTabs(t[0]),m(document).initTooltip(t),m(document).initDatepicker(t),window.ds_onWatchlistToggleChanged(),m(document).initializeOpenStatus(t),m(document).initMobileDevicesEls(t),w(t),k(t),window.ds.checkRecaptchaLoaded(),window.dsApp.syncAgesFromHiddenToModal(),m(document).initDetailPageParams(t)};m.fn.initializeDetailPageFunctions=D;var E=function(){m(".ds-ajax-load-detail-content").length>0&&m.each(m(".ds-ajax-load-detail-content"),(function(){var t=m(this);m(document).scrollToEl(t),t.html(t.attr("data-loader-html"));var e=t.attr("data-base-url");e=e.replace("__ID_PLACEHOLDER__",window.location.hash.replace("#",""));var a=t.attr("data-multisite-origin"),n="";void 0!==t.attr("data-all-link")&&(n=t.attr("data-all-link")),m.get(e,{multisiteOrigin:a},(function(e){var a=e.url,i=e.languageSwitch;L(a,window.location.href)&&(window.location.href=a),m.each(m(".ds-lang-switch"),(function(){var t=m(this);m.each(t.find("a[data-lang]"),(function(){var t=m(this),e=t.closest("li"),a=t.attr("data-lang");void 0!==i[a]?t.attr("href",t.attr("href")+window.location.hash):(e.addClass("d-none"),t.attr("href","#"))}))}));var o={};if(-1!=a.indexOf("https://")||-1!=a.indexOf("http://")){var s="http://";-1!=a.indexOf("https://")&&(s="https://");var r=(a=(a=a.replace("https://","")).replace("http://","")).split("@");2==r.length?(a=s+r[1],2==(r=(r=r[0]).split(":")).length&&(o={Authorization:"Basic "+btoa(r[0]+":"+r[1])})):a=s+r[0]}0===window.location.href.indexOf("https://")?a=a.replace("http://","https://"):0===window.location.href.indexOf("http://")&&(a=a.replace("https://","http://")),a.indexOf("?")>-1?a+="&is_ajax=1":a+="?is_ajax=1",m.ajax({type:"GET",url:a,headers:o,success:function(e){var i=(new DOMParser).parseFromString(e,"text/html");t.html(i.querySelector(".ds-ajax-detail-content").innerHTML);var o=t.find(".js-map");if(m.each(o,(function(){var t=m(this).attr("id");window.dsMap.removeMap(t)})),m.each(t.find("[data-generic-href]"),(function(){var t,e=m(this),a=((t=(t=(t=(t=e.attr("data-generic-href")).replace("http://","")).replace("https://","")).split("/"))[0]=window.location.protocol+"//"+window.location.host,t=t.join("/"));e.attr("data-generic-href",a)})),t.find(".ds-breadcrumbs ul").remove(),m.each(t.find(".ds-js-all-link"),(function(){""!=n?m(this).attr("href",n):m(this).addClass("d-none")})),D(t),"-1"!=a.indexOf("openEnquiryTab=")&&window.showAccoDetailEnquiryForm_function(),"-1"!=a.indexOf("openBookingTag=")&&window.ds_showAccoDetailPriceTab_function(),"-1"!=a.indexOf("scrollEventBooking=")){var s=m("#ds-event-booking-lts-widget");m(document).scrollToEl(s)}window.ds_track.on_page_load_events(t)}}),window.ds_trackVirtualPageView(e.url_relative,e.title),window.ds_track.general.virtual_pageview(e.url_relative,e.title)}))}))};E();var M=function(t){if("string"!=typeof t||""===t)return null;if("function"==typeof window.URL)try{return new window.URL(t,window.location.href)}catch(t){}var e=t.match(/^(https?:)\/\/(?:([^:\/?#@]*)(?::([^:\/?#@]*))?@)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return e&&{href:t,protocol:e[1],username:e[2],password:e[3],host:e[4],hostname:e[5],port:e[6],pathname:e[7],search:e[8],hash:e[9]}},L=function(t,e){var a=M(t),n=M(e);return!(!a||!n)&&a.hostname==n.hostname},O=function(t){if(void 0!==t.attr("data-generic-href-param")&&""!=t.attr("data-generic-href-param")){var e=t.attr("data-generic-href-param");try{e=JSON.parse(e),m(document).dsAppCookies_genericHrefParam_set(e)}catch(t){}}if("main_site"!=ds_settings.ds_detail_link_mode){o=t.attr("href");var a,n,i=t.attr("data-generic-href");if(L(o,i))window.location.href=o;else(a=window.location.href,n=i,(a=a.split("#")[0])==(n=n.split("#")[0]))?(history.pushState({type:"data-generic-href-page"},"",i),E()):window.location.href=i}else{var o=t.attr("href");window.location.href=o}};m(document).on("click","a[data-generic-href]",(function(t){"main_site"==ds_settings.ds_detail_link_mode||t.preventDefault();var e=m(this);e.hasClass("js-ds-track-link")&&void 0!==window.ds_track&&void 0!==window.ds_track.custom_trackLink?window.ds_track.custom_trackLink(e,m,(function(){O(e)})):O(m(this))}));var P=window.onpopstate;window.onpopstate=function(t){"function"==typeof P&&P(t),E()},m(document).on("click",".ds-back-on-same-host",(function(t){t.preventDefault(),window.history.length>1?window.history.back():window.location.href=m(this).attr("href")})),m(document).on("click",".ds-calendar-small.ds-booking-calendar .day.event, .ds-calendar-small.ds-show-hint .day.event",(function(){if(!m(this).hasClass("inactive")){for(var t=m(this).closest(".ds-calendar-small"),e="",a=m(this).attr("class").split(" "),n=0;n<a.length;n++)-1!=a[n].indexOf("calendar-day-")&&(e=new Date(a[n].replace("calendar-day-","")));if(t.hasClass("ds-booking-calendar")){var i=parseInt(m(this).closest(".ds-booking-calendar").attr("data-entity-id"));void 0===window.ds.onCustomBookingCalendarDateSelected?console.log("WARNIG - window.ds.onCustomBookingCalendarDateSelected MUST BE IMPLEMENT
1ED",i,e):window.ds.onCustomBookingCalendarDateSelected(i,e)}else{var o=e.toISOString().split("T")[0],s=t.closest("section").find(".ds-dateBoxList-info");s.find(".ds-el").removeClass("ds-visible"),s.find('.ds-el[data-date="'+o+'"]').addClass("ds-visible"),s.find(".ds-el.ds-visible").length>0?(s.addClass("ds-visible"),m(document).scrollToEl(t)):s.removeClass("ds-visible")}}})),m(document).on("click",".ds-booking-dates .ds-dateBoxDropdown .ds-dateBox",(function(){var t=parseInt(m(this).closest(".ds-booking-dates").attr("data-entity-id")),e=new Date(m(this).attr("data-date"));void 0===window.ds.onCustomBookingCalendarDateSelected?console.log("WARNIG - window.ds.onCustomBookingCalendarDateSelected MUST BE IMPLEMENTED",t,e):window.ds.onCustomBookingCalendarDateSelected(t,e)})),m(document).ready((function(){if(m(".ds-booking-dates").length>0)var t=0,e=setInterval((function(){void 0===window.ds.initDSBookingDatesWidget?(console.log("WARNIG - window.ds.initDSBookingDatesWidget MUST BE IMPLEMENTED"),50==++t&&clearInterval(e)):(clearInterval(e),m.each(m(".ds-booking-dates"),(function(){var t=m(this),e=parseInt(t.attr("data-entity-id"));window.ds.initDSBookingDatesWidget(t,e)})))}),500)})),m(document).on("click",".ds-subsection-switch a",(function(t){t.preventDefault();var e=m(this).attr("data-subsection");m(this).closest("section").find(".ds-subsection").addClass("d-none"),m(this).closest("section").find('.ds-subsection[data-subsection="'+e+'"]').removeClass("d-none"),m(this).closest(".ds-subsection-switch").find("a").removeClass("ds-active"),m(this).addClass("ds-active")})),m(document).on("click",".ds-youtube-play",(function(t){t.preventDefault();var e=m(this).attr("data-youtube-id");const a=u()({selector:null,width:"100%",height:"auto"});a.setElements([{type:"video",source:"youtube",href:"https://www.youtube.com/watch?v="+e}]),a.open()})),m.fn.loadUrlInModal=function(t,e,a){var n=m(".ds_modal"),i=n.find(".ds_modal_inner"),o=n.find(".ds_modal_content");I=0,i.removeClass("ds_modal_inner_fill"),i.find(".ds_modal_loader").remove(),o.html(""),n.find(".ds_modal_footer").html(""),n.removeClass("d-none"),i.scrollTop(),m("html").addClass("modal-open");var s="ds_modal_loader";void 0!==e&&e&&(s+=" ds_modal_loader_overlay"),i.append('<div class="'+s+'"><div class="spinner-border" role="status"></div></div>'),void 0!==e&&e?(i.addClass("ds_modal_inner_fill"),o.html('<iframe class="ds_modal_iframe" src="'+t+'"></iframe>'),o.find(".ds_modal_iframe").on("load",(function(){i.find(".ds_modal_loader").remove()})),window.setTimeout((function(){i.find(".ds_modal_loader").remove()}),1e4)):m.get(t,(function(t){o.html(t),"function"==typeof a&&a(o)})).always((function(){i.find(".ds_modal_loader").remove()}))};var I=0;function q(t){var e=m(".ds_modal"),a=e.find(".ds_modal_iframe");e.hasClass("d-none")||0==a.length||(t>=e.height()-(e.find(".ds_modal_header:visible").outerHeight()||0)-(e.find(".ds_modal_footer:visible").outerHeight()||0)?(e.find(".ds_modal_inner").addClass("ds_modal_inner_fill"),a.css("height","")):(e.find(".ds_modal_inner").removeClass("ds_modal_inner_fill"),a.css("height",t+"px")))}window.addEventListener("message",(function(t){if(t.data&&"ds_modal_iframe_height"==t.data.type){var e=m(".ds_modal .ds_modal_iframe");if(0!=e.length&&t.source===e.get(0).contentWindow){var a=parseInt(t.data.height,10);isNaN(a)||a<=0||(I=a,q(a))}}})),m(window).on("resize",(function(){I>0&&q(I)})),m(document).on("click",".ds_modal_dismiss, .ds_modal_backdrop",(function(t){t.preventDefault();var e=m(this).closest(".ds_modal");e.addClass("d-none"),I=0,e.find(".ds_modal_inner").removeClass("ds_modal_inner_fill"),e.find(".ds_modal_loader").remove(),e.find(".ds_modal_content").html(""),e.find(".ds_modal_footer").html(""),m("html").removeClass("modal-open"),m(document).updateEnquiryCheckboxInAccommodationResult(),m(document).updateAccoPreferitesCounter()})),m(document).on("click",".ds-enquiry-create",(function(t){t.preventDefault();var e=m(this).attr("href");void 0!==e&&""!=e&&"#"!=e&&m(document).loadUrlInModal(e,!1,(function(){A()}
1))})),m(document).on("click",".ds_ajax_modal",(function(t){t.preventDefault();var e=null;e=void 0!==m(this).attr("data-href")?m(this).attr("data-href"):m(this).attr("href"),m(document).loadUrlInModal(e)})),m(document).on("click",".js-ds-fill-csrf-and-submit .js-as-submit",(function(t){t.preventDefault();var e=m(this).closest("form");window.ds.fillCsrfValue(e,(function(){e.submit()}))})),m(window).scroll((function(){window.innerHeight+window.scrollY>=document.body.offsetHeight?document.querySelector("body").classList.add("js-ds-bottom-reached"):document.querySelector("body").classList.remove("js-ds-bottom-reached")})),m(document).on("click",".ds-js-toggleAllInput",(function(t){var e=m(this).find(".ds-asCheckboxHiddenInput");e.toggleClass("ds-checked");var a=e.hasClass("ds-checked"),n=!1,i=m(this).closest(".ds-group").find("input");m.each(i,(function(){m(this).prop("checked",a),n=m(this).hasClass("js-submit")})),n&&m(this).closest("form").submit()})),m(document).on("click",".ds-js-copy-link",(function(t){var e=m(this).attr("data-url");const a=document.createElement("textarea");a.value=e,document.body.appendChild(a),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(a),alert(ds_settings.tr["ds.copied_to_clipboard"])})),m(document).ready((function(){var t=function(){var t=m(".ds-js-check-catalog-file-exists");if(t.length>0)var e=setInterval((function(){var a=t.attr("data-url");m.post(a,(function(t){null!=t.fileId&&(clearInterval(e),m("body").html('<div class="container"><div class="ds-h1 text-center">'+ds_settings.tr["ds.download_started"]+"</div></div>"),location.reload())}))}),1e4)};t();var e=m(".ds-js-catalog-start-generation");if(e.length>0){var a=e.attr("data-url");m.post(a,(function(a){null!=a.fileId?(m("body").html('<div class="container"><div class="ds-h1 text-center">'+ds_settings.tr["ds.download_started"]+"</div></div>"),location.reload()):(m("body").append(e.attr("data-check-initializer")),t())})).fail((function(a,n,i){m("body").append(e.attr("data-check-initializer")),t()}))}}));a(20),a(21),a(22),a(23),a(24),a(25),a(26),a(27)}]);

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.