!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e512eb61-01bc-418e-9821-0708bd2c1272",e._sentryDebugIdIdentifier="sentry-dbid-e512eb61-01bc-418e-9821-0708bd2c1272")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{2353:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var a=r(75271),n=r(52289),s=Object.defineProperty,i=Object.defineProperties,l=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&m(e,r,t[r]);if(o)for(var r of o(t))d.call(t,r)&&m(e,r,t[r]);return e},h=(e,t)=>i(e,l(t));let p=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),a.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),x=(0,a.forwardRef)((e,t)=>a.createElement(n.Z,h(u({ref:t},e),{weights:p})));x.displayName="ArrowRight"},95405:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(16033)}])},22328:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(42138).Z)("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},57280:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(42138).Z)("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]])},92548:function(e,t,r){"use strict";r.d(t,{H:function(){return l}});var a=r(13200),n=r(11615),s=r(83325);let i=async e=>{let{signal:t}=e,r=new AbortController;t?.addEventListener("abort",()=>{r.abort()});let a=(0,s.HR)().signal(r);return await a.url("voice-names").get().json(e=>n.z.object({voice_names:n.z.array(n.z.object({preview_url:n.z.string(),requires_evi_2:n.z.boolean(),voice_name:n.z.string(),voice_provider:n.z.string()}))}).parse(e))},l=()=>(0,a.a)({queryKey:["listBaseVoices"],queryFn:async e=>{let{signal:t}=e;try{return await i({signal:t})}catch(e){throw Error("Unable to list voices")}},meta:{showToast:!1}})},66895:function(e,t,r){"use strict";r.d(t,{b:function(){return m}});var a=r(52676),n=r(79506),s=r(2808),i=r(57280),l=r(14463),o=r(59984),c=r(84799);let d=(0,s.j)("",{variants:{variant:{default:"bg-neutral-200 dark:bg-neutral-700",error:"bg-tw-red-200 dark:bg-tw-red-700",warning:"bg-orange-200 dark:bg-orange-400"}},defaultVariants:{variant:"default"}}),m=e=>{let{icon:t,heading:r,variant:s,children:m,className:u,...h}=e,p=t??(0,c.EQ)(s??"default").with("default",()=>i.Z).with("error",()=>l.Z).with("warning",()=>o.Z).exhaustive();return(0,a.jsxs)("div",{className:(0,n.cn)(d({variant:s}),"flex rounded-md p-4",u),...h,children:[(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(p,{className:"size-5","aria-hidden":"true",strokeWidth:1.5})}),(0,a.jsxs)("div",{className:"ml-3 grow",children:[r?(0,a.jsx)("div",{className:"text-sm font-medium",children:r}):null,(0,a.jsx)("div",{className:"text-sm",children:m})]})]})}},15745:function(e,t,r){"use strict";r.d(t,{$:function(){return c}});var a=r(52676),n=r(79506);let s=e=>{let{text:t,className:r}=e;return(0,a.jsxs)("p",{className:(0,n.cn)("pe-2 ps-2",r),children:[t,(0,a.jsx)("span",{className:"animate-text-ellipsis [animation-delay:0s]",children:"."}),(0,a.jsx)("span",{className:"animate-text-ellipsis [animation-delay:0.3s]",children:"."}),(0,a.jsx)("span",{className:"animate-text-ellipsis [animation-delay:0.6s]",children:"."})]})};var i=r(47018),l=r(2808),o=r(30829);let c=e=>{let{color:t="primary",withText:r=!1,text:c,size:d="md",classes:m=""}=e,u=(0,o.useTranslations)("Common"),h=(0,l.j)("animate-[spin_3s_linear_infinite]",{variants:{color:{primary:"[&>path]:fill-neutral-800",white:"[&>path]:fill-[white]"},size:{sm:"size-4",md:"size-6",lg:"size-8"}},defaultVariants:{color:"primary",size:"md"}});return(0,a.jsxs)("div",{className:(0,n.cn)("flex h-full items-center justify-center",m),children:[(0,a.jsx)(i.L,{className:h({color:t,size:d})}),r?(0,a.jsx)(s,{text:c??u("processing")}):null]})}},98126:function(e,t,r){"use strict";r.d(t,{n:function(){return o}});var a=r(52676),n=r(66895),s=r(20676),i=r(30829);let l=e=>{let{children:t}=e;return(0,a.jsx)(a.Fragment,{children:t})},o=e=>{let{wrapper:t}=e,r=(0,s.Vb)(),o=(0,i.useTranslations)("Errors.highVolumeWarning");return r.highVolumeWarning?(0,a.jsx)(t??l,{children:(0,a.jsx)(n.b,{title:o("title"),children:o("text")})}):null}},72074:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var a=r(52676),n=r(15745);let s=()=>(0,a.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,a.jsx)(n.$,{})})},67882:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var a=r(89107),n=r(15028),s=r(75271);let i=()=>{let e=(0,n.useRouter)(),{pathname:t}=e,r="/complete-registration",{user:i,isSignedInWithProvider:l}=(0,a.a)(),o=l&&i&&(!i?.firstName||!i?.lastName||!i?.useCase.length),c=!l&&i&&(!i?.firstName||!i?.lastName)||o,d=(0,s.useCallback)(()=>{c&&t!==r?e.push(r):i&&!c&&t===r&&e.push("/")},[t,e,c,i]);return{isPostRegistration:c,handlePostRegistration:d}}},90246:function(e,t,r){"use strict";r.d(t,{Hm:function(){return s},YN:function(){return c},e1:function(){return o},p4:function(){return i},rf:function(){return d}});var a=r(88955);let n="login-redirect",s=(e,t)=>{let r=new URL(t,e);return r.search="",r.pathname},i=e=>`/${e.replace(/^\//,"")}`,l=e=>new Promise((t,r)=>{if("/log-in"===e.pathname||"/log-out"===e.pathname)return r();try{let r=(0,a.x0)();return window.sessionStorage.setItem(`${n}:${r}`,JSON.stringify(e)),t(r)}catch(e){return r()}}),o=e=>new Promise((t,r)=>{try{let a=window.sessionStorage.getItem(`${n}:${e}`);if(!a)return r();let s=JSON.parse(a);if("object"!=typeof s||null===s)return r();t(s)}catch(e){r()}}),c=e=>{let{next:t}=e.query;return"string"==typeof t?t:null},d=(e,t)=>l(t).then(t=>e({pathname:"/log-in",query:{next:t}})).catch(()=>e({pathname:"/log-in"}))},16033:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return J},default:function(){return X}});var a=r(52676),n=r(21964),s=r(11615),i=r(83325),l=r(51095);s.z.object({variant:s.z.string()});let o=async(e,t)=>{let{firebaseUid:r,token:a}=e;if(!r)throw Error("firebaseUid is required");if(!a)throw Error("token is required");return i.hU.url(`/users/ftue/log/${r}`).auth(`Bearer ${a}`).json(t).put().res().catch(()=>{}).finally(()=>void l.E.invalidateQueries(["getUserProfile"]))},c=e=>(0,n.D)({mutationFn:t=>o(e,t)});var d=r(98126),m=r(59787),u=r(64317),h=r(79506),p=r(32915),x=r(30829);let g=e=>{let{onSelection:t}=e,r=(0,x.useTranslations)("Onboarding.firstTimeUserModal"),n=[{path:"webcam",title:r("webcam.title"),description:r("webcam.description")},{path:"file",title:r("file.title"),description:r("file.description")},{path:"text",title:r("text.title"),description:r("text.description")}];return(0,a.jsx)("div",{className:"flex flex-wrap gap-4",children:n.map(e=>(0,a.jsxs)("button",{onClick:()=>{t(e.path)},className:(0,h.cn)("basis-1/3 first:basis-full","h-40","p-4 pr-5","group relative flex shrink grow flex-col rounded-lg md:text-left","transition-colors","outline-none","webcam"===e.path&&["bg-orange-200/50","hover:bg-orange-200","focus:bg-orange-200","focus:ring-2 focus:ring-orange-300"],"file"===e.path&&["bg-blue-200/50","hover:bg-blue-300","focus:bg-blue-300","focus:ring-2 focus:ring-blue-300"],"text"===e.path&&["bg-pink-200/50","hover:bg-pink-200","focus:bg-pink-200","focus:ring-2 focus:ring-pink-300"]),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"font-medium",children:e.title}),(0,a.jsx)("p",{className:"max-w-prose font-normal",children:e.description})]}),(0,a.jsx)("div",{className:(0,h.cn)("absolute bottom-4 right-4","flex size-5 items-center justify-center rounded-full","webcam"===e.path&&["bg-orange-300"],"file"===e.path&&["bg-blue-300"],"text"===e.path&&["bg-pink-300"]),children:(0,a.jsx)(p.Z,{className:(0,h.cn)("size-3")})})]},`playground-action--${e.path}`))})};var f=r(89107),v=r(15028),b=r(75271);let j=()=>{let e=(0,x.useTranslations)("Onboarding.firstTimeUserModal"),{user:t}=(0,f.a)(),{mutate:r}=c({firebaseUid:t?.firebaseUid,token:t?.token}),n=(0,v.useRouter)(),[s,i]=(0,b.useState)(!0),l=()=>{r({variant:"modal"})};return(0,a.jsx)(u.Vq,{open:s,onOpenChange:e=>{e||l(),i(e)},children:(0,a.jsxs)(u.cZ,{showCloseButton:!1,className:"p-4",children:[(0,a.jsx)(u.fK,{children:(0,a.jsxs)("div",{className:"flex flex-col px-5 pb-2 pt-4",children:[(0,a.jsx)("h1",{className:"pb-1 text-xl font-semibold",children:e("header.title")}),(0,a.jsx)("p",{className:"max-w-prose text-base",children:e("header.description")})]})}),(0,a.jsx)(u.Be,{asChild:!0,children:(0,a.jsx)("div",{className:"px-1",children:(0,a.jsx)(g,{onSelection:e=>{n.push({pathname:`/playground/${e}`}).then(()=>l()).catch(()=>{})}})})}),(0,a.jsx)(u.cN,{children:(0,a.jsx)(m.z,{variant:"default",level:"tertiary",actionName:"skip first time user modal",size:"sm",onClick:()=>{l(),i(!1)},children:e("footer.skip")})})]})})};var y=r(349),N=r(92548),k=r(2353),w=r(37972),z=r(33856);let _=e=>{let{title:t,subtitle:r,primaryCTA:n,secondaryCTA:s}=e,i=(0,N.H)(),l=i.data?.voice_names.map(e=>e.voice_name.toLowerCase())??[],o=[[...l].concat([...l]),["Expressivity","Femininity","Speed","Pitch","Accent","Extroversion","Raspiness","Formality","Rhythm","Enunciation"],["Hume LLM","Web Search","Tool Use","External LLM","Custom LLM","TTS Injection"],["NPC","Assistant","Coach","Agent","Tutor","Clinician","App UI"],["Twilio","Typescript","Python","React","API"]];return(0,a.jsxs)("div",{className:(0,h.cn)("shrink-0 grow-0 rounded-lg p-6 lg:p-8","h-auto lg:h-96","relative flex flex-col-reverse justify-center gap-4 md:gap-6 lg:flex-row lg:items-center","bg-gradient-to-b from-pink-200 to-orange-200"),children:[(0,a.jsxs)("div",{className:(0,h.cn)("z-10 flex flex-1 flex-col items-center justify-center gap-4 pb-28 text-neutral-800"),children:[(0,a.jsx)(z.ZP,{as:"h1",className:"text-left text-2xl font-medium leading-7 [color:var(--fg)] md:text-left",children:t}),(0,a.jsx)(z.ZP,{as:"h2",className:(0,h.cn)("text-center text-base font-normal leading-5 opacity-80 [color:var(--fg)] md:text-center","w-full"),children:r}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap items-start justify-start gap-3 pt-4",children:[n?(0,a.jsx)(m.z,{href:n.href,target:n.openInNewTab?"_blank":void 0,rel:n.openInNewTab?"noopener noreferrer":void 0,variant:"default",level:"primary",actionName:n.actionName,trailingIcon:k.Z,className:(0,h.cn)("border-0 bg-neutral-800 text-white dark:bg-neutral-800 dark:text-white","hover:bg-neutral-800 hover:text-white dark:hover:bg-neutral-800 dark:hover:text-white","hover:opacity-90"),children:n.title}):null,s?(0,a.jsx)(m.z,{href:s.href,target:s.openInNewTab?"_blank":void 0,rel:s.openInNewTab?"noopener noreferrer":void 0,variant:"default",level:"primary",actionName:s.actionName,className:(0,h.cn)("border bg-transparent text-neutral-800 dark:bg-transparent","border-neutral-800","hover:bg-neutral-800 hover:text-white dark:hover:bg-neutral-800 dark:hover:text-white","hover:opacity-90","z-10"),children:s.title}):null]})]}),(0,a.jsx)("div",{className:"absolute inset-0 m-auto overflow-hidden",children:(0,a.jsx)(w.E.svg,{className:(0,h.cn)("absolute bottom-0 left-1/2 m-auto h-[110%] w-auto -translate-x-1/2 translate-y-[60%]"),viewBox:"-50 -50 100 100",children:o.map((e,t)=>{let r=48-8*t,n=1-.05*t;return(0,a.jsxs)(w.E.g,{initial:{rotate:0},animate:{rotate:[0,360*(t%2==0?1:-1)]},style:{transformOrigin:"center"},transition:{repeat:1/0,duration:200/(t+1),ease:"linear"},children:[(0,a.jsx)(w.E.circle,{initial:{r:r},animate:{r:r},fill:`rgba(255,255,255,${(15+5*t)/100})`,stroke:"white",strokeWidth:.05}),e.map((e,s,i)=>{let l=360/i.length,o=r-3.2,c=r-1.3;return(0,a.jsxs)("g",{transform:`rotate(${s*l})`,children:[(0,a.jsx)("text",{fill:"#444",fontSize:2.5,fontFamily:"Fellix, sans-serif",textAnchor:"middle",dominantBaseline:"middle",transform:`translate(0, ${-o}) scale(${n})`,className:"capitalize",children:e}),(0,a.jsx)("circle",{cx:0,cy:-c,r:.2,fill:"#333"})]},`word-group-${t}-${s}`)})]},`circle-group-${t}`)})})})]})};var E=r(14758),T=r(12460),Z=r(42138);let C=(0,Z.Z)("Vibrate",[["path",{d:"m2 8 2 2-2 2 2 2-2 2",key:"sv1b1"}],["path",{d:"m22 8-2 2 2 2-2 2 2 2",key:"101i4y"}],["rect",{width:"8",height:"14",x:"8",y:"5",rx:"1",key:"1oyrl4"}]]);var O=r(15789);let A=(0,Z.Z)("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);var M=r(10658);let L=(0,Z.Z)("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);var I=r(22328),P=r(77875),U=r(63369),$=r.n(U);let F={dark:{"video/mp4":"https://storage.googleapis.com/playground-sample-files/overview-page-media/streaming-demo-dark.mp4","video/ogg":"https://storage.googleapis.com/playground-sample-files/overview-page-media/streaming-demo-dark.ogg"},light:{"video/mp4":"https://storage.googleapis.com/playground-sample-files/overview-page-media/streaming-demo-light.mp4","video/ogg":"https://storage.googleapis.com/playground-sample-files/overview-page-media/streaming-demo-light.ogg"}},H=()=>(0,a.jsx)(b.Fragment,{children:Object.entries(F).map(e=>{let[t,r]=e;return(0,a.jsx)("video",{muted:!0,autoPlay:!0,playsInline:!0,loop:!0,controls:!1,className:(0,h.cn)("rounded","dark"===t?"hidden dark:block":"block dark:hidden"),children:Object.entries(r).map(e=>{let[t,r]=e;return(0,a.jsx)("source",{src:r,type:t},r+t)})},`streaming-demo-${t}`)})}),S=(0,r(2808).j)(["shrink-0 grow-0 rounded-lg p-6 lg:p-8","h-auto lg:h-96","flex flex-col-reverse justify-center gap-4 [background-color:var(--bg)] [color:var(--fg)] md:gap-6 lg:flex-row lg:items-center"],{variants:{variant:{orange:'[--bg:theme("colors.orange.200")] [--fg:theme("colors.neutral.900")]',purple:'[--bg:theme("colors.purple.200")] [--fg:theme("colors.neutral.900")]',blue:'[--bg:theme("colors.blue.200")] [--fg:theme("colors.neutral.900")]'}}}),V=e=>{let{title:t,subtitle:r,primaryCTA:n,secondaryCTA:s,variant:i,children:l}=e;return(0,a.jsxs)("div",{className:S({variant:i}),children:[(0,a.jsxs)("div",{className:(0,h.cn)("flex flex-1 flex-col items-start justify-center gap-4"),children:[(0,a.jsx)(z.ZP,{as:"h1",className:"text-left text-2xl font-medium leading-7 [color:var(--fg)] md:text-left",children:t}),(0,a.jsx)(z.ZP,{as:"h2",className:(0,h.cn)("text-left text-base font-normal leading-5 opacity-80 [color:var(--fg)] md:text-left","w-full md:w-72"),children:r}),(0,a.jsxs)("div",{className:"flex flex-row flex-wrap items-start justify-start gap-3 pt-4",children:[n?(0,a.jsx)(m.z,{href:n.href,target:n.openInNewTab?"_blank":void 0,rel:n.openInNewTab?"noopener noreferrer":void 0,variant:"default",level:"primary",actionName:n.actionName,trailingIcon:k.Z,className:(0,h.cn)("border-0 text-white [background-color:var(--fg)] dark:text-white dark:[background-color:var(--fg)]","hover:text-white hover:[background-color:var(--fg)] dark:hover:text-white dark:hover:[background-color:var(--fg)]","hover:opacity-90"),children:n.title}):null,s?(0,a.jsx)(m.z,{href:s.href,target:s.openInNewTab?"_blank":void 0,rel:s.openInNewTab?"noopener noreferrer":void 0,variant:"default",level:"primary",actionName:s.actionName,className:(0,h.cn)("border text-[var(--fg)] [background-color:var(--bg)] dark:[background-color:var(--bg)]","border-[var(--fg)]","hover:text-white hover:[background-color:var(--fg)] dark:hover:text-white dark:hover:[background-color:var(--fg)]","hover:opacity-90"),children:s.title}):null]})]}),(0,a.jsx)("div",{className:(0,h.cn)("relative flex w-full shrink grow flex-col items-center justify-center rounded lg:h-56 lg:flex-1 lg:py-8"),children:l})]})},D=()=>{let e=(0,x.useTranslations)("Overview");return(0,a.jsxs)("div",{className:"flex h-full flex-col gap-4 pb-4",children:[(0,a.jsxs)("div",{className:(0,h.cn)("flex w-full gap-4","flex-col"),children:[(0,a.jsxs)("div",{className:"rounded-lg bg-background-top p-4",children:[(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)("h1",{className:"text-lg font-medium",children:e("tryOurDemos.title")})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-3",children:[(0,a.jsxs)($(),{className:"flex items-center gap-4 rounded p-2 hover:bg-background-selected/30 lg:flex-row lg:items-center",href:"https://link.hume.ai/app-store",target:"_blank",children:[(0,a.jsx)("div",{className:"grid size-12 shrink-0 place-content-center rounded bg-green-200 sm:size-14",children:(0,a.jsx)(C,{strokeWidth:1.5,className:"size-6 text-primary dark:text-neutral-900"})}),(0,a.jsxs)("div",{className:"leading-tight",children:[(0,a.jsx)("h2",{className:"text-sm sm:text-base",children:e("tryOurDemos.eviApp.title")}),(0,a.jsx)("p",{className:"text-sm text-secondary sm:text-base",children:e("tryOurDemos.eviApp.subtitle")})]})]}),(0,a.jsxs)($(),{className:"flex items-center gap-4 rounded p-2 hover:bg-background-selected/30 lg:flex-row lg:items-center",href:"https://app.hume.ai",target:"_blank",children:[(0,a.jsx)("div",{className:"grid size-12 shrink-0 place-content-center rounded bg-orange-200 sm:size-14",children:(0,a.jsx)(O.Z,{strokeWidth:1.5,className:"size-6 text-primary dark:text-neutral-900"})}),(0,a.jsxs)("div",{className:"leading-tight",children:[(0,a.jsx)("h2",{className:"text-sm sm:text-base",children:e("tryOurDemos.eviDemo.title")}),(0,a.jsx)("p",{className:"text-sm text-secondary sm:text-base",children:e("tryOurDemos.eviDemo.subtitle")})]})]}),(0,a.jsxs)($(),{className:"flex items-center gap-4 rounded p-2 hover:bg-background-selected/30 lg:flex-row lg:items-center",href:"https://chatter.hume.ai",target:"_blank",children:[(0,a.jsx)("div",{className:"grid size-12 shrink-0 place-content-center rounded bg-pink-200 sm:size-14",children:(0,a.jsx)(A,{strokeWidth:1.5,className:"size-6 text-primary dark:text-neutral-900"})}),(0,a.jsxs)("div",{className:"leading-tight",children:[(0,a.jsx)("h2",{className:"text-sm sm:text-base",children:e("tryOurDemos.chatter.title")}),(0,a.jsx)("p",{className:"text-sm text-secondary sm:text-base",children:e("tryOurDemos.chatter.subtitle")})]})]})]})]}),(0,a.jsx)(_,{title:e("voiceApi.title"),subtitle:e("voiceApi.description"),primaryCTA:{title:e("voiceApi.primaryCta"),href:"/evi/configs/create",actionName:"start building",openInNewTab:!1},secondaryCTA:{title:e("voiceApi.secondaryCta"),href:"https://link.hume.ai/evi-2",actionName:"documentation",openInNewTab:!0}}),(0,a.jsx)(V,{variant:"purple",title:e("expressionMeasurement.title"),subtitle:e("expressionMeasurement.description"),primaryCTA:{title:e("expressionMeasurement.primaryCta"),href:"/playground/webcam",actionName:"open webcam"},secondaryCTA:{title:e("expressionMeasurement.secondaryCta"),href:"https://dev.hume.ai/docs/expression-measurement/overview",actionName:"read the docs",openInNewTab:!0},children:(0,a.jsx)(H,{})})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-stretch gap-4 md:flex-row",children:[(0,a.jsxs)($(),{href:"https://dev.hume.ai/intro",target:"_blank",className:(0,h.cn)("rounded-lg p-4 font-medium [flex:1_1_0px]","flex items-center justify-center gap-2","dark:text-neutral-200","bg-neutral-200","hover:bg-neutral-300","dark:bg-neutral-900","dark:hover:bg-neutral-800"),children:[(0,a.jsx)("span",{className:"opacity-70",children:(0,a.jsx)(M.Z,{size:16,strokeWidth:1.5})}),(0,a.jsx)("span",{children:e("documentationLinks.quickStart")})]}),(0,a.jsxs)($(),{href:"https://dev.hume.ai/docs/resources/science",target:"_blank",className:(0,h.cn)("rounded-lg p-4 font-medium [flex:1_1_0px]","flex items-center justify-center gap-2","dark:text-neutral-200","bg-neutral-200","hover:bg-neutral-300","dark:bg-neutral-900","dark:hover:bg-neutral-800"),children:[(0,a.jsx)("span",{className:"opacity-70",children:(0,a.jsx)(L,{size:16,strokeWidth:1.5})}),(0,a.jsx)("span",{children:e("documentationLinks.science")})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-stretch gap-4 lg:h-56 lg:flex-row",children:[(0,a.jsx)("div",{className:"flex items-center justify-center [flex:1_1_0px]",children:(0,a.jsxs)("div",{className:(0,h.cn)("group/link-overview","flex flex-col items-center justify-center gap-2 rounded-lg p-4"),children:[(0,a.jsx)("div",{className:(0,h.cn)("grid size-12 place-content-center rounded-full bg-blue-200"),children:(0,a.jsx)(I.Z,{size:24,strokeWidth:1.5,className:(0,h.cn)("text-blue-400")})}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-0",children:[(0,a.jsx)("div",{className:"font-medium leading-5 ",children:e("getStarted.title")}),(0,a.jsx)("div",{className:"text-center text-sm lg:h-16 xl:h-10",children:e("getStarted.description")})]}),(0,a.jsx)(m.z,{href:"https://dev.hume.ai",target:"_blank",rel:"noopener noreferrer",variant:"default",level:"secondary",size:"sm",actionName:"visit documentation",className:(0,h.cn)("hover:opacity-90"),children:e("getStarted.cta")})]})}),(0,a.jsx)("div",{className:"flex items-center justify-center [flex:1_1_0px]",children:(0,a.jsxs)("div",{className:(0,h.cn)("group/link-overview","flex flex-col items-center justify-center gap-2 rounded-lg p-4"),children:[(0,a.jsx)("span",{className:(0,h.cn)("grid size-12 place-content-center rounded-full bg-green-200"),children:(0,a.jsx)(P.Z,{size:24,strokeWidth:1.5,className:(0,h.cn)("text-green-400")})}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-0",children:[(0,a.jsx)("div",{className:"font-medium leading-5 ",children:e("ethicalGuidelines.title")}),(0,a.jsx)("div",{className:"text-center text-sm lg:h-16 xl:h-10",children:e("ethicalGuidelines.description")})]}),(0,a.jsx)(m.z,{href:"http://thehumeinitiative.org/guidelines",target:"_blank",rel:"noopener noreferrer",variant:"default",level:"secondary",size:"sm",actionName:"visit ethical guidelines",className:(0,h.cn)("hover:opacity-90"),children:e("ethicalGuidelines.cta")})]})}),(0,a.jsx)("div",{className:"flex items-center justify-center [flex:1_1_0px]",children:(0,a.jsxs)("div",{className:(0,h.cn)("flex flex-col items-center justify-center gap-2 rounded-lg p-4"),children:[(0,a.jsx)("span",{className:(0,h.cn)("grid size-12 place-content-center rounded-full bg-purple-200","dark:bg-purple-400"),children:(0,a.jsx)(E.D,{width:24,height:24,className:(0,h.cn)("text-purple-400","dark:text-purple-300")})}),(0,a.jsxs)("div",{className:"flex flex-col items-center gap-0",children:[(0,a.jsx)("div",{className:"font-medium leading-5 ",children:e("joinCommunity.title")}),(0,a.jsx)("div",{className:"text-center text-sm lg:h-16 xl:h-10",children:e("joinCommunity.description")})]}),(0,a.jsx)(m.z,{href:T.jT,target:"_blank",rel:"noopener noreferrer",variant:"default",level:"secondary",size:"sm",actionName:"visit our discord",className:(0,h.cn)("hover:opacity-90"),children:e("joinCommunity.cta")})]})})]}),(0,a.jsx)("div",{className:"mt-auto p-4 text-sm",children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(y.Q,{className:"h-4 w-auto [&_*]:fill-current"}),(0,a.jsxs)("div",{className:"ml-auto flex gap-2",children:[(0,a.jsx)($(),{href:"/policies/terms-of-use",className:"underline decoration-neutral-200 underline-offset-2",children:e("policyLinks.termsOfUse")}),(0,a.jsx)("span",{className:"font-light opacity-50",children:"|"}),(0,a.jsx)($(),{href:"https://hume.ai/privacy-policy",className:"underline decoration-neutral-200 underline-offset-2",children:e("policyLinks.privacyPolicy")})]})]})})]})};var R=r(38992),W=r(81137),q=r(66592),B=r(20676),G=r(36499),K=r.n(G),Q=r(84799),J=!0,X=(0,q.k)(()=>{let e=(0,B.Vb)(),{user:t}=(0,f.a)(),{mutate:r}=c({firebaseUid:t?.firebaseUid,token:t?.token}),n=(0,Q.EQ)(e.firstTimeUserExperience).with("modal",()=>(0,a.jsx)(j,{})).with(Q.P.union("no-modal","default",void 0),()=>null).exhaustive();return(0,b.useEffect)(()=>{"no-modal"===e.firstTimeUserExperience&&r({variant:e.firstTimeUserExperience})},[e.firstTimeUserExperience,r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K(),{children:(0,a.jsx)("title",{children:(0,W.JL)`Overview`})}),(0,a.jsx)(R.Z,{includeFooter:!0,children:(0,a.jsxs)("div",{className:"flex min-h-[80vh] shrink-0 grow flex-col bg-background px-6 pt-6",children:[(0,a.jsx)(d.n,{wrapper:e=>{let{children:t}=e;return(0,a.jsx)("div",{className:"mx-auto w-full max-w-5xl rounded border border-orange-200",children:t})}}),(0,a.jsx)("div",{className:"mx-auto grid size-full max-w-5xl",children:(0,a.jsx)(D,{})})]})}),n]})})},66592:function(e,t,r){"use strict";r.d(t,{k:function(){return h}});var a=r(52676),n=r(72074),s=r(89107),i=r(67882),l=r(90246),o=r(15028),c=r(75271),d=r(22187),m=r(52500);let u=()=>!0;function h(e){return t=>{let r=(0,o.useRouter)(),{pathname:h,query:p,asPath:x}=r,{user:g,initializing:f}=(0,s.a)(),{handlePostRegistration:v}=(0,i.g)(),{online:b}=(0,d.Z)();return((0,c.useEffect)(()=>{v()},[v]),(0,c.useEffect)(()=>{if(!g&&"/log-in"!==h){let e=(0,l.Hm)(window.location.origin,x);(0,l.rf)(r.push,{pathname:(0,l.p4)(e),query:p})}},[x,h,r,p,g]),u())?f&&b?(0,a.jsx)(n.a,{}):g||"/log-in"===h?(g?.apiKey&&!(0,m.pd)()&&(0,m.ks)(g.apiKey),(0,a.jsx)(e,{...t})):null:null}}},88955:function(e,t,r){"use strict";r.d(t,{x0:function(){return a}});let a=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t}}},function(e){e.O(0,[7972,2800,1485,7570,5669,6465,8992,2888,9774,179],function(){return e(e.s=95405)}),_N_E=e.O()}]);