import*as tslib_1 from"../polyfills/tslib.js";import{h}from"../webcomponents.core.js";import"./chunk-de721f0a.js";import{d as Util}from"./chunk-6163e267.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":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}"},enumerable:!0,configurable:!0}),t}();export{Test as EmaTest};