| 5066 | ) |
| 5067 | } |
| 5068 | toValue() { |
| 5069 | return this.content instanceof Element |
| 5070 | ? this.content.toValue() |
| 5071 | : this.content instanceof u |
| 5072 | ? { |
| 5073 | key: this.content.key.toValue(), |
| 5074 | value: this.content.value ? this.content.value.toValue() : void 0, |
| 5075 | } |
| 5076 | : this.content && this.content.map |
| 5077 | ? this.content.map((s) => s.toValue(), this) |
| 5078 | : this.content |
| 5079 | } |
| 5080 | toRef(s) { |
| 5081 | if ('' === this.id.toValue()) |
| 5082 | throw Error('Cannot create reference to an element that does not contain an ID') |