@nent/core
Version:
4 lines • 894 B
JavaScript
/*!
* NENT 2022
*/
import{r as t,h as s,H as e,a as i}from"./index-916ca544.js";import{C as a}from"./state-subscriber-eb44164a.js";import{D as n}from"./interfaces-8c5cd1b8.js";import{R as r}from"./interfaces-3b78db83.js";import{a as o}from"./state-27a8a5bc.js";import"./index-f7016b94.js";import"./index-4bfabbbd.js";const c=class{constructor(s){t(this,s),this.show=!1}componentWillLoad(){this.dataSubscription=new a(this,"dataEnabled",n.DataChanged),this.routeSubscription=new a(this,"routingEnabled",r.RouteChanged)}async componentWillRender(){if(o.dataEnabled){const{evaluatePredicate:t}=await import("./expressions-2c27c47c.js").then((function(t){return t.f}));this.show=await t(this.when)}}disconnectedCallback(){this.dataSubscription.destroy(),this.routeSubscription.destroy()}render(){return s(e,{hidden:!this.show},s("slot",null))}get el(){return i(this)}};export{c as n_content_show}