"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7740],{37740:function(n,e,s){s.r(e),s.d(e,{default:function(){return p}});var r=s(32723),i=s(33028),t=s(34795),o=(s(30969),s(59767)),a=s(59071),c=s(72807),l=s(96074),u=s(72097),h=s(68559),d=s(87967),f=s(37574);function x(n){var e=n.onConfirm,s=n.onCancel,r=n.reason;return(0,f.jsxs)(o.Dialog,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal",title:"Warning",children:[(0,f.jsxs)(a.Z,{children:[(0,f.jsx)(d.Z,{fontSize:"large"}),(0,f.jsxs)(c.Z,{children:["This link contains a session that has the following unknown plugins:",(0,f.jsx)("ul",{children:r.map((function(n){return(0,f.jsxs)("li",{children:["URL: ",n.url]},JSON.stringify(n))}))}),"Please ensure you trust the source of this session."]})]}),(0,f.jsxs)(l.Z,{children:[(0,f.jsx)(u.Z,{color:"primary",variant:"contained",onClick:function(){return e()},children:"Yes, I trust it"}),(0,f.jsx)(u.Z,{variant:"contained",color:"secondary",onClick:function(){return s()},children:"Cancel"})]})]})}function p(n){var e=n.loader,s=n.handleClose;return(0,f.jsx)(x,{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:(0,h.x0)()}),!0);case 3:s();case 4:case"end":return n.stop()}}),n)}))),onCancel:function(){e.setBlankSession(!0),s()},reason:e.sessionTriaged.reason})}},87967:function(n,e,s){var r=s(71600);e.Z=void 0;var i=r(s(48035)),t=s(37574),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=7740.ef46c793.chunk.js.map