PageSourceSearch

https://www.nicolaus.it/js/app.js?id=fdac3482c60de95af9d03fb0e77096c4

js nicolaus.it collected 2026-10-04 13:24:13 UTC 20,887 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[773],{7745:(e,t,o)=>{$((function(){$(".image").lazy()})),o(417),o(3967),o(642)},642:(e,t,o)=>{"use strict";o.r(t);var s=o(1957),i=[],r={brand:[],period:[],dest:[]},n=!1;$((function(){if($('a[href^="#"]').on("click",(function(e){e.preventDefault(),$(".section-offerpromo-filter").length?$([document.documentElement,document.body]).animate({scrollTop:$(this.hash).offset().top-260},800):$([document.documentElement,document.body]).animate({scrollTop:$(this.hash).offset().top-160},800)})),window.location.href.indexOf("#")>-1){var e=window.location.href.split("#")[1];if("richiedi-preventivo"===e){var t;$("#modal_form_quote").modal("show");var o=window.location.hostname.split(".");o=(null!==(t=o)&&void 0!==t?t:[]).includes("nicolaus")?"nicolaus.it":"valtur.com"}$(window).on("load",(function(){$("#"+e+" > .collapsed").length&&$("#"+e+" > .collapse").collapse("show"),$(".section-offerpromo-carousel #"+e).length&&$(".section-offerpromo-carousel .carousel-slider-for").slick("slickGoTo",parseInt($("#"+e+"-for").data("slick-index"))),$(".section-offerpromo-filter")&&$(".section-offerpromo-filter").length?$([document.documentElement,document.body]).animate({scrollTop:$("#"+e).offset().top-260},800):$([document.documentElement,document.body]).animate({scrollTop:$("#"+e).offset().top-160},800)}))}$('[data-tool="tooltip"]').tooltip(),"/"!=window.location.pathname&&"/nicolausit/public/"!=window.location.pathname&&$("body").css({"padding-top":$("header").height()}),$(window).on("load",(function(){$("body").css({transition:"all 0.3s ease-in-out"})})),$(window).width()>767&&$(".search-result-structure-filter-navbar img").length&&$(window).on("scroll",(function(){window.scrollY>30?($(".search-result-structure-filter-navbar img").css("opacity","0"),$(".search-result-structure-filter-navbar img").css("margin-bottom","0"),$(".search-result-structure-filter-navbar img").css("height","0")):$(".search-result-structure-filter-navbar img").removeAttr("style")})),l(),c(),$(window).on("resize",(function(){l(),c()})),$("#navbar").on("shown.bs.collapse",(function(){$("header").find(".popup").addClass("show"),$(window).width()<767&&($("body").css("overflow","hidden"),$("nav.d-sm-none").css({"z-index":"1001",position:"relative",top:"35px"}))})),$("#navbar").on("hidden.bs.collapse",(function(){$("body").css("overflow",""),$(window).width()<767&&($(".popup").removeClass("show"),$("nav.d-sm-none").css({"z-index":"1",position:"static",top:"35px"}))})),$(".offer-filters-list .dropdown-toggle").on("click",(function(){$(".popup").toggleClass("show")})),$(".offer-filters-list .dropdown-item").on("click",(function(){$(".popup").removeClass("show")}));var a={dest:"",period:"",nMonth:null};function l(){var e=this;if($(window).width()<767){if($("header").length){var t=0;$("header").css("transition","all .3s ease-in"),$(window).on("scroll",(function(){var o=$(e).scrollTop(),s=1;$(".breadcrumbspace").length&&(s+=1,window.scrollY>1?$(".breadcrumbspace").css("height","0"):0==window.scrollY&&$(".breadcrumbspace").css("height","15px")),window.scrollY>s&&o>t?($("header").css("opacity","0"),$("header").addClass("invisible")):($("header").removeClass("invisible"),$("header").css("opacity","1")),t=o,o+=10}))}$(".footer .footer-link").first().css("border-top","1px solid #fff")}else $("header .navbar:not(.menu-open).navbar-expand-lg .dropdown").on("mouseenter",(function(){$(".dropdown-toggle",this).dropdown("show")})).on("mouseleave",(function(){$(".dropdown-toggle",this).dropdown("hide")})),$("header .dropdown .dropdown-toggle").on("click",(function(){$(this).attr("href")&&(window.location=$(this).attr("href"))})),$(".footer .footer-link").first().css("border-top","none")}function c(){$(window).width()<767?($(".footer-link .collapse").removeClass("show"),$(".footer-link .h4").attr("data-toggle","collapse"),$(".footer-link .h4").attr("role","button")):($(".footer-link .collapse").addClass("show"),$(".footer-link .h4").removeAttr("data-toggle","collapse"),$(".footer-link .h4").removeAttr("role","button"))}$(".offer-filters-list .dropdown-item.period").on("click",(function(){a.nMonth=parseInt($(this).data("month")),a.peri
1od=$(this).text(),$(".section-offers-listbox").show(),$(this).is(".default")?(a.period="",a.nMonth=null,""!==a.dest&&$.each($(".section-offers-listbox"),(function(){$(this).data("destinations").indexOf(a.dest)<0&&$(this).hide()})),$(".offer-filters-list .dropdown-toggle-name.fpsgg").text("periodo di soggiorno").removeClass("dropdown-toggle-name-style")):($(".offer-filters-list .dropdown-toggle-name.fpsgg").text(a.period).addClass("dropdown-toggle-name-style"),$.each($(".section-offers-listbox"),(function(){$(this).data("expiry")<a.nMonth&&$(this).hide(),""!==a.dest&&$(this).data("destinations").indexOf(a.dest)<0&&$(this).hide()})))})),$(".offer-filters-list .dropdown-item.dest").on("click",(function(){a.dest=$(this).text(),$(".section-offers-listbox").show(),$(this).is(".default")?(a.dest="",""!==a.period&&$.each($(".section-offers-listbox"),(function(){$(this).data("expiry")<a.nMonth&&$(this).hide()})),$(".offer-filters-list .dropdown-toggle-name.fdest").text("destinazione").removeClass("dropdown-toggle-name-style")):($(".offer-filters-list .dropdown-toggle-name.fdest").text(a.dest).addClass("dropdown-toggle-name-style"),$.each($(".section-offers-listbox"),(function(){$(this).data("destinations").indexOf(a.dest)<0&&$(this).hide(),""!==a.period&&$(this).data("expiry")<a.nMonth&&$(this).hide()})))})),$(".offer-filters-group .dropdown-item").on("click",(function(){var e=this;$(".offer-structure-box").show();var t=$(this).data("ref"),o=$(this).hasClass("default"),s=$("#f"+t+"-plh"),i=s.text().trim(),n=$(this).text().trim();if(!o)if($("#f"+t).hide(),i.includes(n)){var a=i.split(", ").filter((function(e){return e!==n})).join(", ");s.text(a),r[t]=r[t].filter((function(t){return t!==$(e).data("value")})),a||s.hide()}else{var l=i?i+", "+n:n;s.text(l).show(),r[t].push($(this).data("value"))}(o||""===s.text())&&($("#f"+t).show(),$("#f"+t+"-plh").text("").hide(),r[t]=[]),$(".offer-structure-box").each((function(e,t){var o,s,i,n=$(t).data();console.log(r.dest),null!==(o=r.dest)&&void 0!==o&&o.length&&!r.dest.includes(n.destination)&&$(t).hide(),null!==(s=r.period)&&void 0!==s&&s.length&&!r.period.includes(n.period)&&$(t).hide(),null!==(i=r.brand)&&void 0!==i&&i.length&&!r.brand.includes(n.brand)&&$(t).hide()}));var c=$(".offer-structure-box").filter((function(e,t){return"none"!==getComputedStyle(t).display}));$("#totresoffgr").text(c.length)})),$('.popup, button[data-target="#navbar"]').on("click",(function(){$("#navbar").collapse("hide"),$(".popup").removeClass("show"),$("body").css("overflow","")})),$('[data-target*="#animation-details"]').on("click",(function(e){e.preventDefault(),$(".section-brand-details-carousel").toggleClass("active")})),$(".search-nav-link").on("click",(function(){n!=$(this).attr("href")?($(".search-form").removeClass("invisible"),$(".search-form .tab-content.hidden").addClass("active"),n=$(this).attr("href"),$(".search-nav-link").removeClass("active"),$('.search-nav-link[href*="'+n+'"]').addClass("active"),$(".search-form .tab-content .tab-pane").removeClass("show active"),$(n).tab("show")):($(".search-nav-link").removeClass("active"),$(".search-form").addClass("invisible"),$(".search-form .tab-content.hidden").removeClass("active"),n=!1),$(".search-form .tab-content.hidden").hasClass("active")?($("body").css({"padding-top":$("header").height()}),$("header").eq(0).css("box-shadow","none"),$(window).width()<767&&($("body").css({"padding-top":$("header").height()+330}),$(".search-form-small").toggleClass("d-none"))):($("body").css({"padding-top":$("header").height()}),$("header").eq(0).css("box-shadow",""))})),$("body").on("click",".close-search-form",(function(){n=!1,$(".search-nav-link").removeClass("active"),$(".search-form .tab-content .tab-pane").removeClass("active show"),$(".search-form .tab-content.hidden").toggleClass("active"),$(".search-form").toggleClass("invisible"),$("body").css({"padding-top":$("header").height()}),$("header").eq(0).css("box-shadow","none"),$(window).width()<767&&$(".search-form-small").removeClass("d-none")})),$('[class^="section-structure-"]').not(".section-structure-title, .section-structure-stops").find(".h2").each((function(){i.push({text:$(this).text(),height:$(this).height()+$(this).offset().top-480}),$(this).hasClass("security")?$('<a class="nav-link security" href="#'+$(this).text().split(" ")[0].toLowerCase()+'">'+$(this).text().split(" ")[0]+"</a>
1").appendTo(".section-structure-filter .nav"):$('<a class="nav-link" href="#'+$(this).text().split(" ")[0].toLowerCase()+'">'+$(this).text().split(" ")[0]+"</a>").appendTo(".section-structure-filter .nav"),$('<a class="dropdown-item" href="#'+$(this).text().split(" ")[0].toLowerCase()+'">'+$(this).text().split(" ")[0]+"</a>").appendTo(".section-structure-filter .dropdown-menu"),$(".section-structure-filter").show()})),$(".section-structure-filter .nav-link:not(.othlink, .tour-link)").on("click",(function(e){e.preventDefault(),$([document.documentElement,document.body]).animate({scrollTop:$(this.hash).offset().top-240},500,"swing")})),$(".section-structure-filter .dropdown-item:not(.othlink, .tour-link)").on("click",(function(e){e.preventDefault(),$([document.documentElement,document.body]).animate({scrollTop:$(this.hash).offset().top-130},500,"swing"),$($(this).prop("hash")+"-dropdown").collapse("show"),$(".section-structure-filter .dropdown-toggle span").text($(this).text())})),$(".section-structure-filter .tour-link").on("click",(function(e){e.preventDefault(),$([document.documentElement,document.body]).animate({scrollTop:$(this.hash).offset().top-240},500,"swing")})),$(window).on("scroll",(function(){for(var e=0;null!==(t=e<(null==i?void 0:i.length))&&void 0!==t&&t;e++){var t;window.scrollY>i[e].height||window.pageYOffset>i[e].height?$(".section-structure-filter .nav-link:not(.othlink, .tour-link)").each((function(t,o){e==t&&($(".section-structure-filter .nav-link:not(.othlink, .tour-link)").removeClass("active"),$(this).addClass("active"))})):(window.scrollY<i[0].height||window.pageYOffset<i[0].height)&&$(".section-structure-filter .nav-link:not(.othlink, .tour-link)").removeClass("active")}})),$("#setstateaction").on("click",(function(){var e=document.getElementsByClassName("btn-loginsl"),t=document.getElementsByClassName("btn-signupsl"),o=new URL(e[0].href),s=new URL(t[0].href);o.searchParams.set("state",window.location.href+"?action=addFavorite"),s.searchParams.set("lastViewedUrl",window.location.href+"?action=addFavorite"),e[0].href=o.toString(),t[0].href=s.toString()}
1)),$(".addStrFavorite").on("click",(function(){var e=$(this).data("idsf"),t=($(this).data("idsf"),$(this));(0,s.J)(e,t)})),$(".shownewformc").on("click",(function(){var e=$(this).attr("data-block");$("."+e+" .sendok").hide(),$("."+e+" .sendko").hide(),$("."+e+" .nic_contact_form").show()})),$(".nic_contact_form").on("submit",(function(e){e.preventDefault();var t=$(this).attr("data-block"),o=".".concat(t),s="".concat(o," .is-legal-terms > .calert"),i="".concat(o," select"),r="".concat(o,' input[type="radio"]'),n="".concat(o,' input[type="checkbox"]'),a=!$("".concat(n,"#contact_form_haveActiveBooking")).is(":checked")||$("".concat(o," input[name='contact_form[bookingCode]']")).val(),l=""!==$("".concat(i,"[name='contact_form[destination]']")).find(":selected").val(),c=""!==$("".concat(i,"[name='contact_form[hotel]']")).find(":selected").val(),d=!!$("".concat(r,"[name='contact_form[privacy]']:checked")).length,u=!!$("".concat(r,"[name='contact_form[privacy2]']:checked")).length,f=!!["Informazioni su struttura o destinazione","Richiedi Preventivo"].includes($("".concat(i,"[name='contact_form[reason]']")).find(":selected").val());if(a)if(!f||l||c)if(d&&u){var h=$(this).attr("data-recaptcha");grecaptcha.ready((function(){grecaptcha.execute(h,{action:"send_contact"}).then((function(e){$("."+t+" .nic_contact_form").append($('<input type="hidden" id="recaptcha_token" name="recaptcha_token" value="'+e+'">')),$("."+t+" .nic_contact_form").hide(),$("."+t+" .sendok").hide(),$("."+t+" .sendko").hide(),$("."+t+" .sendwait").show(),$.ajax({type:"POST",url:window.appUrl+"/api/request/contact",dataType:"json",data:$("."+t+" .nic_contact_form").serialize(),success:function(e){$("."+t+" .sendwait").hide(),void 0!==e.error?$("."+t+" .sendko").show():($("."+t+" .nic_contact_form input[name!='_token'], ."+t+" .nic_contact_form select, ."+t+" .nic_contact_form textarea").val(""),void 0!==e.body&&"KO"==e.body.esito?$("."+t+" .sendko").show():$("."+t+" .sendok").show())},error:function(e){$("."+t+" .sendwait").hide(),$("."+t+" .sendko").show()}})}))}))}else d?document.querySelectorAll(s)[0].classList.remove("d-block"):document.querySelectorAll(s)[0].classList.add("d-block"),u?document.querySelectorAll(s)[1].classList.remove("d-block"):document.querySelectorAll(s)[1].classList.add("d-block");else document.querySelectorAll("".concat(o," .alert-destination"))[0].classList.add("d-block"),document.querySelectorAll("".concat(o," #contact_form_destination"))[0].classList.add("alert-danger"),document.querySelectorAll("".concat(o," #contact_form_hotel"))[0].classList.add("alert-danger");else document.querySelectorAll("".concat(o," input[name='contact_form[bookingCode]']"))[0].classList.add("alert-danger")}))}))},1957:(e,t,o)=>{"use strict";o.d(t,{J:()=>s,M:()=>i});var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return window.AuthorizationSF?window.axios.post(window.appUrl+"/api/travel-preferences",{structureId:e},{headers:{"Authorization-SF":window.AuthorizationSF},withCredentials:!0}).then((function(e){if(200===e.status)return t&&(e.data.is_favorite?t.find("svg path").attr("fill","#18243D"):t.find("svg path").attr("fill","")),e.data;console.log("Errore: risposta inaspettata",e)}
1)).catch((function(e){console.log("Errore nella richiesta:",e)})):($("#area-riservata").modal("show"),null)},i=function(){if(window.AuthorizationSF)return window.axios.post(window.appUrl+"/save-search",{url:window.location.href},{headers:{"Authorization-SF":window.AuthorizationSF},withCredentials:!0}).then((function(e){if(200===e.status)return console.log(e),!0;console.log("Errore: risposta inaspettata",e)})).catch((function(e){console.log("Errore nella richiesta:",e)}));var e=document.getElementsByClassName("btn-loginsl"),t=new URL(e[0].href);t.searchParams.set("state",window.location.href+"&action=saveSearch"),e[0].href=t.toString();var o=document.querySelector(".btn-signupsl");if(o){var s=new URL(o.href);s.searchParams.set("lastViewedUrl",window.location.href+"&action=saveSearch"),o.href=s.toString()}return $("#area-riservata").modal("show"),null}},3967:()=>{function e(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var t={rows:0,lazyLoad:"ondemand"},o=Object.assign({},t,{dots:!0}),s=Object.assign({},t,{arrows:!1}),i=Object.assign({},o,{arrows:!1}),r=(Object.assign({},{slidesToShow:2}),Object.assign({},{slidesToShow:3})),n=Object.assign({},{slidesToShow:4});$(".carousel-oneslide").slick(t),$(".carousel-oneslide-dots").slick(o),$(".carousel-oneslide-noarrow").slick(s),$(".carousel-oneslide-noarrow-dots").slick(i),$(".carousel-threeslides").slick(r),$(".carousel-threeslides-dots").slick(Object.assign({},r,o)),$(".carousel-threeslides-noarrow").slick(Object.assign({},r,s)),$(".carousel-threeslides-noarrow-dots").slick(Object.assign({},r,i)),$(".carousel-fourslides").slick(n),$(".carousel-fourslides-noarrow").slick(Object.assign({},n,s)),$(".carousel-fourslides-noarrow-dots").slick(Object.assign({},n,i)),$(".carousel-slider-nav").slick({rows:0,slidesToScroll:1,arrows:!0,infinite:!1,variableWidth:!0,focusOnSelect:!0,asNavFor:".carousel-slider-for",responsive:[]}),$(".carousel-slider-for").slick({rows:0,slidesToShow:1,slidesToScroll:1,arrows:!1,infinite:!1,fade:!0,asNavFor:".carousel-slider-nav",responsive:[]}),$(".carousel-variableWidth").slick({rows:0,centerMode:!0,centerPadding:"",swipeToSlide:!0,variableWidth:!0}),$(".carousel-variableWidth-noarrow-dots").slick({rows:0,centerMode:!0,centerPadding:"",swipeToSlide:!0,dots:!0,arrows:!1,variableWidth:!0}),$(".carousel-fourslides-noarrow-dots-autoplay").slick({rows:0,slidesToShow:4,swipeToSlide:!0,dots:!0,arrows:!1,autoplay:!0,autoplaySpeed:1500,responsive:[{breakpoint:767,settings:{slidesToShow:1}}]}),$(".carousel-internal-arrow").slick(t),$(".carousel-numbers").on("init",(function(){$(this).append('<div class="carousel-numbers-item"></div>')})).on("init reInit afterChange",(function(e,t,o,s){var i=(o||0)+1;$(this).find(".carousel-numbers-item").text(i+" di "+t.$slides.length)})).slick(t),$(".carousel-offer-md").slick({rows:2,slidesPerRow:1,dots:!0,arrows:!0,centerMode:!0,centerPadding:"",variableWidth:!0}),$(".carousel-offer-sm").slick({rows:0,dots:!0,arrows:!1,centerMode:!0,centerPadding:""}),$((function(){var t;$(".carousel-structure").slickFilterable({filterName:"catalogfilter",filter:function(e,t,o){return $(this).data("catalog")==e},slick:{rows:0,centerMode:!0,centerPadding:"",variableWidth:!0,responsive:[{breakpoint:767,settings:{slidesToShow:1,swipe:!0,arrows:!1}}]}}),$(".carousel-destination").slickFilterable({filterName:"filter",filter:function(e,t,o){return $(this).data("destfilter")==e},slick:(t={rows:0,centerMode:!0,centerPadding:"",arrows:!0,variableWidth:!0},e(t,"centerMode",!0),e(t,"responsive",[{breakpoint:767,settings:{arrows:!1,infinite:!0}}]),t)})})),$(".carousel-brand-details").slick({rows:0,swipeToSlide:!0,arrows:!1,variableWidth:!0,autoplay:!0,autoplaySpeed:1500,responsive:[{breakpoint:767,settings:{centerMode:!0,centerPadding:""}}]}),$(".carousel-flip").slick({rows:0,slidesToShow:3,responsive:[{breakpoint:767,settings:{vertical:!0,centerMode:!0,centerPadding:""}}]}),$(".carousel-structure-rooms").on("init reInit afterChange",(function(e,t,o,s){var i=(o||0)+1;$(".carousel-structure-rooms.slider-for").find(".slick-dots").css("display","none"),$(".typology-room").empty().text("Camera "+structure_name[i-1]),t.$dots?$(".carousel-structure-rooms-numbers").text(i+" di "+t.$dots[0].children.length):$(".carousel-structure-rooms-header").find(".carousel-numbers-item").
1css("display","none")})),$(".carousel-structure-rooms-header .prev").on("click",(function(){$(".carousel-structure-rooms.slider-for").slick("slickPrev"),$(".carousel-structure-rooms.slider-nav").slick("slickPrev")})),$(".carousel-structure-rooms-header .next").on("click",(function(){$(".carousel-structure-rooms.slider-for").slick("slickNext"),$(".carousel-structure-rooms.slider-nav").slick("slickNext")})),$(".carousel-structure-rooms.slider-for").slick({rows:0,centerMode:!0,centerPadding:"",slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,asNavFor:".carousel-structure-rooms.slider-nav"}),$(".carousel-structure-rooms.slider-nav").slick({rows:0,centerMode:!0,centerPadding:"",slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!0,asNavFor:".carousel-structure-rooms.slider-for"}),$('[class*="section-structure-"] .collapse').on("show.bs.collapse",(function(e){$(this).find('[class^="carousel-"].slick-initialized').slick("refresh")})),$((jQuery,void($.fn.slickFilterable=function(e){var t=$.extend({slideSelector:"> *",filterName:"filter-slick",slick:{},beforeFilter:function(){},filter:function(e,t,o,s){return!0}},e);
1return this.each((function(){var e=$(this),o=e.find(t.slideSelector);e.slick(t.slick),$("[data-"+t.filterName+"]").on("click",(function(s){s.preventDefault();var i=$(this).data(t.filterName),r=$.extend(!0,{},o);if(i){if("function"==typeof t.beforeFilter&&t.beforeFilter.call(this,i,e,o),e.slick("unslick"),"all"===i)return e.find(t.slideSelector).remove(),e.append(r),void e.slick(t.slick);r="function"!=typeof t.filter?r.filter(t.filter):r.filter((function(){return t.filter.call(this,i,e,$.extend(!0,{},t))})),e.find(t.slideSelector).remove(),e.append(r),e.slick(t.slick)}})),$("[data-"+t.filterName+"]").on("dblclick",(function(s){if(s.preventDefault(),"filter"!=t.filterName){var i=$(this).data(t.filterName),r=$.extend(!0,{},o);$(this).hasClass("active")&&$(this).removeClass("active"),e.slick("unslick"),"function"==typeof t.beforeFilter&&t.beforeFilter.call(this,i,e,o),e.find(t.slideSelector).remove(),e.append(r),e.slick(t.slick)}}))}))})))},417:()=>{window.addEventListener("load",(function(){"use strict";var e=document.querySelector(".slider-before-after");if(null!=e){var t=e.querySelector(".slider-after"),o=e.querySelector(".slider-track"),s=e.querySelector(".border-icon");o.addEventListener("input",(function(e){var o=2.5;window.innerWidth<700&&(o=4);var i=Number(e.target.value);t.style.width="".concat(i,"%"),s.style.left="".concat(i-o,"% ")})),o.value=50,o.dispatchEvent(new Event("input"))}}))}},e=>{var t;t=7745,e(e.s=t)}]);
2//# sourceMappingURL=app.js.map

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.