/*
 * T Market POS - Secciones visuales modulares
 * v5.8.6
 *
 * Contiene marcado estatico extraido del HTML principal para bajar riesgo
 * y preparar la separacion por modulos de Productos y Ventas.
 */
(function(window) {
  "use strict";

  const templates = Object.freeze({
    inventory: "\u003csection id=\"section-inventory\" class=\"app-section\" hidden\u003e\n    \u003cdiv class=\"section-head\"\u003e\n        \u003cdiv class=\"section-title\"\u003e\u003cimg class=\"section-logo\" src=\"tmarket-logo.jfif\" alt=\"Logo T Market\"\u003e\u003ch2\u003eProductos e inventario\u003c/h2\u003e\u003c/div\u003e\n        \u003cbutton class=\"home-button\" type=\"button\" onclick=\"showSection(\u0027home\u0027)\"\u003eVolver al inicio\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-app\"\u003e\n        \u003cdiv class=\"inventory-header-app\"\u003e\n            \u003cdiv\u003e\u003c/div\u003e\n            \u003cdiv class=\"inventory-actions\"\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-view=\"purchase-orders\"\u003ePedidos\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-view=\"adjustments\"\u003eAjustar inventario\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"manageDepartmentsButton\"\u003eGestionar departamentos\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"manageSuppliersButton\"\u003eGestionar proveedor\u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-dashboard\"\u003e\n            \u003cdiv class=\"inventory-module-board\"\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#0056b3\" type=\"button\" data-inventory-view=\"stock\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"boxes\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003eCatalogo\u003c/strong\u003e\u003cspan\u003eConsulta, busqueda y etiquetas.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#1f7a5c\" type=\"button\" data-inventory-view=\"adjustments\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"sliders-horizontal\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003eAjustar inventario\u003c/strong\u003e\u003cspan\u003eEntradas, salidas y correcciones.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#c2410c\" type=\"button\" data-inventory-view=\"purchase-orders\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"clipboard-list\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003ePedidos\u003c/strong\u003e\u003cspan\u003ePendientes, detalle y recepcion.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#7c3aed\" type=\"button\" data-inventory-view=\"promotions\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"badge-percent\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003ePromociones\u003c/strong\u003e\u003cspan\u003eOfertas activas y recurrentes.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#be123c\" type=\"button\" id=\"manageDepartmentsCardButton\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"layers-3\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003eDepartamentos\u003c/strong\u003e\u003cspan\u003eCatalogo de areas y familias.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-module-card\" style=\"--module-color:#0f766e\" type=\"button\" id=\"manageSuppliersCardButton\"\u003e\u003cspan class=\"inventory-module-hex\"\u003e\u003ci data-lucide=\"truck\"\u003e\u003c/i\u003e\u003c/span\u003e\u003cspan class=\"inventory-module-copy\"\u003e\u003cstrong\u003eProveedores\u003c/strong\u003e\u003cspan\u003eDatos, promotores y visitas.\u003c/span\u003e\u003c/span\u003e\u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003csection class=\"inventory-home-panel\"\u003e\n            \u003cdiv class=\"inventory-home-grid\"\u003e\n                \u003cdiv class=\"inventory-home-block\"\u003e\n                    \u003ch3\u003eAlertas de bajo inventario\u003c/h3\u003e\n                    \u003cdiv class=\"inventory-alert-filter-bar\"\u003e\n                        \u003clabel\u003eDepartamento\u003cselect id=\"inventoryHomeAlertDepartmentFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                        \u003clabel\u003eProveedor\u003cselect id=\"inventoryHomeAlertSupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                        \u003clabel\u003eEstado\u003cselect id=\"inventoryHomeAlertStatusFilter\"\u003e\u003coption value=\"pending\"\u003ePendientes\u003c/option\u003e\u003coption value=\"shopping\"\u003eEn lista\u003c/option\u003e\u003coption value=\"all\"\u003eTodas\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n                    \u003c/div\u003e\n                    \u003cdiv id=\"inventoryHomeAlertsList\"\u003e\u003c/div\u003e\n                    \u003ch3 style=\"margin-top:14px;\"\u003eValor por categoria\u003c/h3\u003e\n                    \u003cdiv class=\"inventory-category-value-list\" id=\"inventoryCategoryValueList\"\u003e\u003c/div\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"inventory-home-block\"\u003e\n                    \u003ch3\u003ePedidos activos del dia\u003c/h3\u003e\n                    \u003cdiv class=\"inventory-order-list\" id=\"inventoryHomeOrdersList\"\u003e\u003c/div\u003e\n                    \u003ch3 style=\"margin-top:14px;\"\u003ePromociones activas\u003c/h3\u003e\n                    \u003cdiv class=\"inventory-promo-list\" id=\"inventoryHomePromotionsList\"\u003e\u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/section\u003e\n        \u003cdiv class=\"inventory-tabs\"\u003e\n            \u003cbutton type=\"button\" data-inventory-view=\"stock\"\u003eCatalogo\u003c/button\u003e\n            \u003cbutton type=\"button\" data-inventory-view=\"adjustments\"\u003eAjustes de inventario\u003c/button\u003e\n            \u003cbutton type=\"button\" data-inventory-view=\"purchase-orders\"\u003ePedidos\u003c/button\u003e\n            \u003cbutton type=\"button\" data-inventory-view=\"promotions\"\u003ePromociones\u003c/button\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-view\" id=\"inventory-view-stock\"\u003e\n            \u003cdiv class=\"inventory-back-row\"\u003e\u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"inventoryBackHomeButton\"\u003eAtras\u003c/button\u003e\u003c/div\u003e\n            \u003cdiv class=\"inventory-dialog-actions\" style=\"justify-content:flex-start; padding:0 0 10px; border-top:0;\"\u003e\n                \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"inventoryOpenForm\"\u003eAgregar producto\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"inventoryImportButton\"\u003eImportar Excel\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"inventoryExportButton\"\u003eExportar CSV\u003c/button\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"inventory-controls-app\"\u003e\n                \u003clabel\u003eBuscar\u003cinput id=\"inventorySearch\" type=\"search\" placeholder=\"SKU, producto o proveedor\"\u003e\u003c/label\u003e\n                \u003clabel\u003eDepartamento\u003cselect id=\"inventoryCategoryFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                \u003clabel\u003eProveedor\u003cselect id=\"inventorySupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"inventory-bulk-panel\"\u003e\n                \u003cdiv class=\"inventory-bulk-head\"\u003e\n                    \u003cstrong\u003eFunciones para productos seleccionados\u003c/strong\u003e\n                    \u003cspan id=\"inventorySelectionSummary\"\u003e0 seleccionados\u003c/span\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"inventory-bulk-grid\"\u003e\n                    \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"openBulkPriceButton\"\u003eModificar precios\u003c/button\u003e\n                    \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openBulkDepartmentButton\"\u003eCambiar departamento\u003c/button\u003e\n                    \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openBulkSupplierButton\"\u003eCambiar proveedor\u003c/button\u003e\n                    \u003cbutton class=\"inventory-danger\" type=\"button\" id=\"bulkDeleteProductsButton\"\u003eEliminar seleccionados\u003c/button\u003e\n                    \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"bulkClearSelectionButton\"\u003eLimpiar seleccion\u003c/button\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"inventory-bulk-status\" id=\"inventoryBulkStatus\"\u003e\n                    \u003cspan id=\"inventoryBulkStatusText\"\u003eListo para procesar seleccion.\u003c/span\u003e\n                    \u003cdiv class=\"inventory-progress\"\u003e\u003cdiv class=\"inventory-progress-bar\" id=\"inventoryBulkProgressBar\"\u003e\u003c/div\u003e\u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"inventory-layout\"\u003e\n                \u003cdiv class=\"inventory-table-wrap\"\u003e\n                    \u003ctable class=\"inventory-table\"\u003e\n                        \u003cthead\u003e\u003ctr\u003e\u003cth class=\"select-col\"\u003e\u003cinput id=\"inventorySelectAllVisible\" type=\"checkbox\" title=\"Seleccionar visibles\"\u003e\u003c/th\u003e\u003cth class=\"product-col\"\u003eProducto\u003c/th\u003e\u003cth class=\"sku-col\"\u003eSKU\u003c/th\u003e\u003cth class=\"compact-col\"\u003eStock\u003c/th\u003e\u003cth class=\"compact-col\"\u003ePrecios\u003c/th\u003e\u003cth class=\"actions-col\"\u003eAcciones\u003c/th\u003e\u003c/tr\u003e\u003c/thead\u003e\n                        \u003ctbody id=\"inventoryProductsTable\"\u003e\u003c/tbody\u003e\n                    \u003c/table\u003e\n                    \u003cp class=\"inventory-empty\" id=\"inventoryEmptyState\" hidden\u003eNo hay productos con esos filtros.\u003c/p\u003e\n                \u003c/div\u003e\n                \u003caside class=\"inventory-alerts\"\u003e\u003ch3\u003eAlertas\u003c/h3\u003e\u003clabel class=\"inventory-alert-status-filter\"\u003eEstado\u003cselect id=\"inventoryAlertStatusFilter\"\u003e\u003coption value=\"pending\"\u003ePendientes\u003c/option\u003e\u003coption value=\"shopping\"\u003eEn lista\u003c/option\u003e\u003coption value=\"all\"\u003eTodas\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\u003cdiv id=\"inventoryAlertsList\"\u003e\u003c/div\u003e\u003c/aside\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-view\" id=\"inventory-view-adjustments\"\u003e\n            \u003cdiv class=\"inventory-back-row\"\u003e\u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-home-back\u003eAtras\u003c/button\u003e\u003c/div\u003e\n            \u003cdiv class=\"inventory-adjustment-grid\" style=\"grid-template-columns:minmax(0,1fr);\"\u003e\n                \u003csection class=\"purchase-panel inventory-adjustment-quick\"\u003e\n                    \u003ch2\u003eAjustar inventario\u003c/h2\u003e\n                    \u003cdiv class=\"inventory-metrics compact\"\u003e\n                        \u003cdiv class=\"inventory-metric\"\u003e\u003cspan\u003eProductos activos\u003c/span\u003e\u003cstrong id=\"inventoryActiveProducts\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"inventory-metric\"\u003e\u003cspan\u003eValor total\u003c/span\u003e\u003cstrong id=\"inventoryTotalValue\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"inventory-metric\"\u003e\u003cspan\u003eStock bajo\u003c/span\u003e\u003cstrong id=\"inventoryLowStock\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"inventory-metric\"\u003e\u003cspan\u003eDisponibles\u003c/span\u003e\u003cstrong id=\"inventoryAvailableRate\"\u003e0%\u003c/strong\u003e\u003c/div\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"inventory-controls-app\"\u003e\n                        \u003clabel\u003eSKU\u003cinput id=\"inventoryAdjustmentSearch\" type=\"search\" placeholder=\"Escanea o escribe SKU\"\u003e\u003c/label\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"inventoryAdjustmentSearchButton\" onclick=\"window.openInventoryAdjustmentLookup \u0026\u0026 window.openInventoryAdjustmentLookup()\"\u003eBuscar por descripcion\u003c/button\u003e\n                        \u003clabel\u003eDepartamento\u003cselect id=\"inventoryAdjustmentCategoryFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                        \u003clabel\u003eProveedor\u003cselect id=\"inventoryAdjustmentSupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"adjustment-product-detail\" id=\"inventoryAdjustmentProductDetail\" hidden\u003e\u003c/div\u003e\n                    \u003cdiv class=\"purchase-form-grid\" id=\"inventoryAdjustmentEntryPanel\" hidden\u003e\n                        \u003cselect id=\"inventoryAdjustmentProductSelect\" hidden\u003e\u003c/select\u003e\n                        \u003cinput id=\"inventoryAdjustmentType\" type=\"hidden\" value=\"add\"\u003e\n                        \u003cinput id=\"inventoryAdjustmentDate\" type=\"hidden\"\u003e\n                        \u003cinput id=\"inventoryAdjustmentReference\" type=\"hidden\"\u003e\n                        \u003cinput id=\"inventoryAdjustmentCurrentStock\" type=\"hidden\" value=\"0\"\u003e\n                        \u003clabel\u003eCantidad a sumar/restar\u003cinput id=\"inventoryAdjustmentQuantity\" step=\"1\" type=\"number\" value=\"1\"\u003e\u003c/label\u003e\n                        \u003clabel class=\"full\" id=\"inventoryAdjustmentReasonLabel\" hidden\u003eMotivo de salida\u003ctextarea id=\"inventoryAdjustmentReason\" placeholder=\"Ej. merma, devolucion, conteo fisico, producto danado\"\u003e\u003c/textarea\u003e\u003c/label\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"adjustment-preview\" id=\"inventoryAdjustmentPreview\"\u003eEscanea o escribe un SKU para iniciar.\u003c/div\u003e\n                    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"inventoryAdjustmentResetButton\"\u003eCancelar\u003c/button\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"inventoryAdjustmentSaveButton\"\u003eGuardar ajuste\u003c/button\u003e\n                    \u003c/div\u003e\n                \u003c/section\u003e\n                \u003cdiv hidden\u003e\u003cstrong id=\"inventoryAdjustmentCount\"\u003e0\u003c/strong\u003e\u003cstrong id=\"inventoryAdjustmentInTotal\"\u003e0\u003c/strong\u003e\u003cstrong id=\"inventoryAdjustmentOutTotal\"\u003e0\u003c/strong\u003e\u003cdiv id=\"inventoryAdjustmentHistory\"\u003e\u003c/div\u003e\u003c/div\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-view\" id=\"inventory-view-purchase-notes\"\u003e\n            \u003cdiv class=\"inventory-back-row\"\u003e\u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-home-back\u003eAtras\u003c/button\u003e\u003c/div\u003e\n            \u003cdiv class=\"purchase-notes-overview\" id=\"purchaseNotesOverview\"\u003e\n                \u003csection class=\"purchase-panel\"\u003e\n                    \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:12px;\"\u003e\n                        \u003cdiv\u003e\n                            \u003ch2\u003eNotas de compra\u003c/h2\u003e\n                            \u003cp\u003eRevisa pedidos pendientes, notas recibidas y abre una nueva recepcion.\u003c/p\u003e\n                        \u003c/div\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"newPurchaseNoteButton\"\u003eNueva nota de compra\u003c/button\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"purchase-summary\"\u003e\n                        \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003ePendientes por recibir\u003c/span\u003e\u003cstrong id=\"purchasePendingCount\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eNotas recibidas\u003c/span\u003e\u003cstrong id=\"purchaseNotesCount\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eTotal recibido\u003c/span\u003e\u003cstrong id=\"purchaseReceivedTotal\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                    \u003c/div\u003e\n                \u003c/section\u003e\n                \u003cdiv class=\"purchase-notes-columns\"\u003e\n                    \u003csection class=\"purchase-panel\"\u003e\n                        \u003ch3\u003ePendientes de recibir\u003c/h3\u003e\n                        \u003cdiv class=\"purchase-note-list\" id=\"purchaseNotesPendingList\"\u003e\u003c/div\u003e\n                    \u003c/section\u003e\n                    \u003csection class=\"purchase-panel\"\u003e\n                        \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:10px;\"\u003e\n                            \u003ch3\u003eNotas recibidas\u003c/h3\u003e\n                            \u003clabel class=\"pos-search\" style=\"min-width:220px;\"\u003eProveedor\u003cselect id=\"purchaseNotesSupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"purchase-note-list\" id=\"purchaseNotesList\"\u003e\u003c/div\u003e\n                    \u003c/section\u003e\n                \u003c/div\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"purchase-notes-app purchase-capture-panel\" id=\"purchaseCapturePanel\" hidden\u003e\n                \u003csection class=\"purchase-panel\"\u003e\n                    \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:12px;\"\u003e\n                        \u003ch2\u003eRecepcion de nota de compra\u003c/h2\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"cancelPurchaseCaptureButton\"\u003eVolver a notas\u003c/button\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"capture-mode-switch\"\u003e\n                        \u003cbutton class=\"active\" type=\"button\" data-purchase-mode=\"manual\"\u003eCaptura manual\u003c/button\u003e\n                        \u003cbutton type=\"button\" data-purchase-mode=\"image\"\u003eSubir imagen\u003c/button\u003e\n                    \u003c/div\u003e\n\n                    \u003cdiv class=\"purchase-capture-mode active\" id=\"purchase-mode-manual\"\u003e\n                        \u003cdiv class=\"purchase-form-grid compact\"\u003e\n                            \u003clabel\u003eProveedor\u003cselect id=\"purchaseSupplierSelect\"\u003e\u003c/select\u003e\u003c/label\u003e\n                            \u003clabel\u003eFolio\u003cinput id=\"purchaseFolioInput\" placeholder=\"Opcional\"\u003e\u003c/label\u003e\n                            \u003clabel\u003eFecha\u003cinput id=\"purchaseDateInput\" type=\"date\"\u003e\u003c/label\u003e\n                            \u003clabel\u003ePago\u003cselect id=\"purchasePaymentCurrency\"\u003e\u003coption value=\"MXN\"\u003eMXN\u003c/option\u003e\u003coption value=\"USD\"\u003eDolar\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n                            \u003clabel\u003eNotas\u003ctextarea id=\"purchaseNotesInput\" placeholder=\"Diferencias o comentarios\"\u003e\u003c/textarea\u003e\u003c/label\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"purchase-tax-panel\"\u003e\n                            \u003cdiv class=\"purchase-tax-row\"\u003e\n                                \u003clabel\u003eFlete\u003cinput id=\"purchaseFreightInput\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\"\u003e\u003c/label\u003e\n                                \u003clabel\u003eIVA %\u003cinput id=\"purchaseIvaRateInput\" min=\"0\" step=\"0.01\" type=\"number\" value=\"16\"\u003e\u003c/label\u003e\n                                \u003clabel\u003eIEPS %\u003cinput id=\"purchaseIepsRateInput\" min=\"0\" step=\"0.01\" type=\"number\" value=\"8\"\u003e\u003c/label\u003e\n                            \u003c/div\u003e\n                            \u003cdiv class=\"purchase-tax-row\"\u003e\n                                \u003clabel\u003e\u003cinput id=\"purchaseSelectAllTaxIncluded\" type=\"checkbox\"\u003e Costo ya incluye impuestos\u003c/label\u003e\n                                \u003clabel\u003e\u003cinput id=\"purchaseSelectAllIva\" type=\"checkbox\"\u003e Aplicar IVA a todos\u003c/label\u003e\n                                \u003clabel\u003e\u003cinput id=\"purchaseSelectAllIeps\" type=\"checkbox\"\u003e Aplicar IEPS a todos\u003c/label\u003e\n                            \u003c/div\u003e\n                            \u003cdiv class=\"purchase-exchange-tools\"\u003e\n                                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openPhysicalExchangeButton\"\u003eCambio fisico\u003c/button\u003e\n                                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openExchangePurchaseButton\"\u003eCompra por cambio\u003c/button\u003e\n                            \u003c/div\u003e\n                            \u003cdiv class=\"purchase-tax-summary\"\u003e\n                                \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eLineas\u003c/span\u003e\u003cstrong id=\"purchaseLineCount\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                                \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eTotal estimado\u003c/span\u003e\u003cstrong id=\"purchaseTotalAmount\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                                \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eFlete dist.\u003c/span\u003e\u003cstrong id=\"purchaseFreightUnitInfo\"\u003e$0 c/u\u003c/strong\u003e\u003c/div\u003e\n                                \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eCambios\u003c/span\u003e\u003cstrong id=\"purchaseExchangeInfo\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                            \u003c/div\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"inventory-controls-app\"\u003e\n                            \u003clabel\u003eSKU o busqueda\u003cinput id=\"purchaseProductSearch\" type=\"search\" placeholder=\"Escanea SKU o escribe nombre\"\u003e\u003c/label\u003e\n                            \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"purchaseProductSearchAdd\"\u003eAgregar\u003c/button\u003e\n                            \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"purchaseProductSearchOpen\"\u003eBuscar\u003c/button\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"purchase-lines\" id=\"purchaseLines\"\u003e\u003c/div\u003e\n                        \u003cdiv class=\"inventory-dialog-actions\"\u003e\n                            \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"saveManualPurchaseButton\"\u003eGuardar nota y actualizar inventario\u003c/button\u003e\n                        \u003c/div\u003e\n                    \u003c/div\u003e\n\n                    \u003cdiv class=\"purchase-capture-mode\" id=\"purchase-mode-image\"\u003e\n                        \u003cdiv class=\"purchase-form-grid\"\u003e\n                            \u003clabel\u003eProveedor\u003cselect id=\"purchaseImageSupplierSelect\"\u003e\u003c/select\u003e\u003c/label\u003e\n                            \u003clabel\u003eFolio nota\u003cinput id=\"purchaseImageFolioInput\" placeholder=\"Folio / factura\"\u003e\u003c/label\u003e\n                            \u003clabel\u003eFecha\u003cinput id=\"purchaseImageDateInput\" type=\"date\"\u003e\u003c/label\u003e\n                            \u003clabel class=\"full\"\u003eImagen de la nota\u003cinput class=\"inventory-file-input\" id=\"purchaseImageInput\" accept=\"image/*\" type=\"file\"\u003e\u003c/label\u003e\n                        \u003c/div\u003e\n                        \u003cdiv class=\"purchase-image-drop\" id=\"purchaseImagePreview\"\u003eSelecciona una imagen de la nota para dejarla registrada.\u003c/div\u003e\n                        \u003cdiv class=\"admin-summary\" id=\"purchaseOcrStatus\"\u003eSube una imagen y presiona capturar datos para leerla automaticamente.\u003c/div\u003e\n                        \u003ctextarea class=\"purchase-ocr-text\" id=\"purchaseOcrText\" placeholder=\"Texto detectado por OCR\"\u003e\u003c/textarea\u003e\n                        \u003cdiv class=\"inventory-dialog-actions\"\u003e\n                            \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"runPurchaseOcrButton\"\u003eCapturar datos de imagen\u003c/button\u003e\n                            \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"saveImagePurchaseButton\"\u003eGuardar nota con imagen\u003c/button\u003e\n                        \u003c/div\u003e\n                    \u003c/div\u003e\n                \u003c/section\u003e\n\n                \u003caside class=\"purchase-panel\"\u003e\n                    \u003ch3\u003eUltimas notas\u003c/h3\u003e\n                    \u003cdiv class=\"purchase-note-list\" id=\"purchaseRecentNotesList\"\u003e\u003c/div\u003e\n                \u003c/aside\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-view\" id=\"inventory-view-purchase-orders\"\u003e\n            \u003cdiv class=\"inventory-back-row\"\u003e\u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-home-back\u003eAtras\u003c/button\u003e\u003c/div\u003e\n            \u003cdiv class=\"purchase-notes-overview\" id=\"purchaseOrdersHub\"\u003e\n            \u003csection class=\"purchase-panel\"\u003e\n                \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:12px;\"\u003e\n                    \u003cdiv\u003e\n                        \u003ch2\u003ePedidos\u003c/h2\u003e\n                        \u003cp\u003ePedidos, notas y recepcion.\u003c/p\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"inventory-dialog-actions\" style=\"border-top:0;padding:0;\"\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openFullShoppingFromOrders\"\u003eAbrir toda la lista de compra\u003c/button\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"newPurchaseFromOrders\"\u003eRecibir nota de compra\u003c/button\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openManualOrderScanButton\"\u003ePedido por escaneo\u003c/button\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"generateOrderFromOrders\"\u003eGenerar pedido\u003c/button\u003e\n                    \u003c/div\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"orders-45-status\" id=\"purchaseOrderStatusBoard\"\u003e\u003c/div\u003e\n            \u003c/section\u003e\n            \u003cdiv class=\"orders-45-grid\"\u003e\n                \u003csection class=\"purchase-panel\"\u003e\n                    \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:10px;\"\u003e\n                        \u003ch3\u003ePedidos hechos\u003c/h3\u003e\n                        \u003clabel class=\"pos-search\" style=\"min-width:220px;\"\u003eProveedor\u003cselect id=\"purchaseOrdersSupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"purchase-note-list\" id=\"purchaseOrdersList\"\u003e\u003c/div\u003e\n                \u003c/section\u003e\n                \u003caside class=\"purchase-panel\"\u003e\n                    \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:8px;\"\u003e\n                        \u003ch3\u003eNotas de compra\u003c/h3\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"openPurchaseNotesFromOrders\"\u003eVer notas\u003c/button\u003e\n                    \u003c/div\u003e\n                    \u003cp class=\"inventory-empty\" style=\"margin-top:0;\"\u003eUltimas notas capturadas y recepciones recientes.\u003c/p\u003e\n                    \u003cdiv class=\"orders-45-shopping\" id=\"purchaseOrderUrgentShopping\"\u003e\u003c/div\u003e\n                \u003c/aside\u003e\n            \u003c/div\u003e\n            \u003cdialog class=\"inventory-manage-dialog\" id=\"manualOrderDialog\"\u003e\n            \u003csection class=\"purchase-panel orders-45-builder\" id=\"manualOrderBuilder\"\u003e\n                \u003cdiv\u003e\n                    \u003cdiv class=\"inventory-header-app\" style=\"margin-bottom:12px;\"\u003e\n                        \u003ch3 id=\"manualOrderTitle\"\u003ePedido por escaneo\u003c/h3\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"cancelManualOrderButton\"\u003eCerrar\u003c/button\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"purchase-form-grid\"\u003e\n                        \u003clabel\u003eProveedor\u003cselect id=\"manualOrderSupplier\"\u003e\u003c/select\u003e\u003c/label\u003e\n                        \u003clabel class=\"full\"\u003eSKU\u003cinput id=\"manualOrderScan\" type=\"search\" placeholder=\"Escanea SKU y presiona Enter\"\u003e\u003c/label\u003e\n                    \u003c/div\u003e\n                    \u003cdiv class=\"orders-45-detail\" id=\"manualOrderProductDetail\"\u003eEscanea un producto para iniciar.\u003c/div\u003e\n                    \u003cdiv class=\"purchase-form-grid\"\u003e\n                        \u003clabel\u003ePiezas a pedir\u003cinput id=\"manualOrderQuantity\" min=\"1\" step=\"1\" type=\"number\" value=\"1\"\u003e\u003c/label\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"manualOrderAddButton\"\u003eAgregar\u003c/button\u003e\n                    \u003c/div\u003e\n                \u003c/div\u003e\n                \u003cdiv\u003e\n                    \u003ch3\u003eLista del pedido\u003c/h3\u003e\n                    \u003cdiv class=\"orders-45-cart\" id=\"manualOrderLines\"\u003e\u003c/div\u003e\n                    \u003cdiv class=\"purchase-summary\" style=\"margin-top:10px;\"\u003e\n                        \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eProductos\u003c/span\u003e\u003cstrong id=\"manualOrderLineCount\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                        \u003cdiv class=\"purchase-summary-card\"\u003e\u003cspan\u003eTotal costo\u003c/span\u003e\u003cstrong id=\"manualOrderTotal\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                    \u003c/div\u003e\n                        \u003cdiv class=\"inventory-dialog-actions\"\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"manualOrderDraftButton\"\u003eGuardar borrador\u003c/button\u003e\n                        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"manualOrderPrintButton\"\u003eImprimir pedido\u003c/button\u003e\n                        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"manualOrderSubmitButton\"\u003ePedir\u003c/button\u003e\n                    \u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/section\u003e\n            \u003c/dialog\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"inventory-view\" id=\"inventory-view-promotions\"\u003e\n            \u003cdiv class=\"inventory-back-row\"\u003e\u003cbutton class=\"inventory-secondary\" type=\"button\" data-inventory-home-back\u003eAtras\u003c/button\u003e\u003c/div\u003e\n            \u003csection class=\"purchase-panel\"\u003e\n                \u003cdiv class=\"purchase-head\"\u003e\n                    \u003cdiv\u003e\u003ch2\u003ePromociones\u003c/h2\u003e\u003cp\u003eCrea ofertas por producto, proveedor o departamento con vigencia y recurrencia.\u003c/p\u003e\u003c/div\u003e\n                    \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"openPromotionDialog\"\u003eCrear promocion\u003c/button\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"purchase-note-list\" id=\"inventoryPromotionsList\"\u003e\u003c/div\u003e\n            \u003c/section\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/section\u003e",
    pos: "\u003csection id=\"section-pos\" class=\"app-section\" hidden\u003e\n    \u003cdiv class=\"section-head\"\u003e\u003cdiv class=\"section-title\"\u003e\u003cimg class=\"section-logo\" src=\"tmarket-logo.jfif\" alt=\"Logo T Market\"\u003e\u003ch2\u003ePunto de venta\u003c/h2\u003e\u003c/div\u003e\u003cbutton class=\"home-button\" type=\"button\" onclick=\"showSection(\u0027home\u0027)\"\u003eVolver al inicio\u003c/button\u003e\u003c/div\u003e\n    \u003cdiv class=\"pos-app\"\u003e\n        \u003cdiv class=\"pos-panel pos-search-panel\"\u003e\n            \u003ch2\u003eEscaneo y busqueda\u003c/h2\u003e\n            \u003cdiv class=\"pos-scan-row\"\u003e\n                \u003clabel class=\"pos-search\"\u003e\n                    \u003cinput id=\"posSearchInput\" type=\"search\" placeholder=\"Escanea o escribe SKU\" autocomplete=\"off\" title=\"Enter agrega el producto por SKU. F2 abre busqueda.\"\u003e\n                \u003c/label\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posOpenProductSearch\" title=\"F2\"\u003eBuscar\u003c/button\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"pos-product-grid pos-suggestion-list\" id=\"posProductGrid\"\u003e\u003c/div\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"pos-layout\"\u003e\n            \u003caside class=\"pos-panel pos-sale-panel\"\u003e\n                \u003cdiv class=\"pos-sale-head\"\u003e\n                    \u003ch2\u003eVenta actual\u003c/h2\u003e\n                    \u003cdiv class=\"pos-sale-tabs\" id=\"posSaleTabs\"\u003e\u003c/div\u003e\n                    \u003cdiv class=\"pos-exchange-badge\" id=\"posExchangeBadge\"\u003eUSD $18.00\u003c/div\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"pos-cart-list\" id=\"posCartList\"\u003e\u003c/div\u003e\n                \u003cdiv class=\"pos-total-box\"\u003e\n                    \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003eArticulos\u003c/span\u003e\u003cstrong id=\"posItemsCount\"\u003e0\u003c/strong\u003e\u003c/div\u003e\n                    \u003cdiv class=\"pos-total-row\" id=\"posDeliveryFeeRow\" hidden\u003e\u003cspan\u003eEnvio\u003c/span\u003e\u003cstrong id=\"posDeliveryFeeAmount\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                    \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003eTotal\u003c/span\u003e\u003cstrong class=\"pos-grand-total\" id=\"posGrandTotal\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n                    \u003cdiv class=\"admin-summary\" id=\"posLoyaltyPanel\"\u003eSin cliente para puntos.\u003c/div\u003e\n                \u003c/div\u003e\n            \u003c/aside\u003e\n            \u003caside class=\"pos-action-rail\" aria-label=\"Operaciones de punto de venta\"\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posQuoteButton\"\u003e\u003ci data-lucide=\"file-text\"\u003e\u003c/i\u003e\u003cspan\u003eCotizacion\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posOpenQuotes\"\u003e\u003ci data-lucide=\"search\"\u003e\u003c/i\u003e\u003cspan\u003eBuscar cotizacion\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posAddSaleTab\"\u003e\u003ci data-lucide=\"square-plus\"\u003e\u003c/i\u003e\u003cspan\u003eNueva venta\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posClearButton\" title=\"Ctrl + Supr\"\u003e\u003ci data-lucide=\"trash-2\"\u003e\u003c/i\u003e\u003cspan\u003eCancelar venta\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posOpenCashIncome\" title=\"F8\"\u003e\u003ci data-lucide=\"log-in\"\u003e\u003c/i\u003e\u003cspan\u003eEntrada efectivo\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posOpenCashPayment\" title=\"F9\"\u003e\u003ci data-lucide=\"log-out\"\u003e\u003c/i\u003e\u003cspan\u003eGastos / proveedor\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posOpenSalesHistory\" title=\"F7\"\u003e\u003ci data-lucide=\"history\"\u003e\u003c/i\u003e\u003cspan\u003eHistorial ventas\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCustomerButton\"\u003e\u003ci data-lucide=\"user-round\"\u003e\u003c/i\u003e\u003cspan\u003eCliente / puntos\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posChargeButton\" title=\"F10\"\u003e\u003ci data-lucide=\"banknote\"\u003e\u003c/i\u003e\u003cspan\u003eCobrar\u003c/span\u003e\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posDeliveryButton\" hidden\u003e\u003ci data-lucide=\"truck\"\u003e\u003c/i\u003e\u003cspan\u003eEnvio\u003c/span\u003e\u003c/button\u003e\n                \u003cfooter class=\"pos-recent-footer\"\u003e\n                    \u003cdiv\u003e\u003cstrong\u003eUltima venta\u003c/strong\u003e\u003cspan\u003eTotal y cambio\u003c/span\u003e\u003c/div\u003e\n                    \u003cdiv class=\"pos-recent-list\" id=\"posRecentTickets\"\u003e\u003c/div\u003e\n                \u003c/footer\u003e\n                \u003cdiv id=\"posTicketPreview\" hidden\u003e\u003c/div\u003e\n            \u003c/aside\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/section\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-payment-dialog\" id=\"posPaymentDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eCobrar venta\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posClosePaymentDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003eTotal a pagar\u003c/span\u003e\u003cstrong class=\"pos-grand-total\" id=\"posDialogGrandTotal\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n        \u003cdiv class=\"pos-payments\"\u003e\n            \u003cdiv class=\"pos-payment-mode-grid\" id=\"posPaymentModeGrid\"\u003e\n                \u003cbutton class=\"pos-payment-mode active\" type=\"button\" data-payment-mode=\"cash\"\u003e\u003cspan class=\"mode-icon\"\u003e$\u003c/span\u003e\u003cspan\u003eEfectivo\u003c/span\u003e\u003csmall\u003ecambio permitido\u003c/small\u003e\u003c/button\u003e\n                \u003cbutton class=\"pos-payment-mode\" type=\"button\" data-payment-mode=\"card\"\u003e\u003cspan class=\"mode-icon\"\u003eTC\u003c/span\u003e\u003cspan\u003eTarjeta\u003c/span\u003e\u003csmall\u003eexacto\u003c/small\u003e\u003c/button\u003e\n                \u003cbutton class=\"pos-payment-mode\" type=\"button\" data-payment-mode=\"usd\"\u003e\u003cspan class=\"mode-icon\"\u003eUS\u003c/span\u003e\u003cspan\u003eDolares\u003c/span\u003e\u003csmall\u003econ tipo cambio\u003c/small\u003e\u003c/button\u003e\n                \u003cbutton class=\"pos-payment-mode\" type=\"button\" data-payment-mode=\"transfer\"\u003e\u003cspan class=\"mode-icon\"\u003eTR\u003c/span\u003e\u003cspan\u003eTransferencia\u003c/span\u003e\u003csmall\u003eexacto\u003c/small\u003e\u003c/button\u003e\n                \u003cbutton class=\"pos-payment-mode\" type=\"button\" data-payment-mode=\"credit\"\u003e\u003cspan class=\"mode-icon\"\u003eCR\u003c/span\u003e\u003cspan\u003eCredito\u003c/span\u003e\u003csmall\u003ecliente\u003c/small\u003e\u003c/button\u003e\n                \u003cbutton class=\"pos-payment-mode\" type=\"button\" data-payment-mode=\"mixed\"\u003e\u003cspan class=\"mode-icon\"\u003eMX\u003c/span\u003e\u003cspan\u003eMixto\u003c/span\u003e\u003csmall\u003evarios pagos\u003c/small\u003e\u003c/button\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"pos-payment-single\" id=\"posSinglePaymentBox\"\u003e\n                \u003clabel\u003e\u003cspan id=\"posSinglePaymentLabel\"\u003eEfectivo MXN\u003c/span\u003e\u003cinput id=\"posSinglePaymentAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\"\u003e\u003c/label\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"pos-payment-grid\" id=\"posMixedPaymentGrid\" hidden\u003e\n                \u003clabel\u003eEfectivo MXN\u003cinput id=\"posCashAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\" title=\"Alt + 1\"\u003e\u003c/label\u003e\n                \u003clabel\u003eTarjeta\u003cinput id=\"posCardAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\" title=\"Alt + 2\"\u003e\u003c/label\u003e\n                \u003clabel\u003eTransferencia\u003cinput id=\"posTransferAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\" title=\"Alt + 3\"\u003e\u003c/label\u003e\n                \u003clabel\u003eDolares USD\u003cinput id=\"posUsdAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\" title=\"Alt + 4\"\u003e\u003c/label\u003e\n                \u003cinput id=\"posExchangeRate\" type=\"hidden\" value=\"18.00\"\u003e\n                \u003clabel id=\"posCreditAmountWrap\"\u003eCredito cliente\u003cinput id=\"posCreditAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\"\u003e\u003c/label\u003e\n                \u003clabel id=\"posPointsRedeemWrap\"\u003eRedimir puntos\u003cinput id=\"posPointsRedeem\" min=\"0\" step=\"1\" type=\"number\" value=\"0\" inputmode=\"numeric\"\u003e\u003c/label\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003ePagado\u003c/span\u003e\u003cstrong id=\"posPaidAmount\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n            \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003eResta por cobrar\u003c/span\u003e\u003cstrong id=\"posRemainingAmount\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n            \u003cdiv class=\"pos-total-row\"\u003e\u003cspan\u003eCambio\u003c/span\u003e\u003cstrong id=\"posChangeAmount\"\u003e$0\u003c/strong\u003e\u003c/div\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCancelPaymentButton\" title=\"Esc\"\u003eCancelar\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posConfirmChargeButton\" title=\"F10 o Ctrl + Enter\"\u003eConfirmar cobro e imprimir ticket\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-payment-dialog\" id=\"quotationOptionsDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eGenerar cotizacion\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closeQuotationOptionsDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"admin-form-grid\"\u003e\n            \u003clabel\u003eVence el\u003cinput id=\"quotationExpiryDate\" type=\"date\"\u003e\u003c/label\u003e\n            \u003clabel\u003eFormato\u003cselect id=\"quotationFormatSelect\"\u003e\u003coption value=\"ticket\"\u003eTicket\u003c/option\u003e\u003coption value=\"letter\"\u003eHoja carta\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel class=\"admin-toggle\"\u003e\u003cinput id=\"quotationPrintNow\" type=\"checkbox\" checked\u003e Imprimir al guardar\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"admin-summary\" id=\"quotationOptionsSummary\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"cancelQuotationOptionsButton\"\u003eCancelar\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"confirmQuotationButton\"\u003eGuardar cotizacion\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-payment-dialog delivery-dialog\" id=\"posDeliveryDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eOrden de envio\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCloseDeliveryDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body delivery-body\"\u003e\n        \u003cdiv class=\"delivery-grid\"\u003e\n            \u003csection class=\"delivery-card\"\u003e\n                \u003ch3\u003eDatos de entrega\u003c/h3\u003e\n                \u003cdiv class=\"pos-payment-grid\"\u003e\n                    \u003clabel\u003eCliente\u003cselect id=\"posDeliveryCustomerSelect\"\u003e\u003c/select\u003e\u003c/label\u003e\n                    \u003clabel\u003eRecibe\u003cinput id=\"posDeliveryCustomerName\" placeholder=\"Nombre de quien recibe\"\u003e\u003c/label\u003e\n                    \u003clabel\u003eTelefono\u003cinput id=\"posDeliveryPhone\" placeholder=\"Telefono\"\u003e\u003c/label\u003e\n                    \u003clabel\u003eDireccion guardada\u003cselect id=\"posDeliveryAddressSelect\"\u003e\u003c/select\u003e\u003c/label\u003e\n                    \u003clabel class=\"full\"\u003eNueva / direccion editada\u003ctextarea id=\"posDeliveryAddress\" placeholder=\"Direccion completa de entrega\"\u003e\u003c/textarea\u003e\u003c/label\u003e\n                    \u003clabel class=\"full\"\u003eReferencias\u003ctextarea id=\"posDeliveryNotes\" placeholder=\"Entre calles, horario o instrucciones\"\u003e\u003c/textarea\u003e\u003c/label\u003e\n                \u003c/div\u003e\n            \u003c/section\u003e\n            \u003caside class=\"delivery-card\"\u003e\n                \u003ch3\u003eEnvio y costo\u003c/h3\u003e\n                \u003clabel class=\"admin-toggle\"\u003e\u003cinput id=\"posDeliveryPartialToggle\" type=\"checkbox\"\u003e Envio parcial\u003c/label\u003e\n                \u003cdiv class=\"pos-payment-grid\"\u003e\n                    \u003clabel\u003eDistancia km\u003cinput id=\"posDeliveryKm\" min=\"0\" step=\"0.1\" type=\"number\" value=\"0\"\u003e\u003c/label\u003e\n                    \u003clabel\u003eCosto manual\u003cinput id=\"posDeliveryManualFee\" min=\"0\" step=\"0.01\" type=\"number\" placeholder=\"Opcional\"\u003e\u003c/label\u003e\n                \u003c/div\u003e\n                \u003cdiv class=\"delivery-cost-preview\"\u003e\u003cspan\u003eTotal envio\u003c/span\u003e\u003cstrong id=\"posDeliveryCostPreview\"\u003e$0\u003c/strong\u003e\u003csmall id=\"posDeliveryCostRule\"\u003eCalculado segun configuracion.\u003c/small\u003e\u003c/div\u003e\n            \u003c/aside\u003e\n        \u003c/div\u003e\n        \u003ch3 style=\"margin:10px 0 6px;color:#12213a;\"\u003eProductos a entregar\u003c/h3\u003e\n        \u003cdiv class=\"delivery-line-list\" id=\"posDeliveryLines\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posPrintDeliveryDraft\"\u003eImprimir borrador\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posSaveDeliveryDraft\"\u003eGuardar envio\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-history-dialog\" id=\"quotationsDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eCotizaciones\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closeQuotationsDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-history-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eBuscar\u003cinput id=\"quotationSearchInput\" type=\"search\" placeholder=\"Folio, producto o cajero\"\u003e\u003c/label\u003e\n            \u003clabel\u003eDesde\u003cinput id=\"quotationDateFrom\" type=\"date\"\u003e\u003c/label\u003e\n            \u003clabel\u003eHasta\u003cinput id=\"quotationDateTo\" type=\"date\"\u003e\u003c/label\u003e\n            \u003clabel\u003eEstado\u003cselect id=\"quotationStatusFilter\"\u003e\u003coption value=\"all\"\u003eTodas\u003c/option\u003e\u003coption value=\"Activa\"\u003eActivas\u003c/option\u003e\u003coption value=\"Vencida\"\u003eVencidas\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"pos-history-list\" id=\"quotationsList\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-search-dialog\" id=\"posProductSearchDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eBuscar producto\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCloseProductSearch\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eNombre, SKU o alias\u003cinput id=\"posAdvancedSearchInput\" type=\"search\" placeholder=\"Ej. coca, sabritas, proveedor o codigo\"\u003e\u003c/label\u003e\n            \u003clabel\u003eDepartamento\u003cselect id=\"posAdvancedDepartmentFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eProveedor\u003cselect id=\"posAdvancedSupplierFilter\"\u003e\u003c/select\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"pos-product-grid\" id=\"posAdvancedProductGrid\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-search-dialog\" id=\"inventoryAdjustmentLookupDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eBuscar producto para ajuste\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closeInventoryAdjustmentLookup\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eDescripcion, nombre o SKU\u003cinput id=\"inventoryAdjustmentLookupInput\" type=\"search\" placeholder=\"Ej. coca, sabritas, descripcion o codigo\"\u003e\u003c/label\u003e\n            \u003clabel\u003eDepartamento\u003cselect id=\"inventoryAdjustmentLookupCategory\"\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eProveedor\u003cselect id=\"inventoryAdjustmentLookupSupplier\"\u003e\u003c/select\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"adjustment-search-results\" id=\"inventoryAdjustmentLookupResults\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-search-dialog\" id=\"purchaseProductLookupDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eBuscar producto para nota\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closePurchaseProductLookup\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eNombre o SKU\u003cinput id=\"purchaseProductLookupInput\" type=\"search\" placeholder=\"Ej. coca, leche o codigo\"\u003e\u003c/label\u003e\n            \u003clabel\u003eDepartamento\u003cselect id=\"purchaseProductLookupCategory\"\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eProveedor\u003cselect id=\"purchaseProductLookupSupplier\"\u003e\u003c/select\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"adjustment-search-results\" id=\"purchaseProductLookupResults\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-search-dialog\" id=\"purchaseExchangeDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2 id=\"purchaseExchangeDialogTitle\"\u003eCambio fisico\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closePurchaseExchangeDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"admin-summary\" id=\"purchaseExchangeDialogHelp\"\u003eAgrega los productos que el proveedor dejo como cambio.\u003c/div\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eSKU\u003cinput id=\"purchaseExchangeSkuInput\" type=\"search\" placeholder=\"Escanea SKU y Enter\"\u003e\u003c/label\u003e\n            \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"purchaseExchangeAddButton\"\u003eAgregar\u003c/button\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"purchase-exchange-list\" id=\"purchaseExchangeList\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"clearPurchaseExchangeButton\"\u003eVaciar lista\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"donePurchaseExchangeButton\"\u003eListo\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-search-dialog\" id=\"posCustomerDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eCliente para venta\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closePosCustomerDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eNombre o telefono\u003cinput id=\"posCustomerSearchInput\" type=\"search\" placeholder=\"Buscar cliente o capturar celular\"\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"adjustment-search-results\" id=\"posCustomerSearchResults\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"admin-summary\" id=\"posSelectedCustomerSummary\"\u003eSin cliente seleccionado. Puedes capturar celular solo para puntos.\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posClearCustomerButton\"\u003eSin cliente\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posUsePhoneForPointsButton\"\u003eUsar celular para puntos\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-payment-dialog\" id=\"loyaltyPromptDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003ePrograma de puntos\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closeLoyaltyPromptDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"loyalty-prompt-card\"\u003e\n            \u003cdiv class=\"loyalty-prompt-hero\"\u003e\n                \u003cstrong id=\"loyaltyPromptTitle\"\u003eDesea agregar celular para puntos?\u003c/strong\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"loyalty-prompt-options\" id=\"loyaltyPromptOptions\"\u003e\n                \u003cbutton class=\"inventory-primary selected\" type=\"button\" data-loyalty-prompt-action=\"customer\"\u003eAgregar cliente o celular\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" data-loyalty-prompt-action=\"skip\"\u003eContinuar sin puntos\u003c/button\u003e\n                \u003cbutton class=\"inventory-secondary\" type=\"button\" data-loyalty-prompt-action=\"cancel\"\u003eCancelar cobro\u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-payment-dialog\" id=\"customerPaymentDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2 id=\"customerPaymentTitle\"\u003eAbono de cliente\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"closeCustomerPaymentDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"admin-summary\" id=\"customerPaymentSummary\"\u003e\u003c/div\u003e\n        \u003cdiv class=\"pos-payment-grid\"\u003e\n            \u003clabel\u003eEfectivo MXN\u003cinput id=\"customerPayCash\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\"\u003e\u003c/label\u003e\n            \u003clabel\u003eTarjeta\u003cinput id=\"customerPayCard\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\"\u003e\u003c/label\u003e\n            \u003clabel\u003eTransferencia\u003cinput id=\"customerPayTransfer\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\"\u003e\u003c/label\u003e\n            \u003clabel\u003eFolio / nota\u003cinput id=\"customerPayReference\" placeholder=\"Opcional\"\u003e\u003c/label\u003e\n        \u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"cancelCustomerPaymentButton\"\u003eCancelar\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"saveCustomerPaymentButton\"\u003eRegistrar abono\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-cash-dialog\" id=\"posCashMovementDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2 id=\"posCashMovementDialogTitle\"\u003eMovimiento de caja\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCloseCashMovementDialog\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-payment-modal-body\"\u003e\n        \u003cdiv class=\"pos-cash-form\"\u003e\n            \u003clabel\u003eTipo\u003cselect id=\"posCashMovementType\"\u003e\u003coption value=\"income\"\u003eEntrada de efectivo\u003c/option\u003e\u003coption value=\"payment\"\u003eGasto / proveedor\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eMonto\u003cinput id=\"posCashMovementAmount\" min=\"0\" step=\"0.01\" type=\"number\" value=\"0\" inputmode=\"decimal\"\u003e\u003c/label\u003e\n            \u003clabel\u003eMedio\u003cselect id=\"posCashMovementMethod\"\u003e\u003coption\u003eEfectivo\u003c/option\u003e\u003coption\u003eTarjeta\u003c/option\u003e\u003coption\u003eTransferencia\u003c/option\u003e\u003coption\u003eDolares\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003cinput id=\"posCashMovementReference\" type=\"hidden\" value=\"\"\u003e\n            \u003clabel class=\"full\"\u003eConcepto\u003cinput id=\"posCashMovementConcept\" placeholder=\"Ej. cambio inicial, pago proveedor, abono\"\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003csection class=\"pos-cash-history\"\u003e\n            \u003cdiv class=\"pos-cash-head\"\u003e\n                \u003ch3\u003eHistorial de movimientos\u003c/h3\u003e\n                \u003cstrong id=\"posCashMovementBalance\"\u003e$0\u003c/strong\u003e\n            \u003c/div\u003e\n            \u003cdiv class=\"pos-cash-list\" id=\"posCashMovementList\"\u003e\u003c/div\u003e\n        \u003c/section\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"inventory-dialog-actions\"\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCashMovementClear\"\u003eLimpiar\u003c/button\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCancelCashMovement\"\u003eCancelar\u003c/button\u003e\n        \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posCashMovementSave\" title=\"Ctrl + Enter\"\u003eRegistrar movimiento\u003c/button\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-history-dialog\" id=\"posSalesHistoryDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eHistorial de ventas y cancelaciones\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCloseSalesHistory\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-history-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eBuscar venta\u003cinput id=\"posHistorySearch\" type=\"search\" placeholder=\"Folio, producto, cajero o forma de pago\"\u003e\u003c/label\u003e\n            \u003clabel\u003eEstado\u003cselect id=\"posHistoryStatusFilter\"\u003e\u003coption value=\"all\"\u003eTodos\u003c/option\u003e\u003coption value=\"Completada\"\u003eCompletadas\u003c/option\u003e\u003coption value=\"Cancelada\"\u003eCanceladas\u003c/option\u003e\u003coption value=\"Devuelta\"\u003eDevueltas\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eDesde\u003cinput id=\"posHistoryDateFrom\" type=\"date\"\u003e\u003c/label\u003e\n            \u003clabel\u003eHasta\u003cinput id=\"posHistoryDateTo\" type=\"date\"\u003e\u003c/label\u003e\n            \u003cbutton class=\"inventory-primary\" type=\"button\" id=\"posOpenDeliveryList\"\u003eLista de envios\u003c/button\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"pos-history-list\" id=\"posSalesHistoryList\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e\n\n\u003cdialog class=\"inventory-manage-dialog pos-history-dialog\" id=\"posDeliveryListDialog\"\u003e\n    \u003cdiv class=\"inventory-dialog-head\"\u003e\n        \u003ch2\u003eLista de envios\u003c/h2\u003e\n        \u003cbutton class=\"inventory-secondary\" type=\"button\" id=\"posCloseDeliveryList\"\u003eCerrar\u003c/button\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"pos-history-modal-body\"\u003e\n        \u003cdiv class=\"pos-history-filters\"\u003e\n            \u003clabel\u003eEstatus\u003cselect id=\"posDeliveryStatusFilter\"\u003e\u003coption value=\"all\"\u003eTodos\u003c/option\u003e\u003coption\u003ePendiente\u003c/option\u003e\u003coption\u003eEn ruta\u003c/option\u003e\u003coption\u003eEntregado\u003c/option\u003e\u003coption\u003eCancelado\u003c/option\u003e\u003c/select\u003e\u003c/label\u003e\n            \u003clabel\u003eBuscar\u003cinput id=\"posDeliveryListSearch\" type=\"search\" placeholder=\"Folio, cliente, direccion o telefono\"\u003e\u003c/label\u003e\n        \u003c/div\u003e\n        \u003cdiv class=\"pos-history-list\" id=\"posDeliveryList\"\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/dialog\u003e"
  });

  function write(name) {
    if(!templates[name]) throw new Error("[TMarketSections] Plantilla no encontrada: " + name);
    document.write(templates[name]);
  }

  window.TMarketSectionTemplates = templates;
  window.writeTMarketSection = write;
})(window);

