"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[3720],{33720:function(n,e,s){s.r(e),s.d(e,{default:function(){return v}});var r=s(32723),i=s(33028),t=s(34795),o=(s(96902),s(17867)),a=s(52809),c=s(92735),l=s(99688),u=s(44536),h=s(26968),d=s.n(h),f=s(6102),x=s(29938);function p(n){var e=n.onConfirm,s=n.onCancel,r=n.reason;return(0,x.jsxs)(o.Dialog,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal",title:"Warning",children:[(0,x.jsxs)(a.Z,{children:[(0,x.jsx)(f.Z,{fontSize:"large"}),(0,x.jsxs)(c.Z,{children:["This link contains a session that has the following unknown plugins:",(0,x.jsx)("ul",{children:r.map((function(n){return(0,x.jsxs)("li",{children:["URL: ",n.url]},JSON.stringify(n))}))}),"Please ensure you trust the source of this session."]})]}),(0,x.jsxs)(l.Z,{children:[(0,x.jsx)(u.Z,{color:"primary",variant:"contained",onClick:function(){return e()},children:"Yes, I trust it"}),(0,x.jsx)(u.Z,{variant:"contained",color:"secondary",onClick:function(){return s()},children:"Cancel"})]})]})}function v(n){var e=n.loader,s=n.handleClose;return(0,x.jsx)(p,{onConfirm:(0,t.Z)((0,r.Z)().mark((function n(){var t;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=JSON.parse(JSON.stringify(e.sessionTriaged.snap)),n.next=3,e.setSessionSnapshot((0,i.Z)((0,i.Z)({},t),{},{id:d()()}),!0);case 3:s();case 4:case"end":return n.stop()}}),n)}))),onCancel:function(){e.setBlankSession(!0),s()},reason:e.sessionTriaged.reason})}},6102:function(n,e,s){var r=s(71600);e.Z=void 0;var i=r(s(7152)),t=s(29938),o=(0,i.default)((0,t.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");e.Z=o}}]);
//# sourceMappingURL=3720.95787336.chunk.js.map