PageSourceSearch

https://yunchangtour.com/wp-content/plugins/kadence-woo-extras/lib…ce-snackbar-notice-cart.min.js?ver=2.4.15.1

js yunchangtour.com collected 2026-10-05 01:46:58 UTC 4,312 bytes, 1 lines download raw bytes

1(function(a){"use strict";function b(b){if(!a.find.tokenize)return b.isCombinatorial=!0,b.isFraternal=!0,void(b.isComplex=!0);b.isCombinatorial=!1,b.isFraternal=!1,b.isComplex=!1;for(var f=a.find.tokenize(b.selector),g=0;g<f.length;g++)for(var h=0;h<f[g].length;h++)-1!=c.indexOf(f[g][h].type)&&(b.isCombinatorial=!0),-1!=d.indexOf(f[g][h].type)&&(b.isFraternal=!0),-1!=e.indexOf(f[g][h].type)&&(b.isComplex=!0)}var c=[" ",">","+","~"],d=["+","~"],e=["ATTR","PSEUDO","ID","CLASS"],f=function(a,c,d){this.selector=a.trim(),this.callback=c,this.options=d,b(this)},g=[];g.initialize=function(b,c,d){var e=[],g=function(){-1==e.indexOf(this)&&(e.push(this),a(this).each(c))};a(d.target).find(b).each(g);var h=new f(b,g,d);this.push(h);var i=new MutationObserver(function(b){for(var c=[],d=0;d<b.length;d++)if("attributes"==b[d].type&&(b[d].target.matches(h.selector)&&c.push(b[d].target),h.isFraternal?c.push.apply(c,b[d].target.parentElement.querySelectorAll(h.selector)):c.push.apply(c,b[d].target.querySelectorAll(h.selector))),"childList"==b[d].type)for(var e=0;e<b[d].addedNodes.length;e++)b[d].addedNodes[e]instanceof Element&&(b[d].addedNodes[e].matches(h.selector)&&c.push(b[d].addedNodes[e]),h.isFraternal?c.push.apply(c,b[d].addedNodes[e].parentElement.querySelectorAll(h.selector)):c.push.apply(c,b[d].addedNodes[e].querySelectorAll(h.selector)));for(var f=0;f<c.length;f++)a(c[f]).each(h.callback)}),j={childList:!0,subtree:!0,attributes:h.isComplex};return i.observe(d.target,d.observer||j),i},a.fn.initialize=function(b,c){return g.initialize(this.selector,b,a.extend({},a.initialize.defaults,c))},a.initialize=function(b,c,d){return g.initialize(b,c,a.extend({},a.initialize.defaults,d))},a.initialize.defaults={target:document.documentElement,observer:null}})(jQuery),jQuery(function(a){var b={init:function(){b.rewrap_notices();var c=document.querySelectorAll(".woocommerce-notices-wrapper > *:not(.cart-empty)");if(c.length)for(let a=0;a<c.length;a++)c[a].classList.add("kwsb-snackbar-notice"),this.add_dismiss(c[a]);a(document).on("updated_wc_div",b.reload_notices),a(document).on("applied_coupon",b.reload_notices),a(document).on("update_checkout",b.rewrap_notices),a(document).on("update_checkout",b.reload_notices),a(document).on("init_checkout",b.rewrap_notices),a(document).on("init_checkout",b.reload_notices),a(document).on("checkout_error",b.rewrap_notices),a(document).on("checkout_error",b.reload_notices),a.initialize(".woocommerce-error",function(){b.rewrap_notices(),b.reload_notices()},{target:a(".woocommerce > .woocommerce-notices-wrapper").get(0)})},rewrap_notices:function(){a(".woocommerce-checkout .woocommerce-NoticeGroup:not(.kwsb-snackbar-outer-wrap)").each(function(){0!=a(this).children().length&&(a(this).addClass("kwsb-snackbar-outer-wrap"),a(this).wrapInner("<div class='woocommerce-notices-wrapper'></div>"))}),a(".woocommerce-checkout .woocommerce-notices-wrapper ~ .woocommerce-error").each(function(){a(this).wrap("<div class='woocommerce-notices-wrapper'></div>")}),a(".woocommerce-checkout .woocommerce-notices-wrapper ~ .woocommerce-message").each(function(){a(this).wrap("<div class='woocommerce-notices-wrapper'></div>")})},reload_notices:function(){var a=document.querySelectorAll(".woocommerce-notices-wrapper .cart-empty");if(a.length)for(let b=0;b<a.length;b++)document.querySelector(".woocommerce-notices-wrapper").after(a[b]);var c=document.querySelectorAll(".woocommerce-notices-wrapper > *:not(.kwsb-snackbar-notice):not(.cart-empty)");if(c.length)for(let a=0;a<c.length;a++)c[a].classList.add("kwsb-snackbar-notice"),b.add_dismiss(c[a])},add_dismiss:function(a){var b=document.createElement("BUTTON");b.classList.add("kwsb-close"),b.setAttribute("aria-label",kadence_wsb.close),a.appendChild(b),b.onclick=b=>{b.preventDefault(),a.classList.add("kwsb-hide-notice"),setTimeout(()=>{a.classList.add("kwsb-hidden-notice")},500),setTimeout(()=>{if(a.classList.contains("woocommerce-error")){for(;a.firstChild;)a.removeChild(a.firstChild);a.classList.remove("kwsb-hidden-notice"),a.classList.remove("kwsb-hide-notice")}},1e3)}}};b.init(),setTimeout(()=>{a.scroll_to_notices=function(b){if(b.length){if(b.hasClass("kwsb-snackbar-notice")||b.hasClass("woocommerce-notices-wrapper"))return;a("html, body").animate({scrollTop:b.offset().top-100},1e3)}}},500)});

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.