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