import{bc as p,az as m,aA as h,aI as g,ao as r,aF as f,L as S,v as A}from"./app-k0jcl5PQ.js";import{D as L}from"./BEA7dEaU.chunk.js";import{u as k}from"./CX-R8N_3.chunk.js";import"./Boh3c6zT.chunk.js";import"./q-a0Zpry.chunk.js";import"./BHfFK47N.chunk.js";const I="sharev2.deleteAssignmentConfirmation",e=S.encloseNamespace(I);function b(t){var o;const a=p(),s=m(h.getShare(t.shareId)),[c,n]=g.useState(!1),{deleteShareLink:l}=k({entityId:(o=s.data)==null?void 0:o.objectId.toString()});function d(){var i;n(!0),l((i=s.data)==null?void 0:i.shareId).then(()=>{n(!1),a.success(e("deleteSuccess")),t.closePopup(),t.returnAppLink&&A.trigger(t.returnAppLink)}).catch(()=>{a.error(e("deleteFailed"))}).finally(()=>{n(!1)})}const u=s.hasCompleted;return r.jsx(f,{title:e("title"),closePopup:t.closePopup,showLoadingSpinner:!u,children:r.jsx(L,{loading:c,phrases:{leadingSentence:e("intro"),bulletPoints:[e("studentsLoseAccessInfo"),e("loseAccessInfo"),e("loseAccessUsage")],acknowledgement:e("acknowledgement"),deleteButton:e("delete")},onDelete:d})})}export{b as DeleteAssignmentConfirmationView};
//# sourceMappingURL=CcxE0F8o.chunk.js.map
