/* MAPS - one HP brand name on the custom Shop pages (11/20/2026). Darrell: use "HP, Inc." everywhere (matches the EvolutionX brand filter after brand 102034 was renamed). The Shop app still groups HP items under its internal key "HP"; this only changes the words shown: brand filter labels, active-filter chips and the brand line on product cards. */ (function () { if (window.__mxHpLabel) return; window.__mxHpLabel = 1; var NEW = 'HP, Inc.'; var RX = /^(hp|hp,?\s*inc\.?|hpi)$/i; function fix(root) { var els = root.querySelectorAll('#mx-shop .mxs-chk span, #mx-shop .mxs-brand'); for (var i = 0; i < els.length; i++) { var t = (els[i].textContent || '').trim(); if (RX.test(t) && t !== NEW) els[i].textContent = NEW; } var ch = root.querySelectorAll('#mx-shop .mxs-chip'); for (var j = 0; j < ch.length; j++) { var n = ch[j].firstChild; if (ch[j].getAttribute('data-x') === 'b:HP' && n && n.nodeType === 3 && /^\s*HP\b(?!,)/.test(n.nodeValue)) n.nodeValue = n.nodeValue.replace(/^(\s*)HP\b/, '$1' + NEW); } } var pend = false; function go() { var shop = document.getElementById('mx-shop'); if (!shop) return; fix(document); new MutationObserver(function () { if (pend) return; pend = true; setTimeout(function () { pend = false; fix(document); }, 50); }).observe(shop, { childList: true, subtree: true }); } if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', go); else go(); })();