PRO Test do Tuci (identyfikacja)
Wysyłka o 12:00 w dni robocze Dyskretne pudełko od „C.S. sp. z o.o.” Kurier i punkty odbioru gratis od 200 zł Dane klientów są usuwane automatycznie Do 100 testów w każdej butelce Ponad 2 lata przydatności do użycia Dowiedz się więcej… Szacowany czas doręczenia: 08-14 Wybierz: Kraj Australia Belgique България Canada Κύπρος Česká republika Danmark Deutschland Eesti España France Ελλάδα Hrvatska Ireland Italia Latvija Lietuva Luxembourg Magyarország Malta Nederland Österreich Polska Portugal România Slovenija Slovensko South Africa Sverige Suomi Україна United Kingdom United States Inny Wysyłka Kurier Poczta Zaktualizuj document.addEventListener('DOMContentLoaded', function () { const trigger = document.getElementById('eta-trigger'); const popup = document.getElementById('eta-popup'); const overlay = document.getElementById('eta-overlay'); const updateButton = document.getElementById('eta-update'); const etaDateElement = document.querySelector('.eta-date'); const countrySelect = document.getElementById('eta-country'); const optionSelect = document.getElementById('eta-option'); const courierDays = { 1: ['PL'], 2: ['DE', 'SK', 'CZ'], 3: ['PT', 'FR', 'RO', 'IT', 'SI', 'NL', 'BE', 'HU', 'AT', 'LT', 'LV', 'LU', 'EE', 'DK', 'SE', 'IE', 'BG', 'FI'], 4: ['ES', 'HR', 'GR'] }; const mailDays = { 5: ['DE'], 10: ['US', 'UK', 'IT'], 14: ['UA', 'ES', 'GR', 'CA'], 21: ['AU', 'ZA', 'OTHER'] }; function getDaysFromGroup(country, group) { for (const [days, countries] of Object.entries(group)) { if (countries.includes(country)) { return parseInt(days); } } return null; } if (trigger && popup && overlay && updateButton && etaDateElement && countrySelect && optionSelect) { trigger.addEventListener('click', function () { popup.style.display = 'block'; overlay.style.display = 'block'; }); overlay.addEventListener('click', function () { popup.style.display = 'none'; overlay.style.display = 'none'; }); countrySelect.addEventListener('change', function () { const country = countrySelect.value; optionSelect.innerHTML = ''; // Clear existing options if (country === 'PL') { const courierOption = document.createElement('option'); courierOption.value = 'courier'; courierOption.textContent = 'Courier'; optionSelect.appendChild(courierOption); } else if (country === 'OTHER') { const mailOption = document.createElement('option'); mailOption.value = 'national-post'; mailOption.textContent = 'National Mail'; optionSelect.appendChild(mailOption); } else if (['US', 'CA', 'AU', 'UA', 'UK', 'ZA'].includes(country)) { const mailOption = document.createElement('option'); mailOption.value = 'national-post'; mailOption.textContent = 'National Mail'; optionSelect.appendChild(mailOption); } else { const mailOption = document.createElement('option'); mailOption.value = 'national-post'; mailOption.textContent = 'National Mail'; optionSelect.appendChild(mailOption); const courierOption = document.createElement('option'); courierOption.value = 'courier'; courierOption.textContent = 'Courier'; optionSelect.appendChild(courierOption); } }); updateButton.addEventListener('click', function () { const country = countrySelect.value; const option = optionSelect.value; console.log('Selected country:', country); console.log('Selected delivery option:', option); let days = 0; if (option === 'courier') { days = getDaysFromGroup(country, courierDays); } else if (option === 'national-post') { days = getDaysFromGroup(country, mailDays); } if (days === null) { days = 10; // Default fallback for mail console.warn('No matching days found for the selected country and option. Using default:', days); } else { console.log('Calculated days for delivery:', days); } const currentDate = new Date(); currentDate.setDate(currentDate.getDate() + days); console.log('Calculated ETA date:', currentDate.toISOString().split('T')[0]); etaDateElement.textContent = currentDate.toISOString().split('T')[0]; popup.style.display = 'none'; overlay.style.display = 'none'; }); } });
How AI sees this product
The more complete this product's details, the more confidently AI assistants can understand and recommend it.