PageSourceSearch

https://7maravilhas.pt/build/assets/contact-aikwXjDk.js

js 7maravilhas.pt collected 2026-10-02 12:02:44 UTC 8,168 bytes, 11 lines download raw bytes

1import{v as N,j as e,$ as y}from"./app-Dpdn6RkY.js";import{M as w,F,S as A}from"./main-layout-DueMfrwV.js";import{c as r,P as C}from"./primary-button-Cc1Q7518.js";import{L as n,I as l}from"./label-BLUGSRnM.js";import{T as D}from"./textarea-XCefJWrP.js";import{C as k,a as M}from"./card-DyWPJXiX.js";import{A as u,a as p}from"./alert-Ckpb_4QK.js";import{C as v}from"./checkbox-DkGha2cv.js";import{G as h}from"./glowing-effect-BrIIxLTv.js";import{P}from"./partners-lnawbEvo.js";import{m as d}from"./proxy-Bef8oLZF.js";import{C as q}from"./circle-check-big-6TJHb3f0.js";import{C as I}from"./circle-alert-CZYoLW9F.js";import{M as z}from"./mail-CksGFqd0.js";/* empty css            */import"./index-H3WrPmOw.js";import"./index-Dr1PzIeU.js";import"./check-B7CsewCy.js";import"./single-value-DUybrRiC.js";/**
2 * @license lucide-react v0.475.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 L=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],S=r("MessageSquare",L);/**
7 * @license lucide-react v0.475.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const _=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],T=r("User",_);function se({errors:a,success:g,error:b}){const{data:i,setData:o,post:j,processing:m,errors:s}=N({nome:"",email:"",assunto:"",mensagem:"",tos:!1}),c=g,x=b,f=t=>{t.preventDefault(),j(route("contact.store"))};return e.jsxs(w,{title:"Contactos - 7 Maravilhas de Portugal®",description:"Entre em contacto connosco. Estamos disponíveis para esclarecer as suas dúvidas sobre as 7 Maravilhas de Portugal®.",keywords:"contactos, 7 maravilhas, portugal, suporte, ajuda",children:[e.jsx(y,{title:"Contactos"}),e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"py-16 bg-background border-b border-border",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"text-center space-y-6",children:[e.jsx(d.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6}}),e.jsx(d.h1,{className:"text-4xl sm:text-5xl lg:text-6xl font-bold text-foreground",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,delay:.2},children:"Entre em Contacto"}),e.jsx(d.p,{className:"text-xl text-muted-foreground max-w-3xl mx-auto leading-relaxed",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},children:"Tem alguma questão sobre a eleição das Novas 7 Maravilhas de Portugal®? Estamos aqui para ajudar. Fale connosco!"})]})})}),e.jsx("section",{className:"pb-16 lg:pb-24 pt-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[c&&e.jsxs(u,{className:"mb-8 border-green-200 bg-green-50 text-green-800",children:[e.jsx(q,{className:"h-4 w-4"}),e.jsx(p,{children:c})]}),x&&e.jsxs(u,{className:"mb-8 border-red-200 bg-red-50 text-red-800",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx(p,{children:x})]}),e.jsxs("div",{className:"relative",children:[e.jsx(h,{spread:130,glow:!0,disabled:!1,proximity:64,inactiveZone:.01,variant:"primary",className:"rounded-[2rem]"}),e.jsx(k,{className:"relative shadow-xl bg-white/50 dark:bg-[#231F20]/50 backdrop-blur-md border border-[#D4AF37]/20 rounded-[2rem] overflow-hidden",children:e.jsx(M,{children:e.jsxs("form",{onSubmit:f,className:"space-y-8",children:[e.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(n,{htmlFor:"nome",className:"text-base font-medium pb-2 flex items-center gap-2",children:[e.jsx(T,{className:"h-4 w-4 text-[#D4AF37]"}),"Nome *"]}),e.jsx(l,{id:"nome",type:"text",value:i.nome,onChange:t=>o("nome",t.target.value),placeholder:"Introduza o seu nome completo",className:"h-12 text-base bg-background/50 border-border/40 focus:border-[#D4AF37] focu
11s:ring-[#D4AF37]/20 transition-all rounded-xl",required:!0}),(s.nome||(a==null?void 0:a.nome))&&e.jsx("p",{className:"text-sm text-red-600",children:s.nome||(a==null?void 0:a.nome)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(n,{htmlFor:"email",className:"text-base font-medium pb-2 flex items-center gap-2",children:[e.jsx(z,{className:"h-4 w-4 text-[#D4AF37]"}),"Email *"]}),e.jsx(l,{id:"email",type:"email",value:i.email,onChange:t=>o("email",t.target.value),placeholder:"Introduza o seu endereço de email",className:"h-12 text-base bg-background/50 border-border/40 focus:border-[#D4AF37] focus:ring-[#D4AF37]/20 transition-all rounded-xl",required:!0}),(s.email||(a==null?void 0:a.email))&&e.jsx("p",{className:"text-sm text-red-600",children:s.email||(a==null?void 0:a.email)})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(n,{htmlFor:"assunto",className:"text-base font-medium pb-2 flex items-center gap-2",children:[e.jsx(F,{className:"h-4 w-4 text-[#D4AF37]"}),"Assunto *"]}),e.jsx(l,{id:"assunto",type:"text",value:i.assunto,onChange:t=>o("assunto",t.target.value),placeholder:"Qual é o motivo do seu contacto?",className:"h-12 text-base bg-background/50 border-border/40 focus:border-[#D4AF37] focus:ring-[#D4AF37]/20 transition-all rounded-xl",required:!0}),(s.assunto||(a==null?void 0:a.assunto))&&e.jsx("p",{className:"text-sm text-red-600",children:s.assunto||(a==null?void 0:a.assunto)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(n,{htmlFor:"mensagem",className:"text-base font-medium pb-2 flex items-center gap-2",children:[e.jsx(S,{className:"h-4 w-4 text-[#D4AF37]"}),"Mensagem *"]}),e.jsx(D,{id:"mensagem",value:i.mensagem,onChange:t=>o("mensagem",t.target.value),placeholder:"Escreva aqui a sua mensagem detalhada...",className:"min-h-40 text-base resize-none bg-background/50 border-border/40 focus:border-[#D4AF37] focus:ring-[#D4AF37]/20 transition-all rounded-xl",maxLength:2e3,required:!0}),e.jsxs("div",{className:"flex justify-between items-center",children:[(s.mensagem||(a==null?void 0:a.mensagem))&&e.jsx("p",{className:"text-sm text-red-600",children:s.mensagem||(a==null?void 0:a.mensagem)}),e.jsxs("p",{className:"text-sm text-muted-foreground ml-auto",children:[i.mensagem.length,"/2000 caracteres"]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-start space-x-3",children:[e.jsx(v,{id:"tos",checked:i.tos,onCheckedChange:t=>o("tos",!!t),className:"mt-1 h-5 w-5 border-2 border-border/60 data-[state=checked]:bg-[#D4AF37] data-[state=checked]:border-[#D4AF37]",required:!0}),e.jsxs(n,{htmlFor:"tos",className:"text-sm text-muted-foreground leading-relaxed cursor-pointer",children:["Ao utilizar este formulário aceita o armazenamento e tratamento dos seus dados pelo website 7Maravilhas.pt.",e.jsx("a",{href:route("privacy"),className:"underline text-primary hover:text-primary/80 ml-2",target:"_blank",rel:"noopener noreferrer",tabIndex:0,onClick:t=>t.stopPropagation(),onMouseDown:t=>t.stopPropagation(),children:"Política de Privacidade"})]})]}),(s.tos||(a==null?void 0:a.tos))&&e.jsx("p",{className:"text-sm text-red-600",children:s.tos||(a==null?void 0:a.tos)})]}),e.jsx("div",{className:"pt-4",children:e.jsx(C,{type:"submit",disabled:m||!i.tos,className:"w-full h-14 text-lg font-semibold bg-[#D4AF37] hover:bg-[#b5952f] text-white rounded-xl shadow-lg shadow-[#D4AF37]/20",children:m?e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-white"}),"A enviar..."]}):e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx(A,{className:"h-5 w-5"}),"Enviar Mensagem"]})})})]})})})]}),e.jsx("div",{className:"mt-12 text-center",children:e.jsx("div",{className:"relative",children:e.jsx(h,{variant:"primary",disabled:!1,glow:!0,blur:4,spread:20,proximity:80,inactiveZone:.5,movementDuration:2,borderWidth:1})})})]})})}),e.jsx(P,{})]})]})}export{se 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.