UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

35 lines (34 loc) 1.23 kB
import { html as S } from "./lit-html.js"; /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const u = Symbol.for(""), h = (t) => { if ((t == null ? void 0 : t.r) === u) return t == null ? void 0 : t._$litStatic$; }, _ = (t) => ({ _$litStatic$: t, r: u }), v = (t, ...a) => ({ _$litStatic$: a.reduce((l, e, o) => l + ((s) => { if (s._$litStatic$ !== void 0) return s._$litStatic$; throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but take care to ensure page security.`); })(e) + t[o + 1], t[0]), r: u }), p = /* @__PURE__ */ new Map(), m = (t) => (a, ...l) => { const e = l.length; let o, s; const r = [], c = []; let n, i = 0, $ = !1; for (; i < e; ) { for (n = a[i]; i < e && (s = l[i], (o = h(s)) !== void 0); ) n += o + a[++i], $ = !0; i !== e && c.push(s), r.push(n), i++; } if (i === e && r.push(a[e]), $) { const f = r.join("$$lit$$"); (a = p.get(f)) === void 0 && (r.raw = r, p.set(f, a = r)), l = c; } return t(a, ...l); }, w = m(S); export { w as html, v as literal, _ as unsafeStatic, m as withStatic }; //# sourceMappingURL=static.js.map