PageSourceSearch

https://searchingyard-marketplace.vercel.app/_next/static/chunks/p…/admin/users/[userId]-491a39267a110649.js

js searchingyard-marketplace.vercel.app collected 2026-10-03 07:41:29 UTC 6,248 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7441],{68848:function(l,e,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/users/[userId]",function(){return s(18558)}])},18558:function(l,e,s){"use strict";s.r(e);var d=s(85893),a=s(88045),i=s(49798),t=s(38),u=s(53213),o=s(21637),n=s(11163),c=s(67294),v=s(69661),r=s(90739);let x=[{key:"3",value:(0,d.jsx)("span",{className:"text-sm",children:"Requested Products"}),filterValue:"REQUEST"},{key:"4",value:(0,d.jsx)("span",{className:"text-sm",children:"Pending Requests"}),filterValue:"PENDING"},{key:"5",value:(0,d.jsx)("span",{className:"text-sm",children:"Canceled Requests"}),filterValue:"CANCELED"},{key:"6",value:(0,d.jsx)("span",{className:"text-sm",children:"Success Requests"}),filterValue:"SUCCESS"}],m=()=>{var l,e,s,m,p,g,f,N,_,j,w,E,b,C,y,P,S,k,D,R,I,T,U,V,q,L,z,A,O,Z,G,Q,B;let[J,M]=(0,c.useState)("default"),[X,F]=(0,c.useState)(0),H=(0,n.useRouter)(),W=l=>{M(l.target.value)},Y=null==H?void 0:null===(l=H.query)||void 0===l?void 0:l.userId,K="user/products?perPage=20&pageNo=".concat(X,"&isTotalData=true");J&&"DEMO"===J&&(K+="&type=DEMO"),J&&"REQUEST"===J&&(K+="&type=REQUEST"),J&&"PENDING"===J&&(K+="&status=PENDING"),J&&"CANCELED"===J&&(K+="&status=CANCELED"),J&&"SUCCESS"===J&&(K+="&status=SUCCESS"),Y&&(K+="&userId=".concat(Y));let{isValidating:$,data:ll,mutate:le}=(0,i.BJ)(K),{data:ls,isValidating:ld,mutate:la}=(0,i.BJ)("user?userId=".concat(Y));return(0,d.jsx)(t.lq,{children:(0,d.jsxs)("section",{className:"w-full",children:[(0,d.jsxs)("article",{className:"lg:sticky top-0 z-50 flex flex-col md:flex-row items-center justify-between gap-4 bg-white shadow-[rgba(50,_50,_105,_0.15)_0px_2px_5px_0px,_rgba(0,_0,_0,_0.05)_0px_1px_1px_0px] p-4 rounded-md mb-4",children:[(0,d.jsxs)("aside",{className:"flex items-center gap-4",children:[(0,d.jsx)(v.Z,{className:"w-20 h-20 object-cover rounded-full text-3xl bg-primary shadow-[0px_0px_2px_1px_#00000024]",src:null==ls?void 0:null===(e=ls.data)||void 0===e?void 0:null===(s=e.success)||void 0===s?void 0:null===(m=s.data)||void 0===m?void 0:m.imageUrl,children:(null==ls?void 0:null===(p=ls.data)||void 0===p?void 0:null===(g=p.success)||void 0===g?void 0:null===(f=g.data)||void 0===f?void 0:f.name)&&(null==ls?void 0:null===(N=ls.data)||void 0===N?void 0:null===(_=N.success)||void 0===_?void 0:null===(j=_.data)||void 0===j?void 0:j.name[0])}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h3",{className:"text-lg md:text-xl lg:text-2xl font-semibold capitalize tracking-wide",children:null==ls?void 0:null===(w=ls.data)||void 0===w?void 0:null===(E=w.success)||void 0===E?void 0:null===(b=E.data)||void 0===b?void 0:b.name}),(0,d.jsx)("p",{className:"text-sm",children:null==ls?void 0:null===(C=ls.data)||void 0===C?void 0:null===(y=C.success)||void 0===y?void 0:null===(P=y.data)||void 0===P?void 0:P.email})]})]}),(0,d.jsx)("aside",{children:(0,d.jsxs)(u.Z,{fullWidth:!0,value:J,defaultValue:J,onChange:W,size:"medium",className:"!bg-white w-44",children:[(0,d.jsx)(o.Z,{value:"default",children:(0,d.jsx)("span",{className:"text-sm",children:"Default"})}),null==x?void 0:x.map(l=>(0,d.jsx)(o.Z,{value:null==l?void 0:l.filterValue,children:null==l?void 0:l.value},null==l?void 0:l.key))]})})]}),(0,d.jsxs)("article",{className:"h-full bg-white shadow-[rgba(50,_50,_105,_0.15)_0px_2px_5px_0px,_rgba(0,_0,_0,_0.05)_0px_1px_1px_0px] p-4 rounded-md",children:[(0,d.jsx)("h2",{className:"title text-center pb-8 capitalize",children:(null==J?void 0:J.toLowerCase())==="default"?"Products":"".concat(null==J?void 0:J.toLowerCase()," Products")}),$?(0,d.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-
15",children:[...Array(8)].map((l,e)=>(0,d.jsx)(h,{},e))}):(0,d.jsxs)("div",{className:"flex flex-col gap-10",children:[(0,d.jsx)("div",{className:"w-full",children:(null==ll?void 0:null===(S=ll.data)||void 0===S?void 0:null===(k=S.success)||void 0===k?void 0:null===(D=k.data)||void 0===D?void 0:null===(R=D.results)||void 0===R?void 0:R.length)?(0,d.jsx)("aside",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-5",children:null==ll?void 0:null===(I=ll.data)||void 0===I?void 0:null===(T=I.success)||void 0===T?void 0:null===(U=T.data)||void 0===U?void 0:null===(V=U.results)||void 0===V?void 0:V.map(l=>(0,d.jsx)(a.DP,{item:l,mutate:le},null==l?void 0:l._id))}):(0,d.jsx)("div",{className:"min-h-[60vh] flex items-center justify-center",children:(0,d.jsx)(r.HY,{imgStyle:"w-60 h-60",title:"No Product Found"})})}),(null==ll?void 0:null===(q=ll.data)||void 0===q?void 0:null===(L=q.success)||void 0===L?void 0:null===(z=L.data)||void 0===z?void 0:z.totalCount)>=20&&(0,d.jsx)("div",{className:"flex items-end justify-end",children:(0,d.jsx)(r.ek,{currentPage:X,setCurrentPage:F,haveNextPage:null==ll?void 0:null===(A=ll.data)||void 0===A?void 0:null===(O=A.success)||void 0===O?void 0:null===(Z=O.data)||void 0===Z?void 0:Z.haveNextPage,totalCount:null==ll?void 0:null===(G=ll.data)||void 0===G?void 0:null===(Q=G.success)||void 0===Q?void 0:null===(B=Q.data)||void 0===B?void 0:B.totalCount,limit:20})})]})]})]})})};e.default=(0,i.TD)(m);let h=()=>(0,d.jsxs)("div",{className:"p-4 w-full relative bg-white shadow-[0px_0px_2px_1px_#00000024]",children:[(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)("div",{className:"w-60 h-28 rounded-md pt-3 bg-slate-300"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,d.jsx)("div",{className:"w-[90%] h-2 bg-slate-300 rounded-full"}),(0,d.jsx)("div",{className:"h-1.5 w-1/2 bg-slate-300 rounded-full"})]})]}),(0,d.jsxs)("div",{className:"flex gap-3 flex-col pt-4",children:[(0,d.jsx)("div",{className:"h-2 w-4/5 bg-slate-300 rounded-full"}),(0,d.jsx)("div",{className:"h-1.5 w-2/5 bg-slate-300 rounded-full"}),(0,d.jsx)("div",{className:"h-1.5 w-[90%] bg-slate-300 rounded-full"}),(0,d.jsx)("div",{className:"h-1.5 w-1/5 bg-slate-300 rounded-full"})]}),(0,d.jsx)("div",{className:"flex flex-col gap-4 justify-center items-center pt-5",children:(0,d.jsx)("div",{className:"h-9 w-full bg-slate-300 rounded-lg"})})]})}},function(l){l.O(0,[2013,5445,260,5062,1664,7146,9572,9394,3206,9090,38,3908,4144,9774,2888,179],function(){return l(l.s=68848)}),_N_E=l.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.