jQuery((function(e){var i;e(document).ready((function(){})),i=e.fn.replaceWith,e.fn.replaceWith=function(){var e=this.parent();return i.apply(this,arguments),e.trigger("content_replaced",arguments),this};var n=function(){e(".wpbs_s-search-widget-results").prepend("<div class='close'>&#x2715</div>"),e(".wpbs_s-search-widget-results .close").click((function(){e(this).parent().hide()}))};n(),e(".search-wrapper").on("content_replaced",(function(e,i){n()}))})),jQuery((function(e){e(document).on("wpbs_form_updated",(function(){e("#wpbs-edit-order").prop("href","#reservation")})),e(document).ready((function(){e(".wpbs-calendars-wrapper").before("<h3 id='reservation'>Rezervácia</h3>"),e(".facilities").appendTo(".booking .wpbs-main-wrapper"),e(".booking .wpbs-form-container").addClass("sticky-side-menu"),e(".booking .wpbs-payment-confirmation").addClass("sticky-side-menu"),GLightbox({selector:".gallery-img"})})),e(document).ready((function(){var i=e(".single-header-gal-col").find("a:visible:last"),n=e(".single-header-gal-col").children(":hidden").length,o=e("<div id='number-of-imgs'></div>");i.addClass("overlay"),i.append(o),e("#number-of-imgs").append("+",n)}));var i=e("#reservation-trigger"),n=e(".booking-mobile .close-btn"),o=e(".booking-mobile"),a=e("body");i.on("click",(function(){i.toggleClass("active"),o.toggleClass("booking-mobile-active"),a.toggleClass("booking-mobile-active")})),n.on("click",(function(){i.toggleClass("active"),o.removeClass("booking-mobile-active"),a.removeClass("booking-mobile-active")}))}));