PageSourceSearch

https://aiguardprotocol.com/_next/static/chunks/app/%5Blocale%5D/contact/page-de787bfd5af913b1.js

js aiguardprotocol.com collected 2026-10-02 00:46:01 UTC 4,356 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[961],{3829:function(e,t,a){Promise.resolve().then(a.bind(a,28))},28:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return i}});var l=a(7437),s=a(9372),n=a(8312),r=a(2586),c=a(2265);function i(){let e=(0,r.useTranslations)("contactPage"),[t,i]=(0,c.useState)(""),[o,u]=(0,c.useState)(""),[d,m]=(0,c.useState)(""),[x,g]=(0,c.useState)(null),[b,p]=(0,c.useState)(!1),[h,f]=(0,c.useState)(null),y=(0,c.useRef)(null),j=async l=>{if(l.preventDefault(),t.trim()&&o.trim()&&d.trim()){p(!0),f(null);try{let{submitContactForm:l,uploadAttachment:s}=await a.e(610).then(a.bind(a,3610)),n=null;if(x&&x.size>0&&x.size<=5242880)try{n=await s(x)}catch(e){}await l({email:t.trim(),subject:o.trim(),message:d.trim(),attachmentUrl:n}),i(""),u(""),m(""),g(null),y.current&&(y.current.value=""),f({type:"success",text:e("success")})}catch(t){console.error(t),f({type:"error",text:e("error")})}finally{p(!1)}}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.default,{}),(0,l.jsx)("main",{className:"pt-16 min-h-screen",children:(0,l.jsxs)("section",{className:"py-20 px-4",children:[(0,l.jsxs)("div",{className:"max-w-2xl mx-auto text-center mb-12",children:[(0,l.jsx)("h1",{className:"text-4xl sm:text-5xl font-bold mb-4",children:e("title")}),(0,l.jsx)("p",{className:"text-agt-muted text-lg mb-8",children:e("subtitle")})]}),(0,l.jsxs)("form",{onSubmit:j,className:"max-w-lg mx-auto space-y-6 bg-agt-panel rounded-2xl p-8 border border-agt-cyan/20",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-agt-text mb-2",children:e("email")}),(0,l.jsx)("input",{id:"email",type:"email",value:t,onChange:e=>i(e.target.value),required:!0,className:"w-full px-4 py-3 rounded-xl bg-black/30 border border-agt-cyan/30 text-agt-text placeholder-agt-muted/70 focus:outline-none focus:border-agt-cyan",placeholder:"[email protected]"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"subject",className:"block text-sm font-medium text-agt-text mb-2",children:e("subject")}),(0,l.jsx)("input",{id:"subject",type:"text",value:o,onChange:e=>u(e.target.value),required:!0,className:"w-full px-4 py-3 rounded-xl bg-black/30 border border-agt-cyan/30 text-agt-text placeholder-agt-muted/70 focus:outline-none focus:border-agt-cyan",placeholder:""})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"details",className:"block text-sm font-medium text-agt-text mb-2",children:e("details")}),(0,l.jsx)("textarea",{id:"details",value:d,onChange:e=>m(e.target.value),required:!0,rows:5,className:"w-full px-4 py-3 rounded-xl bg-black/30 border border-agt-cyan/30 text-agt-text placeholder-agt-muted/70 focus:outline-none focus:border-agt-cyan resize-none",placeholder:""})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-agt-muted mb-2",children:e("imageOptional")}),(0,l.jsxs)("label",{className:"flex items-center gap-3 w-full cursor-pointer",children:[(0,l.jsx)("span",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium bg-agt-cyan/20 text-agt-cyan hover:bg-agt-cyan/30 transition-colors shrink-0",children:e("chooseFile")}),(0,l.jsx)("span",{className:"text-sm text-agt-muted truncate",children:x?x.name:e("noFileChosen")}),(0,l.jsx)("input",{ref:y,type:"file",accept:"image/*",onChange:e=>{var t,a;return g(null!==(a=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==a?a:null)},className:"sr-only"})]})]}),h&&(0,l.jsx)("p",{className:"text-sm ".concat("success"===h.type?"text-agt-green":"text-red-400"),children:h.text}),(0,l.jsx)("button",{type:"submit",disabled:b,className:"w-full py-4 rounded-xl bg-agt-cyan/20 text-agt-cyan hover:bg-agt-cyan/30 font-semibold transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:b?e("sending"):e("submit")})]}),(0,l.jsxs)("div",{className:"max-w-lg mx-auto mt-8 text-center",children:[(0,l.jsx)("p",{className:"text-agt-muted text-sm mb-4",children:e("inAppNote")}),(0,l.jsx)("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 text-agt-cyan hover:text-agt-cyanLight transition-colors",children:"[email protected]"})]})]})}),(0,l.jsx)(n.default,{})]})}}},function(e){e.O(0,[673,917,971,117,744],function(){return e(e.s=3829)}),_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.