import{LitElement as t,html as e,css as r}from"lit";import{defineSmartComponentCore as o,observeContainer as n,updateContext as s}from"./smart-manager.js";o({selector:"cc-smart-container",onContextUpdate(t,e,r){e instanceof a&&(e.parentContext=r)}});class a extends t{static get properties(){return{context:{type:Object,reflect:!0},parentContext:{type:Object,attribute:!1}}}constructor(){super(),this.context={},this.parentContext={}}connectedCallback(){super.connectedCallback(),this._abortController=new AbortController,n(this,this._abortController.signal)}disconnectedCallback(){super.disconnectedCallback(),this._abortController.abort(),delete this._abortController}willUpdate(t){s(this,{...this.parentContext,...this.context})}render(){return e` <slot></slot> `}static get styles(){return[r`
        :host {
          display: contents;
        }
      `]}}customElements.define("cc-smart-container",a);export{a as CcSmartContainer};
//# sourceMappingURL=cc-smart-container.js.map
