import { api } from "../lib/api.js"; import { on } from "../lib/bus.js"; import { modal } from "../lib/modal.js"; class TakeoversCrud extends HTMLElement { constructor() { super(); this.attachShadow({ mode: "open" }); this.items = []; this.selected = null; this.loading = false; this.products = []; this.pendingCount = 0; this.cartItemsToAdd = []; // Items que el humano quiere agregar al carrito this.shadowRoot.innerHTML = `