(this["webpackJsonppacs-admin-tool"]=this["webpackJsonppacs-admin-tool"]||[]).push([[10],{355:function(e,t,c){"use strict";c.d(t,"a",(function(){return i}));c(0),c(358);var a=c(13),s=c(180),l=c(6),n=c(20),o=c(1),i=function(e){var t,c=e.children,n=e.renderChildren,i=e.message,d=e.blocking,b=e.blockingAction,u=e.blockingActions,f=e.idleHandler,j=Object(a.c)(s.c.selectState),m=j[b.typePrefix],p=u.map((function(e){return f?j[e.typePrefix]===l.p.pending||j[e.typePrefix]===l.p.idle:j[e.typePrefix]===l.p.pending})).includes(!0)||d||m===l.p.pending;return Object(o.jsxs)("div",{className:"block-ui ".concat(null!==(t=e.className)&&void 0!==t?t:""),children:[(n||!p)&&c,p&&Object(o.jsxs)("div",{className:"block-ui-container",tabIndex:0,children:[Object(o.jsx)("div",{className:"block-ui-overlay second-common-bg-color"}),Object(o.jsx)("div",{className:"block-ui-message-container",children:Object(o.jsxs)("div",{className:"block-ui-message",children:[i,Object(o.jsx)(r,{})]})})]})]})};i.defaultProps={renderChildren:!0,blocking:!1,blockingAction:n.noop,blockingActions:[]};var r=function(){return Object(o.jsxs)("div",{className:"loading-indicator",children:[Object(o.jsx)("span",{className:"loading-bullet",children:"\u2022"})," ",Object(o.jsx)("span",{className:"loading-bullet",children:"\u2022"})," ",Object(o.jsx)("span",{className:"loading-bullet",children:"\u2022"})]})}},357:function(e,t,c){"use strict";c.d(t,"a",(function(){return l}));var a=c(0),s=c.n(a),l=function(e){var t=e.extra,c=e.title,a=e.buttons;return s.a.createElement("div",{className:"d-flex align-items-center justify-content-between",style:{minHeight:40}},s.a.createElement("div",{className:"text-overflow-ellipsis"},s.a.createElement("h3",{className:"text-overflow-ellipsis"},c)),s.a.createElement("div",{className:"d-flex flex-row"},t,s.a.createElement("div",{style:{maxWidth:"calc(100vw - 30px)",overflowY:"visible",overflowX:"auto"}},a)))}},358:function(e,t,c){},431:function(e,t,c){"use strict";c.r(t),c.d(t,"Storage",(function(){return y}));var a=c(0),s=c(13),l=c(145),n=c(355),o=c(91),i=c(23),r=c(202),d=c(60),b=c(29),u=c(27),f=c(6),j=c(1),m=function(e){var t=Object(s.b)(),c=Object(a.useState)([{dataField:"id",orderType:"number",style:{maxWidth:60}},{dataField:"storagePath",isResizable:!0,style:{minWidth:200},formatters:[b.d]},{dataField:"enabled",isResizable:!0,formatters:[b.f],style:{maxWidth:132}},{dataField:"freeSpace",isResizable:!0,orderType:"number",style:{maxWidth:200},formatters:[b.e,b.d]}]),l=Object(i.a)(c,2),n=l[0],m=l[1],p=Object(s.c)(d.d.selectByTable("storage")),g=Object(s.c)(o.f.selectById(p));return Object(j.jsx)(r.a,{tableName:"storage",columnsState:n,setColumnsState:m,data:e.storages,keyField:"id",onSelectRow:function(e){t(d.a.setSelection({table:"storage",selected:e}))},selectedRow:e.selectedRow,showTooltip:!0,rowDoubleClickCallback:function(e){e.preventDefault(),t(u.a.showModal({type:f.u.updateStorage,data:g}))}})},p=c(17),g=c(110),x=c(7),O=c.n(x),v=function(){var e=Object(s.b)(),t=Object(l.a)().t,c=Object(s.c)(d.d.selectByTable("storage")),a=Object(s.c)(o.f.selectById(c)),n=Object(s.c)(u.d.selectMedia(f.t.sm)),i="secondary-button-color button--only-icon",r=O()("primary-button-color",{"button--only-icon":n}),b=[{icon:p.v,title:t("buttons.refresh"),onClick:function(){e(Object(o.c)())},id:"studies.refresh",className:i},{icon:p.u,title:t("buttons.update"),onClick:function(){e(u.a.showModal({type:f.u.updateStorage,data:a}))},disabled:!c,id:"storages.update",className:i},{icon:p.P,title:t("buttons.remove"),onClick:function(){e(u.a.showModal({type:f.u.deleteStorage,data:a}))},disabled:!c,id:"storages.remove",className:i},{icon:p.b,text:t("buttons.create"),title:n?t("buttons.create"):null,onClick:function(){e(u.a.showModal({type:f.u.createStorage}))},id:"storages.create",className:r}];return Object(j.jsx)(g.a,{buttons:b})},h=c(357),y=function(){var e=Object(s.b)(),t=Object(l.a)().t,c=Object(s.c)(o.f.selectAll),i=Object(s.c)(o.f.selectIds),r=Object(s.c)(d.d.selectByTable("storage"));return Object(a.useEffect)((function(){i.includes(r)||e(d.a.resetSelection({table:"storage"}))}),[i,e,r]),Object(a.useEffect)((function(){e(Object(o.c)())}),[e]),Object(j.jsxs)("div",{className:"h-100 overflow-hidden d-flex flex-column pl-3 pt-3 pr-3",children:[Object(j.jsx)(h.a,{title:t("storage.tableHeader"),buttons:Object(j.jsx)(v,{})}),Object(j.jsx)("div",{className:"overflow-auto overflow-x-hidden mt-3",children:Object(j.jsx)(n.a,{blockingAction:o.c,children:Object(j.jsx)(m,{storages:c,selectedRow:r})})})]})};t.default=y}}]);