var __awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,a){function i(t){try{c(r.next(t))}catch(t){a(t)}}function u(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(i,u)}c((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}};webcomponents.loadBundle("qz0kunjc",["exports","./chunk-0fe2669a.js","./chunk-722333ee.js"],function(t,e,n){var r=window.webcomponents.h,o=function(){function t(){this.id=n.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:n.Util.getTimeStamp()})},t.prototype.setData=function(t,e){return void 0===e&&(e=!1),__awaiter(this,void 0,void 0,function(){var n=this;return __generator(this,function(r){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 __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.data]})})},t.prototype.getId=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.id]})})},t.prototype.render=function(){return this.dataJson&&(this.data=JSON.parse(this.dataJson)),r("div",null,r("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}();t.EmaTest=o,Object.defineProperty(t,"__esModule",{value:!0})});