jQuery(document).ready(function(){var l=jQuery.noConflict();function e(e,o){var o=1<arguments.length&&void 0!==o&&o,n=l(e).val();null==n||0===n.trim().length||o&&"all"===n?l(e).next().removeClass("bookingor-d-none"):l(e).next().addClass("bookingor-d-none")}l(document).on("click",".bookingor-day-container",function(e){l(".cs-cal-vali").text("").hide()}),l(document).on("click",".select-picktime-1",function(e){l(".cs-vali-timing").addClass("bookingor-d-none")}),l("select[name='select_location']").on("change",function(){e(this)}),l("select[name='select_category']").on("change",function(){e(this,!0)}),l("select[name='select_service']").on("change",function(){e(this)}),l("select[name='select_employee']").on("change",function(){e(this)}),l(".js-close-popup").on("click",function(){l(this).parents(".is-active").removeClass("is-active"),l(".js-custom-popup").addClass("bookingor-d-none"),l("body").removeClass("js-bookingor-modal-open"),l("body").removeClass("flw-n")}),l(document).on("click","#chk-validation",function(e){e.preventDefault();e=!0;0<l("select[name='select_location']").length&&(""===(o=l("select[name='select_location']").val())||null==o?(l("select[name='select_location']").next(".cs-vali-location").removeClass("bookingor-d-none"),e=!1):l("select[name='select_location']").next(".cs-vali-location").addClass("bookingor-d-none"));0<l("select[name='select_category']").length&&(""===(o=l("select[name='select_category']").val())||"all"===o||null==o?(l("select[name='select_category']").next(".cs-vali-category").removeClass("bookingor-d-none"),e=!1):l("select[name='select_category']").next(".cs-vali-category").addClass("bookingor-d-none"));0<l("select[name='select_service']").length&&(""===(o=l("select[name='select_service']").val())||null==o?(l("select[name='select_service']").next(".cs-vali-service").removeClass("bookingor-d-none"),e=!1):l("select[name='select_service']").next(".cs-vali-service").addClass("bookingor-d-none"));0<l("select[name='select_employee']").length&&(""===(o=l("select[name='select_employee']").val())||null==o?(l("select[name='select_employee']").next(".cs-vali-staff").removeClass("bookingor-d-none"),e=!1):l("select[name='select_employee']").next(".cs-vali-staff").addClass("bookingor-d-none"));0<l("#widget-calendar-final").length&&(0<l("#widget-calendar-final").find(".widget-cal-active").length?l(".cs-cal-vali").text("").hide():(l(".cs-cal-vali").text("Select a Date").show(),e=!1));0<l("#bookingor-all-time-show").length&&(0<l("#bookingor-all-time-show").find(".bookingor-active, .active-time-1").length?l(".cs-vali-timing").addClass("bookingor-d-none"):(l(".cs-vali-timing").removeClass("bookingor-d-none"),e=!1));if(!e)return!1;l("#bk_confrim_book-pop-1").modal("show"),l(".modal").addClass("show"),l(".js-custom-popup").removeClass("bookingor-d-none");var o=l(this).attr("data-target");return l("[data-popup="+o+"]").addClass("is-active"),l("#customer-book").removeClass("bookingor-d-none"),l(".custom-popup__close.js-close-popup").removeClass("bookingor-d-none"),!0})});