Menú
Compañía
OLENIS LLC
12656 Southern Highlands Pkwy, Unit 1040 Las Vegas, NV 89141
Políticas de la tienda
Contáctanos
¡Suscríbete a nuestra newsletter y encuentra las mejores ofertas para ti!
(top frame only). Word-gated. */ (function () { var PER_PRODUCT = false; // Monday decision toggle — see header. var KEY = 'olenis_ss_optout'; if (PER_PRODUCT) { var m = location.pathname.match(/\/products\/([^\/?#]+)/); KEY += ':' + (m ? m[1] : location.pathname); } function store(op, val) { try { if (op === 'get') return sessionStorage.getItem(KEY); if (op === 'set') sessionStorage.setItem(KEY, val); if (op === 'del') sessionStorage.removeItem(KEY); } catch (e) { return null; } // storage blocked (private mode / cookie block): degrade to default behavior return null; } function widget() { return document.querySelector('div[role="checkbox"].kaching-bundles__bar'); } function isChecked(w) { return w && w.getAttribute('aria-checked') === 'true'; } // Re-apply a remembered opt-out once the widget renders (Kaching renders ~250-300ms after DCL). function reapply(attempts) { if (store('get') !== '1') return; var w = widget(); if (w) { if (isChecked(w)) w.click(); // Kaching's own handler removes the hidden selling_plan input return; } if (attempts > 0) { setTimeout(function () { reapply(attempts - 1); }, 250); } else if (window.console && console.warn) { // Vendor selector is a single point of failure — a Kaching markup change silently // reverts to the defective default; this warn is the only signal. console.warn('olenis_ss_optout: widget selector never matched; opt-out not re-applied'); } } // Record the customer's explicit toggles (capture phase; widget is a div, not an input). document.addEventListener('click', function (e) { var w = e.target && e.target.closest && e.target.closest('div[role="checkbox"].kaching-bundles__bar'); if (!w) return; // State at click time is pre-toggle; Kaching flips it synchronously in its own handler. setTimeout(function () { if (isChecked(w)) store('del'); // customer (re-)opted IN — also fires harmlessly on frequency-select clicks else store('set', '1'); // customer opted OUT }, 0); }, true); if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function () { reapply(40); }); } else { reapply(40); } })();