"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 p}});var r=i(32723),s=i(34795),t=(i(30969),i(28599)),a=i(22714),c=i(83483),o=i(93138),l=i(54249),u=i(64501),d=i(89001),h=i(93114),f=i(37574),m=(0,a.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 p(n){var e=n.onConfirm,i=n.onCancel,a=n.reason,p=m();return(0,f.jsxs)(c.Z,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal",className:p.main,children:[(0,f.jsx)(u.Z,{children:"Warning"}),(0,f.jsx)(d.Z,{}),(0,f.jsxs)("div",{children:[(0,f.jsx)(h.Z,{fontSize:"large"}),(0,f.jsx)(o.Z,{children:(0,f.jsxs)(l.Z,{children:["This link contains a session that has the following unknown plugins:",(0,f.jsx)("ul",{children:a.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)("div",{className:p.buttons,children:[(0,f.jsx)(t.Z,{color:"primary",variant:"contained",style:{marginRight:5},onClick:(0,s.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().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,f.jsx)(t.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.8231596b.chunk.js.map