"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[8208],{68208:function(n,e,r){r.r(e),r.d(e,{default:function(){return m}});var i=r(34795),t=r(77162),a=r.n(t),s=(r(30969),r(28599)),c=r(22714),o=r(83483),l=r(93138),u=r(54249),d=r(64501),h=r(89001),f=r(93114),g=r(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 m(n){var e=n.onConfirm,r=n.onCancel,t=n.reason,c=p();return(0,g.jsxs)(o.Z,{open:!0,maxWidth:"xl","data-testid":"session-warning-modal","aria-labelledby":"alert-dialog-title",className:c.main,children:[(0,g.jsx)(d.Z,{id:"alert-dialog-title",children:"Warning"}),(0,g.jsx)(h.Z,{}),(0,g.jsxs)("div",{children:[(0,g.jsx)(f.Z,{fontSize:"large"}),(0,g.jsx)(l.Z,{children:(0,g.jsxs)(u.Z,{children:["This link contains a cross origin config that has the following unknown plugins:",(0,g.jsx)("ul",{children:t.map((function(n){return(0,g.jsxs)("li",{children:["URL: ",n.url]},JSON.stringify(n))}))}),"Please ensure you trust the source of this link."]})}),(0,g.jsxs)("div",{className:c.buttons,children:[(0,g.jsx)(s.Z,{color:"primary",variant:"contained",style:{marginRight:5},onClick:(0,i.Z)(a().mark((function n(){return a().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,g.jsx)(s.Z,{variant:"contained",onClick:(0,i.Z)(a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r();case 1:case"end":return n.stop()}}),n)}))),children:"Cancel"})]})]})]})}},93114:function(n,e,r){var i=r(14859),t=r(93291);e.Z=void 0;var a=t(r(30969)),s=(0,i(r(87131)).default)(a.createElement("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");e.Z=s}}]);
//# sourceMappingURL=8208.28d4d46d.chunk.js.map