/*!
 * Custom elements for Nanopore-Digital Web applications
 */
import{g as n}from"./index-BM3Om9WE.js";var e;!function(n){n.Filter="filter",n.Page="page",n.Replica="replica",n.Init="init"}(e||(e={}));const o=(e,o)=>function(e,o){var i=e.prototype,t=i.componentWillLoad;i.componentWillLoad=function(){var e,i=this,r=n(this),s={promise:new Promise((function(n){e=n})),resolve:e},u=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:o,updater:function(n,e){i[n]=e},onOpen:s}});return r.dispatchEvent(u),s.promise.then((function(){if(t)return t.call(i)}))}}(e,o);export{e as S,o as W}