const CookieManager = { set: function(name, value, days) { const expires = new Date(Date.now() + days * 864e5).toUTCString(); // 864e5 = 1 day in ms document.cookie = `${encodeURIComponent(name)}=${encodeURIComponent(value)}; expires=${expires}; path=/`; }, get: function(name) { const cookies = document.cookie.split('; '); for (let i = 0; i < cookies.length; i++) { const [key, val] = cookies[i].split('='); if (decodeURIComponent(key) === name) { return decodeURIComponent(val); } } return null; }, delete: function(name) { document.cookie = `${encodeURIComponent(name)}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`; } }; (function(sweepstake_id){ window.SweepStake = window.SweepStake || (function(){ const sweepstakeData = {"id":1,"name":"Win een MINI Countryman!","started_at":"2025-10-01 00:00:00","ended_at":"2025-11-30 00:00:00","winners":1,"entry_every_spent":0,"entry_every_value":null,"entry_every_spent_value":null,"entry_per_order":1,"entry_per_value":1,"entry_per_order_value":null,"entry_referral":1,"entry_referral_purchase_only":1,"entry_referral_unique_only":1,"entry_referral_title":"Krijg een extra win kans als een vriend via deze link besteld:","entry_referral_url":"https:\/\/revitaltrax.com\/share\/","entry_referral_value":1,"entry_referral_limit":null,"description":"
Verwijzing: De volledige en gedetailleerde voorwaarden zijn bindend en zijn te raadplegen op<\/p>
[Bekijk de voorwaarden]<\/p>","socials":"Hey! At RevitalTrax, you can now win a MINI Countryman when you shop their luxury skincare or collagen products! \ud83d\ude0d\r\n\r\nI\u2019m already participating, but I immediately thought of you! If you order through my personal link, I get extra chances to win, and if your order is over \u20ac75, you also have a chance to win the MINI!\r\n\r\nHow cool is that?! \ud83d\ude4c You can order via this link: [referral_url]","promotion_url":"https:\/\/nl.revitaltrax.com\/pages\/actievoorwaarden-revitaltrax-mini-cooper-give-away","created_at":"2025-10-16 14:16:26","updated_at":"2025-10-24 11:31:52"}; function update_cart_attributes(attributes) { fetch('/cart/update.js', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ attributes: attributes, }), }) .then(response => { if (response.ok) { console.log('Cart attributes updated successfully:', attributes); } else { console.error('Failed to update cart attributes'); } }) .catch(error => { console.error('Error updating cart attributes:', error); }); } var fss_hash = window.location.hash.replace('#', ''); if (fss_hash.match(new RegExp(sweepstake_id+'_', "g"))) { CookieManager.set('fsrfid', fss_hash, 1); update_cart_attributes({ fsrfid: fss_hash }); } })(); })('9zLA7x23bwjgJNOl');