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/local/local/share/netdata/web/v3/7530.2a0bcf61440cc08ddebe.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:"b3c473d2ca33393fa546694d92302a2d960eb3e4"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="885246a0-f010-42d0-a91a-3ce1bbf6c12d",e._sentryDebugIdIdentifier="sentry-dbid-885246a0-f010-42d0-a91a-3ce1bbf6c12d")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7530],{17530(e,n,a){a.r(n),a.d(n,{default:()=>p});a(62953);var t=a(7960),s=a(99191),o=a(24609),r=a(6304),i=a(99728),c=a(29022),l=a(36348),d=a(79748),u=a(41344),m=a(74848);const h=(0,t.A)((()=>Promise.resolve().then(a.bind(a,38648))),"SignIn"),g={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."}},f=e=>{let{onClick:n,spaceName:a}=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(a),margin:[0,0,0,7],onClick:n,strong:!0})]})},b=["noSpacePermission","noRoomPermission"],p=e=>{let{reason:n}=e;const a=(0,o.ap)(),[t,,p,y]=(0,r.A)(),{header:j}=g[n],x=(0,o.bq)(),v=(0,i.JT)("billing:ReadBasic");return(0,m.jsx)(c.A,{title:j(a.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)(f,{onClick:p,spaceName:a.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)(f,{onClick:p,spaceName:a.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)(h,{})})]}),t&&(0,m.jsx)(l.A,{id:a.id,name:a.name,onClose:y})]})})}},36348(e,n,a){a.d(n,{A:()=>P});a(98992),a(54520),a(3949);var t=a(64467),s=a(96540),o=a(99191),r=a(41344),i=a(46587),c=a(86706),l=(a(62953),a(30569)),d=a(84929),u=a(63872),m=a(77389),h=a(99236),g=a(24609),f=a(32874),b=a(15624),p=a(49916);var y=a(64999),j=a(74848);function x(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}const v="leave-space-dialog",w="leaveSpaceDialog",P=e=>{let{id:n,name:a,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(a,t,s)=>{let{currentUserId:o,onSuccess:r,onError:i}=s;const l=await a((0,g.nC)("ids")),u=l.filter((n=>e!==n)),y=e=>{t(e,d.Ut)},[j]=u;if(!j)return void n({header:"Spaces",text:h.sh.leave});const{slug:x}=j&&await a((0,b.Ay)(j));t((0,g.nC)("ids"),u),t(f.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){t((0,g.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:a})," will be deleted immediately.",(0,j.jsx)("br",{}),"Are you sure you want to continue?"]}),title:"Leave and delete ".concat(a," 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:a})," space. Please give admin rights to another member so you can leave this space."]}),title:"Leave ".concat(a," 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:a})," space.",(0,j.jsx)("br",{}),"Are you sure you want to continue?"]}),title:"Leave ".concat(a," space")};return(0,j.jsx)(o.ConfirmationDialog,function(e){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?x(Object(a),!0).forEach((function(n){(0,t.A)(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}({handleDecline:P},Y))}}}]);