1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2163,e=>{"use strict";var t=e.i(14849),i=e.i(80588),r=e.i(48115),s=e.i(31097),a=e.i(84703),o=e.i(19842),n=e.i(93864),l=e.i(24261),m=e.i(94940),u=e.i(14488),d=e.i(1098),c=e.i(19018),g=e.i(47145);let b=e.i(32356).z.object({name:(0,g.isValidString)(!0),email:(0,g.isValidEmail)(!0),[m.HONEYPOT_NAME]:(0,g.isValidString)(!1)});e.s(["MailingListContainer",0,({title:e,text:p,successMessage:S})=>{let f=(0,c.useTranslations)("Client"),h=(0,d.useLocale)(),[F,j]=(0,i.useState)(""),[y,_]=(0,i.useState)(g.FormState.initial),v=(0,i.useId)(),{register:T,getValues:x,trigger:I}=(0,r.useForm)({defaultValues:{name:"",email:""},resolver:(0,s.zodResolver)(b)}),O=async e=>{if(e.preventDefault(),_(g.FormState.submitting),j(""),!await I())return _(g.FormState.invalid),j(f("form_invalid")),document.getElementById(v)?.scrollIntoView({behavior:"smooth"}),!1;let t=x(),i=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({locale:h,data:t})}).then(e=>e.json()).catch(e=>{u.logger.error("Error sending memoriam form",{exception:e}),j(f("form_error_sending")),_(g.FormState.error)});if(!i?.success){j(i?.message||f("form_error_sending")),_(g.FormState.invalid);return}_(g.FormState.submitted)};return(0,t.jsxs)(n.Form,{isPage:!1,id:v,title:e,description:p,submitted:y===g.FormState.submitted,successMessage:S,errorMessage:F,onSubmit:O,submitButton:(0,t.jsx)(a.Button,{type:"submit",contrast:!0,disabled:[g.FormState.submitting].includes(y),children:f("mailinglist_submit")}),children:[(0,t.jsxs)(o.Fieldset,{children:[(0,t.jsx)(l.Input,{formId:v,type:"text",autocomplete:"name",required:!0,label:f("mailinglist_name"),...T("name")}),(0,t.jsx)(l.Input,{formId:v,type:"email",autocomplete:"email",required:!0,label:f("mailinglist_email"),...T("email")})]}),(0,t.jsx)(m.SykurPottur,{...T(m.HONEYPOT_NAME),formId:v})]})}],2163)}]);
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.