1import{WidgetEcommerce as e}from"./widget-ecommerce-DngjZoF6.js";/* empty css */var t=class extends e{constructor(){super()}init(){super.init();let e=()=>{typeof pubsub<`u`?pubsub.subscribe(`/cart/updated`,e=>this.handleCartUpdate(e)):setTimeout(e,50)};e()}button_click_widget(e,t){let n=t.dataset.onebox_token||``,r=n?` data-token="${n.replace(/&/g,`&`).replace(/"/g,`"`).replace(/</g,`<`)}"`:``,i=` 2 <div id="widget-container" 3 class="ob-widget" 4 data-module="ob-venue-widget" 5 data-version="2" 6 data-channel="${t.dataset.onebox_channel}" 7 data-eventid="${t.dataset.onebox_eventid}" 8 data-sessionid="${t.dataset.onebox_sessionid}" 9 data-language="${tb_lang_locale}" 10 data-activatesales="true" 11 data-showsummary="true" 12 data-forceview="1" 13 data-release="false"${r} 14 > 15 <div id="ajax-search-loader-modal"><div class="ajax-search-loader i ajax-loader-svg"></div></div> 16 </div> 17 `,a=t.dataset.onebox_channel_id?`onebox_${t.dataset.onebox_channel_id}`:`onebox`;return this.render_widget_modal(e,t,a,i,e=>{let t=document.getElementById(`tb-widget-token`);t&&n&&(t.value=n);let r=()=>{typeof _onebox<`u`?_onebox.moduleLoader.loadWidget(`widget-container`):setTimeout(r,50)};r()})}handleCartUpdate(e){this.countDownDate=Date.now()+e.data.timeLeft*1e3,this.countDownDate&&this.$supports_html5_storage&&localStorage.setItem(`tb_update_checkout_cart`,String(this.countDownDate)),this.update_cart_expires(this.countDownDate);let t=document.getElementById(`tb-widget-token`);t&&(t.value=e.data.token),this.cart_button&&(this.cart_button.disabled=!1);let n=this.is_updating_cart_index;this.is_updating_cart_index++,this.is_updating_cart[n]=!0;let r=document.getElementById(`tb-widget-form`);if(!r)return;let i=new FormData(r),a=r.querySelector(`.num-tickets`);a&&(e.data.cartItems.length>0?a.innerHTML=e.data.cartItems.length+` `+this.settings.ecommerce.general.button_2[+(e.data.cartItems.length>1)]:(a.innerHTML=``,this.cart_button&&(this.cart_button.disabled=!0))),r.classList.add(`loading`),fetch(ajaxurl,{method:`post`,body:i}).then(e=>e.json()).then(e=>{if(this.is_updating_cart[n]=!1,this.is_updating_cart.every(e=>!e)&&(r.classList.remove(`loading`),this.is_updating_cart=[],this.is_updating_cart_index=0),!e.success){r.classList.remove(`loading`),this.cart_button&&(this.cart_button.disabled=!1);return}})}};document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,()=>{window.__widgetOneboxInstance=new t}):window.__widgetOneboxInstance=new t;
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.