(this.webpackJsonpui_v2=this.webpackJsonpui_v2||[]).push([[15],{1354:function(e,n,t){"use strict";t.r(n);var i=t(6),a=t(0),c=t.n(a),o=t(14),s=t.n(o),l=t(56),r=t(500),d=t(4),u=t(9),b=t(223),h=t(617),j=t(222),_=t(1);function m(e){var n=e.runHash,t=e.isArchived,a=Object(l.h)(),o=c.a.useState(!1),m=Object(i.a)(o,2),p=m[0],f=m[1];return c.a.useEffect((function(){j.a(b.a.runDetails.tabs.settings.tabView)}),[]),Object(_.jsx)(u.a,{children:Object(_.jsxs)("div",{className:"RunDetailSettingsTab",children:[Object(_.jsxs)("div",{className:"RunDetailSettingsTab__actionCardsCnt",children:[Object(_.jsx)(d.a,{title:t?"Unarchive Run":"Archive Run",description:t?"Unarchive runs will appear in search both on Dashboard and Explore.":"Archived runs will not appear in search both on Dashboard and Explore.",btnTooltip:t?"Unarchive":"Archive",btnText:t?"Unarchive":"Archive",onAction:function(){j.b(b.a.runDetails.tabs.settings.archiveRun),h.a.archiveRun(n,!t)},btnProps:{variant:"outlined",className:s()({RunDetailSettingsTab__actionCardsCnt__btn__archive:!t,RunDetailSettingsTab__actionCardsCnt__btn__unarchive:t})}}),Object(_.jsx)(d.a,{title:"Delete Run",description:"Once you delete a run, there is no going back. Please be certain.",btnTooltip:"Delete Run",btnText:"Delete",onAction:function(){f(!0)},btnProps:{variant:"contained",className:"RunDetailSettingsTab__actionCardsCnt__btn__delete"}})]}),Object(_.jsx)(r.a,{open:p,onCancel:function(){f(!1)},onSubmit:function(){j.b(b.a.runDetails.tabs.settings.deleteRun),h.a.deleteRun(n,(function(){a.push("/runs")}))},text:"Are you sure you want to delete this run?",icon:Object(_.jsx)(d.f,{name:"delete"}),title:"Delete run",statusType:"error",confirmBtnText:"Delete"})]})})}n.default=Object(a.memo)(m)},500:function(e,n,t){"use strict";var i=t(0),a=t.n(i),c=t(448),o=t(4),s=t(9),l=(t(504),t(1));function r(e){return Object(l.jsx)(s.a,{children:Object(l.jsxs)(c.a,{open:e.open,onClose:e.onCancel,"aria-labelledby":"dialog-title","aria-describedby":"dialog-description",PaperProps:{elevation:10},className:"ConfirmModal ConfirmModal__".concat(e.statusType),children:[Object(l.jsxs)("div",{className:"ConfirmModal__Body",children:[Object(l.jsx)(o.c,{size:"small",className:"ConfirmModal__Close__Icon",color:"secondary",withOnlyIcon:!0,onClick:e.onCancel,children:Object(l.jsx)(o.f,{name:"close"})}),Object(l.jsxs)("div",{className:"ConfirmModal__Title__Container",children:[Object(l.jsx)("div",{className:"ConfirmModal__Icon",children:e.icon}),e.title&&Object(l.jsx)(o.l,{size:16,tint:100,component:"h4",weight:600,children:e.title})]}),Object(l.jsxs)("div",{children:[e.description&&Object(l.jsx)(o.l,{className:"ConfirmModal__description",weight:400,component:"p",id:"dialog-description",children:e.description}),Object(l.jsxs)("div",{children:[e.text&&Object(l.jsx)(o.l,{className:"ConfirmModal__text",weight:400,component:"p",size:14,id:"dialog-description",children:e.text||""}),e.children&&e.children]})]})]}),Object(l.jsxs)("div",{className:"ConfirmModal__Footer",children:[Object(l.jsx)(o.c,{onClick:e.onCancel,className:"ConfirmModal__CancelButton",children:e.cancelBtnText}),Object(l.jsx)(o.c,{onClick:e.onSubmit,color:"primary",variant:"contained",className:"ConfirmModal__ConfirmButton",autoFocus:!0,children:e.confirmBtnText})]})]})})}r.defaultProps={confirmBtnText:"Confirm",cancelBtnText:"Cancel",statusType:"info"},r.displayName="ConfirmModal",n.a=a.a.memo(r)},504:function(e,n,t){}}]);
//# sourceMappingURL=RunDetailSettingsTab.js.map?version=4e752b5edb06ae7ed5bc