(this.webpackJsonpui_v2=this.webpackJsonpui_v2||[]).push([[13],{1283:function(e,n,t){"use strict";t.r(n);var i=t(16),a=t(0),c=t.n(a),o=t(12),s=t.n(o),r=t(50),l=t(928),d=t(4),u=t(7),b=t(204),h=t(977),m=t(203),j=t(1);function _(e){var n=e.runHash,t=e.isArchived,a=Object(r.g)(),o=c.a.useState(!1),_=Object(i.a)(o,2),p=_[0],x=_[1];return c.a.useEffect((function(){m.a(b.a.runDetails.tabs.settings.tabView)}),[]),Object(j.jsx)(u.a,{children:Object(j.jsxs)("div",{className:"RunDetailSettingsTab",children:[Object(j.jsxs)("div",{className:"RunDetailSettingsTab__actionCardsCnt",children:[Object(j.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(){m.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(j.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(){x(!0)},btnProps:{variant:"contained",className:"RunDetailSettingsTab__actionCardsCnt__btn__delete"}})]}),Object(j.jsx)(l.a,{open:p,onCancel:function(){x(!1)},onSubmit:function(){m.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(j.jsx)(d.g,{name:"delete"}),title:"Are you sure?",statusType:"error",confirmBtnText:"Delete"})]})})}n.default=Object(a.memo)(_)},928:function(e,n,t){"use strict";var i=t(0),a=t.n(i),c=t(430),o=t(4),s=t(7),r=(t(946),t(1));function l(e){return Object(r.jsx)(s.a,{children:Object(r.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(r.jsxs)("div",{className:"ConfirmModal__Body",children:[Object(r.jsx)(o.d,{size:"small",className:"ConfirmModal__Close__Icon",color:"secondary",withOnlyIcon:!0,onClick:e.onCancel,children:Object(r.jsx)(o.g,{name:"close"})}),Object(r.jsxs)("div",{className:"ConfirmModal__Title__Container",children:[Object(r.jsx)("div",{className:"ConfirmModal__Icon",children:e.icon}),e.title&&Object(r.jsx)(o.m,{size:16,tint:100,component:"h4",weight:600,children:e.title})]}),Object(r.jsxs)("div",{children:[e.text&&Object(r.jsx)(o.m,{size:14,className:"ConfirmModal__description",weight:400,component:"p",id:"dialog-description",children:e.title}),Object(r.jsxs)("div",{children:[e.text&&Object(r.jsx)(o.m,{className:"ConfirmModal__description",weight:400,component:"p",id:"dialog-description",children:e.text||""}),e.children&&e.children]})]})]}),Object(r.jsxs)("div",{className:"ConfirmModal__Footer",children:[Object(r.jsx)(o.d,{onClick:e.onCancel,className:"ConfirmModal__CancelButton",children:e.cancelBtnText}),Object(r.jsx)(o.d,{onClick:e.onSubmit,color:"primary",variant:"contained",className:"ConfirmModal__ConfirmButton",autoFocus:!0,children:e.confirmBtnText})]})]})})}l.defaultProps={confirmBtnText:"Confirm",cancelBtnText:"Cancel",statusType:"info"},l.displayName="ConfirmModal",n.a=a.a.memo(l)},946:function(e,n,t){}}]);
//# sourceMappingURL=RunDetailSettingsTab.js.map?version=86eab22fdcd7c6f55ece