http://www.spirithub.com/cdn/shop/t/6/assets/cart-notification.min_v-7824886898680590411662132803.js
1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10class CartNotification extends HTMLElement{constructor(){super();this.notification=document.getElementById("cart-notification");this.header=document.querySelector("sticky-header");this.onBodyClick=this.handleBodyClick.bind(this);this.notification.addEventListener("keyup",a=>"Escape"===a.code&&this.close());this.querySelectorAll('button[type="button"]').forEach(a=>a.addEventListener("click",this.close.bind(this)))}open(){this.notification.classList.add("animate","active");this.notification.addEventListener("transitionend", 11()=>{this.notification.focus();trapFocus(this.notification)},{once:!0});document.body.addEventListener("click",this.onBodyClick)}close(){this.notification.classList.remove("active");document.body.removeEventListener("click",this.onBodyClick);removeTrapFocus(this.activeElement)}renderContents(a){this.cartItemKey=a.key;this.getSectionsToRender().forEach(b=>{document.getElementById(b.id).innerHTML=this.getSectionInnerHTML(a.sections[b.id],b.selector)});this.header&&this.header.reveal();this.open()}getSectionsToRender(){return[{id:"cart-notification-product", 12selector:`[id="cart-notification-product-${this.cartItemKey}"]`},{id:"cart-notification-button"},{id:"cart-icon-bubble"}]}getSectionInnerHTML(a,b=".shopify-section"){return(new DOMParser).parseFromString(a,"text/html").querySelector(b).innerHTML}handleBodyClick(a){a=a.target;a===this.notification||a.closest("cart-notification")||(this.activeElement=(a=a.closest("details-disclosure, header-menu"))?a.querySelector("summary"):null,this.close())}setActiveElement(a){this.activeElement=a}} 13customElements.define("cart-notification",CartNotification); 14 15}
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.