chunk.EPTJRW4G.js 945 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. i,
  3. s,
  4. t
  5. } from "./chunk.VIWFLAGR.js";
  6. import {
  7. A,
  8. w
  9. } from "./chunk.5PIDMFOE.js";
  10. // node_modules/lit-html/directives/unsafe-html.js
  11. var n = class extends s {
  12. constructor(i2) {
  13. if (super(i2), this.vt = A, i2.type !== t.CHILD)
  14. throw Error(this.constructor.directiveName + "() can only be used in child bindings");
  15. }
  16. render(r) {
  17. if (r === A)
  18. return this.Vt = void 0, this.vt = r;
  19. if (r === w)
  20. return r;
  21. if (typeof r != "string")
  22. throw Error(this.constructor.directiveName + "() called with a non-string value");
  23. if (r === this.vt)
  24. return this.Vt;
  25. this.vt = r;
  26. const s2 = [r];
  27. return s2.raw = s2, this.Vt = { _$litType$: this.constructor.resultType, strings: s2, values: [] };
  28. }
  29. };
  30. n.directiveName = "unsafeHTML", n.resultType = 1;
  31. var o = i(n);
  32. export {
  33. n,
  34. o
  35. };
  36. /**
  37. * @license
  38. * Copyright 2017 Google LLC
  39. * SPDX-License-Identifier: BSD-3-Clause
  40. */