@pushengineering/umg-web-components 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +56 -0
  2. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  3. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  4. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  5. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
  6. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/query.js +34 -0
  7. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  8. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +260 -0
  9. package/dist/node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js +50 -0
  10. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js +27 -0
  11. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js +37 -0
  12. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js +10 -0
  13. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/map.js +15 -0
  14. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/range.js +14 -0
  15. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/style-map.js +39 -0
  16. package/dist/node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js +259 -0
  17. package/dist/packages/web-components/classes/event-manager/event-manager.js +50 -0
  18. package/dist/packages/web-components/classes/index.js +4 -0
  19. package/dist/packages/web-components/components/badge/badge.js +146 -0
  20. package/dist/packages/web-components/components/banner/banner.js +389 -0
  21. package/dist/packages/web-components/components/banner-image/banner-image.js +161 -0
  22. package/dist/packages/web-components/components/box/box.js +208 -0
  23. package/dist/packages/web-components/components/button/button.js +336 -0
  24. package/dist/packages/web-components/components/button-group/button-group.js +98 -0
  25. package/dist/packages/web-components/components/button-icon/button-icon.js +246 -0
  26. package/dist/packages/web-components/components/caption-card/caption-card.js +331 -0
  27. package/dist/packages/web-components/components/deferred-media/deferred-media.js +212 -0
  28. package/dist/packages/web-components/components/disclosure/disclosure.js +255 -0
  29. package/dist/packages/web-components/components/event-table/event-content.js +106 -0
  30. package/dist/packages/web-components/components/event-table/event-date.js +45 -0
  31. package/dist/packages/web-components/components/event-table/event-table.js +74 -0
  32. package/dist/packages/web-components/components/event-table/event.js +45 -0
  33. package/dist/packages/web-components/components/footer/footer.js +153 -0
  34. package/dist/packages/web-components/components/grid/grid-cell.js +40 -0
  35. package/dist/packages/web-components/components/grid/grid.js +106 -0
  36. package/dist/packages/web-components/components/header/header.js +368 -0
  37. package/dist/packages/web-components/components/header-drawer/header-drawer.js +292 -0
  38. package/dist/packages/web-components/components/header-drawer/menu-drawer.js +176 -0
  39. package/dist/packages/web-components/components/horizontal-stack/horizontal-stack.js +93 -0
  40. package/dist/packages/web-components/components/icon/icon.js +81 -0
  41. package/dist/packages/web-components/components/icon/icons.svg.js +191 -0
  42. package/dist/packages/web-components/components/image/image.js +157 -0
  43. package/dist/packages/web-components/components/index.js +82 -0
  44. package/dist/packages/web-components/components/link/link.js +95 -0
  45. package/dist/packages/web-components/components/link-group/link-group.js +126 -0
  46. package/dist/packages/web-components/components/logo/logo.js +161 -0
  47. package/dist/packages/web-components/components/media-gallery/media-gallery.js +82 -0
  48. package/dist/packages/web-components/components/media-gallery/media.js +31 -0
  49. package/dist/packages/web-components/components/media-text/media-text.js +276 -0
  50. package/dist/packages/web-components/components/media-text/styles/media-size.js +119 -0
  51. package/dist/packages/web-components/components/menu/menu.js +328 -0
  52. package/dist/packages/web-components/components/modal/modal.js +143 -0
  53. package/dist/packages/web-components/components/number-field/number-field.js +339 -0
  54. package/dist/packages/web-components/components/overlay/overlay.js +77 -0
  55. package/dist/packages/web-components/components/page/page.js +105 -0
  56. package/dist/packages/web-components/components/popover/popover.js +163 -0
  57. package/dist/packages/web-components/components/rich-text/rich-text.js +126 -0
  58. package/dist/packages/web-components/components/section/section.js +400 -0
  59. package/dist/packages/web-components/components/select/select.js +359 -0
  60. package/dist/packages/web-components/components/slider/slide.js +68 -0
  61. package/dist/packages/web-components/components/slider/slider-controls.js +258 -0
  62. package/dist/packages/web-components/components/slider/slider.js +374 -0
  63. package/dist/packages/web-components/components/slider/styles/controls.js +98 -0
  64. package/dist/packages/web-components/components/slider/styles/slider.js +233 -0
  65. package/dist/packages/web-components/components/socials/socials.js +96 -0
  66. package/dist/packages/web-components/components/table/table.js +158 -0
  67. package/dist/packages/web-components/components/text/text.js +245 -0
  68. package/dist/packages/web-components/components/text-field/text-field.js +257 -0
  69. package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slide.js +51 -0
  70. package/dist/packages/web-components/components/thumbnail-slider/thumbnail-slider.js +88 -0
  71. package/dist/packages/web-components/components/vertical-stack/vertical-stack.js +95 -0
  72. package/dist/packages/web-components/components/video/video.js +185 -0
  73. package/dist/packages/web-components/scripts/mergeStyles.js +8 -0
  74. package/dist/packages/web-components/scripts/polyfills/scrollyfills.js +43 -0
  75. package/dist/packages/web-components/scripts/settings.js +7 -0
  76. package/dist/packages/web-components/scripts/themeStyleSheet.js +9 -0
  77. package/dist/packages/web-components/scripts/utilities/debounce.js +9 -0
  78. package/dist/packages/web-components/scripts/utilities/paddingTransformations.js +46 -0
  79. package/dist/packages/web-components/styles/button.js +55 -0
  80. package/dist/packages/web-components/styles/fonts.js +181 -0
  81. package/dist/packages/web-components/styles/global.js +40 -0
  82. package/dist/packages/web-components/styles/grid.js +114 -0
  83. package/dist/packages/web-components/styles/group.js +121 -0
  84. package/dist/packages/web-components/styles/icon-size.js +19 -0
  85. package/dist/packages/web-components/styles/link.js +30 -0
  86. package/dist/packages/web-components/styles/placeholder-media.js +27 -0
  87. package/package.json +92 -0
  88. package/readme.md +266 -0
@@ -0,0 +1,56 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const r = globalThis, c = r.ShadowRoot && (r.ShadyCSS === void 0 || r.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, a = Symbol(), i = /* @__PURE__ */ new WeakMap();
7
+ class l {
8
+ constructor(s, t, o) {
9
+ if (this._$cssResult$ = !0, o !== a)
10
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
+ this.cssText = s, this.t = t;
12
+ }
13
+ get styleSheet() {
14
+ let s = this.o;
15
+ const t = this.t;
16
+ if (c && s === void 0) {
17
+ const o = t !== void 0 && t.length === 1;
18
+ o && (s = i.get(t)), s === void 0 && ((this.o = s = new CSSStyleSheet()).replaceSync(this.cssText), o && i.set(t, s));
19
+ }
20
+ return s;
21
+ }
22
+ toString() {
23
+ return this.cssText;
24
+ }
25
+ }
26
+ const h = (e) => new l(typeof e == "string" ? e : e + "", void 0, a), p = (e, ...s) => {
27
+ const t = e.length === 1 ? e[0] : s.reduce((o, S, u) => o + ((n) => {
28
+ if (n._$cssResult$ === !0)
29
+ return n.cssText;
30
+ if (typeof n == "number")
31
+ return n;
32
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
+ })(S) + e[u + 1], e[0]);
34
+ return new l(t, e, a);
35
+ }, d = (e, s) => {
36
+ if (c)
37
+ e.adoptedStyleSheets = s.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
38
+ else
39
+ for (const t of s) {
40
+ const o = document.createElement("style"), S = r.litNonce;
41
+ S !== void 0 && o.setAttribute("nonce", S), o.textContent = t.cssText, e.appendChild(o);
42
+ }
43
+ }, y = c ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((s) => {
44
+ let t = "";
45
+ for (const o of s.cssRules)
46
+ t += o.cssText;
47
+ return h(t);
48
+ })(e) : e;
49
+ export {
50
+ l as CSSResult,
51
+ d as adoptStyles,
52
+ p as css,
53
+ y as getCompatibleStyle,
54
+ c as supportsAdoptingStyleSheets,
55
+ h as unsafeCSS
56
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const r = (t, o, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof o != "object" && Object.defineProperty(t, o, e), e);
7
+ export {
8
+ r as desc
9
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const s = (e) => (t, n) => {
7
+ n !== void 0 ? n.addInitializer(() => {
8
+ customElements.define(e, t);
9
+ }) : customElements.define(e, t);
10
+ };
11
+ export {
12
+ s as customElement
13
+ };
@@ -0,0 +1,37 @@
1
+ import { defaultConverter as p, notEqual as d } from "../reactive-element.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const l = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: d }, u = (e = l, a, t) => {
8
+ const { kind: n, metadata: s } = t;
9
+ let o = globalThis.litPropertyMetadata.get(s);
10
+ if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(t.name, e), n === "accessor") {
11
+ const { name: r } = t;
12
+ return { set(i) {
13
+ const c = a.get.call(this);
14
+ a.set.call(this, i), this.requestUpdate(r, c, e);
15
+ }, init(i) {
16
+ return i !== void 0 && this.P(r, void 0, e), i;
17
+ } };
18
+ }
19
+ if (n === "setter") {
20
+ const { name: r } = t;
21
+ return function(i) {
22
+ const c = this[r];
23
+ a.call(this, i), this.requestUpdate(r, c, e);
24
+ };
25
+ }
26
+ throw Error("Unsupported decorator location: " + n);
27
+ };
28
+ function f(e) {
29
+ return (a, t) => typeof t == "object" ? u(e, a, t) : ((n, s, o) => {
30
+ const r = s.hasOwnProperty(o);
31
+ return s.constructor.createProperty(o, r ? { ...n, wrapped: !0 } : n), r ? Object.getOwnPropertyDescriptor(s, o) : void 0;
32
+ })(e, a, t);
33
+ }
34
+ export {
35
+ f as property,
36
+ u as standardProperty
37
+ };
@@ -0,0 +1,19 @@
1
+ import { desc as a } from "./base.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function d(t) {
8
+ return (c, i) => {
9
+ const { slot: r, selector: s } = t ?? {}, l = "slot" + (r ? `[name=${r}]` : ":not([name])");
10
+ return a(c, i, { get() {
11
+ var o;
12
+ const e = (o = this.renderRoot) == null ? void 0 : o.querySelector(l), n = (e == null ? void 0 : e.assignedElements(t)) ?? [];
13
+ return s === void 0 ? n : n.filter((m) => m.matches(s));
14
+ } });
15
+ };
16
+ }
17
+ export {
18
+ d as queryAssignedElements
19
+ };
@@ -0,0 +1,34 @@
1
+ import { desc as u } from "./base.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function d(i, l) {
8
+ return (r, o, c) => {
9
+ const n = (s) => {
10
+ var e;
11
+ return ((e = s.renderRoot) == null ? void 0 : e.querySelector(i)) ?? null;
12
+ };
13
+ if (l) {
14
+ const { get: s, set: e } = typeof o == "object" ? r : c ?? (() => {
15
+ const t = Symbol();
16
+ return { get() {
17
+ return this[t];
18
+ }, set(h) {
19
+ this[t] = h;
20
+ } };
21
+ })();
22
+ return u(r, o, { get() {
23
+ let t = s.call(this);
24
+ return t === void 0 && (t = n(this), (t !== null || this.hasUpdated) && e.call(this, t)), t;
25
+ } });
26
+ }
27
+ return u(r, o, { get() {
28
+ return n(this);
29
+ } });
30
+ };
31
+ }
32
+ export {
33
+ d as query
34
+ };
@@ -0,0 +1,12 @@
1
+ import { property as r } from "./property.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ function a(t) {
8
+ return r({ ...t, state: !0, attribute: !1 });
9
+ }
10
+ export {
11
+ a as state
12
+ };
@@ -0,0 +1,260 @@
1
+ import { getCompatibleStyle as u, adoptStyles as $ } from "./css-tag.js";
2
+ import { CSSResult as O, css as C, supportsAdoptingStyleSheets as R, unsafeCSS as z } from "./css-tag.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2017 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const { is: m, defineProperty: y, getOwnPropertyDescriptor: g, getOwnPropertyNames: P, getOwnPropertySymbols: b, getPrototypeOf: v } = Object, h = globalThis, f = h.trustedTypes, S = f ? f.emptyScript : "", p = h.reactiveElementPolyfillSupport, c = (r, t) => r, d = { toAttribute(r, t) {
9
+ switch (t) {
10
+ case Boolean:
11
+ r = r ? S : null;
12
+ break;
13
+ case Object:
14
+ case Array:
15
+ r = r == null ? r : JSON.stringify(r);
16
+ }
17
+ return r;
18
+ }, fromAttribute(r, t) {
19
+ let e = r;
20
+ switch (t) {
21
+ case Boolean:
22
+ e = r !== null;
23
+ break;
24
+ case Number:
25
+ e = r === null ? null : Number(r);
26
+ break;
27
+ case Object:
28
+ case Array:
29
+ try {
30
+ e = JSON.parse(r);
31
+ } catch {
32
+ e = null;
33
+ }
34
+ }
35
+ return e;
36
+ } }, _ = (r, t) => !m(r, t), E = { attribute: !0, type: String, converter: d, reflect: !1, hasChanged: _ };
37
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h.litPropertyMetadata ?? (h.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
38
+ class a extends HTMLElement {
39
+ static addInitializer(t) {
40
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
41
+ }
42
+ static get observedAttributes() {
43
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
44
+ }
45
+ static createProperty(t, e = E) {
46
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
47
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
48
+ i !== void 0 && y(this.prototype, t, i);
49
+ }
50
+ }
51
+ static getPropertyDescriptor(t, e, s) {
52
+ const { get: i, set: o } = g(this.prototype, t) ?? { get() {
53
+ return this[e];
54
+ }, set(n) {
55
+ this[e] = n;
56
+ } };
57
+ return { get() {
58
+ return i == null ? void 0 : i.call(this);
59
+ }, set(n) {
60
+ const l = i == null ? void 0 : i.call(this);
61
+ o.call(this, n), this.requestUpdate(t, l, s);
62
+ }, configurable: !0, enumerable: !0 };
63
+ }
64
+ static getPropertyOptions(t) {
65
+ return this.elementProperties.get(t) ?? E;
66
+ }
67
+ static _$Ei() {
68
+ if (this.hasOwnProperty(c("elementProperties")))
69
+ return;
70
+ const t = v(this);
71
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
72
+ }
73
+ static finalize() {
74
+ if (this.hasOwnProperty(c("finalized")))
75
+ return;
76
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(c("properties"))) {
77
+ const e = this.properties, s = [...P(e), ...b(e)];
78
+ for (const i of s)
79
+ this.createProperty(i, e[i]);
80
+ }
81
+ const t = this[Symbol.metadata];
82
+ if (t !== null) {
83
+ const e = litPropertyMetadata.get(t);
84
+ if (e !== void 0)
85
+ for (const [s, i] of e)
86
+ this.elementProperties.set(s, i);
87
+ }
88
+ this._$Eh = /* @__PURE__ */ new Map();
89
+ for (const [e, s] of this.elementProperties) {
90
+ const i = this._$Eu(e, s);
91
+ i !== void 0 && this._$Eh.set(i, e);
92
+ }
93
+ this.elementStyles = this.finalizeStyles(this.styles);
94
+ }
95
+ static finalizeStyles(t) {
96
+ const e = [];
97
+ if (Array.isArray(t)) {
98
+ const s = new Set(t.flat(1 / 0).reverse());
99
+ for (const i of s)
100
+ e.unshift(u(i));
101
+ } else
102
+ t !== void 0 && e.push(u(t));
103
+ return e;
104
+ }
105
+ static _$Eu(t, e) {
106
+ const s = e.attribute;
107
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
108
+ }
109
+ constructor() {
110
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
111
+ }
112
+ _$Ev() {
113
+ var t;
114
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
115
+ }
116
+ addController(t) {
117
+ var e;
118
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
119
+ }
120
+ removeController(t) {
121
+ var e;
122
+ (e = this._$EO) == null || e.delete(t);
123
+ }
124
+ _$E_() {
125
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
126
+ for (const s of e.keys())
127
+ this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
128
+ t.size > 0 && (this._$Ep = t);
129
+ }
130
+ createRenderRoot() {
131
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
132
+ return $(t, this.constructor.elementStyles), t;
133
+ }
134
+ connectedCallback() {
135
+ var t;
136
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
137
+ var s;
138
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
139
+ });
140
+ }
141
+ enableUpdating(t) {
142
+ }
143
+ disconnectedCallback() {
144
+ var t;
145
+ (t = this._$EO) == null || t.forEach((e) => {
146
+ var s;
147
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
148
+ });
149
+ }
150
+ attributeChangedCallback(t, e, s) {
151
+ this._$AK(t, s);
152
+ }
153
+ _$EC(t, e) {
154
+ var o;
155
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
156
+ if (i !== void 0 && s.reflect === !0) {
157
+ const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : d).toAttribute(e, s.type);
158
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
159
+ }
160
+ }
161
+ _$AK(t, e) {
162
+ var o;
163
+ const s = this.constructor, i = s._$Eh.get(t);
164
+ if (i !== void 0 && this._$Em !== i) {
165
+ const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : d;
166
+ this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
167
+ }
168
+ }
169
+ requestUpdate(t, e, s) {
170
+ if (t !== void 0) {
171
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? _)(this[t], e))
172
+ return;
173
+ this.P(t, e, s);
174
+ }
175
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
176
+ }
177
+ P(t, e, s) {
178
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
179
+ }
180
+ async _$ET() {
181
+ this.isUpdatePending = !0;
182
+ try {
183
+ await this._$ES;
184
+ } catch (e) {
185
+ Promise.reject(e);
186
+ }
187
+ const t = this.scheduleUpdate();
188
+ return t != null && await t, !this.isUpdatePending;
189
+ }
190
+ scheduleUpdate() {
191
+ return this.performUpdate();
192
+ }
193
+ performUpdate() {
194
+ var s;
195
+ if (!this.isUpdatePending)
196
+ return;
197
+ if (!this.hasUpdated) {
198
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
199
+ for (const [o, n] of this._$Ep)
200
+ this[o] = n;
201
+ this._$Ep = void 0;
202
+ }
203
+ const i = this.constructor.elementProperties;
204
+ if (i.size > 0)
205
+ for (const [o, n] of i)
206
+ n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
207
+ }
208
+ let t = !1;
209
+ const e = this._$AL;
210
+ try {
211
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
212
+ var o;
213
+ return (o = i.hostUpdate) == null ? void 0 : o.call(i);
214
+ }), this.update(e)) : this._$EU();
215
+ } catch (i) {
216
+ throw t = !1, this._$EU(), i;
217
+ }
218
+ t && this._$AE(e);
219
+ }
220
+ willUpdate(t) {
221
+ }
222
+ _$AE(t) {
223
+ var e;
224
+ (e = this._$EO) == null || e.forEach((s) => {
225
+ var i;
226
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
227
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
228
+ }
229
+ _$EU() {
230
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
231
+ }
232
+ get updateComplete() {
233
+ return this.getUpdateComplete();
234
+ }
235
+ getUpdateComplete() {
236
+ return this._$ES;
237
+ }
238
+ shouldUpdate(t) {
239
+ return !0;
240
+ }
241
+ update(t) {
242
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
243
+ }
244
+ updated(t) {
245
+ }
246
+ firstUpdated(t) {
247
+ }
248
+ }
249
+ a.elementStyles = [], a.shadowRootOptions = { mode: "open" }, a[c("elementProperties")] = /* @__PURE__ */ new Map(), a[c("finalized")] = /* @__PURE__ */ new Map(), p == null || p({ ReactiveElement: a }), (h.reactiveElementVersions ?? (h.reactiveElementVersions = [])).push("2.0.4");
250
+ export {
251
+ O as CSSResult,
252
+ a as ReactiveElement,
253
+ $ as adoptStyles,
254
+ C as css,
255
+ d as defaultConverter,
256
+ u as getCompatibleStyle,
257
+ _ as notEqual,
258
+ R as supportsAdoptingStyleSheets,
259
+ z as unsafeCSS
260
+ };
@@ -0,0 +1,50 @@
1
+ import { ReactiveElement as o } from "../../../@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
2
+ import { defaultConverter as m, notEqual as u } from "../../../@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js";
3
+ import { render as i, noChange as l } from "../../../lit-html@3.1.2/node_modules/lit-html/lit-html.js";
4
+ import { html as E, nothing as f, svg as b } from "../../../lit-html@3.1.2/node_modules/lit-html/lit-html.js";
5
+ /**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */
10
+ class n extends o {
11
+ constructor() {
12
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
13
+ }
14
+ createRenderRoot() {
15
+ var t;
16
+ const e = super.createRenderRoot();
17
+ return (t = this.renderOptions).renderBefore ?? (t.renderBefore = e.firstChild), e;
18
+ }
19
+ update(e) {
20
+ const t = this.render();
21
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = i(t, this.renderRoot, this.renderOptions);
22
+ }
23
+ connectedCallback() {
24
+ var e;
25
+ super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
26
+ }
27
+ disconnectedCallback() {
28
+ var e;
29
+ super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
30
+ }
31
+ render() {
32
+ return l;
33
+ }
34
+ }
35
+ var r;
36
+ n._$litElement$ = !0, n.finalized = !0, (r = globalThis.litElementHydrateSupport) == null || r.call(globalThis, { LitElement: n });
37
+ const s = globalThis.litElementPolyfillSupport;
38
+ s == null || s({ LitElement: n });
39
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
40
+ export {
41
+ n as LitElement,
42
+ o as ReactiveElement,
43
+ m as defaultConverter,
44
+ E as html,
45
+ l as noChange,
46
+ u as notEqual,
47
+ f as nothing,
48
+ i as render,
49
+ b as svg
50
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const s = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, T = (i) => (...t) => ({ _$litDirective$: i, values: t });
7
+ class _ {
8
+ constructor(t) {
9
+ }
10
+ get _$AU() {
11
+ return this._$AM._$AU;
12
+ }
13
+ _$AT(t, e, r) {
14
+ this._$Ct = t, this._$AM = e, this._$Ci = r;
15
+ }
16
+ _$AS(t, e) {
17
+ return this.update(t, e);
18
+ }
19
+ update(t, e) {
20
+ return this.render(...e);
21
+ }
22
+ }
23
+ export {
24
+ _ as Directive,
25
+ s as PartType,
26
+ T as directive
27
+ };
@@ -0,0 +1,37 @@
1
+ import { noChange as o } from "../lit-html.js";
2
+ import { directive as h, Directive as c, PartType as d } from "../directive.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2018 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const f = h(class extends c {
9
+ constructor(s) {
10
+ var e;
11
+ if (super(s), s.type !== d.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2)
12
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
13
+ }
14
+ render(s) {
15
+ return " " + Object.keys(s).filter((e) => s[e]).join(" ") + " ";
16
+ }
17
+ update(s, [e]) {
18
+ var n, i;
19
+ if (this.st === void 0) {
20
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((t) => t !== "")));
21
+ for (const t in e)
22
+ e[t] && !((n = this.nt) != null && n.has(t)) && this.st.add(t);
23
+ return this.render(e);
24
+ }
25
+ const r = s.element.classList;
26
+ for (const t of this.st)
27
+ t in e || (r.remove(t), this.st.delete(t));
28
+ for (const t in e) {
29
+ const a = !!e[t];
30
+ a === this.st.has(t) || (i = this.nt) != null && i.has(t) || (a ? (r.add(t), this.st.add(t)) : (r.remove(t), this.st.delete(t)));
31
+ }
32
+ return o;
33
+ }
34
+ });
35
+ export {
36
+ f as classMap
37
+ };
@@ -0,0 +1,10 @@
1
+ import { nothing as i } from "../lit-html.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2018 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */
7
+ const t = (o) => o ?? i;
8
+ export {
9
+ t as ifDefined
10
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function* e(o, i) {
7
+ if (o !== void 0) {
8
+ let t = 0;
9
+ for (const f of o)
10
+ yield i(f, t++);
11
+ }
12
+ }
13
+ export {
14
+ e as map
15
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function* a(n, o, e = 1) {
7
+ const r = o === void 0 ? 0 : n;
8
+ o ?? (o = n);
9
+ for (let i = r; e > 0 ? i < o : o < i; i += e)
10
+ yield i;
11
+ }
12
+ export {
13
+ a as range
14
+ };
@@ -0,0 +1,39 @@
1
+ import { noChange as l } from "../lit-html.js";
2
+ import { directive as c, Directive as a, PartType as u } from "../directive.js";
3
+ /**
4
+ * @license
5
+ * Copyright 2018 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ const o = "important", d = " !" + o, h = c(class extends a {
9
+ constructor(n) {
10
+ var t;
11
+ if (super(n), n.type !== u.ATTRIBUTE || n.name !== "style" || ((t = n.strings) == null ? void 0 : t.length) > 2)
12
+ throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
13
+ }
14
+ render(n) {
15
+ return Object.keys(n).reduce((t, s) => {
16
+ const e = n[s];
17
+ return e == null ? t : t + `${s = s.includes("-") ? s : s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${e};`;
18
+ }, "");
19
+ }
20
+ update(n, [t]) {
21
+ const { style: s } = n.element;
22
+ if (this.ft === void 0)
23
+ return this.ft = new Set(Object.keys(t)), this.render(t);
24
+ for (const e of this.ft)
25
+ t[e] == null && (this.ft.delete(e), e.includes("-") ? s.removeProperty(e) : s[e] = null);
26
+ for (const e in t) {
27
+ const r = t[e];
28
+ if (r != null) {
29
+ this.ft.add(e);
30
+ const i = typeof r == "string" && r.endsWith(d);
31
+ e.includes("-") || i ? s.setProperty(e, i ? r.slice(0, -11) : r, i ? o : "") : s[e] = r;
32
+ }
33
+ }
34
+ return l;
35
+ }
36
+ });
37
+ export {
38
+ h as styleMap
39
+ };