MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/netdata/usr/share/netdata/web/v3/7530.a9c2422a0eaa54451080.chunk.js
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"add58d114229f0c7996ebd9e09ce63888b5394f2"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8f603418-c3a4-4c9b-9ece-742f09f7bf1f",e._sentryDebugIdIdentifier="sentry-dbid-8f603418-c3a4-4c9b-9ece-742f09f7bf1f")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7530],{17530(e,n,t){t.r(n),t.d(n,{default:()=>p});t(62953);var a=t(7960),s=t(42358),o=t(24609),r=t(6304),i=t(99728),c=t(29022),l=t(36348),d=t(79748),u=t(41344),m=t(74848);const f=(0,a.A)((()=>Promise.resolve().then(t.bind(t,38648))),"SignIn"),h={noRoomPermission:{header:e=>"Your role doesn't give you permission to access any of the troubleshooting information on ".concat(e,".")},noSpacePermission:{header:e=>"Your role doesn't give you permission to access any information on ".concat(e,".")},noRooms:{header:e=>"You currently don't have permission to see any room on ".concat(e,".")},windowsAgent:{header:()=>"Windows Agent dashboard is not available locally."}},g=e=>{let{onClick:n,spaceName:t}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.Text,{margin:[2,0,0],children:"You can also leave this Space if you wish. "}),(0,m.jsx)(s.Button,{flavour:"borderless",icon:"switch_off",label:"Leave ".concat(t),margin:[0,0,0,7],onClick:n,strong:!0})]})},b=["noSpacePermission","noRoomPermission"],p=e=>{let{reason:n}=e;const t=(0,o.ap)(),[a,,p,y]=(0,r.A)(),{header:j}=h[n],x=(0,o.bq)(),v=(0,i.JT)("billing:ReadBasic");return(0,m.jsx)(c.A,{title:j(t.name),children:(0,m.jsxs)(m.Fragment,{children:["noSpacePermission"===n&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.Text,{children:"Please contact the Space administrators if this is unexpected."}),(0,m.jsx)(g,{onClick:p,spaceName:t.name})]}),v&&b.includes(n)&&(0,m.jsxs)(s.Text,{children:["To manage Plan & Billing information please"," ",(0,m.jsx)(d.A,{as:u.N_,to:"/spaces/".concat(x,"/settings/billing"),children:"click here."})]}),"noRooms"===n&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.Text,{children:"Please contact a Space administrator or manager if this is unexpected."}),(0,m.jsx)(g,{onClick:p,spaceName:t.name})]}),"windowsAgent"===n&&(0,m.jsxs)(s.Flex,{column:!0,gap:2,children:[(0,m.jsx)(s.Text,{children:"Please sign in to view the Netdata dashboard."}),(0,m.jsx)(s.Flex,{children:(0,m.jsx)(f,{})})]}),a&&(0,m.jsx)(l.A,{id:t.id,name:t.name,onClose:y})]})})}},36348(e,n,t){t.d(n,{A:()=>P});t(98992),t(54520),t(3949);var a=t(64467),s=t(96540),o=t(42358),r=t(41344),i=t(46587),c=t(86706),l=(t(62953),t(30569)),d=t(84929),u=t(63872),m=t(77389),f=t(99236),h=t(24609),g=t(32874),b=t(15624),p=t(49916);var y=t(64999),j=t(74848);function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}const v="leave-space-dialog",w="leaveSpaceDialog",P=e=>{let{id:n,name:t,onClose:P}=e;const A=(0,r.Zp)(),C=(0,i.uW)("id"),O=(0,c.Gi)(),S=(0,c.i3)(),k=(0,c.pB)(),D=(e=>{const[,n]=(0,u.A)();return(0,l.yF)((0,s.useCallback)((async(t,a,s)=>{let{currentUserId:o,onSuccess:r,onError:i}=s;const l=await t((0,h.nC)("ids")),u=l.filter((n=>e!==n)),y=e=>{a(e,d.Ut)},[j]=u;if(!j)return void n({header:"Spaces",text:f.sh.leave});const{slug:x}=j&&await t((0,b.Ay)(j));a((0,h.nC)("ids"),u),a(g.A,(n=>n.filter((n=>n!==e))));try{await(0,m.XY)(e,[o]),r&&r(x),(0,c.Z8)(y,e),(0,p.Is)(y,e),y((0,b.Ay)(e))}catch(v){a((0,h.nC)("ids"),l),i&&i()}}),[e,n]))})(n),F=(0,y.A)(n),I=(0,s.useCallback)((e=>A("/spaces/".concat(e))),[]),L=1===O.length,T=1===S.length&&k,Y=L?{confirmLabel:"Yes, leave","data-ga":"".concat(v,"-last-member"),"data-testid":"".concat(w,"LastMember"),handleConfirm:()=>F({onSuccess:I}),message:(0,j.jsxs)(j.Fragment,{children:["If you leave, space ",(0,j.jsx)("strong",{children:t})," will be deleted immediately.",(0,j.jsx)("br",{}),"Are you sure you want to continue?"]}),title:"Leave and delete ".concat(t," space")}:T?{confirmLabel:"Give rights","data-ga":"".concat(v,"-last-admin"),"data-testid":"".concat(w,"LastAdmin"),handleConfirm:()=>A("users"),isConfirmPositive:!0,message:(0,j.jsxs)(j.Fragment,{children:["You are the last admin of ",(0,j.jsx)("strong",{children:t})," space. Please give admin rights to another member so you can leave this space."]}),title:"Leave ".concat(t," space")}:{confirmLabel:"Yes, leave","data-ga":v,"data-testid":w,handleConfirm:()=>D({currentUserId:C,onSuccess:I}),message:(0,j.jsxs)(j.Fragment,{children:["You are about to leave ",(0,j.jsx)("strong",{children:t})," space.",(0,j.jsx)("br",{}),"Are you sure you want to continue?"]}),title:"Leave ".concat(t," space")};return(0,j.jsx)(o.ConfirmationDialog,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,a.A)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({handleDecline:P},Y))}}}]);