PageSourceSearch

https://isric.org/_nuxt/CU7ATlrC.js

js isric.org collected 2026-09-24 08:48:51 UTC 1,753 bytes, 1 lines download raw bytes

1import w from"./8y_KnDCH.js";import{r as d,u as S,c as b,o as f,g as t,E as r,e as s,d as h,ac as v,ad as m,q as N,B as $}from"./FTaPbxLM.js";import B from"./DrazZ_kY.js";import{F as q,a as o}from"./BiMgX1xh.js";const E={class:"w-full"},F={key:0,class:"my-4 text-primary-200"},x={__name:"FormNewsletter",emits:["submit"],setup(M,{emit:p}){const _=p,l=d([]),{t:u}=S(),c=d(!1),y=async e=>{var i;c.value=!1,l.value=[];try{const a=await $fetch("/api/spotler",{method:"POST",body:e});a.success?_("submit"):l.value=[a.message||u("newsletterSubscribeErrorMessage")]}catch(a){const n=((i=a.data)==null?void 0:i.message)||a.message||u("newsletterSubscribeErrorMessage");l.value=[n]}};return(e,i)=>{const a=w,n=$,g=B;return f(),b("div",E,[t(s(q),null,{default:r(()=>[t(s(o),{id:"newsletter-form",type:"form",errors:s(l),"aria-labelledby":"form-title",onSubmit:y},{submit:r(()=>[t(g,{type:"submit","aria-label":"Subscribe to newsletter"},{default:r(()=>[N("span",null,m(e.$t("newsletterSubscribeSubmitButtonLabel")),1),t(n,{name:"lucide:arrow-right",class:"text-lg text-base-300",size:"2rem","aria-hidden":"true",role:"presentation"})]),_:1})]),default:r(()=>[t(a,{id:"form-title",class:"sr-only",size:"h2"},{default:r(()=>[v(m(e.$t("newsletterFormTitle")),1)]),_:1}),t(s(o),{name:"firstName",label:e.$t("firstName"),validation:"required","aria-required":!0},null,8,["label"]),t(s(o),{name:"lastName",label:e.$t("lastName"),validation:"required","aria-required":!0},null,8,["label"]),t(s(o),{name:"email",label:e.$t("emailAddress"),type:"email",validation:"required|email","aria-required":!0,autocomplete:"email"},null,8,["label"])]),_:1},8,["errors"]),s(c)?(f(),b("p",F,m(e.$t("newsletterSubscribeSuccessMessage")),1)):h("",!0)]),_:1})])}}};export{x as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.