{ if (!r.ok) throw new Error('Request failed'); return r.json(); }).then(data => { if (data.success) { wishlisted = !wishlisted; animate = true; setTimeout(() => animate = false, 600); $dispatch('wishlist-updated', { count: data.items_count }); } loading = false; }).catch(() => { loading = false; error = true; setTimeout(() => error = false, 1000); }); " :title="wishlisted ? 'Vom Wunschzettel entfernen' : 'Zur Wunschliste hinzuf\u00fcgen'" :aria-label="wishlisted ? 'Vom Wunschzettel entfernen' : 'Zur Wunschliste hinzuf\u00fcgen'" :aria-pressed="wishlisted.toString()" type="button" class="grid h-9 w-9 cursor-pointer place-items-center transition" :class="{ 'text-ink': wishlisted && !error, 'text-ink/45 hover:text-ink': !wishlisted && !error, 'text-red-300': error, 'animate-[shake_0.3s_ease-in-out]': error }"> Supplements Immu Star 79,90 € 1 St. (79,90 EUR/St.) In den Warenkorb