UNPKG

@nent/core

Version:

Functional elements to add routing, data-binding, dynamic HTML, declarative actions, audio, video, and so much more. Supercharge static HTML files into web apps without script or builds.

4 lines 598 B
/*! * NENT 2022 */ import{M as s}from"./mutex-e5645c85.js";import{c as a}from"./index-4bfabbbd.js";var n;!function(s){s.script="script",s.styles="styles"}(n||(n={}));class e{}const t=a({references:[],cache:{}}),{state:c,onChange:r,reset:o,dispose:i}=t,f=new s;async function u(s){return await f.dispatch((async()=>c.references.includes(s)))}async function y(s){return await f.dispatch((async()=>{c.references=[...new Set([...c.references,s])]}))}async function m(){return await f.dispatch((async()=>{c.references=[]}))}export{n as R,e as S,c as a,m as c,i as d,u as h,y as m,r as o,o as r,t as s}