"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[9206],{19206:(n,s,e)=>{e.r(s),e.d(s,{default:()=>x});e(41867);var i=e(47409),a=e(75258),r=e(27768),o=e(23801),l=e(35421),t=e(45466),c=e(91932),h=e(76619),d=e(67677),u=e(80838);function f(n){let{onConfirm:s,onCancel:e,reason:t}=n;return(0,u.jsxs)(l.Dialog,{open:!0,maxWidth:"xl",title:"Warning",children:[(0,u.jsxs)(i.Z,{children:[(0,u.jsx)(h.Z,{fontSize:"large"}),(0,u.jsxs)(a.Z,{children:["This link contains a cross origin config that has the following unknown plugins:",(0,u.jsx)("ul",{children:t.map((n=>(0,u.jsx)("li",{children:(0,d.OK)(n)},JSON.stringify(n))))}),"Please ensure you trust the source of this link."]})]}),(0,u.jsxs)(r.Z,{children:[(0,u.jsx)(o.Z,{color:"primary",variant:"contained",onClick:()=>s(),children:"Yes, I trust it"}),(0,u.jsx)(o.Z,{color:"secondary",variant:"contained",onClick:()=>e(),children:"Cancel"})]})]})}function x(n){let{loader:s,handleClose:e}=n;const{sessionTriaged:i}=s;return i?(0,u.jsx)(f,{onConfirm:async()=>{const n=JSON.parse(JSON.stringify(i.snap));await s.fetchPlugins(n),s.setConfigSnapshot({...n,id:(0,t.x0)()}),e()},onCancel:async()=>{await(0,c.Z)(),e()},reason:i.reason}):null}},76619:(n,s,e)=>{var i=e(71600);s.Z=void 0;var a=i(e(80337)),r=e(80838),o=(0,a.default)((0,r.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");s.Z=o}}]);
//# sourceMappingURL=9206.2ec4587a.chunk.js.map