1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7813],{73208:(e,t,s)=>{Promise.resolve().then(s.bind(s,8383)),Promise.resolve().then(s.bind(s,92385)),Promise.resolve().then(s.t.bind(s,44839,23)),Promise.resolve().then(s.t.bind(s,53704,23)),Promise.resolve().then(s.t.bind(s,28670,23)),Promise.resolve().then(s.t.bind(s,9455,23)),Promise.resolve().then(s.t.bind(s,66779,23)),Promise.resolve().then(s.t.bind(s,47112,23)),Promise.resolve().then(s.t.bind(s,39483,23)),Promise.resolve().then(s.t.bind(s,29658,23)),Promise.resolve().then(s.t.bind(s,32821,23)),Promise.resolve().then(s.t.bind(s,61350,23)),Promise.resolve().then(s.t.bind(s,45505,23)),Promise.resolve().then(s.t.bind(s,54172,23)),Promise.resolve().then(s.t.bind(s,17744,23)),Promise.resolve().then(s.t.bind(s,46011,23)),Promise.resolve().then(s.t.bind(s,96874,23)),Promise.resolve().then(s.t.bind(s,40494,23)),Promise.resolve().then(s.t.bind(s,32497,23)),Promise.resolve().then(s.t.bind(s,44579,23)),Promise.resolve().then(s.t.bind(s,26621,23)),Promise.resolve().then(s.t.bind(s,19114,23)),Promise.resolve().then(s.t.bind(s,91136,23)),Promise.resolve().then(s.t.bind(s,26884,23)),Promise.resolve().then(s.t.bind(s,79002,23)),Promise.resolve().then(s.t.bind(s,75365,23)),Promise.resolve().then(s.t.bind(s,58893,23)),Promise.resolve().then(s.t.bind(s,5620,23)),Promise.resolve().then(s.t.bind(s,97532,23)),Promise.resolve().then(s.t.bind(s,12164,23)),Promise.resolve().then(s.t.bind(s,20437,23)),Promise.resolve().then(s.t.bind(s,61550,23)),Promise.resolve().then(s.t.bind(s,2828,23)),Promise.resolve().then(s.t.bind(s,31527,23)),Promise.resolve().then(s.t.bind(s,42370,23)),Promise.resolve().then(s.t.bind(s,32989,23)),Promise.resolve().then(s.t.bind(s,84159,23)),Promise.resolve().then(s.t.bind(s,99831,23)),Promise.resolve().then(s.t.bind(s,79231,23)),Promise.resolve().then(s.t.bind(s,97419,23)),Promise.resolve().then(s.t.bind(s,62464,23)),Promise.resolve().then(s.t.bind(s,42018,23)),Promise.resolve().then(s.t.bind(s,31300,23)),Promise.resolve().then(s.t.bind(s,80641,23)),Promise.resolve().then(s.t.bind(s,880,23)),Promise.resolve().then(s.t.bind(s,56346,23)),Promise.resolve().then(s.t.bind(s,22609,23))},92385:(e,t,s)=>{"use strict";s.r(t),s.d(t,{HomeContent:()=>f,default:()=>p});var r=s(95155),n=s(12115),i=s(67886),l=s(4402),o=s(17047),a=s(76046),d=s(68096),h=s(71900),m=s(57882),c=s(4640),u=s(48974),x=s(49354),v=s(60209),b=s(33473),P=s(60093);s(67396),s(54203),s(9871);let g=/\b(lingerie|underwear|underwired|bra|bras|bralette|balconette|panties|thong|nude|naked|undress|nsfw|topless|sexy|erotic)\b/i;function f(e){var t;let{allowMobileView:s=!1,initialSearchQuery:v="",defaultContent:b=null,initialShowMore:P=!0,header:f}=e,{open:p}=(0,i.K)(),[j,w]=(0,n.useState)(null);(0,a.useRouter)();let y=(0,a.useSearchParams)(),[S,N]=(0,n.useState)(v),k=(0,u.d)(S,500),[A,E]=(0,n.useState)(!1),{profile:F}=(0,x.x)();(0,n.useEffect)(()=>{S!==k?E(!0):E(!1)},[S,k]);let M=async e=>{if(!e||!F||!F.username)return null;let{data:t}=await o.F.get("/public/image/".concat(e));return t.success?t.data:null};(0,n.useEffect)(()=>{let e=y.get("image");e?M(e).then(e=>{e&&w(e)}):w(null)},[y]);let C=async e=>{let{pageParam:t=0}=e,s=k?"/public/search":"/public/trending",r={offset:t,limit:28,...k&&{q:k}},n=await o.F.get(s,{params:r});if(console.log(n.data.data),!n.data.success)throw Error("Failed to fetch images");let i=n.data.data.map(e=>({id:e.id,generation_version:e.generation_version,prompt:e.prompt,username:e.username,avatar:e.avatar,is_public:(null==e?void 0:e.shared)=="public",isPublic:(null==e?void 0:e.shared)=="public",isOwner:e.isOwner,isLiked:e.isLiked,likes:e.likes,views:e.views,aspectRatio:e.aspectRatio,likesCount:e.likesCount,todayInteractions:e.todayInteractions,createdAt:e.createdAt,user:e.user,shared:e.shared}));return{images:k?i:i.filter(e=>!g.test(e.prompt||"")),nextPage:28===i.length?t+28:void 0}},{data:_,fetchNextPage:O,hasNextPage:V,isFetchingNextPage:I,status:W,error:Q,isFetching:T}=(0,m.q)({queryKey:["images",k],queryFn:C,getNextPageParam:e=>e.nextPage,staleTime:6e5,cacheTime:18e5,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!1,retry:1}),q=null!==(t=null==_?void 0:_.pages.flatMap(e=>e.images))&&void 0!==t?t:[];return"error"===W?(0,r.jsxs)("div",{className:"text-center py-8 text-red-500",children:["Error: ",Q.message]}):T&&!_||A?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.default,{onSearch:e=>N(e)}),f?(0,r.jsx)("div",{style:{maxWidth:1265,margin:"auto"},className:"text-foreground px-1 pt-2",children:f}):null,(0,r.jsx)("div",{className:"flex items-center justify-center h-[calc(100vh-4rem)]",children:(0,r.jsx)(c.A,{})})]}):!k&&b?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.default,{onSearch:e=>N(e)}),b]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.default,{onSearch:e=>N(e)}),(0,r.jsx)("main",{style:{maxWidth:1265,margin:"auto"},className:"text-foreground px-1",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto py-8 pt-2",children:[f,(0,r.jsx)(n.Suspense,{children:(0,r.jsx)(h.A,{dataLength:q.length,next:O,hasMore:V||!1,loader:!1==P?null:(0,r.jsx)(c.A,{}),endMessage:!1==P?null:(0,r.jsx)("p",{className:"text-center"}),scrollThreshold:.5,children:(0,r.jsx)(l.A,{allowMobileView:s,images:!1==P?q.slice(0,20):q,selectedImage:j,setSelectedImage:w})})})]})})]})}function p(e){let{explore:t}=e;return(0,r.jsx)(n.Suspense,{children:(0,r.jsx)(j,{explore:t})})}function j(e){let{explore:t}=e,{profile:s,isLoading:i}
1=(0,x.x)(),[l,o]=(0,n.useState)(!1),d=(0,a.usePathname)();return i?(0,r.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,r.jsx)(c.A,{})}):"/veo3"!=d||t?"/"!=d||t?(0,r.jsx)(P.AuthWrapper,{children:(0,r.jsx)(f,{initialSearchQuery:""})}):(0,r.jsx)(P.AuthWrapper,{children:(0,r.jsx)(f,{initialSearchQuery:"",defaultContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.UserProfilePage,{username:null==s?void 0:s.username}),(0,r.jsx)(f,{allowMobileView:!0,initialShowMore:!0,initialSearchQuery:"",header:(0,r.jsxs)("div",{className:"ml-2 mb-5",children:[(0,r.jsx)("h2",{className:"text-xl font-bold text-foreground",children:"P20V â AI Image Editor for Product Photos, Virtual Staging & Marketing Visuals"}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:"Join the professionals using P20V daily."})]})})]})})}):(0,r.jsx)(P.AuthWrapper,{children:(0,r.jsx)(f,{initialSearchQuery:"",defaultContent:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f,{allowMobileView:!0,initialShowMore:l,initialSearchQuery:"",header:(0,r.jsx)("h2",{className:"text-xl font-bold ml-2 mb-5",children:"Community Examples"})}),!0==l?null:(0,r.jsx)("a",{className:"px-3 py-2 mx-auto text-white font-medium rounded-sm transition-colors duration-200 flex items-center gap-2 min-w-[120px] justify-center mb-[100px]",href:"/",children:(0,r.jsxs)("div",{children:["Create Now",(0,r.jsx)("br",{})," ",(0,r.jsx)("div",{className:"flexcenter",children:(0,r.jsx)(b.A,{})})]})})]})})})}},48974:(e,t,s)=>{"use strict";s.d(t,{d:()=>n});var r=s(12115);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,[s,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let s=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(s)}},[e,t]),s}}},e=>{var t=t=>e(e.s=t);e.O(0,[629,4839,1987,7418,1190,7970,5025,9124,3121,2962,3579,6360,240,5651,7111,2507,6586,6649,9429,8096,209,5575,8383,8441,1517,7358],()=>t(73208)),_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.