"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1716],{61716:function(n,e,i){i.r(e),i.d(e,{default:function(){return x}});var r=i(34795),s=i(77162),t=i.n(s),a=(i(30969),i(28599)),c=i(22714),o=i(83483),l=i(93138),u=i(54249),d=i(64501),h=i(89001),f=i(93114),m=i(37574),p=(0,c.Z)((function(n){return{main:{textAlign:"center",margin:n.spacing(2),padding:n.spacing(2),borderWidth:2,borderRadius:2},buttons:{margin:n.spacing(2),color:n.palette.text.primary}}}));function x(n){var e=n.onConfirm,i=n.onCancel,s=n.reason,c=p();return(0,m.jsxs)(o.Z,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal",className:c.main,children:[(0,m.jsx)(d.Z,{children:"Warning"}),(0,m.jsx)(h.Z,{}),(0,m.jsxs)("div",{children:[(0,m.jsx)(f.Z,{fontSize:"large"}),(0,m.jsx)(l.Z,{children:(0,m.jsxs)(u.Z,{children:["This link contains a session that has the following unknown plugins:",(0,m.jsx)("ul",{children:s.map((function(n){return(0,m.jsxs)("li",{children:["URL: ",n.url]},JSON.stringify(n))}))}),"Please ensure you trust the source of this session."]})}),(0,m.jsxs)("div",{className:c.buttons,children:[(0,m.jsx)(a.Z,{color:"primary",variant:"contained",style:{marginRight:5},onClick:(0,r.Z)(t().mark((function n(){return t().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e();case 1:case"end":return n.stop()}}),n)}))),children:"Yes, I trust it"}),(0,m.jsx)(a.Z,{variant:"contained",onClick:function(){i()},children:"Cancel"})]})]})]})}},93114:function(n,e,i){var r=i(14859),s=i(93291);e.Z=void 0;var t=s(i(30969)),a=(0,r(i(87131)).default)(t.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");e.Z=a}}]);
//# sourceMappingURL=1716.25339e4d.chunk.js.map