Newsletter regulations

Regulations NEWSLETTER

valid from 01. 01.2021

  1. Based on Art. 8 sec. 1 of the Act of 18 July 2002 on the provision of electronic services (Journal of Laws 2013 item 1422), the company ' Shift7 - Tomasz Kosmalski ” based in Grodzisk Mazowiecki (05-827), at ul. 3-Maja 1A, operating on the basis of an entry in the Register of Economic Activities, tax identification number: 5291822760, REGON: 381112471, called then Shift Seven defines the rules of using the Newsletter service in these Regulations.

  2. Please read these Terms and Conditions carefully before agreeing to use the Newsletter service, and related documents.

  3. Shift Seven company, w framework free of charge Newslet services ter, will ship >> 0; // 3. If IsCallable(predicate) is false, throw a TypeError exception. if (typeof predicate !== 'function') { throw TypeError('predicate must be a function'); } // 4. If thisArg was supplied, let T be thisArg; else let T be undefined. var thisArg = arguments[1]; // 5. Let k be 0. var k = 0; // 6. Repeat, while k < len while (k < len) { // a. Let Pk be ! ToString(k). // b. Let kValue be ? Get(O, Pk). // c. Let testResult be ToBoolean(? Call(predicate, T, < kValue, k, O >)). // d. If testResult is true, return kValue. var kValue = o[k]; if (predicate.call(thisArg, kValue, k, o)) { return kValue; } // e. Increase k by 1. k++; } // 7. Return undefined. return undefined; }, configurable: true, writable: true }); } (function () { function buildLanguageList() { var languageListJson = '[{\ "name": "English",\ "endonym_name": "English",\ "iso_code": "en",\ "primary": false,\ "flag": "//cdn.shopify.com/s/files/1/0531/3026/4761/t/3/assets/en.png?194"\ },{\ "name": "Polish",\ "endonym_name": "Polski",\ "iso_code": "pl-PolskiZmieniony",\ "primary": true,\ "flag": "//cdn.shopify.com/s/files/1/0531/3026/4761/t/3/assets/pl-PolskiZmieniony.png?194"\ }]'; return JSON.parse(languageListJson); } function createDropdown(container, languageChangeHandler) { var dropdown = container.children[0]; var span = dropdown.children[0]; var selectedImg = dropdown.children[1]; var ul = container.children[1]; for (var i = 0; i < ul.children.length; i++) { var el = ul.children[i]; el.onclick = languageChangeHandler(el.dataset.languageCode, el.children[0].innerText, languageChangeCallback); } var isOpen = false; dropdown.addEventListener('click', function (event) { event.preventDefault(); isOpen = !isOpen; if (isOpen) { openDropdown(); } else { closeDropdown(); } }); container.addEventListener('mouseleave', function () { closeDropdown(); }); function languageChangeCallback(lang, elementText) { closeDropdown(); span.textContent = elementText; if (selectedImg) { selectedImg.src = lang.flag; } } function openDropdown() { isOpen = true; dropdown.classList.add('open'); ul.classList.add('open'); } function closeDropdown() { isOpen = false; dropdown.classList.remove('open'); ul.classList.remove('open'); } } function redirectUrlBuilderFunction(primaryLocale) { var shopDomain = 'https://sklep.shiftseven.pl'; if (window.Shopify.designMode) { shopDomain = 'https://shift-seven.myshopify.com'; } var currentLocale = 'en'.toLowerCase(); var currentLocaleRegEx = new RegExp('^\/' + currentLocale, "ig"); var primaryLocaleLower = primaryLocale.toLowerCase(); var pathname = window.location.pathname; var queryString = window.location.search || ''; return function build(redirectLocale) { if (!redirectLocale) { return null; } var redirectLocaleLower = redirectLocale.toLowerCase(); if (currentLocale !== redirectLocaleLower) { if (redirectLocaleLower === primaryLocaleLower) { return shopDomain + pathname.replace(currentLocaleRegEx, '') + queryString; } else if (primaryLocaleLower === currentLocale) { return shopDomain + '/' + redirectLocaleLower + pathname + queryString; } else { return shopDomain + '/' + pathname.replace(currentLocaleRegEx, redirectLocaleLower) + queryString; } } return null; } } function configure() { var languageList = buildLanguageList(); var primaryLanguage = languageList.find(function (x) { return x.primary; }); if (!primaryLanguage && !primaryLanguage.iso_code) { // error: there should be atleast one language set as primary return; } var redirectUrlBuilder = redirectUrlBuilderFunction(primaryLanguage.iso_code); var containers = document.querySelectorAll('.translation-lab-language-switcher'); if (containers && containers.length) { for (var i = 0; i < containers.length; i++) { createDropdown(containers[i], languageChangeHandler); } } function languageChangeHandler(languageCode, elementText, callback) { var selectedLanguage = languageList.find(function (language) { return language.iso_code.toLowerCase() === languageCode.toLowerCase() }); return function () { callback(selectedLanguage, elementText); localStorage.setItem('translation-lab-lang', selectedLanguage.iso_code); var redirectUrl = redirectUrlBuilder(selectedLanguage.iso_code); redirectUrl && window.location.assign(redirectUrl); } } } configure(); })();