1(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"4.106.2@5fb3279d0cc"};var d=new o.Error().stack;d&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[d]="c1d5999b-9eff-4686-8c35-90a093837205",o._sentryDebugIdIdentifier="sentry-dbid-c1d5999b-9eff-4686-8c35-90a093837205")}catch{}})(),(self.webpackChunkvisme_dashboard_web_app=self.webpackChunkvisme_dashboard_web_app||[]).push([["5154"],{81008(o,d,e){e.r(d),e.d(d,{default:()=>P});var s=e(65723),I=e(22155),j=e(98177),y=e(78624),m=e(90487),_=e(87803),A=e(4233),u=e(25236),S=e(5444),k=e(8099),E=e(65291),x=e(39373),C=e(50404),c=e(47267),T=e(70060);const D=()=>{const{appStore:B,uiStateStore:R}=(0,T.g)(),{auth:h,workspaces:f,projects:i,folders:G,groups:b,labels:F,tags:L}=B,{popupStore:v}=R,{t}=(0,x.Bd)(),[g,w]=(0,I.useState)(!1),n=v.dialogOptions.project,r=n&&n.slide,a={title:t(r?"delete_slide":"delete_project"),success:t(r?"slide_deleted":"msg.project_deleted"),error:t("error_{action}_{item}",{action:t("deleting"),item:t(r?"slide":"project")}),desc:t("want_delete_{name}",{name:n?.name}),cancel:t("i18n_auto_24796"),confirm:t("i18n_auto_24998")},l=()=>{v.closePopup()},H=async()=>{w(!0);const O=r&&i.isSlideGroup;try{O?(await m.A.SortSlide({userId:h.currentId,workspaceId:f.currentId,slideId:n.id,groupId:i.scope.scopeId,orderId:-1}),l(),c.A.success("Slide removed from group"),await i.refresh(),await b.refresh()):(await m.A.DeleteProject({userId:h.currentId,workspaceId:f.currentId,projectId:n.id}),L.enqueueAmplitudeEvent(y.sY.PROJECT_DELETED,{selectionCount:1,itemTypes:r?"slide":"project"}),(0,C.c0)(E.gl.RECENT_PROJECTS),l(),c.A.success(a.success),await i.refresh(),r?await b.refresh():(await F.refresh(),await G.refresh()))}catch(p){console.error(p),c.A.error(typeof p?.message=="string"?p.message:a.error)}finally{w(!1)}};return(0,s.jsx)(k.A,{theme:"danger",size:"small",isShown:!0,title:a.title,Buttons:null,withoutStyles:!0,hasCrossButton:!0,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.A,{label:a.desc,noMargin:!0}),(0,s.jsxs)(A.A,{mobileGrow:!0,contentEnd:!0,children:[(0,s.jsx)(_.A,{mobileBaseAuto:!0,noGrow:!0,children:(0,s.jsx)(u.A,{autoFocus:!0,disabled:g,mobileFullWidth:!0,theme:"ghost",onClick:l,"data-test-id":"dashboardPage.confirmButton.cancelDeleting",children:a.cancel})}),(0,s.jsx)(_.A,{mobileBaseAuto:!0,noGrow:!0,children:(0,s.jsx)(u.A,{type:"button",onClick:H,theme:"alert",effect:"shiny",isLoading:g,"data-test-id":"dashboardPage.confirmButton.delete",mobileFullWidth:!0,children:a.confirm})})]})]})})},P=(0,j.PA)(D)}}]); 2 3//# sourceMappingURL=dashboard-popup-ProjectDelete.048ea3fa4fc3e20b.chunk.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.