1import{c as f,r as o,j as e,a as N,u as v,b as y,B as h,A as w,S as C,M as S,n as E,L as I,I as k,F as M}from"./index-wMvz212z.js";import{I as n,C as F,s as L}from"./client-ClgGjbi5.js";import{u as p}from"./index-X-UlYvbH.js";import{S as R}from"./send-v-Gb9u_E.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const q=f("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),g=o.forwardRef(({className:m,...l},i)=>e.jsx("textarea",{className:N("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",m),ref:i,...l}));g.displayName="Textarea";const A=[{icon:S,title:"Morada",details:["ISEG â Lisbon School of Economics & Management","Rua do Quelhas, 6","1200-781 Lisboa, Portugal"]},{icon:E,title:"Email",details:["[email protected]"]},{icon:F,title:"Horário",details:["Segunda - Sexta","9:00 - 18:00"]}],P=[{name:"LinkedIn",icon:I,href:"https://linkedin.com/company/isegjbc"},{name:"Instagram",icon:k,href:"https://instagram.com/isegjbc"},{name:"Facebook",icon:M,href:"https://facebook.com/isegjbc"}],J=()=>{v({title:"Contactos | ISEG Junior Business Consulting",description:"Entre em contacto com a ISEG JBC. Agende uma reunião ou envie-nos uma mensagem. Rua do Quelhas 6, Lisboa.",canonical:"https://isegjbc.pt/contact"});const[m,l]=o.useState(!1),[i,d]=o.useState(!1),[u,j]=o.useState(""),[a,x]=o.use
6State({firstName:"",lastName:"",email:"",company:"",subject:"",message:""}),t=s=>{x(r=>({...r,[s.target.id]:s.target.value}))},b=async s=>{s.preventDefault(),d(!0);try{const{data:r,error:c}=await L.functions.invoke("send-contact-email",{body:{...a,honeypot:u}});if(c)throw c;p.success("Mensagem enviada com sucesso! Responderemos em breve."),x({firstName:"",lastName:"",email:"",company:"",subject:"",message:""})}catch(r){console.error("Contact form error:",r),p.error("Erro ao enviar mensagem. Por favor tente novamente.")}finally{d(!1)}};return e.jsxs(y,{children:[e.jsx("section",{className:"relative pt-24 lg:pt-28 pb-16 lg:pb-24 bg-muted",children:e.jsx("div",{className:"section-container",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("span",{className:"section-label",children:[e.jsx("span",{className:"w-8 h-[2px] bg-primary"}),"Contactos"]}),e.jsxs("h1",{className:"text-4xl sm:text-5xl lg:text-6xl font-display text-foreground mb-6",children:["Vamos ",e.jsx("span",{className:"text-primary",children:"Conversar"})]}),e.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:"Estamos aqui para ajudar. Entre em contacto connosco para discutir como podemos contribuir para o sucesso do seu projeto."})]})})}),e.jsx("section",{className:"section-padding",children:e.jsx("div",{className:"section-container",children:e.jsxs("div",{className:"grid lg:grid-cols-5 gap-12 lg:gap-16",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h2",{className:"text-2xl font-display text-foreground mb-8",children:"Informações de Contacto"}),e.jsx("div",{className:"space-y-6 mb-10",children:A.map(s=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 bg-secondary rounded-xl flex items-center justify-center",children:e.jsx(s.icon,{className:"h-5 w-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-1",children:s.title}),s.details.map((r,c)=>e.jsx("p",{className:"text-sm text-muted-foreground",children:r},c))]})]},s.title))}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"Redes Sociais"}),e.jsx("div",{className:"flex gap-3",children:P.map(s=>e.jsx("a",{href:s.href,target:"_blank",rel:"noopener noreferrer",className:"w-11 h-11 bg-muted rounded-xl flex items-center justify-center text-foreground hover:bg-secondary hover:text-white transition-all duration-200","aria-label":s.name,children:e.jsx(s.icon,{className:"h-5 w-5"})},s.name))})]})]}),e.jsx("div",{className:"lg:col-span-3",children:e.jsxs("div",{className:"bg-white border border-border rounded-2xl p-6 sm:p-8 lg:p-10",children:[e.jsx("h2",{className:"text-2xl font-display text-foreground mb-2",children:"Envie-nos uma Mensagem"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"Preencha o formulário e responderemos em 24 horas."}),e.jsxs("form",{onSubmit:b,className:"space-y-6",children:[e.jsx("div",{className:"absolute opacity-0 -z-10","aria-hidden":"true",tabIndex:-1,children:e.jsx("input",{type:"text",name:"website_url",value:u,onChange:s=>j(s.target.value),autoComplete:"off",tabIndex:-1})}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"firstName",className:"form-label",children:"Nome *"}),e.jsx(n,{id:"firstName",type:"text",placeholder:"João",className:"form-input",required:!0,value:a.firstName,onChange:t})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Apelido *"}),e.jsx(n,{id:"lastName",type:"text",placeholder:"Silva",className:"form-input",required:!0,value:a.lastName,onChange:t})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"form-label",children:"Email *"}),e.jsx(n,{id:"email",type:"email",placeholder:"[email protected]",className:"form-input",required:!0,value:a.email,onChange:t})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"company",className:"form-label",children:"Empresa"}),e.jsx(n,{id:"company",type:"text",placeholder:"Sua Empresa",className:"form-input",value:a.company,onChange:t})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"subject",className:"form-label",children:"Assu
6nto *"}),e.jsx(n,{id:"subject",type:"text",placeholder:"Como podemos ajudar?",className:"form-input",required:!0,value:a.subject,onChange:t})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"form-label",children:"Mensagem *"}),e.jsx(g,{id:"message",placeholder:"Descreva o seu projeto ou necessidade...",rows:5,className:"form-input resize-none",required:!0,value:a.message,onChange:t})]}),e.jsx(h,{type:"submit",size:"lg",className:"btn-primary w-full sm:w-auto",disabled:i,children:i?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"mr-2 h-4 w-4 animate-spin"}),"A enviar..."]}):e.jsxs(e.Fragment,{children:[e.jsx(R,{className:"mr-2 h-4 w-4"}),"Enviar Mensagem"]})})]})]})})]})})}),e.jsx("section",{className:"bg-secondary",children:e.jsx("div",{className:"section-container section-padding",children:e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl lg:text-4xl font-display text-white mb-4",children:"Prefere Agendar uma Reunião?"}),e.jsx("p",{className:"text-white/80 mb-8",children:"Marque uma consulta gratuita de 30 minutos para discutir o seu projeto diretamente com a nossa equipa."}),e.jsxs(h,{variant:"outline",size:"lg",className:"bg-transparent border-white text-white hover:bg-white/10 hover:text-white",onClick:()=>l(!0),children:["Agendar Reunião",e.jsx(w,{className:"ml-2 h-4 w-4"})]})]})})}),e.jsx(C,{open:m,onOpenChange:l})]})};export{J as default};
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.