7401el.dispatchEvent(event);7402} else if (el.fireEvent) {7403el.fireEvent('on' + event.eventType, event);7404} else if (el[eventName]) {7405el[eventName]();7406} else if (el['on' + eventName]) {7407el['on' + eventName]();7408}7409}74107411function tcart__getRootZone() {7412return t_cart__useRootZone().getRootZone();
}function tcart__isAuthorized() { // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) // @ts-expect-error ST-2949_1 return !!window.tcartAuthState?.mauser?.token;}function tcart__getLkpSettings() { return window.tcartAuthState?.lkpSettings;}// TODO ST-2949_2: implicit any on params, vars, this, and index access (TS7006, TS7005, TS7008, TS7034, TS2683, TS7053, TS7015)// @ts-expect-error ST-2949_2function tcart__getSubtotalDiscount(value) { // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) // @ts-expect-error ST-2949_1 return value !== window.tcart.amount ? tcart__showPrice(value, 'acceptzero') : '';}(function tcart__watchDiscountDebugFlag() { var current = window.showdiscountdata; try { Object.defineProperty(window, 'showdiscountdata', { configurable: true, enumerable: true, get: function () { return current; }, set: function (value) { current = value; // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) // @ts-expect-error ST-2949_1 if (!value || !window.cartCalculator || !window.tcart) return; // @ts-expect-error ST-2949_1 window.cartCalculator.calcDiscounts(window.tcart); }, }); } catch (e) {}})();// TODO ST-2949_2: implicit any on params, vars, this, and index access (TS7006, TS7005, TS7008, TS7034, TS2683, TS7053, TS7015)// @ts-expect-error ST-2949_2function tcart__debounce(callee, timeoutMs) { // @ts-expect-error ST-2949_2 var timeoutId; return function () { var args = Array.prototype.slice.call(arguments); // @ts-expect-error ST-2949_2 clearTimeout(timeoutId); timeoutId = setTimeout(function () { callee.apply(null, args); }, timeoutMs); };}