/*
EMERALD QUICK SHIP - CONFERENCE & TRAINING TABLES CARDS V1
November 18, 2026
One self-contained script for the Conference & Training Tables
category (EvoX category 1366568). Same card design as Desks and
Seating: two-line titles that name the finish or material, three
one-line benefit bullets, Category / Collection / Item Code, list
price with Emerald Savings when the item is sold each and the native
price is at least 36% below verified list, 140px image area.
Runs at both addresses of the category (/category/1366568-... and
/conference-and-training-tables) by checking the page's category id.
Native prices, quantity box and Add to Cart are never changed.
Cards without a price or Add to Cart button (signed-out visitors)
stay native.
*/
(() => {
'use strict';
if (!document.body || !document.body.classList.contains('ex-categoryid-1366568')) return;
if (window.EQS_TABLES?.active) return;
const VERSION = 'EQS_TABLES_V1D_2026_11_18';
// ---- Items removed from the Tables page, plus the empty EvoX placeholder tile (hidden for every visitor) ----
const HIDE_SKUS = [];
if (!document.getElementById('eqs-tables-hide')) {
const hs = document.createElement('style');
hs.id = 'eqs-tables-hide';
hs.textContent = HIDE_SKUS.map(k => `.griditems .tileparent.product[data-sku="${k}" i]`).concat('.griditems .tileparent.tileparent_placeholder').join(',') + '{display:none!important}';
(document.head || document.documentElement).appendChild(hs);
}
const CARD = '.tileparent.product';
const MIN_DISCOUNT = 36;
// Items sold as a set or carton: the native price covers this many chairs.
const PER_SET = {"FLARB18601GGJ":"set"};
// sku: [title, bullet1, bullet2, bullet3, collection, listPrice, imgScale, imgX, imgY]
const DATA = {
"COECM2048MH":["48\" Square Conference Table, Mahogany Laminate", "Seats 6 to 8 comfortably", "Rich traditional mahogany look", "Brass pulls add classic style", "Rowland", 3344, 1.17, 0.6, -19.9],
"COECM2096MH":["96\" Conference Table, Mahogany Laminate Finish", "Room for big team meetings", "Rich traditional mahogany look", "Brass pulls add classic style", "Rowland", 6688, 1.073, 0.5, -0.5],
"COEEV42RGG":["42\" Round Conference Table, Gauntlet Gray Laminate", "Round top for open discussion", "Thick laminate resists wear", "Steel base stays steady", "Palisades", 1322, 1.091, 1.1, -14.2],
"COEEVST8GG":["96\" Standing Conference Table, Gray Laminate", "Standing height keeps it lively", "Six power module cutouts", "Two-tier top hides storage", "Palisades", 5814, 1.138, -0.0, -18.2],
"COEEVT6GG":["72\" Conference Table, Gauntlet Gray Laminate", "Power-ready center cutout", "Industrial look, office tough", "Laminate resists daily wear", "Palisades", 3060, 1.144, 0.6, -23.5],
"COEEVT8GG":["96\" Conference Table, Gauntlet Gray Laminate", "Power-ready, with grommets", "Industrial look, office tough", "Laminate resists daily wear", "Palisades", 3200, 1.09, 1.1, -17.4],
"COEIDC9648DB":["8' Conference Table, Rustic Distressed Brown Finish", "Room for big team meetings", "Metal frame built to last", "Pairs with matching bench", "Epitome", 3835, 1.035, 1.0, 0.5],
"COEOBSF72BKAETOP":["72\" Flip-Top Table, American Elm Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.056, -1.1, -8.5],
"COEOBSF72BKCGTOP":["72\" Flip-Top Table, Coastal Gray Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.03, 0.5, -8.2],
"COEOBSF72BKCHTOP":["72\" Flip-Top Table, Cherry Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.046, -0.0, -7.8],
"COEOBSF72BKJVTOP":["72\" Flip-Top Table, Java Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, -0.5, -8.0],
"COEOBSF72BKMATOP":["72\" Flip-Top Table, Maple Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, 0.5, -8.5],
"COEOBSF72BKMHTOP":["72\" Flip-Top Table, Mahogany Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, -0.5, -8.0],
"COEOBSF72BKMWTOP":["72\" Flip-Top Table, Modern Walnut Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.056, -0.0, -8.5],
"COEOBSF72BKWHTOP":["72\" Flip-Top Table, White Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.084, 0.5, -12.5],
"COEOS235AE":["6' Boat Conference Table, American Elm Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.09, 2.2, -0.0],
"COEOS235AR":["6' Boat Conference Table, Arcadia White Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.09, -0.0, -0.5],
"COEOS235CG":["6' Boat Conference Table, Coastal Gray Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.046, -0.0, -2.1],
"COEOS235CH":["6' Boat Conference Table, Cherry Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.035, 1.0, -2.1],
"COEOS235ES":["6' Boat Conference Table, Espresso Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.046, -0.0, 2.6],
"COEOS235JV":["6' Boat Conference Table, Java Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.067, 2.1, 3.2],
"COEOS235MA":["6' Boat Conference Table, Maple Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.046, 1.0, 3.7],
"COEOS235MH":["6' Boat Conference Table, Mahogany Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.073, 4.8, -2.7],
"COEOS235MW":["6' Boat Conference Table, Modern Walnut Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.04, 1.6, 1.0],
"COEOS235WH":["6' Boat Conference Table, White Laminate", "Seats 6 to 8 for team meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 894, 1.264, 17.7, -7.0],
"COEOS236AE":["8' Boat Conference Table, American Elm Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.056, -0.0, -1.6],
"COEOS236AR":["8' Boat Conference Table, Arcadia White Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.051, -0.5, -0.5],
"COEOS236CG":["8' Boat Conference Table, Coastal Gray Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.046, -0.0, -2.1],
"COEOS236CH":["8' Boat Conference Table, Cherry Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.035, 1.0, -2.1],
"COEOS236ES":["8' Boat Conference Table, Espresso Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.046, -0.0, 2.6],
"COEOS236JV":["8' Boat Conference Table, Java Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.046, 1.0, -0.5],
"COEOS236MA":["8' Boat Conference Table, Maple Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.046, 1.0, 3.7],
"COEOS236MH":["8' Boat Conference Table, Mahogany Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.056, 1.1, 2.6],
"COEOS236MW":["8' Boat Conference Table, Modern Walnut Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.04, 1.6, 1.0],
"COEOS236WH":["8' Boat Conference Table, White Laminate", "Seats 8 to 10 for big meetings", "Grommet keeps cords tidy", "Tough edge resists bumps", "OS Conference", 1583, 1.264, 17.7, -7.0],
"COEOS2460TTAEBK":["60\" Flip-Top Table, American Elm Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.079, 1.1, -8.1],
"COEOS2460TTAESI":["60\" Flip-Top Table, American Elm Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.126, -2.3, -9.6],
"COEOS2460TTARBK":["60\" Flip-Top Table, Arcadia White Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.151, -1.2, -19.0],
"COEOS2460TTARSI":["60\" Flip-Top Table, Arcadia White Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.051, -0.5, -9.5],
"COEOS2460TTCGBK":["60\" Flip-Top Table, Coastal Gray Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.079, -0.0, -12.9],
"COEOS2460TTCGSI":["60\" Flip-Top Table, Coastal Gray Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.067, -1.1, -9.1],
"COEOS2460TTCHBK":["60\" Flip-Top Table, Cherry Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.073, -1.6, -13.4],
"COEOS2460TTCHSI":["60\" Flip-Top Table, Cherry Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.234, -1.2, -14.8],
"COEOS2460TTESBK":["60\" Flip-Top Table, Espresso Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.067, 1.1, -9.1],
"COEOS2460TTESSI":["60\" Flip-Top Table, Espresso Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.144, -4.0, -9.2],
"COEOS2460TTJVBK":["60\" Flip-Top Table, Java Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.04, 0.5, -10.9],
"COEOS2460TTJVSI":["60\" Flip-Top Table, Java Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.084, -1.6, -10.3],
"COEOS2460TTMABK":["60\" Flip-Top Table, Maple Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.226, 3.1, -8.6],
"COEOS2460TTMASI":["60\" Flip-Top Table, Maple Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.056, -1.1, -9.0],
"COEOS2460TTMHBK":["60\" Flip-Top Table, Mahogany Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.046, -0.0, -11.5],
"COEOS2460TTMHSI":["60\" Flip-Top Table, Mahogany Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.079, -0.0, -13.5],
"COEOS2460TTMWBK":["60\" Flip-Top Table, Modern Walnut Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.051, -0.5, -14.7],
"COEOS2460TTMWSI":["60\" Flip-Top Table, Modern Walnut Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.079, -0.0, -12.4],
"COEOS2460TTWHBK":["60\" Flip-Top Table, White Laminate, Black Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.046, 1.0, -16.7],
"COEOS2460TTWHSI":["60\" Flip-Top Table, White Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1495, 1.067, -1.1, -16.5],
"COEOSBF72SIAETOP":["72\" Flip-Top Table, American Elm Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, 0.5, -12.7],
"COEOSBF72SICGTOP":["72\" Flip-Top Table, Coastal Gray Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, -1.6, -12.2],
"COEOSBF72SICHTOP":["72\" Flip-Top Table, Cherry Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, -1.6, -12.2],
"COEOSBF72SIJVTOP":["72\" Flip-Top Table, Java Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.046, -1.0, -12.0],
"COEOSBF72SIMATOP":["72\" Flip-Top Table, Maple Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.046, -1.0, -11.0],
"COEOSBF72SIMHTOP":["72\" Flip-Top Table, Mahogany Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.062, 0.5, -12.7],
"COEOSBF72SIMWTOP":["72\" Flip-Top Table, Modern Walnut Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.056, -0.0, -12.1],
"COEOSBF72SIWHTOP":["72\" Flip-Top Table, White Laminate, Silver Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Modesty panel adds privacy", "Nesting Training", 1202, 1.073, 2.7, -16.1],
"COEOSFBM3060GR":["60\" x 30\" Blow-Molded Folding Table, Gray Plastic", "Holds up to 600 lb.", "Folds flat for fast storage", "Wipes clean after events", "OS Folding Tables", 341, 1.056, 1.1, -1.1],
"COEOSFBM3072GR":["72\" x 30\" Blow-Molded Folding Table, Gray Plastic", "Holds up to 700 lb.", "Folds flat for fast storage", "Wipes clean after events", "OS Folding Tables", 394, 1.073, 0.5, -0.0],
"COEOSFBM3096GR":["96\" x 30\" Blow-Molded Folding Table, Gray Plastic", "Holds up to 1,000 lb.", "Folds flat for fast storage", "Wipes clean after events", "OS Folding Tables", 575, 1.067, 1.1, 0.5],
"COEOSFBM60RGR":["60\" Round Blow-Molded Folding Table, Gray Plastic", "Holds up to 900 lb.", "Folds flat for fast storage", "Wipes clean after events", "OS Folding Tables", 662, 0.943, -0.9, 0.5],
"COEOSFBM71RGR":["72\" Round Blow-Molded Folding Table, Gray Plastic", "Holds up to 1,200 lb.", "Folds flat for fast storage", "Wipes clean after events", "OS Folding Tables", 985, 0.943, -0.9, 0.5],
"COEOSTFLIPTOPTBL":["72\" Flip-Top Table, White Laminate, White Base", "Flips and nests to clear rooms", "Locking casters roll and hold", "Bright white finish looks clean", "Nesting Training", 1427, 1.164, 1.2, -19.2],
"COEOSTXBM33BKAE48R":["48\" Round Table, American Elm Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.852, -3.0, -0.9],
"COEOSTXBM33BKAR48R":["48\" Round Table, Arcadia White Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.868, -2.2, 2.2],
"COEOSTXBM33BKCG48R":["48\" Round Table, Coastal Gray Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.964, -0.5, -0.0],
"COEOSTXBM33BKCH48R":["48\" Round Table, Cherry Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.943, -0.9, 0.5],
"COEOSTXBM33BKES48R":["48\" Round Table, Espresso Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.88, -1.3, 4.0],
"COEOSTXBM33BKJV48R":["48\" Round Table, Java Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.852, -2.1, 0.9],
"COEOSTXBM33BKMA48R":["48\" Round Table, Maple Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.892, -0.0, -0.4],
"COEOSTXBM33BKMH48R":["48\" Round Table, Mahogany Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.863, -0.9, 2.6],
"COEOSTXBM33BKMW48R":["48\" Round Table, Modern Walnut Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 0.874, -0.4, -0.0],
"COEOSTXBM33BKWH48R":["48\" Round Table, White Laminate, Black Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.179, 15.9, -18.3],
"COEOSTXBM33SIAE48R":["48\" Round Table, American Elm Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.109, 0.6, -14.4],
"COEOSTXBM33SIAR48R":["48\" Round Table, Arcadia White Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 2.6, -5.8],
"COEOSTXBM33SICG48R":["48\" Round Table, Coastal Gray Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 1.6, -13.1],
"COEOSTXBM33SICH48R":["48\" Round Table, Cherry Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 2.1, -13.1],
"COEOSTXBM33SIES48R":["48\" Round Table, Espresso Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 1.6, -13.1],
"COEOSTXBM33SIJV48R":["48\" Round Table, Java Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.015, 0.5, -9.6],
"COEOSTXBM33SIMA48R":["48\" Round Table, Maple Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 1.6, -13.1],
"COEOSTXBM33SIMH48R":["48\" Round Table, Mahogany Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 2.1, -13.1],
"COEOSTXBM33SIMW48R":["48\" Round Table, Modern Walnut Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.048, 2.1, -13.1],
"COEOSTXBM33SIWH48R":["48\" Round Table, White Laminate, Silver Base", "Seats 4 to 6 around one table", "Cross base stays steady", "Matches OS laminate pieces", "OS Round Tables", 870, 1.234, 2.5, -27.1],
"COEOSWXB3642AE42R":["42\" Round X-Base Table, American Elm Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 0.846, -1.7, -0.4],
"COEOSWXB3642AR42R":["42\" Round X-Base Table, Arcadia White Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 0.91, 0.5, -2.7],
"COEOSWXB3642CG42R":["42\" Round X-Base Table, Coastal Gray Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 0.874, -1.3, -0.9],
"COEOSWXB3642CH42R":["42\" Round X-Base Table, Cherry Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 1.015, 1.0, 2.5],
"COEOSWXB3642ES42R":["42\" Round X-Base Table, Espresso Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 0.874, -1.3, -0.9],
"COEOSWXB3642JV42R":["42\" Round X-Base Table, Java Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 0.863, 0.9, -1.7],
"COEOSWXB3642MH42R":["42\" Round X-Base Table, Mahogany Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 1.031, 2.1, 2.6],
"COEOSWXB3642MW42R":["42\" Round X-Base Table, Modern Walnut Laminate", "Seats 4 for quick huddles", "X-base stays steady", "Matches OS laminate pieces", "OS Round Tables", 702, 1.056, 2.1, 2.1],
"FLARB18601GGJ":["Folding Training Table Set with 2 Gray Metal Chairs", "Table and 2 chairs, ready to use", "Top resists water and stains", "Folds and stacks for storage", "Flash Training Tables", 650, 0.923, 1.4, -6.5],
"FLAYT1860MELJ":["18\" x 60\" Folding Training Table, Mahogany Melamine", "Seats 2 side by side", "Melamine top resists scratches", "Folds flat for fast storage", "Flash Training Tables", 350, 0.964, 0.5, -1.9],
"FLAYT2448MELJ":["24\" x 48\" Folding Training Table, Mahogany Melamine", "Ready to use, no assembly", "Melamine top resists scratches", "Folds flat for fast storage", "Flash Training Tables", 350, 0.874, 0.4, -2.6],
"FLAYTWHRFT48J":["48\" Half-Round Folding Banquet Table, Natural Wood", "Holds up to 485 lb.", "Half-round fits walls and ends", "Folds flat for fast storage", "Flash Banquet Tables", 350, 0.742, 0.4, 1.1],
"FLAYTWHRFT60J":["60\" Half-Round Folding Banquet Table, Natural Wood", "Holds up to 551 lb.", "Half-round fits walls and ends", "Folds flat for fast storage", "Flash Banquet Tables", 350, 0.88, -1.3, 2.2],
"NPSBPFT246020B":["60\" Flip-N-Store Training Table, Charcoal Slate Top", "Flips and nests to save space", "Casters roll, two lock", "Cable channels tame cords", "NPS Flip-N-Store", 938, 1.035, -0.0, 1.0],
"NPSBPFT2460B":["60\" Flip-N-Store Training Table, Speckled Gray Top", "Flips and nests to save space", "Casters roll, two lock", "Cable channels tame cords", "NPS Flip-N-Store", 938, 1.035, -0.0, 1.0],
"NPSBPFT247220B":["72\" Flip-N-Store Training Table, Charcoal Slate Top", "Flips and nests to save space", "Casters roll, two lock", "Cable channels tame cords", "NPS Flip-N-Store", 998, 1.09, 1.1, -1.6],
"NPSBPFT2472B":["72\" Flip-N-Store Training Table, Speckled Gray Top", "Flips and nests to save space", "Casters roll, two lock", "Cable channels tame cords", "NPS Flip-N-Store", 998, 1.179, -1.8, -5.3],
"NPSBT3096B":["30\" x 96\" Heavy-Duty Folding Table, Speckled Gray Top", "Holds up to 1,000 lb.", "Heat-resistant top, no warping", "10-year NPS warranty", "NPS Heavy-Duty", 798, 1.102, -0.0, -0.0],
"NPSBTA307204":["30\" x 72\" Adjustable Folding Table, Blue Top", "Holds up to 1,000 lb.", "Height adjusts 22\" to 28.5\"", "10-year NPS warranty", "NPS Heavy-Duty", 778, 1.12, 0.6, -5.0],
"NPSBTA307240B":["30\" x 72\" Adjustable Folding Table, Red Top", "Holds up to 1,000 lb.", "Height adjusts 22\" to 28.5\"", "10-year NPS warranty", "NPS Heavy-Duty", 778, 1.144, -2.9, -8.0],
"NPSPT3020B":["20\" x 30\" Personal Folding Table, Speckled Gray Top", "Six heights for any task", "Holds up to 150 lb.", "Folds light for easy storage", "NPS Personal Tables", 178, 0.663, 0.3, -0.0],
"COEOS216AE":["Mobile Conference Lectern, American Elm Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.786, 0.4, 5.9],
"COEOS216AR":["Mobile Conference Lectern, Arcadia White Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.733, -0.4, 0.4],
"COEOS216CG":["Mobile Conference Lectern, Coastal Gray Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.714, -0.4, -0.7],
"COEOS216ES":["Mobile Conference Lectern, Espresso Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.729, -0.0, -0.7],
"COEOS216JV":["Mobile Conference Lectern, Java Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.733, -0.4, 0.4],
"COEOS216MH":["Mobile Conference Lectern, Mahogany Laminate", "Casters roll room to room", "Top fits laptop or notes", "Adjustable storage shelf", "OS Laminate", 1029, 0.702, -0.4, 0.4]
};
const DELIVERY = [
[/^COE/, '3\u20135 Day Delivery'],
[/^N9N/, '3\u20135 Day Delivery'],
[/^(JMLOTG|OTG)/, '5\u20137 Day Delivery'],
[/^GLBF/, '5\u20137 Day Delivery'],
[/^FLA/, '7\u201310 Days'],
[/^NPS/, '7\u201310 Days']
];
const CATEGORY_LABEL = { 'Executive & Conference Seating': 'Executive & Conference' };
const TRUCK = '';
const CART = '';
// ---- Retire the older P11 adapter if it is still loaded ----
// ---- Styles (scoped to styled Tables cards) ----
const S = 'html body .griditems.gridlist-grid > .tileparent.product.eqs-tbl';
const style = document.createElement('style');
style.id = 'eqs-tables-v1-style';
style.textContent = `
${S}{box-sizing:border-box!important;float:left!important;width:calc(25% - 12px)!important;height:455px!important;min-height:455px!important;margin:0 6px 14px!important;padding:0 6px!important;background:#fff!important;border:.667px solid rgb(203,216,212)!important;border-radius:14px!important;box-shadow:none!important;overflow:hidden!important}
@media (max-width:1199px){${S}{width:calc(33.333% - 12px)!important}}
@media (max-width:991px){${S}{width:calc(50% - 12px)!important}}
@media (max-width:767px){${S}{width:calc(100% - 12px)!important}}
${S} > .tile{display:flex!important;flex-direction:column!important;height:454px!important;min-height:0!important;padding:0 14px 8px!important;margin:0!important;border:0!important;background:transparent!important}
${S} .badges-wrapper,${S} .product-list-actions,${S} .addtoquicklist-wrapper,${S} .product-compare-action,${S} .emerald-closeout-deal-badge,${S} .live-inventory-v2-shipping,${S} .live-inventory-v2-wrapper,${S} .product-name,${S} .product-sku,${S} .product-category,${S} .indicators-grid,${S} .product-points,${S} .multiple-uom-label,${S} .eqs-p542-description,${S} .eqs-p3-collection,${S} .product-short-description,${S} .short-description{display:none!important}
${S} .footer-wrapper-price{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;margin:0!important;padding:0!important}
${S} .product-tile-image{position:relative!important;display:flex!important;justify-content:center!important;align-items:center!important;height:140px!important;min-height:140px!important;max-height:140px!important;overflow:hidden!important;margin:0!important;padding:0!important;flex:0 0 140px!important}
${S} .product-tile-image .text-center,${S} .product-tile-image .imgthumbnail{position:static!important;display:flex!important;justify-content:center!important;align-items:center!important;height:140px!important;width:100%!important;margin:0!important;padding:0!important;overflow:visible!important}
${S} .product-tile-image .thumb-align{display:none!important}
${S} .product-tile-image img{width:200px!important;height:200px!important;min-height:200px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform-origin:center center!important;flex:0 0 200px!important;position:absolute!important;top:50%!important;left:50%!important;margin:-100px 0 0 -100px!important}
${S} .ebi-textile-badge{display:none!important}
${S} .footer{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
${S} .footer-wrapper{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;position:relative!important}
${S} .footer-wrapper-description{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
${S} .eqs-tbl-brandrow{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:7px!important;height:37px!important;min-height:37px!important;margin:12px 0 1px!important;padding:0!important}
${S} .eqs-tbl-brandrow .brand-label{display:flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important;max-width:96px!important;margin:0!important;padding:0!important}
${S} .eqs-tbl-brandrow .brand-label a{display:flex!important;align-items:center!important;line-height:0!important;min-width:0!important;max-width:100%!important}
${S} .eqs-tbl-brandrow .brand-label img{width:auto!important;height:auto!important;max-width:100%!important;max-height:20px!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
${S} .eqs-tbl-delivery{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important;flex:0 0 auto!important;white-space:nowrap!important;color:rgb(0,132,61)!important;font:700 11px/14px Arial,sans-serif!important}
${S} .eqs-tbl-delivery svg{width:32px!important;height:22px!important;flex:0 0 32px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
${S} .eqs-tbl-title{display:block!important;height:38px!important;min-height:38px!important;max-height:38px!important;overflow:hidden!important;margin:0 0 4px!important;padding:0!important;color:rgb(2,2,2)!important;font:700 14px/19px Arial,sans-serif!important;text-decoration:none!important}
${S} .eqs-tbl-title:hover{text-decoration:underline!important}
${S} .eqs-tbl-features{display:flex!important;flex-direction:column!important;height:48px!important;min-height:48px!important;margin:0 0 4px!important;padding:0!important}
${S} .eqs-tbl-feature{display:flex!important;align-items:flex-start!important;gap:5px!important;height:16px!important;overflow:hidden!important;white-space:nowrap!important;color:rgb(17,17,17)!important;font:12px/16px Arial,sans-serif!important}
${S} .eqs-tbl-dot{flex:0 0 10px!important;width:10px!important;color:rgb(67,131,70)!important}
${S} .eqs-tbl-meta{display:flex!important;flex-direction:column!important;height:51px!important;min-height:51px!important;margin:0 0 2px!important;padding:0!important;color:rgb(100,116,139)!important;font:11px/17px Arial,sans-serif!important}
${S} .eqs-tbl-meta > div{height:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
${S} .eqs-tbl-meta b{font-weight:600!important;color:rgb(71,85,105)!important}
${S} .eqs-tbl-meta .eqs-tbl-cat{font-weight:500!important;color:rgb(67,138,98)!important}
${S} .eqs-tbl-meta .eqs-tbl-code{letter-spacing:-.2px!important}
${S} .eqs-tbl-pricebar{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:5px!important;height:55px!important;min-height:55px!important;margin:0 0 10px!important;padding:0!important;box-sizing:border-box!important}
${S} .eqs-tbl-list{height:14px!important;margin:0 0 1px!important;color:rgb(71,84,103)!important;font:11px/14px Arial,sans-serif!important;white-space:nowrap!important}
${S} .eqs-tbl-list s{color:rgb(102,112,133)!important}
${S} .eqs-tbl-price{display:flex!important;align-items:flex-start!important;height:31px!important;color:rgb(67,133,74)!important;font:800 26px/31px Arial,sans-serif!important;letter-spacing:-.5px!important;white-space:nowrap!important}
${S} .eqs-tbl-cents{display:block!important;margin:1px 0 0 1px!important;font:800 12px/12px Arial,sans-serif!important;letter-spacing:0!important}
${S} .eqs-tbl-savings{margin:0 0 2px!important;text-align:right!important;color:rgb(100,116,139)!important;white-space:nowrap!important}
${S} .eqs-tbl-savings-label{font:600 9px/12px Arial,sans-serif!important}
${S} .eqs-tbl-savings-pct{font:500 13px/17px Arial,sans-serif!important}
${S} .buttons.group{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:7px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;text-align:left!important}
${S} .inputquantity{width:50px!important;min-width:50px!important;flex:0 0 50px!important;height:44px!important;padding:5px!important;border:.667px solid rgb(216,222,230)!important;border-radius:5px!important;background:#fff!important;text-align:center!important;font:16px Arial,sans-serif!important;margin:0!important}
${S} .live-inventory-v2-add-to-cart-wrapper{display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;height:44px!important;margin:0!important}
${S} .btn-add-to-cart{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 6px!important;background:rgb(0,128,0)!important;color:#fff!important;border:0!important;border-radius:5px!important;font:700 14px Arial,sans-serif!important;white-space:nowrap!important}
${S} .eqs-tbl-carticon{display:inline-flex!important;width:20px!important;height:20px!important;flex:0 0 20px!important}
${S} .eqs-tbl-carticon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important}
${S} .eqs-tbl-per{align-self:flex-end!important;margin:0 0 4px 7px!important;color:rgb(71,84,103)!important;font:600 12px/14px Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important}
${S} .eqs-tbl-brandrow .brand-label:has(img[alt*="National Public" i]){max-width:112px!important;flex:0 0 112px!important}
${S} .eqs-tbl-brandrow .brand-label:has(img[alt*="National Public" i]) a{width:100%!important}
${S} .eqs-tbl-brandrow .brand-label img[alt*="National Public" i]{width:112px!important;height:auto!important;max-height:none!important;max-width:none!important}
${S} .eqs-tbl-brandrow .brand-label:has(img[alt*="Global" i]),${S} .eqs-tbl-brandrow .brand-label:has(img[src*="Global" i]){max-width:none!important;flex:0 0 auto!important;overflow:visible!important}
${S} .eqs-tbl-brandrow .brand-label:has(img[alt*="Global" i]) a,${S} .eqs-tbl-brandrow .brand-label:has(img[src*="Global" i]) a{overflow:visible!important}
${S} .eqs-tbl-brandrow .brand-label img[alt*="Global" i],${S} .eqs-tbl-brandrow .brand-label img[src*="Global" i]{max-height:46px!important;height:46px!important;width:auto!important;max-width:none!important;margin:-8px 0 -1px -8px!important;position:relative!important;z-index:1!important}
`;
document.head.append(style);
// ---- Helpers ----
const money = n => '$' + Number(n).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
const el = (tag, cls, text) => { const e = document.createElement(tag); if (cls) e.className = cls; if (text != null) e.textContent = text; return e; };
const skuOf = card => (card.dataset.sku || '').trim().toUpperCase();
const deliveryFor = sku => (DELIVERY.find(([re]) => re.test(sku)) || [null, ''])[1];
function nativePrice(card) {
const label = card.querySelector('.footer-wrapper-price .price-label');
if (!label) return NaN;
const raw = label.getAttribute('data-value');
let v = raw != null && raw.trim() !== '' ? Number(raw) : NaN;
if (!Number.isFinite(v)) {
const m = (label.textContent || '').replace(/,/g, '').match(/\$\s*(\d+(?:\.\d{1,2})?)/);
v = m ? Number(m[1]) : NaN;
}
return v;
}
const state = { runs: 0, errors: [], unknown: new Set(), skipped: new Set() };
function build(card, sku, d) {
const q = s => card.querySelector(s);
const desc = q('.footer-wrapper-description');
const fw = q('.footer-wrapper');
const nativeP = q('.footer-wrapper-price');
const button = q('.btn-add-to-cart');
const img = q('.product-tile-image img');
if (!desc || !fw || !nativeP || !button) return false;
// Clean up P11 leftovers
card.classList.remove('eqs-p11');
card.querySelectorAll('.eqs-p542-description,.eqs-p3-collection').forEach(n => n.remove());
// Brand row
let row = q('.eqs-tbl-brandrow') || q('.eqs-p542-brandrow');
if (!row) row = el('div');
row.className = 'eqs-tbl-brandrow';
row.querySelector('.eqs-p542-delivery')?.remove();
const logo = q('.brand-label');
if (logo && logo.parentElement !== row) row.prepend(logo);
let del = row.querySelector('.eqs-tbl-delivery');
if (!del) { del = el('div', 'eqs-tbl-delivery'); del.innerHTML = TRUCK + ''; row.append(del); }
del.querySelector('span').textContent = deliveryFor(sku);
if (row.parentElement !== desc || desc.firstChild !== row) desc.prepend(row);
// Title (links to the product page)
const href = q('.product-name a')?.getAttribute('href') || q('.product-tile-image')?.getAttribute('href') || '#';
let title = q('.eqs-tbl-title');
if (!title) { title = el('a', 'eqs-tbl-title'); row.after(title); }
title.setAttribute('href', href);
title.textContent = d[0];
title.title = d[0];
// Bullets
let feats = q('.eqs-tbl-features');
if (!feats) { feats = el('div', 'eqs-tbl-features'); title.after(feats); }
feats.replaceChildren(...[d[1], d[2], d[3]].map(t => {
const f = el('div', 'eqs-tbl-feature');
f.append(el('span', 'eqs-tbl-dot', '\u2022'), el('span', 'eqs-tbl-copy', t));
return f;
}));
// Category / Collection / Item Code
const rawCat = (q('.product-category a')?.textContent || '').replace(/\s+/g, ' ').trim();
const cat = CATEGORY_LABEL[rawCat] || rawCat || 'Tables';
let meta = q('.eqs-tbl-meta');
if (!meta) { meta = el('div', 'eqs-tbl-meta'); feats.after(meta); }
const r1 = el('div'); r1.append(el('b', '', 'Category: '), el('span', 'eqs-tbl-cat', cat));
const r2 = el('div'); r2.append(el('b', '', 'Collection: '), el('span', '', d[4]));
const r3 = el('div'); r3.append(el('b', '', 'Item Code: '), el('span', 'eqs-tbl-code', sku));
meta.replaceChildren(r1, r2, r3);
// Price bar
let bar = q('.eqs-tbl-pricebar');
if (!bar) {
bar = el('div', 'eqs-tbl-pricebar');
const left = el('div', 'eqs-tbl-left');
left.append(el('div', 'eqs-tbl-list'), el('div', 'eqs-tbl-price'));
const sav = el('div', 'eqs-tbl-savings');
sav.append(el('div', 'eqs-tbl-savings-label', 'Emerald Savings'), el('div', 'eqs-tbl-savings-pct'));
bar.append(left, sav);
fw.insertBefore(bar, nativeP);
}
// Cart icon
if (!button.querySelector('.eqs-tbl-carticon')) {
button.querySelector('.eqs-p542-carticon')?.remove();
const icon = el('span', 'eqs-tbl-carticon'); icon.innerHTML = CART; button.prepend(icon);
}
// Image sizing
if (img) {
const t = `translate(${d[7]}px,${d[8]}px) scale(${d[6]})`;
if (img.style.getPropertyValue('transform') !== t) img.style.setProperty('transform', t, 'important');
}
card.dataset.eqsSeat = sku;
card.classList.add('eqs-tbl');
return true;
}
function updatePrice(card, sku, d) {
const bar = card.querySelector('.eqs-tbl-pricebar');
if (!bar) return;
const sell = nativePrice(card);
const list = Number(d[5]);
const pack = (card.dataset.packUom || '').trim().toUpperCase();
const uom = (card.querySelector('.footer-wrapper-price .uomvalue')?.textContent || '').replace(/[\s/]/g, '').toUpperCase();
const disc = list > 0 && sell > 0 ? (1 - sell / list) * 100 : NaN;
const ok = Number.isFinite(disc) && disc >= MIN_DISCOUNT && pack === 'EA' && (!uom || uom === 'EA');
const listEl = bar.querySelector('.eqs-tbl-list');
const priceEl = bar.querySelector('.eqs-tbl-price');
const sav = bar.querySelector('.eqs-tbl-savings');
const perSet = PER_SET[sku] || 0;
const key = sell + '|' + (ok ? 1 : 0) + '|' + perSet;
if (bar.dataset.key === key) return;
bar.dataset.key = key;
if (sell > 0) {
const [whole, cents] = money(sell).split('.');
priceEl.replaceChildren(document.createTextNode(whole + '.'), el('span', 'eqs-tbl-cents', cents));
if (perSet) priceEl.append(el('span', 'eqs-tbl-per', perSet === 'set' ? 'per set' : 'per set of ' + perSet));
} else {
priceEl.replaceChildren();
}
if (ok) {
listEl.replaceChildren(document.createTextNode('List Price: '), el('s', '', money(list)));
listEl.style.visibility = '';
sav.querySelector('.eqs-tbl-savings-pct').textContent = Math.round(disc) + '% off list';
sav.style.visibility = '';
} else {
listEl.replaceChildren();
listEl.style.visibility = 'hidden';
sav.style.visibility = 'hidden';
}
sav.style.display = perSet && !ok ? 'none' : '';
}
function run() {
state.runs++;
observer.disconnect();
try {
for (const card of document.querySelectorAll('.griditems ' + CARD)) {
const sku = skuOf(card);
const d = DATA[sku];
if (!d) { state.unknown.add(sku); continue; }
try {
if (card.dataset.eqsSeat !== sku || !card.querySelector('.eqs-tbl-title')) {
if (!build(card, sku, d)) { state.skipped.add(sku); continue; }
} else {
const img = card.querySelector('.product-tile-image img');
const t = `translate(${d[7]}px,${d[8]}px) scale(${d[6]})`;
if (img && img.style.getPropertyValue('transform') !== t) img.style.setProperty('transform', t, 'important');
}
updatePrice(card, sku, d);
} catch (e) {
if (state.errors.length < 20) state.errors.push(sku + ': ' + e.message);
}
}
} finally {
observer.observe(document.body, { childList: true, subtree: true, characterData: true, attributes: true, attributeFilter: ['data-value', 'src'] });
}
}
// Debounced (timer-based, so it also works in background tabs)
let timer = 0, first = 0, burst = [];
function schedule() {
const now = Date.now();
if (!first) first = now;
clearTimeout(timer);
const wait = now - first > 600 ? 0 : 120;
timer = setTimeout(() => {
first = 0;
burst = burst.filter(t => now - t < 10000);
if (burst.length >= 30) return; // safety brake
burst.push(now);
run();
}, wait);
}
const observer = new MutationObserver(muts => {
for (const m of muts) {
const t = m.target.nodeType === 1 ? m.target : m.target.parentElement;
if (!t) continue;
if (t.closest?.('.eqs-tbl-title,.eqs-tbl-features,.eqs-tbl-meta,.eqs-tbl-pricebar,.eqs-tbl-brandrow')) continue;
if (t.closest?.('.griditems') || [...(m.addedNodes || [])].some(n => n.nodeType === 1 && (n.matches?.(CARD) || n.querySelector?.(CARD)))) {
schedule(); return;
}
}
});
run();
const boot = setInterval(() => { if (document.querySelector('.griditems ' + CARD)) run(); }, 400);
setTimeout(() => clearInterval(boot), 8000);
window.EQS_TABLES = {
active: true,
version: VERSION,
rescan: run,
status: () => {
const cards = [...document.querySelectorAll('.griditems ' + CARD)];
return {
version: VERSION,
nativeCards: cards.length,
styledCards: cards.filter(c => c.classList.contains('eqs-tbl')).length,
withSavings: cards.filter(c => c.querySelector('.eqs-tbl-savings') && c.querySelector('.eqs-tbl-savings').style.visibility !== 'hidden').length,
cartButtons: cards.filter(c => c.querySelector('.btn-add-to-cart')).length,
unknownSkus: [...state.unknown],
skipped: [...state.skipped],
errors: state.errors.slice(),
runs: state.runs
};
},
remove: () => {
observer.disconnect(); clearInterval(boot); clearTimeout(timer);
style.remove();
document.querySelectorAll('.eqs-tbl').forEach(c => c.classList.remove('eqs-tbl'));
delete window.EQS_TABLES;
console.info('[EQS SEATING] Removed. Refresh to restore the original cards.');
}
};
console.info('[EQS SEATING]', VERSION, 'installed');
})();