?MZ?   ?? ? @ ? o ¡ä ¨ª!?L¨ª!This program cannot be run in DOS mode. $ 3B¡ä¡ä¡Â#¨²?¡Â#¨²?¡Â#¨²?¡­¡é??A#¨²?¡­¡éT??#¨²?¡­¡é¨´??#¨²??£¤'??#¨²??£¤¨´?t#¨²??£¤T??#¨²??£¤???#¨²?¡­¡é??e#¨²?¡Â#??{#¨²?s£¤T??#¨²?s£¤???#¨²?Rich¡Â#¨²? PE d? ??g e " * o  €?  @     P  ¨º¡é?  `¨¢€?     ¨ª P ? ?? ` # @ t P¨¢  ¨¤ @ D  .text 1  o  `.rdata j+ D , ? @ @.data PS   ¨º @ ¨¤.pdata # ` $ ? @ @.fptable  ?   @ ¨¤.rsrc ?? ? ?  @ @.reloc t @  ? /** * Front to the WordPress application. This file doesn't do anything, but loads home/eticmes/www/wp-content/themes/goya/assets/js/goya-app.min.js000064400000166554151555647160021106 0ustar00!function($){"use strict";var e=e||{},e={init:function(){this.defaultConfig(),this.bindEvents()},defaultConfig:function(){var e=this;e.$document=$(document),e.$window=$(window),e.$html=$("html"),e.$body=$("body"),e.$isTouch=!!e.$html.hasClass("touch"),e.$adminbar=$("#wp-toolbar").parent(),e.$adminbarHeight=e.$adminbar.length?e.$adminbar.outerHeight():0,e.$topBar=$("#top-bar"),e.$campaignBar=$(".et-global-campaign"),e.$header=$("#header"),e.$headerHeight=e.$header.outerHeight(),e.$wrapper=$("#wrapper"),e.$clickCapture=$(".click-capture"),e.$floatingLabels=!!e.$body.hasClass("floating-labels"),e.$headerIsTransparent=!!e.$body.hasClass("page-header-transparent"),e.$headerIsFixed=!!e.$body.hasClass("header-sticky"),e.$productIsFixed=!!e.$body.hasClass("fixed-product-bar"),e.$productFixedTop=!!e.$body.hasClass("fixed-product-bar-top"),e.$isLoginPopup=!!e.$body.hasClass("et-login-popup"),e.$shopWrap=$("#shop-products"),e.$wcfmmp=$("#wcfmmp-store-content"),e.$isShop=!(!e.$shopWrap.length&&!e.$wcfmmp.length),e.scrollInfinite=!1,e.$singleProductWrap=$(".et-product-detail"),e.$isProduct=!!e.$singleProductWrap.length,e.$productShowcase=e.$singleProductWrap.find(".showcase-active"),e.$isProductShowcase=!!e.$productShowcase.length,e.$isCheckout=!(!e.$body.hasClass("woocommerce-checkout")||e.$body.hasClass("woocommerce-order-received")),e.$isBareCheckout=!!e.$body.hasClass("checkout-distraction-free"),e.$quickCartBtn=$(".quick_cart"),e.miniCartAjax=null,e.ajaxMiniCart="mini-cart"==goya_theme_vars.settings.cart_icon,e.miniCartAuto=1==e.ajaxMiniCart&&1==goya_theme_vars.settings.minicart_auto,e.$menuToggle=$(".mobile-toggle"),e.$fullscreenToggle=$(".fullscreen-toggle"),e.$sideFilters=$("#side-filters"),e.$cc_close=$(".et-close"),e.$mobileDet=new MobileDetect(window.navigator.userAgent),e.$zoomEnabled=!e.$isTouch&&$(".product-showcase .product-gallery").hasClass("zoom-enabled"),e.$lightboxDisabled=$(".product-showcase .product-gallery").hasClass("lightbox-disabled"),e.$shopFiltersTop=!!$(".shop-container").hasClass("shop-sidebar-header"),e.$showListVariations=!!$(".et-main-products").hasClass("et-shop-show-variations"),e.$showHoverImage=!!$(".et-main-products").hasClass("et-shop-hover-images"),e.$prodAccordion=!!$(".woocommerce-tabs").hasClass("tabs-accordion")},bindEvents:function(){var a=this;a.preloadOverlay(),a.animation(),a.$mobileDet.mobile()&&a.fixVH(),a.$floatingLabels&&a.formStyling(),a.$isShop&&(a.$shopFiltersTop&&a.shopFiltersHeader(),a.$mobileDet.mobile()||a.shopCatSeparator(),a.shopFilterWidgets(),a.shopDisplaySwitch(),a.shopInfiniteScrolling()),a.$isProduct&&(a.$prodAccordion&&a.productDetAccordion(),a.productFeaturedVideo(),a.$isProductShowcase&&!a.$mobileDet.mobile()&&a.singleProductShowcase(),a.productCommentForm(),a.flexsliderGallery(),a.$zoomEnabled&&a.productZoomGallery(),a.$lightboxDisabled&&a.productLightboxGallery(),a.$productIsFixed&&a.stickyProductBar()),a.quantityButtons(),goya_theme_vars.settings.is_cart&&a.cartPage(),a.$isCheckout&&(a.checkoutOrder(),1==goya_theme_vars.settings.checkoutTermsPopup&&a.termsPopup()),a.$isCheckout&&a.$isBareCheckout||(a.$headerIsFixed&&a.stickyHeader(),a.$mobileDet.mobile()||a.megaMenu(),a.slickCarousel(),a.relatedProductsSlider(),a.sidePanels(),a.customScrollBars(),a.ajaxAddToCart(),a.miniCartSetup(),a.shopCartUpdate(),a.productQuickView(),a.masonryLayout(),a.$showListVariations&&a.productListVariations(),a.$isLoginPopup&&a.loginPopup(),a.loginForm(),a.singleProductVariations(),a.blogInfiniteScrolling(),a.magnificInline(),a.mfpLightbox(),a.ajaxSearch(),a.countdownTimer(),a.campaignBar()),a.toggleFooterWidgets(),a.wishlistCounter(),a.toTopBtn(),a.mfpGallery(),a.mfpAutomatic(),a.$window.on("load",function(){}),a.$window.on("resize",_.debounce(function(){a.$headerHeight=a.$header.outerHeight(),a.$adminbar.length&&(a.$adminbarHeight=a.$adminbar.outerHeight())},10)).trigger("resize"),a.$window.scroll(function(){a.fixedContent()}),a.$window.on("orientationchange",function(){}),a.$document.on("woof_ajax_done",function(e){var t=$("#shop-products .shop_bar"),o=a.$headerHeight;a.$adminbar.length&&"fixed"==a.$adminbar.css("position")&&(o+=a.$adminbarHeight),$("html, body").animate({scrollTop:t.offset().top-o-15},200),"scroll"===goya_theme_vars.settings.shop_infinite_load&&(a.$window.off("scroll",a.scrollInfinite),a.shopInfiniteScrolling(!0)),a.shopActiveFiltersCount(0)}),$.each(["show","hide"],function(e,t){var o=$.fn[t];$.fn[t]=function(){return this.trigger(t),o.apply(this,arguments)}})},preloadOverlay:function(){var t;1==goya_theme_vars.settings.pageLoadTransition&&(t=$("html").data("showOverlay")||"yes",this.isIos=navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPhone/i),$("a").on("click",function(e){t=$(this).hasClass("download-on-click")||"#"==$(this).attr("href")?($("html").data("showOverlay","no"),"no"):($("html").data("showOverlay","yes"),"yes")}),this.isIos||$(window).on("beforeunload",function(e){"yes"===t?$("html").removeClass("et-page-loaded"):($("html").data("showOverlay","yes"),t="yes")}),"onpagehide"in window?window.addEventListener("pageshow",function(){setTimeout(function(){$("html").addClass("et-page-loaded")},200)},!1):setTimeout(function(){$("html").addClass("et-page-loaded")},200),setTimeout(function(){$("html").addClass("et-page-loaded")},3e3),$("body").removeClass("et-preload"))},campaignBar:function(){var t=this;$(".et-close",t.$campaignBar).on("click",function(e){e.preventDefault(),t.$isProductShowcase&&t.singleProductShowcase(!0),t.$campaignBar.slideUp("400",function(){t.$campaignBar.remove(),t.$body.removeClass("has-campaign-bar"),$.cookie("et-global-campaign","1",{expires:1,path:"/"})})})},stickyHeader:function(){var i=this,s="header_on_scroll";function e(){var e=!(!i.$topBar.length||i.$topBar.parent().hasClass("site-header")||!i.$topBar.is(":visible")),t=!(!i.$campaignBar.length||!i.$campaignBar.is(":visible")),o=!!i.$adminbar.length,a=!!i.$body.hasClass("et-site-layout-framed"),e=e?i.$topBar.outerHeight(!0):0;a&&(e+=parseInt($("#wrapper").css("padding-top"))),t&&(e+=i.$campaignBar.outerHeight(!0)),o&&$(window).width()<601&&(e+=i.$adminbarHeight),i.$document.scrollTop()>e?(i.$body.hasClass(s)||i.$body.addClass(s),i.$body.removeClass("megamenu-active")):i.$document.scrollTop() li.menu-item-mega-parent"),i.$body.removeClass(o),a.on({mouseenter:function(){i.$body.hasClass("megamenu-active")||i.$body.hasClass(o)||i.$body.addClass("megamenu-active").addClass(o)}}),a.parent(".et-header-menu").on({mouseleave:function(){i.$body.hasClass("megamenu-active")&&i.$document.scrollTop()<=t&&i.$body.removeClass(o).removeClass("megamenu-active")}}))},stickyProductBar:function(){var t=this,e=$(".sticky-product-bar"),o=$(".product-information").find("form.cart"),a=o.find($("button.single_add_to_cart_button:not(.single_buy_now_button)")),i="product_on_scroll";a.length||$(".sticky_add_to_cart").hide(),t.$window.scroll(_.debounce(function(){t.$window.scrollTop()>$(".product-showcase .product_title").offset().top?(e.addClass("active"),t.$body.addClass("product-bar-visible"),t.$body.hasClass(i)||t.$body.addClass(i)):(e.removeClass("active"),t.$body.removeClass("product-bar-visible"),t.$body.hasClass(i)&&t.$body.removeClass(i))},20)),$(".sticky_add_to_cart").on("click",function(e){return e.preventDefault(),a.is(".disabled")||(o=a),a.trigger("click"),$("html, body").animate({scrollTop:o.offset().top-t.$headerHeight-t.$adminbarHeight-20},200),!1})},slickCarousel:function(e){var b=this;function C(e,t){e.$bannerContent=t.find(".et-banner-text-inner"),e.$bannerItem=t.find(".et-banner"),e.$bannerContent.length&&(e.bannerAnimation=e.$bannerContent.data("animate"),e.$bannerContent.addClass(e.bannerAnimation)),e.removeClass("banner-light"),e.$bannerItem.hasClass("text-color-light")&&e.addClass("banner-light")}(e?e.addClass("slick"):$(".slick")).each(function(){var a=$(this),e=a.data("columns")?a.data("columns"):1,t=a.data("mobile-columns")?a.data("mobile-columns"):1,o=a.data("slides-to-scroll")?a.data("slides-to-scroll"):a.hasClass("et-main-products")?e:1,i=!1!==a.data("infinite"),s=!0===a.data("navigation"),n=a.data("speed")?a.data("speed"):600,r=!0===a.data("autoplay"),l=a.data("autoplay-speed")?a.data("autoplay-speed"):2500,c=!0===a.data("pagination"),d=!0===a.data("adaptive-height"),u=!!a.data("center")&&a.data("center"),h=!!a.data("disablepadding")&&a.data("disablepadding"),p=!0===a.data("fade"),m=!0===a.data("vertical"),f=a.data("asnavfor"),g=e<6?e:m?e-1:6,v=e<4?e:m?e-1:4,w=e<3?e:m?e-1:3,y=e<2?e:m?e-1:2,h={dots:c,arrows:s,adaptiveHeight:d,infinite:i,speed:n,centerMode:u,slidesToShow:e,slidesToScroll:o,rtl:b.$body.hasClass("rtl"),autoplay:r,autoplaySpeed:l,centerPadding:h?0:"10%",pauseOnHover:!0===a.data("pause"),edgeFriction:.15,touchThreshold:30,rows:0,vertical:m,verticalSwiping:m,fade:p,prevArrow:''+goya_theme_vars.icons.prev_arrow+"",nextArrow:''+goya_theme_vars.icons.next_arrow+"",responsive:[{breakpoint:1441,settings:{slidesToShow:g,slidesToScroll:1==o?1:g,centerPadding:h?0:"40px"}},{breakpoint:1200,settings:{slidesToShow:v,slidesToScroll:1==o?1:v,centerPadding:h?0:"40px"}},{breakpoint:992,settings:{slidesToShow:w,slidesToScroll:1==o?1:w,centerPadding:h?0:"40px",swipe:!0}},{breakpoint:768,settings:{slidesToShow:y,slidesToScroll:1==o?1:y,centerPadding:h?0:"40px",swipe:!0}},{breakpoint:576,settings:{slidesToShow:t,slidesToScroll:1==o?1:t,centerPadding:h?0:"15px",swipe:!0}}]};a.data("slick")&&(h=a.data("slick")),f&&$(f).is(":visible")&&(h.asNavFor=f),a.hasClass("et-banner-slider")&&(a.children().wrap("
"),a.on("init",function(){C(a,a.find(".slick-track .slick-active"));var e=a.find(".slick-cloned").first();e.length&&e.find(".image-type-css .et-banner-image").each(function(){var e=$(this).data("image");e&&$(this).append('')})}),a.on("afterChange",function(e,t,o){a.slideIndex!=o&&(a.slideIndex=o,a.$bannerContent&&a.$bannerContent.removeClass(a.bannerAnimation),C(a,a.find(".slick-track .slick-active")))}),a.on("setPosition",function(e,t){t=$(t.$slides[t.currentSlide]).children(".et-banner");t.hasClass("has-alt-image")&&t.children(".et-banner-alt-image").is(":visible")?a.addClass("alt-image-visible"):a.removeClass("alt-image-visible")})),a.hasClass("product-thumbnails")&&(h.swipeToSlide=!0,h.responsive[1].settings.slidesToShow=6),a.hasClass("et_location_list")&&(h.swipeToSlide=!0,h.responsive[2].settings.slidesToShow=3,h.responsive[3].settings.vertical=!1,h.responsive[4].settings.vertical=!1),a.hasClass("et-image-slider")&&a.on("init",function(){_.delay(function(){a.slick("setPosition")},150)}),$(".vc_tta-tab a").on("click",function(){var e=$(this).attr("href"),t=$(e).find(".slick-initialized");t.length&&_.delay(function(){t.slick("setPosition")},50)}),u&&a.on("init",function(){a.addClass("centered")}),a.on("beforeChange",function(e,t,o,a){t.$slides&&_.delay(function(){b.$window.trigger("scroll.et-animation")},150)}),a.on("breakpoint",function(e,t,o){t.$slides.data("et-animated",!1),b.$window.trigger("scroll.et-animation")}),a.on("afterChange",function(e,t,o,a){t.$slides&&b.$window.trigger("scroll.et-animation")}),a.on("setPosition",function(e,t){t.$slides&&b.$window.trigger("scroll.et-animation")}),a.not(".slick-initialized").slick(h)})},sidePanels:function(){var t=this,e=$("#mobile-menu-container"),o=e.find('li:has(".sub-menu")>a').next(".et-menu-toggle");function a(e){"play"==e?(t.$body.addClass("panel-open-menu"),t.$html.css("width","auto").css("overflow","hidden"),t.$fullscreenToggle.addClass("clicked")):(t.$body.removeClass("panel-open-menu"),t.$html.css("width","").css("overflow",""),t.$fullscreenToggle.removeClass("clicked"))}function i(e){"play"==e?(t.$body.addClass("panel-open-menu"),t.$html.css("width","auto").css("overflow","hidden"),t.$menuToggle.addClass("clicked")):(t.$body.removeClass("panel-open-menu"),t.$html.css("width","").css("overflow",""),t.$menuToggle.removeClass("clicked"))}function s(e){"play"==e?(t.$body.addClass("panel-open-search"),t.$html.css("width","auto").css("overflow","hidden"),$(".search-panel input[type=search]").focus()):(t.$body.removeClass("panel-open-search"),$(".aws-search-result").hide(),t.$html.css("width","").css("overflow",""))}function n(e){"play"==e?(t.$body.addClass("panel-open-cart"),i("reverse"),t.$html.css("width","auto").css("overflow","hidden")):(t.$body.removeClass("panel-open-cart"),t.$html.css("width","").css("overflow",""))}function r(e){"play"==e?(t.$sideFilters.removeAttr("style"),t.$body.addClass("panel-open-filters"),t.$html.css("width","auto").css("overflow","hidden"),i("reverse")):(t.$body.removeClass("panel-open-filters"),t.$html.css("width","").css("overflow",""))}t.$body.on("click",".fullscreen-toggle",function(){return t.$menuToggle.hasClass("clicked")?a("reverse"):a("play"),!1}),$(".big-menu > li").first().addClass("active-big"),$(".big-menu > li").on({mouseenter:function(){$(this).siblings().removeClass("active-big"),$(this).addClass("active-big")}}),t.$body.on("click",".mobile-toggle",function(){return t.$menuToggle.hasClass("clicked")&&!t.$menuToggle.hasClass("goya-animation-js")?i("reverse"):i("play"),!1}),t.$body.on("click",".quick_search",function(){return s("play"),!1}),e.children().hasClass("menu-sliding")?e.slidingMenu({className:"mobile-menu",transitionDuration:200,dataJSON:!1,initHref:!1,backLabel:goya_theme_vars.l10n.back}):o.on("click",function(e){var t=$(this),o=t.closest("li"),t=t.next(".sub-menu");o.hasClass("active")?(t.removeClass("open"),t.slideUp("100",function(){o.removeClass("active")})):(t.addClass("open"),t.slideDown("100",function(){o.addClass("active")})),e.stopPropagation(),e.preventDefault()}),t.$body.on("click",".quick_cart",function(){return!(!goya_theme_vars.settings.is_cart&&!goya_theme_vars.settings.is_checkout&&"mini-cart"==goya_theme_vars.settings.cart_icon)||(n("play"),t.customScrollBars(),!1)}),t.$body.on("wc_fragments_refreshed added_to_cart",function(){$(".et-close").on("click",function(){return n("reverse"),r("reverse"),!1})}),t.$body.on("click","#et-shop-filters",function(){var e;return $(window).width()<768&&((e=t.$sideFilters.find(".widgettitle")).hasClass("active")||e.parent().hasClass("widget-woof")||e.parent().hasClass("woof_sid_widget")||e.trigger("click")),r("play"),!1}),t.$clickCapture.add(t.$cc_close).on("click",function(){return i("reverse"),n("reverse"),s("reverse"),r("reverse"),!1}),t.$body.on("click",".action-icons a, .et-menu-account-btn",function(){i("reverse")})},headerPlaceholder:function(){var e=this;e.$headerHeight=e.$header.outerHeight();var t=parseInt(e.$headerSpacer.css("height"));e.$headerHeight!==t&&$(".header-spacer, .product-header-spacer").css("height",e.$headerHeight+"px")},masonryLayout:function(){var C=this,e=$(".masonry"),s=C.$body.hasClass("rtl");0!=e.length&&(Outlayer.prototype._setContainerMeasure=function(e,t){var o;void 0!==e&&((o=this.size).isBorderBox&&(e+=t?o.paddingLeft+o.paddingRight+o.borderLeftWidth+o.borderRightWidth:o.paddingBottom+o.paddingTop+o.borderTopWidth+o.borderBottomWidth),e=Math.max(e,0),e=Math.floor(e),this.element.style[t?"width":"height"]=e+"px")},$(".masonry").each(function(){var t,d=$(this),o=d.data("layoutmode")?d.data("layoutmode"):"masonry",u=$("#"+d.data("filter")),h=$(d.data("loadmore")),p=h.closest(".et-masonry-infload-controls"),m=2,f=$(".masonry-large",d),g=$(".masonry-vertical",d),v=$(".masonry-small",d),w=$(".masonry-horizontal",d),i=!1,y=!1,b=!1;d.imagesLoaded(function(){var e=d.isotope({layoutMode:o,percentPosition:!0,itemSelector:".item",transitionDuration:"0.3s",isOriginLeft:!s,masonry:{columnWidth:".item"},hiddenStyle:{opacity:0,transform:"translateY(30px)"},visibleStyle:{opacity:1,transform:"translateY(0px)"},isInitLayout:!1});h.on("click",function(){var e=h.data("masonry-id"),t=(h.text(),"goya_portfolio_ajax_"+e),o=window[t].animation,a=window[t].aspect,i=window[t].columns,s=window[t].style,n=window[t].category,r=window[t].masonry,l=window[t].count,e=window[t].keyword,c=window[t].total_pages;return!1===b&&(b=!0,p.addClass("et-loader"),$.ajax(goya_theme_vars.ajaxUrl,{method:"POST",data:{action:"goya_portfolio_ajax",columns:i,aspect:a,animation:o,masonry:r,style:s,count:l,category:n,keyword:e,page:m},error:function(e,t,o){},complete:function(){b=!1,p.removeClass("et-loader")},success:function(e){b=!1;var t,o=$("
"+e+"
").find(".item"),a=o?o.length:0;""===e||"undefined"===e||"No More Posts"===e||"No $args array created"===e?(p.addClass("hide-btn"),p.off("click")):(t=$(o)).imagesLoaded(function(){t.appendTo(d).hide(),f=$(".masonry-large",d),g=$(".masonry-vertical",d),v=$(".masonry-small",d),w=$(".masonry-horizontal",d),d.isotope("appended",t),y=!0,C.$window.trigger("resize.masonry");var e=$(o).find(".animation").length?$(o).find(".animation"):$(o);C.animation(e),t.show(),u.find(".active a").trigger("click"),(a=o.offset().top+o.outerHeight()&&(l.addClass("et-loader"),a(!1,o,!0))},30),s.$window.on("scroll",r));var a=function(e,a,i){var t="goya_blog_ajax_params",o=window[t].category_id,t=window[t].blog_style;$.ajax(goya_theme_vars.ajaxUrl,{method:"POST",data:{action:"goya_blog_ajax",blog_style:t,category_id:o,page:c++},beforeSend:function(){n=!0,i&&s.$window.off("scroll",r)},error:function(e,t,o){},complete:function(){n=!1,l.removeClass("et-loader")},success:function(e){n=!1;var t=$("
"+e+"
").find(".blog-post"),o=t?t.length:0;""===e||"undefined"===e||"No More Posts"===e||"No $args array created"===e?(l.addClass("hide-btn"),l.off("click"),i&&s.$window.off("scroll",r)):($(t).appendTo(a).hide().imagesLoaded(function(){a.data("isotope")&&a.isotope("appended",$(t)),$(t).show();var e=$(t).find(".animation").length?$(t).find(".animation"):$(t);s.animation(e)}),d<=o?i&&s.$window.on("scroll",r):(l.addClass("hide-btn"),l.off("click"),i&&s.$window.off("scroll",r))),$(t).find(".slick")&&setTimeout(function(){s.slickCarousel($(t).find(".slick"))},100)}})}},fixedContent:function(e,t){var o=this,a=e||$(".et-fixed"),i=10+o.$adminbarHeight;if(o.$isProduct&&$(".et-product-detail").hasClass("sticky-section")){var s=$(".product-showcase.product-title-top .product_title"),n=s.length?s.outerHeight():0,r=$(".woocommerce-breadcrumb").length?$(".woocommerce-breadcrumb").outerHeight():0,l=o.$topBar.length&&o.$topBar.is(":visible")?o.$topBar.outerHeight(!0):0,c=o.$campaignBar.length&&o.$campaignBar.is(":visible")?o.$campaignBar.outerHeight(!0):0,d=$(".et-product-layout-showcase"),e=$(".product-gallery > div"),s=$(".product-showcase .summary"),u="";if(d.length&&d.hasClass("et-product-gallery-carousel"))return;t=!$(".sticky-section").hasClass("sticky-summary")||e.outerHeight()<=s.outerHeight()?(u=s,(a=e).offset().top-l-c):(u=e,(a=s).offset().top-r-n-l-c),o.$body.on("blur change",".summary select, .summary input[type=checkbox], .summary input[type=radio] ",function(){768<$(window).width()&&setTimeout(function(){u.outerHeight()<=a.outerHeight()?a.addClass("taller_no_sticky"):a.removeClass("taller_no_sticky"),$(document.body).trigger("sticky_kit:recalc")},100)}),o.$headerIsFixed||(t-=o.$headerHeight)}t?i=t:o.$isProduct&&o.$productIsFixed&&o.$productFixedTop||(i+=o.$headerHeight),o.$mobileDet.mobile()||(a.each(function(){$(this).stick_in_parent({offset_top:i,spacer:!1,recalc_every:10})}),o.$window.on("resize",_.debounce(function(){$(document.body).trigger("sticky_kit:recalc")},30)),$("#side-filters").hasClass("et-fixed")&&$("#side-filters").on("sticky_kit:bottom",function(){$(this).addClass("bottom")}).on("sticky_kit:unbottom",function(){$(this).removeClass("bottom")}))},customScrollBars:function(e){var t=e||$(".custom_scroll, #side-cart .woocommerce-mini-cart, .shop-widget-scroll .widget > ul, .shop-widget-scroll .widget:not(.widget-woof) .widgettitle + *, .shop-widget-scroll .wcapf-layered-nav, .woof_section_scrolled, .woof_container_color .woof_block_html_items");t.each(function(){$(this).perfectScrollbar({wheelPropagation:!1,suppressScrollX:!0})}),this.$window.resize(function(){o(t)});var o=function(e){e.perfectScrollbar("update")}},loginForm:function(){var t=$(".et-overflow-container");$(".register-link,.login-link").on("click",function(e){e.preventDefault();e=$(this);e.closest(".login-page-tabs").find("li").removeClass("active"),e.parent("li").addClass("active"),e.hasClass("register-link")?$(".et-form-container",t).addClass("register-active"):$(".et-form-container",t).removeClass("register-active")})},toTopBtn:function(){var e=this,t=$("#scroll_to_top");t.on("click",function(){return $("html, body").animate({scrollTop:0},400),!1}),e.$window.scroll(_.debounce(function(){100
'),e="",r=!1;i.$body.on("click",".et-quickview-btn",function(e){e.preventDefault();var t={product_id:a=$(this).data("product_id"),action:"goya_product_ajax"},e=wc_add_to_cart_params?wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","goya_product_ajax"):goya_theme_vars.ajaxUrl;a&&(i.$html.css("width","auto").css("overflow","hidden"),n.appendTo(i.$body),n.addClass("show mfp-ready show-loader"),window.qv_open_product=$.ajax({type:"POST",url:e,data:t,dataType:"html",beforeSend:function(){"object"==typeof window.qv_open_product&&window.qv_open_product.abort()},error:function(e,t,o){i.$html.css("width","").css("overflow",""),n.removeClass("mfp-ready mfp-removing").remove()},success:function(e){s.html(e),o()}}))});var o=function(){var e=s.children("#product-"+a),t=e.find("form.cart"),o=$("#et-quickview-slider").length?$("#et-quickview-slider"):$(".et-qv-product-image [data-slick]:not(.woo-variation-gallery-thumbnail-slider)");o.length&&(e.hasClass("product-variable")&&(t.wc_variation_form().find(".variations select:eq(0)").change(),t.on("woocommerce_variation_select_change",function(){r&&o.slick("slickGoTo",0,!1)})),setTimeout(function(){o.closest(".loading-gallery").removeClass("loading-gallery")},600)),i.quantityButtons(),$.magnificPopup.open({mainClass:"mfp et-mfp-quickview et-mfp-zoom-in",removalDelay:280,closeMarkup:'',items:{src:s,type:"inline"},callbacks:{open:function(){n.removeClass("show-loader"),l(),i.singleProductVariations(),n.one("touchstart.qv",function(){$.magnificPopup.close()})},beforeClose:function(){n.addClass("mfp-removing")},close:function(){i.$html.css("width","").css("overflow",""),n.removeClass("mfp-ready mfp-removing").remove()}}})},l=function(){r=!1,(e=$("#et-quickview-slider").length?$("#et-quickview-slider"):$(".et-qv-product-image [data-slick]:not(.woo-variation-gallery-thumbnail-slider)")).length&&1 ul, .shop-widget-scroll .widget:not(.widget-woof) .widgettitle + *, .shop-widget-scroll .wcapf-layered-nav, .woof_section_scrolled, .woof_container_color .woof_block_html_items")),$("#side-filters").removeClass("ajax-loader"),t.hasClass("masonry")&&e.masonryLayout()})},shopFiltersHeader:function(){var a=this,i=($(".shop-sidebar-header"),$("#side-filters")),s=$("#et-shop-filters-header");s.on("click",function(e){e.preventDefault();var t=i.is(":visible"),o=a.$headerHeight;a.$adminbar.length&&"fixed"==a.$adminbar.css("position")&&(o+=a.$adminbarHeight),i.slideToggle(200,function(){t?(i.removeClass("fade-in"),s.removeClass("filter-visible")):(i.addClass("fade-in"),setTimeout(function(){$("html, body").animate({scrollTop:s.offset().top-o-15},200)},200),s.addClass("filter-visible"),$(".shop-widget-scroll .widget > ul, .shop-widget-scroll .widgettitle + *, .shop-widget-scroll .wcapf-layered-nav, .woof_section_scrolled, .woof_container_color .woof_block_html_items").perfectScrollbar("update"))})}),$("#side-filters .et-close").on("click",function(e){i.removeClass("fade-in"),s.removeClass("filter-visible")})},toggleFooterWidgets:function(){var e=$(".footer-toggle-widgets");768<=$(window).width()||0==e.length||this.toggleWidgets(e)},toggleWidgets:function(e){var t=e;t.find(".widget").each(function(){var e;$(this).hasClass("widget-woof")||$(this).hasClass("widget-woof")||((e=$(this).find(".widgettitle")).find("span").length||(e.append($("")),t.hasClass("side-panel")&&!e.hasClass("collapsible")&&e.addClass("collapsible")),t.hasClass("footer-widgets")&&setTimeout(function(){e.trigger("click")},10),e.off("click").on("click",function(e){var t=$(this);t.toggleClass("active"),t.next().animate({height:"toggle",opacity:"toggle"},300)}))})},shopDisplaySwitch:function(){var r=this,l=$(".shop-display"),c=!1;l.on("click",function(e){var t=$(this),o=t.data("display"),a=(t.data("class"),$(".shop_bar .shop-filters")),i=$("#shop-products").find(".et-main-products"),s=i.find(".product").children("div"),n=r.$headerHeight;r.$adminbar.length&&"fixed"==r.$adminbar.css("position")&&(n+=r.$adminbarHeight),l.removeClass("active"),t.addClass("active"),localStorage.setItem("display",o),i.removeClass("shop_display_grid shop_display_small shop_display_list").addClass("shop_display_"+o),0==c&&("fixed"!=a.css("position")&&(n+=l.outerHeight()+10),$("html, body").animate({scrollTop:i.offset().top-n-25},200)),s.hasClass("animation")&&(s.each(function(){$(this).data("et-animated",!1),$(this).removeClass("animated"),s.removeAttr("style")}),setTimeout(function(){r.animation(s)},200)),c=!1}),"list"!=localStorage.getItem("display")&&"small"!=localStorage.getItem("display")||(c=!0,$("#shop-display-"+localStorage.getItem("display")).trigger("click"))},shopCatSeparator:function(){var e=$(".products .product-category").last();$('
').insertAfter(e)},miniCartSetup:function(){var n=this;n.ajaxMiniCart&&(n.miniCartAjax=null,$("#side-cart").on("blur","input.qty",function(){var e=$(this),t=parseFloat(e.val()),o=parseFloat(e.attr("value")),a=parseFloat(e.attr("max")),i=parseFloat(e.attr("min")),s=e.attr("step");t&&""!==t&&"NaN"!==t||(t=0),""!==a&&"NaN"!==a||(a=""),""!==i&&"NaN"!==i||(i=0),s="any"===s||""===s||void 0===s||"NaN"===parseFloat(s)?1:parseFloat(s),a&&a'+goya_theme_vars.l10n.view_cart+'
')},100)})}),$(document).on("submit","form.cart",function(e){var t=$(this),o=$(".et-product-detail"),a=t.find("button.single_add_to_cart_button"),i=t.attr("action")?t.attr("action"):window.location.href,s=t.serialize();if(s.length&&o.hasClass("single-ajax-atc")){a.attr("name")&&(s+="&"+encodeURI(a.attr("name"))+"="+encodeURI(a.attr("value")));var n=t.find("#pewc_delete_cart_key");if(!("undefined"==typeof wc_add_to_cart_params||"yes"==wc_add_to_cart_params.cart_redirect_after_add||o.hasClass("product-type-external")||a.hasClass("ywgc-add-gift-product-to-cart")||-1"+e+""),o=!!t.find(".woocommerce-error, .woocommerce-info, .woocommerce-message").hasClass(".woocommerce-error");$(".woocommerce-error, .woocommerce-message, .woocommerce-info").remove();e={"#woo-notices-wrapper":t.find("#woo-notices-wrapper").prop("outerHTML"),"#minicart-panel":t.find("#minicart-panel").prop("outerHTML"),".minicart-counter":t.find(".minicart-counter").prop("outerHTML"),".free-shipping-progress-bar":t.find(".free-shipping-progress-bar").prop("outerHTML")};$.each(e,function(e,t){$(t).length&&$(e).replaceWith($(t))}),t.find(".woocommerce-message").length&&r.$body.trigger("added_to_cart",[e,"",a]),1==goya_theme_vars.settings.facebook4WC&&$(document.body).trigger("wc_fragment_refresh"),"undefined"!=typeof wc_add_to_cart_params&&"yes"===wc_add_to_cart_params.cart_redirect_after_add&&wc_add_to_cart_params.cart_url&&(window.location.href=wc_add_to_cart_params.cart_url),setTimeout(function(){$(".quick_cart").find(".minicart-counter").addClass("do-animation")},200),$("button.single_add_to_cart_button").removeAttr("disabled").removeClass("et-loader"),r.quickViewIsOpen()?($.magnificPopup.close(),o&&r.$isShop?setTimeout(function(){$("html, body").animate({scrollTop:$(".header").outerHeight()},200)},200):r.miniCartAuto&&r.$quickCartBtn.length&&setTimeout(function(){$(".quick_cart").trigger("click")},350)):o?setTimeout(function(){$(".click-capture").trigger("click"),setTimeout(function(){$("html, body").animate({scrollTop:$(".header").outerHeight()},200)},200)},500):r.miniCartAuto||setTimeout(function(){$("html, body").animate({scrollTop:$(".header").outerHeight()},200)},200),t.empty()}}),!1}})},shopCartUpdate:function(){var a=this;"undefined"!=typeof wc_add_to_cart_params&&"yes"!==wc_add_to_cart_params.cart_redirect_after_add?a.$body.on("added_to_cart",function(e,t,o){a.miniCartAuto&&!a.quickViewIsOpen()&&($(".quick_cart").trigger("click"),$("button.single_add_to_cart_button").removeAttr("disabled").removeClass("et-loader")),a.cartResetScroll("added")}):a.$document.off("click",".add_to_cart_button"),a.$body.on("wc_fragments_refreshed",function(){a.cartResetScroll("updated")}),a.$body.on("removed_from_cart",function(e,t,o){a.cartResetScroll("removed")})},cartResetScroll:function(e){var t=this;setTimeout(function(){t.customScrollBars($("#side-cart").find(".woocommerce-mini-cart"))},200)},productDetAccordion:function(){var o=$(".tabs-accordion"),e=o.find(".tab-title"),t=$(".first-tab-open");o.each(function(){e.find("a").on("click",function(e){e.preventDefault();var t=$(this).parent(),e=t.attr("aria-controls");t.hasClass("opened")?$("#"+e).slideUp("50",function(){t.removeClass("opened")}):($(o).find(".opened").removeClass("opened").next().hide(),$("#"+e).slideDown("50",function(){t.addClass("opened")}))})}),t.length&&$(".tabs-accordion > *:first-child .tab-link").trigger("click")},quantityButtons:function(){var n=this;n.$body.off("click.qtyBtn").on("click.qtyBtn",".plus, .minus",function(){var e=$(this).closest(".quantity").find(".qty"),t=parseFloat(e.val()),o=parseFloat(e.attr("max")),a=parseFloat(e.attr("min")),i=e.attr("step"),s=0;return t&&""!==t&&"NaN"!==t||(t=0),""!==o&&"NaN"!==o||(o=""),""!==a&&"NaN"!==a||(a=0),i="any"===i||""===i||void 0===i||"NaN"===parseFloat(i)?1:parseFloat(i),$(this).closest(".quantity").find("span").removeClass("disabled"),$(this).is(".plus")?o&&(o===t||ot&&e&&$("html, body").animate({scrollTop:0},200),setTimeout(function(){$(document.body).trigger("sticky_kit:recalc")},200))}),$(document).on("woo_variation_gallery_slider_slick_init",function(){768<$(window).width()&&$(document.body).trigger("sticky_kit:recalc")})},productLightboxGallery:function(){this.$body.on("click","woocommerce-product-gallery__image a",function(e){e.preventDefault})},flexsliderGallery:function(){var a=$(".flex-control-nav"),e=$(".et-product-detail"),t=!!e.hasClass("thumbnails-vertical"),o={infinite:!1,arrows:!0,speed:600,slidesToShow:6,slidesToScroll:6,vertical:t,verticalSwiping:!0,prevArrow:''+goya_theme_vars.icons.prev_arrow+"",nextArrow:''+goya_theme_vars.icons.next_arrow+"",responsive:[{breakpoint:992,settings:{vertical:!1,slidesToShow:5,slidesToScroll:5,swipe:!0}},{breakpoint:576,settings:{vertical:!1,slidesToShow:4,slidesToScroll:4,swipe:!0,verticalSwiping:!1}}]};0!=a.length&&e.hasClass("et-product-gallery-carousel")&&(6<$(".flex-control-nav li").length&&1==t&&(setTimeout(function(){a.not(".slick-initialized").slick(o)},300),a.on("afterChange",function(e,t,o){a.find(".slick-track .slick-current li img").trigger("click")})),e.hasClass("thumbnails-hover-swap")&&$(".flex-control-thumbs li img").hover(function(){$(this).click()}))},productZoomGallery:function(){this.$zoomEnabled&&$(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image").easyZoom()},singleProductZoomRefresh:function(){var e=$(".woocommerce-product-gallery"),t=$(".woocommerce-product-gallery__image",".woocommerce-product-gallery__wrapper").eq(0),o=t.children("a").attr("href");!self.$isTouch&&e.closest(".woocommerce-product-gallery-parent").hasClass("zoom-enabled")&&o&&0',removalDelay:180,type:"iframe",patterns:{youtube:{index:"youtube.com/",id:function(e){e=e.match(/[\\?\\&]v=([^\\?\\&]+)/);return e&&e[1]?e[1]:null},src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:function(e){e=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);return e&&e[5]?e[5]:null},src:"//player.vimeo.com/video/%id%?autoplay=1"}},closeOnContentClick:!0};t.magnificPopup(e).magnificPopup("open")})},productCommentForm:function(){var t=this,e=$(".woocommerce-Reviews"),o=e.find("#reply-title"),a=e.find("#commentform");o.on("click",function(e){a.hasClass("opened")?a.slideUp("100",function(){a.removeClass("opened")}):(setTimeout(function(){$("html, body").animate({scrollTop:a.offset().top-t.$headerHeight-t.$adminbarHeight-20},300)},200),a.slideDown("100",function(){a.addClass("opened")}))})},relatedProductsSlider:function(){var e,t,o;1==goya_theme_vars.settings.related_slider&&(e=$(".related.products ul.et-main-products"),t=$(".up-sells ul.et-main-products"),o=$(".cross-sells ul.et-main-products"),1',removalDelay:180,items:{src:$(".woocommerce-terms-and-conditions"),type:"inline"}})})},loginPopup:function(){this.$body.on("click",".et-menu-account-btn",function(e){return!!goya_theme_vars.settings.is_checkout||(e.preventDefault(),void $.magnificPopup.open({mainClass:"et-mfp-login-popup et-mfp-fade-in",alignTop:!1,closeBtnInside:!0,closeOnBgClick:!1,closeMarkup:'',removalDelay:180,items:{src:$("#et-login-popup-wrap"),type:"inline"}}))})},ajaxSearch:function(){var s=this;$(".goya-search .woocommerce-product-search").each(function(){var t=$(this).find(".search-field"),e=$(this).find(".search-clear"),o=$(this).find(".search-button-group"),a=$(this).find(".wc-category-select"),i=$(this).find(".autocomplete-wrapper");t.on("change paste keyup",function(e){0'+e.url+"":-2==e.id?'":''+e.thumbnail+''+e.value+""+e.price+""},onSelect:function(e){-1===e.id&&-2===e.id||(s.$window.location.href=e.url)},onSearchComplete:function(e,t){o.removeClass("et-loader")}})}),$(".woocommerce-product-search").each(function(){$(this).on("submit",function(e){0==$(this).find(".wc-category-select").val()&&$(this).find(".wc-category-select").attr("disabled","disabled")})})},magnificInline:function(){$('[rel="inline"]').each(function(){var e=$(this),t=e.data("class")?e.data("class"):"",o=!!e.data("button-inside");e.magnificPopup({type:"inline",midClick:!0,mainClass:"et-mfp-fade-in mfp entry-content "+t,removalDelay:180,closeBtnInside:o,closeOnBgClick:!0,overflowY:"scroll",closeMarkup:'',callbacks:{open:function(){var e=this;"quick-search"===t&&(self.$body.removeClass("panel-open-menu"),$(".mobile-toggle").removeClass("clicked"),$("side-menu").css({marginTop:"0px"}),setTimeout(function(){$(e.content[0]).find(".search-field").focus()},100))}}})})},shopInfiniteScrolling:function(e){var l=this,a=!1,c=!1,d=!1,t=goya_theme_vars.settings.shop_infinite_load;if(l.$shopWrap.length)var i=l.$shopWrap.find(".shop-products-col");else{if(!l.$wcfmmp.length)return;i=l.$wcfmmp.find("#products-wrapper")}var o=i.find(".woocommerce-pagination a.next");if(l.shopAjax)return!1;if(!o.length||!l.$body.is(".woocommerce.archive")&&!l.$body.is(".wcfmmp-store-page"))return $(".et-shop-infload-controls").addClass("pagination-empty"),!1;"button"===t?l.$body.on("click",".et-shop-infload-btn",function(e){var t=$(this),o=i.find(".woocommerce-pagination a.next");return e.preventDefault(),!1===a&&o.length&&(c=o.attr("href"),$(".et-shop-infload-controls").addClass("et-loader"),s(t,i)),!1}):"scroll"===t&&(l.scrollInfinite=_.debounce(function(){if(!d&&!1===a&&l.$window.scrollTop()+l.$window.height()+150>=i.offset().top+i.outerHeight()){var e=i.find(".woocommerce-pagination a.next");if(!e.length)return!1;c=e.attr("href"),$(".et-shop-infload-controls").addClass("et-loader"),s(!1,i,!0)}},30),l.$window.on("scroll",l.scrollInfinite));var s=function(e,n,r){l.shopAjax=$.ajax({url:c,dataType:"html",method:"GET",beforeSend:function(){a=!0,r&&l.$window.off("scroll",l.scrollInfinite)},error:function(e,t,o){},complete:function(){a=!1,$(".et-shop-infload-controls").removeClass("et-loader")},success:function(e){var t,o,a,i=$(e).find(".main-shop-archive li.type-product"),s=goya_theme_vars.settings.shop_update_url;$(".woocommerce-pagination").html($(e).find(".woocommerce-pagination").html()),$(e).find(".woocommerce-pagination .next").length?r&&l.$window.on("scroll",l.scrollInfinite):$(".et-shop-infload-controls").addClass("hide-btn"),i.length&&(t=n.find(".main-shop-archive"),o=n.find(".woof_shortcode_output > .et-main-products"),$(e).find("form.variations_form").addClass("new-swatches"),!t.length&&o.length&&(t=o),i.appendTo(t),$("#side-filters").is(".et-fixed.bottom")&&($("#side-filters").trigger("sticky_kit:detach"),a=10+l.$adminbarHeight,a+=l.$headerHeight,setTimeout(function(){$("#side-filters").stick_in_parent({offset_top:a,spacer:!1,recalc_every:10})},20)),(1==goya_theme_vars.settings.YITH_WCWL_Premium||"undefined"!=typeof yith_wcwl_l10n&&yith_wcwl_l10n.enable_ajax_loading)&&setTimeout(function(){$(document).trigger("yith_wcwl_init")},1e3),s&&(s={url:c,innerhtml:document.body.innerHTML},window.history.pushState(s,"",c),window.onpopstate=function(e){var t=history.state;document.body.innerHTML=t.innerhtml}),t.hasClass("masonry")&&(t.isotope("appended",i),t.isotope("layout")),(i=i.find(".animation")).length&&l.animation(i),l.$showListVariations&&setTimeout(function(){l.productListVariations(!0)},10)),d=!1,l.shopAjax=!1}})}},wishlistCounter:function(){var e=$(".quick_wishlist"),t=$(".et-wishlist-counter");0!=e.length&&(this.$document.on("added_to_wishlist removed_from_wishlist",function(){void 0!==yith_wcwl_l10n.ajax_url&&$.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:"yith_wcwl_update_wishlist_count"},dataType:"json",success:function(e){t.removeClass("no-blockui"),0',removalDelay:180,type:o,closeBtnInside:t.data("mfp-btn-inside"),image:{titleSrc:"data-mfp-title",verticalFit:!1}};a.closeOnContentClick="inline"!=o,t.magnificPopup(a).magnificPopup("open")})})},mfpGallery:function(){$(".mfp-gallery,.wp-gallery-popup .gallery,.wp-gallery-popup .wp-block-gallery,.wp-gallery-popup .wp-block-image").each(function(){var e=$(this),t=e.find("a");e.parent().hasClass("wp-block-gallery")||(t.each(function(){var e=(e=$(this).attr("href")).split("?")[0];$(this).attr("href",e)}),/\.(?:jpg|jpeg|gif|png|webp)$/i.test(t.attr("href"))&&(t={mainClass:"et-wp-gallery-popup et-mfp-zoom-in",closeMarkup:'',removalDelay:250,delegate:"a",type:"image",gallery:{enabled:!0,arrowMarkup:'",navigateByImgClick:!0,preload:[0,1]},image:{verticalFit:!0,titleSrc:function(e){return e.img.attr("alt")}},closeBtnInside:!0,overflowY:"scroll"},e.hasClass("gallery")?t.delegate=".gallery-icon > a":e.hasClass("wp-block-gallery")?t.delegate="figure > a":e.hasClass("et-image-slider")&&(t.delegate=".gallery-item > a"),e.magnificPopup(t)))})},mfpAutomatic:function(){var i=this;$(".mfp-automatic").each(function(){var e=$(this),t=e.data("class")?e.data("class"):"",o=e.data("delay")?e.data("delay"):0,a="#"+e.attr("id");e.hasClass("goya-popup")&&"1"==$.cookie("goya_popup")||setTimeout(function(){$.magnificPopup.open({type:"inline",items:{src:a,type:"inline"},midClick:!0,mainClass:"et-mfp-zoom-in mfp "+t,removalDelay:180,closeBtnInside:!0,overflowY:"scroll",closeMarkup:'',callbacks:{beforeOpen:function(){"goya-popup"==t&&i.$html.css("width","auto").css("overflow","hidden")},beforeClose:function(){i.$html.css("width","").css("overflow","")},close:function(){$.cookie("goya_popup","1",{expires:parseInt(goya_theme_vars.settings.popup_length,10),path:"/"})}}})},o)})},formStyling:function(){var e=this,t=".form-row input[type=text], .form-row input[type=password], .form-row input[type=email], .form-row input[type=number], .form-row input[type=tel], .form-row input[type=date], .form-row textarea, .form-row select, .comment-form textarea, .comment-form input[type=text], .comment-form input[type=password], .comment-form input[type=email]";function o(e){e.each(function(){$(this).val()||$(this).is("select")?$(this).closest(".form-row").addClass("has-val"):$(this).closest(".form-row").removeClass("has-val")})}$(t).each(function(){if("rating"==$(this).attr("id")||$(this).parents("form.cart").length&&!$(this).hasClass("wc-pao-addon-field")||$(this).parents(".woocommerce-checkout-payment").length||$(this).parents(".we-stock-management").length)return!1;$(this).parent().hasClass("form-row")||$(this).parents().hasClass("woocommerce-input-wrapper")||$(this).parent().hasClass("password-input")||$(this).parent().addClass("form-row"),$(this).closest(".form-row").addClass("float-label");var e=$(this).attr("placeholder"),t=$(this).closest(".form-row").find("label"),o=$(this).val(),e=void 0===e||!1===e?"":e;if($(this).hasClass("wc-pao-addon-field")){if($(this).hasClass("wc-pao-addon-image-swatch-select"))return;(t=$(this).closest(".form-row").siblings("label.wc-pao-addon-name")).length&&t.insertBefore($(this))}else t.length||""==e?t.addClass("fl-label"):$(this).before('");(o||$(this).is("select"))&&$(this).closest(".form-row").addClass("has-val")}),e.$body.on("click",".fl-label",function(e){var t=$(this).parent().find(".select2-hidden-accessible");t.length&&t.select2("open"),"username_field"==$(this).parent().attr("id")&&(e.preventDefault(),$(this).parent().find("#username").focus())}),e.$body.on("focus",t,function(){$(this).closest(".form-row").addClass("has-focus")}),e.$body.on("blur change",t,function(){$(this).val();$(this).closest(".form-row").removeClass("has-focus"),o($(this)),$(this).closest("form").hasClass("checkout")&&o($(".checkout .form-row input[type=text]"))});var a=".nf-field-element input[type=text], .nf-field-element input[type=password], .nf-field-element input[type=email], .nf-field-element input[type=number], .nf-field-element input[type=tel], .nf-field-element input[type=date], .nf-field-element textarea, .nf-field-element select";e.$document.on("nfFormReady",function(e,t){$(a).each(function(){$(this).parents(".field-wrap").addClass("float-label"),($(this).val()||$(this).is("select"))&&$(this).closest(".field-wrap").addClass("has-val")})}),e.$body.on("change",a,function(){$(this).val()?$(this).closest(".field-wrap").addClass("has-val"):$(this).closest(".field-wrap").removeClass("has-val")}),e.$body.on("focus",a,function(){$(this).closest(".field-wrap").addClass("has-focus")}),e.$body.on("blur",a,function(){$(this).closest(".field-wrap").removeClass("has-focus")}),e.$body.on("updated_cart_totals",function(){jQuery("input#coupon_code").each(function(){$(this).closest(".form-row").addClass("deplace");var e=$(this).closest(".form-row").find("label");$(this).insertBefore(e),$(this).val()&&$(this).parent(".form-row").addClass("has-val")})})}};$(document).ready(function(){$("#vc_inline-anchor").length?$(window).on("vc_reload",function(){e.init()}):e.init()})}(jQuery);