PageSourceSearch

https://cascadehills.com/wp-content/plugins/xt-woo-floating-cart/public/assets/js/frontend-min.js?ver=2.8.11

js cascadehills.com collected 2026-09-26 10:40:03 UTC 44,712 bytes, 1 lines download raw bytes

1!function(e,t){"use strict";t.XT_WOOFC=t.XT_WOOFC||{},e.fn.mutated=function(t,o){o=o||{subtree:!0,childList:!0,characterData:!0},e(this).each(function(){var e=this;new MutationObserver(function(o){t.call(e,o,this)}).observe(e,o)})};var o,n=(o={},function(t){return"flush"===t?(o={},!0):o[t]||(o[t]=e(t))}),i='<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" xml:space="preserve" style="display: inline-block;transform: rotate(180deg);margin-right: 8px;height: 40px;vertical-align: top;width: 20px;"><line fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="3" y1="12" x2="21" y2="12"></line><polyline fill="none" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="15,6 21,12 15,18 "></polyline></svg>',r=function(e){return XT_WOOFC.lang[e]?XT_WOOFC.lang[e]:null},c=function(e){return XT_WOOFC[e]?XT_WOOFC[e]:null},a=function(e,t){return c(e)===t},s=function(e){return"1"===c(e)},d={el:{singleAddToCartBtn:"form .single_add_to_cart_button, .letiations .single_add_to_cart_button",wooPageNotices:".woocommerce-notices-wrapper",wooNotices:".xt_woofc-wc-notices",notice:".xt_woofc-notice",container:".xt_woofc",inner:".xt_woofc-inner",wrapper:".xt_woofc-wrapper",header:".xt_woofc-header",title:".xt_woofc-title",body:".xt_woofc-body",bodyHeader:".xt_woofc-body-header",bodyFooter:".xt_woofc-body-footer",listWrap:".xt_woofc-list-wrap",list:"ul.xt_woofc-list",trigger:".xt_woofc-trigger",counter:".xt_woofc-count",checkoutButton:".xt_woofc-checkout",shippingBarPerc:".xt_woofc-shipping-bar-perc"},cartNoticeTimeoutId:null,undoTimeoutId:null,lastRemovedKey:null,suggestedProductsSlider:null,winWidth:null,cartWidth:null,isLoading:!1,isActive:!1,isEmpty:!0,isTransitioning:!1,isReady:!1,couponsEnabled:!1,couponsListEnabled:!1,modalMode:!1,ajaxInit:!1,animationType:null,triggerEvent:null,hoverdelay:null,viewMode:"desktop",triggers:[],init:function(){d.initVars(),d.updateDynamicVars(),d.setTriggers(),d.removeUnwantedAjaxRequests(),d.initEvents(),d.resize(),d.setTriggerDefaultText(),d.refreshCartCountSize(),d.removeUnwantedElements(),d.refreshCartVisibility(),d.initMutationObserver(),s("premium")&&s("cart_autoheight_enabled")&&d.initScrollObserver(),d.ajaxInit?d.refreshCart(function(){d.cartReady()}):d.cartReady()},initVars:function(){d.modalMode=n(d.el.container).hasClass("xt_woofc-modal"),d.ajaxInit="1"===n(d.el.container).attr("data-ajax-init")||s("is_customize_preview"),d.triggers=[d.el.trigger]},updateDynamicVars:function(){d.couponsEnabled=s("enable_coupon_form"),d.couponsListEnabled=s("enable_coupon_list"),d.animationType=n(d.el.container).attr("data-animation"),d.triggerEvent=n(d.el.container).attr("data-trigger-event"),d.hoverdelay=n(d.el.container).attr("data-hoverdelay")?n(d.el.container).attr("data-hoverdelay"):0},flushCache:function(){n("flush"),d.updateDynamicVars()},setTriggers:function(){var e=c("trigger_selectors");e&&e.length&&e.forEach(function(e){""!==e.selector&&d.triggers.push(e.selector)})},removeUnwantedAjaxRequests:function(){s("enable_totals")&&e.ajaxPrefilter(function(e,t,o){"#woocommerce-cart-form"===t.url&&o.abort()})},isSetDemoAction:function(){return"xt_set_demo"===new URLSearchParams(t.location.search).get("action")},initEvents:function(){if(d.isSetDemoAction()&&null!==sessionStorage.getItem("wc_cart_created"))return sessionStorage.removeItem("wc_cart_created"),void location.reload();var o;(e(t).on("beforeunload",function(){d.isSetDemoAction()&&sessionStorage.removeItem("wc_cart_created")}),e(t).on("resize",function(){t.requestAnimationFrame(d.resize)}),n(d.el.container).length)&&(e(t).on("pageshow",function(){d.isReady||d.refreshCart(function(){d.cartReady()})}),e(document.body).on("xt_atc_adding_to_cart",function(){n(d.el.container).removeClass("xt_woofc-empty"),d.maybeShowNotice()}),e(document.body).on("pointerdown",d.el.notice,function(t){0===e(t.currentTarget).find("a").length&&d.hideNotice()}),e(document.body).on("wc_fragments_refreshed wc_fragments_loaded",function(){d.onFragmentsRefreshed()}
1),d.triggers.forEach(function(t,o){var n;(e(document.body).on("click",t,function(t){e(d.el.container).is(":visible")&&(t.preventDefault(),t.stopPropagation(),d.toggleCart())}),e(t).hasClass("xt_woofc-trigger")&&"mouseenter"===d.triggerEvent&&!XT.isTouchDevice())&&e(t).on("mouseenter",function(e){n=setTimeout(function(){d.isActive||(e.preventDefault(),d.toggleCart())},d.hoverdelay)}).on("mouseleave",function(){clearTimeout(n)})}),n(d.el.container).on("pointerdown",function(e){e.target===e.currentTarget&&d.toggleCart(!1)}),n(d.el.body).on("pointerdown",".xt_woofc-delete-item",function(t){t.preventDefault();var o=e(t.currentTarget).closest("li").find(".xt_woofc-quantity-row input"),n=o.length?o.val():0,i=e(t.currentTarget).clone().addClass("remove").removeClass("xt_woofc-delete-item").hide();e(t.currentTarget).parent().append(i),i.wrap('<span class="mini_cart_item"></span>').parent().hide().append('<span class="quantity">'+n+"></span>"),i.trigger("click");var r=e(t.target).parents(".xt_woofc-product").data("key");d.removeProduct(r)}),e(document).on("keyup",".xt_woofc-quantity-row input",function(t){var o=e(t.currentTarget);d.updateQuantityInputWidth(o)}),e(document).on("change",".xt_woofc-quantity-row input",function(t){t.preventDefault();var o=e(t.currentTarget),n=o.parent(),i=parseFloat(o.attr("min")),c=parseFloat(o.attr("max"));if(i&&i>0&&parseFloat(o.val())<i)return o.val(i),void d.setNotice(r("min_qty_required"),"error",n);if(c&&c>0&&parseFloat(o.val())>c)return o.val(c),void d.setNotice(r("max_stock_reached"),"error",n);var a=o.closest(".xt_woofc-product"),s=o.val(),l=a.data("key");d.updateQuantityInputWidth(o),d.updateProduct(l,s)}),e(document).on("pointerdown",".xt_woofc-quantity-col-minus, .xt_woofc-quantity-col-plus",function(t){t.preventDefault(),o&&clearTimeout(o);var n=e(t.currentTarget),i=n.closest(".xt_woofc-quantity-row"),c=i.find("input"),a=parseFloat(c.val()),s=parseFloat(c.attr("max")),l=parseFloat(c.attr("min")),u=c.attr("step"),f=a;
1if(a&&!isNaN(a)||(a=0),isNaN(s)&&(s=0),isNaN(l)&&(l=0),("any"===u||""===u||void 0===u||isNaN(u))&&(u=1),n.is(".xt_woofc-quantity-col-plus")){if(s&&(s===a||a>s))return void d.setNotice(r("max_stock_reached"),"error",i);f=a+parseFloat(u)}else{if(l&&(l===a||a<l))return void d.setNotice(r("min_qty_required"),"error",i);a>0&&(f=a-parseFloat(u))}var _=c.closest(".xt_woofc-product").data("key");a!==f&&(c.val(f),o=setTimeout(function(){d.updateProduct(_,f)},500))}),e(document.body).on("pointerdown",".xt_woofc-undo",function(t){d.undoTimeoutId&&clearInterval(d.undoTimeoutId),t.preventDefault(),d.hideNotice(!0),d.showLoading(!0);var o=0,i=d.lastRemovedKey,r=n(d.el.list).find(".xt_woofc-deleted"),c=r.last(),a=function(e){e.removeClass("xt_woofc-deleted xt_woofc-undo-deleted").removeAttr("style"),d.refreshCartVisibility()};n(d.el.container).removeClass("xt_woofc-empty"),d.animationEnd(c,!0,function(){d.autoHeight(),d.undoProductRemove(i,function(){e(document.body).trigger("xt_woofc_undo_product_remove",[i])})}),r.each(function(){var t=e(this);d.animationEnd(t,!0,a),setTimeout(function(){t.addClass("xt_woofc-undo-deleted")},o),o+=270}),n(d.el.list).find(".xt_woofc-deleting-last").removeClass("xt_woofc-deleting-last")}),e(document).on("wc_update_cart",function(){d.refreshCart()}),e(document.body).on("xt_woofc_after_hide_footer",function(){d.checkoutButtonIdle()}),e(document.body).on("xtfw_customizer_xt_woofc_changed",function(e,t,o){XT_WOOFC.hasOwnProperty(t)&&(XT_WOOFC[t]=o),d.onFragmentsRefreshed()}),e(document.body).on("xtfw_customizer_saved",function(){d.refreshCart()}),e(document).on("click",d.el.checkoutButton,function(t){return d.isLoading?(t.preventDefault(),void t.stopPropagation()):s("premium")&&s("cart_checkout_form")?(t.preventDefault(),t.stopPropagation(),void(f.isFrameActive()?(d.showLoading(),e(document.body).trigger("xt_woofc_checkout_place_order")):d.hasErrors()?(d.scrollToTop(),d.shakeElement(d.getFirstError())):(d.checkoutButtonProcessing(),d.updateCartButtonLabel("wait"),f.show()))):(d.checkoutButtonProcessing(),void d.updateCartButtonLabel("wait"))}),s("premium")&&(e(document.body).on("xt_atc_added_to_cart",function(e,t,o){d.onRequestDone(t,"add",function(){d.onAddedToCart(o)})}),n(d.el.header).on("pointerdown",".xt_woofc-header-clear",function(e){e.target===e.currentTarget&&d.clearCartConfirm()}),n(d.el.header).on("pointerdown",".xt_woofc-header-clear-confirm",function(e){e.target===e.currentTarget&&(e.preventDefault(),d.clearCart())}),n(d.el.header).on("pointerdown",".xt_woofc-header-clear-cancel",function(e){e.target===e.currentTarget&&(e.preventDefault(),d.hideNotice())}),n(d.el.header).on("pointerdown",".xt_woofc-undo-clear",function(e){e.target===e.currentTarget&&(e.preventDefault(),d.clearCartRestore())}),n(d.el.header).on("pointerdown",".xt_woofc-header-close",function(e){e.target===e.currentTarget&&d.toggleCart(!1)}),e(document.body).on("updated_cart_totals",function(){var t=e("form.woocommerce-shipping-calculator");t.length&&t.slideUp()}),s("enable_totals")&&(e(document).on("select2:open",".xt_woofc-body .woocommerce-shipping-calculator #calc_shipping_country",function(t){var o=e(t.target).closest("form");o.find("input:text, textarea").val(""),o.find("input:radio, input:checkbox").removeAttr("checked").removeAttr("selected")}),e(document).on("select2:open",".xt_woofc-body .select2-hidden-accessible",function(){n(d.el.body).css("overflow","hidden")}),e(document).on("select2:select",".xt_woofc-body .select2-hidden-accessible",function(e){n(d.el.body).css("overflow",""),n(d.el.body).off("scroll.select2-"+e.target.id)}),e(document).on("select2:close",".xt_woofc-body .select2-hidden-accessible",function(e){n(d.el.body).css("overflow",""),n(d.el.body).off("scroll.select2-"+e.target.id)}))))},showLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d.isLoading||(d.isLoading=!0,n("html").removeClass("xt_woofc-stoploading").addClass("xt_woofc-loading"),e&&n("html").addClass("xt_woofc-loading-hide-content"))},hideLoading:function(){if(d.isLoading){var e=n(d.el.container).attr("data-loadingtimeout")?parseInt(n(d.el.container).attr("data-loadingtimeout")):0;setTimeout(function(){n("html").removeClass("xt_woofc-loading-hide-content"),n("html").addClass("xt_woofc-stoploading"),setTimeout(function(){n("html").removeClass("xt_woofc-stoploading xt_woofc-loading"),d.isLoading=!1},310)},d.isActive?e+100:0)}},enableBodyScroll:function(e){bodyScrollLock.enableBodyScroll(e.get(0))},disableBodyScroll:function(e){bodyScrollLock.disableBodyScroll(e.get(0))},digitsCount:function(e){var t=0;for(e>=1&&++t;e/10>=1;)e/=10,++t;return t},updateQuantityInputWidth:function(t){var o=e(t).val(),n=d.digitsCount(o),i=n/2*25+"px";n<2&&(i=25),e(t).css("width",i)},autoHeight:function(){if(!f.isFrameLoading())if(s("premium")&&s("cart_autoheight_enabled"))if(d.isActive&&!d.isTransitioning){var t=0;n(d.el.list).children().each(function(){e(this).hasClass("xt_woofc-deleted")||(t+=e(this).outerHeight())}),n(d.el.list).css({"min-height":t+"px"});var o=0;o+=n(d.el.header).outerHeight(!0),o+=n(d.el.bodyHeader).outerHeight(!0),n(d.el.listWrap).children().each(function(){o+=e(this).outerHeight(!0)}),o+=n(d.el.bodyFooter).outerHeight(!0),o+=n(d.el.checkoutButton).outerHeight(!0),o+=_.getButtonsHeight(),o+=f.getFrameHeight(),xt_gsap.to(n(d.el.inner),{height:o+"px",duration:.3})}else n(d.el.list).css("min-height","");else n(d.el.inner).css("height","")},onAddedToCart:function(e){var t=!!e&&e.hasClass("single_add_to_cart_button"),o=!!e&&e.closest(".letiations").length>0;s("premium")&&("1"!==n(d.el.container).attr("data-flytocart")||d.isActive?o||d.animateCartShake():d.animateAddToCart(e,t))},resize:function(){var o=c("layouts");d.winWidth=e(t).width(),d.winWidth<=o.S?(d.viewMode="mobile",e("body").removeClass("xt_woofc-is-desktop xt_woofc-is-tablet").addClass("xt_woofc-is-mobile")):d.winWidth<=o.M?(d.viewMode="tablet",e("body").removeClass("xt_woofc-is-desktop xt_woofc-is-mobile").addClass("xt_woofc-is-tablet")):(d.viewMode="desktop",e("body").removeClass("xt_woofc-is-mobile xt_woofc-is-tablet").addClass("xt_woofc-is-desktop")),n(d.el.container).length&&(d.cartWidth=n(d.el.inner).width(),d.cartWidth<=o.XS?n(d.el.container).addClass("xt_woofc-narrow-cart xt-framework-notice-narrow"):n(d.el.container).removeClass("xt_woofc-narrow-cart xt-framework-notice-narrow")),e(document.body).trigger("xt_woofc_resize",[d.viewMode]),s("premium")&&s("sp_slider_enabled")&&d.refreshSuggestedProductsSlider(),setTimeout(function(){d.refreshCartVisibility()},10)},initMutationObserver:function(){if(d.isReady)return!1;e("body").mutated(function(t){if(d.isReady)return!1;t.some(function(t){return Array.prototype.slice.call(t.addedNodes).some(function(t){if(e(t).hasClass("add_to_cart_button")||e(t).hasClass("single_add_to_cart_button"))return d.flushCache(),d.setTriggerDefaultText(),!0})})})},initScrollObserver:function(){var e=new ResizeObserver(function(){d.autoHeight()});n(d.el.body).children().each(function(t,o){e.observe(o)})},setTriggerDefaultText:function(){n(d.el.singleAddToCartBtn).length>0&&n(d.el.singleAddToCartBtn).each(function(){e(this).data("defaultText",e(this).html().trim()),""!==e(this).data("defaultText")&&e(this).html(r("wait")),e(this).data("loading",!0).addClass("loading")})},resetTriggerDefaultText:function(){n(d.el.singleAddToCartBtn).each(function(){e(this).removeData("loading").removeClass("loading"),""!==e(this).data("defaultText")&&e(this).html(e(this).data("defaultText"))})},transitionEnd:function(t,o,n){var i=this,r="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend";o?t.one(r,function(t){e(i).off(r),t.stopPropagation(),n(e(i))}):t.on(r,function(t){t.stopPropagation(),n(e(this))})},transitionEndClear:function(e){e.off("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend")},animationEnd:function(t,o,n){var i="webkitAnimationEnd oanimationend oAnimationEnd msAnimationEnd animationend";o?t.one(i,function(t){e(this).off(i),t.stopPropagation(),n(e(this))}):t.on(i,function(t){t.stopPropagation(),n(e(this))})},clearCartConfirm:function(){d.setNotice(r("clear_confirm"),"error")},clearCart:function(){d.hideNotice(!0),d.request("clear")},clearCartRestore:function(){d.hideNotice(!0),d.request("clear_restore")},toggleCart:function(){var t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(d.isTransitioning||d.isLoading)return!1;d.isTransitioning=!0,t=o?o?"open":"close":d.isActive?"close":"open",d.transitionEnd(n(d.el.wrapper),!0,function(){d.isTransitioning=!1,d.isActive?(n(d.el.container).addClass("xt_woofc-cart-opened"),n(d.el.container).removeClass("xt_woofc-cart-closed"),e(document.body).trigger("wc_fragments_loaded"),d.hideNotice(),d.hideLoading(),e(document.body).trigger("xt_woofc_on_opened")):(d.modalMode&&n(d.el.wrapper).css("transition","none"),n(d.el.container).removeClass("xt_woofc-cart-opened"),n(d.el.container).addClass("xt_woofc-cart-closed"),d.modalMode&&setTimeout(function(){n(d.el.wrapper).css("transition","")},100),e(document.body).trigger("xt_woofc_on_closed")),d.refreshCartVisibility(),d.autoHeight()}),"close"===t&&d.isActive?(d.isActive=!1,n(d.el.container).removeClass("xt_woofc-cart-open"),n(d.el.container).addClass("xt_woofc-cart-close"),e(document.body).trigger("xt_woofc_on_closing"),s("body_lock_scroll")&&d.enableBodyScroll(n(d.el.body)),d.resetUndo(),d.hideNotice(),setTimeout(function(){n(d.el.body).scrollTop(0),d.refreshCartVisibility(),s("premium")&&s("sp_slider_enabled")&&d.destroySuggestedProductsSlider()}
1,500)):"open"!==t||d.isActive||(e(document.body).trigger("xt_woofc_on_opening"),d.isActive=!0,n(d.el.container).removeClass("xt_woofc-cart-close"),n(d.el.container).addClass("xt_woofc-cart-open"),s("body_lock_scroll")&&d.disableBodyScroll(n(d.el.body)),s("premium")&&s("sp_slider_enabled")&&d.initSuggestedProductsSlider(),d.autoHeight(),d.hideNotice())},getCartPosition:function(e){var t="desktop"!==e?"data-"+e+"-position":"data-position";return n(d.el.container).attr(t)},animateAddToCart:function(t,o){var i=e("body"),r=d.getCartPosition(d.viewMode);(o?d.findSingleImage:d.findLoopImage)(t,function(c){if(c&&0!==c.length){var a=c.offset(),s=n(d.el.trigger).offset();if(0===a.top&&0===a.left){var l=t.closest(".products"),u=t.closest(".product"),f=o&&0===l.length;f&&u.length?a=u.offset():((a=t.offset()).top=a.top-c.height(),f&&(a.left=a.left-c.width()))}var _={opacity:1,top:a.top,left:a.left,width:c.width(),height:c.height(),transform:"scale(1)"},m=0,h=0;"bottom-right"===r?(m=-1,h=-1):"bottom-left"===r?(m=-1,h=1):"top-right"===r?(m=1,h=-1):"top-left"===r&&(m=1,h=1);var g={top:s.top+n(d.el.trigger).height()/2-_.height/2+t.height()*m,left:s.left+n(d.el.trigger).width()/2-_.width/2+t.width()*h,opacity:.9,transform:"scale(0.3)"},p={top:s.top+n(d.el.trigger).height()/2-_.height/2,left:s.left+n(d.el.trigger).width()/2-_.width/2,opacity:0,transform:"scale(0)"},w=c.clone();w.find(".add_to_cart_button").remove(),w.css(_),w.addClass("xt_woofc-fly-to-cart"),w.appendTo(i);var v=n(d.el.container).attr("data-flyduration")?n(d.el.container).attr("data-flyduration"):650;v=parseInt(v)/1e3,xt_gsap.to(w,v,{css:g,ease:Power3.easeOut,onComplete:function(){d.animateCartShake(),xt_gsap.to(w,.8*v,{css:p,ease:Power3.easeOut,onComplete:function(){e(w).remove()}})}})}})},animateCartShake:function(){if("1"===n(d.el.container).attr("data-opencart-onadd"))d.toggleCart(!0);else{var e=n(d.el.container).attr("data-shaketrigger");""!==e&&d.shakeElement(n(d.el.inner),e)}},findLoopImage:function(e,t){if(e.data("product_image_src")){var o={src:e.data("product_image_src"),width:e.data("product_image_width"),height:e.data("product_image_height")};d.createFlyToCartImage(o,function(e){t(e)})}else t(null)},findSingleImage:function(e,t){var o,n,i=e.closest("form"),r=e.closest(".product");if(i.hasClass("letiations_form")){var c=parseInt(i.find("input[name=letiation_id]").val()),a=i.data("product_letiations"),s=a?a.find(function(e){return e.letiation_id===c}):null;s&&s.image&&""!==s.image.src&&(o={src:s.image.src,width:s.image.src_w,height:s.image.src_h})}o||!r.length||r.closest(".products")||(n=r.find(".xtfw-wc-product-image img")).length&&(o={src:n.attr("src"),width:n.attr("width"),height:n.attr("height")}),o||(n=i.find(".xt_woofc-product-image")).length&&n.data("product_image_src")&&(o={src:n.data("product_image_src"),width:n.data("product_image_width"),height:n.data("product_image_height")}),o?d.createFlyToCartImage(o,function(e){t(e)}):t(null)},createFlyToCartImage:function(t,o){var n=e("<img>");n.attr("src",t.src),n.attr("width",t.width),n.attr("height",t.height),n.css({width:t.width+"px",height:t.height+"px"}),n.on("load",function(){o(e(this))}),n.on("error",function(){o(null)})},refreshNonce:function(){return e.ajax({url:d.get_url("xt_woofc_refresh_nonce"),type:"post",cache:!1,dataType:"json"}).then(function(t){return t&&t.nonce?(XT_WOOFC.nonce=t.nonce,t.nonce):e.Deferred().reject().promise()})},nonceProtectedRequest:function(e,t,o){var n=!1,i=function(){e().done(t).fail(function(e){if(!n&&e&&403===e.status)return n=!0,void d.refreshNonce().done(i).fail(function(){d.setNotice(r("request_failed"),"error"),o(e)});d.setNotice(r("request_failed"),"error"),o(e)})};i()},request:function(t,o,n){if(e(document.body).trigger("xt_woofc_request_start",[o]),d.removeAllBodyNotices(),d.showLoading(),"remove"!==t&&"restore"!==t&&"clear"!==t&&"clear_restore"!==t&&(d.lastRemovedKey=null,d.hideNotice()),"refresh"===t||"totals"===t)return d.refreshFragments(t,n),!1;o=e.extend(o,{type:t}),d.nonceProtectedRequest(function(){return e.XT_Ajax_Queue({url:d.get_url("xt_woofc_"+t),data:e.extend({},o,{security:c("nonce")}),type:"post"})},function(o){d.flushCache(),e(document.body).trigger("xt_woofc_request_done"),"restore"===t||"clear_restore"===t?d.refreshCart(n):d.onRequestDone(o,t,n)},function(){d.hideLoading(),e(document.body).trigger("xt_woofc_request_failed",[t])})},refreshFragments:function(t,o){e.XT_Ajax_Queue({url:d.get_url("get_refreshed_fragments"),data:{type:t},type:"post"}).done(function(e){d.onRequestDone(e,t,o)})},onRequestDone:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.each(t.fragments,function(t,o){e(t).replaceWith(o)}),"add"!==o?e(document.body).trigger("wc_fragments_refreshed"):d.onFragmentsRefreshed(),d.hideLoading(),n&&n(t)},onFragmentsRefreshed:function(){if(d.flushCache(),d.removeUnwantedElements(),d.refreshCartCountSize(),d.maybeShowNotice(),d.refreshCartVisibility(),d.hasErrors()&&e(document.body).trigger("xt_woofc_has_errors"),setTimeout(function(){d.autoHeight()},100),s("premium")&&(s("sp_slider_enabled")&&d.initSuggestedProductsSlider(),s("cart_shipping_bar_enabled")&&n(d.el.shippingBarPerc).length)){var t=n(d.el.shippingBarPerc).data("width");setTimeout(function(){n(d.el.shippingBarPerc).find("span").css("width",t)},100)}},updateProduct:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o>0?d.request("update",{cart_item_key:t,cart_item_qty:o},function(i){e(document.body).trigger("xt_woofc_product_update",[t,o]),n&&n(i)}):d.removeProduct(t,n)},removeProduct:function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;d.showLoading(!0),d.lastRemovedKey=t,d.request("remove",{cart_item_key:t},function(){d.resetUndo();var i,r,c=0,a=n(d.el.list).find('li[data-key="'+t+'"]'),s=a.hasClass("xt_woofc-bundle"),l=a.hasClass("xt_woofc-composite"),u=[];
1if(u.push(a),s||l){var f="",_=a.data("key");f+=s?'.xt_woofc-bundled-item[data-group="'+_+'"]':'.xt_woofc-composite-item[data-group="'+_+'"]',e(n(d.el.list).find(f).get().reverse()).each(function(){u.push(e(this))})}u.reverse().forEach(function(e){setTimeout(function(){(i=e.prev()).length&&e.is(":last-of-type")&&i.addClass("xt_woofc-deleting-last"),(r=e.next()).length&&r.css("--xt-woofc-list-prev-item-height",e.outerHeight(!0)+"px"),e.addClass("xt_woofc-deleted")},c),c+=270}),setTimeout(function(){d.refreshCartVisibility(),d.autoHeight(),e(document.body).trigger("xt_woofc_product_removed",[t]),d.undoTimeoutId=setTimeout(function(){e(document.body).trigger("xt_woofc_product_dom_removed",[t]),d.resetUndo(),d.hideNotice(),n(d.el.list).find(".xt_woofc-deleting-last").removeClass("xt_woofc-deleting-last"),o&&o()},8e3)},c)})},hideCartTitle:function(){d.noticeCollidingWithTitle()&&n(d.el.title).css({opacity:.3,transform:"translateX(-150%)"})},showCartTitle:function(){n(d.el.title).css({opacity:1,transform:"translateX(0)"})},noticeCollidingWithTitle:function(){var t=e(d.el.header).width()-e(d.el.title).outerWidth(!0);return e(".xt_woofc-header-action").each(function(){t-=e(this).outerWidth(!0)}),e(d.el.notice).outerWidth(!0)>=t},shakeElement:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e&&e.length){var o="xt_woofc-shake"+(t?"-"+t:"");d.animationEnd(e,!0,function(){e.removeClass(o)}),e.addClass(o)}},hideNotice:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e(document.body).trigger("xt_woofc_before_hide_notice",[t]),d.el.noticeTimeoutId&&clearTimeout(d.el.noticeTimeoutId),n(d.el.notice).removeClass("xt_woofc-visible"),d.showCartTitle(),d.transitionEnd(n(d.el.notice),!0,function(){n(d.el.notice).empty(),e(document.body).trigger("xt_woofc_after_hide_notice",[t])})},showNotice:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;d.transitionEndClear(n(d.el.notice)),e(document.body).trigger("xt_woofc_before_show_notice",[t]);var o=t?100:0;n(d.el.notice).removeClass("xt_woofc-visible"),t&&d.shakeElement(t),setTimeout(function(){n(d.el.notice).addClass("xt_woofc-visible"),d.hideCartTitle(),d.noticeHasError()&&(d.shakeElement(n(d.el.notice)),t&&d.shakeElement(t)),d.el.noticeTimeoutId&&clearTimeout(d.el.noticeTimeoutId),0===n(d.el.notice).find("a").length&&(d.el.noticeTimeoutId=setTimeout(function(){d.hideNotice()},6e3)),e(document.body).trigger("xt_woofc_after_show_notice",[t])},o)},maybeShowNotice:function(){n(d.el.notice).length&&""!==n(d.el.notice).html().trim()&&d.showNotice()},noticeHasError:function(){return"error"===n(d.el.notice).data("type")},setNotice:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;d.isActive&&(n(d.el.notice).removeClass(function(e,t){return(t.match(/(^|\s)xt_woofc-notice-\S+/g)||[]).join(" ")}),n(d.el.notice).data("type",t).addClass("xt_woofc-notice-"+t).html(e),d.showNotice(o))},resetUndo:function(){d.undoTimeoutId&&clearInterval(d.undoTimeoutId),n(d.el.list).find(".xt_woofc-deleted").remove()},undoProductRemove:function(e,t){d.request("restore",{cart_item_key:e},t)},hasErrors:function(){return n(d.el.container).find(".woocommerce-error").length>0},getFirstError:function(){return n(d.el.container).find(".woocommerce-error").first()},refreshCart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;d.request("refresh",{},function(){e&&e()})},refreshCartVisibility:function(){0===n(d.el.list).find("li:not(.xt_woofc-deleted):not(.xt_woofc-no-product)").length?(n(d.el.container).addClass("xt_woofc-empty"),d.isEmpty=!0,e(document.body).trigger("xt_woofc_emptied")):(n(d.el.container).removeClass("xt_woofc-empty"),d.isEmpty=!1),e(document.body).trigger("xt_woofc_refresh_visibility")},refreshCartCountSize:function(){var t=Number(n(d.el.counter).find("li").eq(0).text());t>999?(n(d.el.counter).removeClass("xt_woofc-count-big"),n(d.el.counter).addClass("xt_woofc-count-bigger")):t>99?(n(d.el.counter).removeClass("xt_woofc-count-bigger"),n(d.el.counter).addClass("xt_woofc-count-big")):(n(d.el.counter).removeClass("xt_woofc-count-big"),n(d.el.counter).removeClass("xt_woofc-count-bigger")),e(document.body).trigger("xt_woofc_refresh_counter_size",[t])},removeUnwantedElements:function(){n(d.el.body).find(".woocommerce-cart-form").length>1&&(n(d.el.body).find(".woocommerce-cart-form").each(function(t){t>0&&e(this).remove()}),n(d.el.body).find(".woocommerce-cart-form").empty()),n(d.el.body).find(".woocommerce-notices-wrapper").length&&n(d.el.body).find(".woocommerce-notices-wrapper").remove(),n(d.el.body).find(".woocommerce-form-coupon,.woocommerce-form-coupon-toggle").length&&n(d.el.body).find(".woocommerce-form-coupon,.woocommerce-form-coupon-toggle").remove(),s("enable_totals")&&n(d.el.body).find(".angelleye-proceed-to-checkout-button-separator").length&&setTimeout(function(){n(d.el.body).find(".angelleye-proceed-to-checkout-button-separator").insertAfter(n(d.el.body).find(".angelleye_smart_button_bottom"))},100)},scrollTo:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]?n(d.el.body).scrollTop(e):(n(d.el.body).animate({scrollTop:e},400),setTimeout(function(){n(d.el.body).animate({scrollTop:e},400)},100))},scrollToTop:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d.scrollTo(0,e)},scrollToBottom:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d.scrollTo(n(d.el.body).get(0).scrollHeight,e)},removeAllBodyNotices:function(){var t=n(d.el.bodyFooter).find(".woocommerce-error, .woocommerce-message");t.length&&t.each(function(){e(this).slideUp("fast",function(){e(this).remove()})})},checkoutButtonProcessing:function(){n(d.el.checkoutButton).addClass("xt_woofc-processing")},checkoutButtonIdle:function(){n(d.el.checkoutButton).removeClass("xt_woofc-processing")},resetCheckoutButtonLabel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=e||"checkout",s("premium")&&s("cart_checkout_form")&&f.isFrameActive()&&(e="place_order"),d.checkoutButtonIdle(),d.updateCartButtonLabel(e)},cartReady:function(){d.resetTriggerDefaultText(),d.resetCheckoutButtonLabel(),n(d.el.container).addClass("xt_woofc-cart-closed"),e("body").addClass("xt_woofc-ready"),d.resize(),e(document.body).trigger("xt_woofc_ready"),d.isReady=!0},get_url:function(e){return c("wc_ajax_url").toString().replace("%%endpoint%%",e)},updateCartTitle:function(e){var t="";"checkout"===e?t+='<a href="#" class="xt_woofc-close-checkout" title="'+r("back_to_cart")+'">'+i+"</a>":"coupons"===e&&(t='<a href="#" class="xt_woofc-close-coupon-form" title="'+r("back_to_cart")+'">'+i+"</a>"),n(d.el.title).hide().html(t+r(e)).fadeIn("fast")},updateCartButtonLabel:function(e){n(d.el.checkoutButton).find(".xt_woofc-footer-label").text(r(e))},initSuggestedProductsSlider:function(){d.destroySuggestedProductsSlider();var t=c("sp_slider_arrow");d.suggestedProductsSlider=e(".xt_woofc-sp-products").lightSlider({item:1,enableDrag:XT.isTouchDevice(),adaptiveHeight:!0,controls:s("sp_slider_enabled"),prevHtml:'<span class="xt_woofc-sp-arrow-icon '+t+'"></span>',nextHtml:'<span class="xt_woofc-sp-arrow-icon '+t+'"></span>',onSliderLoad:function(){setTimeout(function(){d.resize(),setTimeout(function(){e(".xt_woofc-sp").css("opacity",1)},300)},200)}})},destroySuggestedProductsSlider:function(){d.suggestedProductsSlider&&void 0!==d.suggestedProductsSlider.destroy&&(e(".xt_woofc-sp").css("opacity",0),d.suggestedProductsSlider.destroy())},refreshSuggestedProductsSlider:function(){d.suggestedProductsSlider&&void 0!==d.suggestedProductsSlider.refresh&&d.suggestedProductsSlider.refresh()},hideFooter:function(){d.isActive&&(e(document.body).trigger("xt_woofc_before_hide_footer"),xt_gsap.to(e(".xt_woofc-footer"),{y:"100%",duration:.3,onComplete:function(){e(document.body).trigger("xt_woofc_after_hide_footer")}}))},showFooter:function(){e(document.body).trigger("xt_woofc_before_show_footer"),xt_gsap.to(e(".xt_woofc-footer"),{y:"0",duration:.3,onComplete:function(){e(document.body).trigger("xt_woofc_after_show_footer")}})}},l={el:{toggle:".xt_woofc-coupon",removeBtn:".xt_woofc-remove-coupon",applyBtn:".xt_woofc-coupon-apply",form:".xt_woofc-coupon-form"},init:function(){l.initEvents(),d.couponsEnabled&&(l.closeCouponForm(!0),n(l.el.form).on("submit",l.submitForm))},initEvents:function(){e(document.body).on("pointerdown",l.el.removeBtn,l.removeCouponEvent),d.couponsEnabled&&(e(document.body).on("xt_woofc_before_show_notice",l.hideToggle),e(document.body).on("xt_woofc_before_hide_notice",function(e,t){t||l.showToggle(
1)}),e(document.body).on("xt_woofc_on_closing",l.closeCouponForm),e(document.body).on("xt_woofc_request_start",l.closeCouponForm),e(document.body).on("xt_woofc_product_dom_removed",l.closeCouponForm),e(document.body).on("xt_woofc_request_done",l.closeCouponForm),e(document.body).on("xt_woofc_before_show_checkout",l.closeCouponForm),e(document.body).on("xt_woofc_hide_checkout",l.closeCouponForm),e(document.body).on("pointerdown",l.el.toggle+", .xt_woofc-close-coupon-form",l.showCouponForm),e(document.body).on("pointerdown",l.el.applyBtn,l.applyCoupon))},hideToggle:function(){n(l.el.toggle).removeClass("xt_woofc-visible")},showToggle:function(){n(l.el.toggle).addClass("xt_woofc-visible")},showCouponForm:function(e){e.preventDefault(),d.scrollToTop(),n(l.el.form).is(":visible")?l.closeCouponForm():(d.couponsListEnabled&&(d.updateCartTitle("coupons"),l.hideToggle()),n(l.el.form).slideDown(350,function(){n(l.el.form).find(":input:eq(0)").focus(),d.couponsListEnabled&&(n(d.el.wrapper).addClass("xt_woofc-coupons-visible"),d.disableBodyScroll(n(l.el.form)))}))},closeCouponForm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(n(l.el.form).is(":visible")){e?n(l.el.form).hide():n(l.el.form).slide
1Up(),d.hideNotice();var t=n(l.el.form).find(".xt_woofc-coupon-error");t.length&&t.empty(),d.couponsListEnabled&&(d.enableBodyScroll(n(l.el.form)),n(d.el.wrapper).removeClass("xt_woofc-coupons-visible"),s("cart_checkout_form")&&f.isFrameActive()?d.updateCartTitle("checkout"):d.updateCartTitle("title"))}},submitForm:function(t){t.preventDefault();var o=e(t.currentTarget);if(o.is(".processing"))return!1;o.addClass("processing"),d.showLoading();var n={coupon_code:o.find('input[name="coupon_code"]').val()};return d.nonceProtectedRequest(function(){return e.XT_Ajax_Queue({url:d.get_url("xt_woofc_apply_coupon"),data:e.extend({},n,{security:c("nonce")}),type:"post"})},function(t){o.removeClass("processing"),setTimeout(function(){d.onRequestDone(t,"apply_coupon"),d.hideLoading(),d.noticeHasError()||e(document.body).trigger("coupon_applied")},5)},function(){o.removeClass("processing"),d.hideLoading(),e(document.body).trigger("xt_woofc_request_failed",["apply_coupon"])}),!1},applyCoupon:function(t){t.preventDefault();var o=e(t.currentTarget).data("coupon");n(l.el.form).find('input[name="coupon_code"]').val(o),e(l.el.form).trigger("submit")},removeCouponEvent:function(t){t.preventDefault();var o=e(t.currentTarget).data("coupon"),n=e(t.currentTarget).closest(".woocommerce-checkout-review-order");l.removeCoupon(o,n)},removeCoupon:function(t,o){if(o.is(".processing"))return!1;o.addClass("processing"),d.showLoading();var i={coupon:t};d.nonceProtectedRequest(function(){return e.XT_Ajax_Queue({url:d.get_url("xt_woofc_remove_coupon"),data:e.extend({},i,{security:c("nonce")}),type:"post"})},function(t){o.removeClass("processing"),d.onRequestDone(t,"remove_coupon"),e(document.body).trigger("coupon_removed"),e("form.xt_woofc-coupon-form").find('input[name="coupon_code"]').val(""),d.hideLoading(),n(l.el.form).is(":visible")&&d.couponsListEnabled||d.scrollToBottom()},function(){o.removeClass("processing"),d.hideLoading(),e(document.body).trigger("xt_woofc_request_failed",["remove_coupon"])})}},u={init:function(){e(document).off("pointerdown",".xt_woofc-shipping-edit"),e(document).on("pointerdown",".xt_woofc .xt_woofc-shipping-edit",u.toggle_shipping),e(document).off("pointerdown","select.shipping_method, :input[name^=shipping_method]"),e(document).on("change",".xt_woofc select.shipping_method, .xt_woofc :input[name^=shipping_method]",u.shipping_method_selected),e(document).off("submit","form.woocommerce-shipping-calculator"),e(document).on("submit",".xt_woofc form.woocommerce-shipping-calculator",u.shipping_calculator_submit),n(d.el.body).find(".shipping-calculator-form").hide()},toggle_shipping:function(){n(d.el.body).find(".shipping-calculator-form").slideToggle("medium",function(){d.scrollToBottom()}),e(document.body).trigger("country_to_state_changed")},shipping_method_selected:function(){var t={};n(d.el.body).find("select.shipping_method, :input[name^=shipping_method][type=radio]:checked, :input[name^=shipping_method][type=hidden]").each(function(){t[e(this).data("index")]=e(this).val()}),d.showLoading();var o={shipping_method:t};d.nonceProtectedRequest(function(){return e.ajax({type:"post",url:d.get_url("xt_woofc_update_shipping_method"),data:e.extend({},o,{security:c("nonce")}),dataType:"json"})},function(t){u.update_cart_totals_div(t),d.onRequestDone(t,"update_shipping_method"),d.hideLoading(),e(document.body).trigger("updated_shipping_method")},function(){e(document.body).trigger("xt_woofc_request_failed",["update_shipping_method"]),d.hideLoading(),e(document.body).trigger("updated_shipping_method")})},shipping_calculator_submit:function(t){t.preventDefault();var o=e(t.currentTarget);d.showLoading(),e("<input />").attr("type","hidden").attr("name","calc_shipping").attr("value","x").appendTo(o),e.ajax({type:o.attr("method"),url:o.attr("action"),data:o.serialize(),dataType:"html"}).done(function(t){u.toggle_shipping(),u.update_wc_div(t,!1)&&d.scrollToBottom(),e(document.body).trigger("xt_woofc_cart_shipping_updated")}).always(function(){d.hideLoading()})},update_wc_div:function(t,o){var i=e.parseHTML(t),r=e(".woocommerce-error",i),c=e(".woocommerce-info",i);return o||e(".woocommerce-error").remove(),r.length>
10&&n(d.el.wooNotices).length?(n(d.el.wooNotices).prepend(r),d.scrollToTop(),!1):(c.length&&d.setNotice(c.first().text()),d.showLoading(),e(document.body).trigger("updated_wc_div"),setTimeout(function(){d.hideLoading()},800),!0)},update_cart_totals_div:function(t){e(".cart_totals").replaceWith(t),e(document.body).trigger("updated_cart_totals")}},f={el:{frame:".xt_woofc-checkout-frame",submittedMsg:"#xt_woofc-checkout-thankyou"},loaded:!1,init:function(){e(document.body).on("xt_woofc_on_closed",function(){f.hide(),e("html").hasClass("xt_woofc-checkout-complete")&&(e("html").removeClass("xt_woofc-checkout-complete"),n(f.el.submittedMsg).removeClass("xt_woofc-loading").hide())}),e(document.body).on("xt_woofc_before_show_checkout",function(){d.scrollToTop(!0),d.hideNotice()}),e(document.body).on("xt_woofc_hide_checkout",function(){d.showFooter(),d.scrollToTop(!0),d.resize()}),e(document.body).on("xt_woofc_before_show_footer",function(){var t=e(":root").css("--xt-woofc-checkout-btn-height");xt_gsap.to("#xt_woofc",{"--xt-woofc-checkout-btn-height":t,duration:0})}),e(document.body).on("xt_woofc_after_hide_footer",function(){f.isFrameActive()&&xt_gsap.to("#xt_woofc",{"--xt-woofc-checkout-btn-height":0,duration:.3})}),e(document.body).on("xt_woofc_checkout_place_order",function(){d.checkoutButtonProcessing(),d.updateCartButtonLabel("placing_order")}),e(document.body).on("xt_woofc_checkout_error",function(){d.resetCheckoutButtonLabel()}),e(document.body).on("xt_woofc_has_errors xt_woofc_cart_shipping_updated",function(e){e.preventDefault(),f.unload()}),e(document.body).on("pointerdown",".xt_woofc-close-checkout",function(e){e.preventDefault(),f.hide()}),e(document.body).on("xt_woofc_show_checkout",f.messageFrame),e(document.body).on("wc_fragments_refreshed",f.messageFrame),e(document.body).on("wc_fragments_loaded",f.messageFrame),e(document.body).on("xt_atc_added_to_cart",f.messageFrame),e(document.body).on("xt_woofc_emptied",f.messageFrame),e(document.body).on("xt_woofc_checkout_place_order",f.messageFrame)},messageFrame:function(e){if(f.isFrameLoaded()){var t=JSON.stringify({event:e.type});document.querySelector(f.el.frame).contentWindow.postMessage(t,c("home_url"))}},load:function(){if(!d.isEmpty){d.showLoading(!0),e("html").addClass("xt_woofc-checkout-loading");var o=e("<div>"),i=e('<iframe name="xt_woofc_checkout_frame">');i.addClass("xt_woofc-checkout-frame"),i.attr("scrolling","no");var r=new URL(c("checkout_frame_url"));r.searchParams.set("xt-woofc-checkout","true"),t.top.hasOwnProperty("wp")&&t.top.wp.hasOwnProperty("customize")&&(r.searchParams.set("customize_changeset_uuid",t.top.wp.customize.settings.changeset.uuid),r.searchParams.set("customize_messenger_channel",t.top.wp.customize.previewer.channel()),r.searchParams.set("theme",wp.customize.settings.theme.stylesheet),r.searchParams.set("customize_autosaved","on")),i.attr("src",r),i.get(0).onload=function(){e("html").removeClass("xt_woofc-checkout-loading"),d.hideLoading(),f.show()},o.html(i),n(d.el.body).append(o)}},unload:function(){f.isFrameAttached()&&(e(f.el.frame).parent().remove(),f.loaded=!1,f.hide())},show:function(){if(!d.isEmpty){if(e(document.body).trigger("xt_woofc_before_show_checkout"),!f.isFrameAttached())return f.load();f.loaded=!0,setTimeout(function(){e(document.body).trigger("xt_woofc_show_checkout")},5),e(f.el.frame).fadeIn(),d.updateCartTitle("checkout"),d.updateCartButtonLabel("place_order"),d.checkoutButtonIdle(),e("html").addClass("xt_woofc-checkout-active")}},hide:function(){e(document.body).trigger("xt_woofc_before_hide_checkout"),e(f.el.frame).slideUp(300),e("html").removeClass("xt_woofc-checkout-active"),d.updateCartTitle("title"),d.resetCheckoutButtonLabel(),e(document.body).trigger("xt_woofc_hide_checkout")},resize:function(t){t&&(e(f.el.frame).get(0).style.height=t+"px",d.autoHeight())},getFrameHeight:function(){var t=0;return s("cart_checkout_form")&&f.isFrameActive()&&(t+=e(f.el.frame).outerHeight(!0)),t},isFrameAttached:function(){return e(f.el.frame).length},isFrameLoaded:function(){return f.isFrameAttached()&&f.loaded},isFrameLoading:function(){return e("html").hasClass("xt_woofc-checkout-loading")},isFrameActive:function(){return f.isFrameAttached()&&f.isFrameLoaded()&&e("html").hasClass("xt_woofc-checkout-active")}
1,completed:function(t){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e("html").addClass("xt_woofc-checkout-complete"),n(f.el.submittedMsg).find("a").length&&n(f.el.submittedMsg).find("a").attr("href",t),n(f.el.submittedMsg).addClass("xt_woofc-loading").fadeIn(),d.updateCartTitle("order_received_title"),t&&o?setTimeout(function(){f.redirect(t)},3e3):d.refreshCart()},redirect:function(e){t.location.href=e}},_={el:{buttons:".xt_woofc-payment-btns"},observer:null,init:function(){e(document.body).on("xt_woofc_before_show_checkout xt_woofc_on_closed",function(){_.clearButtonsObserver(!0)}),e(document.body).on("xt_woofc_hide_checkout xt_woofc_on_opened",function(){_.initButtonsObserver()})},initButtonsObserver:function(){if(!d.isEmpty&&d.isActive&&!f.isFrameActive()){_.clearButtonsObserver();var e=0,t=0,o=0,n=10;_.observer=setInterval(function(){o>10?(_.clearButtonsObserver(),_.showButtons(e)):((e=_.getButtonsHeight())>0&&e===t?o++:t=e,n=20)},n)}},clearButtonsObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e("#ppc-button-minicart").not(n(d.el.container).find("#ppc-button-minicart")).each(function(){e(this).remove()}),_.observer&&clearInterval(_.observer),t&&_.hideButtons()},getButtonsHeight:function(){var t=0;if(s("custom_payments")&&!d.isEmpty&&e(_.el.buttons).length&&e(_.el.buttons).find("iframe").length&&d.isActive&&!d.isTransitioning){var o=2*parseInt(e(":root").css("--xt-woofc-payment-btns-padding"));e(_.el.buttons).find(".xt_woofc-payment-btn").each(function(){var o=e(this).find("iframe");o.length&&(t+=o.height())}),t+=o}return t},hideButtons:function(){xt_gsap.to(n(d.el.wrapper),{paddingBottom:0,duration:.3}),setTimeout(function(){e(_.el.buttons).css("opacity","0")},100)},showButtons:function(t){e(_.el.buttons).css("opacity","1"),xt_gsap.to(n(d.el.wrapper),{paddingBottom:t+2,duration:.3})}},m={el:{item:".xt_woofc-menu",link:".xt_woofc-menu-link"},init:function(){a("cart_menu_click_action","toggle")&&e(document.body).on("click",m.el.link,m.onClick),e(document.body).on("xt_woofc_refresh_visibility",m.onCartRefreshVisibility),e(document.body).on("xt_woofc_refresh_counter_size",m.onCartRefreshCounterSize)},onClick:function(t){e(d.el.container).is(":visible")&&(t.preventDefault(),d.toggleCart())},onCartRefreshVisibility:function(){n(m.el.item).length&&(d.isEmpty?n(m.el.item).addClass("xt_woofc-menu-empty"):n(m.el.item).removeClass("xt_woofc-menu-empty"))},onCartRefreshCounterSize:function(e,t){t>999?(n(m.el.link).removeClass("xt_woofc-count-big"),n(m.el.link).addClass("xt_woofc-count-bigger")):t>99?(n(m.el.link).removeClass("xt_woofc-count-bigger"),n(m.el.link).addClass("xt_woofc-count-big")):(n(m.el.link).removeClass("xt_woofc-count-big"),n(m.el.link).removeClass("xt_woofc-count-bigger"))}},h={el:{item:".xt_woofc-shortcode",link:".xt_woofc-shortcode-link"},init:function(){a("cart_shortcode_click_action","toggle")&&e(document.body).on("pointerdown",h.el.link,h.onClick)},onClick:function(e){e.preventDefault(),d.toggleCart()}};e(function(){d.init(),s("premium")&&(u.init(),l.init(),s("custom_payments")&&_.init(),s("cart_checkout_form")&&f.init(),n(d.el.container).length&&(s("cart_menu_enabled")&&n(m.el.item).length&&m.init(
1),s("cart_shortcode_enabled")&&n(h.el.item).length&&h.init()))}),t.xt_woofc_is_loading=function(){return d.isLoading},t.xt_woofc_is_cart_open=function(){return d.isActive},t.xt_woofc_is_cart_empty=function(){return d.isEmpty},t.xt_woofc_show_loading=function(){return d.showLoading.apply(d,arguments)},t.xt_woofc_hide_loading=function(){return d.hideLoading()},t.xt_woofc_refresh_cart=function(){return d.refreshCart.apply(d,arguments)},t.xt_woofc_toggle_cart=function(){return d.toggleCart.apply(d,arguments)},t.xt_woofc_open_cart=function(){return d.toggleCart(!0)},t.xt_woofc_close_cart=function(){return d.toggleCart(!1)},t.xt_woofc_refresh_visibility=function(){return d.refreshCartVisibility()},t.xt_woofc_scroll_to=function(){return d.scrollTo.apply(d,arguments)},t.xt_woofc_scroll_to_top=function(){return d.scrollToTop.apply(d,arguments)},t.xt_woofc_scroll_to_bottom=function(){return d.scrollToBottom.apply(d,arguments)},s("premium")&&(t.xt_woofc_unload_checkout=function(){return f.unload()},t.xt_woofc_resize_checkout=function(){return f.resize.apply(f,arguments)},t.xt_woofc_hide_checkout=function(){return f.hide()},t.xt_woofc_show_checkout=function(){return f.show()},t.xt_woofc_checkout_active=function(){return f.isFrameActive()},t.xt_woofc_checkout_completed=function(){return f.completed.apply(f,arguments)},t.xt_woofc_checkout_redirect=function(){return f.redirect.apply(f,arguments)},t.xt_woofc_show_footer=function(){return d.showFooter()},t.xt_woofc_hide_footer=function(){return d.hideFooter()})}(jQuery,window);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.