PageSourceSearch

https://ragenation.gg/assets/contact-C4LfpY17.js

js ragenation.gg collected 2026-10-09 17:06:15 UTC 3,197 bytes, 1 lines download raw bytes

1import{a as e,n as t,t as n}from"./jsx-runtime-B-hcVAMW.js";import{t as r}from"./link-EZeSk_01.js";import{c as i,s as a}from"./schemas-MjCpoC8N.js";import{g as o}from"./index-CFG5Yzb3.js";import{t as s}from"./input-nRr_KKo_.js";import{t as c}from"./textarea-Bs1-Luwq.js";import{t as l}from"./reveal-DFGIrbIN.js";import{n as u,t as d}from"./zod-DTVKqolS.js";import{n as f,t as p}from"./field-BS-PUrA0.js";import{n as m,r as h,t as g}from"./submissions-DwiO2ncR.js";import{t as _}from"./page-hero-DN-TpE64.js";import{t as v}from"./section-D71lcorR.js";var y=`/assets/news-CFKa_c0U.webp`,b=e(t(),1),x=n(),S=a({name:h(),email:m,subject:i().min(2,`Add a subject`),message:i().min(10,`Enter your message`)});function C(){let[e,t]=(0,b.useState)(!1),[n,r]=(0,b.useState)(null),{register:i,handleSubmit:a,formState:{errors:l,isSubmitting:m}}=u({resolver:d(S)});return(0,x.jsx)(`div`,{className:`border border-border bg-paper p-6 lg:p-8`,children:e?(0,x.jsx)(f,{message:`Thanks for getting in touch — we'll get back to you by email.`}):(0,x.jsxs)(`form`,{noValidate:!0,className:`space-y-5`,onSubmit:a(async e=>{r(null);try{await g({data:{type:`contact`,name:e.name,email:e.email,payload:{subject:e.subject,message:e.message}}}),t(!0)}catch{r(`Something went wrong sending your message. Please try again.`)}}),children:[(0,x.jsxs)(`div`,{className:`grid grid-cols-1 gap-5 sm:grid-cols-2`,children:[(0,x.jsx)(p,{label:`Name`,htmlFor:`con-name`,required:!0,error:l.name?.message,children:(0,x.jsx)(s,{id:`con-name`,"aria-invalid":!!l.name,...i(`name`)})}),(0,x.jsx)(p,{label:`Email`,htmlFor:`con-email`,required:!0,error:l.email?.message,children:(0,x.jsx)(s,{id:`con-email`,type:`email`,"aria-invalid":!!l.email,...i(`email`)})})]}),(0,x.jsx)(p,{label:`Subject`,htmlFor:`con-subject`,required:!0,error:l.subject?.message,children:(0,x.jsx)(s,{id:`con-subject`,"aria-invalid":!!l.subject,...i(`subject`)})}),(0,x.jsx)(p,{label:`Message`,htmlFor:`con-message`,required:!0,minLength:10,error:l.message?.message,children:(0,x.jsx)(c,{id:`con-message`,"aria-invalid":!!l.message,...i(`message`)})}),n?(0,x.jsx)(`p`,{className:`text-sm text-red-600`,children:n}):null,(0,x.jsx)(o,{type:`submit`,size:`xl`,disabled:m,className:`font-bold uppercase tracking-[0.12em] hover:bg-primary/90 transition-all duration-200 hover:-translate-y-0.5`,children:m?`Sending…`:`Send message`})]})})}function w(){return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_,{eyebrow:`Get in touch`,title:`Contact`,subtitle:`Questions about rAge Nation or the LAN? Send us a message and we'll get back to you.`,image:y}),(0,x.jsx)(`section`,{className:`bg-paper grain py-16`,children:(0,x.jsxs)(`div`,{className:`mx-auto max-w-7xl px-4 lg:px-8`,children:[(0,x.jsx)(v,{eyebrow:`Message us`,title:`Send a Message`,subtitle:(0,x.jsxs)(x.Fragment,{children:[`Pop us a message using the contact form below. For media or exhibitor enquiries, use the dedicated forms on the`,` `,(0,x.jsx)(r,{to:`/media`,className:`text-primary`,children:`Media`}),` `,`and`,` `,(0,x.jsx)(r,{to:`/exhibitors`,className:`text-primary`,children:`Exhibitor`}),` `,`pages.`]})}),(0,x.jsx)(l,{className:`mt-8`,children:(0,x.jsx)(C,{})})]})})]})}export{w as component};

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.