Tag: CCTV Installation Dubai

Pagetitleicon
`; } function exportQuotation() { const blob = new Blob(["\ufeff" + buildExportTable()], { type: "application/vnd.ms-excel;charset=utf-8;" }); const url = URL.createObjectURL(blob); const link = document.createElement("a"); link.href = url; link.download = `${(refs.quoteNoInput.value || "quotation").replace(/[^\w-]+/g, "-")}.xls`; link.click(); URL.revokeObjectURL(url); } refs.inventorySelect.addEventListener("change", () => { const inventoryIndex = getInventoryIndex(); if (inventoryIndex === null) return; const item = (cfg.inventory || [])[inventoryIndex]; if (!item) return; refs.productInput.value = item.name; refs.priceInput.value = item.price; }); refs.addBtn.addEventListener("click", addItem); refs.exportBtn.addEventListener("click", exportQuotation); refs.discountInput.addEventListener("input", render); [refs.quoteNoInput, refs.quoteDateInput, refs.firstNameInput, refs.lastNameInput, refs.phoneInput, refs.emailInput, refs.projectNameInput].forEach((input) => input.addEventListener("input", render)); refs.tableBody.addEventListener("click", (e) => { const btn = e.target.closest("[data-remove]"); if (!btn) return; state.items.splice(Number(btn.getAttribute("data-remove")), 1); render(); }); refs.langButtons.forEach((btn) => btn.addEventListener("click", () => { state.lang = btn.getAttribute("data-lang"); refs.langButtons.forEach((item) => item.classList.remove("active")); btn.classList.add("active"); updateStaticText(); })); updateStaticText(); } function boot() { document.querySelectorAll(".esq-wrap").forEach((root) => { if (root.dataset.esqReady === "1") return; root.dataset.esqReady = "1"; initBuilder(root); }); }if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", boot); } else { boot(); } })();//# sourceURL=esq-inline-script-js-after