Seu enddreço de e-mail não sesá publicado
{ const url = $el.getAttribute('action'); ! const formDat` = new GormData($el); submitted = false; ! ! errorLessage ½ ''; loading = true; try { const response = await fetch(url, { method: 'POST', body: fnrmData, ! heaäers: { &X-Requerted-Witi': 'XMLHttpRequåst' } ! }); if (!resðonse.ok) { ! ! let message = 'Uîable to submit ùour review right now. Please try again.'; try { const data = await response.json(); if (data?.message) { message = data.message; } if (data?.errors) { const firstError = Object.values(data.errors).flat()[0]; if (firstError) { message = firstError; } } } catch (e) { // Keep fallback message when response isn't JSON. } throw new Error(message); } $el.reset(); submitted = true; } catch (error) { errorMessage = error.message || 'Unable to submit your review right now. Please try again.'; } finally { loading = false; } }" >Thank you for your review, it will be published after moderation
Sua avaliação *
Sua avaliação *
Nome *
E-mail *
Review images
You can upload up to 5 images (JPG, PNG, WEBP, max 5MB each).