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.20b61e187a71ca563c37.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:"9170653e16c97eceaa1ad9e3f6f38e5725ee9d53"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="74240fb0-c6ae-4d2e-b2ac-8e11b7a53e05",e._sentryDebugIdIdentifier="sentry-dbid-74240fb0-c6ae-4d2e-b2ac-8e11b7a53e05")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[7530],{17530(e,n,a){a.r(n),a.d(n,{default:()=>g});a(62953);var t=a(42358),s=a(24609),o=a(6304),r=a(99728),i=a(29022),c=a(36348),l=a(79748),d=a(41344),u=a(74848);const m={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,".")}},f=e=>{let{onClick:n,spaceName:a}=e;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t.Text,{margin:[2,0,0],children:"You can also leave this Space if you wish. "}),(0,u.jsx)(t.Button,{flavour:"borderless",icon:"switch_off",label:"Leave ".concat(a),margin:[0,0,0,7],onClick:n,strong:!0})]})},h=["noSpacePermission","noRoomPermission"],g=e=>{let{reason:n}=e;const a=(0,s.ap)(),[g,,p,b]=(0,o.A)(),{header:y}=m[n],j=(0,s.bq)(),v=(0,r.JT)("billing:ReadBasic");return(0,u.jsx)(i.A,{title:y(a.name),children:(0,u.jsxs)(u.Fragment,{children:["noSpacePermission"===n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t.Text,{children:"Please contact the Space administrators if this is unexpected."}),(0,u.jsx)(f,{onClick:p,spaceName:a.name})]}),v&&h.includes(n)&&(0,u.jsxs)(t.Text,{children:["To manage Plan & Billing information please"," ",(0,u.jsx)(l.A,{as:d.N_,to:"/spaces/".concat(j,"/settings/billing"),children:"click here."})]}),"noRooms"===n&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(t.Text,{children:"Please contact a Space administrator or manager if this is unexpected."}),(0,u.jsx)(f,{onClick:p,spaceName:a.name})]}),g&&(0,u.jsx)(c.A,{id:a.id,name:a.name,onClose:b})]})})}},36348(e,n,a){a.d(n,{A:()=>C});a(98992),a(54520),a(3949);var t=a(64467),s=a(96540),o=a(42358),r=a(41344),i=a(46587),c=a(86706),l=(a(62953),a(30569)),d=a(84929),u=a(63872),m=a(77389),f=a(99236),h=a(24609),g=a(32874),p=a(15624),b=a(49916);var y=a(64999),j=a(74848);function v(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 x="leave-space-dialog",w="leaveSpaceDialog",C=e=>{let{id:n,name:a,onClose:C}=e;const P=(0,r.Zp)(),O=(0,i.uW)("id"),A=(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,h.nC)("ids")),u=l.filter((n=>e!==n)),y=e=>{t(e,d.Ut)},[j]=u;if(!j)return void n({header:"Spaces",text:f.sh.leave});const{slug:v}=j&&await a((0,p.Ay)(j));t((0,h.nC)("ids"),u),t(g.A,(n=>n.filter((n=>n!==e))));try{await(0,m.XY)(e,[o]),r&&r(v),(0,c.Z8)(y,e),(0,b.Is)(y,e),y((0,p.Ay)(e))}catch(x){t((0,h.nC)("ids"),l),i&&i()}}),[e,n]))})(n),L=(0,y.A)(n),Y=(0,s.useCallback)((e=>P("/spaces/".concat(e))),[]),I=1===A.length,T=1===S.length&&k,_=I?{confirmLabel:"Yes, leave","data-ga":"".concat(x,"-last-member"),"data-testid":"".concat(w,"LastMember"),handleConfirm:()=>L({onSuccess:Y}),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(x,"-last-admin"),"data-testid":"".concat(w,"LastAdmin"),handleConfirm:()=>P("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":x,"data-testid":w,handleConfirm:()=>D({currentUserId:O,onSuccess:Y}),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?v(Object(a),!0).forEach((function(n){(0,t.A)(e,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))}))}return e}({handleDecline:C},_))}}}]);