PageSourceSearch

https://app.myverified.ai/_next/static/chunks/pages/main/studio/modes-f915037ef5eae432.js

js myverified.ai collected 2026-10-05 12:19:14 UTC 13,950 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1589],{24505:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var i=s(4930),r=s(55647),a=s(70740),n=s(53320),o=s.n(n),l=s(21333),c=s(30192),d=s(48374),u=s(55341);function h(){return(0,i.jsx)(o(),{href:"".concat(d.bw.STUDIO_PERSONALITY,"#voice"),className:"text-blue-300 underline underline-offset-2 hover:text-blue-200",children:"Personality → Voice"})}function p(){return(0,i.jsxs)("div",{className:"space-y-3 text-sm leading-relaxed text-white/50",children:[(0,i.jsx)("p",{children:"Text chat is always on. Voice and video are optional — users pick their preferred mode when they start a conversation."}),(0,i.jsxs)("p",{children:["Voice chat requires a custom voice sample. Record one in"," ",(0,i.jsx)(h,{}),"."]}),(0,i.jsxs)("p",{children:["Video chat requires both a profile picture and a custom voice. Upload your picture in ",(0,i.jsx)("span",{className:"text-white/70",children:"Profile"}),", then record your voice in ",(0,i.jsx)(h,{}),"."]})]})}function f(e){let{identityId:t}=e,s=r.F.useUtils(),{data:n,isLoading:o}=r.F.chatInterface.get.useQuery({identityId:t},{refetchOnWindowFocus:!1}),{data:d,isLoading:h}=r.F.identity.getIdentity.useQuery({identityId:t},{enabled:!!t,refetchOnWindowFocus:!1,refetchInterval:e=>{var t;let s=null==(t=e.state.data)?void 0:t.liveCharacterStatus;return null!=n&&!!n.videoChat&&"in_progress"===s&&15e3}}),{mutate:f,isPending:x}=r.F.chatInterface.toggleAudioChat.useMutation({onError:e=>{a.oR.error(e.message||"Failed to update voice chat")},onSuccess:()=>{s.chatInterface.get.invalidate({identityId:t})}}),{mutate:m,isPending:v}=r.F.chatInterface.toggleVideoChat.useMutation({onError:e=>{a.oR.error(e.message||"Failed to update video chat")},onSettled:async()=>{await Promise.all([s.chatInterface.get.invalidate({identityId:t}),s.identity.getIdentity.invalidate({identityId:t})])}}),b=null==d?void 0:d.liveCharacterStatus,w=!!(null==n?void 0:n.videoChat),g=v&&!w,y=!(v&&w)&&(g||w&&"in_progress"===b),j=!(null==d?void 0:d.voiceId),N=!(null==d?void 0:d.imageUrl)||!(null==d?void 0:d.voiceId),k=N?(null==d?void 0:d.imageUrl)?"Requires a custom voice — record one in Personality → Voice":"Requires a profile picture — upload one in Profile":"Let users talk face-to-face with a live avatar of you",I=y||"error"===b?y?(0,i.jsxs)("div",{role:"status","aria-live":"polite",className:"relative mt-3 overflow-hidden rounded-xl border border-white/10 bg-gradient-to-br from-violet-500/10 via-white/[0.03] to-sky-500/10 px-3 py-2",children:[(0,i.jsxs)("div",{className:"flex items-center gap-3",children:[(0,i.jsxs)("div",{className:"relative flex size-10 shrink-0 items-center justify-center",children:[(0,i.jsx)("span",{className:"absolute inset-0 animate-ping rounded-full bg-violet-400/20"}),(0,i.jsx)("span",{className:"absolute inset-0 animate-spin rounded-full bg-[conic-gradient(from_0deg,transparent,rgba(167,139,250,0.9),rgba(56,189,248,0.9),transparent)] [animation-duration:2.5s]"}),(0,i.jsx)("span",{className:"absolute inset-[2px] rounded-full bg-[#23252f]"}),(null==d?void 0:d.imageUrl)?(0,i.jsx)("img",{src:d.imageUrl,alt:"",className:"relative size-8 animate-pulse rounded-full object-cover"}):(0,i.jsx)(l.A,{size:16})]}),(0,i.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2",children:[(0,i.jsx)("p",{className:"whitespace-nowrap bg-gradient-to-r from-white via-violet-200 to-white bg-[length:200%_100%] bg-clip-text text-sm font-medium text-transparent motion-safe:animate-[shimmer_2.5s_linear_infinite]",children:"Bringing your live avatar to life…"}),(0,i.jsx)("p",{className:"text-xs text-white/50",children:"\xb7 Keep this page open"})]})]}),(0,i.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-0.5 overflow-hidden bg-white/10",children:(0,i.jsx)("div",{className:"h-full w-1/3 rounded-full bg-gradient-to-r from-violet-400 to-sky-400 motion-safe:animate-[avatar-progress_1.6s_ease-in-out_infinite]"})}),(0,i.jsx)("style",{children:"\n            @keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }\n            @keyframes avatar-progress { 0% { transform: translateX(-100%) } 100% { transform: translateX(300%) } }\n          "})]}):(0,i.jsx)("p",{className:"pt-2 text-sm text-red-300",children:"Live avatar creation failed. Toggle on again to retry. If the error persists, contact support."}):void 0,_=(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)(c.f,{title:"Voice chat",description:j?"Requires a custom voice — record one in Personality → Voice":"Let users talk to your persona with voice",checked:!!(null==n?void 0:n.audioChat),onCheckedChange:()=>f({identityId:t}),isLoading:x,disabled:j}),(0,i.jsx)(c.f,{title:"Video chat",description:k,checked:!!(null==n?void 0:n.videoChat),onCheckedChange:()=>m({identityId:t}),isLoading:v,disabled:N,statusContent:I})]});return(0,i.jsx)("div",{className:"h-full w-full flex flex-col",children:(0,i.jsx)(u.A,{loading:h||o,children:(0,i.jsxs)("div",{className:"flex w-full flex-col gap-6 md:flex-row md:items-start md:gap-8",children:[(0,i.jsx)("div",{className:"w-full shrink-0 md:w-72 lg:w-80",children:_}),(0,i.jsx)("div",{className:"flex min-w-0 flex-1 flex-col justify-center",children:(0,i.jsx)(p,{})})]})})})}var x=s(31761);function m(e){let{identityId:t}=e;return(0,i.jsx)(x._T,{title:"Modes",description:"Choose which communication modes users can access — text, voice, or video.",children:(0,i.jsx)(f,{identityId:t})})}function v(e){let{identityId:t}=e;return(0,i.jsx)("div",{className:"flex flex-col gap-6",children:(0,i.jsx)(m,{identityId:t})})}var b=s(40183);function w(){return(0,i.jsx)(b.u,{children:e=>(0,i.jsx)(v,{identityId:e.id})})}},25356:(e,t,s)=>{"use strict";s.d(t,{bL:()=>j,zi:()=>N});var i=s(65162),r=s(41375),a=s(13523),n=s(23855),o=s(77990),l=s(26978),c=s(95378),d=s(93644),u=s(4930),h="Switch",[p,f]=(0,n.A)(h),[x,m]=p(h),v=i.forwardRef((e,t)=>
1{let{__scopeSwitch:s,name:n,checked:l,defaultChecked:c,required:p,disabled:f,value:m="on",onCheckedChange:v,form:b,...w}=e,[j,N]=i.useState(null),k=(0,a.s)(t,e=>N(e)),I=i.useRef(!1),_=!j||b||!!j.closest("form"),[S,O]=(0,o.i)({prop:l,defaultProp:c??!1,onChange:v,caller:h});return(0,u.jsxs)(x,{scope:s,checked:S,disabled:f,children:[(0,u.jsx)(d.sG.button,{type:"button",role:"switch","aria-checked":S,"aria-required":p,"data-state":y(S),"data-disabled":f?"":void 0,disabled:f,value:m,...w,ref:k,onClick:(0,r.mK)(e.onClick,e=>{O(e=>!e),_&&(I.current=e.isPropagationStopped(),I.current||e.stopPropagation())})}),_&&(0,u.jsx)(g,{control:j,bubbles:!I.current,name:n,value:m,checked:S,required:p,disabled:f,form:b,style:{transform:"translateX(-100%)"}})]})});v.displayName=h;var b="SwitchThumb",w=i.forwardRef((e,t)=>{let{__scopeSwitch:s,...i}=e,r=m(b,s);return(0,u.jsx)(d.sG.span,{"data-state":y(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:t})});w.displayName=b;var g=i.forwardRef(({__scopeSwitch:e,control:t,checked:s,bubbles:r=!0,...n},o)=>{let d=i.useRef(null),h=(0,a.s)(d,o),p=(0,l.Z)(s),f=(0,c.X)(t);return i.useEffect(()=>{let e=d.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==s&&t){let i=new Event("click",{bubbles:r});t.call(e,s),e.dispatchEvent(i)}},[p,s,r]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...n,tabIndex:-1,ref:h,style:{...n.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}g.displayName="SwitchBubbleInput";var j=v,N=w},26978:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(65162);function r(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},28827:(e,t,s)=>{"use strict";s.d(t,{l:()=>n});var i=s(4930),r=s(25356),a=s(68396);function n(e){let{checked:t,onCheckedChange:s,disabled:n,className:o,"aria-label":l}=e;return(0,i.jsx)(r.bL,{checked:t,onCheckedChange:s,disabled:n,"aria-label":l,className:(0,a.cn)("group relative inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border p-0.5 transition-colors duration-200","border-white/10 bg-white/6","data-[state=checked]:border-brand-blue/30 data-[state=checked]:bg-brand-blue/15","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue/35 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent","disabled:cursor-not-allowed disabled:opacity-50",o),children:(0,i.jsx)(r.zi,{className:(0,a.cn)("pointer-events-none block size-4 rounded-full transition-transform duration-200","bg-white/30 shadow-sm","group-data-[state=checked]:translate-x-6 group-data-[state=checked]:bg-white group-data-[state=checked]:shadow-[0_0_8px_rgba(59,109,223,0.35)]","group-data-[state=unchecked]:translate-x-0")})})}},30192:(e,t,s)=>{"use strict";s.d(t,{f:()=>n});var i=s(4930),r=s(28827),a=s(68396);function n(e){let{title:t,description:s,checked:n,onCheckedChange:o,disabled:l,isLoading:c,statusContent:d,className:u}=e;return(0,i.jsxs)("div",{className:(0,a.cn)("rounded-xl border border-white/8 bg-white/4 px-4 py-3.5",u),children:[(0,i.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,i.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,i.jsx)("p",{className:"text-sm font-medium text-white",children:t}),s?(0,i.jsx)("p",{className:"text-sm leading-relaxed text-white/50",children:s}):null]}),(0,i.jsx)("div",{className:"flex shrink-0 items-center",children:(0,i.jsx)(r.l,{checked:n,onCheckedChange:o,disabled:l||c})})]}),d]})}},38388:(e,t,s)=>{"use strict";s.d(t,{D:()=>r});var i=s(4930);function r(e){let{title:t,description:s}=e;return t?(0,i.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,i.jsx)("h1",{className:"text-2xl font-medium text-white",children:t}),s?(0,i.jsx)("p",{className:"max-w-3xl text-sm leading-relaxed text-white/60",children:s}):null]}):null}},38651:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/studio/modes",function(){return s(24505)}])},40183:(e,t,s)=>{"use strict";s.d(t,{u:()=>f});var i=s(4930),r=s(65162),a=s(16401),n=s(51998),o=s(48374),l=s(37826),c=s(14100),d=s(42497),u=s(85713),h=s(38388),p=s(79214);function f(e){let{children:t}=e,s=(0,a.useRouter)(),{user:f,isSignedIn:x}=(0,u.u)(),{selectedIdentity:m,isIdentityLoading:v,isSettingDefault:b,isPersonasLoading:w}=(0,d.G)(),{canAccessStudio:g,isCollaboratorOnly:y}=(0,c.u)(),j=p.Z[s.pathname];return((0,r.useEffect)(()=>
1{if(x&&f){if(!g&&!w)return void s.replace(o.bw.EXPLORE);!y||w||v||m||s.replace(o.bw.EXPLORE)}},[g,m,y,v,w,x,s,f]),x&&f&&(g||w))?w||v||!m?(0,i.jsx)(l.A,{children:(0,i.jsx)("div",{className:"flex min-h-100 items-center justify-center",children:(0,i.jsx)(n.T,{})})}):(0,i.jsx)(l.A,{children:(0,i.jsxs)("div",{className:"relative flex h-full min-h-0 flex-col",children:[b?(0,i.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center rounded-4xl backdrop-blur-xs"}):null,(0,i.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto pb-4",children:[j?(0,i.jsx)(h.D,{title:j.label,description:j.description}):null,t(m)]})]})}):null}},55341:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});var i=s(4930),r=s(21333);function a(e){let{children:t,loading:s}=e;return(0,i.jsx)("div",{className:"flex-1 w-full overflow-y-auto flex-col text-white p-1",children:s?(0,i.jsx)("div",{className:"w-full h-[50%] flex justify-center items-center",children:(0,i.jsx)(r.A,{})}):t})}},79214:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var i=s(48374);let r={[i.bw.STUDIO_OVERVIEW]:{label:"Overview",description:"Track engagement, conversation trends, and how users interact with your persona."},[i.bw.STUDIO_GETTING_STARTED]:{label:"Getting started",description:"A simple path for new creators: set up the five essentials that matter most before you go deeper."},[i.bw.STUDIO_PROFILE]:{label:"Profile",description:"Set how your persona appears when people discover it in Explore."},[i.bw.STUDIO_PERSONALITY]:{label:"Personality",description:"Shape how your persona presents itself — its backstory, communication style, and voice."},[i.bw.STUDIO_KNOWLEDGE]:{label:"Knowledge",description:"Teach your persona what it knows — add web pages, social videos, files, and personal notes, or use the Knowledge Wizard to capture expertise through conversation."},[i.bw.STUDIO_VISIBILITY]:{label:"Visibility",description:"Control who can see, discover, and interact with your persona."},[i.bw.STUDIO_COLLABORATORS]:{label:"Collaborators",description:"Invite team members to help you build and manage your persona."},[i.bw.STUDIO_MONETIZATION]:{label:"Monetization",description:"Add products, courses, and services your persona can recommend during conversations."},[i.bw.STUDIO_WELCOME]:{label:"Welcome",description:"Shape the first impression when someone opens a chat with your persona. Visitors see your video first, then your greeting message, starter questions, and optional survey questions before they begin."},[i.bw.STUDIO_RULES]:{label:"Rules",description:"Shape how your persona responds — set fixed answers for key topics, steer conversations toward your expertise, fine-tune behavior, and fix answers from real chats."},[i.bw.STUDIO_MODES]:{label:"Modes",description:"Control how users communicate with your persona. Text chat is always available — enable voice or video when you're ready to offer richer interactions."},[i.bw.STUDIO_CONVERSATIONS]:{label:"Conversations",description:"Browse chat history with your persona — read full threads, spot recurring topics, and find gaps in your knowledge base."},[i.bw.STUDIO_SURVEY_RESPONSES]:{label:"Survey responses",description:"Review answers to your survey questions and understand what users are sharing before they chat."}}}},e=>{e.O(0,[2566,6344,9132,7215,3271,3606,420,851,5998,9519,3941,6544,3410,872,6414,7826,636,6593,8792],()=>e(e.s=38651)),_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.