PageSourceSearch

https://xego.ai/_next/static/chunks/341-21b782e412192417.js

js xego.ai collected 2026-10-05 13:20:13 UTC 17,115 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{20341:(e,t,a)=>{a.d(t,{default:()=>b});var n=a(49666),s=a(40729),r=a(7439),l=a(59625),o=a(73917),i=a(95247),c=a(83402),d=a(47168),u=a(98020),m=a(37492),h=a(62044),f=a(3476);function x(){let{t:e}=(0,u.B)(),t=(0,i.useRouter)(),{isSignedIn:a}=(0,r.CU)(),{isMeetChecked:s,mobileIndex:l,setCurrentEgo:x,setIsMeetChecked:p}=(0,r.qr)(),{openModal:v}=(0,r.Kr)(),[g,b]=(0,c.useState)(!1),j=(0,c.useCallback)(e=>(s||p(!0),!(e>4)||!!a||(v("AuthModal"),!1)),[a,s]),{containerRef:w,items:y,loading:N,hasMore:E}=function(e){let{fetchFn:t,options:a={}}=e,{gender:n,isNsfw:s,currentEgo:l,setCurrentEgo:o,mobileEgos:i,hasMoreMobileEgos:d,mobileCursor:u,mobileIndex:m,setMobileIndex:x,setMobileEgos:p,appendMobileEgos:v,setHasMoreMobileEgos:g,setMobileCursor:b,clearMobileEgos:j}=(0,r.qr)(),w=(0,c.useRef)(null),y=(0,c.useRef)(!1),N=(0,c.useRef)(!1),E=(0,c.useRef)(0),{loading:k,run:C}=(0,h.A)(async e=>{if(l)return o(void 0);let a=await t({sorting:f.co.MEET,isNsfw:s,gender:n,cursor:u});e?p(a.items):v(a.items),b(a.cursor),g(!!a.hasMore)},{manual:!0,refreshDeps:[n,u,s,l]}),R=(0,c.useCallback)(e=>{E.current=e.touches[0].clientY},[]),M=(0,c.useCallback)(e=>{if(N.current)return;let t=e.changedTouches[0].clientY,n=E.current-t;if(!(50>Math.abs(n))){if(N.current=!0,n>0&&m<i.length-1){if(a.onSwipe&&!a.onSwipe(m)){N.current=!1;return}x({by:1}),m>i.length-3&&d&&C()}else n<0&&m>0&&x({by:-1});setTimeout(()=>{N.current=!1},200)}},[m,i.length,d,C,a.onSwipe]);return(0,c.useEffect)(()=>{let e=w.current;if(e)return e.addEventListener("touchstart",R,{passive:!0}),e.addEventListener("touchend",M,{passive:!0}),()=>{e.removeEventListener("touchstart",R),e.removeEventListener("touchend",M)}},[R,M]),(0,c.useEffect)(()=>{y.current&&C(!0)},[n]),(0,c.useEffect)(()=>{y.current=!0,C(!0)},[]),{containerRef:w,items:(0,c.useMemo)(()=>{let e=Math.max(0,m-(a.overscan||1)),t=Math.min(i.length,m+(a.overscan||1)+1);return i.slice(e,t).map((t,a)=>({...t,virtualIndex:e+a}))},[m,i,a.overscan]),currentScreen:(0,c.useMemo)(()=>Math.max(1,Math.floor(m/(a.overscan||1))+1),[m,a.overscan]),loading:k,hasMore:d,refetch:()=>{j(),x({to:0}),C(!0)}}}({fetchFn:m.Dd.getForYouEgos,options:{overscan:1,onSwipe:j}});return(0,c.useEffect)(()=>{b(!1)},[]),(0,n.jsxs)("div",{ref:w,className:"fixed bottom-[3.25rem] left-0 right-0 top-0 w-screen touch-none overflow-hidden bg-background","data-sentry-component":"Meet","data-sentry-source-file":"index.tsx",children:[!s&&(0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black/80 transition-opacity",children:[(0,n.jsxs)("div",{className:"swipe-hint relative h-20",children:[(0,n.jsx)("div",{className:"swipe-hint-path absolute bottom-0 left-1/2 h-10 w-2 -translate-x-1/2 rounded-full bg-white/30 opacity-0"}),(0,n.jsxs)("div",{className:"swipe-hint-finger absolute bottom-0 left-1/2 -ml-5",children:[(0,n.jsx)("div",{className:"absolute bottom-8 left-1/2 -ml-4 size-5 animate-pulse rounded-full bg-white/50"}),(0,n.jsx)(d._g,{className:"size-12 text-white"})]})]}),(0,n.jsx)("div",{className:"mt-4 text-lg font-medium text-white",children:e("home.popular.swipeHint")})]}),(0,n.jsx)("div",{className:"relative h-full w-full transition-transform duration-300 will-change-transform",style:{transform:"translateY(-".concat(100*l,"%)")},children:y.map(a=>(0,n.jsxs)("div",{className:"absolute h-full w-full",style:{top:"".concat(100*a.virtualIndex,"%")},onClick:e=>{(0,o.jo)(e),x(a),b(!0),t.push("/ego/".concat(a.id,"/chat"))},children:[(0,n.jsxs)("div",{className:"relative h-full w-full",children:[(0,n.jsx)(d._V,{src:a.animatedImageUrl||a.portraitUrl,animated:!!a.animatedImageUrl,width:800,alt:a.name,className:"h-full w-full object-cover"}),(0,n.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-background to-transparent px-4 pb-6 pt-24 text-primary",children:[(0,n.jsx)("h3",{className:"text-lg font-bold",children:a.title}),(0,n.jsx)("p",{className:"mt-1 text-sm text-primary/80",children:a.introduction}),(0,n.jsx)(d.$n,{className:"mt-4 w-full rounded-full",variant:"brand",loading:g,children:e("home.popular.chatNow")})]})]}),(0,n.jsx)(d.N_,{href:"/ego/".concat(a.id,"/chat")})]},a.id))}),N&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"})}),!E&&(0,n.jsx)("div",{className:"absolute bottom-4 left-0 right-0 text-center text-sm text-white",children:e("home.popular.noMoreEgos")})]})}var p=a(84387),v=a(72944);function g(){let{t:e}=(0,u.B)(),{sorting:t,trending:a,gender:s,tagId:l,tags:x,isNsfw:g,scrollTop:b,setIsNsfw:j,setSorting:w,setTrending:y,setGender:N,setTagId:E,setTags:k,setCurrentEgo:C,setScrollTop:R}=(0,r.qr)(),{isSignedIn:M,isDefaultPage:z}=(0,r.CU)(),{openModal:I}=(0,r.Kr)(),F=(0,i.useRouter)(),L=(0,c.useRef)(null),A=(0,d.ZL)(),S=(0,c.useCallback)(e=>{!M&&e>2*window.innerHeight&&I("AuthModal")},[M,I]),{items:T,loading:_,hasMore:U,refetch:V}=(0,v.C)(m.Dd.getEgos,{onReachEnd:S}),{columns:Y,rowVirtualizer:D,getItemsForRow:O}=(0,v.l)({listRef:L,items:T,defaultColumns:2,gap:12});(0,h.A)(async()=>{k(await m.Dd.getTags())});let P=D.getVirtualItems(),H=[{label:e("home.popular.sorting.recommend"),icon:d.xS,value:f.co.FOR_YOU},{label:e("home.popular.sorting.trending"),icon:d.q6,value:f.co.TRENDING},{label:e("home.popular.sorting.popular"),icon:d.f1,value:f.co.POPULAR}],q=[{label:e("home.popular.trending.monthly"),value:f.Z8.MONTHLY},{label:e("home.popular.trending.weekly"),value:f.Z8.WEEKLY}],B=[{label:e("home.popular.gender.all"),value:f.Vv.ALL},{label:e("home.popular.gender.female"),value:f.Vv.FEMALE},{label:e("home.popular.gender.male"),value:f.Vv.MALE},{label:e("home.popular.gender.other"),value:f.Vv.OTHER}],W=(0,c.useMemo)(()=>[{label:e("home.popular.tag.all"),value:"all"},...x.map(e=>({label:e.name,value:e.id}))],[x,e]);function Z(e,t){(0,o.jo)(e),C(t),R(window.scrollY),F.push("/ego/".concat(t.id))}return(0,c.useEffect)(()=>{b&&(window.scrollTo(0,b),(0,o.dY)(()=>{R(void 0)}))},[]),(0,n.jsxs)("div",{className:"mt-6 flex flex-col gap-3","data-sentry-component":"Popular","data-sentry-source-file":"index.tsx",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between md:gap-2",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-1 md:gap-2",children:[(0,n.jsx)(d.l6,{className:"h-8 min-w-0 px-2 text-xs sm:px-4 sm:text-sm/6 md:min-w-[8.25rem] [&_svg]:size-5",contentProps:{className:"min-w-[8.25rem]"},value:t,valueType:"number",options:H,onChange:function(e){w(e),V()},"data-sentry-element":"Select","data-sentry-source-file":"index.tsx"}),t===f.co.TRENDING&&(0,n.jsx)(d.l6,{className:"hidden h-8 min-w-0 px-2 text-xs sm:px-4 sm:text-sm/6 md:block md:min-w-[8.25rem] [&_svg]:size-5",contentProps:{className:"min-w-[8.25rem]"}
1,value:a,valueType:"number",options:q,onChange:function(e){y(e),V()}}),(0,n.jsx)(d.l6,{className:"hidden h-8 min-w-0 px-2 text-xs sm:px-4 sm:text-sm/6 md:block md:min-w-[8.25rem] [&_svg]:size-5",contentProps:{className:"min-w-[8.25rem]"},value:s,valueType:"number",options:B,onChange:function(e){N(e),V()},"data-sentry-element":"Select","data-sentry-source-file":"index.tsx"}),(0,n.jsx)(d.l6,{className:"h-8 min-w-0 px-2 text-xs sm:px-4 sm:text-sm/6 md:min-w-[8.25rem] [&_svg]:size-5",contentProps:{className:"min-w-[12rem] pl-3",align:"start"},value:l||"all",options:W,onChange:function(e){E("all"===e?void 0:e),V()},"data-sentry-element":"Select","data-sentry-source-file":"index.tsx"})]}),!z&&(0,n.jsxs)("div",{className:"flex items-center gap-1 md:gap-2",children:[(0,n.jsx)("label",{htmlFor:"unfiltered",className:"text-xs md:text-sm",children:e("common.unfiltered")}),(0,n.jsx)(d.dO,{id:"unfiltered",value:g,onChange:function(t){m.lt.trackEvent({name:"nsfw_".concat(t?"on":"off")}),t?A({title:e("home.nsfwAlert.heading"),description:e("home.nsfwAlert.description"),cancelProps:{label:e("common.cancel")},confirmProps:{label:e("common.confirm"),variant:"brand"},onConfirm:()=>{j(t),V()}}):(j(t),V())}})]})]}),(0,n.jsx)("div",{ref:L,className:"relative w-full",style:{height:"".concat(D.getTotalSize(),"px")},children:P.map(e=>{let t=O(e.index);return(0,n.jsx)("div",{className:"absolute grid w-full gap-3",style:{top:e.start,height:e.size,transform:"translateZ(0)",gridTemplateColumns:"repeat(".concat(Y,", minmax(0, 1fr))")},children:t.map(e=>(0,n.jsx)(p.A,{ego:e,onClick:Z},e.id))},e.key)})}),_&&(0,n.jsx)("div",{className:"grid gap-3",style:{gridTemplateColumns:"repeat(".concat(Y,", minmax(0, 1fr))")},children:(0,n.jsx)(d.To,{count:Y,children:(0,n.jsx)("div",{className:"animate-skeleton aspect-[0.65] w-full flex-1 rounded-xl"})})}),!U&&(0,n.jsx)("div",{className:"py-3 text-center text-sm text-secondary",children:e("home.popular.noMoreEgos")})]})}function b(){let{activeTabbar:e}=(0,r.CU)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,s.A)("hidden h-screen pb-[3.25rem] md:hidden",{block:"meet"===e}),children:(0,n.jsx)(x,{"data-sentry-element":"Meet","data-sentry-source-file":"HomeView.tsx"})}),(0,n.jsxs)("div",{className:(0,s.A)("hidden min-h-0 flex-1 md:block",{block:"discover"===e}),children:[(0,n.jsx)(l.default,{"data-sentry-element":"Featured","data-sentry-source-file":"HomeView.tsx"}),(0,n.jsx)(g,{"data-sentry-element":"Popular","data-sentry-source-file":"HomeView.tsx"})]})]})}},59625:(e,t,a)=>{a.d(t,{default:()=>h});var n=a(49666),s=a(73917),r=a(62044),l=a(95247),o=a(83402),i=a(47168),c=a(37492),d=a(7439);let u=()=>(0,n.jsx)(i.To,{count:8,"data-sentry-element":"Repeat","data-sentry-component":"FeaturedSkeleton","data-sentry-source-file":"Featured.tsx",children:(0,n.jsx)("div",{className:"animate-skeleton aspect-[0.65] w-52 rounded-xl md:w-60"})}),m=e=>{let{ego:t}=e,a=(0,l.useRouter)(),{setCurrentEgo:r,setScrollTop:o}=(0,d.qr)();return(0,n.jsx)("li",{"data-sentry-component":"FeaturedItem","data-sentry-source-file":"Featured.tsx",children:(0,n.jsxs)(i.N_,{className:"group relative flex aspect-[0.65] w-40 flex-col justify-end rounded-xl bg-accent-primary md:w-60",href:"/ego/".concat(t.id),onClick:function(e){(0,s.jo)(e),r(t),o(window.scrollY),a.push("/ego/".concat(t.id))},"data-sentry-element":"Link","data-sentry-source-file":"Featured.tsx",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden rounded-xl",children:(0,n.jsx)(i._V,{className:"size-full rounded-xl object-cover object-center transition-all duration-200 group-hover:scale-110",src:t.animatedImageUrl||t.portraitUrl,animated:!!t.animatedImageUrl,width:400,alt:t.name,"data-sentry-element":"Image","data-sentry-source-file":"Featured.tsx"})}),(0,n.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex flex-col rounded-b-xl bg-gradient-to-b from-transparent via-black/50 via-[20%] to-black/100 p-4 px-4 pb-4 pt-12",children:[(0,n.jsx)("h4",{className:"text-base font-semibold",children:t.name}),(0,n.jsx)("p",{className:"mt-1 line-clamp-2 text-xs text-secondary",children:t.subtitle||t.introduction})]})]})})};function h(){let e=(0,o.useRef)(null),t=(0,o.useRef)(null),[a,s]=(0,o.useState)(!1),[l,d]=(0,o.useState)(!1),{data:h,loading:f}=(0,r.A)(async()=>c.Dd.featuredEgos(),{});function x(){if(!e.current||!t.current)return;let{scrollLeft:a,clientWidth:n}=e.current,{clientWidth:r}=t.current;s(a>0),d(Math.ceil(a+n)<r)}function p(t){if(!e.current)return;let{clientWidth:a,scrollLeft:n}=e.current;"left"===t?e.current.scrollLeft=n-a:e.current.scrollLeft=n+a}return(0,o.useEffect)(()=>{let t=new ResizeObserver(x);return e.current&&t.observe(e.current),x(),()=>{t.disconnect()}},[]),(0,n.jsxs)("div",{className:"relative","data-sentry-component":"Featured","data-sentry-source-file":"Featured.tsx",children:[(0,n.jsx)("div",{className:"absolute bottom-0 left-0 top-0 z-10 flex items-center justify-center px-2",children:(0,n.jsx)(i.$n,{onClick:()=>p("left"),variant:"ghost",className:"size-9 rounded-full bg-background shadow-xl hover:bg-background/95 aria-hidden:hidden md:size-7",iconOnly:!0,"aria-hidden":!a,"data-sentry-element":"Button","data-sentry-source-file":"Featured.tsx",children:(0,n.jsx)(i.gu,{className:"h-5 w-5","data-sentry-element":"IconChevronLeft","data-sentry-source-file":"Featured.tsx"})})}),(0,n.jsx)("div",{ref:e,className:"scrollbar-hide relative w-full overflow-x-auto overflow-y-hidden scroll-smooth",onScroll:x,children:(0,n.jsx)("ul",{ref:t,className:"flex w-max gap-3",children:f?(0,n.jsx)(u,{}):null==h?void 0:h.items.map(e=>(0,n.jsx)(m,{ego:e},e.id))})}),(0,n.jsx)("div",{className:"absolute bottom-0 right-0 top-0 z-10 flex items-center justify-center px-2",children:(0,n.jsx)(i.$n,{onClick:()=>p("right"),variant:"ghost",className:"size-9 rounded-full bg-background shadow-xl hover:bg-background/95 aria-hidden:hidden md:size-7",iconOnly:!0,"aria-hidden":!l,"data-sentry-element":"Button","data-sentry-source-file":"Featured.tsx",children:(0,n.jsx)(i.Vj,{className:"h-5 w-5","data-sentry-element":"IconChevronRight","data-sentry-source-file":"Featured.tsx"})})})]})}},72944:(e,t,a)=>{a.d(t,{C:()=>i,l:()=>c});var n=a(73917),s=a(93814),r=a(62044),l=a(83402),o=a(7439);function i(e,t){let{sorting:a,trending:s,isNsfw:i,tagId:c,gender:d,cursor:u,egos:m,hasMore:h,currentEgo:f,setCursor:x,setEgos:p,appendEgos:v,setHasMore:g,setCurrentEgo:b,clearEgos:j}=(0,o.qr)(),w=(0,l.useRef)(0),y=(0,l.useRef)(!1),{loading:N,run:E}=(0,r.A)(async t=>{if(f)return b(void 0);let n=await e({sorting:a,trending:s,gender:d,tagId:c,isNsfw:i,cursor:u});t?p(n.items):v(n.items),x(n.cursor),g(!!n.hasMore)},{manual:!0,refreshDeps:[a,s,i,d,c,u,f]});return(0,l.useEffect)(()=>
1{if(h)return window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e)};function e(){let{scrollTop:e,clientHeight:a,scrollHeight:n}=document.documentElement,s=n-(e+a),r=(null==t?void 0:t.triggerDistance)||200,l=(null==t?void 0:t.cooldown)||300,o=Date.now(),i=o-w.current,c=!N&&i>l;if(s<r&&c&&h){var d;w.current=o,E(),null==t||null===(d=t.onReachEnd)||void 0===d||d.call(t,e)}}},[N,h,null==t?void 0:t.onReachEnd]),(0,l.useEffect)(()=>{y.current&&E(!0)},[d]),(0,l.useEffect)(()=>{y.current=!0,E(!0)},[]),{items:m,loading:N,hasMore:h,refetch:function(){j(),(0,n.dY)(()=>{E(!0)})},loadMore:()=>E()}}function c(e){let{listRef:t,items:a,aspectRatio:n=.65,estimateHeight:r=270,defaultColumns:o=2,gap:i=12,overscan:c=3,calculateColumns:d}=e,u=(0,l.useRef)(null),[m,h]=(0,l.useState)(o),[f,x]=(0,l.useState)(r),p=(0,l.useCallback)(()=>{var e,a;let s=(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0,r=o;d?r=d(s):s>=1200?r=6:s>=1024?r=4:s>=720?r=4:s>=480&&(r=3);let l=(s-(r-1)*i)/r/n+i;h(r),x(l),null===(a=u.current)||void 0===a||a.measure()},[o,n,i,t,d]),v=Math.ceil(a.length/m),g=(0,s.XW)({count:v,estimateSize:()=>f,overscan:c});u.current=g;let b=(0,l.useCallback)(e=>{let t=e*m;return a.slice(t,t+m)},[m,a]);return(0,l.useEffect)(()=>{if(t.current){let e=new ResizeObserver(p);return e.observe(t.current),()=>e.disconnect()}},[t,p]),{columns:m,height:f,rowVirtualizer:g,getItemsForRow:b,totalRows:v}}},84387:(e,t,a)=>{a.d(t,{A:()=>c});var n=a(49666),s=a(40729),r=a(95247),l=a(83402),o=a(47168),i=a(98020);function c(e){let{className:t,ego:a,onClick:c}=e,{t:d}=(0,i.B)(),u=(0,r.useRouter)();return(0,l.useEffect)(()=>{u.prefetch("/ego/".concat(a.id,"/chat"))},[a.id]),(0,n.jsx)("div",{className:(0,s.A)("w-full flex-1",t),"data-sentry-component":"EgoItem","data-sentry-source-file":"EgoItem.tsx",children:(0,n.jsxs)(o.N_,{href:"/ego/".concat(a.id),className:"group relative block aspect-[0.65] rounded-xl bg-accent-primary",onClick:c?function(e){c(e,a)}:void 0,"data-sentry-element":"Link","data-sentry-source-file":"EgoItem.tsx",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 overflow-hidden rounded-t-xl duration-200",children:(0,n.jsx)(o.eu,{className:"size-full rounded-xl object-cover object-center",src:a.animatedImageUrl||a.portraitUrl,animated:!!a.animatedImageUrl,width:400,alt:a.name,"data-sentry-element":"Avatar","data-sentry-source-file":"EgoItem.tsx"},a.id)}),(0,n.jsx)("div",{className:"absolute bottom-0 left-0 right-0 overflow-hidden rounded-b-xl",children:(0,n.jsxs)("div",{className:"flex translate-y-14 flex-col bg-gradient-to-b from-transparent via-black/50 via-[20%] to-black/100 px-3 pb-4 pt-12 duration-200 md:translate-y-12 md:px-4 group-hover:md:translate-y-0",children:[(0,n.jsx)("h4",{className:"hyphens-auto font-semibold",children:a.name}),(0,n.jsx)("p",{className:"text-introduction line-clamp-2 hyphens-auto text-sm text-primary/70 md:mt-1 md:text-secondary group-hover:md:line-clamp-[10]",children:a.subtitle||a.introduction}),(0,n.jsxs)("div",{className:"mt-2 flex h-11 items-center justify-center gap-2 rounded-xl bg-primary text-sm text-background opacity-0 duration-200 sm:h-10 group-hover:md:mt-4 group-hover:md:opacity-100",children:[(0,n.jsx)(o.oE,{className:"size-6","data-sentry-element":"IconChat","data-sentry-source-file":"EgoItem.tsx"}),(0,n.jsx)("span",{className:"font-medium",children:d("home.popular.chatNow")})]})]})})]})})}}}]);

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.