jQuery(document).ready(function(s){(s=jQuery.noConflict())("#bookingor-forget-password").on("click",function(o){s("#bookingor-logins").addClass("bookingor-d-none"),s("#bookingor-pass-resets").removeClass("bookingor-d-none")}),s("#bookingor-back-to-login").on("click",function(o){s("#bookingor-logins").removeClass("bookingor-d-none"),s("#bookingor-pass-resets").addClass("bookingor-d-none")}),s.ajax({url:BOOKINGOR_BIND_FRONT.GET_URL,type:"POST",data:{action:"bp_settings_get_data"},success:function(o){var r=JSON.parse(o);s.each(r,function(o,n){s(".full-head-1").css("--bookingor_color_border",r.boookingor_css.bookingor_color_border),s(".sidebar-1").css("--bookingor-sidebar-background",r.boookingor_css.sidebar_1),s(".bookingor, .full-service-2").css("--bookingor-border-active-color",r.boookingor_css.bookingor_color_border),s(".bookingor").css("--bookingor-full-day-selected",r.boookingor_css.full_day_selected),s(".bookingor").css("--bookingor-sidebar-text",r.boookingor_css.sidebar_text),s(".bookingor").css("--bookingor-sidebar-text-active",r.boookingor_css.sidebar_text_active),s(".bookingor").css("--bookingor-search-bars",r.boookingor_css.search_bars),s(".bookingor-cont-btn").css("--bookingor-cont-btn-bg",r.bookingor_cont_btn.bg),s(".bookingor").css("--bookingor-cont-btn-color",r.bookingor_cont_btn.clr),s(".bookingor").css("--bookingor-back-btn-bg",r.bookingor_btn_back.bg),s(".bookingor").css("--bookingor-back-btn-color",r.bookingor_btn_back.clr)})},complete:function(){}}),s("#bookingor-login-form").on("submit",function(o){o.preventDefault();var o=s("#email").val(),n=s("#password").val();s.ajax({url:BOOKINGOR_BIND_FRONT.GET_URL,type:"POST",dataType:"json",data:{action:"bp_front_bookingor_profile_login",username:o,password:n},success:function(o){"success"===o.status?window.location.href=o.redirect_url:s("#bookingor-login-error").html(o.message)},error:function(o){}})}),s("#bookingor-reset-password").on("submit",function(o){o.preventDefault(),o=s("#rest-email").val(),s.ajax({type:"POST",url:BOOKINGOR_BIND_FRONT.GET_URL,data:{action:"bp_front_bookingor_password_reset",email:o},success:function(o){o=JSON.parse(o);"success"===o.status&&s("#reset-password-success").html(o.message),s("#reset-password-error").html(o.message)},error:function(o,n,r){}})}),s("#staff-google-login").on("click",function(){s.ajax({url:BOOKINGOR_BIND_FRONT.GET_URL,type:"POST",dataType:"json",data:{action:"staff_google_login"},success:function(o){o&&(window.location.href=o)}})})});