PageSourceSearch

https://jebbee.com/_next/static/chunks/pages/account-settings/users-519bb1aad86900eb.js

js jebbee.com collected 2026-09-25 03:03:50 UTC 4,456 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="21226988-7fd6-4633-848f-f8ca5f533a3e",e._sentryDebugIdIdentifier="sentry-dbid-21226988-7fd6-4633-848f-f8ca5f533a3e")}catch(i){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4961],{10117:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-settings/users",function(){return i(50345)}])},50345:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return E}});var r=i(85893),t=i(86886),l=i(67294),a=i(80822),o=i(41796),d=i(26447),s=i(66242),u=i(78445),c=i(82589),f=i(90948),m=i(18763),h=i(33934),g=i(42298),v=i(62772),p=i(53662),w=i(20241),x=i(72303),j=i(72541),y=i(59663),N=i(46445),_=i(78268);let b=(0,f.ZP)(a.Z)(e=>{let{verified:n,theme:i}=e;return{backgroundColor:n?(0,o.Fq)(i.palette.success.light,.8):(0,o.Fq)(i.palette.error.light,.8),borderRadius:10,display:"flex",marginLeft:"auto",alignItems:"center",justifyContent:"center",padding:3,color:"white"}}),Z=e=>{let{verified:n}=e;return n?(0,r.jsx)(N.Z,{size:"11px"}):(0,r.jsx)(_.Z,{size:"11px"})},C=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=arguments.length>2?arguments[2]:void 0,r="Bearer ".concat(window.localStorage.getItem("accessToken"));return await m._i.get(m.ET.users.list,{params:{page:e,take:n,...i?{search:i}:null},headers:{Authorization:r}})},k=()=>{let[e,n]=(0,l.useState)(null),[i,t]=(0,l.useState)(""),[a,o]=(0,l.useState)(!1),[f,m]=(0,l.useState)({page:1,pageSize:10}),{page:N,pageSize:_}=f,[k,I]=(0,l.useState)(!1),[E,P]=(0,w.nj)("",500),{isLoading:S,error:T,data:F,isRefetching:O}=(0,h.a)({queryKey:["usersList",N,_,E],queryFn:()=>C(N,_,E)}),W=(0,l.useMemo)(()=>(null==F?void 0:F.data)||[],[F]),D=(0,l.useMemo)(()=>{var e,n;return(null==F?void 0:null===(e=F.meta)||void 0===e?void 0:null===(n=e.pagination)||void 0===n?void 0:n.total)||0},[F]),L=()=>o(e=>!e),q=e=>{n(e||null),I(e=>!e)},z=e=>{P(e.target.value),m(e=>({...e,page:1}))};return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(u.Z,{title:"Users",action:(0,r.jsxs)(d.Z,{spacing:3,direction:"row",children:[(0,r.jsx)(v.Z,{size:"small",placeholder:"Search ...",onChange:z}),(0,r.jsx)(c.Z,{variant:"contained",onClick:L,children:"Add New User"})]})}),(0,r.jsx)(p.Z,{pageModel:m,pagination:!0,pageInfo:f,paginationMode:"server",rows:W,rowCount:D,columns:[{field:"username",headerName:"Username",minWidth:150,flex:1,renderCell:e=>e.row.username},{field:"firstName",headerName:"First Name",minWidth:110,flex:1},{field:"lastName",headerName:"Last Name",minWidth:110,flex:1},{field:"email",minWidth:250,flex:1,headerName:"Email",renderCell:e=>{var n,i;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{direction:"row",justifyContent:"center",alignItems:"center",gap:1,children:e.row.email}),e.row.email&&(0,r.jsx)(b,{verified:null==e?void 0:null===(n=e.row)||void 0===n?void 0:n.verifiedEmail,children:(0,r.jsx)(Z,{verified:null==e?void 0:null===(i=e.row)||void 0===i?void 0:i.verifiedEmail})})]})}},{field:"phoneNumber",minWidth:220,flex:1,headerName:"Phone Number",renderCell:e=>{var n,i;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Z,{direction:"row",justifyContent:"center",alignItems:"center",gap:2,children:(0,j.un)(e.row.phone)}),e.row.phone&&(0,r.jsx)(b,{verified:null==e?void 0:null===(n=e.row)||void 0===n?void 0:n.verifiedPhone,children:(0,r.jsx)(Z,{verified:null==e?void 0:null===(i=e.row)||void 0===i?void 0:i.verifiedPhone})})]})}},{field:"lastOnlineTimestamp",headerName:"Last Login",minWidth:110,flex:1,renderCell:e=>{var n,i;return(null===(n=e.row)||void 0===n?void 0:n.lastOnlineTimestamp)?(0,g.default)(new Date(null===(i=e.row)||void 0===i?void 0:i.lastOnlineTimestamp),"P"):" - "}}],loading:S,disableSelectionOnClick:!0,error:T,onRowClick:e=>q(e.row)}),a&&(0,r.jsx)(x.Z,{open:a,toggle:L}),k&&e&&(0,r.jsx)(y.Z,{userId:e.id,open:k,toggle:q})]})},I=()=>(0,r.jsx)(t.ZP,{container:!0,spacing:6,children:(0,r.jsx)(t.ZP,{item:!0,xs:12,children:(0,r.jsx)(k,{})})});var E=I}},function(e){e.O(0,[6886,7136,8739,5027,241,9491,1442,2260,4661,8960,8936,2179,4386,832,2171,9023,2640,275,361,7478,2933,2469,2487,2036,4923,9774,2888,179],function(){return e(e.s=10117)}),_N_E=e.O()}]);
2//# sourceMappingURL=users-519bb1aad86900eb.js.map

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.