"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[1716],{61716:function(n,e,s){s.r(e),s.d(e,{default:function(){return m}});var i=s(32723),r=s(34795),t=(s(30969),s(2374)),a=s(92256),o=s(48651),c=s(74466),l=s(17984),u=s(41680),d=s(69852),h=s(87967),f=s(37574),x=(0,t.ZL)()((function(n){return{main:{textAlign:"center",margin:8,padding:8,borderWidth:2,borderRadius:2},buttons:{margin:8,color:n.palette.text.primary}}}));function m(n){var e=n.onConfirm,s=n.onCancel,t=n.reason,m=x().classes;return(0,f.jsxs)(a.Z,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal",className:m.main,children:[(0,f.jsx)(o.Z,{children:"Warning"}),(0,f.jsx)(c.Z,{}),(0,f.jsxs)("div",{children:[(0,f.jsx)(h.Z,{fontSize:"large"}),(0,f.jsx)(l.Z,{children:(0,f.jsxs)(u.Z,{children:["This link contains a session that has the following unknown plugins:",(0,f.jsx)("ul",{children:t.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:m.buttons,children:[(0,f.jsx)(d.Z,{color:"primary",variant:"contained",style:{marginRight:5},onClick:(0,r.Z)((0,i.Z)().mark((function n(){return(0,i.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)(d.Z,{variant:"contained",onClick:function(){s()},children:"Cancel"})]})]})]})}},87967:function(n,e,s){var i=s(71600);e.Z=void 0;var r=i(s(48035)),t=s(37574),a=(0,r.default)((0,t.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");e.Z=a}}]);
//# sourceMappingURL=1716.3b0c9f1a.chunk.js.map