stencil-quantum
Version:
Experience the quantum realm of stencil.
1 lines • 771 B
JavaScript
import{r as t,c as s,h as i,g as o}from"./p-e5446afd.js";import{P as h,t as l}from"./p-75cb2ba0.js";const r=class{constructor(i){t(this,i),this.update=s(this,"update",7)}async componentWillLoad(){var t,s,i,o,r,n;try{this.name=null!==(i=null!==(s=null===(t=this.bind)||void 0===t?void 0:t.name)&&void 0!==s?s:this.name)&&void 0!==i?i:"",this.namespace=null!==(r=null===(o=this.bind)||void 0===o?void 0:o.namespace)&&void 0!==r?r:this.namespace,this.debug=(null===(n=this.bind)||void 0===n?void 0:n.debug)||this.debug;const a=h.find(this.el,this.name,this.namespace,this.debug);a.listen((t=>{try{this.update.emit({value:t,provider:a})}catch(t){l(this.el,t)}}),!0)}catch(t){l(this.el,t)}}render(){return i("slot",null)}get el(){return o(this)}};export{r as quantum_consumer}