import{__decorate as t}from"tslib";import{LitElement as e}from"lit";import{property as r,customElement as i}from"lit/decorators.js";let o=class extends e{constructor(){super(...arguments),this.mentionsCharacter="",this.mentionsColor="",this.mentionsPrefix="",this.mentionsSuffix="",this.mentionsData=[]}createRenderRoot(){return this}};t([r({attribute:"mentionscharacter",reflect:!0})],o.prototype,"mentionsCharacter",void 0),t([r({attribute:"mentionscolor",reflect:!0})],o.prototype,"mentionsColor",void 0),t([r({attribute:"mentionsprefix",reflect:!0})],o.prototype,"mentionsPrefix",void 0),t([r({attribute:"mentionssuffix",reflect:!0})],o.prototype,"mentionsSuffix",void 0),t([r({attribute:"mentionsdata",reflect:!0,converter:{fromAttribute:t=>{if(!t)return[];try{const e=JSON.parse(t);return Array.isArray(e)?e.filter((t=>t&&"string"==typeof t.key&&"string"==typeof t.label)):[]}catch{return[]}},toAttribute:t=>JSON.stringify(t??[])}})],o.prototype,"mentionsData",void 0),o=t([i("nile-rte-mentions-item")],o);
