/*! my-project-name 2023-07-11 */ WebFont.load({google:{families:["EB Garamond","PT Serif","Roboto&display=swap"]}}),function($){function resizeAndCenterImages(screen_height,image_width,image_height){var res_w,res_h,res_ox,res_oy,slides=$(screen_height).find(">div"),screen_width=$(screen_height).width(),screen_height=$(screen_height).height();(res_h=screen_height)&&(res_w=res_h*(image_width/image_height))>=screen_width||(res_w=screen_width)&&(res_h=res_w*(image_height/image_width)),res_ox=res_w==screen_width?0:"-"+(res_w-screen_width)/2,res_oy=res_h==screen_height?0:"-"+(res_h-screen_height)/2,$.each(slides,function(index,slide){$(slide).find(".single_slide > img").css({width:res_w+"px",height:res_h+"px",left:res_ox+"px",top:res_oy+"px"})})}function refresh_size_queries(){var classes=[],scrollbarwidth=function(){var outer=document.createElement("div");outer.style.visibility="hidden",outer.style.width="100px",outer.style.msOverflowStyle="scrollbar",document.body.appendChild(outer);var widthNoScroll=outer.offsetWidth;outer.style.overflow="scroll";var widthWithScroll=document.createElement("div");widthWithScroll.style.width="100%",outer.appendChild(widthWithScroll);widthWithScroll=widthWithScroll.offsetWidth;return outer.parentNode.removeChild(outer),widthNoScroll-widthWithScroll}();window_width=$(window).width()+scrollbarwidth,window_height=$(window).height(),is_phone=window_width<768,is_mobile=window_width<992,is_tablet_portrait=768<=window_width&&window_width<992,is_tablet_landscape=992<=window_width&&window_width<1200&&window_height<=768,is_tablet=is_tablet_portrait||is_tablet_landscape,is_desktop=992<=window_width,is_desktop_large=1200<=window_width,is_phone&&classes.push("mq_phone"),is_mobile&&classes.push("mq_mobile"),is_tablet_portrait&&classes.push("mq_tablet_portrait"),is_tablet_landscape&&classes.push("mq_tablet_landscape"),is_tablet&&classes.push("mq_tablet"),is_desktop&&classes.push("mq_desktop"),is_desktop_large&&classes.push("mq_desktop_large"),$("html").removeClass("mq_phone"),$("html").removeClass("mq_mobile"),$("html").removeClass("mq_tablet_portrait"),$("html").removeClass("mq_tablet_landscape"),$("html").removeClass("mq_tablet"),$("html").removeClass("mq_desktop"),$("html").addClass(classes.join(" "))}function headerPosition(){var header=$("#header_wrap"),breakpoint=header.height();is_index&&(breakpoint=$("#slideshow").height(),$(window).scrollTop()>=breakpoint?(header.addClass("fixed"),$("#preview-social").fadeIn()):(header.removeClass("fixed"),$("#preview-social").fadeOut()))}function indexPreviewSectionCrossSize(){var container=$(".section_content_image");0 div").css({left:($(window).width()-container.outerWidth()-20)/2})}"itven30930"!=hotel_data.hotel_hid&&"itven27858"!=hotel_data.hotel_hid||((player=new Plyr("#player_video",{muted:!0,volume:0,controls:["play-large","play","progress","current-time","mute","volume","captions","airplay","fullscreen"],loop:{active:!0},quality:{default:"auto"},storage:{enabled:!1,key:"ply"}})).on("ready",function(){is_mobile?($("#video_box").css({height:"calc(100vw * (9 / 16))"}),$("#video_box .video_is_mobile").css({height:"calc(100vw * (9 / 16))"}),$("#video_box .plyr--video").css({height:"calc(100vw * (9 / 16))",top:"70px"})):$("#video_box").css({height:$(window).height()}),is_mobile?($(".slideshow_container").css({height:"calc(100vw * (9 / 16) + 70px)"}),$(".slideshow").css({height:"calc(100vw * (9 / 16))"})):$(".slideshow_container").css({" height":"calc(100vh - 100px)"}),$("#video_box").fadeIn(1e3),player.play()}),$(".close_video").on("click",function(){player.stop(),$("#video_box").fadeOut(1e3),$(".slideshow_container").css({height:"calc(100vh - 70px)"})}),player.on("ended",function(event){player.restart()})),refresh_size_queries(),headerPosition(),window.onscroll=function(){headerPosition()},0<(btn=$("#slideshow")).size()&&btn.cycle({slides:".single_slide",speed:6e3,next:btn.parent().find("a.next"),prev:btn.parent().find("a.prev"),timeout:5e3}).on("cycle-after",function(){$(".caption").addClass("visible")}).on("cycle-before",function(){$(".caption").removeClass("visible")}),sidebar=$("#sidebar"),btn=$(".open_sidebar"),sidebar_overlay=$("#sidebar_overlay"),mClass="visible",html=$("html"),btn.click(function(){sidebar.hasClass(mClass)||(sidebar.addClass(mClass),sidebar_overlay.addClass(mClass),html.addClass("no_scroll"))}),sidebar_overlay.click(function(){sidebar.hasClass(mClass)&&(sidebar.removeClass(mClass),sidebar_overlay.removeClass(mClass),html.removeClass("no_scroll"))}),$(".close_sidebar").click(function(){sidebar.hasClass(mClass)&&(sidebar.removeClass(mClass),sidebar_overlay.removeClass(mClass),html.removeClass("no_scroll"))}),function(){$('').appendTo($("#primary_menu .menu-item-has-children"));var button=$("#primary_menu .menu .more_li"),parent=$("li.menu-item-has-children, li.page_item_has_children"),submenu=$("ul.sub-menu, ul.children");$("#sidebar_wrap"),button.click(function(){$(this).closest(parent).hasClass("open")?$(this).closest(parent).find(submenu).stop().fadeOut(function(){$(this).closest(parent).removeClass("open")}):(parent.removeClass("open"),parent.find(submenu).stop().fadeOut(),$(this).closest(parent).find(submenu).stop().fadeIn(400,function(){$(this).closest(parent).addClass("open")}))})}(),lang=$("#custom_lang_overlay"),$("#language_selection a").click(function(){lang.hasClass("open")||(lang.fadeIn(300).addClass("open"),lang.find("> div").addClass("open"))}),$("#close_lang").click(function(){lang.hasClass("open")&&($(this).closest(lang).find("> div").removeClass("open"),lang.fadeOut(300).removeClass("open"))}),$(document).click(function(event){$(event.target).closest("#language_selection a").length||lang.hasClass("open")&&($(this).closest(lang).find("> div").removeClass("open"),lang.fadeOut(300).removeClass("open"))}),0<(btn=$("#prew_items .logo")).size()&&btn.click(function(){var id=$(this).attr("data-link"),top=$("#header_wrap"),top=$("#"+id).offset().top-top.height();$("html,body").stop().animate({scrollTop:top},500)}),0<(container=$("#preview_rooms_carousel")).size()&&(pager=$("#rooms_pager"),counter_current=pager.find(".current"),counter_tot=pager.find(".tot"),container.on("initialized.owl.carousel",function(event){counter_current.html(event.page.index+1),counter_tot.html(event.page.count),is_mobile||setTimeout(function(){setSectionHeight()},2e3)}),content_html="ar"==icl_lang,container.owlCarousel({rtl:content_html,items:1,margin:20,loop:!1,nav:!1}),container.on("translate.owl.carousel",function(event){is_mobile||pager.css({display:"none"})}),container.on("translated.owl.carousel",function(event){is_mobile||pager.stop().fadeIn("fast")}),container.on("resized.owl.carousel",function(event){indexPreviewSectionCrossSize(),is_mobile||setSectionHeight()}),container.on("changed.owl.carousel",function(event){counter_current.html(event.page.index+1)}),pager.find(".arrow.next").click(function(){container.trigger("next.owl.carousel")}),pager.find(".arrow.prev").click(function(){container.trigger("prev.owl.carousel")})),$("#seobar_wrapper").appendTo($("#seobar_container")),$(".hotel-company").appendTo($("#footer_menu .menu")),$(".required-fields").appendTo($(".gform_footer")),$(".fancy").fancybox({padding:"0"}),$("a.video").click(function(){return $.fancybox({padding:0,autoScale:!1,transitionIn:"none",transitionOut:"none",title:!1,width:"800",height:"533",href:this.href.replace(new RegExp("watch\\?v=","i"),"v/"),type:"iframe"}),!1}),0<$("#rooms_features").size()&&$("ul.tabs").tabs(),content_html=$("#slideshow_content .overlay_text .description .info"),is_index&&0'+content_html+"",maxWidth:600,autoDimensions:!0,width:"100%",transitionIn:"elastic",transitionOut:"elastic"})),$(".close_map").click(function(){$("#map_directions").fadeOut(function(){directionsDisplay.setPanel(null),directionsDisplay.setMap(null),map.setZoom(gmap_config.map_zoom),map.setCenter(new google.maps.LatLng(center[0],center[1])),gmap_config.set_bounds&&map.fitBounds(bounds)}),$(".itineraryPanelWrapper").remove()}),0<$("#map-canvas").length&&768<=$(window).width()&&initializeMap("map-canvas",gmap_config)})}(jQuery); //# sourceMappingURL=main.min.js.map