import*as tslib_1 from"../polyfills/tslib.js";import{h}from"../webcomponents.core.js";import"./chunk-de721f0a.js";import{e as Util}from"./chunk-f9f1602a.js";var Test=function(){function t(){this.id=Util.getUUID()}return t.prototype.componentDidLoad=function(){this.postRender()},t.prototype.componentDidUpdate=function(){this.postRender()},t.prototype.postRender=function(){this.changeHandler()},t.prototype.changeHandler=function(){this.change.emit({data:this.getData(),el:this.el,timestamp:Util.getTimeStamp()})},t.prototype.setData=function(t,e){return void 0===e&&(e=!1),tslib_1.__awaiter(this,void 0,void 0,function(){var n=this;return tslib_1.__generator(this,function(o){return this.data||(this.data={}),e?(Object.keys(t).forEach(function(e){n.data[e]=t[e]}),[2]):(this.data=t,[2])})})},t.prototype.getData=function(){return tslib_1.__awaiter(this,void 0,void 0,function(){return tslib_1.__generator(this,function(t){return[2,this.data]})})},t.prototype.getId=function(){return tslib_1.__awaiter(this,void 0,void 0,function(){return tslib_1.__generator(this,function(t){return[2,this.id]})})},t.prototype.render=function(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),h("div",null,h("button",null,"Click button"))},Object.defineProperty(t,"is",{get:function(){return"ema-test"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"properties",{get:function(){return{data:{state:!0},dataJson:{type:String,attr:"data-json"},el:{elementRef:!0},getData:{method:!0},getId:{method:!0},setData:{method:!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"events",{get:function(){return[{name:"change",method:"change",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(t,"style",{get:function(){return""},enumerable:!0,configurable:!0}),t}();export{Test as EmaTest};