pollcatch 2.5.6 → 2.5.8

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 (2) hide show
  1. package/package.json +1 -1
  2. package/pc.js +95 -80
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pollcatch",
3
3
  "private": false,
4
- "version": "2.5.6",
4
+ "version": "2.5.8",
5
5
  "type": "module",
6
6
  "main": "pc.js",
7
7
  "module": "pc.js",
package/pc.js CHANGED
@@ -22,7 +22,7 @@ let ke = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Ke = (e) => new ke(typeof e == "string" ? e : e + "", void 0, Yt), B = (e, ...t) => {
25
+ const Ke = (e) => new ke(typeof e == "string" ? e : e + "", void 0, Yt), R = (e, ...t) => {
26
26
  const o = e.length === 1 ? e[0] : t.reduce((r, s, i) => r + ((a) => {
27
27
  if (a._$cssResult$ === !0) return a.cssText;
28
28
  if (typeof a == "number") return a;
@@ -279,7 +279,7 @@ et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[lt("elementPr
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const ct = globalThis, St = ct.trustedTypes, se = St ? St.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", U = `lit$${Math.random().toFixed(9).slice(2)}$`, Ae = "?" + U, oo = `<${Ae}>`, G = document, pt = () => G.createComment(""), ut = (e) => e === null || typeof e != "object" && typeof e != "function", Wt = Array.isArray, ro = (e) => Wt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Mt = `[
282
+ const ct = globalThis, St = ct.trustedTypes, se = St ? St.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", V = `lit$${Math.random().toFixed(9).slice(2)}$`, Ae = "?" + V, oo = `<${Ae}>`, G = document, pt = () => G.createComment(""), ut = (e) => e === null || typeof e != "object" && typeof e != "function", Wt = Array.isArray, ro = (e) => Wt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Mt = `[
283
283
  \f\r]`, at = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ae = />/g, K = RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
284
284
  \f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, le = /"/g, Pe = /^(?:script|style|textarea|title)$/i, so = (e) => (t, ...o) => ({ _$litType$: e, strings: t, values: o }), c = so(1), q = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ce = /* @__PURE__ */ new WeakMap(), W = G.createTreeWalker(G, 129);
285
285
  function Te(e, t) {
@@ -294,7 +294,7 @@ const io = (e, t) => {
294
294
  let d, p, h = -1, b = 0;
295
295
  for (; b < n.length && (a.lastIndex = b, p = a.exec(n), p !== null); ) b = a.lastIndex, a === at ? p[1] === "!--" ? a = ie : p[1] !== void 0 ? a = ae : p[2] !== void 0 ? (Pe.test(p[2]) && (s = RegExp("</" + p[2], "g")), a = K) : p[3] !== void 0 && (a = K) : a === K ? p[0] === ">" ? (a = s ?? at, h = -1) : p[1] === void 0 ? h = -2 : (h = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? K : p[3] === '"' ? le : ne) : a === le || a === ne ? a = K : a === ie || a === ae ? a = at : (a = K, s = void 0);
296
296
  const w = a === K && e[l + 1].startsWith("/>") ? " " : "";
297
- i += a === at ? n + oo : h >= 0 ? (r.push(d), n.slice(0, h) + Ee + n.slice(h) + U + w) : n + U + (h === -2 ? l : w);
297
+ i += a === at ? n + oo : h >= 0 ? (r.push(d), n.slice(0, h) + Ee + n.slice(h) + V + w) : n + V + (h === -2 ? l : w);
298
298
  }
299
299
  return [Te(e, i + (e[o] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
300
300
  };
@@ -311,11 +311,11 @@ let Ht = class _e {
311
311
  for (; (s = W.nextNode()) !== null && n.length < l; ) {
312
312
  if (s.nodeType === 1) {
313
313
  if (s.hasAttributes()) for (const h of s.getAttributeNames()) if (h.endsWith(Ee)) {
314
- const b = p[a++], w = s.getAttribute(h).split(U), E = /([.?@])?(.*)/.exec(b);
314
+ const b = p[a++], w = s.getAttribute(h).split(V), E = /([.?@])?(.*)/.exec(b);
315
315
  n.push({ type: 1, index: i, name: E[2], strings: w, ctor: E[1] === "." ? no : E[1] === "?" ? lo : E[1] === "@" ? co : At }), s.removeAttribute(h);
316
- } else h.startsWith(U) && (n.push({ type: 6, index: i }), s.removeAttribute(h));
316
+ } else h.startsWith(V) && (n.push({ type: 6, index: i }), s.removeAttribute(h));
317
317
  if (Pe.test(s.tagName)) {
318
- const h = s.textContent.split(U), b = h.length - 1;
318
+ const h = s.textContent.split(V), b = h.length - 1;
319
319
  if (b > 0) {
320
320
  s.textContent = St ? St.emptyScript : "";
321
321
  for (let w = 0; w < b; w++) s.append(h[w], pt()), W.nextNode(), n.push({ type: 2, index: ++i });
@@ -325,7 +325,7 @@ let Ht = class _e {
325
325
  } else if (s.nodeType === 8) if (s.data === Ae) n.push({ type: 2, index: i });
326
326
  else {
327
327
  let h = -1;
328
- for (; (h = s.data.indexOf(U, h + 1)) !== -1; ) n.push({ type: 7, index: i }), h += U.length - 1;
328
+ for (; (h = s.data.indexOf(V, h + 1)) !== -1; ) n.push({ type: 7, index: i }), h += V.length - 1;
329
329
  }
330
330
  i++;
331
331
  }
@@ -515,7 +515,7 @@ const uo = (e, t, o) => {
515
515
  * Copyright 2017 Google LLC
516
516
  * SPDX-License-Identifier: BSD-3-Clause
517
517
  */
518
- let D = class extends et {
518
+ let N = class extends et {
519
519
  constructor() {
520
520
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
521
521
  }
@@ -541,9 +541,9 @@ let D = class extends et {
541
541
  }
542
542
  };
543
543
  var Ce;
544
- D._$litElement$ = !0, D.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: D });
544
+ N._$litElement$ = !0, N.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: N });
545
545
  const Nt = globalThis.litElementPolyfillSupport;
546
- Nt == null || Nt({ LitElement: D });
546
+ Nt == null || Nt({ LitElement: N });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
548
548
  /**
549
549
  * @license
@@ -1091,7 +1091,7 @@ function Vo(e, t) {
1091
1091
  }
1092
1092
  return { avg: s > 0 ? Math.round(r / s * 10) / 10 : 0, count: s, sum: r, breakdown: o };
1093
1093
  }
1094
- function N() {
1094
+ function U() {
1095
1095
  return {
1096
1096
  count: 0,
1097
1097
  sum: 0,
@@ -1103,12 +1103,12 @@ function N() {
1103
1103
  }
1104
1104
  function Uo(e) {
1105
1105
  if (!Xt())
1106
- return N();
1106
+ return U();
1107
1107
  try {
1108
1108
  const t = Ne(e);
1109
- return t ? { ...N(), ...t } : N();
1109
+ return t ? { ...U(), ...t } : U();
1110
1110
  } catch (t) {
1111
- return g.warn("Failed to load localStats from localStorage", t), N();
1111
+ return g.warn("Failed to load localStats from localStorage", t), U();
1112
1112
  }
1113
1113
  }
1114
1114
  function jo(e, t) {
@@ -1137,7 +1137,7 @@ function qo(e, t) {
1137
1137
  }
1138
1138
  function Ho(e, t) {
1139
1139
  if (!e.count && !t.count)
1140
- return N();
1140
+ return U();
1141
1141
  if (!e.count)
1142
1142
  return { ...t };
1143
1143
  const o = {
@@ -1248,7 +1248,7 @@ async function Go(e, t, o) {
1248
1248
  class Zo {
1249
1249
  // Set when a fatal error occurs (e.g. type mismatch for registered widget)
1250
1250
  constructor(t) {
1251
- this.stats = N(), this.localStats = N(), this.prevLocalStats = N(), this.isLoading = !0, this.isLoadingConfig = !1, this.isSubmitting = !1, this.hasInteracted = !1, this.hasError = !1, (this.host = t).addController(this);
1251
+ this.stats = U(), this.localStats = U(), this.isLoading = !0, this.isLoadingConfig = !1, this.isSubmitting = !1, this.hasInteracted = !1, this.hasError = !1, (this.host = t).addController(this);
1252
1252
  }
1253
1253
  hostConnected() {
1254
1254
  this.loadStats();
@@ -1280,28 +1280,28 @@ class Zo {
1280
1280
  */
1281
1281
  applyWidgetAttributes(t) {
1282
1282
  if (!t) return;
1283
- const o = typeof t.attributes == "object" && t.attributes !== null && !Array.isArray(t.attributes) ? t.attributes : t, r = this.host, s = r, i = /* @__PURE__ */ new Set();
1284
- for (let a = 0; a < s.attributes.length; a++) {
1285
- const l = s.attributes[a];
1286
- l && l.name !== "type" && l.name !== "options" && l.name !== "initialized" && i.add(l.name);
1283
+ const o = typeof t.attributes == "object" && t.attributes !== null && !Array.isArray(t.attributes) ? t.attributes : t, r = this.host, s = r, i = /* @__PURE__ */ new Set(["type", "options", "initialized", "num-stars", "multiple"]), a = /* @__PURE__ */ new Set();
1284
+ for (let l = 0; l < s.attributes.length; l++) {
1285
+ const n = s.attributes[l];
1286
+ n && !i.has(n.name) && a.add(n.name);
1287
1287
  }
1288
- for (const [a, l] of Object.entries(o)) {
1289
- if (l == null) continue;
1290
- if (a === "options" && typeof l == "string") {
1291
- const d = Be(l);
1292
- r.options = d.map((p) => ({
1293
- value: p,
1294
- label: p,
1295
- icon: r.type === $.reaction ? p : void 0
1296
- })), g.debug("Applied widget options as property:", d);
1288
+ for (const [l, n] of Object.entries(o)) {
1289
+ if (n == null) continue;
1290
+ if (l === "options" && typeof n == "string") {
1291
+ const p = Be(n);
1292
+ r.options = p.map((h) => ({
1293
+ value: h,
1294
+ label: h,
1295
+ icon: r.type === $.reaction ? h : void 0
1296
+ })), g.debug("Applied widget options as property:", p);
1297
1297
  continue;
1298
1298
  }
1299
- const n = a.replace(/([A-Z])/g, "-$1").toLowerCase();
1300
- if (i.has(n)) {
1301
- g.debug(`Skipping server attribute "${n}" — overridden by inline attribute`);
1299
+ const d = l.replace(/([A-Z])/g, "-$1").toLowerCase();
1300
+ if (a.has(d)) {
1301
+ g.debug(`Skipping server attribute "${d}" — overridden by inline attribute`);
1302
1302
  continue;
1303
1303
  }
1304
- typeof l == "boolean" ? l ? s.setAttribute(n, "") : s.removeAttribute(n) : typeof l == "object" ? s.setAttribute(n, JSON.stringify(l)) : s.setAttribute(n, String(l)), g.debug(`Applied widget attribute: ${n}=${l}`);
1304
+ typeof n == "boolean" ? n ? s.setAttribute(d, "") : s.removeAttribute(d) : typeof n == "object" ? s.setAttribute(d, JSON.stringify(n)) : s.setAttribute(d, String(n)), g.debug(`Applied widget attribute: ${d}=${n}`);
1305
1305
  }
1306
1306
  }
1307
1307
  /**
@@ -1364,7 +1364,7 @@ class Zo {
1364
1364
  } catch (n) {
1365
1365
  throw g.error("Error loading stats:", n, this.localStats), n;
1366
1366
  } finally {
1367
- this.isLoading = !1, this.isLoadingConfig = !1, this.host.requestUpdate();
1367
+ this.isLoading = !1, this.isLoadingConfig = !1, this.host.requestUpdate(), await this.host.updateComplete, this.dispatchInitEvent();
1368
1368
  }
1369
1369
  }
1370
1370
  /**
@@ -1394,9 +1394,9 @@ class Zo {
1394
1394
  const t = await this.getLocalStatsKey();
1395
1395
  try {
1396
1396
  const o = Uo(t);
1397
- g.debug("Loaded localStats from localStorage", o), this.localStats = o, o.submitted && (this.prevLocalStats = { ...o });
1397
+ g.debug("Loaded localStats from localStorage", o), this.localStats = o;
1398
1398
  } catch (o) {
1399
- g.warn("Failed to generate localStorage key for localStats", o), this.localStats = N();
1399
+ g.warn("Failed to generate localStorage key for localStats", o), this.localStats = U();
1400
1400
  }
1401
1401
  this.host.requestUpdate();
1402
1402
  }
@@ -1434,17 +1434,17 @@ class Zo {
1434
1434
  }, o && o.length > 0)
1435
1435
  for (const r of o)
1436
1436
  r && (this.localStats.breakdown[r] = 1);
1437
- this.stats = Ho(this.stats, this.localStats), g.debug("Stats updated - remote: ", this.stats), g.debug("Stats updated - local: ", this.stats), this.persistLocalStats(), this.host.requestUpdate();
1437
+ this.stats = Ho(this.stats, this.localStats), g.debug("Stats updated - remote: ", this.stats), g.debug("Stats updated - local: ", this.localStats), this.persistLocalStats(), this.host.requestUpdate();
1438
1438
  }
1439
1439
  async markStatsAsSubmitted() {
1440
- this.localStats.submitted = (/* @__PURE__ */ new Date()).toISOString(), this.prevLocalStats = { ...this.localStats }, await this.persistLocalStats(), this.host.requestUpdate();
1440
+ this.localStats.submitted = (/* @__PURE__ */ new Date()).toISOString(), await this.persistLocalStats(), this.host.requestUpdate();
1441
1441
  }
1442
1442
  async submitStats() {
1443
1443
  if (!this.hasLocalStats() && !this.hasInteracted)
1444
1444
  throw g.warn("No local stats to submit"), new Error("No local stats to submit");
1445
- const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await xe(), s = this.localStats.sum, i = Object.keys(this.localStats.breakdown || {}), a = this.prevLocalStats.sum, l = Object.keys(this.prevLocalStats.breakdown || {});
1445
+ const t = this.host, o = Math.floor(Date.now() / 1e3).toString(), r = await xe(), s = this.localStats.sum, i = Object.keys(this.localStats.breakdown || {});
1446
1446
  this.isSubmitting = !0, this.host.requestUpdate();
1447
- const n = {
1447
+ const a = {
1448
1448
  sessionId: r,
1449
1449
  widgetId: t.widgetId,
1450
1450
  widgetName: t.name,
@@ -1452,19 +1452,17 @@ class Zo {
1452
1452
  url: window.location.href,
1453
1453
  numericValue: s,
1454
1454
  textValues: i,
1455
- prevNumericValue: a,
1456
- prevTextValues: l,
1457
1455
  metadata: t.metadata,
1458
1456
  timestamp: o
1459
- }, d = Yo(JSON.stringify(n), o);
1457
+ }, l = Yo(JSON.stringify(a), o);
1460
1458
  try {
1461
- await this.sendStats({ ...n, hash: d }), await this.markStatsAsSubmitted(), this.dispatchSubmitEvent(n);
1462
- } catch (p) {
1463
- g.warn("Failed to send stats event", p);
1459
+ await this.sendStats({ ...a, hash: l }), await this.markStatsAsSubmitted(), this.dispatchSubmitEvent(a);
1460
+ } catch (n) {
1461
+ g.warn("Failed to send stats event", n);
1464
1462
  } finally {
1465
1463
  this.isSubmitting = !1, this.host.requestUpdate();
1466
1464
  }
1467
- return n;
1465
+ return a;
1468
1466
  }
1469
1467
  async sendStats(t) {
1470
1468
  const o = this.host, r = this.getWidgetIdentifier();
@@ -1571,6 +1569,23 @@ class Zo {
1571
1569
  });
1572
1570
  o.dispatchEvent(r), g.debug("Dispatched submit event", t);
1573
1571
  }
1572
+ /**
1573
+ * Dispatches an 'init' CustomEvent on the host element
1574
+ * This event fires once after data has loaded and the widget has rendered
1575
+ */
1576
+ dispatchInitEvent() {
1577
+ const t = this.host, o = new CustomEvent("init", {
1578
+ detail: {
1579
+ widgetId: t.widgetId,
1580
+ widgetName: t.name,
1581
+ widgetType: t.type,
1582
+ stats: this.stats
1583
+ },
1584
+ bubbles: !0,
1585
+ composed: !0
1586
+ });
1587
+ t.dispatchEvent(o), g.debug("Dispatched init event");
1588
+ }
1574
1589
  hasLocalStats() {
1575
1590
  var t;
1576
1591
  return ((t = this.localStats) == null ? void 0 : t.count) > 0;
@@ -1758,7 +1773,7 @@ const yt = {
1758
1773
  mobile: "480px",
1759
1774
  tablet: "768px",
1760
1775
  desktop: "1024px"
1761
- }, Qt = class Qt extends D {
1776
+ }, Qt = class Qt extends N {
1762
1777
  constructor() {
1763
1778
  super(...arguments), this.dataController = new Zo(this), this.displayController = new Xo(this, this.dataController), this.hasEditButton = !0, this.showStats = "never", this.showChart = !1, this.initialized = !1, this.ariaLabel = null, this.minContrast = Le.AA_NORMAL, this.options = [], this.questionPosition = "top", this.statsText = "{count} votes", this.buttonText = "Submit", this.buttonRadius = "sm", this.multiple = !1, this.inline = !1, this.readonly = !1, this.handleEditToggleKeyDown = (t) => {
1764
1779
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.handleEnterEditMode());
@@ -1975,7 +1990,7 @@ const yt = {
1975
1990
  }
1976
1991
  };
1977
1992
  Qt.styles = [
1978
- B`
1993
+ R`
1979
1994
  :host {
1980
1995
  /* Default values for CSS variables - can be overridden by external :root or parent definitions */
1981
1996
  --default-font-size-base: 1rem;
@@ -2161,7 +2176,7 @@ v([
2161
2176
  v([
2162
2177
  f({ type: Boolean, reflect: !0 })
2163
2178
  ], m.prototype, "readonly");
2164
- const er = B`
2179
+ const er = R`
2165
2180
  /* CSS variables inherit from parent - defaults are specified at usage sites */
2166
2181
 
2167
2182
  .pc-body {
@@ -2612,7 +2627,7 @@ const er = B`
2612
2627
  animation: none;
2613
2628
  }
2614
2629
  }
2615
- `, _t = B`
2630
+ `, _t = R`
2616
2631
  /* Default values for CSS variables - can be overridden by external :root or parent definitions */
2617
2632
  :host {
2618
2633
  --default-primary-color: #2196f3;
@@ -3331,7 +3346,7 @@ const er = B`
3331
3346
  opacity: 1;
3332
3347
  }
3333
3348
  }
3334
- `, or = B`
3349
+ `, or = R`
3335
3350
  :host {
3336
3351
  --popover-bg: light-dark(#ffffff, #1a1a1a);
3337
3352
  --popover-border: light-dark(#e0e0e0, #333333);
@@ -3453,12 +3468,12 @@ const er = B`
3453
3468
  max-width: 100%;
3454
3469
  }
3455
3470
  `;
3456
- var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, V = (e, t, o, r) => {
3471
+ var rr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, B = (e, t, o, r) => {
3457
3472
  for (var s = r > 1 ? void 0 : r ? sr(t, o) : t, i = e.length - 1, a; i >= 0; i--)
3458
3473
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3459
3474
  return r && s && rr(t, o, s), s;
3460
3475
  };
3461
- let _ = class extends D {
3476
+ let _ = class extends N {
3462
3477
  constructor() {
3463
3478
  super(...arguments), this.open = !1, this.position = "auto", this.isClosing = !1, this.computedPosition = "bottom", this.popoverStyles = {}, this.arrowStyles = {}, this.updatePosition = () => {
3464
3479
  var h;
@@ -3548,34 +3563,34 @@ let _ = class extends D {
3548
3563
  }
3549
3564
  };
3550
3565
  _.styles = [or];
3551
- V([
3566
+ B([
3552
3567
  f({ type: Boolean, reflect: !0 })
3553
3568
  ], _.prototype, "open", 2);
3554
- V([
3569
+ B([
3555
3570
  f({ type: String })
3556
3571
  ], _.prototype, "position", 2);
3557
- V([
3572
+ B([
3558
3573
  f({ attribute: !1 })
3559
3574
  ], _.prototype, "anchor", 2);
3560
- V([
3575
+ B([
3561
3576
  k()
3562
3577
  ], _.prototype, "isClosing", 2);
3563
- V([
3578
+ B([
3564
3579
  k()
3565
3580
  ], _.prototype, "computedPosition", 2);
3566
- V([
3581
+ B([
3567
3582
  k()
3568
3583
  ], _.prototype, "popoverStyles", 2);
3569
- V([
3584
+ B([
3570
3585
  k()
3571
3586
  ], _.prototype, "arrowStyles", 2);
3572
- V([
3587
+ B([
3573
3588
  ft(".pc-popover")
3574
3589
  ], _.prototype, "popoverElement", 2);
3575
- _ = V([
3590
+ _ = B([
3576
3591
  F("pc-popover")
3577
3592
  ], _);
3578
- const ir = B`
3593
+ const ir = R`
3579
3594
  :host {
3580
3595
  --sheet-bg: light-dark(#ffffff, #1a1a1a);
3581
3596
  --sheet-border: light-dark(#e0e0e0, #333333);
@@ -3693,7 +3708,7 @@ var ar = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Q = (e, t,
3693
3708
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3694
3709
  return r && s && ar(t, o, s), s;
3695
3710
  };
3696
- let R = class extends D {
3711
+ let D = class extends N {
3697
3712
  constructor() {
3698
3713
  super(...arguments), this.open = !1, this.dragToClose = !0, this.isClosing = !1, this.isDragging = !1, this.dragOffset = 0, this.dragStartY = 0, this.sheetHeight = 0, this.handleKeyDown = (e) => {
3699
3714
  if (e.key === "Escape" && this.open && (e.preventDefault(), e.stopPropagation(), this.close()), e.key === "Tab" && this.open && this.sheetElement) {
@@ -3787,35 +3802,35 @@ let R = class extends D {
3787
3802
  `;
3788
3803
  }
3789
3804
  };
3790
- R.styles = [ir];
3805
+ D.styles = [ir];
3791
3806
  Q([
3792
3807
  f({ type: Boolean, reflect: !0 })
3793
- ], R.prototype, "open", 2);
3808
+ ], D.prototype, "open", 2);
3794
3809
  Q([
3795
3810
  f({ type: Boolean, attribute: "drag-to-close" })
3796
- ], R.prototype, "dragToClose", 2);
3811
+ ], D.prototype, "dragToClose", 2);
3797
3812
  Q([
3798
3813
  k()
3799
- ], R.prototype, "isClosing", 2);
3814
+ ], D.prototype, "isClosing", 2);
3800
3815
  Q([
3801
3816
  k()
3802
- ], R.prototype, "isDragging", 2);
3817
+ ], D.prototype, "isDragging", 2);
3803
3818
  Q([
3804
3819
  k()
3805
- ], R.prototype, "dragOffset", 2);
3820
+ ], D.prototype, "dragOffset", 2);
3806
3821
  Q([
3807
3822
  ft(".pc-bottom-sheet")
3808
- ], R.prototype, "sheetElement", 2);
3809
- R = Q([
3823
+ ], D.prototype, "sheetElement", 2);
3824
+ D = Q([
3810
3825
  F("pc-bottom-sheet")
3811
- ], R);
3826
+ ], D);
3812
3827
  var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, gt = (e, t, o, r) => {
3813
3828
  for (var s = r > 1 ? void 0 : r ? cr(t, o) : t, i = e.length - 1, a; i >= 0; i--)
3814
3829
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
3815
3830
  return r && s && lr(t, o, s), s;
3816
3831
  };
3817
3832
  const dr = 768;
3818
- let Z = class extends D {
3833
+ let Z = class extends N {
3819
3834
  constructor() {
3820
3835
  super(...arguments), this.open = !1, this.position = "auto", this.isMobile = !1, this.handleMediaChange = (e) => {
3821
3836
  this.isMobile = e.matches;
@@ -3850,7 +3865,7 @@ let Z = class extends D {
3850
3865
  `;
3851
3866
  }
3852
3867
  };
3853
- Z.styles = B`
3868
+ Z.styles = R`
3854
3869
  :host {
3855
3870
  display: contents;
3856
3871
  }
@@ -4256,7 +4271,7 @@ Y([
4256
4271
  I = Y([
4257
4272
  F("pc-nps")
4258
4273
  ], I);
4259
- const hr = B`
4274
+ const hr = R`
4260
4275
  /* CSS variables inherit from parent - defaults are specified at usage sites */
4261
4276
 
4262
4277
  .pc-container {
@@ -5077,7 +5092,7 @@ mt([
5077
5092
  X = mt([
5078
5093
  F("pc-poll")
5079
5094
  ], X);
5080
- const mr = B`
5095
+ const mr = R`
5081
5096
  /* CSS variables inherit from parent - defaults are specified at usage sites */
5082
5097
 
5083
5098
  .pc-section {
@@ -5803,7 +5818,7 @@ it([
5803
5818
  H = it([
5804
5819
  F("pc-stars")
5805
5820
  ], H);
5806
- const wr = B`
5821
+ const wr = R`
5807
5822
  /* Adjust stats text for reactions */
5808
5823
  .pc-stats-text {
5809
5824
  font-size: var(--pc-font-size-small, var(--default-font-size-small));
@@ -6338,7 +6353,7 @@ var Er = Object.defineProperty, Ar = Object.getOwnPropertyDescriptor, vt = (e, t
6338
6353
  (a = e[i]) && (s = (r ? a(t, o, s) : a(s)) || s);
6339
6354
  return r && s && Er(t, o, s), s;
6340
6355
  };
6341
- let J = class extends D {
6356
+ let J = class extends N {
6342
6357
  constructor() {
6343
6358
  super(), this.options = "", this.parsedOptions = [], J.injectGlobalStyle();
6344
6359
  }