1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1364],{3544:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>g});var n=a(7876),s=a(8230),i=a.n(s),r=a(4232),o=a(9038),c=a(4237),l=a(8193),m=a(2695),d=a(5667),p=a(9610),u=a(8900);let h={ro:{title:"Scrie-ne",lead:"\xceÈi rÄspundem \xeen 24 de ore.",name:"Nume",email:"Email",topic:"Subiect",topics:{question:"\xcentrebare",billing:"PlatÄ / facturare",technical:"ProblemÄ tehnicÄ",partnership:"Colaborare / API"},message:"Mesaj",messagePh:"Cu ce te putem ajuta?",attach:"AtaÈeazÄ o imagine (opÈional, max. 5 MB)",tooBig:"Imaginea depÄÈeÈte 5 MB.",consentBefore:"Sunt de acord ca datele de mai sus sÄ fie folosite pentru a-mi rÄspunde (",privacy:"confidenÈialitate",consentAfter:").",send:"Trimite",sentTitle:"Mesaj trimis â",sentDesc:"Èi-am trimis o confirmare pe email. \xceÈi rÄspundem \xeen 24 de ore.",another:"Alt mesaj",errInvalid:"VerificÄ c\xe2mpurile marcate.",errLimit:"Prea multe mesaje. \xcencearcÄ peste o orÄ.",errSend:"Nu s-a putut trimite. Scrie-ne direct la",response:"RÄspuns \xeen 24 de ore",askAssistant:"\xcentreabÄ asistentul",help:"\xcentrebÄri frecvente"},en:{title:"Write to us",lead:"We reply within 24 hours.",name:"Name",email:"Email",topic:"Topic",topics:{question:"Question",billing:"Payment / billing",technical:"Technical issue",partnership:"Partnership / API"},message:"Message",messagePh:"How can we help?",attach:"Attach an image (optional, max 5 MB)",tooBig:"The image is larger than 5 MB.",consentBefore:"I agree that the data above is used to reply to me (",privacy:"privacy",consentAfter:").",send:"Send",sentTitle:"Message sent â",sentDesc:"We emailed you a confirmation. We'll reply within 24 hours.",another:"Another message",errInvalid:"Check the highlighted fields.",errLimit:"Too many messages. Try again in an hour.",errSend:"Could not send. Email us directly at",response:"Reply within 24 hours",askAssistant:"Ask the assistant",help:"Frequently asked questions"},de:{title:"Schreiben Sie uns",lead:"Wir antworten innerhalb von 24 Stunden.",name:"Name",email:"E-Mail",topic:"Thema",topics:{question:"Frage",billing:"Zahlung / Rechnung",technical:"Technisches Problem",partnership:"Zusammenarbeit / API"},message:"Nachricht",messagePh:"Wie k\xf6nnen wir helfen?",attach:"Bild anh\xe4ngen (optional, max. 5 MB)",tooBig:"Das Bild ist gr\xf6\xdfer als 5 MB.",consentBefore:"Ich bin einverstanden, dass die obigen Daten f\xfcr die Antwort verwendet werden (",privacy:"Datenschutz",consentAfter:").",send:"Senden",sentTitle:"Nachricht gesendet â",sentDesc:"Wir haben Ihnen eine Best\xe4tigung per E-Mail geschickt. Wir antworten innerhalb von 24 Stunden.",another:"Weitere Nachricht",errInvalid:"Bitte pr\xfcfen Sie die markierten Felder.",errLimit:"Zu viele Nachrichten. Versuchen Sie es in einer Stunde erneut.",errSend:"Senden nicht m\xf6glich. Schreiben Sie uns direkt an",response:"Antwort innerhalb von 24 Stunden",askAssistant:"Assistenten fragen",help:"H\xe4ufige Fragen"},it:{title:"Scrivici",lead:"Ti rispondiamo entro 24 ore.",name:"Nome",email:"Email",topic:"Argomento",topics:{question:"Domanda",billing:"Pagamento / fatturazione",technical:"Problema tecnico",partnership:"Collaborazione / API"},message:"Messaggio",messagePh:"Come possiamo aiutarti?",attach:"Allega un'immagine (facoltativa, max 5 MB)",tooBig:"L'immagine supera i 5 MB.",consentBefore:"Accetto che i dati qui sopra vengano usati per rispondermi (",privacy:"privacy",consentAfter:").",send:"Invia",sentTitle:"Messaggio inviato â",sentDesc:"Ti abbiamo inviato una conferma via email. Ti rispondiamo entro 24 ore.",another:"Un altro messaggio",errInvalid:"Controlla i campi evidenziati.",errLimit:"Troppi messaggi. Riprova tra un'ora.",errSend:"Invio non riuscito. Scrivici direttamente a",response:"Risposta entro 24 ore",askAssistant:"Chiedi all'assistente",help:"Domande frequenti"},fr:{title:"\xc9crivez-nous",lead:"Nous r\xe9pondons sous 24 heures.",name:"Nom",email:"E-mail",topic:"Sujet",topics:{question:"Question",billing:"Paiement / facturation",technical:"Probl\xe8me technique",partnership:"Partenariat / API"},message:"Message",messagePh:"Comment pouvons-nous vous aider ?",attach:"Joindre une image (facultatif, 5 Mo max.)",tooBig:"L'image d\xe9passe 5 Mo.",consentBefore:"J'accepte que les donn\xe9es ci-dessus soient utilis\xe9es pour me r\xe9pondre (",privacy:"confidentialit\xe9",consentAfter:").",send:"Envoyer",sentTitle:"Message envoy\xe9 â",sentDesc:"Nous vous avons envoy\xe9 une confirmation par e-mail. Nous r\xe9pondons sous 24 heures.",another:"Autre message",errInvalid:"V\xe9rifiez les champs signal\xe9s.",errLimit:"Trop de messages. R\xe9essayez dans une heure.",errSend:"Envoi impossible. \xc9crivez-nous directement \xe0",response:"R\xe9ponse sous 24 heures",askAssistant:"Demander \xe0 l'assistant",help:"Questions fr\xe9quentes"},es:{title:"Escr\xedbenos",lead:"Te respondemos en 24 horas.",name:"Nombre",email:"Email",topic:"Asunto",topics:{question:"Pregunta",billing:"Pago / facturaci\xf3n",technical:"Problema t\xe9cnico",partnership:"Colaboraci\xf3n / API"},message:"Mensaje",messagePh:"\xbfEn qu\xe9 podemos ayudarte?",attach:"Adjunta una imagen (opcional, m\xe1x. 5 MB)",tooBig:"La imagen supera los 5 MB.",consentBefore:"Acepto que los datos anteriores se usen para responderme (",privacy:"privacidad",consentAfter:").",send:"Enviar",sentTitle:"Mensaje enviado â",sentDesc:"Te hemos enviado una confirmaci\xf3n por email. Te respondemos en 24 horas.",another:"Otro mensaje",errInvalid:"Revisa los campos marcados.",errLimit:"Demasiados mensajes. Int\xe9ntalo dentro de una hora.",errSend:"No se pudo enviar. Escr\xedbenos directamente a",response:"Respuesta en 24 horas",askAssistant:"Pregunta al asistente",help:"Preguntas frecuentes"}};function g(){let{t:e,language:t}=(0,d.o)(),a=(0,p.Oo)(t),s=h[a],[g,x]=(0,r.useState)(""),[f,b]=(0,r.useState)(""),[y,v]=(0,r.useState)("question"),[j,w]=(0,r.useState)(""),[N,S]=(0,r.useState)(null),[A,k]=(0,r.useState)(!1),[C,P]=(0,r.useState)(""),[D,M]=(0,r.useState)(!1),[B,q]=(0,r.useState)(!1),[T,E]=(0,r.useState)(null),[I,_]=(0,r.useState)([]),[L,z]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/auth/me",{credentials:"include"}).then(e=>e.json()).then(e=>{var t;(null==e||null==(t=e.user)?void 0:t.email)&&b(t=>t||e.user.email)}).catch(()=>{}),fetch("/api/assistant").then(e=>e.ok?e.json():null).then(e=>z(!!(null==e?void 0:e.enabled))).catch(()=>{})},[]);let V=async e=>{e.preventDefault(),E(null);let t=[g.trim().length<2&&"name",!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(f.trim())&&"email",j.trim().length<10&&"message",!A&&"consent"].filter(
1Boolean);if(_(t),t.length)return E(s.errInvalid);M(!0);try{let e=new FormData;e.append("name",g.trim()),e.append("email",f.trim()),e.append("topic",y),e.append("message",j.trim()),e.append("consent",String(A)),e.append("lang",a),e.append("website",C),N&&e.append("file",N,N.name);let t=await fetch("/api/contact",{method:"POST",body:e,credentials:"include"}),n=await t.json().catch(()=>({}));if(429===t.status)throw Error(s.errLimit);if(400===t.status)throw _(n.fields||[]),Error(s.errInvalid);if(!t.ok)throw Error("".concat(s.errSend," ").concat(u.Kq.email));q(!0)}catch(e){E(e instanceof Error?e.message:"".concat(s.errSend," ").concat(u.Kq.email))}finally{M(!1)}},W=e=>"w-full rounded-xl border bg-panel px-4 py-3 text-base text-fg placeholder:text-subtle focus:border-subtle focus:outline-none ".concat(I.includes(e)?"border-red-400/60":"border-line");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{title:e("seo.contactTitle"),description:e("seo.contactDesc")}),(0,n.jsx)(l.A,{}),(0,n.jsx)("main",{className:"min-h-screen bg-ink pt-16 text-fg",children:(0,n.jsxs)("div",{className:"mx-auto grid max-w-5xl gap-8 px-4 py-8 sm:px-6 sm:py-14 lg:grid-cols-[1.6fr_1fr]",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"text-3xl font-semibold tracking-tight sm:text-4xl",children:s.title}),(0,n.jsx)("p",{className:"mt-2 text-muted",children:s.lead}),B?(0,n.jsxs)("div",{className:"mt-6 rounded-2xl border border-line bg-panel p-6 text-center",children:[(0,n.jsx)("p",{className:"text-lg font-semibold",children:s.sentTitle}),(0,n.jsx)("p",{className:"mt-2 text-sm text-muted",children:s.sentDesc}),(0,n.jsx)("button",{type:"button",onClick:()=>{q(!1),w(""),S(null)},className:"mt-5 min-h-[44px] rounded-full border border-line px-5 text-sm hover:bg-panel-2",children:s.another})]}):(0,n.jsxs)("form",{onSubmit:V,className:"mt-6 space-y-4",noValidate:!0,children:[(0,n.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1.5 block text-sm text-muted",children:s.name}),(0,n.jsx)("input",{value:g,onChange:e=>x(e.target.value),autoComplete:"name",maxLength:100,className:W("name")})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1.5 block text-sm text-muted",children:s.email}),(0,n.jsx)("input",{type:"email",inputMode:"email",value:f,onChange:e=>b(e.target.value),autoComplete:"email",maxLength:200,className:W("email")})]})]}),(0,n.jsxs)("fieldset",{children:[(0,n.jsx)("legend",{className:"mb-1.5 text-sm text-muted",children:s.topic}),(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.keys(s.topics).map(e=>(0,n.jsx)("button",{type:"button","aria-pressed":y===e,onClick:()=>v(e),className:"min-h-[44px] rounded-full border px-4 text-sm transition-colors ".concat(y===e?"border-fg bg-fg text-ink":"border-line text-muted hover:bg-panel-2 hover:text-fg"),children:s.topics[e]},e))})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1.5 block text-sm text-muted",children:s.message}),(0,n.jsx)("textarea",{value:j,onChange:e=>w(e.target.value),rows:5,maxLength:5e3,placeholder:s.messagePh,className:"".concat(W("message")," resize-y leading-relaxed")})]}),(0,n.jsx)("input",{type:"text",name:"website",value:C,onChange:e=>P(e.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute -left-[9999px] h-0 w-0 opacity-0"}),N?(0,n.jsxs)("div",{className:"flex min-h-[44px] items-center justify-between gap-3 rounded-xl border border-line bg-panel px-4 text-sm",children:[(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-2 truncate",children:[(0,n.jsx)(o.EHs,{className:"shrink-0 text-xs text-subtle"})," ",N.name]}),(0,n.jsx)("button",{type:"button",onClick:()=>S(null),"aria-label":"\xd7",className:"flex h-10 w-10 items-center justify-center text-subtle hover:text-fg",children:(0,n.jsx)(o.QCr,{})})]}):(0,n.jsxs)("label",{className:"flex min-h-[44px] cursor-pointer items-center gap-2 rounded-xl border border-dashed px-4 text-sm text-muted hover:border-subtle ".concat(I.includes("file")?"border-red-400/60":"border-line"),children:[(0,n.jsx)(o.EHs,{className:"text-xs"})," ",s.attach,(0,n.jsx)("input",{type:"file",accept:"image/*",className:"hidden",onChange:e=>{var t;let a=(null==(t=e.target.files)?void 0:t[0])||null;if(e.target.value="",a&&a.size>5242880)return E(s.tooBig);E(null),S(a)}})]}),(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 text-sm ".concat(I.includes("consent")?"text-red-400":"text-muted"),children:[(0,n.jsx)("input",{type:"checkbox",checked:A,onChange:e=>k(e.target.checked),className:"mt-0.5 h-5 w-5 shrink-0 accent-current"}),(0,n.jsxs)("span",{children:[s.consentBefore,(0,n.jsx)(i(),{href:"/privacy",target:"_blank",className:"text-fg underline underline-offset-4",children:s.privacy}),s.consentAfter]})]}),T&&(0,n.jsx)("p",{role:"alert",className:"text-sm text-red-400",children:T}),(0,n.jsxs)("button",{type:"submit",disabled:D,className:"flex min-h-[52px] w-full items-center justify-center gap-2 rounded-xl bg-fg px-6 text-base font-semibold text-ink disabled:opacity-60 sm:w-auto",children:[D&&(0,n.jsx)(o.hW,{className:"animate-spin"})," ",s.send]})]})]}),(0,n.jsxs)("aside",{className:"space-y-3 lg:pt-16",children:[(0,n.jsxs)("a",{href:"mailto:".concat(u.Kq.email),className:"flex min-h-[56px] items-center gap-3 rounded-2xl border border-line bg-panel px-4 hover:bg-panel-2",children:[(0,n.jsx)(o.maD,{className:"text-subtle"}),(0,n.jsx)("span",{className:"break-all text-sm text-fg",children:u.Kq.email})]}),(0,n.jsxs)("p",{className:"flex min-h-[56px] items-center gap-3 rounded-2xl border border-line bg-panel px-4 text-sm text-muted",children:[(0,n.jsx)(o.w_X,{className:"text-subtle"})," ",s.response]}),L&&(0,n.jsxs)("button",{type:"button",onClick:()=>window.dispatchEvent(new Event("3dview:open-assistant")),className:"flex min-h-[56px] w-full items-center gap-3 rounded-2xl border border-line bg-panel px-4 text-left text-sm text-fg hover:bg-panel-2",children:[(0,n.jsx)(o.hYw,{className:"text-subtle"})," ",s.askAssistant]}),(0,n.jsxs)(i(),{href:"/help",className:"flex min-h-[56px] items-center gap-3 rounded-2xl border border-line bg-panel px-4 text-sm text-fg hover:bg-panel-2",children:[(0,n.jsx)(o.CMH,{className:"text-subtle"})," ",s.help]}),(0,n.jsxs)("p",{className:"px-1 pt-2 text-xs text-subtle",children:[u.Kq.name," \xb7 CUI ",u.Kq.cui]})]})]})}),(0,n.jsx)(m.A,{})]})}},4237:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(7876),s=a(7328),i=a.n(s),r=a(9099),o=a(5667),c=a(8900),l=a(9323),m=a(8300);function d(e){let{title:t,description:a,image:s,type:d="website",date:p,author:u="3DView.ai",breadcrumbTitle:h,twitterCard:g="summary_large_image",faq:x,softwareApp:f=!1,howTo:b}=e,y=(0,r.useRouter)(),{language:v}=(0,o.o)(),j=m.W6,w="".concat(j,"/poza.png"),N=t?t.includes("3DView")?t:"".concat(t," | 3DView.ai"):"3DView.ai - AI Text to 3D Model Generator",S=a||"Generate 3D models (GLB) from a photo or a text prompt with AI, host them online and view them in AR.",A=s?s.startsWith("http")?s:"".concat(j).concat(s):w,k=y.asPath.split("?")[0].split("#")[0]||"/",C="/"===k,P=(0,m.rC)(v,k),D=(0,m.rC)(v,"/"),M={"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"".concat(j,"/#organization"),name:"3DView.ai",url:j,logo:"".concat(j,"/logo.png"),legalName:c.Kq.name,taxID:c.Kq.cui,email:c.Kq.email,address:{"@type":"PostalAddress",streetAddress:c.Kq.street,addressLocality:c.Kq.locality,addressRegion:c.Kq.county,postalCode:c.Kq.postalCode,addressCountry:c.Kq.country}},{"@type":"WebSite","@id":"".concat(j,"/#website"),url:j,name:"3DView.ai",inLanguage:v,publisher:{"@id":"".concat(j,"/#organization")},potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:"".concat((0,m.rC)(v,"/shop"),"?q={search_term_string}")},"query-input":"required name=search_term_string"}}]},B=l.fS,q=B.packs.map(e=>e.priceUsd),T=f?{"@context":"https://schema.org","@type":"SoftwareApplication",name:"3DView.ai",url:D,applicationCategory:"DesignApplication",operatingSystem:"Web",description:S,inLanguage:v,publisher:{"@id":"".concat(j,"/#organization")},offers:{"@type":"AggregateOffer",priceCurrency:"USD",lowPrice:Math.min(...q),highPrice:Math.max(...q),offerCount:q.length}}:null,E=f&&"/pricing"===k?{"@context":"https://schema.org","@graph":B.packs.map(e=>({"@type":"Product",name:"3DView.ai ".concat(e.name," â ").concat(e.credits," credits"),description:S,brand:{"@type":"Brand",name:"3DView.ai"},image:w,offers:{"@type":"Offer",price:e.priceUsd,priceCurrency:"USD",availability:"https://schema.org/InStock",url:P,seller:{"@id":"".concat(j,"/#organization")}}}))}:null,I="article"===d?{"@context":"https://schema.org","@type":"BlogPosting",headline:t,description:S,image:A,author:u.includes("3DView")?{"@id":"".concat(j,"/#organization")}:{"@type":"Person",name:u},publisher:{"@id":"".concat(j,"/#organization")},...p&&{datePublished:p,dateModified:p},inLanguage:v,mainEntityOfPage:{"@type":"WebPage","@id":P}}:null,_=C?[]:[{name:"3DView.ai",item:D},..."article"===d?[{name:"Blog",item:(0,m.rC)(v,"/blog")}]:[],{name:h||t||N,item:P}],L=_.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:_.map((e,t)=>({"@type":"ListItem",position:t+1,name:e.name,item:e.item}))}:null,z=x&&x.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:x.map(e=>
1({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}:null,V=b&&b.steps.length?{"@context":"https://schema.org","@type":"HowTo",name:b.name,inLanguage:v,step:b.steps.map((e,t)=>({"@type":"HowToStep",position:t+1,name:e.name,text:e.text}))}:null,W=m.Kf[v]||"en_US";return(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:N}),(0,n.jsx)("meta",{name:"description",content:S},"description"),(0,n.jsx)("meta",{property:"og:type",content:"article"===d?"article":"website"}),(0,n.jsx)("meta",{property:"og:url",content:P}),(0,n.jsx)("meta",{property:"og:title",content:N}),(0,n.jsx)("meta",{property:"og:description",content:S}),(0,n.jsx)("meta",{property:"og:image",content:A}),(0,n.jsx)("meta",{property:"og:image:alt",content:N}),(0,n.jsx)("meta",{property:"og:site_name",content:"3DView.ai"}),(0,n.jsx)("meta",{property:"og:locale",content:W}),"article"===d&&p&&(0,n.jsx)("meta",{property:"article:published_time",content:p}),(0,n.jsx)("meta",{name:"twitter:card",content:g}),(0,n.jsx)("meta",{name:"twitter:title",content:N}),(0,n.jsx)("meta",{name:"twitter:description",content:S}),(0,n.jsx)("meta",{name:"twitter:image",content:A}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"32x32"}),(0,n.jsx)("link",{rel:"icon",href:"/favicon.svg",type:"image/svg+xml"}),(0,n.jsx)("link",{rel:"apple-touch-icon",href:"/apple-touch-icon.png"}),[M,T,E,I,L,z,V].filter(Boolean).map((e,t)=>(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},"ld-".concat(t)))]})}},5276:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(3544)}])},9323:(e,t,a)=>{"use strict";a.d(t,{$g:()=>i,Ql:()=>r,fS:()=>n});let n={currency:"USD",aiCredits:10,scanCredits:50,noBrandingCredits:30,shopCredits:10,shopCacheDays:30,signupCredits:10,offer:{windowHours:48,reminderHoursBefore:6,secondChanceAfterDays:7,secondChanceHours:24},retention:{unpaidDays:30,warnDaysBefore:5,inactiveMonths:12,inactiveWarnDays:30},packs:[{id:"test",name:"Test",credits:80,priceUsd:7,offerPriceUsd:3},{id:"standard",name:"Standard",credits:250,priceUsd:19},{id:"pro",name:"Pro",credits:750,priceUsd:49,popular:!0}],scan:{minPhotos:20,recommendedMin:30,recommendedMax:80,maxPhotos:300,maxVideoMb:1e3}},s=["ro","de","it","fr","es"];function i(e,t){let a=1e-9>Math.abs(e-Math.round(e))?String(Math.round(e)):e.toFixed(2);return s.includes(t)?"".concat(a.replace(".",",")," $"):"$".concat(a)}function r(e,t){if("ro"===t){if(1===e)return"1 credit";let t=Math.abs(e)%100;return"".concat(e," ").concat(0!==e&&(0===t||t>=20)?"de credite":"credite")}return"de"===t?"".concat(e," ").concat(1===e?"Credit":"Credits"):"it"===t?"".concat(e," ").concat(1===e?"credito":"crediti"):"fr"===t?"".concat(e," ").concat(2>Math.abs(e)?"cr\xe9dit":"cr\xe9dits"):"es"===t?"".concat(e," ").concat(1===e?"cr\xe9dito":"cr\xe9ditos"):"".concat(e," ").concat(1===e?"credit":"credits")}}},e=>{e.O(0,[2695,636,6593,8792],()=>e(e.s=5276)),_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.