UNPKG

pyro

Version:
27 lines (26 loc) 891 B
import { E as r, T as s } from "./custom-element-CWJsDAat.js"; import { e as n, i as o, t as c } from "./directive-kLG6oqUu.js"; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ class e extends o { constructor(t) { if (super(t), this.it = r, t.type !== c.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings"); } render(t) { if (t === r || t == null) return this._t = void 0, this.it = t; if (t === s) return t; if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value"); if (t === this.it) return this._t; this.it = t; const i = [t]; return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] }; } } e.directiveName = "unsafeHTML", e.resultType = 1; const l = n(e); export { l as o };