"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3116],{93116:(e,n,a)=>{a.r(n),a.d(n,{default:()=>f});var t=a(7552),l=a(29499),r=a(99123),o=a(58507),i=a(5401),s=a(48735),c=a(32761),u=a(55252),h=a(99105),m=a(59773);function g({onConfirm:e,onCancel:n,reason:a}){return t.createElement(s.Dialog,{open:!0,maxWidth:"xl",title:"Warning"},t.createElement(l.A,null,t.createElement(h.A,{fontSize:"large"}),t.createElement(r.A,null,"This link contains a cross origin config that has the following unknown plugins:",t.createElement("ul",null,a.map((e=>t.createElement("li",{key:JSON.stringify(e)},(0,m.lc)(e))))),"Please ensure you trust the source of this link.")),t.createElement(o.A,null,t.createElement(i.A,{color:"primary",variant:"contained",onClick:()=>e()},"Yes, I trust it"),t.createElement(i.A,{color:"secondary",variant:"contained",onClick:()=>n()},"Cancel")))}function f({loader:e,handleClose:n}){const{sessionTriaged:a}=e;return a?t.createElement(g,{onConfirm:async()=>{const t=JSON.parse(JSON.stringify(a.snap));await e.fetchPlugins(t),e.setConfigSnapshot({...t,id:(0,c.Ak)()}),n()},onCancel:async()=>{await(0,u.A)(),n()},reason:a.reason}):null}},99105:(e,n,a)=>{var t=a(92120);n.A=void 0;var l=t(a(33380)),r=a(69500);n.A=(0,l.default)((0,r.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")}}]);
//# sourceMappingURL=3116.72736300.chunk.js.map