1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1259],{25505:(e,i,t)=>{"use strict";t.d(i,{G:()=>n});var s=t(4930),l=t(89412),a=t(56444);function n(e){let{label:i,onClick:t,disabled:n}=e;return(0,s.jsxs)(a.$,{type:"button",onClick:t,variant:"accent",size:"sm",disabled:n,className:"rounded-full px-4",children:[(0,s.jsx)(l.A,{size:16,className:"mr-1.5","aria-hidden":!0}),i]})}},38388:(e,i,t)=>{"use strict";t.d(i,{D:()=>l});var s=t(4930);function l(e){let{title:i,description:t}=e;return i?(0,s.jsxs)("header",{className:"flex flex-col gap-1",children:[(0,s.jsx)("h1",{className:"text-2xl font-medium text-white",children:i}),t?(0,s.jsx)("p",{className:"max-w-3xl text-sm leading-relaxed text-white/60",children:t}):null]}):null}},40183:(e,i,t)=>{"use strict";t.d(i,{u:()=>p});var s=t(4930),l=t(65162),a=t(16401),n=t(51998),r=t(48374),o=t(37826),c=t(14100),d=t(42497),u=t(85713),m=t(38388),h=t(79214);function p(e){let{children:i}=e,t=(0,a.useRouter)(),{user:p,isSignedIn:x}=(0,u.u)(),{selectedIdentity:v,isIdentityLoading:b,isSettingDefault:w,isPersonasLoading:y}=(0,d.G)(),{canAccessStudio:f,isCollaboratorOnly:g}=(0,c.u)(),j=h.Z[t.pathname];return((0,l.useEffect)(()=>{if(x&&p){if(!f&&!y)return void t.replace(r.bw.EXPLORE);!g||y||b||v||t.replace(r.bw.EXPLORE)}},[f,v,g,b,y,x,t,p]),x&&p&&(f||y))?y||b||!v?(0,s.jsx)(o.A,{children:(0,s.jsx)("div",{className:"flex min-h-100 items-center justify-center",children:(0,s.jsx)(n.T,{})})}):(0,s.jsx)(o.A,{children:(0,s.jsxs)("div",{className:"relative flex h-full min-h-0 flex-col",children:[w?(0,s.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center rounded-4xl backdrop-blur-xs"}):null,(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto pb-4",children:[j?(0,s.jsx)(m.D,{title:j.label,description:j.description}):null,i(v)]})]})}):null}},50278:(e,i,t)=>{"use strict";t.d(i,{P:()=>a});var s=t(4930),l=t(68396);function a(e){let{title:i,description:t,icon:a,className:n}=e;return(0,s.jsxs)("div",{className:(0,l.cn)("flex flex-col items-center gap-3 rounded-2xl border border-dashed border-white/10 px-6 py-10 text-center",n),children:[(0,s.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-white/5",children:a}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-white/70",children:i}),(0,s.jsx)("p",{className:"text-sm text-white/40",children:t})]})]})}},51946:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>Y});var s=t(4930),l=t(65162),a=t(70740),n=t(55647),r=t(87967),o=t(42497),c=t(85713),d=t(31761),u=t(86048),m=t(51998),h=t(72809),p=t(25505),x=t(59584);let v=(0,t(98832).A)("mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);var b=t(39493),w=t(68396),y=t(85906),f=t(50278);function g(e){let{emails:i,isLoading:t=!1,onRemoveEmail:l}=e;return 0===i.length?(0,s.jsx)(f.P,{title:"No access emails yet",description:"Add email addresses of users who should be able to discover and chat with your persona.",icon:(0,s.jsx)(v,{className:"size-5 text-white/40"})}):(0,s.jsx)("div",{className:"overflow-hidden rounded-xl border border-white/8",children:(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-white/8 bg-white/4",children:[(0,s.jsx)(j,{label:"Email"}),(0,s.jsx)(j,{label:"Added",className:"hidden sm:table-cell"}),(0,s.jsx)(j,{label:"",className:"text-right"})]})}),(0,s.jsx)("tbody",{className:"divide-y divide-white/8",children:i.map(e=>(0,s.jsxs)("tr",{className:"text-sm text-white transition-colors hover:bg-white/3",children:[(0,s.jsx)("td",{className:"px-4 py-3 font-medium",children:e.email}),(0,s.jsx)("td",{className:"hidden px-4 py-3 text-white/50 sm:table-cell",children:(0,y.dF)(new Date(e.addedAt))}),(0,s.jsx)("td",{className:"px-4 py-3 text-right",children:(0,s.jsx)("button",{type:"button",onClick:()=>
1l(e.email),disabled:t,className:"inline-flex size-7 cursor-pointer items-center justify-center rounded-lg text-white/60 transition-colors hover:bg-red-400/10 hover:text-red-300 disabled:cursor-not-allowed disabled:opacity-50","aria-label":"Remove email",children:(0,s.jsx)(b.A,{size:15})})})]},e.email))})]})})})}function j(e){let{label:i,className:t}=e;return(0,s.jsx)("th",{className:(0,w.cn)("px-4 py-3 text-xs font-medium uppercase tracking-wide text-white/50",t),children:i})}function N(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function E(e){let{title:i,description:t,emails:l,maxAccessEmails:a,newEmail:n,isFormOpen:r,isEmailLoading:o,onNewEmailChange:c,onOpenForm:d,onCloseForm:u,onAddEmail:v,onRemoveEmail:b}=e,w=l.length>=a,y=n.trim(),f=y&&!N(y)?"Enter a valid email address":void 0,j=!!y&&N(y)&&!w;return(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-white",children:i}),(0,s.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-white/50",children:t})]}),r?(0,s.jsx)(x.X,{compact:!0,title:"Add access email",actions:(0,s.jsx)(x.i,{onCancel:u,onSave:v,isSaving:o,canSave:j,saveLabel:"Add"}),children:(0,s.jsx)(h.p,{label:"Email",value:n,onChange:c,placeholder:"[email protected]",error:f,disabled:o||w})}):(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsx)(p.G,{label:"Add access email",onClick:d,disabled:w}),l.length>0?(0,s.jsxs)("p",{className:"text-xs text-white/50",children:[l.length,"/",a," access emails"]}):null,w?(0,s.jsxs)("p",{className:"w-full text-xs text-white/40",children:["Maximum of ",a," access emails reached."]}):null]}),o&&0===l.length&&!r?(0,s.jsx)("div",{className:"flex min-h-40 items-center justify-center",children:(0,s.jsx)(m.T,{})}):(0,s.jsx)(g,{emails:l,isLoading:o,onRemoveEmail:b})]})}var O=t(56444),P=t(40620);function C(e){let{isOpen:i,onOpenChange:t,selectedVisibility:l,pendingVisibility:a,onConfirm:n,onCancel:r}=e;if(!a)return null;let o=function(e,i){if("private"===i){if("public"===e)return{title:"Make Persona Private?",description:"This will remove your persona from public discovery and search results. People who previously had access will no longer be able to find it.",confirmText:"Make Private"};else if("preview"===e)return{title:"Make Persona Private?",description:"This will make your persona completely private. Only you will be able to see it. People with preview links will no longer have access.",confirmText:"Make Private"};else if("public-invite-only"===e)return{title:"Make Persona Private?",description:"This will make your persona completely private. Only you will be able to see it.",confirmText:"Make Private"}}if("public"===i)return"public-invite-only"===e?{title:"Make Fully Public?",description:"This will remove access restrictions. Anyone will be able to discover and chat with your persona, not just invited users.",confirmText:"Make Public"}:{title:"Make Persona Public?",description:"Your persona will be discoverable by anyone and can appear in search results. Make sure you're comfortable with this level of visibility.",confirmText:"Make Public"};if("preview"===i)return"public-invite-only"===e?{title:"Hide from Public Discovery?",description:"Your persona will no longer appear in public listings, but invited users will still have access.",confirmText:"Set to Preview"}:{title:"Change to Preview Mode?",description:"Your persona will only be accessible to users whose email addresses you add to the allowlist. It won't appear in public discovery or search results.",confirmText:"Set to Preview"};if("public-invite-only"===i)if("public"===e)return{title:"Restrict Access to Invite Only?",description:"Your persona will remain discoverable in public listings, but only users you invite via email can access it. Add email addresses to create an allowlist.",confirmText:"Set to Public Invite Only"};else if("preview"===e)return{title:"Make Persona Public Invite Only?",description:"Your persona will now appear in public discovery and search results, while still maintaining invite-only access. Users you've already invited will retain access.",confirmText:"Set to Public Invite Only"};else return{title:"Make Persona Public Invite Only?",description:"Your persona will be discoverable in public listings, but only users you invite via email can access it. Add email addresses to create an allowlist.",confirmText:"Set to Public Invite Only"};return{title:"Change Visibility?",description:"Are you sure you want to change from ".concat(e," to ").concat(i,"?"),confirmText:"Confirm"}}(l,a);return(0,s.jsx)(P.lG,{open:i,onOpenChange:t,children:(0,s.jsxs)(P.Cf,{className:"z-[62] border-none bg-[#191e2b] text-white sm:max-w-md",children:[(0,s.jsxs)(P.c7,{children:[(0,s.jsx)(P.L3,{className:"flex items-center gap-3 text-xl",children:o.title}),(0,s.jsx)(P.rr,{className:"pt-2 text-gray-300",children:o.description})]}),(0,s.jsxs)(P.Es,{className:"flex gap-3 pt-4",children:[(0,s.jsx)(O.$,{onClick:r,children:"Cancel"}),(0,s.jsx)(O.$,{variant:"accent",onClick:n,children:o.confirmText})]})]})})}var S=t(53408),A=t(21333),T=t(45819),k=t(50426),I=t(43185),L=t(69743);let R=[{id:"open",options:[{value:"private",icon:T.A,title:"Private",description:"Only you can see and chat with this persona.",discovery:"hidden",accessLabel:"Only you"}
1,{value:"public",icon:k.A,title:"Public",description:"Anyone can discover and chat with this persona.",discovery:"public",accessLabel:"Everyone"}]},{id:"email-restricted",title:"Email-restricted",description:"Only people you add by email can access.",options:[{value:"preview",icon:I.A,title:"Preview",description:"Share privately with specific people before going wider.",requiresEmailList:!0,discovery:"hidden",accessLabel:"Email list"},{value:"public-invite-only",icon:L.A,title:"Public Invite Only",description:"Visible in explore, but only invited users can chat.",requiresEmailList:!0,discovery:"public",accessLabel:"Email list"}]}];function _(e){let{group:i,selectedVisibility:t,onVisibilityChange:l,isLoading:a,pendingVisibility:n,accessListPanel:r,hideHeader:o=!1}=e,c="email-restricted"===i.id;return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[!o&&(i.title||c)?(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[c?(0,s.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-white/8",children:(0,s.jsx)(v,{className:"size-4 text-white/50"})}):null,i.title?(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-white",children:i.title}),i.description?(0,s.jsx)("p",{className:"mt-0.5 text-sm text-white/45",children:i.description}):null]}):null]}):null,(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:i.options.map(e=>(0,s.jsx)(M,{option:e,isSelected:t===e.value,isPending:n===e.value,isLoading:a,onSelect:l},e.value))}),r?(0,s.jsx)("div",{className:"flex flex-col gap-6 border-t border-white/8 pt-6",children:r}):null]})}function M(e){let{option:i,isSelected:t,isPending:l,isLoading:a,onSelect:n}=e,r=i.icon;return(0,s.jsxs)(d.Bg,{className:(0,w.cn)("relative cursor-pointer p-4 transition-all duration-200",t?"border-brand-blue bg-brand-blue/10 ring-2 ring-brand-blue/50":"hover:border-white/15 hover:bg-white/8",!t&&"opacity-80 hover:opacity-100",a&&l&&"pointer-events-none"),onClick:()=>!a&&n(i.value),children:[t?(0,s.jsxs)("span",{className:"absolute right-3 top-3 inline-flex items-center gap-1 rounded-full bg-brand-blue px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-white",children:[(0,s.jsx)(S.A,{size:10,strokeWidth:3}),"Active"]}):null,(0,s.jsxs)("div",{className:"flex gap-3 pr-10",children:[(0,s.jsx)("div",{className:(0,w.cn)("mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-xl transition-colors duration-200",t?"bg-brand-blue text-white":"bg-white/10 text-white"),children:(0,s.jsx)(r,{size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1 space-y-1.5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("h4",{className:"font-medium text-white",children:i.title}),(0,s.jsx)(V,{label:i.accessLabel,variant:i.requiresEmailList?"email":"default"}),(0,s.jsx)(V,{label:"public"===i.discovery?"In explore":"Not in explore",variant:"muted"})]}),(0,s.jsx)("p",{className:"text-sm text-white/60",children:i.description})]})]}),a&&l?(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center rounded-2xl backdrop-blur-[2px]",children:(0,s.jsx)(A.A,{size:24,className:"text-white"})}):null]})}function V(e){let{label:i,variant:t="default"}=e;return(0,s.jsxs)("span",{className:(0,w.cn)("inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium uppercase tracking-wide","email"===t&&"bg-amber-500/15 text-amber-200/90","default"===t&&"bg-white/10 text-white/60","muted"===t&&"bg-white/5 text-white/45"),children:["email"===t?(0,s.jsx)(v,{size:10}):null,i]})}function F(){return(0,s.jsx)("div",{className:"space-y-3 text-sm leading-relaxed text-white/50",children:(0,s.jsx)("p",{children:"Choose whether your persona is completely private or open to everyone who can discover it."})})}function z(){return(0,s.jsx)("div",{className:"space-y-3 text-sm leading-relaxed text-white/50",children:(0,s.jsx)("p",{children:"Limit access to specific people by email. Preview hides your persona from public discovery; Public Invite Only shows it in explore but restricts chat to invited users."})})}function D(e){var i;let{identityId:t}=e,{selectedPersona:m}=(0,o.G)(),h=(null==m?void 0:m.isOwned)!==!1,p=function(e){var i;let{identityId:t}=e,s=n.F.useUtils(),[d,u]=(0,l.useState)(null),[m,h]=(0,l.useState)(!1),[p,x]=(0,l.useState)(!1),[v,b]=(0,l.useState)(""),{selectedIdentity:w}=(0,o.G)(),{user:y}=(0,c.u)(),f=null!=(i=null==w?void 0:w.visibilityStatus)?i:"private",{data:g=[]}=n.F.identity.getPreviewAccessEmails.useQuery({identityId:t},{enabled:"preview"===f}),{data:j=[]}=n.F.identity.getPublicInviteOnlyAccessEmails.useQuery({identityId:t},{enabled:"public-invite-only"===f}),N=n.F.identity.addPreviewAccessEmail.useMutation({onSuccess:()=>{s.identity.getPreviewAccessEmails.invalidate({identityId:t}),b(""),x(!1)},onError:e=>{a.oR.error(e.message||"Failed to add email")}}),E=n.F.identity.removePreviewAccessEmail.useMutation({onSuccess:()=>{s.identity.getPreviewAccessEmails.invalidate({identityId:t})},onError:e=>{a.oR.error(e.message||"Failed to remove email")}}),O=n.F.identity.addPublicInviteOnlyAccessEmail.useMutation({onSuccess:()=>{s.identity.getPublicInviteOnlyAccessEmails.invalidate({identityId:t}),b(""),x(!1)},onError:e=>{a.oR.error(e.message||"Failed to add email")}}),P=n.F.identity.removePublicInviteOnlyAccessEmail.useMutation({onSuccess:()=>{s.identity.getPublicInviteOnlyAccessEmails.invalidate({identityId:t})},onError:e=>{a.oR.error(e.message||"Failed to remove email")}}),C=n.F.identity.updateVisibilityStatus.useMutation({onSuccess:()=>{(0,r.e)(s),u(null),a.oR.success("Visibility status updated successfully")},onError:e=>{u(null),a.oR.error(e.message||"Failed to update visibility status")}});(0,l.useEffect)(()=>{x(!1),b("")},[f]);let S="preview"===f?g:"public-invite-only"===f?j:[],A="preview"===f?10:100,T=("preview"===f?N.isPending||E.isPending:O.isPending||P.isPending)||C.isPending,k="preview"===f||"public-invite-only"===f;return{visibilityStatus:f,pendingVisibility:d,isDialogOpen:m,isEmailFormOpen:p,newEmail:v,accessEmailEntries:S,maxAccessEmails:A,showEmailManagement:k,isEmailLoa
1ding:T,isVisibilityLoading:C.isPending,setNewEmail:b,openEmailForm:()=>x(!0),closeEmailForm:()=>{x(!1),b("")},handleVisibilityChange:e=>{e!==f&&(u(e),h(!0))},handleConfirmChange:()=>{d&&C.mutate({identityId:t,visibilityStatus:d}),h(!1)},handleCancelChange:()=>{h(!1),u(null)},handleDialogOpenChange:e=>{h(e),e||u(null)},handleAddEmail:()=>{let e=v.trim();if(e){if("preview"===f){if(g.length>=10)return void a.oR.error("Maximum limit of 10 preview access emails reached");if(g.some(i=>i.email===e.toLowerCase()))return void a.oR.error("Email already exists");if((null==y?void 0:y.email)&&e.toLowerCase()===y.email.toLowerCase())return void a.oR.error("You cannot add your own email to the preview access list");N.mutate({identityId:t,email:e})}else if("public-invite-only"===f){if(j.length>=100)return void a.oR.error("Maximum limit of 100 public invite only access emails reached");if(j.some(i=>i.email===e.toLowerCase()))return void a.oR.error("Email already exists");if((null==y?void 0:y.email)&&e.toLowerCase()===y.email.toLowerCase())return void a.oR.error("You cannot add your own email to the public invite only access list");O.mutate({identityId:t,email:e})}}},handleRemoveEmail:e=>{"preview"===f?E.mutate({identityId:t,email:e}):"public-invite-only"===f&&P.mutate({identityId:t,email:e})}}}({identityId:t}),x=R.find(e=>"open"===e.id),v=R.find(e=>"email-restricted"===e.id),b="preview"===(i=p.visibilityStatus)?{title:"Allowed emails",description:"Add the email addresses of people who can access your persona. They will not see it in public discovery."}:"public-invite-only"===i?{title:"Invite list",description:"Add the email addresses of people who can access your persona. It will appear in public listings, but only these users can chat."}:null;return h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)(d._T,{title:"Open access",description:"Private or fully public â no email list required.",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)(F,{}),(0,s.jsx)(_,{group:x,selectedVisibility:p.visibilityStatus,onVisibilityChange:p.handleVisibilityChange,isLoading:p.isVisibilityLoading,pendingVisibility:p.pendingVisibility,hideHeader:!0})]})}),(0,s.jsx)(d._T,{title:"Email-restricted",description:"Only people you add by email can access.",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsx)(z,{}),(0,s.jsx)(_,{group:v,selectedVisibility:p.visibilityStatus,onVisibilityChange:p.handleVisibilityChange,isLoading:p.isVisibilityLoading,pendingVisibility:p.pendingVisibility,hideHeader:!0,accessListPanel:p.showEmailManagement&&b?(0,s.jsx)(E,{title:b.title,description:b.description,emails:p.accessEmailEntries,maxAccessEmails:p.maxAccessEmails,newEmail:p.newEmail,isFormOpen:p.isEmailFormOpen,isEmailLoading:p.isEmailLoading,onNewEmailChange:e=>p.setNewEmail(e.trim().toLowerCase()),onOpenForm:p.openEmailForm,onCloseForm:p.closeEmailForm,onAddEmail:p.handleAddEmail,onRemoveEmail:p.handleRemoveEmail}):void 0})]})})]}),(0,s.jsx)(C,{isOpen:p.isDialogOpen,onOpenChange:p.handleDialogOpenChange,selectedVisibility:p.visibilityStatus,pendingVisibility:p.pendingVisibility,onConfirm:p.handleConfirmChange,onCancel:p.handleCancelChange})]}):(0,s.jsx)("div",{className:"flex flex-col gap-6",children:(0,s.jsx)(d._T,{title:"Access level",description:"Control who can see, discover, and interact with your persona.",children:(0,s.jsx)(u.O,{title:"Access Restricted",description:"Only the persona owner can manage visibility settings. Collaborators do not have permission to change who can see or discover this persona."})})})}R.flatMap(e=>e.options);var U=t(40183);function Y(){return(0,s.jsx)(U.u,{children:e=>(0,s.jsx)(D,{identityId:e.id})})}},58378:(e,i,t)=>{"use strict";t.d(i,{T:()=>r});var s=t(4930),l=t(2244),a=t(68396);let n=(0,l.F)((0,a.cn)("placeholder:text-muted-foreground aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content w-full bg-transparent text-base transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:"bg-white-08 rounded-full",rounded:"bg-white-08 rounded-lg",shapeless:"focus-visible:ring-0 bg-transparent",error:"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"},size:{default:"h-12 w-full px-[30px] text-[16px]",shapeless:"p-0",sm:"h-8 px-2 py-1",lg:"h-12 px-4 py-2"},texting:{default:"text-[16px] text-white",sm:"text-[14px] text-white",md:"text-[22px] text-white"}},defaultVariants:{variant:"default",size:"default",texting:"default"}});function r(e){let{className:i,variant:t,size:l,texting:r,...o}=e;return(0,s.jsx)("textarea",{"data-slot":"textarea",className:(0,a.cn)(n({variant:t,size:l,texting:r,className:i})),...o})}},59584:(e,i,t)=>{"use strict";t.d(i,{X:()=>r,i:()=>o});var s=t(4930),l=t(21333),a=t(56444),n=t(68396);function r(e){let{title:i,children:t,actions:l,className:a,compact:r=!1}=e;return r?(0,s.jsxs)("div",{className:(0,n.cn)("rounded-xl border border-white/8 bg-white/4 p-3",a),children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-3",children:[(0,s.jsx)("h3",{className:"text-sm font-medium text-white",children:i}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-1",children:l})]}),(0,s.jsx)("div",{className:"space-y-2",children:t})]}):(0,s.jsxs)("div",{className:(0,n.cn)("rounded-2xl border border-white/8 bg-white/4 p-4",a),children:[(0,s.jsx)("h3",{className:"mb-4 text-sm font-medium text-white",children:i}),(0,s.jsx)("div",{className:"space-y-4",children:t}),(0,s.jsx)("div",{className:"mt-4 flex items-center gap-2 border-t border-white/8 pt-4",children:l})]})}function o(e){let{onCancel:i,onSave:t,isSaving:n,canSave:r,saveLabel:o="Save"}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.$,{type:"button",variant:"ghost",size:"sm",onClick:i,disabled:n,className:"h-6 px-2 text-xs text-white/70 hover:text-white",children:"Cancel"}),(0,s.jsx)(a.$,{type:"button",variant:"accent",size:"sm",onClick:t,disabled:!r||n,className:"h-6 rounded-full px-3 text-xs",children:n?(0,s.jsx)(l.A,{}):o})]})}},67991:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/studio/visibility",function(){return t(51946)}])},72809:(e,i,t)=>{"use strict";t.d(i,{_:()=>c,p:()=>o});var s=t(4930),l=t(72112),a=t(58378),n=t(68396),r=t(761);function o(e){let{label:i,value:t,onChange:a,placeholder:o,error:c,hint:d,className:u,disabled:m}=e;return(0,s.jsx)(r.b,{label:i,error:c,hint:d,className:u,children:(0,s.jsx)(l.A0,{variant:"studioCompact",error:!!c,className:(0,n.cn)("h-9",m&&"pointer-events-none opacity-40"),children:(0,s.jsx)(l.pd,{t
1ype:"text",variant:"shapeless",sizes:"shapeless",disabled:m,placeholder:o,value:t,onChange:e=>a(e.target.value),className:l.rW})})})}function c(e){let{label:i,value:t,onChange:o,placeholder:c,error:d,hint:u,maxLength:m,className:h,disabled:p,onPaste:x}=e;return(0,s.jsx)(r.b,{label:i,error:d,hint:u,className:h,children:(0,s.jsx)(l.A0,{variant:"studioCompactTextarea",error:!!d,className:(0,n.cn)(p&&"pointer-events-none opacity-40"),children:(0,s.jsx)(a.T,{variant:"shapeless",size:"shapeless",disabled:p,placeholder:c,value:t,onPaste:x,onChange:e=>{m&&e.target.value.length>m||o(e.target.value)},className:"min-h-[72px] w-full resize-none border-0 bg-transparent px-0 py-0 text-sm font-light text-white shadow-none outline-none placeholder:text-gray-400 focus-visible:border-0 focus-visible:ring-0"})})})}},79214:(e,i,t)=>{"use strict";t.d(i,{Z:()=>l});var s=t(48374);let l={[s.bw.STUDIO_OVERVIEW]:{label:"Overview",description:"Track engagement, conversation trends, and how users interact with your persona."},[s.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."},[s.bw.STUDIO_PROFILE]:{label:"Profile",description:"Set how your persona appears when people discover it in Explore."},[s.bw.STUDIO_PERSONALITY]:{label:"Personality",description:"Shape how your persona presents itself â its backstory, communication style, and voice."},[s.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."},[s.bw.STUDIO_VISIBILITY]:{label:"Visibility",description:"Control who can see, discover, and interact with your persona."},[s.bw.STUDIO_COLLABORATORS]:{label:"Collaborators",description:"Invite team members to help you build and manage your persona."},[s.bw.STUDIO_MONETIZATION]:{label:"Monetization",description:"Add products, courses, and services your persona can recommend during conversations."},[s.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."},[s.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."},[s.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."},[s.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."},[s.bw.STUDIO_SURVEY_RESPONSES]:{label:"Survey responses",description:"Review answers to your survey questions and understand what users are sharing before they chat."}}},86048:(e,i,t)=>{"use strict";t.d(i,{O:()=>a});var s=t(4930),l=t(42487);function a(e){let{title:i,description:t}=e;return(0,s.jsx)("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(l.A,{className:"h-6 w-6 shrink-0 text-red-400"}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)("h3",{className:"mb-2 text-lg font-semibold text-white",children:i}),(0,s.jsx)("p",{className:"text-sm text-gray-300",children:t})]})]})})}}},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=67991)),_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.