PageSourceSearch

https://aivana.com/_next/static/chunks/pages/help-a38041c519775789.js

js aivana.com collected 2026-10-07 04:04:27 UTC 15,189 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3705],{79110:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/help",function(){return r(92519)}])},92519:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>k});var i=r(37876),n=r(14232),a=r(46520),o=r(61428),l=r(90964),s=r(87263),d=r(35078),c=r(94515),x=r(94527),p=r(32643),h=r(83679),u=r(91644),m=r(41072),g=r(35582),f=r(20883),y=r(39593),b=r(91408),A=r(95065),j=r(216),w=r(67268),v=r(89099);function k(){let[e,t]=(0,n.useState)(!1),[r,k]=(0,n.useState)(null),W=(0,A.j)(),S=(0,v.useRouter)(),{data:z=[]}=(0,A.G)(e=>e.tools.helpArticles||{data:[],loading:!1,error:null}),F=[{filename:"Learn about Aivana's mission and values",type:"firstStatic",cdn_url:""},...z.map(e=>({...e,type:"dynamic"})),{filename:"Learn about Aivana Chat Assistant",type:"lastStatic",cdn_url:""}],_=(0,A.G)(e=>e.auth.isAuthenticated),C=(0,A.G)(e=>e.auth.user?.email),I=b.Ik().shape({yourName:b.Yj().required("Name is required"),email:b.Yj().email("Invalid email"),requestDetails:b.Yj().required("Please describe your request").max(2e3,"Description must be at most 2000 characters")}).test("at-least-one-contact","Either email is required",function(e){let{email:t}=e||{};return!!t});(0,n.useEffect)(()=>{W((0,j.HO)())},[W]);let[R,D]=(0,n.useState)([]),[P,B]=(0,n.useState)([]),[E,L]=(0,n.useState)([]),q=e=>{e.preventDefault(),e.stopPropagation();let t=Array.from(e.dataTransfer.files),r=t.filter(e=>e.type.startsWith("image/")),i=t.filter(e=>"video/mp4"===e.type),n=t.filter(e=>"application/pdf"===e.type||String(e.name).toLowerCase().endsWith(".pdf"));if(r.length>0){if([...R,...r].reduce((e,t)=>e+(t.size||0),0)>0x1400000){k("Total image size must not exceed 20MB. Please remove some images and try again.");return}k(null),D(e=>[...e,...r])}if(i.length>0){if(i.find(e=>(e.size||0)>0x1400000)){k("Video file must not exceed 20MB. Please upload a smaller video.");return}k(null),B(e=>[...e,...i])}n.length>0&&L(e=>[...e,...n])},O=e=>{let t=e.target.files;if(t){let r=Array.from(t),i=r.filter(e=>e.type.startsWith("image/")),n=r.filter(e=>"video/mp4"===e.type),a=r.filter(e=>"application/pdf"===e.type||String(e.name).toLowerCase().endsWith(".pdf"));if(i.length>0){if([...R,...i].reduce((e,t)=>e+(t.size||0),0)>0x1400000){k("Total image size must not exceed 20MB. Please remove some images and try again."),e.target.value="";return}k(null),D(e=>[...e,...i])}if(n.length>0){if(n.find(e=>(e.size||0)>0x1400000)){k("Video file must not exceed 20MB. Please upload a smaller video."),e.target.value="";return}k(null),B(e=>[...e,...n])}a.length>0&&L(e=>[...e,...a]),e.target.value=""}},M=e=>{D(t=>t.filter((t,r)=>r!==e))},N=e=>{B(t=>t.filter((t,r)=>r!==e))},T=e=>{L(t=>t.filter((t,r)=>r!==e))},U=async(e,{setSubmitting:r,resetForm:i})=>{r(!0),k(null);try{let n=[],a=[...R,...E];if(a&&a.length>0){let e=a.map(e=>e.name);try{let t=await w.apiClient.post("api/v1/user/generate_presigned_url",{files:e,action:"contact-us-files"}),r=t?.data?.data?.data||t?.data?.data||[],i=Array.isArray(r)?r.map(e=>e?.presigned_url||e?.presignedUrl||e?.url).filter(Boolean):[],o=t?.data?.data?.headers||null;if(!i||i.length!==e.length)throw Error("Presigned URLs count mismatch");await Promise.all(i.map(async(e,t)=>{let r=a[t],i=o&&o[t]?o[t]:{"Content-Type":r.type},n=await fetch(e,{method:"PUT",headers:i,body:r});if(!n.ok){let e=await n.text().catch(()=>"");throw Error(`Failed to upload ${r.name}: ${n.status} ${e}`)}}));let l=Array.isArray(r)?r.map(e=>e?.cdn_url||e?.cdnUrl||e?.file_url||e?.url||e?.key||null):[];n=l.filter(Boolean).length===e.length?l.filter(Boolean):e.map(e=>({file_name:e}))}catch(e){k("Failed to upload images. Please try again."),r(!1);return}}let o=await W((0,j.WR)({first_name:e.yourName,email:e.email,origin:"contact_us",description:e.requestDetails,images:n}));j.WR.fulfilled.match(o)?(t(!0),i(),D([]),L([]),B([]),setTimeout(()=>t(!1),5e3)):k("Something went wrong. Please try again.")}catch(e){console.error("Unexpected error submitting form:",e),k("Something went wrong. Please try again.")}finally{r(!1)}};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(a.A,{children:[(0,i.jsxs)(a.A,{sx:{width:"100%",pt:"150px",pb:"100px",background:"linear-gradient(117deg, rgba(115, 137, 255, 0.00) 64.43%, rgba(115, 137, 255, 0.40) 100%), linear-gradient(63deg, rgba(23, 145, 255, 0.40) 0%, rgba(23, 145, 255, 0.00) 35.58%), #FFF",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,i.jsxs)(o.A,{variant:"h2",sx:{fontWeight:"bold",color:"text.primary",mb:4,textAlign:"center",fontSize:{xs:"32px",md:"60px"}},children:["Need"," ",(0,i.jsx)(a.A,{component:"span",sx:{color:"#1791FF"},children:"help"}),"?"]}),(0,i.jsx)(o.A,{sx:{color:m.A.palette.text.primary,fontSize:{xs:16,md:20},fontWeight:m.A.typography.fontWeightMedium,mb:4,textAlign:"center",maxWidth:750},children:"Whether you're exploring AI tools, setting up your Aivana account, or just want to share your feedback—we're here to supp
1ort your journey"})]}),(0,i.jsx)(a.A,{sx:{width:"100%",backgroundColor:"#fff",py:8,m:0},children:(0,i.jsx)(l.A,{children:(0,i.jsxs)(a.A,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row"},gap:{xs:4,lg:"120px"},alignItems:{xs:"flex-start",lg:"flex-start"}},children:[(0,i.jsx)(a.A,{sx:{width:{lg:"400px"},flexShrink:0},children:(0,i.jsxs)(o.A,{variant:"h4",sx:{fontWeight:"theme.typography.fontWeightBold",fontSize:{xs:20,lg:34},lineHeight:1.2,color:m.A.palette.text.primary},children:["Browse these"," ",(0,i.jsx)(a.A,{component:"span",sx:{color:"#1791FF"},children:"help articles"})," ","for answers to common questions"]})}),(0,i.jsx)(a.A,{sx:{flex:1},children:(0,i.jsx)(s.A,{spacing:0,children:F.map((e,t)=>{let r="firstStatic"===e.type,n="lastStatic"===e.type,l=()=>{r?window.open("/aivanaAbout","_blank"):n?window.open("/meetAivanaAi","_blank"):"cdn_url"in e&&e.cdn_url?window.open(e.cdn_url,"_blank"):console.warn("Missing cdn_url for dynamic article")};return(0,i.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:2,py:2,borderBottom:t!==F.length-1?"1px solid #E0E0E0":"none"},children:[(0,i.jsx)(a.A,{onClick:l,sx:{cursor:"pointer",color:"#1791FF"},children:(0,i.jsx)(h.FrV,{size:24})}),r||n?(0,i.jsxs)(o.A,{onClick:l,sx:{cursor:"pointer",display:"flex",alignItems:"center",gap:1,fontSize:{xs:16,lg:20},color:m.A.palette.text.primary,fontWeight:m.A.typography.fontWeightRegular,transition:"color 0.2s ease-in-out",flex:1,"&:hover":{color:"#1791FF"}},children:[e.filename,(0,i.jsx)(u.iOX,{size:20})]}):(0,i.jsxs)(d.A,{href:e.cdn_url,underline:"none",target:"_blank",rel:"noopener noreferrer",sx:{display:"flex",alignItems:"center",gap:1,fontSize:{xs:16,lg:20},color:m.A.palette.text.primary,fontWeight:m.A.typography.fontWeightRegular,transition:"color 0.2s ease-in-out",flex:1,"&:hover":{color:"#1791FF"}},children:[e.filename.replace(/_/g," ").replace(".pdf",""),(0,i.jsx)(u.iOX,{size:20})]})]},t)})})})]})})}),(0,i.jsx)(a.A,{sx:{backgroundColor:"#fff",padding:{xs:"40px 16px 40px 16px",md:"100px 149px 50px 149px"}},children:(0,i.jsxs)(l.A,{maxWidth:"md",children:[(0,i.jsxs)(o.A,{variant:"h3",sx:{fontWeight:"theme.typography.fontWeightBold",color:"theme.palette.text.primary",textAlign:"center",mb:3,fontSize:{xs:28,md:48}},children:["Still have"," ",(0,i.jsx)(a.A,{component:"span",sx:{color:"#1791FF"},children:"questions"}),"?"]}),(0,i.jsx)(o.A,{sx:{color:"theme.palette.text.primary",fontSize:20,fontWeight:"medium",mb:7,textAlign:"center",maxWidth:750,mx:"auto"},children:"Let us know what’s going on and our team will get back to you as soon as possible."}),r&&(0,i.jsx)(o.A,{variant:"body2",sx:{color:"error.main",textAlign:"center",mt:2},children:r}),(0,i.jsx)(a.A,{sx:{p:{xs:2,md:4}},children:(0,i.jsx)(y.l1,{initialValues:{yourName:"",email:_&&C||"",requestDetails:""},enableReinitialize:!0,validationSchema:I,onSubmit:U,children:({isSubmitting:t,values:r})=>(0,i.jsx)(y.lV,{children:(0,i.jsxs)(a.A,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,i.jsxs)(a.A,{sx:{display:"flex",flexWrap:"wrap",gap:3,flexDirection:{xs:"column",sm:"row"}},children:[(0,i.jsx)(a.A,{sx:{flex:1},children:(0,i.jsx)(y.D0,{name:"yourName",children:({field:e,meta:t})=>(0,i.jsx)(c.A,{...e,label:"Your Name",fullWidth:!0,error:t.touched&&!!t.error,helperText:t.touched&&t.error,sx:{"& .MuiOutlinedInput-root":{borderRadius:"32px",minHeight:"24px"},"& .MuiOutlinedInput-input":{padding:"16px"}}})})}),(0,i.jsx)(a.A,{sx:{flex:1},children:(0,i.jsx)(y.D0,{name:"email",children:({field:e,meta:t})=>(0,i.jsx)(c.A,{...e,label:"Email Address",fullWidth:!0,error:t.touched&&!!t.error,helperText:t.touched&&t.error,sx:{"& .MuiOutlinedInput-root":{borderRadius:"32px",minHeight:"24px"},"& .MuiOutlinedInput-input":{padding:"16px"}}})})})]}),(0,i.jsx)(y.D0,{name:"requestDetails",children:({field:e,meta:t})=>(0,i.jsx)(c.A,{...e,label:"How can we help you?",fullWidth:!0,multiline:!0,minRows:3,error:t.touched&&!!t.error,helperText:t.touched&&t.error,inputProps:{maxLength:2e3},sx:{mt:2,mb:3,"& .MuiOutlinedInput-root":{borderRadius:"24px"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 16px) scale(1)","&.Mu
1iInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)",backgroundColor:"white",padding:"0 8px"}}}})}),(0,i.jsxs)(o.A,{variant:"body2",color:"textSecondary",sx:{mt:-3,mb:1},children:[r.requestDetails.length," / 2000 characters"]}),(0,i.jsxs)(o.A,{sx:{fontWeight:400,fontSize:14,color:"text.primary"},children:["Share files"," ",(0,i.jsx)(a.A,{component:"span",sx:{color:"text.disabled"},children:"(Optional)"})]}),(0,i.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap",mb:2},children:[R.length>0&&(0,i.jsx)(a.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,width:"fit-content"},children:R.map((e,t)=>(0,i.jsxs)(a.A,{sx:{position:"relative",width:{xs:80,sm:100,md:120},height:{xs:80,sm:100,md:120}},children:[(0,i.jsx)("img",{src:URL.createObjectURL(e),alt:`Preview ${t+1}`,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:8,border:"2px solid #e0e0e0"}}),(0,i.jsx)(x.A,{size:"small",sx:{position:"absolute",top:-8,right:-8,backgroundColor:"error.main",color:"white",width:24,height:24,"&:hover":{backgroundColor:"error.dark"}},onClick:()=>M(t),children:(0,i.jsx)(g.A,{fontSize:"small"})})]},t))}),E.length>0&&(0,i.jsx)(a.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,width:"fit-content"},children:E.map((e,t)=>(0,i.jsxs)(a.A,{sx:{position:"relative",display:"flex",alignItems:"center",gap:1,px:1,py:.5,borderRadius:1,border:"2px solid #e0e0e0",backgroundColor:"#fff"},children:[(0,i.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,i.jsx)(h.FrV,{size:20}),(0,i.jsx)("a",{href:URL.createObjectURL(e),target:"_blank",rel:"noreferrer",style:{textDecoration:"none",color:"inherit"},children:e.name})]}),(0,i.jsx)(x.A,{size:"small",sx:{position:"absolute",top:-8,right:-8,backgroundColor:"error.main",color:"white",width:24,height:24,"&:hover":{backgroundColor:"error.dark"}},onClick:()=>T(t),children:(0,i.jsx)(g.A,{fontSize:"small"})})]},`doc-${t}`))}),P.length>0&&(0,i.jsx)(a.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,width:"fit-content"},children:P.map((e,t)=>(0,i.jsxs)(a.A,{sx:{position:"relative",width:{xs:120,sm:140,md:160},height:{xs:80,sm:90,md:100}},children:[(0,i.jsx)("video",{src:URL.createObjectURL(e),controls:!0,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:8,border:"2px solid #e0e0e0"}}),(0,i.jsx)(x.A,{size:"small",sx:{position:"absolute",top:-8,right:-8,backgroundColor:"error.main",color:"white",width:24,height:24,"&:hover":{backgroundColor:"error.dark"}},onClick:()=>N(t),children:(0,i.jsx)(g.A,{fontSize:"small"})})]},`video-${t}`))}),(0,i.jsx)(a.A,{onDrop:q,onDragOver:e=>e.preventDefault(),onDragEnter:e=>e.preventDefault(),sx:{width:"fit-content",textAlign:"center",cursor:"pointer","&:hover":{"& .upload-border":{borderColor:"primary.main"}},opacity:1},children:(0,i.jsxs)("label",{htmlFor:"file-upload",style:{cursor:"pointer"},children:[(0,i.jsx)("input",{id:"file-upload",type:"file",hidden:!0,multiple:!0,accept:"image/*,video/mp4,application/pdf,.pdf",onChange:O}),(0,i.jsxs)(a.A,{className:"upload-border",sx:{border:"2px dashed #ccc",borderRadius:2,py:3,px:2,width:"fit-content",textAlign:"center",transition:"border-color 0.2s ease"},children:[(0,i.jsx)(a.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(f.A,{style:{fontSize:"48px",color:"#B0B0B0"}})}),(0,i.jsx)(o.A,{variant:"body1",sx:{mb:.5,fontSize:14,fontWeight:400,color:"text.primary"},children:"Select or drag & drop"}),(0,i.jsx)(o.A,{variant:"body2",sx:{fontSize:12,fontWeight:400,color:"text.secondary"},children:"PNG or JPG (max 20MB)"})]})]})})]}),(0,i.jsxs)(o.A,{variant:"body2",sx:{mt:4,textAlign:"center",fontSize:14,color:"text.primary",fontWeight:400},children:["We respect your privacy. Your information will be used solely to respond to your request and help resolve your issue. By submitting your request you accept our"," ",(0,i.jsx)(d.A,{href:`${window.location.origin}/privacyPolicy`,target:"_blank",underline:"hover",sx:{color:"#1791FF",fontWeight:"bold"},children:"Privacy Policy"}),"."]}),(0,i.jsx)(a.A,{sx:{textAlign:"center",mt:4},children:e?(0,i.jsxs)(a.A,{sx:{backgroundColor:"#E8F5E9",borderRadius:"24px",p:2,display:"inline-block"},children:[(0,i.jsx)(o.A,{variant:"body1",sx:{fontWeight:400,fontSize:16,color:m.A.palette.text.primary}
1,children:"Thank you for reaching out to us!"}),(0,i.jsx)(o.A,{variant:"body1",sx:{fontWeight:400,fontSize:16,color:m.A.palette.text.primary},children:"Your request has been submitted, our team will be in contact with you soon."})]}):(0,i.jsx)(p.A,{variant:"contained",type:"submit",disabled:t,sx:{width:200,background:"#1791FF",borderRadius:"24px",textTransform:"none",padding:"8px 22px",fontWeight:500,fontSize:15},children:t?"Sending...":"Send message"})})]})})})})]})}),(0,i.jsx)(a.A,{sx:{width:"100%",display:"flex",justifyContent:"center",background:"linear-gradient(120deg, #eaf3ff 0%, #fff 100%)"},children:(0,i.jsxs)(a.A,{sx:{width:"100%",height:"600px",background:"linear-gradient(117deg, rgba(115, 137, 255, 0.00) 64.43%, rgba(115, 137, 255, 0.40) 100%), linear-gradient(63deg, rgba(23, 145, 255, 0.40) 0%, rgba(23, 145, 255, 0.00) 35.58%), #FFF",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",px:2},children:[(0,i.jsxs)(o.A,{variant:"h1",sx:{fontWeight:700,mb:5,fontSize:{xs:32,lg:60}},children:["Become an"," ",(0,i.jsx)(a.A,{component:"span",sx:{color:"#1791FF"},children:"Aivana partner"})]}),(0,i.jsx)(o.A,{variant:"body1",sx:{color:"theme.palette.text.primary",fontSize:{xs:16,lg:20},fontWeight:500,maxWidth:600,mb:3},children:"Whether you're building an AI tool, running a community, or supporting the future of democratized AI - we’d love to hear from you."}),(0,i.jsx)(p.A,{variant:"contained",onClick:()=>S.push("/sponsor"),sx:{background:"#1791FF",borderRadius:"24px",textTransform:"none",padding:"8px 22px",fontWeight:500,fontSize:15},children:"Learn about partnership"})]})})]})})}}},e=>{var t=t=>e(e.s=t);e.O(0,[4938,1287,4654,3368,4515,3124,1084,7184,1644,636,6593,8792],()=>t(79110)),_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.