PageSourceSearch

https://www.strugamgmt.com/_next/static/chunks/app/contact/page-206764c1169ec9f8.js

js strugamgmt.com collected 2026-10-08 09:20:42 UTC 2,059 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{166:(e,s,r)=>{Promise.resolve().then(r.bind(r,2265))},2265:(e,s,r)=>{"use strict";r.d(s,{ContactForm:()=>d});var a=r(5155),t=r(2115),l=r(9999),n=r(6698),i=r(1166),o=r(6549),m=r(7524),u=r(9131),c=r(8134);function d(){let[e,s]=(0,t.useState)("idle"),[r,d]=(0,t.useState)(0),[g,p]=(0,t.useState)({}),[b,f]=(0,t.useState)("");async function h(e){e.preventDefault(),p({});let r=new FormData(e.currentTarget),a=Object.fromEntries(r.entries()),t=l.yo.safeParse(a);if(!t.success){p((0,l.y6)(t.error)),s("error");return}s("submitting");let i=await (0,o.j)("/api/contact",{...t.data,token:(0,u.I)(r)});if(i.ok&&i.delivered||d(e=>e+1),(0,n.u)(n.R.SUBMIT_CONTACT_FORM,{ok:i.ok}),!i.ok){var m;f(null!=(m=i.error)?m:""),s("error");return}s(i.delivered?"success":"undelivered")}return"success"===e?(0,a.jsx)(c.HB,{tone:"success",title:"Thanks for reaching out!",children:"We got your message and will get back to you soon."}):(0,a.jsxs)("form",{onSubmit:h,noValidate:!0,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(c.A_,{name:"firstName",label:"First name",required:!0,error:g.firstName,autoComplete:"given-name"}),(0,a.jsx)(c.A_,{name:"lastName",label:"Last name",error:g.lastName,autoComplete:"family-name"})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(c.A_,{name:"email",type:"email",label:"Email",required:!0,error:g.email,autoComplete:"email"}),(0,a.jsx)(c.A_,{name:"phone",type:"tel",label:"Phone (optional)",error:g.phone,autoComplete:"tel"})]}),(0,a.jsx)(c.fs,{name:"message",label:"How can we help?",required:!0,error:g.message}),(0,a.jsx)(u.X,{},r),(0,a.jsx)(c.Ng,{}),"error"===e&&b&&(0,a.jsx)("p",{className:"text-sm font-semibold text-red-600",role:"alert",children:b}),"undelivered"===e&&(0,a.jsx)(m.g,{}),(0,a.jsx)(i.$n,{type:"submit",size:"lg",disabled:"submitting"===e,children:"submitting"===e?"Sending…":"Send message"})]})}}},e=>{e.O(0,[619,879,102,441,255,358],()=>e(e.s=166)),_N_E=e.O()}]);

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.