1import{B as v,j as e,l as N,r as c,L as p,i as w}from"./index-BMSagvvg.js";const _="https://forbes.it/wp-content/uploads/2025/02/Forbes-Connect-Sito-bdp-1080p.mp4",C="https://forbes.it/wp-content/uploads/2025/02/loading.webp",S="https://forbes.it/wp-content/uploads/2025/02/Forbes-connect-logo-rosso.png",I=[{n:"800+",l:"Partners"},{n:"5 mln",l:"Utenti Forbes.it"},{n:"100k",l:"Leads"}],E=["Stampa","Eventi","Web","Social","Video / Podcast"];function P(){const s=v.useLoaderData();return e.jsxs(N,{contentGroup:"connect",children:[e.jsxs("header",{className:"relative bg-forbes-ink text-white",children:[e.jsx("video",{className:"block w-full aspect-video object-cover",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,poster:C,preload:"metadata",children:e.jsx("source",{src:_,type:"video/mp4"})}),e.jsx("div",{className:"absolute inset-x-0 bottom-0 flex justify-center bg-gradient-to-t from-black/60 to-transparent px-4 pb-8 pt-16",children:e.jsx("img",{src:S,alt:"Forbes Italia Connect",className:"h-12 w-auto md:h-16",fetchPriority:"high"})})]}),e.jsxs("section",{className:"px-4 sm:px-8 py-12 md:py-16 text-center",children:[e.jsx("p",{className:"mx-auto max-w-3xl font-serif text-3xl md:text-4xl leading-tight text-forbes-ink",style:{textWrap:"balance"},children:"Celebriamo il successo, guidiamo lâinnovazione e creiamo connessioni di valore"}),e.jsx("dl",{className:"mx-auto mt-10 grid max-w-3xl grid-cols-3 gap-6 border-y border-forbes-rule py-8",children:I.map(r=>e.jsxs("div",{children:[e.jsx("dt",{className:"font-serif text-4xl md:text-5xl leading-none text-forbes-red",children:r.n}),e.jsx("dd",{className:"mt-2 text-[11px] font-semibold uppercase tracking-[0.2em] text-forbes-muted",children:r.l})]},r.l))}),e.jsx("ul",{className:"mt-8 flex flex-wrap items-center justify-center gap-x-3 gap-y-2 text-[12px] font-semibold uppercase tracking-[0.2em] text-forbes-ink",children:E.map((r,n)=>e.jsxs("li",{className:"flex items-center gap-3",children:[n>0&&e.jsx("span",{"aria-hidden":!0,className:"h-3 w-px bg-forbes-rule"}),r]},r))})]}),e.jsxs("section",{className:"border-t border-forbes-rule px-4 sm:px-8 py-12 md:py-16",children:[e.jsx("h2",{className:"text-center font-serif text-3xl md:text-4xl leading-tight text-forbes-ink",style:{textWrap:"balance"},children:"Porta il tuo brand su Forbes Italia e raggiungi i leader globali"}),e.jsxs("div",{className:"mx-auto mt-10 grid max-w-6xl grid-cols-1 gap-10 lg:grid-cols-[minmax(0,3fr)_minmax(0,2fr)] lg:gap-16",children:[e.jsx(F,{}),e.jsxs("aside",{children:[e.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-forbes-red",children:"Media kit"}),s?.html&&e.jsx("div",{className:"wp-content connect-mediakit mt-5 [&_img]:h-auto [&_img]:w-full [&_a]:block [&_a]:border [&_a]:border-forbes-rule",dangerouslySetInnerHTML:{__html:s.html.replace(/<p>\s*<a[^>]*>\s*Scarica il Media\s?kit[^<]*<\/a>\s*<\/p>/gi,"")}})]})]})]})]})}const z=[{key:"name",label:"Nome"},{key:"surname",label:"Cognome"},{key:"email",label:"Email",type:"email"},{key:"azienda",label:"Azienda"},{key:"qualifica_professionale",label:"Job title"},{key:"citta",label:"Città "},{key:"argomento",label:"Argomento di interesse"}];function F(){const[s,r]=c.useState({name:"",surname:"",email:"",azienda:"",qualifica_professionale:"",citta:"",argomento:"",messaggio:""}),[n,f]=c.useState(!1),[i,d]=c.useState("idle"),[o,m]=c.useState({}),x=t=>a=>r(l=>({...l,[t]:a.target.value}));async function h(t){if(t.preventDefault(),!n){m({consenso:"Devi accettare i termini e l'informativa privacy."});return}d("invio"),m({});const a=new FormData;a.append("nome_progetto","connect"),a.append("name",s.name.trim()),a.append("surname",s.surname.trim()),a.append("email",s.email.trim()),a.append("azienda",s.azienda.trim()),a.append("qualifica_professionale",s.qualifica_professionale.trim()),a.append("citta",s.citta.trim()),a.append("dati_progetto[argomento]",s.argomento.trim()),a.append("dati_progetto[messaggio]",s.messaggio.trim()),a.append("dati_progetto[privacy]","true");try{await w(a),d("ok")}catch(l){const u=l instanceof Error?l.message:"";if(u.includes("422"))try{const k=JSON.parse(u.replace(/^Errore HTTP 422: /,"")),g={};for(const[y,j]of Object.entries(k.errors??{}))g[y]=j[0]??"Valore non valido";m(g)}catch{}d("errore")}}if(i==="ok")return e.jsxs("div",{className:"border border-forbes-rule p-8 text-center",children:[e.jsx("p",{className:"font-serif text-2xl text-forbes-ink",children:"Grazie per il suo interesse."}),e.jsx("p",{className:"mt-2 text-forbes-muted",children:"Valuteremo la sua richiesta al più presto."}),e.jsx(p,{to:"/",className:"mt-6 inline-block rounded-full border border-forbes-ink px-5 py-2.5 text-[12px] font-bold uppercase tracking-[0.16em] text-forbes-ink hover:bg-forbes-ink hover:text-white transition-colors",children:"Torna alla home"})]});const b="w-full border border-forbes-rule bg-white px-4 py-3 text-[15px] text-forbes-ink placeholder:text-forbes-muted/70 focus:border-forbes-ink focus:outline-none";return e.jsxs("form",{onSubmit:h,noValidate:!0,className:"border border-forbes-rule p-6 md:p-8",children:[e.jsx("h3",{className:"font-serif text-2xl text-forbes-ink",children:"Compila il form"}),e.jsx("p",{className:"mt-1 text-[14px] text-forbes-muted",children:"e verrai ricontattato al più presto"}),e.jsxs("div",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2",children:[z.map(t=>e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"sr-only",children:t.label}),e.jsx("input",{id:`connect-${t.key}`,type:t.type??"text",required:!0,placeholder:`${t.label} *`,value:s[t.key],onChange:x(t.key),className:b,autoComplete:t.key==="email"?"email":t.key==="name"?"given-name":t.key==="surname"?"family-name":"off"}),o[t.key]&&e.jsx("span",{className:"mt-1 block text-[12px] text-forbes-red",children:o[t.key]})]},t.key)),e.jsxs("label",{className:"block sm:col-span-2",children:[e.jsx("span",{className:"sr-only",children:"Messaggio"}
1),e.jsx("textarea",{id:"connect-messaggio",required:!0,rows:4,placeholder:"Messaggio *",value:s.messaggio,onChange:x("messaggio"),className:b})]})]}),e.jsxs("label",{className:"mt-5 flex items-start gap-3 text-[13px] leading-relaxed text-forbes-muted",children:[e.jsx("input",{id:"connect-consenso",type:"checkbox",checked:n,onChange:t=>f(t.target.checked),className:"mt-1 h-4 w-4 accent-forbes-red"}),e.jsxs("span",{children:["Cliccando su âInviaâ dichiari di accettare i"," ",e.jsx(p,{to:"/termini-e-condizioni-duso",target:"_blank",className:"underline hover:text-forbes-red",children:"Termini e condizioni"})," e lâ",e.jsx(p,{to:"/informativa-sulla-privacy",target:"_blank",className:"underline hover:text-forbes-red",children:"Informativa sulla privacy"}),"."]})]}),o.consenso&&e.jsx("p",{className:"mt-1 text-[12px] text-forbes-red",children:o.consenso}),i==="errore"&&!Object.keys(o).length&&e.jsx("p",{className:"mt-4 text-[13px] text-forbes-red",children:"Invio non riuscito. Riprova tra qualche minuto."}),e.jsx("button",{type:"submit",disabled:i==="invio",className:"mt-6 inline-flex items-center rounded-full bg-forbes-red px-7 py-3 text-[12px] font-bold uppercase tracking-[0.16em] text-white transition-colors hover:bg-forbes-ink disabled:opacity-60",children:i==="invio"?"Invio in corsoâ¦":"Invia"})]})}export{P 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.