var __decorate=this&&this.__decorate||function(t,e,i,n){var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var g=t.length-1;g>=0;g--)(o=t[g])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};import{LitElement as t}from"lit";import{property as e}from"lit/decorators.js";import{style as i}from"../style";export class WidgetSettingsChangedEvent extends CustomEvent{constructor(t){super(WidgetSettingsChangedEvent.NAME,{bubbles:!0,composed:!0,detail:t})}}WidgetSettingsChangedEvent.NAME="settings-changed";export class WidgetSettings extends t{static get styles(){return[i]}constructor(t){super(),this.widgetConfig=t}willUpdate(t){t.has("widgetConfig")&&this.widgetConfig&&this.dispatchEvent(new WidgetSettingsChangedEvent(this.widgetConfig))}notifyConfigUpdate(){this.requestUpdate("widgetConfig")}}__decorate([e()],WidgetSettings.prototype,"widgetConfig",void 0);