\n ${t.name} (${t.count||0})\n `,e.appendChild(n)})),e.dataset.loaded="true"}catch(e){console.error("Błąd podczas pobierania krajów dla mobilnego menu:",e)}}function filterCountries(e){const t=document.querySelectorAll("#countryMenu a, #countryListContainer a");e=e.toLowerCase(),t.forEach((t=>{t.textContent.toLowerCase().includes(e)?t.style.display="":t.style.display="none"}))}function toggleCountryMenu(){const e=document.getElementById("countryMenu"),t=document.getElementById("languageOptions");t&&!t.classList.contains("hidden")&&t.classList.add("hidden"),"true"!==e.dataset.loaded&&loadCountries(),e.classList.toggle("hidden")}async function loadCountries(){const e=document.getElementById("countryMenu"),t=document.getElementById("countryLoader"),n=document.getElementById("countryListContainer");try{const o="en",i=await fetch(`/api/countries?lang=${o}`),s=await i.json();if(t&&t.remove(),0===s.length)return n.innerHTML='\n
medical, dental and vision insurance, a flexible spending account, 401(k), employee stock grants, employee stock purchase plan, paid time off and up to 12 paid holidays, paid parental and family leave, family building benefits, back-up care, enhanced family support, childcare subsidy, tuition assistance, college coaching, short- and long-term disability, voluntary AD&D coverage, voluntary accident coverage, voluntary life insurance, voluntary disability insurance, and voluntary long-term care insurance, mobile service & home internet discounts, pet insurance, and access to commuter and transit programs