builder-settings-types 0.0.378 → 0.0.379

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.
@@ -280,9 +280,9 @@ const dt = (c, t, e) => {
280
280
  o = p.left, a = p.top, document.addEventListener("mousemove", r), document.addEventListener("mouseup", h), document.body.style.userSelect = "none";
281
281
  }, r = (d) => {
282
282
  if (!i) return;
283
- const p = d.clientX - s, u = d.clientY - n, f = window.innerWidth, m = window.innerHeight, g = t.offsetWidth, C = t.offsetHeight;
283
+ const p = d.clientX - s, u = d.clientY - n, C = window.innerWidth, m = window.innerHeight, g = t.offsetWidth, f = t.offsetHeight;
284
284
  let v = o + p, y = a + u;
285
- v = Math.max(8, Math.min(f - g - 8, v)), y = Math.max(8, Math.min(m - C - 8, y)), t.style.left = `${v}px`, t.style.top = `${y}px`, e == null || e(v, y);
285
+ v = Math.max(8, Math.min(C - g - 8, v)), y = Math.max(8, Math.min(m - f - 8, y)), t.style.left = `${v}px`, t.style.top = `${y}px`, e == null || e(v, y);
286
286
  }, h = () => {
287
287
  i = !1, document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", h), document.body.style.userSelect = "";
288
288
  };
@@ -766,27 +766,27 @@ class Zt {
766
766
  p.className = "color-picker-opacity", this.opacitySlider = p;
767
767
  const u = document.createElement("div");
768
768
  u.className = "color-picker-opacity-marker", this.opacityMarker = u, p.appendChild(u), r.appendChild(h), r.appendChild(p), a.appendChild(l), a.appendChild(r);
769
- const f = pt((E) => {
769
+ const C = pt((E) => {
770
770
  var L;
771
771
  this.setColor(E), (L = this.onChange) == null || L.call(this, E, this.currentOpacity);
772
772
  }, this.recentScope);
773
- this.recentSectionRefresh = f.refresh;
773
+ this.recentSectionRefresh = C.refresh;
774
774
  const m = document.createElement("div");
775
775
  m.className = "color-picker-format-section";
776
776
  const g = document.createElement("select");
777
777
  g.className = "color-picker-format-select", this.select = g;
778
- const C = document.createElement("option");
779
- C.value = "hex", C.textContent = "HEX";
778
+ const f = document.createElement("option");
779
+ f.value = "hex", f.textContent = "HEX";
780
780
  const v = document.createElement("option");
781
781
  v.value = "rgb", v.textContent = "RGB";
782
782
  const y = document.createElement("option");
783
- y.value = "hsl", y.textContent = "HSL", g.appendChild(C), g.appendChild(v), g.appendChild(y);
783
+ y.value = "hsl", y.textContent = "HSL", g.appendChild(f), g.appendChild(v), g.appendChild(y);
784
784
  const b = document.createElement("input");
785
785
  b.type = "text", b.className = "color-picker-color-input", b.value = this.currentColor, this.input = b;
786
786
  const k = document.createElement("div");
787
787
  k.className = "color-picker-input-container";
788
788
  const x = document.createElement("button");
789
- return x.className = "color-picker-copy-inside", x.textContent = "Copy", k.appendChild(b), k.appendChild(x), m.appendChild(g), m.appendChild(k), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(f.container), t.appendChild(m), t.addEventListener("click", (E) => E.stopPropagation()), this.bind(n, h, p, b, g, x, l), t;
789
+ return x.className = "color-picker-copy-inside", x.textContent = "Copy", k.appendChild(b), k.appendChild(x), m.appendChild(g), m.appendChild(k), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(C.container), t.appendChild(m), t.addEventListener("click", (E) => E.stopPropagation()), this.bind(n, h, p, b, g, x, l), t;
790
790
  }
791
791
  createBackdrop() {
792
792
  const t = document.createElement("div");
@@ -795,37 +795,37 @@ class Zt {
795
795
  bind(t, e, i, s, n, o, a) {
796
796
  const l = (d) => {
797
797
  var v;
798
- const p = t.getBoundingClientRect(), u = Math.max(0, Math.min(1, (d.clientX - p.left) / p.width)), f = Math.max(0, Math.min(1, (d.clientY - p.top) / p.height));
799
- this.colorMarker.style.left = `${u * 100}%`, this.colorMarker.style.top = `${f * 100}%`;
800
- const g = this.parsePercentage(this.hueMarker.style.left || "0%") * 360, C = Z(g, u, 1 - f);
801
- this.currentColor = C, this.syncInput(), this.updateOpacityBg(), (v = this.onChange) == null || v.call(this, C, this.currentOpacity);
798
+ const p = t.getBoundingClientRect(), u = Math.max(0, Math.min(1, (d.clientX - p.left) / p.width)), C = Math.max(0, Math.min(1, (d.clientY - p.top) / p.height));
799
+ this.colorMarker.style.left = `${u * 100}%`, this.colorMarker.style.top = `${C * 100}%`;
800
+ const g = this.parsePercentage(this.hueMarker.style.left || "0%") * 360, f = Z(g, u, 1 - C);
801
+ this.currentColor = f, this.syncInput(), this.updateOpacityBg(), (v = this.onChange) == null || v.call(this, f, this.currentOpacity);
802
802
  }, r = (d) => {
803
803
  var v;
804
804
  const p = e.getBoundingClientRect();
805
805
  let u = Math.max(0, Math.min(1, (d.clientX - p.left) / p.width));
806
806
  this.hueMarker.style.left = `${u * 100}%`;
807
- const f = u * 360, m = this.parsePercentage(this.colorMarker.style.left || "0%"), g = this.parsePercentage(this.colorMarker.style.top || "0%"), C = Z(f, m, 1 - g);
808
- this.currentColor = C, this.colorArea.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${f}, 100%, 50%))`, this.syncInput(), this.updateOpacityBg(), (v = this.onChange) == null || v.call(this, C, this.currentOpacity);
807
+ const C = u * 360, m = this.parsePercentage(this.colorMarker.style.left || "0%"), g = this.parsePercentage(this.colorMarker.style.top || "0%"), f = Z(C, m, 1 - g);
808
+ this.currentColor = f, this.colorArea.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${C}, 100%, 50%))`, this.syncInput(), this.updateOpacityBg(), (v = this.onChange) == null || v.call(this, f, this.currentOpacity);
809
809
  }, h = (d) => {
810
- var f;
810
+ var C;
811
811
  const p = i.getBoundingClientRect(), u = Math.max(0, Math.min(1, (d.clientX - p.left) / p.width));
812
- this.opacityMarker.style.left = `${u * 100}%`, this.currentOpacity = Math.round(u * 100), (f = this.onChange) == null || f.call(this, this.currentColor, this.currentOpacity);
812
+ this.opacityMarker.style.left = `${u * 100}%`, this.currentOpacity = Math.round(u * 100), (C = this.onChange) == null || C.call(this, this.currentColor, this.currentOpacity);
813
813
  };
814
814
  t.addEventListener("mousedown", (d) => {
815
815
  d.preventDefault(), l(d);
816
- const p = (f) => l(f), u = () => {
816
+ const p = (C) => l(C), u = () => {
817
817
  document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", u);
818
818
  };
819
819
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", u);
820
820
  }), e.addEventListener("mousedown", (d) => {
821
821
  d.preventDefault(), r(d);
822
- const p = (f) => r(f), u = () => {
822
+ const p = (C) => r(C), u = () => {
823
823
  document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", u);
824
824
  };
825
825
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", u);
826
826
  }), i.addEventListener("mousedown", (d) => {
827
827
  d.preventDefault(), h(d);
828
- const p = (f) => h(f), u = () => {
828
+ const p = (C) => h(C), u = () => {
829
829
  document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", u);
830
830
  };
831
831
  document.addEventListener("mousemove", p), document.addEventListener("mouseup", u);
@@ -907,11 +907,11 @@ class Zt {
907
907
  const { h: s, s: n, v: o } = q(t);
908
908
  this.hueMarker.style.left = `${s / 360 * 100}%`, this.colorMarker.style.left = `${n * 100}%`, this.colorMarker.style.top = `${(1 - o) * 100}%`, this.colorArea.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${s}, 100%, 50%))`, this.updateOpacityBg(), this.opacityMarker.style.left = `${this.currentOpacity}%`, (y = this.recentSectionRefresh) == null || y.call(this), this.isOpen = !0, this.backdrop.style.display = "block", this.backdrop.parentElement || document.body.appendChild(this.backdrop), this.element.style.display = "block", this.element.style.position = "fixed", this.element.style.zIndex = "10002", this.element.style.left = "-9999px", this.element.style.top = "0px", this.element.parentElement || document.body.appendChild(this.element);
909
909
  const a = this.element.offsetWidth, l = this.element.offsetHeight, r = e.getBoundingClientRect(), h = window.innerWidth, d = window.innerHeight, p = 16;
910
- let u = r.right + 8, f = r.top;
910
+ let u = r.right + 8, C = r.top;
911
911
  const m = h - r.right, g = r.left;
912
912
  m >= a + p ? u = r.right + 8 : g >= a + p ? u = r.left - a - 8 : u = Math.max(p, (h - a) / 2);
913
- const C = d - r.bottom, v = r.top;
914
- C >= l + p ? f = r.bottom + 8 : v >= l + p ? f = r.top - l - 8 : C > v ? (f = r.bottom + 8, f + l > d - p && (f = d - l - p)) : (f = r.top - l - 8, f < p && (f = p)), this.element.style.left = `${u}px`, this.element.style.top = `${f}px`;
913
+ const f = d - r.bottom, v = r.top;
914
+ f >= l + p ? C = r.bottom + 8 : v >= l + p ? C = r.top - l - 8 : f > v ? (C = r.bottom + 8, C + l > d - p && (C = d - l - p)) : (C = r.top - l - 8, C < p && (C = p)), this.element.style.left = `${u}px`, this.element.style.top = `${C}px`;
915
915
  }
916
916
  close(t) {
917
917
  var e;
@@ -972,38 +972,38 @@ class Jt {
972
972
  p.className = "color-picker-format-section embedded";
973
973
  const u = document.createElement("select");
974
974
  u.className = "color-picker-format-select", this.select = u;
975
- const f = document.createElement("option");
976
- f.value = "hex", f.textContent = "HEX";
975
+ const C = document.createElement("option");
976
+ C.value = "hex", C.textContent = "HEX";
977
977
  const m = document.createElement("option");
978
978
  m.value = "rgb", m.textContent = "RGB";
979
979
  const g = document.createElement("option");
980
- g.value = "hsl", g.textContent = "HSL", u.appendChild(f), u.appendChild(m), u.appendChild(g);
981
- const C = document.createElement("input");
982
- C.type = "text", C.className = "color-picker-color-input", this.input = C;
980
+ g.value = "hsl", g.textContent = "HSL", u.appendChild(C), u.appendChild(m), u.appendChild(g);
981
+ const f = document.createElement("input");
982
+ f.type = "text", f.className = "color-picker-color-input", this.input = f;
983
983
  const v = document.createElement("div");
984
984
  v.className = "color-picker-input-container";
985
985
  const y = document.createElement("button");
986
- return y.className = "color-picker-copy-inside", y.textContent = "Copy", v.appendChild(C), v.appendChild(y), p.appendChild(u), p.appendChild(v), t.appendChild(e), t.appendChild(s), t.appendChild(p), t.appendChild(d.container), this.bind(e, a, r, C, u, y, n), t;
986
+ return y.className = "color-picker-copy-inside", y.textContent = "Copy", v.appendChild(f), v.appendChild(y), p.appendChild(u), p.appendChild(v), t.appendChild(e), t.appendChild(s), t.appendChild(p), t.appendChild(d.container), this.bind(e, a, r, f, u, y, n), t;
987
987
  }
988
988
  bind(t, e, i, s, n, o, a) {
989
989
  const l = (p, u) => {
990
- const f = u || t.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - f.left) / f.width)), g = Math.max(0, Math.min(1, (p.clientY - f.top) / f.height));
990
+ const C = u || t.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - C.left) / C.width)), g = Math.max(0, Math.min(1, (p.clientY - C.top) / C.height));
991
991
  this.colorMarker.style.left = `${m * 100}%`, this.colorMarker.style.top = `${g * 100}%`;
992
992
  const v = this.parsePercentage(this.hueMarker.style.left || "0%") * 360, y = Z(v, m, 1 - g);
993
993
  this.currentColor = y, this.syncInput(), this.updateOpacityBg(), this.queueChange();
994
994
  }, r = (p, u) => {
995
- const f = u || e.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - f.left) / f.width));
995
+ const C = u || e.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - C.left) / C.width));
996
996
  this.hueMarker.style.left = `${m * 100}%`;
997
- const g = m * 360, C = this.parsePercentage(this.colorMarker.style.left || "0%"), v = this.parsePercentage(this.colorMarker.style.top || "0%"), y = Z(g, C, 1 - v);
997
+ const g = m * 360, f = this.parsePercentage(this.colorMarker.style.left || "0%"), v = this.parsePercentage(this.colorMarker.style.top || "0%"), y = Z(g, f, 1 - v);
998
998
  this.currentColor = y, this.colorArea.style.background = `linear-gradient(to top, #000, transparent),
999
999
  linear-gradient(to right, #fff, hsl(${g}, 100%, 50%))`, this.syncInput(), this.updateOpacityBg(), this.queueChange();
1000
1000
  }, h = (p, u) => {
1001
- const f = u || i.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - f.left) / f.width));
1001
+ const C = u || i.getBoundingClientRect(), m = Math.max(0, Math.min(1, (p.clientX - C.left) / C.width));
1002
1002
  this.opacityMarker.style.left = `${m * 100}%`, this.currentOpacity = this.clampOpacity(m * 100), this.queueChange();
1003
- }, d = (p, u, f) => {
1004
- p.preventDefault(), this.isDragging = !0, this.cachedRect = f.getBoundingClientRect(), u(p, this.cachedRect);
1003
+ }, d = (p, u, C) => {
1004
+ p.preventDefault(), this.isDragging = !0, this.cachedRect = C.getBoundingClientRect(), u(p, this.cachedRect);
1005
1005
  let m = null, g;
1006
- const C = () => {
1006
+ const f = () => {
1007
1007
  this.dragRafId === void 0 && (this.dragRafId = window.requestAnimationFrame(() => {
1008
1008
  this.dragRafId = void 0, m && this.cachedRect && u(m, this.cachedRect);
1009
1009
  }));
@@ -1015,7 +1015,7 @@ class Jt {
1015
1015
  v();
1016
1016
  return;
1017
1017
  }
1018
- m = y, C();
1018
+ m = y, f();
1019
1019
  }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", v), window.addEventListener("blur", v);
1020
1020
  };
1021
1021
  t.addEventListener("mousedown", (p) => {
@@ -1443,11 +1443,11 @@ const P = class P extends w {
1443
1443
  const u = w.GlobalVariableGroups || [
1444
1444
  { title: "Global Colors", keys: ["primary", "secondary", "tertiary", "accent"] },
1445
1445
  { title: "Text Color", keys: ["text-dark", "text-light"] }
1446
- ], f = this.globalSearchQuery.toLowerCase();
1446
+ ], C = this.globalSearchQuery.toLowerCase();
1447
1447
  let m;
1448
1448
  this.globalLayoutMode === "list" ? (m = document.createElement("div"), m.className = "global-colors-list") : (m = document.createElement("div"), m.className = "global-colors-grid"), d.appendChild(m), u.forEach((g) => {
1449
- const C = Object.entries(p).filter(([v]) => !g.keys.includes(v) && g.title !== "Global Colors" ? !1 : g.keys.includes(v) && v.toLowerCase().includes(f));
1450
- C.length !== 0 && C.forEach(([v, y]) => {
1449
+ const f = Object.entries(p).filter(([v]) => !g.keys.includes(v) && g.title !== "Global Colors" ? !1 : g.keys.includes(v) && v.toLowerCase().includes(C));
1450
+ f.length !== 0 && f.forEach(([v, y]) => {
1451
1451
  if (this.globalLayoutMode === "list") {
1452
1452
  const b = document.createElement("div");
1453
1453
  b.className = "global-color-row";
@@ -1524,8 +1524,8 @@ const P = class P extends w {
1524
1524
  p.value = "linear", p.textContent = "Linear";
1525
1525
  const u = document.createElement("option");
1526
1526
  u.value = "radial", u.textContent = "Radial", d.appendChild(p), d.appendChild(u), d.value = this.value.type === "radial" ? "radial" : "linear", e = document.createElement("input"), e.type = "text", e.inputMode = "numeric", e.className = "gradient-degree-input", e.value = `${this.value.angle ?? 90}°`, e.style.width = "75px", e.style.textAlign = "center", (!this.value.angle || this.value.stops.length < 2) && (this.value.angle = 90, e.value = "90°");
1527
- const f = document.createElement("button");
1528
- f.type = "button", f.className = "gradient-flip-btn", f.innerHTML = zt, d.addEventListener("change", () => {
1527
+ const C = document.createElement("button");
1528
+ C.type = "button", C.className = "gradient-flip-btn", C.innerHTML = zt, d.addEventListener("change", () => {
1529
1529
  this.clearGlobalBindingForCustomChange(), this.switchType(d.value === "radial" ? "radial" : "linear", !0), e && this.updateDegreeVisibility(e);
1530
1530
  }), e.addEventListener("focus", (m) => {
1531
1531
  const g = m.target;
@@ -1538,13 +1538,13 @@ const P = class P extends w {
1538
1538
  var v;
1539
1539
  this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null);
1540
1540
  const g = m.target;
1541
- let C = parseInt(g.value);
1542
- Number.isNaN(C) && (C = ((v = this.value) == null ? void 0 : v.angle) ?? 0), C = Math.max(0, Math.min(360, C)), this.value && (this.value.angle = C), g.value = `${C}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
1543
- }), f.addEventListener("click", () => {
1541
+ let f = parseInt(g.value);
1542
+ Number.isNaN(f) && (f = ((v = this.value) == null ? void 0 : v.angle) ?? 0), f = Math.max(0, Math.min(360, f)), this.value && (this.value.angle = f), g.value = `${f}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
1543
+ }), C.addEventListener("click", () => {
1544
1544
  this.clearGlobalBindingForCustomChange(), !(!this.value || !this.value.stops) && (this.value.stops.forEach((m) => {
1545
1545
  m.position = 100 - m.position;
1546
1546
  }), this.value.stops.sort((m, g) => m.position - g.position), this.updateGradientPreview(i), this.createHandles(s, i), this.updateStopsList(l), this.updateUI(), this.triggerChange());
1547
- }), h.appendChild(d), h.appendChild(e), h.appendChild(f), t.appendChild(h), this.updateDegreeVisibility(e);
1547
+ }), h.appendChild(d), h.appendChild(e), h.appendChild(C), t.appendChild(h), this.updateDegreeVisibility(e);
1548
1548
  }
1549
1549
  const i = document.createElement("div");
1550
1550
  i.className = "gradient-preview", this.updateGradientPreview(i);
@@ -1554,8 +1554,8 @@ const P = class P extends w {
1554
1554
  const d = h.target;
1555
1555
  if (d.classList.contains("gstop-handle") || d.classList.contains("gstop-chip"))
1556
1556
  return;
1557
- const p = i.getBoundingClientRect(), f = (h.clientX - p.left) / p.width * 100;
1558
- this.clearGlobalBindingForCustomChange(), this.addStopAtPosition(f), this.updateStopsList(), this.updateGradientPreview(i), this.createHandles(s, i), this.updateUI(), ((m = document.activeElement) == null ? void 0 : m.tagName) !== "INPUT" && this.repositionPopover(), this.triggerChange();
1557
+ const p = i.getBoundingClientRect(), C = (h.clientX - p.left) / p.width * 100;
1558
+ this.clearGlobalBindingForCustomChange(), this.addStopAtPosition(C), this.updateStopsList(), this.updateGradientPreview(i), this.createHandles(s, i), this.updateUI(), ((m = document.activeElement) == null ? void 0 : m.tagName) !== "INPUT" && this.repositionPopover(), this.triggerChange();
1559
1559
  });
1560
1560
  const n = document.createElement("div");
1561
1561
  n.className = "gradient-stops-header";
@@ -1604,31 +1604,31 @@ const P = class P extends w {
1604
1604
  o.style.backgroundColor = a, n.appendChild(o);
1605
1605
  let l = !1, r = !1, h = 0, d = 0;
1606
1606
  const p = (m) => {
1607
- l = !0, r = !1, h = m.clientX, d = this.value.stops[s].position, n.classList.add("selected"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", f), m.preventDefault(), m.stopPropagation();
1607
+ l = !0, r = !1, h = m.clientX, d = this.value.stops[s].position, n.classList.add("selected"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", C), m.preventDefault(), m.stopPropagation();
1608
1608
  }, u = (m) => {
1609
1609
  if (!l || !this.value) return;
1610
1610
  const g = m.clientX - h;
1611
1611
  if (Math.abs(g) > 3 && (r = !0), r) {
1612
1612
  this.clearGlobalBindingForCustomChange();
1613
- const C = e.getBoundingClientRect();
1614
- let v = d + g / C.width * 100;
1613
+ const f = e.getBoundingClientRect();
1614
+ let v = d + g / f.width * 100;
1615
1615
  v = Math.max(0, Math.min(100, v)), this.value.stops[s].position = Math.round(v), n.style.left = `${v}%`, this.updateGradientPreview();
1616
1616
  }
1617
- }, f = (m) => {
1617
+ }, C = (m) => {
1618
1618
  var g;
1619
1619
  if (l)
1620
- if (l = !1, n.classList.remove("selected"), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", f), r)
1621
- this.value && (this.value.stops.sort((C, v) => C.position - v.position), this.createHandles(t, e), this.updateStopsList()), this.updateUI(), this.triggerChange();
1620
+ if (l = !1, n.classList.remove("selected"), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", C), r)
1621
+ this.value && (this.value.stops.sort((f, v) => f.position - v.position), this.createHandles(t, e), this.updateStopsList()), this.updateUI(), this.triggerChange();
1622
1622
  else {
1623
1623
  m.stopPropagation();
1624
- const C = (g = this.value) == null ? void 0 : g.stops[s];
1625
- C && setTimeout(() => {
1624
+ const f = (g = this.value) == null ? void 0 : g.stops[s];
1625
+ f && setTimeout(() => {
1626
1626
  const v = this.getSharedStopColorPicker();
1627
1627
  v.getIsOpen() && v.close(!1), this.colorPickerStopIndex = s, v.setOnChange((b, k) => {
1628
1628
  this.clearGlobalBindingForCustomChange(), this.value && this.value.stops[s] && (this.value.stops[s].color = b, k !== void 0 && (this.value.stops[s].opacity = k), o.style.backgroundColor = b, this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), this.triggerChange());
1629
1629
  });
1630
- const y = this.resolveGlobalVarColor(C.color);
1631
- v.open(y, o, C.opacity ?? 100);
1630
+ const y = this.resolveGlobalVarColor(f.color);
1631
+ v.open(y, o, f.opacity ?? 100);
1632
1632
  }, 0);
1633
1633
  }
1634
1634
  };
@@ -1654,24 +1654,24 @@ const P = class P extends w {
1654
1654
  p.type = "text", p.className = "gstop-color-input", p.value = h.replace("#", "").toUpperCase();
1655
1655
  const u = document.createElement("button");
1656
1656
  u.type = "button", u.className = "gstop-color-copy", u.textContent = "Copy", r.appendChild(d), r.appendChild(p), r.appendChild(u);
1657
- const f = document.createElement("button");
1658
- f.type = "button", f.className = "gstop-del", f.innerHTML = Wt, f.disabled = (((k = (b = this.value) == null ? void 0 : b.stops) == null ? void 0 : k.length) || 0) <= 2, o.appendChild(a), o.appendChild(r), o.appendChild(f), e.appendChild(o);
1657
+ const C = document.createElement("button");
1658
+ C.type = "button", C.className = "gstop-del", C.innerHTML = Wt, C.disabled = (((k = (b = this.value) == null ? void 0 : b.stops) == null ? void 0 : k.length) || 0) <= 2, o.appendChild(a), o.appendChild(r), o.appendChild(C), e.appendChild(o);
1659
1659
  const m = document.createElement("span");
1660
1660
  m.className = "gstop-opacity-label", m.textContent = "Opacity";
1661
1661
  const g = document.createElement("div");
1662
1662
  g.className = "gstop-opacity-group";
1663
- const C = document.createElement("input");
1664
- C.type = "range", C.className = "gstop-opacity-slider", C.min = "0", C.max = "100", C.value = String(s.opacity ?? 100);
1663
+ const f = document.createElement("input");
1664
+ f.type = "range", f.className = "gstop-opacity-slider", f.min = "0", f.max = "100", f.value = String(s.opacity ?? 100);
1665
1665
  const v = N(h);
1666
- C.style.setProperty("--slider-color", `rgb(${v.r}, ${v.g}, ${v.b})`), C.style.setProperty("--slider-color-transparent", `rgba(${v.r}, ${v.g}, ${v.b}, 0)`);
1666
+ f.style.setProperty("--slider-color", `rgb(${v.r}, ${v.g}, ${v.b})`), f.style.setProperty("--slider-color-transparent", `rgba(${v.r}, ${v.g}, ${v.b}, 0)`);
1667
1667
  const y = document.createElement("span");
1668
- y.className = "gstop-opacity-value", y.textContent = `${s.opacity ?? 100}%`, g.appendChild(C), g.appendChild(y), p.addEventListener("click", (x) => {
1668
+ y.className = "gstop-opacity-value", y.textContent = `${s.opacity ?? 100}%`, g.appendChild(f), g.appendChild(y), p.addEventListener("click", (x) => {
1669
1669
  x.preventDefault(), x.stopPropagation();
1670
1670
  const E = this.getSharedStopColorPicker();
1671
1671
  E.getIsOpen() && E.close(!1), this.colorPickerStopIndex = n, E.setOnChange((S, G) => {
1672
- this.clearGlobalBindingForCustomChange(), p.value = S.replace("#", "").toUpperCase(), d.style.backgroundColor = S, this.value.stops[n].color = S, G !== void 0 && (this.value.stops[n].opacity = G, C.value = String(G), y.textContent = `${G}%`);
1672
+ this.clearGlobalBindingForCustomChange(), p.value = S.replace("#", "").toUpperCase(), d.style.backgroundColor = S, this.value.stops[n].color = S, G !== void 0 && (this.value.stops[n].opacity = G, f.value = String(G), y.textContent = `${G}%`);
1673
1673
  const W = N(S);
1674
- C.style.setProperty("--slider-color", `rgb(${W.r}, ${W.g}, ${W.b})`), C.style.setProperty("--slider-color-transparent", `rgba(${W.r}, ${W.g}, ${W.b}, 0)`), this.updateGradientPreview(), this.createHandles(
1674
+ f.style.setProperty("--slider-color", `rgb(${W.r}, ${W.g}, ${W.b})`), f.style.setProperty("--slider-color-transparent", `rgba(${W.r}, ${W.g}, ${W.b}, 0)`), this.updateGradientPreview(), this.createHandles(
1675
1675
  this.popoverEl.querySelector(".gradient-handles"),
1676
1676
  this.popoverEl.querySelector(".gradient-preview")
1677
1677
  ), this.updateUI(), this.triggerChange();
@@ -1684,7 +1684,7 @@ const P = class P extends w {
1684
1684
  if (/^#[0-9A-Fa-f]{6}$/.test(E)) {
1685
1685
  this.value.stops[n].color = E, d.style.backgroundColor = E;
1686
1686
  const L = N(E);
1687
- C.style.setProperty("--slider-color", `rgb(${L.r}, ${L.g}, ${L.b})`), C.style.setProperty("--slider-color-transparent", `rgba(${L.r}, ${L.g}, ${L.b}, 0)`), this.debouncedPreviewUpdate();
1687
+ f.style.setProperty("--slider-color", `rgb(${L.r}, ${L.g}, ${L.b})`), f.style.setProperty("--slider-color-transparent", `rgba(${L.r}, ${L.g}, ${L.b}, 0)`), this.debouncedPreviewUpdate();
1688
1688
  }
1689
1689
  }), p.addEventListener("blur", () => {
1690
1690
  this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null), this.updateGradientPreview(), this.updateUI(), this.triggerChange();
@@ -1717,17 +1717,17 @@ const P = class P extends w {
1717
1717
  this.popoverEl.querySelector(".gradient-handles"),
1718
1718
  this.popoverEl.querySelector(".gradient-preview")
1719
1719
  ), this.updateStopsList(), this.updateUI(), this.triggerChange();
1720
- }), f.addEventListener("click", () => {
1720
+ }), C.addEventListener("click", () => {
1721
1721
  var x, E;
1722
1722
  (this.value.stops.length || 0) <= 2 || ((x = this.sharedStopColorPicker) != null && x.getIsOpen() && this.colorPickerStopIndex === n ? (this.sharedStopColorPicker.close(!1), this.colorPickerStopIndex = null) : this.colorPickerStopIndex !== null && this.colorPickerStopIndex > n && this.colorPickerStopIndex--, this.clearGlobalBindingForCustomChange(), this.value.stops.splice(n, 1), this.createHandles(
1723
1723
  this.popoverEl.querySelector(".gradient-handles"),
1724
1724
  this.popoverEl.querySelector(".gradient-preview")
1725
1725
  ), this.updateStopsList(), this.updateGradientPreview(), this.updateUI(), ((E = document.activeElement) == null ? void 0 : E.tagName) !== "INPUT" && this.repositionPopover(), this.triggerChange());
1726
- }), C.addEventListener("input", () => {
1726
+ }), f.addEventListener("input", () => {
1727
1727
  this.clearGlobalBindingForCustomChange();
1728
- const x = parseInt(C.value, 10);
1728
+ const x = parseInt(f.value, 10);
1729
1729
  this.value.stops[n].opacity = Math.max(0, Math.min(100, x)), y.textContent = `${this.value.stops[n].opacity}%`, this.debouncedPreviewUpdate();
1730
- }), C.addEventListener("change", () => {
1730
+ }), f.addEventListener("change", () => {
1731
1731
  this.clearGlobalBindingForCustomChange(), this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null), this.updateGradientPreview(), this.updateUI(), this.triggerChange();
1732
1732
  });
1733
1733
  }));
@@ -1755,8 +1755,8 @@ const P = class P extends w {
1755
1755
  if (s === n || s.position === n.position)
1756
1756
  o = s.color, a = s.opacity ?? 100;
1757
1757
  else {
1758
- const r = (e - s.position) / (n.position - s.position), h = N(s.color), d = N(n.color), p = Math.round(h.r + (d.r - h.r) * r), u = Math.round(h.g + (d.g - h.g) * r), f = Math.round(h.b + (d.b - h.b) * r);
1759
- o = `#${p.toString(16).padStart(2, "0")}${u.toString(16).padStart(2, "0")}${f.toString(16).padStart(2, "0")}`.toUpperCase(), a = Math.round((s.opacity ?? 100) + ((n.opacity ?? 100) - (s.opacity ?? 100)) * r);
1758
+ const r = (e - s.position) / (n.position - s.position), h = N(s.color), d = N(n.color), p = Math.round(h.r + (d.r - h.r) * r), u = Math.round(h.g + (d.g - h.g) * r), C = Math.round(h.b + (d.b - h.b) * r);
1759
+ o = `#${p.toString(16).padStart(2, "0")}${u.toString(16).padStart(2, "0")}${C.toString(16).padStart(2, "0")}`.toUpperCase(), a = Math.round((s.opacity ?? 100) + ((n.opacity ?? 100) - (s.opacity ?? 100)) * r);
1760
1760
  }
1761
1761
  const l = {
1762
1762
  position: Math.round(e),
@@ -1795,8 +1795,8 @@ const P = class P extends w {
1795
1795
  let l = e.right + 8, r = e.top;
1796
1796
  const h = s - e.right, d = e.left, p = i + o;
1797
1797
  h < p && d > h + 100 && (l = e.left - i - 8);
1798
- const u = n - e.bottom, f = e.top;
1799
- f >= a + o ? r = e.top - a - 8 : u >= a + o ? r = e.bottom + 8 : f > u ? (r = e.top - a - 8, r < o && (r = o)) : (r = e.bottom + 8, r + a > n - o && (r = n - a - o)), this.popoverEl.style.left = `${l}px`, this.popoverEl.style.top = `${r}px`;
1798
+ const u = n - e.bottom, C = e.top;
1799
+ C >= a + o ? r = e.top - a - 8 : u >= a + o ? r = e.bottom + 8 : C > u ? (r = e.top - a - 8, r < o && (r = o)) : (r = e.bottom + 8, r + a > n - o && (r = n - a - o)), this.popoverEl.style.left = `${l}px`, this.popoverEl.style.top = `${r}px`;
1800
1800
  });
1801
1801
  }
1802
1802
  }
@@ -1988,8 +1988,8 @@ const ot = class ot {
1988
1988
  M(h) ? h.setValue(
1989
1989
  u
1990
1990
  ) : R(h) ? (p = h.setValue) == null || p.call(h, u) : h.setValue && h.setValue(u);
1991
- } catch (f) {
1992
- console.warn(`Could not preserve value for setting ${r}:`, f);
1991
+ } catch (C) {
1992
+ console.warn(`Could not preserve value for setting ${r}:`, C);
1993
1993
  }
1994
1994
  }
1995
1995
  }), this.settings = t, this.propagateNestingLevel(), this.propagateDataPropsPath();
@@ -2446,10 +2446,10 @@ const ot = class ot {
2446
2446
  </svg>`;
2447
2447
  h.innerHTML = `${d}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, h.addEventListener("click", (p) => {
2448
2448
  p.stopPropagation(), p.preventDefault();
2449
- const u = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), f = this.addItemCfg.createItem(u);
2450
- if (vt(f)) {
2449
+ const u = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), C = this.addItemCfg.createItem(u);
2450
+ if (vt(C)) {
2451
2451
  const m = `${this.addItemCfg.keyPrefix}${u}`;
2452
- this.addSetting(m, f);
2452
+ this.addSetting(m, C);
2453
2453
  }
2454
2454
  }), a.appendChild(h);
2455
2455
  }
@@ -2669,15 +2669,15 @@ class H extends Kt {
2669
2669
  g.textContent = "No global colors defined", g.style.gridColumn = "1 / -1", g.style.fontSize = "12px", g.style.color = "#666", a.appendChild(g);
2670
2670
  return;
2671
2671
  }
2672
- Object.entries(m).forEach(([g, C]) => {
2672
+ Object.entries(m).forEach(([g, f]) => {
2673
2673
  const v = document.createElement("button");
2674
- v.className = "global-color-btn", v.title = g, v.style.width = "30px", v.style.height = "30px", v.style.borderRadius = "50%", v.style.border = "1px solid #ddd", v.style.backgroundColor = C, v.style.cursor = "pointer", this.value === `var(--${g})` && (v.style.border = "2px solid #2196f3"), v.addEventListener("click", (y) => {
2674
+ v.className = "global-color-btn", v.title = g, v.style.width = "30px", v.style.height = "30px", v.style.borderRadius = "50%", v.style.border = "1px solid #ddd", v.style.backgroundColor = f, v.style.cursor = "pointer", this.value === `var(--${g})` && (v.style.border = "2px solid #2196f3"), v.addEventListener("click", (y) => {
2675
2675
  var k, x;
2676
2676
  y.preventDefault();
2677
2677
  const b = `var(--${g})`;
2678
2678
  this.value = b, (k = this.onChange) == null || k.call(this, b), (x = this.detectChange) == null || x.call(this, b), Array.from(a.children).forEach((E) => {
2679
2679
  E.style.border = "1px solid #ddd";
2680
- }), v.style.border = "2px solid #2196f3", d.style.backgroundColor = C;
2680
+ }), v.style.border = "2px solid #2196f3", d.style.backgroundColor = f;
2681
2681
  }), a.appendChild(v);
2682
2682
  });
2683
2683
  } catch (m) {
@@ -2707,33 +2707,33 @@ class H extends Kt {
2707
2707
  d.style.backgroundColor = p;
2708
2708
  const u = document.createElement("input");
2709
2709
  u.type = "text", u.className = "color-text-input", u.value = this.value || "", u.placeholder = "#000000", u.setAttribute("pattern", "#[0-9A-Fa-f]{6}"), u.setAttribute("title", "Enter a hex color value (e.g., #ff0000)"), u.setAttribute("aria-label", "Hex color value"), u.setAttribute("maxlength", "7"), this.getDataPropsPath() && u.setAttribute("data-test-id", `${this.getDataPropsPath()}_text`), this.textInputEl = u;
2710
- const f = (m) => {
2711
- var C, v;
2710
+ const C = (m) => {
2711
+ var f, v;
2712
2712
  let g = m.trim();
2713
2713
  if (g && !g.startsWith("#") && !g.startsWith("var(") && /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(g) && (g = "#" + g, this.textInputEl && (this.textInputEl.value = g)), this.textInputEl && r(this.textInputEl)) {
2714
2714
  const y = H.normalizeColorValue(g);
2715
- this.value = y, (C = this.onChange) == null || C.call(this, y), (v = this.detectChange) == null || v.call(this, y), this.colorInputEl && (this.colorInputEl.value = y), d.style.backgroundColor = y;
2715
+ this.value = y, (f = this.onChange) == null || f.call(this, y), (v = this.detectChange) == null || v.call(this, y), this.colorInputEl && (this.colorInputEl.value = y), d.style.backgroundColor = y;
2716
2716
  }
2717
2717
  };
2718
2718
  return this.textInputEl.addEventListener("input", (m) => {
2719
2719
  const g = m.target.value;
2720
- f(g);
2720
+ C(g);
2721
2721
  }), this.textInputEl.addEventListener("paste", (m) => {
2722
- var C;
2722
+ var f;
2723
2723
  m.preventDefault();
2724
- const g = ((C = m.clipboardData) == null ? void 0 : C.getData("text")) || "";
2725
- this.textInputEl && (this.textInputEl.value = g.trim(), f(g));
2724
+ const g = ((f = m.clipboardData) == null ? void 0 : f.getData("text")) || "";
2725
+ this.textInputEl && (this.textInputEl.value = g.trim(), C(g));
2726
2726
  }), this.textInputEl.addEventListener("keydown", (m) => {
2727
- var g, C, v;
2728
- m.key === "Enter" && (m.preventDefault(), f(((g = this.textInputEl) == null ? void 0 : g.value) || ""), (C = this.textInputEl) == null || C.blur()), m.key === "Escape" && (this.textInputEl && this.value && (this.textInputEl.value = this.value), (v = this.textInputEl) == null || v.blur(), e.classList.remove("error"));
2727
+ var g, f, v;
2728
+ m.key === "Enter" && (m.preventDefault(), C(((g = this.textInputEl) == null ? void 0 : g.value) || ""), (f = this.textInputEl) == null || f.blur()), m.key === "Escape" && (this.textInputEl && this.value && (this.textInputEl.value = this.value), (v = this.textInputEl) == null || v.blur(), e.classList.remove("error"));
2729
2729
  }), this.colorInputEl.addEventListener("input", (m) => {
2730
2730
  var v, y;
2731
- const g = m.target.value, C = H.normalizeColorValue(g);
2732
- this.value = C, (v = this.onChange) == null || v.call(this, C), (y = this.detectChange) == null || y.call(this, C), this.textInputEl && (this.textInputEl.value = C), d.style.backgroundColor = C, e.classList.remove("error");
2731
+ const g = m.target.value, f = H.normalizeColorValue(g);
2732
+ this.value = f, (v = this.onChange) == null || v.call(this, f), (y = this.detectChange) == null || y.call(this, f), this.textInputEl && (this.textInputEl.value = f), d.style.backgroundColor = f, e.classList.remove("error");
2733
2733
  }), this.colorInputEl.addEventListener("change", (m) => {
2734
2734
  var v, y;
2735
- const g = m.target.value, C = H.normalizeColorValue(g);
2736
- this.value = C, (v = this.onChange) == null || v.call(this, C), (y = this.detectChange) == null || y.call(this, C), this.textInputEl && (this.textInputEl.value = C), d.style.backgroundColor = C;
2735
+ const g = m.target.value, f = H.normalizeColorValue(g);
2736
+ this.value = f, (v = this.onChange) == null || v.call(this, f), (y = this.detectChange) == null || y.call(this, f), this.textInputEl && (this.textInputEl.value = f), d.style.backgroundColor = f;
2737
2737
  }), o.appendChild(h), o.appendChild(d), o.appendChild(u), e.appendChild(i), e.appendChild(o), e.appendChild(a), t.appendChild(e), this.element = t, t;
2738
2738
  }
2739
2739
  getElement() {
@@ -4143,12 +4143,12 @@ const je = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
4143
4143
  this.imageElement = p, h.appendChild(d);
4144
4144
  const u = document.createElement("div");
4145
4145
  u.className = "prize-list-section";
4146
- const f = He(
4146
+ const C = He(
4147
4147
  this.value.markers,
4148
4148
  this.props.maxMarkers || F,
4149
4149
  this.props.prizeMap
4150
4150
  );
4151
- u.appendChild(f), r.appendChild(h), r.appendChild(u), t.appendChild(r);
4151
+ u.appendChild(C), r.appendChild(h), r.appendChild(u), t.appendChild(r);
4152
4152
  const m = We(
4153
4153
  this.hasAllMarkers(),
4154
4154
  () => this.handleClearAllMarkers(),
@@ -4159,10 +4159,10 @@ const je = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
4159
4159
  t.appendChild(m);
4160
4160
  const g = h.querySelector(
4161
4161
  ".image-map-container"
4162
- ), C = u.querySelector(
4162
+ ), f = u.querySelector(
4163
4163
  ".simple-prize-list"
4164
4164
  );
4165
- g && (g.scrollTop = s), C && (C.scrollTop = n), this.updateCursorTooltipContent();
4165
+ g && (g.scrollTop = s), f && (f.scrollTop = n), this.updateCursorTooltipContent();
4166
4166
  } else {
4167
4167
  const l = Be({
4168
4168
  uploadMethod: this.props.upload || "file-manager",
@@ -4781,8 +4781,8 @@ class yi extends w {
4781
4781
  const m = Math.floor((d + p) / 2), g = e.slice(0, m).trimEnd() + h;
4782
4782
  this.measureTextWidth(g, i) <= l ? (u = m, d = m + 1) : p = m - 1;
4783
4783
  }
4784
- const f = e.slice(0, u).trimEnd() + h;
4785
- t.placeholder = f;
4784
+ const C = e.slice(0, u).trimEnd() + h;
4785
+ t.placeholder = C;
4786
4786
  }
4787
4787
  autosizeTextarea(t, e = 3) {
4788
4788
  t.style.height = "auto";
@@ -4943,7 +4943,6 @@ class yi extends w {
4943
4943
  this.popup && (document.body.removeChild(this.popup), this.popup = null);
4944
4944
  }
4945
4945
  draw() {
4946
- var h;
4947
4946
  const t = document.createElement("div");
4948
4947
  t.classList.add("simple-multi-language-wrapper");
4949
4948
  const e = document.createElement("div");
@@ -4974,49 +4973,50 @@ class yi extends w {
4974
4973
  s.style.color = "#000";
4975
4974
  }), s.addEventListener("mouseleave", () => {
4976
4975
  s.style.color = "#666";
4977
- });
4978
- const n = window;
4979
- n.textElementListeners || (n.textElementListeners = /* @__PURE__ */ new Map());
4980
- const o = (h = this.value) == null ? void 0 : h.$id, a = window.textElementListeners;
4981
- if (o && !a.has(o)) {
4982
- const d = (p) => {
4983
- const { type: u, data: f } = p.data || {};
4984
- u === "TEXT_ELEMENT_CLICKED" && (f == null ? void 0 : f.$id) === o && this.showPopup();
4985
- };
4986
- window.addEventListener("message", d), a.set(o, d);
4987
- }
4988
- s.addEventListener("click", (d) => {
4989
- d.preventDefault(), this.showPopup();
4976
+ }), s.addEventListener("click", (a) => {
4977
+ a.preventDefault(), this.showPopup();
4990
4978
  }), e.appendChild(i), e.appendChild(s), t.appendChild(e);
4991
- const l = document.createElement("div");
4992
- l.classList.add("simple-multi-language-content"), t.appendChild(l), this.container = t, this.renderContent(t), this.languageChangeUnsubscribe = w.onLanguageChange((d) => {
4993
- d && this.props.languages.includes(d) && (this.defaultLanguage = d), this.container && this.renderContent(this.container);
4979
+ const n = document.createElement("div");
4980
+ n.classList.add("simple-multi-language-content"), t.appendChild(n), this.container = t, this.renderContent(t), this.languageChangeUnsubscribe = w.onLanguageChange((a) => {
4981
+ a && this.props.languages.includes(a) && (this.defaultLanguage = a), this.container && this.renderContent(this.container);
4994
4982
  });
4995
- const r = () => {
4983
+ const o = () => {
4996
4984
  if (!this.container) return;
4997
4985
  this.container.querySelectorAll(
4998
4986
  ".simple-language-textarea"
4999
- ).forEach((p) => {
5000
- const u = p.getAttribute("data-full-placeholder") || "";
5001
- u && this.adaptPlaceholderToSingleLine(p, u);
4987
+ ).forEach((l) => {
4988
+ const r = l.getAttribute("data-full-placeholder") || "";
4989
+ r && this.adaptPlaceholderToSingleLine(l, r);
5002
4990
  });
5003
4991
  };
5004
- return window.addEventListener("resize", r), t;
4992
+ return window.addEventListener("resize", o), t;
5005
4993
  }
5006
4994
  setValue(t) {
5007
- super.setValue(t), this.value.$id = t.$id || this.id, this.container && this.props.languages.forEach((e) => {
5008
- var i;
4995
+ var n;
4996
+ super.setValue(t), this.value.$id = t.$id;
4997
+ const e = window;
4998
+ e.textElementListeners || (e.textElementListeners = /* @__PURE__ */ new Map());
4999
+ const i = (n = this.value) == null ? void 0 : n.$id, s = window.textElementListeners;
5000
+ if (i && !s.has(i)) {
5001
+ const o = (a) => {
5002
+ const { type: l, data: r } = a.data || {};
5003
+ l === "TEXT_ELEMENT_CLICKED" && (r == null ? void 0 : r.$id) === i && this.showPopup();
5004
+ };
5005
+ window.addEventListener("message", o), s.set(i, o);
5006
+ }
5007
+ this.container && this.props.languages.forEach((o) => {
5008
+ var a;
5009
5009
  if (this.props.multiImg) {
5010
- const s = this.uploadSettings.get(e);
5011
- s && s.setValue((t == null ? void 0 : t[e]) || "");
5010
+ const l = this.uploadSettings.get(o);
5011
+ l && l.setValue((t == null ? void 0 : t[o]) || "");
5012
5012
  } else {
5013
- const s = (i = this.container) == null ? void 0 : i.querySelector(
5014
- `#textarea-${e}`
5013
+ const l = (a = this.container) == null ? void 0 : a.querySelector(
5014
+ `#textarea-${o}`
5015
5015
  );
5016
- if (s) {
5017
- s.value = (t == null ? void 0 : t[e]) || "", this.autosizeTextarea(s, 3);
5018
- const n = s.getAttribute("data-full-placeholder") || "";
5019
- n && this.adaptPlaceholderToSingleLine(s, n);
5016
+ if (l) {
5017
+ l.value = (t == null ? void 0 : t[o]) || "", this.autosizeTextarea(l, 3);
5018
+ const r = l.getAttribute("data-full-placeholder") || "";
5019
+ r && this.adaptPlaceholderToSingleLine(l, r);
5020
5020
  }
5021
5021
  }
5022
5022
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "builder-settings-types",
3
3
  "description": "builder settings",
4
- "version": "0.0.378",
4
+ "version": "0.0.379",
5
5
  "type": "module",
6
6
  "main": "dist/builder-settings-types.cjs.js",
7
7
  "module": "dist/builder-settings-types.es.js",