import{aF as a,aG as t,aH as s,aR as o,aU as e,aS as c,aO as i}from"./p-BTBbFFOR.js";class m extends a{connectedCallback(){this.subStateObserver=new t(this.isAcceptableObserverPayload.bind(this),(a=>{a.callback(this.propValue)})),s.register(o.getSubject(this.host,e),this.subStateObserver)}disconnectedCallback(){s.unregister(o.getSubject(this.host,e),this.subStateObserver)}constructor({propName:a}){super(),this.isAcceptableObserverPayload=a=>a.host===this.host&&a.stateName===this.propName,this.propName=a}subStateNotify(){s.notify(o.getSubject(this.host,c),{host:this.host,stateName:this.propName,value:this.propValue})}}function p(a,t,s){const o=[{mapFrom:"connectedCallback",mapTo:"connectedCallback"},{mapFrom:"disconnectedCallback",mapTo:"disconnectedCallback"}];return s&&o.push({mapFrom:s,mapTo:"subStateNotify"}),i(a,m,[{mapFrom:"host",mapTo:"host"},{mapFrom:t,mapTo:"propValue"}],o,[{propName:t}])}export{p as c}