PageSourceSearch

https://alextag.ro/_next/static/chunks/app/contact/page-33913306a3adf5f7.js

js alextag.ro collected 2026-10-02 02:49:27 UTC 3,853 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[772,977,9435],{46866:(e,a,t)=>{"use strict";t.d(a,{default:()=>l});var r=t(95155),s=t(12115);function l(){let[e,a]=(0,s.useState)({name:"",email:"",phone:"",website:"",message:""}),[t,l]=(0,s.useState)("idle"),i=async a=>{a.preventDefault(),l("loading");try{if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw Error();l("success")}catch{l("error")}};if("success"===t)return(0,r.jsxs)("div",{className:"rounded-2xl border border-green-500/20 bg-green-500/5 p-8 text-center",children:[(0,r.jsx)("div",{className:"text-4xl mb-3",children:"✓"}),(0,r.jsx)("p",{className:"text-gray-900 dark:text-white font-semibold text-lg",children:"Mesaj trimis!"}),(0,r.jsx)("p",{className:"text-gray-500 dark:text-white/50 text-sm mt-1",children:"Te contactez \xeen maxim 24 de ore."})]});let n=`w-full px-4 py-3 rounded-xl
2    bg-gray-50 dark:bg-white/5
3    border border-gray-200 dark:border-white/10
4    text-gray-900 dark:text-white
5    placeholder:text-gray-400 dark:placeholder:text-white/25
6    text-sm focus:outline-none focus:border-brand-blue/60
7    focus:ring-1 focus:ring-brand-blue/40 transition-colors`,o="block text-sm font-medium text-gray-700 dark:text-white/70 mb-1.5";return(0,r.jsxs)("form",{onSubmit:i,noValidate:!0,className:"space-y-4","aria-label":"Formular contact AlexTag",children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"name",className:o,children:"Nume și prenume *"}),(0,r.jsx)("input",{id:"name",type:"text",required:!0,autoComplete:"name",value:e.name,onChange:t=>a({...e,name:t.target.value}),placeholder:"Ion Popescu",className:n})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"phone",className:o,children:"Telefon *"}),(0,r.jsx)("input",{id:"phone",type:"tel",required:!0,autoComplete:"tel",value:e.phone,onChange:t=>a({...e,phone:t.target.value}),placeholder:"0700 000 000",className:n})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:o,children:"Email *"}),(0,r.jsx)("input",{id:"email",type:"email",required:!0,autoComplete:"email",value:e.email,onChange:t=>a({...e,email:t.target.value}),placeholder:"[email protected]",className:n})]}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("label",{htmlFor:"website",className:o,children:["URL site existent ",(0,r.jsx)("span",{className:"text-gray-400 dark:text-white/30",children:"(opțional)"})]}),(0,r.jsx)("input",{id:"website",type:"url",autoComplete:"url",value:e.website,onChange:t=>a({...e,website:t.target.value}),placeholder:"https://firma-ta.ro",className:n})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"message",className:o,children:"Descrie pe scurt ce ai nevoie"}),(0,r.jsx)("textarea",{id:"message",rows:4,value:e.message,onChange:t=>a({...e,message:t.target.value}),placeholder:"Ex: vreau un site de prezentare pentru firma mea din Craiova…",className:`${n} resize-none`})]}),(0,r.jsx)("button",{type:"submit",disabled:"loading"===t,className:"btn-primary w-full justify-center disabled:opacity-60 disabled:cursor-not-allowed",children:"loading"===t?"Se trimite...":"TRIMITE MESAJUL"}),"error"===t&&(0,r.jsxs)("p",{className:"text-center text-sm text-red-500",children:["Ceva nu a mers. \xcencearcă din nou sau scrie direct la"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",className:"underline",children:"[email protected]"}),"."]}),(0,r.jsx)("p",{className:"text-center text-xs text-gray-400 dark:text-white/30",children:"\uD83D\uDD12 Datele tale sunt confidențiale și nu vor fi partajate cu terți."})]})}},65252:(e,a,t)=>{Promise.resolve().then(t.bind(t,46866)),Promise.resolve().then(t.t.bind(t,52619,23))}},e=>{e.O(0,[2619,8441,1255,7358],()=>e(e.s=65252)),_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.