1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5819],{12503:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>k});var l=t(4930),a=t(16401),i=t(3941),r=t.n(i),n=t(28464),c=t(43185),d=t(69743),o=t(76294),x=t(28374),h=t(70740),m=t(6845),u=t(56444),p=t(21333),f=t(31761),b=t(46741),j=t(68396),g=t(55647);function v(e){let{status:s}=e;return s===m.GG.PREVIEW?(0,l.jsxs)("div",{className:"absolute top-3 right-3 inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-black/50 px-2.5 py-1 text-xs font-medium text-white/80 backdrop-blur-sm",children:[(0,l.jsx)(c.A,{className:"size-3"}),"Preview"]}):s===m.GG.PUBLIC_INVITE_ONLY?(0,l.jsxs)("div",{className:"absolute top-3 right-3 inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-black/50 px-2.5 py-1 text-xs font-medium text-white/80 backdrop-blur-sm",children:[(0,l.jsx)(d.A,{className:"size-3"}),"Invite only"]}):null}function N(e){let{persona:s}=e,t=(0,a.useRouter)(),i=s.visibilityStatus===m.GG.PUBLIC_INVITE_ONLY,{isLoading:c,data:d}=g.F.identity.checkIdentityAccess.useQuery({slug:s.slug},{enabled:i&&!!s.slug,retry:!1,refetchOnWindowFocus:!1}),N=!1===d,w=!!s.slug&&s.visibilityStatus===m.GG.PUBLIC;return(0,l.jsxs)("div",{"data-testid":"explore-persona-card",className:(0,j.cn)(f.Go,"group flex w-full flex-col shadow-lg shadow-black/20 transition-all duration-300 hover:-translate-y-0.5 hover:border-white/15 hover:shadow-xl hover:shadow-black/40 sm:w-75"),children:[(0,l.jsxs)("div",{className:"relative aspect-4/5 w-full shrink-0 overflow-hidden",children:[s.imageUrl?(0,l.jsx)(r(),{src:s.imageUrl,alt:s.displayName||"Persona",fill:!0,style:{objectFit:"cover",objectPosition:"center top"},sizes:"300px",className:"transition-transform duration-500 ease-out group-hover:scale-[1.03]"}):(0,l.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-white/5",children:(0,l.jsx)(n.aSe,{className:"size-20 text-white/30"})}),(0,l.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-linear-to-t from-black/40 to-transparent"}),(0,l.jsx)(v,{status:s.visibilityStatus})]}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-4 bg-black/20 px-5 pt-4 pb-5",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h2",{className:"line-clamp-1 text-base font-semibold text-white",children:s.displayName||"Unnamed Persona"}),(0,l.jsx)("p",{className:"mt-1 line-clamp-2 min-h-10 text-sm leading-5 text-white/70",children:s.shortDescription})]}),(0,l.jsxs)("div",{className:"mt-auto flex flex-row gap-2",children:[(0,l.jsx)(u.$,{"data-testid":"explore-persona-chat",onClick:()=>{if(s.slug){if(i&&N)return void(0,h.oR)("This persona is invite-only. You are not on the invite list. Please contact the creator to request access.",{icon:"â ï¸",duration:5e3});t.push((0,b.aN)(s.slug))}},disabled:!s.slug||i&&c,variant:"accent",size:"sm",className:"flex min-w-0 flex-1 items-center justify-center gap-2 rounded-full",children:i&&c?(0,l.jsx)(p.A,{size:16}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.A,{className:"size-4"}),"Chat"]})}),(0,l.jsxs)(u.$,{"data-testid":"explore-persona-meet",onClick:()=>{s.slug&&w&&t.push((0,b.XR)(s.slug))},disabled:!w,title:w?void 0:"Profile page is not available yet",variant:"ghost",size:"sm",className:"flex min-w-0 flex-1 items-center justify-center gap-2 rounded-full border border-white/15 bg-transparent text-white/85 hover:bg-white/5 hover:text-white disabled:opacity-40",children:[(0,l.jsx)(x.A,{className:"size-4"}),"Profile"]})]})]})]})}function w(){return(0,l.jsxs)("div",{className:(0,j.cn)(f.Go,"flex w-full flex-col animate-pulse sm:w-[300px]"),children:[(0,l.jsx)("div",{className:"aspect-[4/5] w-full shrink-0 bg-white/8"}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 px-5 py-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("div",{className:"h-5 w-3/4 rounded bg-white/8"}),(0,l.jsx)("div",{className:"h-4 w-full rounded bg-white/8"}),(0,l.jsx)("div",{className:"h-4 w-2/3 rounded bg-white/8"})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("div",{className:"h-9 min-w-0 flex-1 rounded-full bg-white/8"}),(0,l.jsx)("div",{className:"h-9 min-w-0 flex-1 rounded-full bg-white/8"})]})]})]})}var y=t(37826);function k(){let{data:e,isLoading:s,error:t}=g.F.identity.getVisiblePersonas.useQuery();return s?(0,l.jsx)(y.A,{title:"Explore",children:(0,l.jsx)("div",{"data-testid":"explore-loading",className:"container mx-auto px-4 py-8",children:(0,l.jsx)("div",{className:"flex flex-wrap justify-start gap-6",children:Array.from({length:6}).map((e,s)=>(0,l.jsx)(w,{},s))})})}):t?(0,l.jsx)(y.A,{title:"Explore",children:(0,l.jsx)("div",{className:"flex justify-center items-center min-h-[400px]",children:(0,l.jsxs)("div",{className:"text-red-400 text-center",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"Error loading personas"}),(0,l.jsx)("p",{children:t.message})]})})}):(0,l.jsx)(y.A,{title:"Explore",children:(0,l.jsx)("div",{className:"container mx-auto px-4 py-8",children:e&&e.length>0?(0,l.jsx)("div",{className:"flex flex-wrap justify-start gap-6",children:e.map(e=>(0,l.jsx)(N,{persona:e},e.id))}):(0,l.jsxs)("div",{"data-testid":"explore-empty-state",className:"text-center py-12",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold text-gray-400 mb-2",children:"No personas available yet"}),(0,l.jsx)("p",{className:"text-gray-500",children:"Check back later for published personas to explore"})]})})})}},28374:(e,s,t)=>{"use strict";t.d(s,{A:()=>l});let l=(0,t(98832).A)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
1],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]])},81295:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/explore",function(){return t(12503)}])}},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=81295)),_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.