!function(T){"use strict";"object"==typeof google&&"object"==typeof google.maps&&google.maps.event.addDomListener&&(google.maps.event.addDomListener(window,"load",function(){var t,e=document.getElementById("exwf-user-address");null!=e&&(t=new google.maps.places.Autocomplete(e),""!=(e=jQuery("#exwf_auto_limit").val())&&t.setComponentRestrictions({country:jQuery.parseJSON(e)}),google.maps.event.addListener(t,"place_changed",function(){var e=t.getPlace();""!=e.geometry.location.lat()&&e.geometry.location.lng()}))}),google.maps.event.addDomListener(window,"load",function(){var f,e=document.getElementById("billing_address_1");null!=e&&"yes"!=jQuery("#exwf_dis_auto").val()&&(f=new google.maps.places.Autocomplete(e),""!=(e=jQuery("#exwf_auto_limit").val())&&f.setComponentRestrictions({country:jQuery.parseJSON(e)}),google.maps.event.addListener(f,"place_changed",function(){for(var e=f.getPlace(),t=e.address_components,a="",o="",i="",d="",l="",n="",r="",s="",c=0;c<t.length;++c)-1!==jQuery.inArray("street_number",t[c].types)?o=t[c].long_name:-1!==jQuery.inArray("route",t[c].types)?i=t[c].long_name:-1!==jQuery.inArray("neighborhood",t[c].types)?d=t[c].long_name:-1!==jQuery.inArray("locality",t[c].types)||""==l&&-1!==jQuery.inArray("administrative_area_level_1",t[c].types)?l=t[c].long_name:-1!==jQuery.inArray("administrative_area_level_1",t[c].types)&&-1!==jQuery.inArray("political",t[c].types)?s=t[c].short_name:-1!==jQuery.inArray("country",t[c].types)?n=t[c].short_name:-1!==jQuery.inArray("postal_code",t[c].types)&&(r=t[c].long_name);a=0<(""!=o?e.name.indexOf(o):0)?i+" "+o+(""!=d?" "+d:""):o+" "+i+(""!=d?" "+d:"");jQuery("#billing_address_1").val(a),jQuery("select#billing_country").val(n).trigger("change"),jQuery("#billing_city").val(l),jQuery("#billing_state").val(s).trigger("change"),jQuery("#billing_postcode").val(r)}))}),google.maps.event.addDomListener(window,"load",function(){var f,e=document.getElementById("shipping_address_1");null!=e&&"yes"!=jQuery("#exwf_dis_auto").val()&&(f=new google.maps.places.Autocomplete(e),""!=(e=jQuery("#exwf_auto_limit").val())&&f.setComponentRestrictions({country:jQuery.parseJSON(e)}),google.maps.event.addListener(f,"place_changed",function(){for(var e=f.getPlace(),t=e.address_components,a="",o="",i="",d="",l="",n="",r="",s="",c=0;c<t.length;++c)-1!==jQuery.inArray("street_number",t[c].types)?o=t[c].long_name:-1!==jQuery.inArray("route",t[c].types)?i=t[c].long_name:-1!==jQuery.inArray("neighborhood",t[c].types)?d=t[c].long_name:-1!==jQuery.inArray("locality",t[c].types)||""==l&&-1!==jQuery.inArray("administrative_area_level_1",t[c].types)?l=t[c].long_name:-1!==jQuery.inArray("administrative_area_level_1",t[c].types)&&-1!==jQuery.inArray("political",t[c].types)?s=t[c].short_name:-1!==jQuery.inArray("country",t[c].types)?n=t[c].short_name:-1!==jQuery.inArray("postal_code",t[c].types)&&(r=t[c].long_name);a=0<(""!=o?e.name.indexOf(o):0)?i+" "+o+(""!=d?" "+d:""):o+" "+i+(""!=d?" "+d:"");jQuery("#shipping_address_1").val(a),jQuery("select#shipping_country").val(n).trigger("change"),jQuery("#shipping_city").val(l),jQuery("#shipping_state").val(s).trigger("change"),jQuery("#shipping_postcode").val(r)}))})),T(document).ready(function(){function c(o,i,e,t,a,d,l,n,r,s){T.fn.extl_datepicker.dates.en={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:n,months:d,monthsShort:l,today:"Today",clear:"Clear",titleFormat:"MM yyyy",weekStart:r},o.extl_datepicker({todayHighlight:!0,startDate:"0"!=a?new Date(a):new Date,autoclose:!0,format:i,daysOfWeekDisabled:"undefined"!=e&&""!=e?e:"[]",datesDisabled:"undefined"!=t&&""!=t?t:"[01/01/1000]"}).on("show",function(e){}).on("changeDate",function(e){var t,a=o.val();t="mm/dd/yyyy"!=i?a.split("-").reverse().join("-"):(t=a.split("/"))[2]+"-"+t[0]+"-"+t[1],"yes"==s?(a=o.data("current_url"),(a=new URL(a)).searchParams.set("menu-date",t),jQuery(".exwf-menu-bydate select.exwf-menu-date").append(T("<option>",{value:a,text:"My option"})),jQuery('.exwf-menu-bydate select.exwf-menu-date option[value="'+a+'"]').attr("selected","selected").attr("data-date",t),setTimeout(function(){jQuery(".exwf-menu-bydate select.exwf-menu-date").change()},150)):jQuery(".gr-date-time input#exwfood_date_deli").attr("data-date",t)})}var e,t,a,o,l,i;function d(){var e,t;t=jQuery(".exwf-deli-field input[name=exwfood_date_deli]").length?(e=jQuery(".exwf-deli-field input[name=exwfood_date_deli]"),"no"):(e=jQuery(".exwf-menu-bydate input[name=exwfood_date_deli]"),"yes");var a="mm/dd/yyyy",o=e.data("disday")+"",i=e.data("disdate"),d=e.data("fm");""!=d&&null!=d&&(a=d);var l=e.data("mindate"),n=e.data("fmon"),r=e.data("smon"),s=e.data("sday"),d=e.data("fiday");c(e,a,o,i,l,n,r,s,d,t)}function n(e,t,a,o,i,d){a={action:"exwoofood_booking_info",id_food:e,id_crsc:t,cart_itemkey:d,param_shortcode:a};T.ajax({type:"post",url:o,dataType:"html",data:a,success:function(e){var t,a;"0"==e||""==e?T(".row.loadmore").html("error"):(t="#food_modal",T("body > .ex-fdlist #food_modal").length&&(t="body > .ex-fdlist #food_modal"),T(t).empty(),T(t).append(e),null!=(e=T(t).attr("data-dljsvar"))&&0<e?setTimeout(function(){var e=T(t+" .modal-content").find(".variations_form");e.each(function(){T(this).wc_variation_form()}),e.trigger("check_variations"),e.trigger("reset_image")},e):((a=T(t+" .modal-content").find(".variations_form")).each(function(){T(this).wc_variation_form()}),a.trigger("check_variations"),a.trigger("reset_image")),"function"==typeof T.fn.init_addon_totals&&T("body").find(".cart:not(.cart_group)").each(function(){T(this).init_addon_totals()}),0!=i&&i.removeClass("ex-loading"),T("html").css("max-width",l),T("html").fadeIn("slow",function(){T(this).addClass("exfd-hidden-scroll")}),T(t).css("display","block"),T(t).addClass("exfd-modal-active"),a=T(t+" .exfd-modal-carousel").attr("rtl_mode"),T(t+" .exfd-modal-carousel:not(.ex_s_lick-initialized)").EX_ex_s_lick({dots:!0,slidesToShow:1,infinite:!0,speed:500,fade:!0,cssEase:"linear",arrows:!0,rtl:"yes"==a,adaptiveHeight:!0}),T(t+" .woosb-wrap").length&&T(document).trigger("woosq_loaded"),setTimeout(function(){var e=T(t+" .ex-modal-big").height();T(t+" .fd_modal_img").height()<e&&767<T(window).width()&&T(t+" .ex-modal-big").addClass("ex-padimg")},10),setTimeout(function(){T(t+" .exfd-modal-carousel:not(.exwp-no-galle)").EX_ex_s_lick("setPosition")},150),setTimeout(function(){T(t+" .exfd-modal-carousel:not(.exwp-no-galle)").EX_ex_s_lick("setPosition")},300),T(document).trigger("exwfqv_loaded"))}})}function r(e,t,a){var o,i,d=e.closest(".ex-fdlist").attr("id"),l=T("#"+d).hasClass("table-layout")?"table":"";T("#"+d).hasClass("ex-loading")||(T("#"+d).addClass("ex-loading"),T("#"+d).hasClass("list-layout")&&(l="list"),o=T("#"+d+" input[name=param_query]").val(),i=T("#"+d+" input[name=ajax_url]").val(),e=T("#"+d+" input[name=param_shortcode]").val(),a={action:"exfood_menuegory",param_query:o,id_crsc:d,param_shortcode:e,layout:l,key_word:t,cat:a},T.ajax({type:"post",url:i,dataType:"json",data:a,success:function(e){var t,a;"0"!=e?(T("#"+d+" .ex-loadmore").length&&(t=1,("off"==e.page_navi?T("#"+d+" .ex-loadmore .loadmore-exfood"):T("#"+d+" .ex-loadmore")).remove()),T("#"+d+" input[name=num_page_uu]").val("1"),T("#"+d+" input[name=current_page]").val("1"),a="",a=T("table"==l?"#"+d+" table tbody":"list"==l?"#"+d+" .ctlist":"#"+d+" .ctgrid"),""!=e.page_navi&&"off"!=e.page_navi?1==t?T("#"+d).append(e.page_navi):(T("#"+d+" .exfd-pagination").fadeOut({duration:0,complete:function(){T(this).remove()}}),T("#"+d+" .exfd-pagination-parent").append(e.page_navi)):"off"==e.page_navi&&T("#"+d+" .exfd-pagination .page-navi").fadeOut({duration:0,complete:function(){T(this).remove()}}),T("#"+d).removeClass("ex-loading"),T(a).fadeOut({duration:0,complete:function(){T(this).empty(),a.append(e.html_content).fadeIn()}}),T("#"+d+" .exwf-dcat").length&&T("#"+d+" .exwf-dcat").remove(),"table"==l?T(e.html_dcat).insertBefore("#"+d+" .ctlist"):"list"==l&&T("#"+d+".category_left").length?T("#"+d+" .ctlist").prepend(e.html_dcat):T(e.html_dcat).insertBefore(a),""!=e.html_modal&&(T("#"+d+" .ex-hidden .exp-mdcontaner").fadeOut({duration:0,complete:function(){T(this).empty()}}),T("#"+d+" .ex-hidden .exp-mdcontaner").append(e.html_modal).fadeIn()),s()):T("#"+d+" .loadmore-exfood").html("error")}}))}function s(){T(".ex-food-plug .loadmore-exfood").on("click",function(){var e,t;T(this).hasClass("disable-click")||(t=(e=T(this)).closest(".ex-fdlist").attr("id"),f("loadmore",e,t,""))})}function f(a,o,i,e){"loadmore"!=a&&T("#"+i+" .page-numbers").removeClass("disable-click"),o.addClass("disable-click");var d=T("#"+i+" input[name=num_page_uu]").val();T("loadmore"==a?"#"+i+" .loadmore-exfood":"#"+i).addClass("ex-loading");var l=T("#"+i).hasClass("table-layout")?"table":"";T("#"+i).hasClass("list-layout")&&(l="list");var t=T("#"+i+" input[name=param_query]").val(),n=T("#"+i+" input[name=param_ids]").val(),r=T("#"+i+" input[name=current_page]").val(),s=T("#"+i+" input[name=num_page]").val(),c=T("#"+i+" input[name=ajax_url]").val(),f=T("#"+i+" input[name=param_shortcode]").val(),f={action:"exwoofood_loadmore",param_query:t,param_ids:n,id_crsc:i,page:""!=e?e:+r+1,param_shortcode:f,layout:l};T.ajax({type:"post",url:c,dataType:"json",data:f,success:function(e){var t;"0"!=e?("loadmore"==a?(d=+d+1,T("#"+i+" input[name=num_page_uu]").val(d),""==e.html_content?T("#"+i+" .loadmore-exfood").remove():(T("#"+i+" input[name=current_page]").val(+r+1),"table"==l?T("#"+i+" table tbody").append(e.html_content):"list"==l?T("#"+i+" .ctlist").append(e.html_content):(T("#"+i+" .ctgrid").append(e.html_content),setTimeout(function(){T("#"+i+" .item-grid").addClass("active")},200)),T("#"+i+" .loadmore-exfood").removeClass("ex-loading"),o.removeClass("disable-click")),d==s&&T("#"+i+" .loadmore-exfood").remove()):(t="",t=T("table"==l?"#"+i+" table tbody":"list"==l?"#"+i+" .ctlist":"#"+i+" .ctgrid"),T(t).fadeOut({duration:0,complete:function(){T(this).empty()}}),T("#"+i).removeClass("ex-loading"),t.append(e.html_content).fadeIn(),jQuery(window).height(),jQuery("html,body").animate({scrollTop:jQuery("#"+i).offset().top-50},"slow")),""!=e.html_modal&&T("#"+i+" .ex-hidden .exp-mdcontaner").append(e.html_modal).fadeIn(),T("#"+i).hasClass("extp-masonry")&&!T("#"+i).hasClass("column-1")&&"function"==typeof imagesLoaded&&T("#"+i+".extp-masonry .ctgrid").imagesLoaded(function(){T("#"+i+".extp-masonry .ctgrid").masonry("reloadItems"),T("#"+i+".extp-masonry .ctgrid").masonry({isInitLayout:!1,horizontalOrder:!0,itemSelector:".item-grid"})})):T("#"+i+" .loadmore-exfood").html("error")}})}function u(e,t,a,o,i,d,l,n,r,s){jQuery(e).hasClass("ex_s_lick-initialized")||jQuery(e).EX_ex_s_lick({infinite:t,initialSlide:a,rtl:"yes"==o,prevArrow:'<button type="button" class="ex_s_lick-prev"></button>',nextArrow:'<button type="button" class="ex_s_lick-next"></button>',slidesToShow:i,slidesToScroll:d,dots:!0,autoplay:1==l,autoplaySpeed:""!=n?n:3e3,arrows:!0,centerMode:!1,focusOnSelect:!1,ariableWidth:!0,adaptiveHeight:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:i,slidesToScroll:d}},{breakpoint:769,settings:{slidesToShow:""!=s?s:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:r,slidesToScroll:1}}]})}jQuery(document).ready(function(e){jQuery(".ex-fdlist").length&&!jQuery("body > .ex-fdlist").length&&(jQuery("body").append('<div class="ex-fdlist"></div>'),jQuery("body > .ex-fdlist").append(jQuery(".exfd-cart-content:not(.exwf-sccart)")),jQuery("body > .ex-fdlist").append(jQuery(".exfd-shopping-cart")),jQuery("body > .ex-fdlist").append(jQuery(".exfd-overlay")),jQuery("body > .ex-fdlist").append(jQuery("#food_modal")),jQuery(".ex-popup-location.ex-popup-active").length&&jQuery("body > .ex-fdlist").append(jQuery(".ex-popup-location.ex-popup-active")),jQuery("body > .ex-fdlist .exwf-order-method").length||jQuery("body > .ex-fdlist").append(jQuery(".exwf-order-method")),jQuery("body > .ex-fdlist").append(jQuery(".exwf-opcls-info:not(.exwf-odtype)")),jQuery("body > .ex-fdlist").append(jQuery(".exwf-mbnav").first()))}),0<jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").length&&(e=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]"),t="mm/dd/yyyy",a=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("disday")+"",i=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("disdate"),""!=(o=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fm"))&&null!=o&&(t=o),c(e,t,a,i,jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("mindate"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fmon"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("smon"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("sday"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fiday"),"")),(jQuery(".exwf-menu-bydate input[name=exwfood_date_deli]").length||jQuery(".exwf-deli-field input[name=exwfood_date_deli]").length)&&d(),jQuery(document).on("exwf_datetime_loaded",function(e){setTimeout(function(){(jQuery(".exwf-menu-bydate input[name=exwfood_date_deli]").length||jQuery(".exwf-deli-field input[name=exwfood_date_deli]").length)&&d()},200)}),l=T("html").width(),T(window).resize(function(){T("html").css("max-width",""),l=T("html").width(),"block"==T(".ex_modal.exfd-modal-active").css("display")&&T("html").css("max-width",l)}),T("body").on("click",".ex-fdlist.ex-food-plug:not(.exfdisable-modal) .parent_grid .ctgrid a:not(.mndate-sl), .ex-fdlist.ex-food-plug:not(.exfdisable-modal) .parent_grid .scrs-grid a:not(.mndate-sl), .ex-fdlist:not(.exfdisable-modal) .ctlist a:not(.mndate-sl)",function(e){var t,a=T(this).closest(".ex-fdlist ").attr("id"),o=T("#"+a).hasClass("table-layout")?"table":"";if(T("#"+a).hasClass("ex-fdcarousel")&&(o="Carousel"),t="table"!=o?T(this).closest(".item-grid"):T(this).closest("tr"),!t.hasClass("ex-redirect")&&(e.preventDefault(),!t.hasClass("ex-loading"))){T(".ex-fdlist .item-grid, .ex-fdlist tr").removeClass("exwf-crfood"),t.addClass("exwf-crfood"),t.addClass("ex-loading");o=t.data("id_food"),e=T("#"+a+" input[name=ajax_url]").val();return n(o,a,T("#"+a+" input[name=param_shortcode]").val(),e,t,""),!1}}),T("body").on("click",".exwf-nepr .exwf-previous:not(.exwf-disclick), .exwf-nepr .exwf-next:not(.exwf-disclick)",function(e){var t;if(e.preventDefault(),(t=T(this).hasClass("exwf-next")?T(".ex-fdlist .exwf-crfood").next():T(".ex-fdlist .exwf-crfood").prev()).length){T(".ex-fdlist .item-grid, .ex-fdlist tr").removeClass("exwf-crfood"),t.addClass("exwf-crfood");var a=t.closest(".ex-fdlist ").attr("id");T("#"+a).hasClass("table-layout");T("#"+a).hasClass("ex-fdcarousel");var o=t.data("id_food"),e=T("#"+a+" input[name=ajax_url]").val();return n(o,a,T("#"+a+" input[name=param_shortcode]").val(),e,t,""),!1}}),T(document).on("exwfqv_loaded",function(e){return jQuery(".exwf-nepr .exwf-previous").length&&(T(".ex-fdlist .exwf-crfood").next().length||jQuery(".exwf-nepr .exwf-next").addClass("exwf-disclick"),T(".ex-fdlist .exwf-crfood").prev().length||jQuery(".exwf-nepr .exwf-previous").addClass("exwf-disclick")),!1}),T("body").on("click",".exwf-edit-options",function(e){e.preventDefault();var t=T(this).data("id_food"),e=T(this).data("key");return n(t,"","",T(".ex-fdlist input[name=ajax_url]").val(),!1,e),!1}),T("body").on("click",".exfd-cart-mini li > a:not(.remove):not(.exwf-edit-options), .exfd-cart-mini li a.exwfpdlink",function(e){var t=T(this).closest("li").find(".remove").data("product_id");if(""!=t)return e.preventDefault(),n(t,"","",T(".ex-fdlist input[name=ajax_url]").val(),!1,""),!1}),T("body").on("click",".woocommerce-cart-form .cart_item .product-name > a:not(.exwf-edit-options), a.exwf-dfcartlink",function(e){var t=T(this).closest(".cart_item").find(".product-remove a").data("product_id");if(""!=t)return e.preventDefault(),n(t,"","",T(".ex-fdlist input[name=ajax_url]").val(),!1,""),!1}),T(window).on("resize",function(){var e=T("#food_modal .ex-modal-big").height();T("#food_modal .fd_modal_img").height()<e&&767<T(window).width()?T("#food_modal .ex-modal-big").addClass("ex-padimg"):T("#food_modal .ex-modal-big").removeClass("ex-padimg")}),T(".exfd-shopping-cart").on("click",function(e){return e.preventDefault(),T(".exfd-cart-content").addClass("excart-active"),T(".exfd-overlay").addClass("exfd-overlay-active"),T(".exfd-cart-content .exfd-out-notice").remove(),T(document).trigger("exwf_open_sidecart"),T(".exfd-cart-mini .ex-fdcarousel").length&&setTimeout(function(){jQuery(".exfd-cart-mini .ex-fdcarousel .ctgrid.ex_s_lick-initialized").EX_ex_s_lick("setPosition")},200),!1}),T(".exfd-cart-content .exfd-close-cart, .exfd-overlay").on("click",function(e){return T(".exfd-cart-content").removeClass("excart-active"),T(".exfd-overlay").removeClass("exfd-overlay-active"),T(document).trigger("exwf_close_sidecart"),T(".exfd-cart-content .exfd-out-notice").remove(),!1}),T("body").on("click",".ex-fdlist.ex-food-plug:not(.exfdisable-modal) .exfd-choice",function(e){return T(this).prev(".ex-hidden").find("form").length?(T(this).addClass("ex-loading"),T(this).prev(".ex-hidden").find(".exwoofood-woocommerce form").trigger("submit")):T(this).prev(".ex-hidden").find("a").trigger("click"),!1}),T("body").on("click",".ex-fdlist.ex-food-plug.exfdisable-modal .exfd-choice",function(e){var t=T(this).closest("figure").find(".exfd_modal_click").attr("href");return""!=t&&null!=t&&(location.href=t),!1}),T("body").on("click",".ex-fdlist.ex-food-plug:not(.exfdisable-modal) .exbt-inline .exstyle-3-button",function(e){return T(this).closest("figure").find(".ex-hidden form").length?(e.preventDefault(),T(this).addClass("ex-loading"),T(this).closest("figure").find(".ex-hidden form").trigger("submit")):T(this).closest("figure").find(".ex-hidden a").trigger("click"),!1}),T(".ex-food-plug #food_modal").on("click",".ex_close",function(e){e.preventDefault();T(this);e="#food_modal";T("body > .ex-fdlist #food_modal").length&&(e="body > .ex-fdlist #food_modal"),T(e).css("display","none"),T("html").removeClass("exfd-hidden-scroll"),T(e).removeClass("exfd-modal-active"),T("html").css("max-width","")}),T(".ex-food-plug .ex_modal").on("click",function(e){"ex_modal exfd-modal-active"==e.target.className&&(e.preventDefault(),T(this).css("display","none"),T("html").removeClass("exfd-hidden-scroll"),T(this).removeClass("exfd-modal-active"),T("html").css("max-width",""))}),T(".exwf-order-method .exwf-opcls-info.exwf-odtype").length||(i=T(".ex-popup-location"),i=T(".ex-popup-location"),(T(".exwf-menu-bydate.ex-popup-location").length?T(".exwf-menu-bydate.ex-popup-location"):i).addClass("ex-popup-active")),T(".ex-food-plug .ex-menu-list .ex-menu-item").on("click",function(e){e.preventDefault();var t=T(this),a=t.closest(".ex-fdlist");a.hasClass("category_left")?(a.find(".ex-menu-item").removeClass("ex-active-left"),t.addClass("ex-active-left"),t.parents(".ex-menu-item").addClass("ex-active-left")):(a.find(".ex-menu-item").removeClass("ex-menu-item-active"),t.addClass("ex-menu-item-active"),t.parents(".ex-menu-item").addClass("ex-menu-item-active"));e=T(this),a=e.closest(".ex-fdlist").attr("id"),t=t.attr("data-value");return r(e,T("#"+a+" input[name=s]").val(),t),!1}),T(".ex-fdlist.ex-food-plug .ex-menu-select select[name=exfood_menu]").on("change",function(e){e.preventDefault();e=T(this);return e.closest(".exfd-filter-group").find('.ex-menu-list [data-value="'+e.val()+'"]').trigger("click"),!1}),T(".ex-fdlist .exwf-search-form .exwf-s-submit").on("click",function(e){e.preventDefault();var t=T(this),e=t.closest(".ex-fdlist").attr("id");return T("#"+e+" .ex-menu-item-active").length?t.closest(".ex-fdlist").find(".ex-menu-item-active").trigger("click"):(e=t.closest(".ex-fdlist").attr("id"),r(t,T("#"+e+" input[name=s]").val(),"")),!1}),s(),T(".ex-fdlist.ex-food-plug .exfd-pagination-parent").on("click",".page-numbers",function(e){e.preventDefault();var t=T(this),a=t.closest(".ex-fdlist").attr("id");T("#"+a+" .page-numbers").removeClass("current"),T(t).addClass("current");e=t.text();1<+e&&T("#"+a+" .prev-ajax").removeClass("disable-click"),T("#"+a+" .next-ajax").removeClass("disable-click"),f("page_link",t,a,e)}),T(".ex-fdlist.ex-food-plug .exfd-pagination-parent").on("click",".next-ajax",function(e){e.preventDefault();var t=T(this),a=t.closest(".ex-fdlist").attr("id"),o=T("#"+a+" .current"),e=o.text();T("#"+a+" .prev-ajax").removeClass("disable-click"),o.removeClass("current"),o.next().addClass("current"),f("page_link",t,a,+e+1),t.removeClass("disable-click")}),T(".ex-fdlist.ex-food-plug .exfd-pagination-parent").on("click",".prev-ajax",function(e){e.preventDefault();var t=T(this),a=t.closest(".ex-fdlist").attr("id"),o=T("#"+a+" .page-navi .current"),e=parseInt(o.text());if(T("#"+a+" .next-ajax").removeClass("disable-click"),1==e)return T("#"+a+" .prev-ajax").addClass("disable-click"),!1;o.removeClass("current"),o.prev().addClass("current");--e;f("page_link",t,a,e),1<e&&T("#"+a+" .prev-ajax").removeClass("disable-click")}),jQuery(".ex-fdcarousel:not(.exwf-scrssl)").each(function(){var e=jQuery(this),t=e.attr("id"),a=e.data("slidesshow"),o=e.data("slidesscroll"),i=e.data("tb_items");""==a&&(a=3),""==o&&(o=a);0<e.data("startit")&&e.data("startit");var d=e.data("autoplay"),l=e.data("speed"),n=e.data("rtl"),r=1<e.data("mobile_item")?e.data("mobile_item"):1,s=0<e.data("start_on")?e.data("start_on"):0;u("#"+t+" .ctgrid","0"==e.data("infinite")?0:"yes"==e.data("infinite")||"1"==e.data("infinite"),s,n,a,o,d,l,r,i)}),jQuery(".exwf-cart-cross-sells .ex-fdcarousel").each(function(){var e=jQuery(this),t=e.attr("id"),a=e.data("slidesshow"),o=1;""==o&&(o=a);0<e.data("startit")&&e.data("startit");var i=e.data("autoplay"),d=e.data("speed"),l=e.data("rtl"),n=1<e.data("mobile_item")?e.data("mobile_item"):1,r=0<e.data("start_on")?e.data("start_on"):0;u("#"+t+" .scrs-grid","0"==e.data("infinite")?0:"yes"==e.data("infinite")||"1"==e.data("infinite"),r,l,a,o,i,d,n,1)}),T(".exfd-filter.exwf-filter-slider").length&&jQuery(".exfd-filter.exwf-filter-slider .ex-menu-list").each(function(){var e=T(this),t=e.width(),a=0;T(this).children().outerWidth(function(e,t){a+=t}),t<a&&(jQuery(e).closest(".exfd-filter-group").addClass("act-exslick"),jQuery(e).EX_ex_s_lick({dots:!1,infinite:!1,prevArrow:'<button type="button" class="exslick-pre"><i class="icon ion-chevron-left"></i></button>',nextArrow:'<button type="button" class="exslick-nex"><i class="icon ion-chevron-right"></i></button>',speed:300,slidesToShow:1,centerMode:!1,variableWidth:!0,focusOnSelect:!1}))}),jQuery(window).on("load",function(){jQuery(".ex-fdcarousel.ld-screen").each(function(){jQuery(this).addClass("at-childdiv")}),jQuery(".ex-fdck.ld-screen").each(function(){jQuery(this).addClass("at-childdiv")})}),setTimeout(function(){jQuery(".ex-fdcarousel.ld-screen").each(function(){jQuery(this).addClass("at-childdiv")})},4e3);var x,m,p,y,_,w,h=T(".ex-loc-select").val();function g(){var e;T(".exwf-deli-field select#exwfood_time_deli").data("date");T(".exwf-deli-field select[name=exwfood_date_deli]").length?e=T(".exwf-deli-field select[name=exwfood_date_deli]").val():T(".exwf-deli-field input[name=exwfood_date_deli]").length&&(t=T(".exwf-deli-field input#exwfood_date_deli").data("fm"),""!=(e=T(".exwf-deli-field input[name=exwfood_date_deli]").val())&&(e="dd-mm-yyyy"==t?(a=e.replace(/(\d{2})-(\d{2})-(\d{4})/,"$2/$1/$3"),new Date(a+" 00:00:00+0000").getTime()/1e3):new Date(e+" 00:00:00+0000").getTime()/1e3));var t=T(".exwf-deli-field select[name=exwfood_time_deli]").val(),a=T(".exwf-loc-field select[name=exwoofood_ck_loca]").length?T(".exwf-loc-field select[name=exwoofood_ck_loca]").val():"";""!=e&&""!=t&&(T(".exwf-deli-field").addClass("ex-loading"),t={action:"exwf_time_delivery_status",date:e,time:t,loc:a},a=exwf_jspr.ajaxurl,T.ajax({type:"post",url:a,dataType:"json",data:t,success:function(e){T(".exwf-deli-field").removeClass("ex-loading"),null!=e.html_content?(T(".exwf-deli-field p.exwf-time-stt").remove(),T(".exwf-deli-field").append(e.html_content)):T(".exwf-deli-field p.exwf-time-stt").remove(),e.refresh_order&&1==e.refresh_order&&T("body").trigger("update_checkout")}}))}function v(){var e,t,a,o;T(".exwf-order-method .exwf-emndate-time").length||!T(".exwf-deli-field #exwfood_time_deli").length||T(".exwf-deli-field .exwfood-time-deli").hasClass("exwf-mn-timesl")||(T(".exwf-deli-field p.exwf-time-stt").remove(),T(".exwf-deli-field select#exwfood_time_deli").data("date"),T(".exwf-deli-field select[name=exwfood_date_deli]").length?t=T(".exwf-deli-field select[name=exwfood_date_deli]").val():T(".exwf-deli-field input[name=exwfood_date_deli]").length&&(e=T(".exwf-deli-field input#exwfood_date_deli").data("fm"),""!=(t=T(".exwf-deli-field input[name=exwfood_date_deli]").val())&&(o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t=(o="dd-mm-yyyy"==e?o?t.replace(/(\d{2})-(\d{2})-(\d{4})/,"$3/$2/$1"):t.replace(/(\d{2})-(\d{2})-(\d{4})/,"$3-$2-$1"):o?t.replace(/(\d{2})\/(\d{2})\/(\d{4})/,"$3/$1/$2"):t.replace(/(\d{2})\/(\d{2})\/(\d{4})/,"$3-$1-$2"),new Date(o+" 00:00:00+0000").getTime()/1e3))),o=T(".exwf-loc-field select[name=exwoofood_ck_loca]").length?T(".exwf-loc-field select[name=exwoofood_ck_loca]").val():"",""!=t&&(T(".exwf-deli-field").addClass("ex-loading"),t={action:"exwf_time_delivery_slots",date:t,loc:o},a=T(".exwf-deli-field select#exwfood_time_deli option:selected").val(),o=exwf_jspr.ajaxurl,T.ajax({type:"post",url:o,dataType:"json",data:t,success:function(e){T(".exwf-deli-field").removeClass("ex-loading"),null!=e.html_timesl&&""!=e.html_timesl&&(T("#exwfood_time_deli_field .woocommerce-input-wrapper").html(e.html_timesl),""!=T("#exwfood_time_deli").attr("data-userslt")?T("#exwfood_time_deli").val(T("#exwfood_time_deli").attr("data-userslt")):null!=a&&T('.exwf-deli-field select#exwfood_time_deli option[value="'+a+'"]').length&&T(".exwf-deli-field select#exwfood_time_deli").val(a)),null!=e.data_time&&""!=e.data_time&&T(".exwf-deli-field select#exwfood_time_deli").attr("data-time",e.data_time),T(document).trigger("exwf_time_delivery_slots_loaded")}})))}function j(){var e=T(".exwf-loc-field select").val();T(".exwf-loc-field").addClass("ex-loading");var t=jQuery(".woocommerce-checkout #billing_address_1").val(),a=jQuery(".woocommerce-checkout #billing_city").val(),o=jQuery(".woocommerce-checkout #billing_country").val(),a={action:"exwf_update_shipping_fee",loc:e,address:null!=t?t:"",city:null!=a?a:"",country:null!=o?o:""},o=exwf_jspr.ajaxurl;T.ajax({type:"post",url:o,dataType:"json",data:a,success:function(e){var t,a,o,i;T(".exwf-loc-field").removeClass("ex-loading"),T("body").trigger("update_checkout"),T(document).trigger("exwfqv_updated_shipping_fee"),jQuery(".exwf-loc-field.exwf-loc-advdate").length&&(e.select_dates&&""!=e.select_dates?(jQuery(".exwf-deli-field #exwfood_date_deli_field .woocommerce-input-wrapper input").length&&jQuery("body").append('<div class="ex-hidden exwf-dfpkdate">'+jQuery(".exwf-deli-field #exwfood_date_deli_field .woocommerce-input-wrapper").html()+"</div>"),jQuery(".exwf-deli-field #exwfood_date_deli_field .woocommerce-input-wrapper").html(e.select_dates)):(jQuery(".exwf-deli-field #exwfood_date_deli_field .woocommerce-input-wrapper select").length&&jQuery(".exwf-deli-field #exwfood_date_deli_field .woocommerce-input-wrapper").html(jQuery(".ex-hidden.exwf-dfpkdate").html()),e.exwoofood_ck_disday&&""!=e.exwoofood_ck_disday&&jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").attr("data-disday",e.exwoofood_ck_disday),e.exwoofood_ck_disdate&&""!=e.exwoofood_ck_disdate&&jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").attr("data-disdate",e.exwoofood_ck_disdate),t=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]"),a="mm/dd/yyyy",o=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").attr("data-disday")+"",i=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").attr("data-disdate"),i=JSON.parse(i),""!=(e=jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fm"))&&null!=e&&(a=e),c(t,a,o,i,jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("mindate"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fmon"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("smon"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("sday"),jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").data("fiday"),"")))}})}function b(e,t,a){var o=e.closest(".exwf-con-quantity").find(".qty").attr("min"),i=e.closest(".exwf-con-quantity").find(".qty").attr("max");""!=i&&i<t||""!=o&&t<o||(e.closest(".exwf-con-quantity").find(".qty").val(t),T(".exfd-cart-mini").addClass("ex-loading"),T(".exfd-cart-content .exfd-out-notice").remove(),t={action:"exwf_update_quantity",quantity:t,key:a},a=exwf_jspr.ajaxurl,T.ajax({type:"post",url:a,dataType:"json",data:t,success:function(e){e.message&&""!=e.message&&(T(e.message).insertAfter(T(".exfd-cart-content .exfd-close-cart")),setTimeout(function(){T(".exfd-cart-content .exfd-out-notice").remove()},5e3)),T(".exfd-cart-mini").css("opacity",".6"),T.ajax({type:"post",url:wc_add_to_cart_params.ajax_url,data:{action:"exwoofood_refresh_cart"},success:function(e){T("div.exfd-cart-mini").remove(),T(e.fragments["div.exfd-cart-mini"]).insertAfter(".exfd-cart-content .exfd-close-cart"),T(".exfd-shopping-cart span.exfd-cart-num").replaceWith(e.fragments["span.exfd-cart-num"]),T(".exwf-mbnav-icon span.exfd-cart-num").replaceWith(e.fragments["span.exfd-cart-num"])}}),T(".exfd-cart-mini").removeClass("ex-loading"),T(document).trigger("exwfqv_updated_qty")}}))}function Q(){T(".exwf-mngroup").length&&T(".exwf-mngroup ").each(function(){var e=T(this),t=e.width();e.find(".exfd-filter").width(t);var o=jQuery(this).attr("id"),t=e.offset().top,e=t+e.height();t-=50,e-=100,T(document).scrollTop()>=t&&T(document).scrollTop()<=e?T("#"+o+" .exwf-mngrfilter").addClass("exsticky").fadeIn():T("#"+o+" .exwf-mngrfilter").removeClass("exsticky").fadeOut(),T("#"+o+" .exwf-mngr-content .exwf-mngr-item").each(function(){var e=T(this),t=T(this).attr("data-menu"),a=e.offset().top,e=a+e.height();a-=50,e-=50,T(document).scrollTop()>a&&T(document).scrollTop()<e?(T("#"+o+" .exwf-mngrfilter .filtermngr-item[data-menu='"+t+"']").addClass("ex-menu-item-active"),T("#"+o+" .exwf-mngrfilter .ex-menu-select select").val(t)):T("#"+o+" .exwf-mngrfilter .filtermngr-item[data-menu='"+t+"']").removeClass("ex-menu-item-active")})})}function k(){jQuery(".exwf-mngroup-more").each(function(){var e,t,a,o=T(this),i=o.children(".exwf-mngr-endel");e=i,t=jQuery(window).scrollTop(),a=t+jQuery(window).height(),(i=e.offset().top)+e.height()<=a+200&&t<=i&&!o.hasClass("ex-loading")&&(o.find('.exwf-mngrfilter .filtermngr-item[data-menu="exmmore"]').remove(),o.find('.exwf-mngrfilter select option[value="exmmore"]').remove(),t=o.attr("data-sc"),""!=(i=o.attr("data-menu"))&&"[]"!=i&&(o.addClass("ex-loading"),t={action:"exwoofood_more_menu",param_shortcode:t,data_menu:i},i=exwf_jspr.ajaxurl,T.ajax({type:"post",url:i,dataType:"json",data:t,success:function(e){o.removeClass("ex-loading"),""!=e.html_content&&o.find(".exwf-mngr-content").append(e.html_content),o.attr("data-menu",e.arr_menu),o.find(".exwf-mngrfilter .ex-menu-list").append(e.html_infilter),o.find(".exwf-mngrfilter .ex-menu-select select").append(e.html_slfilter),s()}})))})}function C(){jQuery(".exwf-cart-cross-sells .ex-fdcarousel").length&&(setTimeout(function(){jQuery(".exwf-cart-cross-sells .ex-fdcarousel").each(function(){var e=jQuery(this);e.closest(".exwf-cart-cross-sells").removeClass("ex-load-hidden");var t=e.attr("id"),a=e.data("slidesshow"),o=e.data("slidesscroll");""==a&&(a=3),""==o&&(o=a);0<e.data("startit")&&e.data("startit");var i=e.data("autoplay"),d=e.data("speed"),l=e.data("rtl"),n=1<e.data("mobile_item")?e.data("mobile_item"):1,r=0<e.data("start_on")?e.data("start_on"):0;u("#"+t+" .scrs-grid","0"==e.data("infinite")?0:"yes"==e.data("infinite")||"1"==e.data("infinite"),r,l,a,o,i,d,n,1)})},1500),setTimeout(function(){jQuery(".exwf-cart-cross-sells .ex-fdcarousel.ld-screen").addClass("at-childdiv"),T(".ex_modal.ex-loading").length&&T(".ex_modal").removeClass("ex-loading"),jQuery(".exwf-cart-cross-sells .ex-fdcarousel .scrs-grid.ex_s_lick-initialized").EX_ex_s_lick("setPosition")},2e3))}T(".ex-loc-select:not(.exwf-disable-red)").on("change",function(){var e=T(this),t=e.val(),a=e.attr("data-text"),o=parseInt(T(".exfd-cart-num").html());return null!=h&&t!=h&&null!=a&&0<o?confirm(a)?window.location=t:e.val(h):t!=h&&(window.location=t),!1}),T(".exwf-menuof-date:not(.exwf-disable-red) .mndate-sl").on("click",function(){var e=T(this).attr("data-text"),t=parseInt(T(".exfd-cart-num").html());if(null!=e&&0<t)return confirm(e)}),T("body").on("change",".ex-loc-select.exwf-mn-timesl",function(){T(".exwf-menu-bydate").addClass("ex-loading");var a=T(this),e={action:"exwf_menu_by_timesl",date:T(this).find(":selected").attr("data-date"),cr_url:T(this).attr("data-current_url")},t=exwf_jspr.ajaxurl;T.ajax({type:"post",url:t,dataType:"json",data:e,success:function(e){var t;T(".exwf-menu-bydate").removeClass("ex-loading"),""==e.html_content?(t=a.find(":selected").val(),window.location=t):(T(".exwf-mnsl").remove(),T(".exwf-menu-bydate .ex-popup-info").append(e.html_content))}})}),T("body").on("change",".exwf-emndate-time #exwfood_date_deli",function(){T(this);var e,t=T(this).find(":selected").attr("data-date");null!=t&&(T(".exwf-deli-field").addClass("ex-loading"),e={action:"exwf_menu_by_timesl",date:t,cr_url:"no"},t=exwf_jspr.ajaxurl,T.ajax({type:"post",url:t,dataType:"json",data:e,success:function(e){T(".exwf-deli-field").removeClass("ex-loading"),""!=e.html_content&&T("#exwfood_time_deli_field .woocommerce-input-wrapper").html(e.html_content)}}))}),T("body").on("change",".exwf-menu-bydate #exwf_menu_time",function(){var e=T(this).val();return""!=e&&null!=e&&(location.href=e),!1}),jQuery(document).ready(function(e){var t="#exwfood_date_deli";e(t).length&&e(t).trigger("change")}),T("body").on("change",".exwf-deli-field select#exwfood_time_deli",function(){g()}),T("body").on("change",".exwf-deli-field select#exwfood_date_deli",function(){v()}),T(".exwf-loc-field select[name=exwoofood_ck_loca]").on("change",function(){v()}),!jQuery(".exwf-deli-field #exwfood_date_deli").length&&T(".exwf-deli-field select[name=exwfood_time_deli]").length&&g(),jQuery("body").on("propertychange change keyup paste input",".exwf-deli-field input[name=exwfood_date_deli]",function(){v()}),T(".exwf-deli-field select#exwfood_time_deli").length&&(""==(x=T(".exwf-deli-field select#exwfood_time_deli").data("crtime"))||isNaN(x)||(m=300,p=setInterval(function(){m<=0?clearInterval(p):(x+=1,T(".exwf-deli-field select#exwfood_time_deli").attr("data-crtime",x)),--m},1e3))),T("body").on("change",".exwf-loc-field select",function(){jQuery(".exwf-loc-field.exwf-loc-advdate").length?(jQuery(".exwf-deli-field .exwfood-date-deli input[type=text]").extl_datepicker("destroy"),j()):jQuery(".exwf-order-take.at-method").length||j()}),jQuery(".exwf-order-take.at-method").length||jQuery(".exwf-order-dinein.at-method").length||!jQuery(".woocommerce-checkout #billing_address_1").length||(jQuery(".woocommerce-checkout #billing_address_1").addClass("exwf-re-upsh"),w=jQuery(".woocommerce-checkout #ship-to-different-address-checkbox").is(":checked")?(y=jQuery(".woocommerce-checkout #shipping_address_1").val(),_=jQuery(".woocommerce-checkout #shipping_city").val(),jQuery(".woocommerce-checkout #shipping_country").val()):(y=jQuery(".woocommerce-checkout #billing_address_1").val(),_=jQuery(".woocommerce-checkout #billing_city").val(),jQuery(".woocommerce-checkout #billing_country").val()),T("body").on("blur",".woocommerce-checkout #billing_address_1, .woocommerce-checkout #shipping_address_1",function(){var e,t;a=jQuery(".woocommerce-checkout #ship-to-different-address-checkbox").is(":checked")?(e=jQuery(".woocommerce-checkout #shipping_address_1").val(),t=jQuery(".woocommerce-checkout #shipping_city").val(),jQuery(".woocommerce-checkout #shipping_country").val()):(e=jQuery(".woocommerce-checkout #billing_address_1").val(),t=jQuery(".woocommerce-checkout #billing_city").val(),jQuery(".woocommerce-checkout #billing_country").val());var a,o=jQuery(".exwf-loc-field select").val();!jQuery(".woocommerce-checkout #billing_address_1").hasClass("exwf-re-upsh")&&e==y&&_==t&&a==w||(jQuery(".woocommerce-checkout #billing_address_1").removeClass("exwf-re-upsh"),a={action:"exwf_update_shipping_fee_bykm",address:y=e,city:_=t,country:w=a,loc:o},o=exwf_jspr.ajaxurl,T.ajax({type:"post",url:o,dataType:"json",data:a,success:function(e){"unc"!=e&&(T(document).trigger("exwf_update_shipping_fee_bykm",[e]),T("body").trigger("update_checkout"))}}))}),T(window).on("scroll",function(){T(".woocommerce-checkout #billing_address_1").is(":focus")||T(".woocommerce-checkout #billing_address_1").trigger("blur")})),T("body").on("click",".exwo-showmore",function(e){T(this).remove(),T(".exwo-product-options").addClass("exwo-show")}),jQuery("body").on("click",".exwf-user-dl-info a",function(e){jQuery(document.body).trigger("wc_fragment_refresh")}),jQuery("body").on("click",".exfd-cart-mini .exwf-quantity #exminus_ticket",function(){var e,t,a=jQuery(this),o=parseInt(jQuery(this).closest(".exwf-con-quantity").find(".qty").val())-1;0<o&&(e=T(this).closest(".exwf-con-quantity").attr("data-cart_key"),t=T(this).closest(".exwf-con-quantity").attr("data-quantity"),0<=o&&o!=t&&b(a,o,e))}),jQuery("body").on("click",".exfd-cart-mini #explus_ticket",function(){var e=jQuery(this),t=parseInt(jQuery(this).closest(".exwf-con-quantity").find(".qty").val())+1,a=T(this).closest(".exwf-con-quantity").attr("data-cart_key"),o=T(this).closest(".exwf-con-quantity").attr("data-quantity");0<=t&&t!=o&&b(e,t,a)}),jQuery("body").on("keyup change",".exfd-cart-mini .exwf-quantity .quantity .qty",function(){var e=jQuery(this),t=T(this).val(),a=T(this).closest(".exwf-con-quantity").attr("data-cart_key"),o=T(this).closest(".exwf-con-quantity").attr("data-quantity");0<=t&&t!=o&&b(e,t,a)}),Q(),T(document).scroll(function(){Q(),T(".ex-fdlist.exwf-ftfixed:not(.exwf-mngrfilter):not(.category_left) .exfd-filter").length&&T(".ex-fdlist.exwf-ftfixed:not(.exwf-mngrfilter):not(.category_left)").each(function(){var e=T(this),t=e.attr("id"),a="";e.hasClass("exwf-clft")&&(a=e.attr("data-id"),e=T("#"+a));var o=e.width(),i=e.height();T(this).find(".exfd-filter .exfd-filter-group").width(o);o=e.offset().top,e=o+e.height();e-=100,T(document).scrollTop()>=o&&T(document).scrollTop()<=e?(T(""!=a?"#"+a:"#"+t).height(i),T("#"+t+" .exfd-filter").addClass("exsticky")):(T(""!=a?"#"+a:"#"+t).height(""),T("#"+t+" .exfd-filter").removeClass("exsticky"))})}),T(".exwf-mngroup").on("click",".exwf-mngrfilter .filtermngr-item",function(){var e=T(this).attr("data-id"),t=T(this).attr("data-menu");"exmmore"==t?(T(window).height(),T("html,body").animate({scrollTop:T("#"+e+" .exwf-mngr-endel").offset().top-30},"slow")):T("#"+e+" .exwf-mngr-item[data-menu='"+t+"']").length&&(T(window).height(),T("html,body").animate({scrollTop:T("#"+e+" .exwf-mngr-item[data-menu='"+t+"']").offset().top-30},"slow"))}),T(".exwf-mngrfilter").on("change","select",function(){var e=T(this).attr("data-id"),t=T(this).val();"exmmore"==t?(T(window).height(),T("html,body").animate({scrollTop:T("#"+e+" .exwf-mngr-endel").offset().top-30},"slow")):T("#"+e+" .exwf-mngr-item[data-menu='"+t+"']").length&&(T(window).height(),T("html,body").animate({scrollTop:T("#"+e+" .exwf-mngr-item[data-menu='"+t+"']").offset().top-30},"slow"))}),T(".exwf-mngroup-more").length&&(k(),jQuery(document).scroll(function(){k()})),C(),T(document).ajaxComplete(function(){C()}),T(document).on("exwfqv_loaded",function(e){return jQuery(".exfd-cart-content.excart-active").length&&T(".exfd-close-cart").trigger("click"),!1}),T(".exwf-whastsapp-byloc").length&&setTimeout(function(){var e=T(".exwf-whastsapp-byloc").html();T(".exwf-order-whastsapp").remove(),T(".exfd-cart-mini").append(e)},500),T("body").on("click",".exwf-heading-5 .mnheading-5",function(e){var t=T(this);T(t).next(".exwf-mnlayout").slideToggle(200);t=t.closest(".exwf-mngr-item");t.hasClass("exwf-active")?t.removeClass("exwf-active"):t.addClass("exwf-active")}),T("body").on("click",".exwf-cart-icon",function(e){T(".exfd-shopping-cart").length&&(event.preventDefault(),T(".exfd-shopping-cart").trigger("click"))}),jQuery("body").on("click",".exwf-show-inlgty .quantity .ion-chevron-down, #food_modal:not(.exf-dis-bt) .exbuttons_added #exminus_ticket",function(){var e=parseInt(jQuery(this).closest(".quantity").find(".qty").val())-1,t=""!=(t=jQuery(this).closest(".quantity").find(".qty").attr("min"))?parseInt(t):"";(isNaN(t)||t<=e||""==t)&&(0<e||0==e&&jQuery("#food_modal .grouped_form").length)&&jQuery(this).closest(".quantity").find(".qty").val(e)}),jQuery("body").on("click",".exwf-show-inlgty .quantity .ion-chevron-up, #food_modal:not(.exf-dis-bt) .exbuttons_added #exadd_ticket",function(){var e=jQuery(this).closest(".quantity").find(".qty").val(),t=jQuery(this).closest(".quantity").find(".qty").attr("max"),e=""!=e?parseInt(e):0,t=""!=t?parseInt(t):"";(isNaN(t)||e<t||""==t)&&(e+=1,jQuery(this).closest(".quantity").find(".qty").val(e))}),jQuery(".exsfixed-list:not(.category_left) .ex-menu-list > .ex-menu-item.exwf-has-child").on("mouseover",function(){var e=jQuery(this),t=jQuery("> .exfd-ul-child",e),e=e.position();t.css({top:e.top+35,left:e.left})})})}(jQuery);