"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[9297],{56028:function(e,s,t){var r=t(29439),o=t(1413),n=t(72791),a=t(60364),i=t(13400),l=t(55646),c=t(5574),d=t(65661),u=t(39157),m=t(11135),h=t(25787),p=t(23814),f=t(25469),x=t(29823),g=t(28057),Z=t(87995),j=t(80184);s.Z=(0,h.Z)((function(e){return(0,m.Z)((0,o.Z)((0,o.Z)({},p.Qw),{},{content:{padding:25,paddingBottom:0},customDialogSize:{width:"100%",maxWidth:765}},p.sN))}))((function(e){var s=e.onClose,t=e.modalOpen,m=e.title,h=e.children,p=e.classes,v=e.wideLimit,b=void 0===v||v,C=e.noContentPadding,k=e.titleIcon,y=void 0===k?null:k,N=(0,f.TL)(),w=(0,n.useState)(!1),E=(0,r.Z)(w,2),B=E[0],L=E[1],S=(0,a.v9)((function(e){return e.system.modalSnackBar}));(0,n.useEffect)((function(){N((0,Z.MK)(""))}),[N]),(0,n.useEffect)((function(){if(S){if(""===S.message)return void L(!1);"error"!==S.type&&L(!0)}}),[S]);var D=b?{classes:{paper:p.customDialogSize}}:{maxWidth:"lg",fullWidth:!0},M="";return S&&(M=S.detailedErrorMsg,(""===S.detailedErrorMsg||S.detailedErrorMsg.length<5)&&(M=S.message)),(0,j.jsxs)(c.Z,(0,o.Z)((0,o.Z)({open:t,classes:p},D),{},{scroll:"paper",onClose:function(e,t){"backdropClick"!==t&&s()},className:p.root,children:[(0,j.jsxs)(d.Z,{className:p.title,children:[(0,j.jsxs)("div",{className:p.titleText,children:[y," ",m]}),(0,j.jsx)("div",{className:p.closeContainer,children:(0,j.jsx)(i.Z,{"aria-label":"close",id:"close",className:p.closeButton,onClick:s,disableRipple:!0,size:"small",children:(0,j.jsx)(x.Z,{})})})]}),(0,j.jsx)(g.Z,{isModal:!0}),(0,j.jsx)(l.Z,{open:B,className:p.snackBarModal,onClose:function(){L(!1),N((0,Z.MK)(""))},message:M,ContentProps:{className:"".concat(p.snackBar," ").concat(S&&"error"===S.type?p.errorSnackBar:"")},autoHideDuration:S&&"error"===S.type?1e4:5e3}),(0,j.jsx)(u.Z,{className:C?"":p.content,children:h})]}))}))},89297:function(e,s,t){t.r(s);var r=t(93433),o=t(1413),n=(t(72791),t(61889)),a=t(75952),i=t(11135),l=t(25787),c=t(56028),d=t(92983),u=t(23814),m=t(38734),h=t(45248),p=t(80184);s.default=(0,l.Z)((function(e){return(0,i.Z)((0,o.Z)({buttonContainer:{textAlign:"right"},errorsList:{height:"calc(100vh - 280px)"}},u.ID))}))((function(e){var s=e.open,t=e.onCloseFormatErrorsList,o=e.errorsList,i=e.classes;return(0,p.jsx)(c.Z,{modalOpen:s,title:"Format Errors",onClose:t,titleIcon:(0,p.jsx)(m.cno,{}),children:(0,p.jsxs)(n.ZP,{container:!0,children:[(0,p.jsxs)(n.ZP,{item:!0,xs:12,className:i.modalFormScrollable,children:["There were some issues trying to format the selected CSI Drives, please fix the issues and try again.",(0,p.jsx)("br",{}),(0,p.jsx)(d.Z,{columns:[{label:"Node",elementKey:"node"},{label:"Drive",elementKey:"drive"},{label:"Message",elementKey:"error"}],entityName:"Format Errors",idField:"drive",records:o,isLoading:!1,customPaperHeight:i.errorsList,textSelectable:!0,noBackground:!0})]}),(0,p.jsxs)(n.ZP,{item:!0,xs:12,className:i.modalButtonBar,children:[(0,p.jsx)(a.z,{id:"download-results",variant:"regular",onClick:function(){!function(e,s){var t=document.createElement("a");t.setAttribute("href","data:application/json;charset=utf-8,"+(0,h.LL)(s)),t.setAttribute("download",e),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}("csiFormatErrors.json",JSON.stringify((0,r.Z)(o)))},label:"Download"}),(0,p.jsx)(a.z,{id:"finish",onClick:t,variant:"callAction",label:"Donw"})]})]})})}))}}]);
//# sourceMappingURL=9297.fb2e535e.chunk.js.map