PageSourceSearch

https://dash.elfsight.com/_next/static/chunks/pages/members-cfe6175022160166.js

js elfsight.com collected 2026-09-24 09:27:18 UTC 11,478 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="0a03f9a4-cf22-4a31-9dfd-c39c80ddfe0b",e._sentryDebugIdIdentifier="sentry-dbid-0a03f9a4-cf22-4a31-9dfd-c39c80ddfe0b")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6265],{11318:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>X});var n,s=t(26514),o=t(82046),l=t(53048),r=t(75834),a=t(62030),d=t(75563),c=t(12433),p=t(83496),m=t(97993),x=t(26097);function f(e){let{children:i}=e;return(0,s.jsxs)(a.XI,{_gap:[6,12],_omitBoundaryGap:!0,children:[(0,s.jsx)(a.D1,{children:(0,s.jsxs)(a.TR,{children:[(0,s.jsx)(a.TH,{children:"NAME"}),(0,s.jsx)(a.TH,{children:"EMAIL"}),(0,s.jsx)(a.TH,{children:"PERMISSIONS"}),(0,s.jsx)(a.TH,{children:"LAST ACTIVE"}),(0,s.jsx)(a.TH,{})]})}),(0,s.jsx)(a.vc,{children:i})]})}var u=t(2483),h=t(12236),j=t(50418),v=t(14200),g=((n={}).REMOVE_MEMBER="remove-member",n);let b=(0,r.createContext)(null);function w(e){let{type:i,pid:t,name:n,email:o,children:l}=e,{user:a}=(0,p.Jd)(),[d,c]=(0,r.useState)(),x=(0,m.pt)(),f=async e=>{c(e)},u=async()=>{c(void 0)};return(0,s.jsxs)(b.Provider,{value:{modal:d,open:f,close:u},children:[l,(0,s.jsx)(v.S,{isOpen:"remove-member"===d,type:i,pid:t,name:n,onSettled:()=>{a?.email===o&&window.location.replace("/"),x()},onRequestClose:u})]})}function y(){let e=(0,r.useContext)(b);if(null===e)throw Error("`useCollaboratorsModal` must be nested inside an `CollaboratorsModalProvider`.");return e}function C(e){let{invitation:i}=e,{open:t}=y(),{email:n,isDeactivated:o,role:l,projects:r,pid:c}=i,{mutate:p}=(0,d.Ep)({onSuccess:()=>{(0,u.oR)(e=>(0,s.jsx)(h.T,{email:n,onClose:()=>u.oR.dismiss(e.id)}))}});return(0,s.jsxs)(a.TR,{_height:36,children:[(0,s.jsx)(a.TD,{children:(0,s.jsxs)(E,{children:[(0,s.jsx)(j.qE,{isDeactivated:o,placeholderArgs:{email:n,firstName:null,lastName:null},isInvitation:!0,size:36}),(0,s.jsx)(j.s0,{content:"—",type:"name",isDeactivated:o,isInvitation:!0})]})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(I,{variant:"caption",color:"gray50",children:(0,a.QX)(n)})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(j.AU,{role:l,isDeactivated:o,projects:r,isInvitation:!0})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(R,{variant:"caption",color:"gray50",children:"Pending..."})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(M,{children:(0,s.jsxs)(a.tz,{tooltipContent:"Actions",children:[!o&&(0,s.jsx)(a.VJ,{onClick:()=>{p({accountMemberInvitationPid:c})},children:"Resend Invite"}),(0,s.jsx)(a.VJ,{danger:!0,onClick:()=>{t(g.REMOVE_MEMBER)},children:"Remove Member"})]})})})]})}let E=x.default.div.withConfig({componentId:"sc-18b652ef-0"})(["display:flex;align-items:center;gap:20px;"]),I=(0,x.default)(a.o5).withConfig({componentId:"sc-18b652ef-1"})(["overflow-wrap:break-word;"]),R=(0,x.default)(a.o5).withConfig({componentId:"sc-18b652ef-2"})(["display:flex;align-items:center;"]),M=x.default.div.withConfig({componentId:"sc-18b652ef-3"})(["display:flex;justify-content:end;"]);function D(e){let{user:{email:i,userProfile:t},profilePictureURL:n,isOwner:o,isYou:l,isDeactivated:r,role:d,projects:c,...p}=e,{open:m}=y(),{firstName:x,lastName:f}=t||{},u=x&&f?`${x} ${f}`:x||f||void 0;return(0,s.jsxs)(T,{...p,children:[(0,s.jsx)(j.qE,{isDeactivated:r,profilePictureURL:n,placeholderArgs:{email:i,firstName:x,lastName:f},alignTop:!0}),(0,s.jsxs)(_,{children:[(0,s.jsx)(j.s0,{content:u||i,type:u?"name":"email",isYou:l,isDeactivated:r}),u&&(0,s.jsx)(P,{variant:"caption",color:r?"gray50":"black",children:i}),(0,s.jsx)(j.AU,{role:d,isDeactivated:r,projects:c})]}),(0,s.jsx)(k,{children:!o&&(0,s.jsx)(a.tz,{tooltipContent:"Actions",primaryButton:!0,children:(0,s.jsx)(a.VJ,{danger:!0,onClick:()=>{m(g.REMOVE_MEMBER)},children:"Remove Member"})})})]})}let T=x.default.div.withConfig({componentId:"sc-19cead48-0"})(["text-decoration:none;padding:16px 0;display:grid;grid-template-columns:32px minmax(0,100%) 32px;gap:12px;border-top:1px solid ",";&:last-child{border-bottom:1px solid ",";}"],e=>{let{theme:i}=e;return i.colors.gray10},e=>{let{theme:i}=e;return i.colors.gray10}),_=x.default.div.withConfig({componentId:"sc-19cead48-1"})(["display:flex;flex-direction:column;justify-content:center;gap:4px;overflow-wrap:break-word;"]),k=x.default.div.withConfig({componentId:"sc-19cead48-2"})(["display:flex;align-items:start;"]),P=(0,x.default)(a.o5).withConfig({componentId:"sc-19cead48-3"})(["display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);function N(e){let{isDeactivated:i,email:t,role:n,projects:o,pid:l,...r}=e,{open:c}=y(),{mutate:p}=(0,d.Ep)({onSuccess:()=>{(0,u.oR)(e=>(0,s.jsx)(h.T,{email:t,onClose:()=>u.oR.dismiss(e.id)}
1))}});return(0,s.jsxs)(A,{...r,children:[(0,s.jsx)(j.qE,{isDeactivated:i,placeholderArgs:{email:t,firstName:null,lastName:null},isInvitation:!0,alignTop:!0}),(0,s.jsxs)(S,{children:[(0,s.jsx)(j.s0,{content:t,type:"email",isDeactivated:i,isInvitation:!0}),(0,s.jsx)(j.AU,{role:n,isDeactivated:i,projects:o,isInvitation:!0})]}),(0,s.jsx)(O,{children:(0,s.jsxs)(a.tz,{tooltipContent:"Actions",primaryButton:!0,children:[!i&&(0,s.jsx)(a.VJ,{onClick:()=>{p({accountMemberInvitationPid:l})},children:"Resend Invite"}),(0,s.jsx)(a.VJ,{danger:!0,onClick:()=>{c(g.REMOVE_MEMBER)},children:"Remove Member"})]})})]})}let A=x.default.div.withConfig({componentId:"sc-4011318f-0"})(["text-decoration:none;padding:16px 0;display:grid;grid-template-columns:32px 1fr 32px;gap:12px;border-top:1px solid ",";&:last-child{border-bottom:1px solid ",";}"],e=>{let{theme:i}=e;return i.colors.gray10},e=>{let{theme:i}=e;return i.colors.gray10}),S=x.default.div.withConfig({componentId:"sc-4011318f-1"})(["display:flex;flex-direction:column;justify-content:center;gap:4px;overflow-wrap:break-word;"]),O=x.default.div.withConfig({componentId:"sc-4011318f-2"})(["display:flex;align-items:start;"]);var V=t(93796);function B(e){let{member:i}=e,{open:t}=y(),{isDeactivated:n,isOwner:o,lastActivityAt:l,profilePictureURL:r,isYou:d,role:c,projects:p,user:{email:m,userProfile:x}}=i,{firstName:f,lastName:u}=x||{},h=f&&u?`${f} ${u}`:f||u||"—";return(0,s.jsxs)(a.TR,{_height:36,children:[(0,s.jsx)(a.TD,{children:(0,s.jsxs)(J,{children:[(0,s.jsx)(j.qE,{isDeactivated:n,profilePictureURL:r,placeholderArgs:{email:m,firstName:f,lastName:u},size:36}),(0,s.jsx)(j.s0,{content:h,type:"name",isYou:d,isDeactivated:n})]})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(U,{variant:"caption",color:n?"gray50":"black",children:(0,s.jsx)(s.Fragment,{children:(0,a.QX)(m)})})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(j.AU,{role:c,isDeactivated:n,projects:p})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)($,{variant:"caption",color:"gray50",children:l?(0,V.wI)(l):"—"})}),(0,s.jsx)(a.TD,{children:(0,s.jsx)(H,{children:!o&&(0,s.jsx)(a.tz,{tooltipContent:"Actions",children:(0,s.jsx)(a.VJ,{danger:!0,onClick:()=>{t(g.REMOVE_MEMBER)},children:"Remove Member"})})})})]})}let J=x.default.div.withConfig({componentId:"sc-5465d19f-0"})(["display:flex;align-items:center;gap:20px;"]),U=(0,x.default)(a.o5).withConfig({componentId:"sc-5465d19f-1"})(["overflow-wrap:break-word;"]),$=(0,x.default)(a.o5).withConfig({componentId:"sc-5465d19f-2"})(["display:flex;align-items:center;"]),H=x.default.div.withConfig({componentId:"sc-5465d19f-3"})(["display:flex;justify-content:end;"]);function q(e){let{collaborators:i}=e,[t,n]=(0,r.useState)(void 0),o=(0,a.$P)({maxWidth:600}),l=i.accountMembers,d=i.accountMemberInvitations;return((0,r.useEffect)(()=>{n(o)},[o]),t)?(0,s.jsxs)(z,{children:[l.map(e=>(0,s.jsx)(w,{type:"collaborator",pid:e.pid,email:e.user.email,name:(0,m.Sl)({firstName:e.user?.userProfile?.firstName,lastName:e.user?.userProfile?.lastName,email:e.user.email}),children:(0,s.jsx)(D,{...e})},e.pid)),d.map(e=>(0,s.jsx)(w,{type:"invitation",pid:e.pid,email:e.email,name:(0,m.Sl)({email:e.email}),children:(0,s.jsx)(N,{...e})},e.pid))]}):(0,s.jsxs)(f,{children:[l.map(e=>(0,s.jsx)(w,{type:"collaborator",pid:e.pid,email:e.user.email,name:(0,m.Sl)({firstName:e.user?.userProfile?.firstName,lastName:e.user?.userProfile?.lastName,email:e.user.email}),children:(0,s.jsx)(B,{member:e},e.pid)},e.pid)),d.map(e=>(0,s.jsx)(w,{type:"invitation",pid:e.pid,email:e.email,name:(0,m.Sl)({email:e.email}),children:(0,s.jsx)(C,{invitation:e},e.pid)},e.pid))]})}let z=x.default.div.withConfig({componentId:"sc-e5816ab7-0"})([""]);function L(){let{backToAppsPage:e}=(0,p.cN)(),{data:i,isPending:t}=(0,d.Zx)(),{data:n,isPending:l}=(0,d.WK)(),x=(0,m.pt)();(0,c.LJ)(["CollaboratorsUpdated"],()=>{x()});let f=!i||!n||t||l;return(0,r.useEffect)(()=>{n&&0===n.collaboratorsLimit&&e({historyReplace:!0})},[n,e]),(0,s.jsxs)(o.nv,{_width:800,children:[(0,s.jsx)(o.z$,{offset:[40,40],actions:(0,s.jsx)(j.Vs,{placement:"collaboratorsPage"}),children:"Members"}),f?(0,s.jsx)(a.aH,{}):(0,s.jsx)(q,{collaborators:i})]})}let W=()=>(0,s.jsx)(o.Ad,{header:(0,s.jsx)(l.Y9,{}),leftSidebar:(0,s.jsx)(o.Ux,{activeItemURL:o.By.MEMBERS}),children:(0,s.jsx)(o.ss,{children:(0,s.jsx)(L,{})})});function X(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.pD,{title:"Members"}),(0,s.jsx)(W,{})]})}},14200:(e,i,t)=>{"use strict";t.d(i,{S:()=>p});var n=t(26514),s=t(26097),o=t(2483),l=t(62030),r=t(75563),a=t(6461),d=t(29561);function c(e){let{name:i,onClose:t}=e;return(0,n.jsx)(a.y,{message:`${i} removed from Workspace`,icon:(0,n.jsx)(d.A,{}),onClose:t})}function p(e){let{isOpen:i,type:t,onRequestClose:s,name:a,pid:d,onSettled:p,...x}=e,f=()=>{(0,o.oR)(e=>(0,n.jsx)(c,{name:a,onClose:()=>o.oR.dismiss(e.id)}
1))},{mutate:u}=(0,r.vq)({onSuccess:f,onSettled:p}),{mutate:h}=(0,r.Jh)({onSuccess:f,onSettled:p});return(0,n.jsx)(l.aF,{onRequestClose:s,padding:[24,24],isOpen:i,maxWidth:400,title:(0,n.jsxs)(m,{children:["Remove ",a," from Workspace?"]}),actions:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.$n,{fullWidth:!0,center:!0,variation:"secondary",onClick:s,children:"Cancel"}),(0,n.jsx)(l.$n,{fullWidth:!0,center:!0,variation:"alertPrimary",onClick:()=>{"collaborator"===t?u({accountMemberPid:d}):h({accountMemberInvitationPid:d})},children:"Remove Member"})]}),...x})}let m=s.default.div.withConfig({componentId:"sc-822af9f3-0"})(["margin-top:-4px;overflow-wrap:break-word;"])},21210:(e,i,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/members",function(){return t(11318)}])},29561:(e,i,t)=>{"use strict";t.d(i,{A:()=>l});var n,s=t(75834);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(null,arguments)}let l=e=>s.createElement("svg",o({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.876 5.75a3.667 3.667 0 1 1 7.333 0 3.667 3.667 0 0 1-7.333 0Zm3.666-2.334a2.333 2.333 0 1 0 0 4.667 2.333 2.333 0 0 0 0-4.667Zm-.609 7.845c-3.222 0-5.724 2.204-5.724 5.308v.197c0 .073.06.132.132.132h8.285v1.334H3.34c-.81 0-1.465-.656-1.465-1.466v-.197c0-3.956 3.22-6.641 7.057-6.641h1.598c1.434 0 2.769.428 3.883 1.163l-.794 1.074a5.695 5.695 0 0 0-3.09-.904H8.934Zm8.997 3.21a.667.667 0 1 0-.943-.942l-1.238 1.237-.092.093-.152-.151-1.178-1.179a.667.667 0 1 0-.943.943l1.179 1.178.151.152-1.33 1.33a.667.667 0 1 0 .943.943l1.33-1.33 1.33 1.33a.667.667 0 1 0 .943-.943l-1.33-1.33.092-.093 1.238-1.237Z",fill:"currentColor"})))}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=21210)),_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.