builder-settings-types 0.0.261 → 0.0.263

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.
@@ -21,15 +21,15 @@ function tt(p, t = 0) {
21
21
  Z(s, n), tt(s, n);
22
22
  });
23
23
  }
24
- const dt = {
24
+ const ht = {
25
25
  maxLevel: 5,
26
26
  spacingMultiplier: 1,
27
27
  visualIndentMultiplier: 2,
28
28
  enableAutoDetection: !0
29
29
  };
30
- class ht {
30
+ class dt {
31
31
  constructor(t = {}) {
32
- this.observedElements = /* @__PURE__ */ new Set(), this.config = { ...dt, ...t }, this.config.enableAutoDetection && this.setupAutoDetection();
32
+ this.observedElements = /* @__PURE__ */ new Set(), this.config = { ...ht, ...t }, this.config.enableAutoDetection && this.setupAutoDetection();
33
33
  }
34
34
  /**
35
35
  * Setup automatic detection using MutationObserver
@@ -111,7 +111,7 @@ class ht {
111
111
  this.observer && (this.observer.disconnect(), this.observer = void 0), this.observedElements.clear();
112
112
  }
113
113
  }
114
- const it = new ht();
114
+ const it = new dt();
115
115
  function X(p) {
116
116
  if (p === null || typeof p != "object") return p;
117
117
  if (p instanceof Date) return new Date(p.getTime());
@@ -449,8 +449,8 @@ const Y = class Y {
449
449
  N(e) && typeof e.setNestingLevel == "function" && e.setNestingLevel(this.nestingLevel + 1);
450
450
  const a = e.draw(), l = this.deleteItemCfg ?? this.addItemCfg;
451
451
  if (l) {
452
- const d = l.keyPrefix ?? ((s = this.addItemCfg) == null ? void 0 : s.keyPrefix);
453
- d && t.startsWith(d) && this.addDeleteButtonToElement(a, t);
452
+ const h = l.keyPrefix ?? ((s = this.addItemCfg) == null ? void 0 : s.keyPrefix);
453
+ h && t.startsWith(h) && this.addDeleteButtonToElement(a, t);
454
454
  }
455
455
  const r = o.querySelector(".sg-add-button-bottom");
456
456
  r ? o.insertBefore(a, r) : o.appendChild(a), it.trackElement(a), Z(a, this.nestingLevel + 1), tt(a, this.nestingLevel + 1);
@@ -602,11 +602,11 @@ const Y = class Y {
602
602
  r(), t(!1);
603
603
  }), l.addEventListener("click", () => {
604
604
  r(), t(!0);
605
- }), e.addEventListener("click", (d) => {
606
- d.target === e && (r(), t(!1));
605
+ }), e.addEventListener("click", (h) => {
606
+ h.target === e && (r(), t(!1));
607
607
  });
608
- const c = (d) => {
609
- d.key === "Escape" && (r(), t(!1), document.removeEventListener("keydown", c));
608
+ const c = (h) => {
609
+ h.key === "Escape" && (r(), t(!1), document.removeEventListener("keydown", c));
610
610
  };
611
611
  document.addEventListener("keydown", c), o.appendChild(a), o.appendChild(l), i.appendChild(s), i.appendChild(n), i.appendChild(o), e.appendChild(i), document.body.appendChild(e), requestAnimationFrame(() => {
612
612
  e.style.opacity = "1", i.style.transform = "scale(1)";
@@ -734,14 +734,14 @@ const Y = class Y {
734
734
  }, Object.keys(this.settings).length > 0) {
735
735
  for (const c in this.settings)
736
736
  if (Object.prototype.hasOwnProperty.call(this.settings, c)) {
737
- const d = this.settings[c];
738
- N(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.nestingLevel + 1);
739
- const h = d.draw();
740
- N(d) && d.deleteItemCfg && this.addDeleteButtonToElement(
741
- h,
737
+ const h = this.settings[c];
738
+ N(h) && typeof h.setNestingLevel == "function" && h.setNestingLevel(this.nestingLevel + 1);
739
+ const d = h.draw();
740
+ N(h) && h.deleteItemCfg && this.addDeleteButtonToElement(
741
+ d,
742
742
  c,
743
- d
744
- ), a.appendChild(h);
743
+ h
744
+ ), a.appendChild(d);
745
745
  }
746
746
  } else {
747
747
  const c = document.createElement("div");
@@ -750,14 +750,14 @@ const Y = class Y {
750
750
  if (this.addItemCfg) {
751
751
  const c = document.createElement("button");
752
752
  c.type = "button", c.className = "sg-add-button-bottom", c.style.marginTop = "8px";
753
- const d = `
753
+ const h = `
754
754
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none"
755
755
  xmlns="http://www.w3.org/2000/svg">
756
756
  <path d="M8 3.333v9.334M3.333 8h9.334" stroke="currentColor"
757
757
  stroke-width="1.5" stroke-linecap="round"/>
758
758
  </svg>`;
759
- c.innerHTML = `${d}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, c.addEventListener("click", (h) => {
760
- h.stopPropagation(), h.preventDefault();
759
+ c.innerHTML = `${h}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, c.addEventListener("click", (d) => {
760
+ d.stopPropagation(), d.preventDefault();
761
761
  const m = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), u = this.addItemCfg.createItem(m);
762
762
  if (st(u)) {
763
763
  const g = `${this.addItemCfg.keyPrefix}${m}`;
@@ -809,7 +809,7 @@ const Y = class Y {
809
809
  };
810
810
  Y.hiddenElements = /* @__PURE__ */ new Set();
811
811
  let G = Y;
812
- function Ut(p) {
812
+ function zt(p) {
813
813
  return new ut(p);
814
814
  }
815
815
  class ut extends G {
@@ -852,9 +852,9 @@ class ut extends G {
852
852
  r.className = "tab-button", r.type = "button", r.setAttribute("data-tab-id", a), r.textContent = a, r.addEventListener("click", () => this.switchToTab(a)), n.appendChild(r);
853
853
  const c = document.createElement("div");
854
854
  c.className = "tab-panel", this.contentContainers[a] = c;
855
- const d = this.settings[a];
856
- d && (N(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.getNestingLevel() + 1), c.appendChild(
857
- d.draw()
855
+ const h = this.settings[a];
856
+ h && (N(h) && typeof h.setNestingLevel == "function" && h.setNestingLevel(this.getNestingLevel() + 1), c.appendChild(
857
+ h.draw()
858
858
  )), o.appendChild(c), l === 0 && !this.activeTabId && (this.activeTabId = a);
859
859
  }), e.appendChild(i), e.appendChild(n), e.appendChild(o), !this.activeTabId) {
860
860
  const a = Object.keys(this.settings)[0];
@@ -866,7 +866,7 @@ class ut extends G {
866
866
  function gt(p) {
867
867
  return new G(p);
868
868
  }
869
- function jt(p) {
869
+ function Ut(p) {
870
870
  return p;
871
871
  }
872
872
  class mt extends S {
@@ -910,8 +910,8 @@ class F extends mt {
910
910
  if (e.length !== 3 || e.some(isNaN))
911
911
  return console.warn(`Invalid RGB value "${t}", using default "#000000"`), "#000000";
912
912
  const [i, s, n] = e, o = Math.max(0, Math.min(255, i)), a = Math.max(0, Math.min(255, s)), l = Math.max(0, Math.min(255, n)), r = (c) => {
913
- const d = c.toString(16);
914
- return d.length === 1 ? "0" + d : d;
913
+ const h = c.toString(16);
914
+ return h.length === 1 ? "0" + h : h;
915
915
  };
916
916
  return `#${r(o)}${r(a)}${r(l)}`;
917
917
  }
@@ -951,8 +951,8 @@ class F extends mt {
951
951
  const r = l.value.trim();
952
952
  if (!r)
953
953
  return e.classList.remove("error"), !0;
954
- const d = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(r);
955
- return d ? e.classList.remove("error") : e.classList.add("error"), d;
954
+ const h = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(r);
955
+ return h ? e.classList.remove("error") : e.classList.add("error"), h;
956
956
  }, s = document.createElement("input");
957
957
  s.type = "color", s.className = "color-picker", s.value = this.value || "#000000", s.setAttribute("aria-label", "Choose color"), s.setAttribute("title", "Click to open color picker"), this.getDataPropsPath() && s.setAttribute("data-test-id", this.getDataPropsPath()), this.colorInputEl = s;
958
958
  const n = document.createElement("div");
@@ -961,20 +961,20 @@ class F extends mt {
961
961
  n.style.backgroundColor = o;
962
962
  const a = document.createElement("input");
963
963
  return a.type = "text", a.className = "color-text-input", a.value = this.value || "", a.placeholder = "#000000", a.setAttribute("pattern", "#[0-9A-Fa-f]{6}"), a.setAttribute("title", "Enter a hex color value (e.g., #ff0000)"), a.setAttribute("aria-label", "Hex color value"), a.setAttribute("maxlength", "7"), this.getDataPropsPath() && a.setAttribute("data-test-id", `${this.getDataPropsPath()}_text`), this.textInputEl = a, this.textInputEl.addEventListener("input", (l) => {
964
- var c, d;
964
+ var c, h;
965
965
  let r = l.target.value.trim();
966
966
  if (this.textInputEl && i(this.textInputEl)) {
967
- const h = F.normalizeColorValue(r);
968
- this.value = h, (c = this.onChange) == null || c.call(this, h), (d = this.detectChange) == null || d.call(this, h), this.colorInputEl && (this.colorInputEl.value = h), n.style.backgroundColor = h;
967
+ const d = F.normalizeColorValue(r);
968
+ this.value = d, (c = this.onChange) == null || c.call(this, d), (h = this.detectChange) == null || h.call(this, d), this.colorInputEl && (this.colorInputEl.value = d), n.style.backgroundColor = d;
969
969
  }
970
970
  }), this.colorInputEl.addEventListener("input", (l) => {
971
- var d, h;
971
+ var h, d;
972
972
  const r = l.target.value, c = F.normalizeColorValue(r);
973
- this.value = c, (d = this.onChange) == null || d.call(this, c), (h = this.detectChange) == null || h.call(this, c), this.textInputEl && (this.textInputEl.value = c), n.style.backgroundColor = c, e.classList.remove("error");
973
+ this.value = c, (h = this.onChange) == null || h.call(this, c), (d = this.detectChange) == null || d.call(this, c), this.textInputEl && (this.textInputEl.value = c), n.style.backgroundColor = c, e.classList.remove("error");
974
974
  }), this.colorInputEl.addEventListener("change", (l) => {
975
- var d, h;
975
+ var h, d;
976
976
  const r = l.target.value, c = F.normalizeColorValue(r);
977
- this.value = c, (d = this.onChange) == null || d.call(this, c), (h = this.detectChange) == null || h.call(this, c), this.textInputEl && (this.textInputEl.value = c), n.style.backgroundColor = c;
977
+ this.value = c, (h = this.onChange) == null || h.call(this, c), (d = this.detectChange) == null || d.call(this, c), this.textInputEl && (this.textInputEl.value = c), n.style.backgroundColor = c;
978
978
  }), e.appendChild(s), e.appendChild(n), e.appendChild(a), t.appendChild(e), this.element = t, t;
979
979
  }
980
980
  getElement() {
@@ -1121,7 +1121,7 @@ class W extends S {
1121
1121
  };
1122
1122
  }
1123
1123
  }
1124
- class _t extends S {
1124
+ class jt extends S {
1125
1125
  constructor(t = {}) {
1126
1126
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
1127
1127
  }
@@ -1412,7 +1412,7 @@ class bt extends S {
1412
1412
  }), t.appendChild(i), t;
1413
1413
  }
1414
1414
  }
1415
- class qt extends S {
1415
+ class _t extends S {
1416
1416
  constructor(t) {
1417
1417
  super(t), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
1418
1418
  }
@@ -1441,7 +1441,7 @@ class qt extends S {
1441
1441
  return o.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), o.appendChild(t), o;
1442
1442
  }
1443
1443
  }
1444
- class Jt extends S {
1444
+ class qt extends S {
1445
1445
  constructor(t = {}) {
1446
1446
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1447
1447
  const e = t.width || 0, i = t.height || 0;
@@ -1454,14 +1454,14 @@ class Jt extends S {
1454
1454
  suffix: "px",
1455
1455
  minValue: this.minWidth,
1456
1456
  maxValue: this.maxWidth,
1457
- icon: xt
1457
+ icon: wt
1458
1458
  }), this.heightSetting = new D({
1459
1459
  title: "Height",
1460
1460
  default: this.value.height,
1461
1461
  suffix: "px",
1462
1462
  minValue: this.minHeight,
1463
1463
  maxValue: this.maxHeight,
1464
- icon: wt
1464
+ icon: xt
1465
1465
  }), this.widthSetting.setOnChange(this.handleWidthChange.bind(this)), this.heightSetting.setOnChange(this.handleHeightChange.bind(this));
1466
1466
  }
1467
1467
  handleWidthChange(t) {
@@ -1555,9 +1555,9 @@ class Jt extends S {
1555
1555
  }
1556
1556
  }
1557
1557
  }
1558
- const xt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1558
+ const wt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1559
1559
  <path d="M4.5 9.5H13.5M4.5 9.5L6 7.25M4.5 9.5L6 11.75M13.5 9.5L12 7.25M13.5 9.5L12 11.75M15.75 16.25V2.75M2.25 16.25V2.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
1560
- </svg>`, wt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1560
+ </svg>`, xt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1561
1561
  <path d="M9 14L9 5M9 14L6.75 12.5M9 14L11.25 12.5M9 5L6.75 6.5M9 5L11.25 6.5M15.75 2.75H2.25M15.75 16.25H2.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
1562
1562
  </svg>`, Q = `
1563
1563
  <svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
@@ -1712,7 +1712,7 @@ class at extends S {
1712
1712
  }, t;
1713
1713
  }
1714
1714
  }
1715
- class Zt extends D {
1715
+ class Jt extends D {
1716
1716
  constructor(t = {}) {
1717
1717
  super({
1718
1718
  ...t,
@@ -1733,7 +1733,7 @@ class Zt extends D {
1733
1733
  const St = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1734
1734
  <path d="M9 14L9 5M9 14L6.75 12.5M9 14L11.25 12.5M9 5L6.75 6.5M9 5L11.25 6.5M15.75 2.75H2.25M15.75 16.25H2.25" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
1735
1735
  </svg>`;
1736
- class Xt extends D {
1736
+ class Zt extends D {
1737
1737
  constructor(t = {}) {
1738
1738
  super({
1739
1739
  ...t,
@@ -1758,7 +1758,7 @@ const It = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
1758
1758
  <polyline points="6 9 12 15 18 9"></polyline>
1759
1759
  </svg>
1760
1760
  `;
1761
- class Yt extends S {
1761
+ class Xt extends S {
1762
1762
  constructor(t = {}) {
1763
1763
  if (super(t), this.inputType = "select", this._options = [], this.isOpen = !1, this.selectedOptionIndex = null, this.optionsListEl = null, this.svgContainer = null, this.buttonEl = null, this.isLoading = !1, this.container = null, this.hasInitializedOptions = !1, this.selectedOptionIndex = null, t.default !== void 0 && (this.value = t.default), this.initializeOptions(t), !t.getOptionsAsync && this.value !== void 0) {
1764
1764
  const e = this._options.findIndex(
@@ -1860,7 +1860,7 @@ class Yt extends S {
1860
1860
  return JSON.stringify(t ? {} : { value: this.value }, null, 2);
1861
1861
  }
1862
1862
  selectApiOption(t, e, i) {
1863
- var l, r, c, d;
1863
+ var l, r, c, h;
1864
1864
  const s = t.target, n = s.querySelector(".select-api-radio") || ((l = s.closest(".select-api-option")) == null ? void 0 : l.querySelector(".select-api-radio"));
1865
1865
  n && (n.checked = !0), this.selectedOptionIndex = e;
1866
1866
  const o = this._options[e].value;
@@ -1869,10 +1869,10 @@ class Yt extends S {
1869
1869
  if (a)
1870
1870
  a.textContent = this._options[e].name;
1871
1871
  else {
1872
- const h = i.firstChild;
1873
- h && h.tagName === "SPAN" && (h.textContent = this._options[e].name);
1872
+ const d = i.firstChild;
1873
+ d && d.tagName === "SPAN" && (d.textContent = this._options[e].name);
1874
1874
  }
1875
- this.isOpen = !1, (r = this.optionsListEl) == null || r.classList.remove("open"), (c = this.svgContainer) == null || c.classList.remove("open"), (d = this.onChange) == null || d.call(this, o), this.detectChangeCallback && this.detectChangeCallback(o);
1875
+ this.isOpen = !1, (r = this.optionsListEl) == null || r.classList.remove("open"), (c = this.svgContainer) == null || c.classList.remove("open"), (h = this.onChange) == null || h.call(this, o), this.detectChangeCallback && this.detectChangeCallback(o);
1876
1876
  }
1877
1877
  updateOptionsList() {
1878
1878
  !this.optionsListEl || !this.buttonEl || (this.optionsListEl.innerHTML = "", this._options.forEach((t, e) => {
@@ -1905,7 +1905,7 @@ class Yt extends S {
1905
1905
  ), this.updateButtonText();
1906
1906
  }
1907
1907
  }
1908
- class Kt extends S {
1908
+ class Yt extends S {
1909
1909
  constructor(t) {
1910
1910
  var e, i;
1911
1911
  super(t), this.inputType = "text", this.value = t.default ?? ((i = (e = t.options) == null ? void 0 : e[0]) == null ? void 0 : i.value) ?? "", this.detectChangeCallback = t.detectChange;
@@ -1929,7 +1929,7 @@ class Kt extends S {
1929
1929
  const s = document.createElement("input");
1930
1930
  s.type = "checkbox", s.checked = ((a = (o = this.props.options) == null ? void 0 : o.find((l) => l.value === this.value)) == null ? void 0 : a.status) ?? !1, this.getDataPropsPath() && s.setAttribute("data-test-id", this.getDataPropsPath()), s.addEventListener("change", () => {
1931
1931
  var r, c;
1932
- const l = ((c = (r = this.props.options) == null ? void 0 : r.find((d) => d.status === s.checked)) == null ? void 0 : c.value) ?? "";
1932
+ const l = ((c = (r = this.props.options) == null ? void 0 : r.find((h) => h.status === s.checked)) == null ? void 0 : c.value) ?? "";
1933
1933
  this.value = l, this.onChange && this.onChange(this.value), this.detectChangeCallback && this.detectChangeCallback(this.value);
1934
1934
  });
1935
1935
  const n = document.createElement("span");
@@ -1958,7 +1958,7 @@ class Kt extends S {
1958
1958
  const Vt = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1959
1959
  <path d="M13.3334 5.99996H2.66675M13.3334 9.99996H2.66675M5.33341 12.6666V3.33329M10.6667 12.6666V3.33329" stroke="#667085" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
1960
1960
  </svg>`;
1961
- class Qt extends S {
1961
+ class Kt extends S {
1962
1962
  // Store mobile value
1963
1963
  constructor(t = {}) {
1964
1964
  t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Vt, t.suffix = t.suffix ?? "px", t.minValue = t.minValue ?? 0, super(t), this.inputType = "number", this.inputValues = {}, this.mobileValue = t.mobile, this.value = this.validateValue(t.default ?? 0), t.rowGap && (this.inputValues.row = this.value), t.columnGap && (this.inputValues.column = this.value);
@@ -2015,7 +2015,7 @@ class Qt extends S {
2015
2015
  const Ht = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2016
2016
  <path d="M2.25 11.75H15.75M5.85 2.75H12.15C13.4101 2.75 14.0402 2.75 14.5215 2.99524C14.9448 3.21095 15.289 3.55516 15.5048 3.97852C15.75 4.45982 15.75 5.08988 15.75 6.35V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V6.35C2.25 5.08988 2.25 4.45982 2.49524 3.97852C2.71095 3.55516 3.05516 3.21095 3.47852 2.99524C3.95982 2.75 4.58988 2.75 5.85 2.75Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2017
2017
  </svg>`;
2018
- class te extends D {
2018
+ class Qt extends D {
2019
2019
  constructor(t = {}) {
2020
2020
  super({
2021
2021
  ...t,
@@ -2032,7 +2032,7 @@ const Tt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
2032
2032
  <path d="M15.75 7.25H2.25m9.9 9h-6.3c-1.26 0-1.89 0-2.371-.245a2.25 2.25 0 0 1-.984-.983c-.245-.482-.245-1.112-.245-2.372v-6.3c0-1.26 0-1.89.245-2.371a2.25 2.25 0 0 1 .984-.984c.48-.245 1.11-.245 2.371-.245h6.3c1.26 0 1.89 0 2.371.245.424.216.768.56.984.984.245.48.245 1.11.245 2.371v6.3c0 1.26 0 1.89-.245 2.371-.216.424-.56.768-.984.984-.48.245-1.11.245-2.371.245"
2033
2033
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2034
2034
  </svg>`;
2035
- class ee extends D {
2035
+ class te extends D {
2036
2036
  constructor(t = {}) {
2037
2037
  super({
2038
2038
  ...t,
@@ -2045,7 +2045,7 @@ class ee extends D {
2045
2045
  }), this.inputType = "number";
2046
2046
  }
2047
2047
  }
2048
- class ie extends S {
2048
+ class ee extends S {
2049
2049
  constructor(t) {
2050
2050
  super(t), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), t.default ? this.value = { ...t.default } : this.value || (this.value = {}), this.defaultLanguage = t.languages.includes(S.DefaultLanguage) ? S.DefaultLanguage : t.languages[0];
2051
2051
  const e = t.defaultValue || `Enter text in ${this.capitalizeFirstLetter(this.defaultLanguage)}`;
@@ -2078,10 +2078,10 @@ class ie extends S {
2078
2078
  return;
2079
2079
  }
2080
2080
  const c = "...";
2081
- let d = 0, h = e.length, m = 0;
2082
- for (; d <= h; ) {
2083
- const g = Math.floor((d + h) / 2), f = e.slice(0, g).trimEnd() + c;
2084
- this.measureTextWidth(f, i) <= l ? (m = g, d = g + 1) : h = g - 1;
2081
+ let h = 0, d = e.length, m = 0;
2082
+ for (; h <= d; ) {
2083
+ const g = Math.floor((h + d) / 2), f = e.slice(0, g).trimEnd() + c;
2084
+ this.measureTextWidth(f, i) <= l ? (m = g, h = g + 1) : d = g - 1;
2085
2085
  }
2086
2086
  const u = e.slice(0, m).trimEnd() + c;
2087
2087
  t.placeholder = u;
@@ -2192,7 +2192,7 @@ class ie extends S {
2192
2192
  });
2193
2193
  }
2194
2194
  }
2195
- class se extends S {
2195
+ class ie extends S {
2196
2196
  constructor(t = {}) {
2197
2197
  super(t), this.inputType = "select";
2198
2198
  const e = [
@@ -2252,18 +2252,18 @@ function nt(p) {
2252
2252
  for (let r = 0; r < n.length; r++) {
2253
2253
  const c = n[r];
2254
2254
  if (c.includes("deg") || c.includes("to ")) continue;
2255
- let d = "", h = 0, m = 100;
2255
+ let h = "", d = 0, m = 100;
2256
2256
  const u = c.match(/rgba?\(([^)]+)\)(?:\s*(\d+)%)?/);
2257
2257
  if (u) {
2258
- const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), y = parseInt(g[1]), v = parseInt(g[2]), x = g[3] ? parseFloat(g[3]) : 1;
2259
- d = `#${f.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(x * 100), u[2] ? h = parseInt(u[2]) : h = Math.round(r / Math.max(n.length - 2, 1) * 100);
2258
+ const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), y = parseInt(g[1]), v = parseInt(g[2]), w = g[3] ? parseFloat(g[3]) : 1;
2259
+ h = `#${f.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(w * 100), u[2] ? d = parseInt(u[2]) : d = Math.round(r / Math.max(n.length - 2, 1) * 100);
2260
2260
  } else {
2261
2261
  const g = c.match(/#([a-fA-F0-9]{3,8})(?:\s*(\d+)%)?/);
2262
- g && (d = `#${g[1]}`, g[2] ? h = parseInt(g[2]) : h = Math.round(r / Math.max(n.length - 2, 1) * 100));
2262
+ g && (h = `#${g[1]}`, g[2] ? d = parseInt(g[2]) : d = Math.round(r / Math.max(n.length - 2, 1) * 100));
2263
2263
  }
2264
- d && l.push({
2265
- color: d,
2266
- position: h,
2264
+ h && l.push({
2265
+ color: h,
2266
+ position: d,
2267
2267
  opacity: m
2268
2268
  });
2269
2269
  }
@@ -2274,25 +2274,25 @@ function nt(p) {
2274
2274
  const r = e.match(
2275
2275
  /(#[a-fA-F0-9]{3,8}|rgba?\([^)]+\))/g
2276
2276
  );
2277
- r && r.forEach((c, d) => {
2278
- let h = "", m = 100;
2277
+ r && r.forEach((c, h) => {
2278
+ let d = "", m = 100;
2279
2279
  if (c.startsWith("#"))
2280
- h = c;
2280
+ d = c;
2281
2281
  else {
2282
2282
  const u = c.match(/rgba?\(([^)]+)\)/);
2283
2283
  if (u) {
2284
- const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), y = parseInt(g[1]), v = parseInt(g[2]), x = g[3] ? parseFloat(g[3]) : 1;
2285
- h = `#${f.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(x * 100);
2284
+ const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), y = parseInt(g[1]), v = parseInt(g[2]), w = g[3] ? parseFloat(g[3]) : 1;
2285
+ d = `#${f.toString(16).padStart(2, "0")}${y.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(w * 100);
2286
2286
  }
2287
2287
  }
2288
- if (h) {
2288
+ if (d) {
2289
2289
  const u = Math.round(
2290
- d / Math.max(r.length - 1, 1) * 100
2290
+ h / Math.max(r.length - 1, 1) * 100
2291
2291
  );
2292
2292
  console.log(
2293
- `Auto-positioned stop: ${h} at ${u}% with ${m}% opacity`
2293
+ `Auto-positioned stop: ${d} at ${u}% with ${m}% opacity`
2294
2294
  ), l.push({
2295
- color: h,
2295
+ color: d,
2296
2296
  position: u,
2297
2297
  opacity: m
2298
2298
  });
@@ -2340,10 +2340,10 @@ class Pt {
2340
2340
  r.className = "color-picker-hue", this.hueSlider = r;
2341
2341
  const c = document.createElement("div");
2342
2342
  c.className = "color-picker-hue-marker", this.hueMarker = c, r.appendChild(c), a.appendChild(l), a.appendChild(r);
2343
- const d = document.createElement("div");
2344
- d.className = "color-picker-opacity", this.opacitySlider = d;
2345
2343
  const h = document.createElement("div");
2346
- h.className = "color-picker-opacity-marker", this.opacityMarker = h, d.appendChild(h);
2344
+ h.className = "color-picker-opacity", this.opacitySlider = h;
2345
+ const d = document.createElement("div");
2346
+ d.className = "color-picker-opacity-marker", this.opacityMarker = d, h.appendChild(d);
2347
2347
  const m = document.createElement("div");
2348
2348
  m.className = "color-picker-format-section";
2349
2349
  const u = document.createElement("select");
@@ -2356,10 +2356,10 @@ class Pt {
2356
2356
  y.value = "hsl", y.textContent = "HSL", u.appendChild(g), u.appendChild(f), u.appendChild(y);
2357
2357
  const v = document.createElement("input");
2358
2358
  v.type = "text", v.className = "color-picker-color-input", v.value = this.currentColor, this.hexInput = v;
2359
- const x = document.createElement("div");
2360
- x.className = "color-picker-input-container";
2359
+ const w = document.createElement("div");
2360
+ w.className = "color-picker-input-container";
2361
2361
  const V = document.createElement("button");
2362
- return V.className = "color-picker-copy-inside", V.textContent = "Copy", V.addEventListener("click", () => this.copyToClipboard()), x.appendChild(v), x.appendChild(V), m.appendChild(u), m.appendChild(x), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(d), t.appendChild(m), this.setupEyedropper(l), this.setupEventListeners(), t.addEventListener("click", (z) => {
2362
+ return V.className = "color-picker-copy-inside", V.textContent = "Copy", V.addEventListener("click", () => this.copyToClipboard()), w.appendChild(v), w.appendChild(V), m.appendChild(u), m.appendChild(w), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(h), t.appendChild(m), this.setupEyedropper(l), this.setupEventListeners(), t.addEventListener("click", (z) => {
2363
2363
  z.stopPropagation();
2364
2364
  }), t;
2365
2365
  }
@@ -2551,21 +2551,21 @@ class Pt {
2551
2551
  }
2552
2552
  makeDraggable(t, e) {
2553
2553
  let i = !1, s = 0, n = 0, o = 0, a = 0;
2554
- const l = (d) => {
2555
- if (d.target.closest("button"))
2554
+ const l = (h) => {
2555
+ if (h.target.closest("button"))
2556
2556
  return;
2557
- d.preventDefault(), d.stopPropagation(), i = !0, s = d.clientX, n = d.clientY;
2558
- const h = e.getBoundingClientRect();
2559
- o = h.left, a = h.top, e.classList.add("dragging"), document.addEventListener("mousemove", r), document.addEventListener("mouseup", c), document.body.style.userSelect = "none";
2560
- }, r = (d) => {
2557
+ h.preventDefault(), h.stopPropagation(), i = !0, s = h.clientX, n = h.clientY;
2558
+ const d = e.getBoundingClientRect();
2559
+ o = d.left, a = d.top, e.classList.add("dragging"), document.addEventListener("mousemove", r), document.addEventListener("mouseup", c), document.body.style.userSelect = "none";
2560
+ }, r = (h) => {
2561
2561
  if (!i) return;
2562
- d.preventDefault(), d.stopPropagation();
2563
- const h = d.clientX - s, m = d.clientY - n;
2564
- let u = o + h, g = a + m;
2565
- const f = window.innerWidth, y = window.innerHeight, v = e.offsetWidth, x = e.offsetHeight;
2566
- u = Math.max(8, Math.min(f - v - 8, u)), g = Math.max(8, Math.min(y - x - 8, g)), e.style.left = `${u}px`, e.style.top = `${g}px`;
2567
- }, c = (d) => {
2568
- i && (i = !1, d.preventDefault(), d.stopPropagation(), e.classList.remove("dragging"), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", c), document.body.style.userSelect = "");
2562
+ h.preventDefault(), h.stopPropagation();
2563
+ const d = h.clientX - s, m = h.clientY - n;
2564
+ let u = o + d, g = a + m;
2565
+ const f = window.innerWidth, y = window.innerHeight, v = e.offsetWidth, w = e.offsetHeight;
2566
+ u = Math.max(8, Math.min(f - v - 8, u)), g = Math.max(8, Math.min(y - w - 8, g)), e.style.left = `${u}px`, e.style.top = `${g}px`;
2567
+ }, c = (h) => {
2568
+ i && (i = !1, h.preventDefault(), h.stopPropagation(), e.classList.remove("dragging"), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", c), document.body.style.userSelect = "");
2569
2569
  };
2570
2570
  t.addEventListener("mousedown", l);
2571
2571
  }
@@ -2576,7 +2576,7 @@ class Pt {
2576
2576
  return this.element;
2577
2577
  }
2578
2578
  }
2579
- class Ot extends S {
2579
+ class se extends S {
2580
2580
  constructor(t = {}) {
2581
2581
  let e;
2582
2582
  if (typeof t.default == "string")
@@ -2878,14 +2878,14 @@ class Ot extends S {
2878
2878
  t.innerHTML = "", this.value && (this.value.type === "solid" ? this.createSolidEditor(t) : this.createGradientEditor(t));
2879
2879
  }
2880
2880
  createSolidEditor(t) {
2881
- var o, a, l, r, c, d;
2881
+ var o, a, l, r, c, h;
2882
2882
  const e = document.createElement("div");
2883
2883
  e.className = "gradient-solid-picker embedded-color-picker";
2884
- const i = ((l = (a = (o = this.value) == null ? void 0 : o.stops) == null ? void 0 : a[0]) == null ? void 0 : l.color) || "#000000", s = ((d = (c = (r = this.value) == null ? void 0 : r.stops) == null ? void 0 : c[0]) == null ? void 0 : d.opacity) || 100, n = this.createEmbeddedColorPickerWithOpacity(
2884
+ const i = ((l = (a = (o = this.value) == null ? void 0 : o.stops) == null ? void 0 : a[0]) == null ? void 0 : l.color) || "#000000", s = ((h = (c = (r = this.value) == null ? void 0 : r.stops) == null ? void 0 : c[0]) == null ? void 0 : h.opacity) || 100, n = this.createEmbeddedColorPickerWithOpacity(
2885
2885
  i,
2886
2886
  s,
2887
- (h, m) => {
2888
- this.value && (!this.value.stops || this.value.stops.length === 0 ? this.value.stops = [{ color: h, position: 0, opacity: m }] : (this.value.stops[0].color = h, this.value.stops[0].opacity = m), this.updateUI(), this.triggerChange());
2887
+ (d, m) => {
2888
+ this.value && (!this.value.stops || this.value.stops.length === 0 ? this.value.stops = [{ color: d, position: 0, opacity: m }] : (this.value.stops[0].color = d, this.value.stops[0].opacity = m), this.updateUI(), this.triggerChange());
2889
2889
  }
2890
2890
  );
2891
2891
  e.appendChild(n), t.appendChild(e);
@@ -2907,10 +2907,10 @@ class Ot extends S {
2907
2907
  r.className = "color-picker-hue embedded";
2908
2908
  const c = document.createElement("div");
2909
2909
  c.className = "color-picker-hue-marker", r.appendChild(c), a.appendChild(l), a.appendChild(r);
2910
- const d = document.createElement("div");
2911
- d.className = "color-picker-opacity embedded";
2912
2910
  const h = document.createElement("div");
2913
- h.className = "color-picker-opacity-marker", d.appendChild(h);
2911
+ h.className = "color-picker-opacity embedded";
2912
+ const d = document.createElement("div");
2913
+ d.className = "color-picker-opacity-marker", h.appendChild(d);
2914
2914
  const m = document.createElement("div");
2915
2915
  m.className = "color-picker-format-section embedded";
2916
2916
  const u = document.createElement("select");
@@ -2923,10 +2923,10 @@ class Ot extends S {
2923
2923
  y.value = "hsl", y.textContent = "HSL", u.appendChild(g), u.appendChild(f), u.appendChild(y);
2924
2924
  const v = document.createElement("input");
2925
2925
  v.type = "text", v.className = "color-picker-color-input", v.value = t;
2926
- const x = document.createElement("div");
2927
- x.className = "color-picker-input-container";
2926
+ const w = document.createElement("div");
2927
+ w.className = "color-picker-input-container";
2928
2928
  const V = document.createElement("button");
2929
- return V.className = "color-picker-copy-inside", V.textContent = "Copy", x.appendChild(v), x.appendChild(V), m.appendChild(u), m.appendChild(x), s.appendChild(n), s.appendChild(a), s.appendChild(d), s.appendChild(m), this.setupEmbeddedColorPicker(
2929
+ return V.className = "color-picker-copy-inside", V.textContent = "Copy", w.appendChild(v), w.appendChild(V), m.appendChild(u), m.appendChild(w), s.appendChild(n), s.appendChild(a), s.appendChild(h), s.appendChild(m), this.setupEmbeddedColorPicker(
2930
2930
  n,
2931
2931
  o,
2932
2932
  r,
@@ -2939,8 +2939,8 @@ class Ot extends S {
2939
2939
  e,
2940
2940
  i
2941
2941
  ), this.setupOpacitySlider(
2942
- d,
2943
2942
  h,
2943
+ d,
2944
2944
  t,
2945
2945
  e,
2946
2946
  i
@@ -2963,27 +2963,27 @@ class Ot extends S {
2963
2963
  r.className = "color-picker-hue embedded";
2964
2964
  const c = document.createElement("div");
2965
2965
  c.className = "color-picker-hue-marker", r.appendChild(c), a.appendChild(l), a.appendChild(r);
2966
- const d = document.createElement("div");
2967
- d.className = "color-picker-format-section embedded";
2968
- const h = document.createElement("select");
2969
- h.className = "color-picker-format-select";
2966
+ const h = document.createElement("div");
2967
+ h.className = "color-picker-format-section embedded";
2968
+ const d = document.createElement("select");
2969
+ d.className = "color-picker-format-select";
2970
2970
  const m = document.createElement("option");
2971
2971
  m.value = "hex", m.textContent = "HEX";
2972
2972
  const u = document.createElement("option");
2973
2973
  u.value = "rgb", u.textContent = "RGB";
2974
2974
  const g = document.createElement("option");
2975
- g.value = "hsl", g.textContent = "HSL", h.appendChild(m), h.appendChild(u), h.appendChild(g);
2975
+ g.value = "hsl", g.textContent = "HSL", d.appendChild(m), d.appendChild(u), d.appendChild(g);
2976
2976
  const f = document.createElement("input");
2977
2977
  f.type = "text", f.className = "color-picker-color-input", f.value = t;
2978
2978
  const y = document.createElement("div");
2979
2979
  y.className = "color-picker-input-container";
2980
2980
  const v = document.createElement("button");
2981
- return v.className = "color-picker-copy-inside", v.textContent = "Copy", y.appendChild(f), y.appendChild(v), d.appendChild(h), d.appendChild(y), s.appendChild(n), s.appendChild(a), s.appendChild(d), this.setupEmbeddedColorPicker(
2981
+ return v.className = "color-picker-copy-inside", v.textContent = "Copy", y.appendChild(f), y.appendChild(v), h.appendChild(d), h.appendChild(y), s.appendChild(n), s.appendChild(a), s.appendChild(h), this.setupEmbeddedColorPicker(
2982
2982
  n,
2983
2983
  o,
2984
2984
  r,
2985
2985
  c,
2986
- h,
2986
+ d,
2987
2987
  f,
2988
2988
  v,
2989
2989
  l,
@@ -2992,74 +2992,74 @@ class Ot extends S {
2992
2992
  i
2993
2993
  ), s;
2994
2994
  }
2995
- setupEmbeddedColorPicker(t, e, i, s, n, o, a, l, r, c, d) {
2996
- let h = r;
2995
+ setupEmbeddedColorPicker(t, e, i, s, n, o, a, l, r, c, h) {
2996
+ let d = r;
2997
2997
  const { h: m, s: u, v: g } = this.hexToHsv(r);
2998
2998
  let f = c;
2999
2999
  s.style.left = `${m / 360 * 100}%`, e.style.left = `${u * 100}%`, e.style.top = `${(1 - g) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${m}, 100%, 50%))`;
3000
3000
  const y = (C, b = f) => {
3001
- h = C, f = Math.round(b), v(), d(C, f);
3001
+ d = C, f = Math.round(b), v(), h(C, f);
3002
3002
  }, v = () => {
3003
- const C = n.value, { h: b, s: w, v: L } = this.hexToHsv(h);
3003
+ const C = n.value, { h: b, s: x, v: L } = this.hexToHsv(d);
3004
3004
  switch (C) {
3005
3005
  case "hex":
3006
- o.value = h;
3006
+ o.value = d;
3007
3007
  break;
3008
3008
  case "rgb":
3009
- const { r: H, g: $, b: R } = this.hexToRgb(h);
3009
+ const { r: H, g: $, b: R } = this.hexToRgb(d);
3010
3010
  o.value = `rgb(${H}, ${$}, ${R})`;
3011
3011
  break;
3012
3012
  case "hsl":
3013
- const { hue: B, sat: _, lightness: K } = this.hsvToHsl(b, w, L);
3013
+ const { hue: B, sat: _, lightness: K } = this.hsvToHsl(b, x, L);
3014
3014
  o.value = `hsl(${Math.round(B)}, ${Math.round(
3015
3015
  _ * 100
3016
3016
  )}%, ${Math.round(K * 100)}%)`;
3017
3017
  break;
3018
3018
  }
3019
- }, x = () => parseFloat(s.style.left || "0%") / 100 * 360, V = (C, b) => {
3020
- const w = x(), L = this.hsvToHex(w, C, b);
3019
+ }, w = () => parseFloat(s.style.left || "0%") / 100 * 360, V = (C, b) => {
3020
+ const x = w(), L = this.hsvToHex(x, C, b);
3021
3021
  y(L, f);
3022
3022
  }, z = (C) => {
3023
3023
  C = Math.max(0.1, Math.min(358.9, C));
3024
- const b = parseFloat(e.style.left || "50%") / 100, w = parseFloat(e.style.top || "50%") / 100;
3024
+ const b = parseFloat(e.style.left || "50%") / 100, x = parseFloat(e.style.top || "50%") / 100;
3025
3025
  t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${C}, 100%, 50%))`;
3026
- const L = b, H = 1 - w, $ = this.hsvToHex(C, L, H);
3026
+ const L = b, H = 1 - x, $ = this.hsvToHex(C, L, H);
3027
3027
  y($, f);
3028
3028
  }, U = (C) => {
3029
3029
  C.stopPropagation();
3030
- const b = t.getBoundingClientRect(), w = Math.max(0, Math.min(1, (C.clientX - b.left) / b.width)), L = Math.max(0, Math.min(1, (C.clientY - b.top) / b.height));
3031
- e.style.left = `${w * 100}%`, e.style.top = `${L * 100}%`, V(w, 1 - L);
3030
+ const b = t.getBoundingClientRect(), x = Math.max(0, Math.min(1, (C.clientX - b.left) / b.width)), L = Math.max(0, Math.min(1, (C.clientY - b.top) / b.height));
3031
+ e.style.left = `${x * 100}%`, e.style.top = `${L * 100}%`, V(x, 1 - L);
3032
3032
  }, I = (C) => {
3033
3033
  C.preventDefault(), C.stopPropagation(), U(C);
3034
- const b = (L) => U(L), w = () => {
3035
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
3034
+ const b = (L) => U(L), x = () => {
3035
+ document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x);
3036
3036
  };
3037
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
3037
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", x);
3038
3038
  }, E = (C) => {
3039
3039
  C.stopPropagation();
3040
3040
  const b = i.getBoundingClientRect();
3041
- let w = (C.clientX - b.left) / b.width;
3042
- w = Math.max(1e-3, Math.min(0.998, w)), s.style.left = `${w * 100}%`;
3043
- const L = w * 360;
3041
+ let x = (C.clientX - b.left) / b.width;
3042
+ x = Math.max(1e-3, Math.min(0.998, x)), s.style.left = `${x * 100}%`;
3043
+ const L = x * 360;
3044
3044
  z(L);
3045
3045
  }, k = (C) => {
3046
3046
  C.preventDefault(), C.stopPropagation(), E(C);
3047
- const b = (L) => E(L), w = () => {
3048
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
3047
+ const b = (L) => E(L), x = () => {
3048
+ document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x);
3049
3049
  };
3050
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
3050
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", x);
3051
3051
  }, P = (C) => {
3052
- const b = C.target.value, w = n.value;
3052
+ const b = C.target.value, x = n.value;
3053
3053
  let L = "";
3054
- if (w === "hex" && /^#[0-9A-Fa-f]{6}$/.test(b))
3054
+ if (x === "hex" && /^#[0-9A-Fa-f]{6}$/.test(b))
3055
3055
  L = b;
3056
- else if (w === "rgb") {
3056
+ else if (x === "rgb") {
3057
3057
  const H = b.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
3058
3058
  if (H) {
3059
3059
  const $ = parseInt(H[1]), R = parseInt(H[2]), B = parseInt(H[3]);
3060
3060
  $ <= 255 && R <= 255 && B <= 255 && (L = `#${$.toString(16).padStart(2, "0")}${R.toString(16).padStart(2, "0")}${B.toString(16).padStart(2, "0")}`);
3061
3061
  }
3062
- } else if (w === "hsl") {
3062
+ } else if (x === "hsl") {
3063
3063
  const H = b.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
3064
3064
  if (H) {
3065
3065
  const $ = parseInt(H[1]), R = parseInt(H[2]) / 100, B = parseInt(H[3]) / 100;
@@ -3086,8 +3086,8 @@ class Ot extends S {
3086
3086
  const A = async () => {
3087
3087
  if ("EyeDropper" in window)
3088
3088
  try {
3089
- const w = (await new window.EyeDropper().open()).sRGBHex, { h: L, s: H, v: $ } = this.hexToHsv(w);
3090
- s.style.left = `${L / 360 * 100}%`, e.style.left = `${H * 100}%`, e.style.top = `${(1 - $) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${L}, 100%, 50%))`, y(w, f);
3089
+ const x = (await new window.EyeDropper().open()).sRGBHex, { h: L, s: H, v: $ } = this.hexToHsv(x);
3090
+ s.style.left = `${L / 360 * 100}%`, e.style.left = `${H * 100}%`, e.style.top = `${(1 - $) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${L}, 100%, 50%))`, y(x, f);
3091
3091
  } catch (C) {
3092
3092
  console.log("User cancelled eyedropper or error occurred:", C);
3093
3093
  }
@@ -3105,15 +3105,15 @@ class Ot extends S {
3105
3105
  }
3106
3106
  setupOpacitySlider(t, e, i, s, n) {
3107
3107
  const o = () => {
3108
- const { r: c, g: d, b: h } = this.hexToRgb(i);
3109
- t.style.setProperty("--color-rgb", `${c}, ${d}, ${h}`);
3108
+ const { r: c, g: h, b: d } = this.hexToRgb(i);
3109
+ t.style.setProperty("--color-rgb", `${c}, ${h}, ${d}`);
3110
3110
  }, a = () => {
3111
3111
  e.style.left = `${s}%`;
3112
3112
  };
3113
3113
  o(), a();
3114
3114
  let l = !1;
3115
3115
  const r = (c) => {
3116
- const d = t.getBoundingClientRect(), h = c.clientX - d.left, m = Math.max(0, Math.min(100, h / d.width * 100)), u = Math.round(m);
3116
+ const h = t.getBoundingClientRect(), d = c.clientX - h.left, m = Math.max(0, Math.min(100, d / h.width * 100)), u = Math.round(m);
3117
3117
  s = u, a(), n(i, u);
3118
3118
  };
3119
3119
  t.addEventListener("mousedown", (c) => {
@@ -3159,17 +3159,17 @@ class Ot extends S {
3159
3159
  }), o.addEventListener("input", (f) => {
3160
3160
  const y = f.target.value, v = parseInt(y);
3161
3161
  if (this.value && !isNaN(v)) {
3162
- const x = Math.max(0, Math.min(360, v));
3163
- this.value.angle = x, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3162
+ const w = Math.max(0, Math.min(360, v));
3163
+ this.value.angle = w, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3164
3164
  }
3165
3165
  }), o.addEventListener("focus", (f) => {
3166
3166
  const y = f.target;
3167
3167
  y.value = y.value.replace(/[^0-9-]/g, ""), setTimeout(() => y.select(), 0);
3168
3168
  }), o.addEventListener("blur", (f) => {
3169
- var x;
3169
+ var w;
3170
3170
  const y = f.target;
3171
3171
  let v = parseInt(y.value);
3172
- isNaN(v) && (v = ((x = this.value) == null ? void 0 : x.angle) ?? 0), v = Math.max(0, Math.min(360, v)), this.value && (this.value.angle = v), y.value = `${v}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3172
+ isNaN(v) && (v = ((w = this.value) == null ? void 0 : w.angle) ?? 0), v = Math.max(0, Math.min(360, v)), this.value && (this.value.angle = v), y.value = `${v}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3173
3173
  }), l.addEventListener("click", () => {
3174
3174
  this.value && (this.value.stops = this.value.stops.map((f) => ({
3175
3175
  ...f,
@@ -3181,23 +3181,23 @@ class Ot extends S {
3181
3181
  })();
3182
3182
  const c = document.createElement("div");
3183
3183
  c.className = "gradient-preview", this.updateGradientPreview(c);
3184
- const d = document.createElement("div");
3185
- d.className = "gradient-handles", this.createGradientHandles(d, c), c.appendChild(d), t.appendChild(c);
3186
3184
  const h = document.createElement("div");
3187
- h.className = "gradient-stops-header";
3185
+ h.className = "gradient-handles", this.createGradientHandles(h, c), c.appendChild(h), t.appendChild(c);
3186
+ const d = document.createElement("div");
3187
+ d.className = "gradient-stops-header";
3188
3188
  const m = document.createElement("span");
3189
3189
  m.textContent = "Stops";
3190
3190
  const u = document.createElement("button");
3191
- u.type = "button", u.className = "gradient-add-stop", u.textContent = "+", h.appendChild(m), h.appendChild(u);
3191
+ u.type = "button", u.className = "gradient-add-stop", u.textContent = "+", d.appendChild(m), d.appendChild(u);
3192
3192
  const g = document.createElement("div");
3193
- g.className = "gradient-stops", t.appendChild(h), t.appendChild(g), this.updateStopsList(g), u.addEventListener("click", () => {
3194
- this.addGradientStop(), this.updateStopsList(g), this.updateGradientPreview(c), this.createGradientHandles(d, c), this.updateUI();
3193
+ g.className = "gradient-stops", t.appendChild(d), t.appendChild(g), this.updateStopsList(g), u.addEventListener("click", () => {
3194
+ this.addGradientStop(), this.updateStopsList(g), this.updateGradientPreview(c), this.createGradientHandles(h, c), this.updateUI();
3195
3195
  });
3196
3196
  }
3197
3197
  updateGradientPreview(t) {
3198
3198
  var i;
3199
3199
  const e = t || ((i = this.popoverElement) == null ? void 0 : i.querySelector(".gradient-preview"));
3200
- e && this.value && (e.style.background = this.generateCSS(this.value));
3200
+ e && this.value && (e.style.background = this.generateCSS(this.getSafeValue()));
3201
3201
  }
3202
3202
  createGradientHandles(t, e) {
3203
3203
  t.innerHTML = "", !(!this.value || this.value.type === "solid" || !this.value.stops) && this.value.stops.forEach((i, s) => {
@@ -3209,21 +3209,21 @@ class Ot extends S {
3209
3209
  }
3210
3210
  makeDraggable(t, e, i) {
3211
3211
  let s = !1, n = 0, o = 0, a = null;
3212
- const l = (h) => "touches" in h && h.touches.length > 0 ? h.touches[0].clientX : h.clientX, r = (h) => {
3212
+ const l = (d) => "touches" in d && d.touches.length > 0 ? d.touches[0].clientX : d.clientX, r = (d) => {
3213
3213
  var m, u, g;
3214
- s = !0, n = l(h), o = ((g = (u = (m = this.value) == null ? void 0 : m.stops) == null ? void 0 : u[i]) == null ? void 0 : g.position) || 0, t.classList.add("selected"), document.addEventListener("pointermove", c, { passive: !1 }), document.addEventListener("pointerup", d), document.addEventListener("mousemove", c, { passive: !1 }), document.addEventListener("mouseup", d), document.addEventListener("touchmove", c, {
3214
+ s = !0, n = l(d), o = ((g = (u = (m = this.value) == null ? void 0 : m.stops) == null ? void 0 : u[i]) == null ? void 0 : g.position) || 0, t.classList.add("selected"), document.addEventListener("pointermove", c, { passive: !1 }), document.addEventListener("pointerup", h), document.addEventListener("mousemove", c, { passive: !1 }), document.addEventListener("mouseup", h), document.addEventListener("touchmove", c, {
3215
3215
  passive: !1
3216
- }), document.addEventListener("touchend", d), h.preventDefault();
3217
- }, c = (h) => {
3216
+ }), document.addEventListener("touchend", h), d.preventDefault();
3217
+ }, c = (d) => {
3218
3218
  var y, v;
3219
3219
  if (!s || !((v = (y = this.value) == null ? void 0 : y.stops) != null && v[i])) return;
3220
- const m = e.getBoundingClientRect(), g = (l(h) - n) / m.width * 100;
3220
+ const m = e.getBoundingClientRect(), g = (l(d) - n) / m.width * 100;
3221
3221
  let f = o + g;
3222
3222
  f = Math.max(0, Math.min(100, f)), this.value.stops[i].position = Math.round(f), t.style.left = `${f}%`, a && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
3223
3223
  this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), a = null;
3224
- }), h.preventDefault();
3225
- }, d = () => {
3226
- s && (s = !1, t.classList.remove("selected"), a && (cancelAnimationFrame(a), a = null), this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), this.triggerChange(), document.removeEventListener("pointermove", c), document.removeEventListener("pointerup", d), document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", d), document.removeEventListener("touchmove", c), document.removeEventListener("touchend", d));
3224
+ }), d.preventDefault();
3225
+ }, h = () => {
3226
+ s && (s = !1, t.classList.remove("selected"), a && (cancelAnimationFrame(a), a = null), this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), this.triggerChange(), document.removeEventListener("pointermove", c), document.removeEventListener("pointerup", h), document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", h), document.removeEventListener("touchmove", c), document.removeEventListener("touchend", h));
3227
3227
  };
3228
3228
  t.addEventListener("pointerdown", r), t.addEventListener("mousedown", r), t.addEventListener("touchstart", r, {
3229
3229
  passive: !1
@@ -3244,12 +3244,12 @@ class Ot extends S {
3244
3244
  r.className = "gstop-color-container";
3245
3245
  const c = document.createElement("div");
3246
3246
  c.className = "gstop-color-preview", c.style.backgroundColor = s.color;
3247
- const d = document.createElement("input");
3248
- d.type = "text", d.className = "gstop-color-input", d.value = s.color.replace("#", "").toUpperCase();
3249
- const h = document.createElement("button");
3250
- h.type = "button", h.className = "gstop-color-copy", h.innerHTML = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3247
+ const h = document.createElement("input");
3248
+ h.type = "text", h.className = "gstop-color-input", h.value = s.color.replace("#", "").toUpperCase();
3249
+ const d = document.createElement("button");
3250
+ d.type = "button", d.className = "gstop-color-copy", d.innerHTML = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3251
3251
  <path d="M14.5896 19.3033L13.4111 20.4818C11.7839 22.109 9.14575 22.109 7.51856 20.4818C5.89138 18.8546 5.89138 16.2164 7.51856 14.5892L8.69708 13.4107M19.3037 14.5892L20.4822 13.4107C22.1094 11.7835 22.1094 9.14535 20.4822 7.51816C18.855 5.89098 16.2168 5.89098 14.5896 7.51816L13.4111 8.69668M11.0837 16.9166L16.917 11.0833" stroke="#919EAB" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
3252
- </svg>`, r.appendChild(c), r.appendChild(d), r.appendChild(h);
3252
+ </svg>`, r.appendChild(c), r.appendChild(h), r.appendChild(d);
3253
3253
  const m = document.createElement("button");
3254
3254
  m.type = "button", m.className = "gstop-del", m.innerHTML = `<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
3255
3255
  <path d="M0.8 0.800003H12.4667" stroke="#919EAB" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
@@ -3282,7 +3282,7 @@ class Ot extends S {
3282
3282
  const u = new Pt(
3283
3283
  (I, E) => {
3284
3284
  var k, P, O;
3285
- if (d.value = I.replace("#", "").toUpperCase(), c.style.backgroundColor = I, this.value) {
3285
+ if (h.value = I.replace("#", "").toUpperCase(), c.style.backgroundColor = I, this.value) {
3286
3286
  this.value.stops[n].color = I, E !== void 0 && (this.value.stops[n].opacity = E);
3287
3287
  const T = (k = o.parentElement) == null ? void 0 : k.querySelector(
3288
3288
  ".gstop-opacity-slider"
@@ -3309,9 +3309,9 @@ class Ot extends S {
3309
3309
  }
3310
3310
  }
3311
3311
  );
3312
- d.addEventListener("click", (I) => {
3313
- I.stopPropagation(), u.open(s.color, d, s.opacity || 100);
3314
- }), d.addEventListener("input", (I) => {
3312
+ h.addEventListener("click", (I) => {
3313
+ I.stopPropagation(), u.open(s.color, h, s.opacity || 100);
3314
+ }), h.addEventListener("input", (I) => {
3315
3315
  var P, O;
3316
3316
  const E = I.target.value.trim(), k = E.startsWith("#") ? E : `#${E}`;
3317
3317
  if (/^#[0-9A-Fa-f]{6}$/.test(k) && (c.style.backgroundColor = k, this.value)) {
@@ -3333,16 +3333,16 @@ class Ot extends S {
3333
3333
  );
3334
3334
  M && A && this.createGradientHandles(A, M), this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3335
3335
  }
3336
- }), h.addEventListener("click", async (I) => {
3336
+ }), d.addEventListener("click", async (I) => {
3337
3337
  I.stopPropagation();
3338
- const E = `#${d.value}`;
3338
+ const E = `#${h.value}`;
3339
3339
  try {
3340
3340
  await navigator.clipboard.writeText(E);
3341
- const k = h.innerHTML;
3342
- h.innerHTML = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3341
+ const k = d.innerHTML;
3342
+ d.innerHTML = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3343
3343
  <path d="M9.3335 14L12.2502 16.9167L18.6668 10.5" stroke="#00A76F" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
3344
3344
  </svg>`, setTimeout(() => {
3345
- h.innerHTML = k;
3345
+ d.innerHTML = k;
3346
3346
  }, 1e3);
3347
3347
  } catch (k) {
3348
3348
  console.warn("Failed to copy color to clipboard:", k);
@@ -3367,10 +3367,10 @@ class Ot extends S {
3367
3367
  y.className = "gstop-opacity-group";
3368
3368
  const v = document.createElement("input");
3369
3369
  v.type = "range", v.className = "gstop-opacity-slider", v.min = "0", v.max = "100", v.value = (s.opacity !== void 0 ? s.opacity : 100).toString();
3370
- const x = this.hexToRgb(s.color);
3370
+ const w = this.hexToRgb(s.color);
3371
3371
  v.style.setProperty(
3372
3372
  "--slider-color",
3373
- `rgb(${x.r}, ${x.g}, ${x.b})`
3373
+ `rgb(${w.r}, ${w.g}, ${w.b})`
3374
3374
  );
3375
3375
  const V = document.createElement("span");
3376
3376
  V.className = "gstop-opacity-value", V.textContent = `${s.opacity !== void 0 ? s.opacity : 100}%`;
@@ -3485,8 +3485,8 @@ class Ot extends S {
3485
3485
  /hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%\s*(?:,\s*([\d.]+))?\s*\)/
3486
3486
  );
3487
3487
  if (s) {
3488
- const n = parseFloat(s[1]), o = parseFloat(s[2]) / 100, a = parseFloat(s[3]) / 100, l = s[4] ? parseFloat(s[4]) : 1, { r, g: c, b: d } = this.hslToRgb(n, o, a);
3489
- return { color: `#${r.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}`, position: 0, opacity: Math.round(l * 100) };
3488
+ const n = parseFloat(s[1]), o = parseFloat(s[2]) / 100, a = parseFloat(s[3]) / 100, l = s[4] ? parseFloat(s[4]) : 1, { r, g: c, b: h } = this.hslToRgb(n, o, a);
3489
+ return { color: `#${r.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${h.toString(16).padStart(2, "0")}`, position: 0, opacity: Math.round(l * 100) };
3490
3490
  }
3491
3491
  return { color: e, position: 0, opacity: 100 };
3492
3492
  }
@@ -3598,8 +3598,8 @@ class Ot extends S {
3598
3598
  let o = "", a = 0;
3599
3599
  const l = n.match(/^(.+?)\s+(\d+(?:\.\d+)?)%?\s*$/);
3600
3600
  if (l) {
3601
- const c = l[1].trim(), d = parseFloat(l[2]);
3602
- this.isValidColorFormat(c) ? (o = c, a = d) : (o = n, a = t.length === 1 ? 0 : s / (t.length - 1) * 100);
3601
+ const c = l[1].trim(), h = parseFloat(l[2]);
3602
+ this.isValidColorFormat(c) ? (o = c, a = h) : (o = n, a = t.length === 1 ? 0 : s / (t.length - 1) * 100);
3603
3603
  } else
3604
3604
  o = n, a = t.length === 1 ? 0 : s / (t.length - 1) * 100;
3605
3605
  const r = this.parseColorWithOpacity(o);
@@ -3626,26 +3626,26 @@ class Ot extends S {
3626
3626
  }
3627
3627
  getValue() {
3628
3628
  return this.value ? this.forText ? {
3629
- background: this.generateCSS(this.value),
3629
+ background: this.generateCSS(this.getSafeValue()),
3630
3630
  "-webkit-background-clip": "text",
3631
3631
  "background-clip": "text",
3632
3632
  color: "transparent",
3633
3633
  "-webkit-text-fill-color": "transparent"
3634
- } : this.generateCSS(this.value) : this.forText ? {} : "";
3634
+ } : this.generateCSS(this.getSafeValue()) : this.forText ? {} : "";
3635
3635
  }
3636
3636
  getCSSValue() {
3637
- return this.value ? this.generateCSS(this.value) : "";
3637
+ return this.value ? this.generateCSS(this.getSafeValue()) : "";
3638
3638
  }
3639
3639
  // Add method to get the raw object value if needed
3640
3640
  getRawValue() {
3641
3641
  return this.value;
3642
3642
  }
3643
3643
  }
3644
- const $t = `
3644
+ const Ot = `
3645
3645
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3646
3646
  <path d="M5.625 9.5H5.6325M12.375 9.5H12.3825M9 9.5H9.0075M9 12.875H9.0075M9 6.125H9.0075M2.25 6.35L2.25 12.65C2.25 13.9101 2.25 14.5402 2.49524 15.0215C2.71095 15.4448 3.05516 15.789 3.47852 16.0048C3.95982 16.25 4.58988 16.25 5.85 16.25H12.15C13.4101 16.25 14.0402 16.25 14.5215 16.0048C14.9448 15.789 15.289 15.4448 15.5048 15.0215C15.75 14.5402 15.75 13.9101 15.75 12.65V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75L5.85 2.75C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35Z" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3647
3647
  </svg>
3648
- `, At = `
3648
+ `, $t = `
3649
3649
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3650
3650
  <path d="M6 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V6.5M6 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V12.5M15.75 6.5V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H12M15.75 12.5V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H12" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3651
3651
  </svg>
@@ -3658,7 +3658,7 @@ class ne extends G {
3658
3658
  settings: {
3659
3659
  size: new D({
3660
3660
  title: "Size",
3661
- icon: At,
3661
+ icon: $t,
3662
3662
  default: (t == null ? void 0 : t.size) ?? 0,
3663
3663
  suffix: "px"
3664
3664
  }),
@@ -3667,7 +3667,7 @@ class ne extends G {
3667
3667
  }),
3668
3668
  radius: new D({
3669
3669
  title: "Radius",
3670
- icon: $t,
3670
+ icon: Ot,
3671
3671
  default: (t == null ? void 0 : t.radius) ?? 12,
3672
3672
  suffix: "px"
3673
3673
  })
@@ -3686,15 +3686,15 @@ class ne extends G {
3686
3686
  `;
3687
3687
  }
3688
3688
  }
3689
- const Bt = `
3689
+ const At = `
3690
3690
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
3691
3691
  <path d="M1 2.75C1 2.05109 1 1.70163 1.11418 1.42597C1.26642 1.05843 1.55843 0.766422 1.92597 0.614181C2.20163 0.5 2.55109 0.5 3.25 0.5H10.75C11.4489 0.5 11.7984 0.5 12.074 0.614181C12.4416 0.766422 12.7336 1.05843 12.8858 1.42597C13 1.70163 13 2.05109 13 2.75M4.75 12.5H9.25M7 0.5V12.5" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3692
3692
  </svg>
3693
- `, Ft = `
3693
+ `, Bt = `
3694
3694
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3695
3695
  <path d="M3 5.75C3 5.05109 3 4.70163 3.11418 4.42597C3.26642 4.05843 3.55843 3.76642 3.92597 3.61418C4.20163 3.5 4.55109 3.5 5.25 3.5H12.75C13.4489 3.5 13.7984 3.5 14.074 3.61418C14.4416 3.76642 14.7336 4.05843 14.8858 4.42597C15 4.70163 15 5.05109 15 5.75M6 15.5H12M7.6875 3.5V15.5M10.3125 3.5V15.5" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3696
3696
  </svg>
3697
- `, Dt = `
3697
+ `, Ft = `
3698
3698
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3699
3699
  <path d="M6 5.75H12M9 5.75V13.25M5.85 16.25H12.15C13.4101 16.25 14.0402 16.25 14.5215 16.0048C14.9448 15.789 15.289 15.4448 15.5048 15.0215C15.75 14.5402 15.75 13.9101 15.75 12.65V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V12.65C2.25 13.9101 2.25 14.5402 2.49524 15.0215C2.71095 15.4448 3.05516 15.789 3.47852 16.0048C3.95982 16.25 4.58988 16.25 5.85 16.25Z" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3700
3700
  </svg>
@@ -3706,14 +3706,13 @@ class oe extends G {
3706
3706
  title: i.title || "Typography",
3707
3707
  collapsed: i.collapsed,
3708
3708
  settings: (() => {
3709
- const s = i.gradientDefault || i.colorDefault, n = {
3710
- color: new Ot({
3711
- forText: !0,
3712
- default: s
3709
+ const s = {
3710
+ color: new W({
3711
+ default: i.colorDefault ?? "0, 0, 30"
3713
3712
  }),
3714
3713
  fontFamily: new et({
3715
3714
  title: "Font",
3716
- icon: Bt,
3715
+ icon: At,
3717
3716
  default: i.fontFamilyDefault ?? "Satoshi",
3718
3717
  options: i.fontFamilyOptions ?? [
3719
3718
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -3726,7 +3725,7 @@ class oe extends G {
3726
3725
  }),
3727
3726
  fontWeight: new et({
3728
3727
  title: "Weight",
3729
- icon: Ft,
3728
+ icon: Bt,
3730
3729
  default: i.fontWeightDefault ?? "400",
3731
3730
  options: i.fontWeightOptions ?? [
3732
3731
  { name: "Regular", value: "400" },
@@ -3738,41 +3737,32 @@ class oe extends G {
3738
3737
  }),
3739
3738
  fontSize: new D({
3740
3739
  title: "Size",
3741
- icon: Dt,
3740
+ icon: Ft,
3742
3741
  default: i.fontSizeDefault ?? 12,
3743
3742
  suffix: "px",
3744
3743
  mobile: i.fontSizeMobileDefault
3745
3744
  })
3746
3745
  };
3747
3746
  return e ? {
3748
- ...n,
3747
+ ...s,
3749
3748
  align: new bt({
3750
3749
  title: "Align",
3751
3750
  default: i.alignDefault ?? "center"
3752
3751
  })
3753
- } : n;
3752
+ } : s;
3754
3753
  })()
3755
3754
  });
3756
3755
  }
3757
3756
  getCssCode() {
3758
- var a;
3759
- const t = this.settings.color.getCSSValue() ?? "rgba(0, 0, 0, 1)", e = this.settings.fontFamily.value ?? "Satoshi", i = this.settings.fontWeight.value ?? "400", s = this.settings.fontSize.value ?? 12, n = ((a = this.settings.align) == null ? void 0 : a.value) ?? "left";
3760
- return t.includes("gradient") ? `
3761
- background: ${t};
3762
- -webkit-background-clip: text;
3763
- -webkit-text-fill-color: transparent;
3764
- background-clip: text;
3765
- font-family: ${e};
3766
- font-weight: ${i};
3767
- font-size: ${s}px;
3768
- text-align: ${n};
3769
- ` : `
3770
- color: ${t};
3771
- font-family: ${e};
3772
- font-weight: ${i};
3773
- font-size: ${s}px;
3774
- text-align: ${n};
3775
- `;
3757
+ var o;
3758
+ const t = this.settings.color.value ?? "#000000", e = this.settings.fontFamily.value ?? "Satoshi", i = this.settings.fontWeight.value ?? "bold", s = this.settings.fontSize.value ?? 12, n = ((o = this.settings.align) == null ? void 0 : o.value) ?? "left";
3759
+ return `
3760
+ color: ${t};
3761
+ font-family: ${e};
3762
+ font-weight: ${i};
3763
+ font-size: ${s}px;
3764
+ text-align: ${n};
3765
+ `;
3776
3766
  }
3777
3767
  }
3778
3768
  class J extends S {
@@ -3829,25 +3819,25 @@ class ae extends G {
3829
3819
  settings: {
3830
3820
  marginTop: new J({
3831
3821
  title: "Top",
3832
- icon: Rt,
3822
+ icon: Dt,
3833
3823
  suffix: "px",
3834
3824
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
3835
3825
  }),
3836
3826
  marginRight: new J({
3837
3827
  title: "Right",
3838
- icon: Gt,
3828
+ icon: Rt,
3839
3829
  suffix: "px",
3840
3830
  default: (t == null ? void 0 : t.marginRight) ?? 0
3841
3831
  }),
3842
3832
  marginBottom: new J({
3843
3833
  title: "Bottom",
3844
- icon: Wt,
3834
+ icon: Gt,
3845
3835
  suffix: "px",
3846
3836
  default: (t == null ? void 0 : t.marginBottom) ?? 0
3847
3837
  }),
3848
3838
  marginLeft: new J({
3849
3839
  title: "Left",
3850
- icon: zt,
3840
+ icon: Wt,
3851
3841
  suffix: "px",
3852
3842
  default: (t == null ? void 0 : t.marginLeft) ?? 0
3853
3843
  })
@@ -3864,13 +3854,13 @@ class ae extends G {
3864
3854
  `;
3865
3855
  }
3866
3856
  }
3867
- const Rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3857
+ const Dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3868
3858
  <path d="M2.25 16.25H2.2575M2.25 9.5H2.2575M2.25 12.875H2.2575M2.25 6.125H2.2575M5.625 16.25H5.6325M5.625 9.5H5.6325M12.375 16.25H12.3825M12.375 9.5H12.3825M9 16.25H9.0075M9 9.5H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 16.25H15.7575M15.75 9.5H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M15.75 2.75H2.25" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3869
- </svg>`, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3859
+ </svg>`, Rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3870
3860
  <path d="M5.625 2.75H5.6325M5.625 9.5H5.6325M5.625 16.25H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M12.375 16.25H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 16.25H9.0075M9 12.875H9.0075M9 6.125H9.0075M2.25 2.75H2.2575M2.25 9.5H2.2575M2.25 16.25H2.2575M2.25 12.875H2.2575M2.25 6.125H2.2575M15.75 16.25V2.75" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3871
- </svg>`, Wt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3861
+ </svg>`, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3872
3862
  <path d="M2.25 2.75H2.2575M2.25 9.5H2.2575M2.25 12.875H2.2575M2.25 6.125H2.2575M5.625 2.75H5.6325M5.625 9.5H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 2.75H15.7575M15.75 9.5H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M15.75 16.25H2.25" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3873
- </svg>`, zt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3863
+ </svg>`, Wt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3874
3864
  <path d="M5.625 2.75H5.6325M5.625 9.5H5.6325M5.625 16.25H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M12.375 16.25H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 16.25H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 2.75H15.7575M15.75 9.5H15.7575M15.75 16.25H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M2.25 16.25V2.75" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
3875
3865
  </svg>`;
3876
3866
  class le extends G {
@@ -3914,37 +3904,37 @@ class le extends G {
3914
3904
  }
3915
3905
  export {
3916
3906
  bt as AlignSetting,
3917
- se as AnimationSetting,
3907
+ ie as AnimationSetting,
3918
3908
  le as BackgroundSettingSet,
3919
3909
  ne as BorderSettingSet,
3920
- qt as ButtonSetting,
3910
+ _t as ButtonSetting,
3921
3911
  F as ColorSetting,
3922
3912
  W as ColorWithOpacitySetting,
3923
- Jt as DimensionSetting,
3924
- Qt as GapSetting,
3925
- Ot as GradientSetting,
3913
+ qt as DimensionSetting,
3914
+ Kt as GapSetting,
3915
+ se as GradientSetting,
3926
3916
  oe as HeaderTypographySettingSet,
3927
- Zt as HeightSetting,
3928
- _t as HtmlSetting,
3929
- te as MarginBottomSetting,
3917
+ Jt as HeightSetting,
3918
+ jt as HtmlSetting,
3919
+ Qt as MarginBottomSetting,
3930
3920
  ae as MarginSettingGroup,
3931
- ee as MarginTopSetting,
3932
- ie as MultiLanguageSetting,
3921
+ te as MarginTopSetting,
3922
+ ee as MultiLanguageSetting,
3933
3923
  D as NumberSetting,
3934
3924
  yt as OpacitySetting,
3935
- Yt as SelectApiSettings,
3925
+ Xt as SelectApiSettings,
3936
3926
  et as SelectSetting,
3937
3927
  S as Setting,
3938
3928
  G as SettingGroup,
3939
3929
  mt as StringSetting,
3940
3930
  ut as TabSettingGroup,
3941
3931
  ut as TabsSettingGroup,
3942
- Kt as Toggle,
3932
+ Yt as Toggle,
3943
3933
  at as UploadSetting,
3944
- Xt as WidthSetting,
3945
- jt as asSettingGroupWithSettings,
3934
+ Zt as WidthSetting,
3935
+ Ut as asSettingGroupWithSettings,
3946
3936
  gt as createSettingGroup,
3947
- Ut as createTabSettingGroup,
3937
+ zt as createTabSettingGroup,
3948
3938
  j as isSetting,
3949
3939
  st as isSettingChild,
3950
3940
  N as isSettingGroup,