builder-settings-types 0.0.210 → 0.0.211

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.
@@ -5,7 +5,7 @@ let M = (c = 21) => {
5
5
  t += V[e[c] & 63];
6
6
  return t;
7
7
  };
8
- function b(c) {
8
+ function L(c) {
9
9
  if (c === null || typeof c != "object")
10
10
  return c;
11
11
  if (c instanceof Date)
@@ -13,12 +13,12 @@ function b(c) {
13
13
  if (Array.isArray(c)) {
14
14
  const i = [];
15
15
  for (let s = 0; s < c.length; s++)
16
- i[s] = b(c[s]);
16
+ i[s] = L(c[s]);
17
17
  return i;
18
18
  }
19
19
  const t = {};
20
20
  for (const i in c)
21
- Object.prototype.hasOwnProperty.call(c, i) && (t[i] = b(c[i]));
21
+ Object.prototype.hasOwnProperty.call(c, i) && (t[i] = L(c[i]));
22
22
  const e = Object.getPrototypeOf(c);
23
23
  return e !== Object.prototype && Object.setPrototypeOf(t, e), t;
24
24
  }
@@ -60,30 +60,30 @@ class p {
60
60
  this.value = t, this.inputEl && (this.inputEl.value = String(t)), this.onChange && this.onChange(t), this.props.detectChange && this.props.detectChange(t);
61
61
  }
62
62
  clone() {
63
- const t = this.constructor, e = b(this.props), i = new t(e);
64
- return i.value = b(this.value), i;
63
+ const t = this.constructor, e = L(this.props), i = new t(e);
64
+ return i.value = L(this.value), i;
65
65
  }
66
66
  createInput(t) {
67
67
  t = { ...this.props.inputProps, ...t };
68
68
  const e = document.createElement("div");
69
69
  if (e.className = t.wrapperClassName || "", t.title || t.icon) {
70
- const a = document.createElement("div");
71
- if (a.className = "icon-container", t.icon) {
70
+ const o = document.createElement("div");
71
+ if (o.className = "icon-container", t.icon) {
72
72
  const l = this.createIcon(t.icon, t.iconClassName);
73
- a.appendChild(l);
73
+ o.appendChild(l);
74
74
  }
75
75
  if (t.title) {
76
76
  const l = this.createLabel(t.title, t.labelClassName);
77
- a.appendChild(l);
77
+ o.appendChild(l);
78
78
  }
79
- e.appendChild(a);
79
+ e.appendChild(o);
80
80
  }
81
81
  const i = document.createElement("div");
82
82
  i.className = t.wrapperClassName || "";
83
83
  const s = document.createElement("input");
84
84
  this.inputEl = s, s.value = String(t.value || N(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "";
85
- const n = (a) => {
86
- const l = a.target;
85
+ const n = (o) => {
86
+ const l = o.target;
87
87
  let h = l.value;
88
88
  switch (t.inputType) {
89
89
  case "number":
@@ -108,10 +108,10 @@ class p {
108
108
  h = l.value;
109
109
  }
110
110
  this.value = h, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
111
- }, o = (a) => {
112
- a.target, this.onBlur && this.onBlur(this.value);
111
+ }, a = (o) => {
112
+ o.target, this.onBlur && this.onBlur(this.value);
113
113
  };
114
- return s.addEventListener("input", n), s.addEventListener("change", n), s.addEventListener("blur", o), t.inputCustomizer && t.inputCustomizer(s), i.appendChild(s), e.appendChild(i), e;
114
+ return s.addEventListener("input", n), s.addEventListener("change", n), s.addEventListener("blur", a), t.inputCustomizer && t.inputCustomizer(s), i.appendChild(s), e.appendChild(i), e;
115
115
  }
116
116
  createLabel(t, e) {
117
117
  const i = document.createElement("span");
@@ -280,20 +280,20 @@ const g = class g {
280
280
  return this.changeHandlers.clear(), w(this.settings, (i, s) => {
281
281
  var n;
282
282
  if (s instanceof g)
283
- s.setOnChange((o) => {
284
- const a = this.getValues();
285
- this.initialValues = a, t(a);
283
+ s.setOnChange((a) => {
284
+ const o = this.getValues();
285
+ this.initialValues = o, t(o);
286
286
  }), this.changeHandlers.add(() => t(this.getValues()));
287
287
  else if (s instanceof p) {
288
- const o = () => {
288
+ const a = () => {
289
289
  e();
290
290
  };
291
- this.changeHandlers.add(o), s.setOnChange(o);
291
+ this.changeHandlers.add(a), s.setOnChange(a);
292
292
  } else {
293
- const o = () => {
293
+ const a = () => {
294
294
  e();
295
295
  };
296
- this.changeHandlers.add(o), (n = s.setOnChange) == null || n.call(s, o);
296
+ this.changeHandlers.add(a), (n = s.setOnChange) == null || n.call(s, a);
297
297
  }
298
298
  }), this;
299
299
  }
@@ -379,10 +379,10 @@ const g = class g {
379
379
  ...Object.keys(t),
380
380
  ...Object.keys(e)
381
381
  ])).forEach((n) => {
382
- const o = t[n], a = e[n];
383
- JSON.stringify(o) !== JSON.stringify(a) && (i[n] = {
384
- from: o,
385
- to: a
382
+ const a = t[n], o = e[n];
383
+ JSON.stringify(a) !== JSON.stringify(o) && (i[n] = {
384
+ from: a,
385
+ to: o
386
386
  });
387
387
  }), i;
388
388
  }
@@ -488,45 +488,45 @@ const g = class g {
488
488
  </svg>
489
489
  `, r.title = this.description, n.appendChild(r);
490
490
  }
491
- const o = document.createElement("span");
492
- o.className = "setting-group-arrow", o.innerHTML = `
491
+ const a = document.createElement("span");
492
+ a.className = "setting-group-arrow", a.innerHTML = `
493
493
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
494
494
  <path d="M4 6L8 10L12 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
495
495
  </svg>
496
- `, this.isCollapsed && o.classList.add("rotated"), n.appendChild(o);
497
- const a = document.createElement("div");
498
- if (a.className = "setting-group-content", this.isCollapsed && (a.classList.add("collapsed"), e.classList.add("collapsed-view"), o.classList.add("rotated"), t.classList.add("collapsed")), this.isMain && a.classList.add("main-content"), this.description && !this.isCollapsed) {
496
+ `, this.isCollapsed && a.classList.add("rotated"), n.appendChild(a);
497
+ const o = document.createElement("div");
498
+ if (o.className = "setting-group-content", this.isCollapsed && (o.classList.add("collapsed"), e.classList.add("collapsed-view"), a.classList.add("rotated"), t.classList.add("collapsed")), this.isMain && o.classList.add("main-content"), this.description && !this.isCollapsed) {
499
499
  const r = document.createElement("div");
500
- r.className = "setting-group-description", r.textContent = this.description, a.appendChild(r);
500
+ r.className = "setting-group-description", r.textContent = this.description, o.appendChild(r);
501
501
  }
502
502
  const l = () => {
503
- this.isCollapsed = !this.isCollapsed, a.classList.toggle("collapsed"), e.classList.toggle("collapsed-view"), o.classList.toggle("rotated"), t.classList.toggle("collapsed", this.isCollapsed), e.setAttribute(
503
+ this.isCollapsed = !this.isCollapsed, o.classList.toggle("collapsed"), e.classList.toggle("collapsed-view"), a.classList.toggle("rotated"), t.classList.toggle("collapsed", this.isCollapsed), e.setAttribute(
504
504
  "aria-expanded",
505
505
  (!this.isCollapsed).toString()
506
506
  );
507
- const r = a.querySelector(
507
+ const r = o.querySelector(
508
508
  ".setting-group-description"
509
- ), u = n.querySelector(".info-marker");
509
+ ), d = n.querySelector(".info-marker");
510
510
  if (this.description)
511
511
  if (this.isCollapsed) {
512
- if (r && r.remove(), !u) {
513
- const d = document.createElement("span");
514
- d.className = "info-marker", d.innerHTML = `
512
+ if (r && r.remove(), !d) {
513
+ const u = document.createElement("span");
514
+ u.className = "info-marker", u.innerHTML = `
515
515
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
516
516
  <path d="M8 5.33333V8M8 10.6667H8.00667M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"
517
517
  stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
518
518
  </svg>
519
- `, d.title = this.description, n.insertBefore(d, o);
519
+ `, u.title = this.description, n.insertBefore(u, a);
520
520
  }
521
521
  } else {
522
522
  if (!r) {
523
- const d = document.createElement("div");
524
- d.className = "setting-group-description", d.textContent = this.description, a.insertBefore(
525
- d,
526
- a.firstChild
523
+ const u = document.createElement("div");
524
+ u.className = "setting-group-description", u.textContent = this.description, o.insertBefore(
525
+ u,
526
+ o.firstChild
527
527
  );
528
528
  }
529
- u && u.remove();
529
+ d && d.remove();
530
530
  }
531
531
  };
532
532
  if (e.onclick = l, e.onkeydown = (r) => {
@@ -534,14 +534,14 @@ const g = class g {
534
534
  }, Object.keys(this.settings).length > 0) {
535
535
  for (const r in this.settings)
536
536
  if (this.settings.hasOwnProperty(r)) {
537
- const u = this.settings[r];
538
- u instanceof g && u.setNestingLevel(this.nestingLevel + 1), a.appendChild(u.draw());
537
+ const d = this.settings[r];
538
+ d instanceof g && d.setNestingLevel(this.nestingLevel + 1), o.appendChild(d.draw());
539
539
  }
540
540
  } else {
541
541
  const r = document.createElement("div");
542
- r.className = "setting-group-empty", r.textContent = "No settings in this group", a.appendChild(r);
542
+ r.className = "setting-group-empty", r.textContent = "No settings in this group", o.appendChild(r);
543
543
  }
544
- return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(a), this.elementRef = t, H.trackElement(t), setTimeout(() => {
544
+ return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, H.trackElement(t), setTimeout(() => {
545
545
  this.updateNestingStyles();
546
546
  }, 0), this.pendingBlurHandler && (this.setupBlurHandlers(), this.pendingBlurHandler = null), t;
547
547
  }
@@ -578,10 +578,10 @@ const g = class g {
578
578
  let i = e;
579
579
  const s = Object.keys(this.settings), n = Object.keys(e);
580
580
  if (!s.some(
581
- (a) => n.includes(a)
581
+ (o) => n.includes(o)
582
582
  ) && n.length === 1) {
583
- const a = n[0];
584
- i = e[a];
583
+ const o = n[0];
584
+ i = e[o];
585
585
  }
586
586
  this.setValue(i);
587
587
  } catch (e) {
@@ -591,7 +591,7 @@ const g = class g {
591
591
  };
592
592
  g.hiddenElements = /* @__PURE__ */ new Set();
593
593
  let f = g;
594
- class ht extends f {
594
+ class ct extends f {
595
595
  constructor(t) {
596
596
  super(t);
597
597
  const e = Object.keys(this.settings)[0];
@@ -625,17 +625,17 @@ class ht extends f {
625
625
  s.textContent = this.title, i.appendChild(s);
626
626
  const n = document.createElement("div");
627
627
  n.className = "tabs-header", this.tabsContainer = n;
628
- const o = document.createElement("div");
629
- if (o.className = "tab-content", this.contentContainers = {}, Object.keys(this.settings).forEach((a, l) => {
628
+ const a = document.createElement("div");
629
+ if (a.className = "tab-content", this.contentContainers = {}, Object.keys(this.settings).forEach((o, l) => {
630
630
  const h = document.createElement("button");
631
- h.className = "tab-button", h.type = "button", h.setAttribute("data-tab-id", a), h.textContent = a, h.addEventListener("click", () => this.switchToTab(a)), n.appendChild(h);
631
+ h.className = "tab-button", h.type = "button", h.setAttribute("data-tab-id", o), h.textContent = o, h.addEventListener("click", () => this.switchToTab(o)), n.appendChild(h);
632
632
  const r = document.createElement("div");
633
- r.className = "tab-panel", this.contentContainers[a] = r;
634
- const u = this.settings[a];
635
- u && (u instanceof f && u.setNestingLevel(this.getNestingLevel() + 1), r.appendChild(u.draw())), o.appendChild(r), l === 0 && !this.activeTabId && (this.activeTabId = a);
636
- }), e.appendChild(i), e.appendChild(n), e.appendChild(o), !this.activeTabId) {
637
- const a = Object.keys(this.settings)[0];
638
- this.activeTabId = a || "";
633
+ r.className = "tab-panel", this.contentContainers[o] = r;
634
+ const d = this.settings[o];
635
+ d && (d instanceof f && d.setNestingLevel(this.getNestingLevel() + 1), r.appendChild(d.draw())), a.appendChild(r), l === 0 && !this.activeTabId && (this.activeTabId = o);
636
+ }), e.appendChild(i), e.appendChild(n), e.appendChild(a), !this.activeTabId) {
637
+ const o = Object.keys(this.settings)[0];
638
+ this.activeTabId = o || "";
639
639
  }
640
640
  return this.updateTabUI(), t;
641
641
  }
@@ -643,7 +643,7 @@ class ht extends f {
643
643
  function T(c) {
644
644
  return new f(c);
645
645
  }
646
- function ct(c) {
646
+ function dt(c) {
647
647
  return c;
648
648
  }
649
649
  class A extends p {
@@ -686,11 +686,11 @@ class m extends A {
686
686
  const e = t.split(",").map((r) => parseInt(r.trim()));
687
687
  if (e.length !== 3 || e.some(isNaN))
688
688
  return console.warn(`Invalid RGB value "${t}", using default "#000000"`), "#000000";
689
- 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)), h = (r) => {
690
- const u = r.toString(16);
691
- return u.length === 1 ? "0" + u : u;
689
+ const [i, s, n] = e, a = Math.max(0, Math.min(255, i)), o = Math.max(0, Math.min(255, s)), l = Math.max(0, Math.min(255, n)), h = (r) => {
690
+ const d = r.toString(16);
691
+ return d.length === 1 ? "0" + d : d;
692
692
  };
693
- return `#${h(o)}${h(a)}${h(l)}`;
693
+ return `#${h(a)}${h(o)}${h(l)}`;
694
694
  }
695
695
  setValue(t) {
696
696
  if (t === void 0) {
@@ -728,31 +728,31 @@ class m extends A {
728
728
  const h = l.value.trim();
729
729
  if (!h)
730
730
  return e.classList.remove("error"), !0;
731
- const u = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(h);
732
- return u ? e.classList.remove("error") : e.classList.add("error"), u;
731
+ const d = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(h);
732
+ return d ? e.classList.remove("error") : e.classList.add("error"), d;
733
733
  }, s = document.createElement("input");
734
734
  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.colorInputEl = s;
735
735
  const n = document.createElement("div");
736
736
  n.className = "color-preview";
737
- const o = this.value || "#000000";
738
- n.style.backgroundColor = o;
739
- const a = document.createElement("input");
740
- 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.textInputEl = a, this.textInputEl.addEventListener("input", (l) => {
741
- var r, u;
737
+ const a = this.value || "#000000";
738
+ n.style.backgroundColor = a;
739
+ const o = document.createElement("input");
740
+ return o.type = "text", o.className = "color-text-input", o.value = this.value || "", o.placeholder = "#000000", o.setAttribute("pattern", "#[0-9A-Fa-f]{6}"), o.setAttribute("title", "Enter a hex color value (e.g., #ff0000)"), o.setAttribute("aria-label", "Hex color value"), o.setAttribute("maxlength", "7"), this.textInputEl = o, this.textInputEl.addEventListener("input", (l) => {
741
+ var r, d;
742
742
  let h = l.target.value.trim();
743
743
  if (this.textInputEl && i(this.textInputEl)) {
744
- const d = m.normalizeColorValue(h);
745
- this.value = d, (r = this.onChange) == null || r.call(this, d), (u = this.detectChange) == null || u.call(this, d), this.colorInputEl && (this.colorInputEl.value = d), n.style.backgroundColor = d;
744
+ const u = m.normalizeColorValue(h);
745
+ this.value = u, (r = this.onChange) == null || r.call(this, u), (d = this.detectChange) == null || d.call(this, u), this.colorInputEl && (this.colorInputEl.value = u), n.style.backgroundColor = u;
746
746
  }
747
747
  }), this.colorInputEl.addEventListener("input", (l) => {
748
- var u, d;
748
+ var d, u;
749
749
  const h = l.target.value, r = m.normalizeColorValue(h);
750
- this.value = r, (u = this.onChange) == null || u.call(this, r), (d = this.detectChange) == null || d.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r, e.classList.remove("error");
750
+ this.value = r, (d = this.onChange) == null || d.call(this, r), (u = this.detectChange) == null || u.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r, e.classList.remove("error");
751
751
  }), this.colorInputEl.addEventListener("change", (l) => {
752
- var u, d;
752
+ var d, u;
753
753
  const h = l.target.value, r = m.normalizeColorValue(h);
754
- this.value = r, (u = this.onChange) == null || u.call(this, r), (d = this.detectChange) == null || d.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r;
755
- }), e.appendChild(s), e.appendChild(n), e.appendChild(a), t.appendChild(e), this.element = t, t;
754
+ this.value = r, (d = this.onChange) == null || d.call(this, r), (u = this.detectChange) == null || u.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r;
755
+ }), e.appendChild(s), e.appendChild(n), e.appendChild(o), t.appendChild(e), this.element = t, t;
756
756
  }
757
757
  getElement() {
758
758
  return this.element;
@@ -808,8 +808,8 @@ class C extends p {
808
808
  }
809
809
  updateColorPreview() {
810
810
  if (!this.colorPreviewEl || !this.value) return;
811
- const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), o = parseInt(i.substring(4, 6), 16);
812
- this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${o}, ${e})`;
811
+ const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), a = parseInt(i.substring(4, 6), 16);
812
+ this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${a}, ${e})`;
813
813
  }
814
814
  handleColorChange(t) {
815
815
  const e = this.getOpacityPercent(), i = C.combineColorOpacity(t, e);
@@ -826,41 +826,41 @@ class C extends p {
826
826
  draw() {
827
827
  const t = document.createElement("div");
828
828
  if (t.className = "color-with-opacity-setting-wrapper " + (this.props.wrapperClassName || ""), this.props.title || this.props.icon) {
829
- const o = document.createElement("div");
830
- if (o.className = "icon-container", this.props.icon) {
831
- const a = document.createElement("span");
832
- a.className = "input-icon", a.innerHTML = this.props.icon, o.appendChild(a);
829
+ const a = document.createElement("div");
830
+ if (a.className = "icon-container", this.props.icon) {
831
+ const o = document.createElement("span");
832
+ o.className = "input-icon", o.innerHTML = this.props.icon, a.appendChild(o);
833
833
  }
834
834
  if (this.props.title) {
835
- const a = document.createElement("span");
836
- a.className = "input-label", a.textContent = this.props.title, o.appendChild(a);
835
+ const o = document.createElement("span");
836
+ o.className = "input-label", o.textContent = this.props.title, a.appendChild(o);
837
837
  }
838
- t.appendChild(o);
838
+ t.appendChild(a);
839
839
  }
840
840
  const e = document.createElement("div");
841
- e.className = "color-with-opacity-input-wrapper", this.colorInputEl = document.createElement("input"), this.colorInputEl.type = "color", this.colorInputEl.className = "color-with-opacity-picker", this.colorPreviewEl = document.createElement("div"), this.colorPreviewEl.className = "color-with-opacity-preview", this.textInputEl = document.createElement("input"), this.textInputEl.type = "text", this.textInputEl.className = "color-with-opacity-text-input", this.textInputEl.placeholder = "#000000FF", this.updateInputElements(), this.updateColorPreview(), this.colorInputEl.addEventListener("input", (o) => {
842
- const a = o.target;
843
- this.handleColorChange(a.value), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
844
- }), this.textInputEl.addEventListener("input", (o) => {
845
- const a = o.target;
846
- this.handleTextInput(a.value) ? (this.colorInputEl && (this.colorInputEl.value = this.getRgbColor()), this.updateColorPreview(), e.classList.remove("error")) : a.value.trim() === "" ? e.classList.remove("error") : e.classList.add("error");
847
- }), this.textInputEl.addEventListener("blur", (o) => {
848
- const a = o.target;
849
- a.value.trim() === "" && (a.value = this.value || "#000000FF", e.classList.remove("error"));
841
+ e.className = "color-with-opacity-input-wrapper", this.colorInputEl = document.createElement("input"), this.colorInputEl.type = "color", this.colorInputEl.className = "color-with-opacity-picker", this.colorPreviewEl = document.createElement("div"), this.colorPreviewEl.className = "color-with-opacity-preview", this.textInputEl = document.createElement("input"), this.textInputEl.type = "text", this.textInputEl.className = "color-with-opacity-text-input", this.textInputEl.placeholder = "#000000FF", this.updateInputElements(), this.updateColorPreview(), this.colorInputEl.addEventListener("input", (a) => {
842
+ const o = a.target;
843
+ this.handleColorChange(o.value), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
844
+ }), this.textInputEl.addEventListener("input", (a) => {
845
+ const o = a.target;
846
+ this.handleTextInput(o.value) ? (this.colorInputEl && (this.colorInputEl.value = this.getRgbColor()), this.updateColorPreview(), e.classList.remove("error")) : o.value.trim() === "" ? e.classList.remove("error") : e.classList.add("error");
847
+ }), this.textInputEl.addEventListener("blur", (a) => {
848
+ const o = a.target;
849
+ o.value.trim() === "" && (o.value = this.value || "#000000FF", e.classList.remove("error"));
850
850
  }), this.colorPreviewEl.addEventListener("click", () => {
851
- var o;
852
- (o = this.colorInputEl) == null || o.click();
851
+ var a;
852
+ (a = this.colorInputEl) == null || a.click();
853
853
  }), e.appendChild(this.colorInputEl), e.appendChild(this.colorPreviewEl), e.appendChild(this.textInputEl);
854
854
  const i = document.createElement("div");
855
855
  i.className = "color-with-opacity-opacity-wrapper", this.opacityInputEl = document.createElement("input"), this.opacityInputEl.type = "number", this.opacityInputEl.className = "color-with-opacity-opacity-input", this.opacityInputEl.value = this.getOpacityPercent().toString(), this.opacityInputEl.min = "0", this.opacityInputEl.max = "100", this.opacityInputEl.step = "1", this.opacityInputEl.placeholder = "100";
856
856
  const s = document.createElement("span");
857
- s.className = "color-with-opacity-opacity-suffix", s.textContent = "%", this.opacityInputEl.addEventListener("input", (o) => {
858
- const a = o.target, l = parseFloat(a.value);
857
+ s.className = "color-with-opacity-opacity-suffix", s.textContent = "%", this.opacityInputEl.addEventListener("input", (a) => {
858
+ const o = a.target, l = parseFloat(o.value);
859
859
  isNaN(l) || (this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview());
860
- }), this.opacityInputEl.addEventListener("blur", (o) => {
861
- const a = o.target;
862
- let l = parseFloat(a.value);
863
- isNaN(l) && (l = this.getOpacityPercent()), l = Math.max(0, Math.min(100, l)), a.value = l.toString(), this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
860
+ }), this.opacityInputEl.addEventListener("blur", (a) => {
861
+ const o = a.target;
862
+ let l = parseFloat(o.value);
863
+ isNaN(l) && (l = this.getOpacityPercent()), l = Math.max(0, Math.min(100, l)), o.value = l.toString(), this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
864
864
  }), i.appendChild(this.opacityInputEl), i.appendChild(s);
865
865
  const n = document.createElement("div");
866
866
  return n.className = "color-with-opacity-controls-wrapper", n.appendChild(e), n.appendChild(i), t.appendChild(n), this.element = t, this.updateInputElements(), this.updateColorPreview(), t;
@@ -873,8 +873,8 @@ class C extends p {
873
873
  }
874
874
  getRgbaValue() {
875
875
  if (!this.value) return "rgba(0, 0, 0, 1)";
876
- const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), o = parseInt(i.substring(4, 6), 16);
877
- return `rgba(${s}, ${n}, ${o}, ${e})`;
876
+ const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), a = parseInt(i.substring(4, 6), 16);
877
+ return `rgba(${s}, ${n}, ${a}, ${e})`;
878
878
  }
879
879
  getColorAndOpacity() {
880
880
  return {
@@ -895,20 +895,20 @@ class ut extends p {
895
895
  if (t.className = "html-setting-wrapper " + (this.props.wrapperClassName || ""), this.props.title || this.props.icon) {
896
896
  const n = document.createElement("div");
897
897
  if (n.className = "icon-container", this.props.icon) {
898
- const o = this.createIcon(this.props.icon);
899
- n.appendChild(o);
898
+ const a = this.createIcon(this.props.icon);
899
+ n.appendChild(a);
900
900
  }
901
901
  if (this.props.title) {
902
- const o = this.createLabel(this.props.title);
903
- n.appendChild(o);
902
+ const a = this.createLabel(this.props.title);
903
+ n.appendChild(a);
904
904
  }
905
905
  t.appendChild(n);
906
906
  }
907
907
  const e = document.createElement("textarea");
908
908
  this.textareaEl = e, e.value = this.value || "", e.placeholder = this.props.placeholder || "Paste your HTML here...", e.className = "html-setting-textarea " + (this.props.textareaClassName || ""), e.rows = this.props.rows || 6, this.props.maxLength !== void 0 && (e.maxLength = this.props.maxLength), this.props.className && e.classList.add(this.props.className);
909
909
  const i = (n) => {
910
- const a = n.target.value;
911
- this.value = a, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
910
+ const o = n.target.value;
911
+ this.value = o, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
912
912
  }, s = (n) => {
913
913
  this.onBlur && this.value !== void 0 && this.onBlur(this.value);
914
914
  };
@@ -938,12 +938,12 @@ class v extends p {
938
938
  const i = document.createElement("input");
939
939
  if (i.type = "number", i.className = "number-setting-input " + (this.props.inputClassName || ""), i.value = String(this.value ?? ""), i.placeholder = this.props.placeholder || "", this.props.minValue !== void 0 && (i.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (i.max = String(this.props.maxValue)), this.props.step !== void 0 && (i.step = String(this.props.step)), i.addEventListener("input", () => {
940
940
  const s = this.props.minValue ?? Number.MIN_SAFE_INTEGER, n = this.props.maxValue ?? Number.MAX_SAFE_INTEGER;
941
- let o = Number(i.value);
942
- o < s && (o = s), o > n && (o = n), String(o) !== i.value && (i.value = String(o)), this.setValue(o);
941
+ let a = Number(i.value);
942
+ a < s && (a = s), a > n && (a = n), String(a) !== i.value && (i.value = String(a)), this.setValue(a);
943
943
  }), i.addEventListener("blur", () => {
944
- var n, o;
944
+ var n, a;
945
945
  const s = this.validateValue(Number(i.value));
946
- s !== Number(i.value) && (i.value = String(s), this.setValue(s)), (o = (n = this.props).onBlur) == null || o.call(n);
946
+ s !== Number(i.value) && (i.value = String(s), this.setValue(s)), (a = (n = this.props).onBlur) == null || a.call(n);
947
947
  }), e.appendChild(i), this.props.suffix && this.props.suffix !== "none") {
948
948
  const s = document.createElement("span");
949
949
  s.className = "suffix-label", s.textContent = this.props.suffix, e.appendChild(s);
@@ -1021,12 +1021,12 @@ class y extends p {
1021
1021
  if (t.classList.add("select-container"), this.container = t, this.props.icon || this.props.title) {
1022
1022
  const n = document.createElement("div");
1023
1023
  if (n.className = "icon-container", this.props.icon) {
1024
- const o = this.createIcon(this.props.icon);
1025
- n.appendChild(o);
1024
+ const a = this.createIcon(this.props.icon);
1025
+ n.appendChild(a);
1026
1026
  }
1027
1027
  if (this.props.title) {
1028
- const o = this.createLabel(this.props.title);
1029
- n.appendChild(o);
1028
+ const a = this.createLabel(this.props.title);
1029
+ n.appendChild(a);
1030
1030
  }
1031
1031
  t.appendChild(n);
1032
1032
  } else {
@@ -1035,13 +1035,13 @@ class y extends p {
1035
1035
  }
1036
1036
  const e = document.createElement("div");
1037
1037
  e.classList.add("select-button"), this.isLoading ? e.classList.add("loading") : e.textContent = this.selectedOptionIndex !== null ? this._options[this.selectedOptionIndex].name : this.props.placeholder || "Select an option", e.onclick = () => {
1038
- var n, o;
1039
- this.isLoading || (this.isOpen = !this.isOpen, this.isOpen ? this.checkDropdownPosition() : this.cleanupDropdownPosition(), (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1038
+ var n, a;
1039
+ this.isLoading || (this.isOpen = !this.isOpen, this.isOpen ? this.checkDropdownPosition() : this.cleanupDropdownPosition(), (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (a = this.svgContainer) == null || a.classList.toggle("open", this.isOpen));
1040
1040
  }, t.appendChild(e), this.buttonEl = e;
1041
1041
  const i = document.createElement("ul");
1042
- i.classList.add("select-options"), this._options.forEach((n, o) => {
1043
- const a = this.createOption(n, o);
1044
- a.onclick = (l) => this.selectOption(l, o, e), i.appendChild(a);
1042
+ i.classList.add("select-options"), this._options.forEach((n, a) => {
1043
+ const o = this.createOption(n, a);
1044
+ o.onclick = (l) => this.selectOption(l, a, e), i.appendChild(o);
1045
1045
  }), document.body.appendChild(i);
1046
1046
  const s = document.createElement("div");
1047
1047
  return s.classList.add("svg-container"), s.innerHTML = z, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
@@ -1049,8 +1049,8 @@ class y extends p {
1049
1049
  }).catch((n) => {
1050
1050
  console.error("Failed to fetch async options:", n), this.isLoading = !1, this.updateButtonText("Failed to load options");
1051
1051
  })), this.clickOutsideListener && document.removeEventListener("click", this.clickOutsideListener), this.clickOutsideListener = (n) => {
1052
- var o, a;
1053
- this.isOpen && !t.contains(n.target) && (this.isOpen = !1, (o = this.optionsListEl) == null || o.classList.remove("open"), (a = this.svgContainer) == null || a.classList.remove("open"), this.cleanupDropdownPosition());
1052
+ var a, o;
1053
+ this.isOpen && !t.contains(n.target) && (this.isOpen = !1, (a = this.optionsListEl) == null || a.classList.remove("open"), (o = this.svgContainer) == null || o.classList.remove("open"), this.cleanupDropdownPosition());
1054
1054
  }, document.addEventListener("click", this.clickOutsideListener), this.resizeListener && window.removeEventListener("resize", this.resizeListener), this.resizeListener = () => {
1055
1055
  this.isOpen && this.checkDropdownPosition();
1056
1056
  }, window.addEventListener("resize", this.resizeListener), t;
@@ -1072,9 +1072,9 @@ class y extends p {
1072
1072
  }
1073
1073
  }
1074
1074
  selectOption(t, e, i) {
1075
- var n, o, a;
1075
+ var n, a, o;
1076
1076
  const s = this._options[e];
1077
- s && (this.value = s.value, (n = this.onChange) == null || n.call(this, this.value), this.selectedOptionIndex = e, this.isOpen = !1, i.textContent = s.name, (o = this.optionsListEl) == null || o.classList.remove("open"), (a = this.svgContainer) == null || a.classList.remove("open"), this.cleanupDropdownPosition(), this.optionsListEl && this.optionsListEl.querySelectorAll(".select-option").forEach((h, r) => {
1077
+ s && (this.value = s.value, (n = this.onChange) == null || n.call(this, this.value), this.selectedOptionIndex = e, this.isOpen = !1, i.textContent = s.name, (a = this.optionsListEl) == null || a.classList.remove("open"), (o = this.svgContainer) == null || o.classList.remove("open"), this.cleanupDropdownPosition(), this.optionsListEl && this.optionsListEl.querySelectorAll(".select-option").forEach((h, r) => {
1078
1078
  r === e ? h.classList.add("selected") : h.classList.remove("selected");
1079
1079
  }));
1080
1080
  }
@@ -1158,15 +1158,15 @@ class j extends p {
1158
1158
  `
1159
1159
  }
1160
1160
  ].forEach((n) => {
1161
- const o = document.createElement("button");
1162
- o.className = "align-option-button", o.innerHTML = n.icon, this.value === n.name && o.classList.add("selected"), o.addEventListener("click", () => {
1163
- var a;
1164
- i.querySelectorAll(".align-option-button").forEach((l) => l.classList.remove("selected")), o.classList.add("selected"), this.value = n.name, (a = this.onChange) == null || a.call(this, this.value);
1165
- }), i.appendChild(o);
1161
+ const a = document.createElement("button");
1162
+ a.className = "align-option-button", a.innerHTML = n.icon, this.value === n.name && a.classList.add("selected"), a.addEventListener("click", () => {
1163
+ var o;
1164
+ i.querySelectorAll(".align-option-button").forEach((l) => l.classList.remove("selected")), a.classList.add("selected"), this.value = n.name, (o = this.onChange) == null || o.call(this, this.value);
1165
+ }), i.appendChild(a);
1166
1166
  }), t.appendChild(i), t;
1167
1167
  }
1168
1168
  }
1169
- class dt extends p {
1169
+ class pt extends p {
1170
1170
  constructor(t) {
1171
1171
  super(t), this.inputType = "button";
1172
1172
  }
@@ -1179,7 +1179,7 @@ class dt extends p {
1179
1179
  return e.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), e.appendChild(t), e;
1180
1180
  }
1181
1181
  }
1182
- class pt extends p {
1182
+ class gt extends p {
1183
1183
  constructor(t = {}) {
1184
1184
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1185
1185
  const e = t.width || 0, i = t.height || 0;
@@ -1192,14 +1192,14 @@ class pt extends p {
1192
1192
  suffix: "px",
1193
1193
  minValue: this.minWidth,
1194
1194
  maxValue: this.maxWidth,
1195
- icon: G
1195
+ icon: W
1196
1196
  }), this.heightSetting = new v({
1197
1197
  title: "Height",
1198
1198
  default: this.value.height,
1199
1199
  suffix: "px",
1200
1200
  minValue: this.minHeight,
1201
1201
  maxValue: this.maxHeight,
1202
- icon: P
1202
+ icon: G
1203
1203
  }), this.widthSetting.setOnChange(this.handleWidthChange.bind(this)), this.heightSetting.setOnChange(this.handleHeightChange.bind(this));
1204
1204
  }
1205
1205
  handleWidthChange(t) {
@@ -1269,8 +1269,8 @@ class pt extends p {
1269
1269
  return n.className = "dimension-lock-icon", n.setAttribute("type", "button"), n.setAttribute("aria-pressed", String(this.locked)), n.setAttribute(
1270
1270
  "aria-label",
1271
1271
  this.locked ? "Unlock aspect ratio" : "Lock aspect ratio"
1272
- ), n.title = this.locked ? "Unlock aspect ratio" : "Lock aspect ratio", n.innerHTML = this.getLockSVG(this.locked), n.onclick = (o) => {
1273
- o.preventDefault(), this.toggleLock(n);
1272
+ ), n.title = this.locked ? "Unlock aspect ratio" : "Lock aspect ratio", n.innerHTML = this.getLockSVG(this.locked), n.onclick = (a) => {
1273
+ a.preventDefault(), this.toggleLock(n);
1274
1274
  }, s.appendChild(n), t.appendChild(e), t.appendChild(s), t.appendChild(i), t;
1275
1275
  }
1276
1276
  isLocked() {
@@ -1293,15 +1293,15 @@ class pt extends p {
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- const G = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1296
+ const W = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1297
1297
  <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"/>
1298
- </svg>`, P = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1298
+ </svg>`, G = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1299
1299
  <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"/>
1300
- </svg>`, L = `
1300
+ </svg>`, b = `
1301
1301
  <svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
1302
1302
  <path d="M5 10.5L7.5 8M7.5 8L10 10.5M7.5 8V13.625M12.5 10.9643C13.2634 10.3338 13.75 9.37996 13.75 8.3125C13.75 6.41402 12.211 4.875 10.3125 4.875C10.1759 4.875 10.0482 4.80375 9.97882 4.68609C9.16379 3.30302 7.65902 2.375 5.9375 2.375C3.34867 2.375 1.25 4.47367 1.25 7.0625C1.25 8.35381 1.77215 9.52317 2.61684 10.371" stroke="#475467" stroke-linecap="round" stroke-linejoin="round"/>
1303
1303
  </svg>
1304
- `, W = `
1304
+ `, P = `
1305
1305
  <svg width="91" height="71" viewBox="0 0 91 71" fill="none" xmlns="http://www.w3.org/2000/svg">
1306
1306
  <rect width="91" height="71" rx="4" fill="#F2F4F7"/>
1307
1307
  <path d="M37 31.5L39.5 29M39.5 29L42 31.5M39.5 29V34.625M44.5 31.9643C45.2634 31.3338 45.75 30.38 45.75 29.3125C45.75 27.414 44.211 25.875 42.3125 25.875C42.1759 25.875 42.0482 25.8037 41.9788 25.6861C41.1638 24.303 39.659 23.375 37.9375 23.375C35.3487 23.375 33.25 25.4737 33.25 28.0625C33.25 29.3538 33.7721 30.5232 34.6168 31.371" stroke="#475467" stroke-linecap="round" stroke-linejoin="round"/>
@@ -1310,10 +1310,29 @@ const G = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBo
1310
1310
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 12 12" fill="none">
1311
1311
  <path d="M8 3V2.6C8 2.03995 8 1.75992 7.89101 1.54601C7.79513 1.35785 7.64215 1.20487 7.45399 1.10899C7.24008 1 6.96005 1 6.4 1H5.6C5.03995 1 4.75992 1 4.54601 1.10899C4.35785 1.20487 4.20487 1.35785 4.10899 1.54601C4 1.75992 4 2.03995 4 2.6V3M5 5.75V8.25M7 5.75V8.25M1.5 3H10.5M9.5 3V8.6C9.5 9.44008 9.5 9.86012 9.33651 10.181C9.1927 10.4632 8.96323 10.6927 8.68099 10.8365C8.36012 11 7.94008 11 7.1 11H4.9C4.05992 11 3.63988 11 3.31901 10.8365C3.03677 10.6927 2.8073 10.4632 2.66349 10.181C2.5 9.86012 2.5 9.44008 2.5 8.6V3" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
1312
1312
  </svg>
1313
+ `, _ = `
1314
+ <svg xmlns="http://www.w3.org/2000/svg" width="29" height="29" viewBox="0 0 29 29" fill="none">
1315
+ <!-- Top dot -->
1316
+ <circle cx="14.5" cy="3" r="1.5" fill="#02CC59" opacity="1"/>
1317
+ <!-- Top-right dot -->
1318
+ <circle cx="22.3" cy="6.7" r="1.5" fill="#02CC59" opacity="0.9"/>
1319
+ <!-- Right dot -->
1320
+ <circle cx="26" cy="14.5" r="1.5" fill="#02CC59" opacity="0.8"/>
1321
+ <!-- Bottom-right dot -->
1322
+ <circle cx="22.3" cy="22.3" r="1.5" fill="#02CC59" opacity="0.7"/>
1323
+ <!-- Bottom dot -->
1324
+ <circle cx="14.5" cy="26" r="1.5" fill="#02CC59" opacity="0.6"/>
1325
+ <!-- Bottom-left dot -->
1326
+ <circle cx="6.7" cy="22.3" r="1.5" fill="#02CC59" opacity="0.5"/>
1327
+ <!-- Left dot -->
1328
+ <circle cx="3" cy="14.5" r="1.5" fill="#02CC59" opacity="0.4"/>
1329
+ <!-- Top-left dot -->
1330
+ <circle cx="6.7" cy="6.7" r="1.5" fill="#02CC59" opacity="0.3"/>
1331
+ </svg>
1313
1332
  `;
1314
- class _ extends p {
1333
+ class U extends p {
1315
1334
  constructor(t = {}) {
1316
- super(t), this.inputType = "button", this.previewWrapper = null, this.previewEl = null, this.emptyStateEl = null, this.errorContainer = null, this.messageListener = null, this.props.delete === void 0 && (this.props.delete = !0), this.props.maxFileSizeMB === void 0 && (this.props.maxFileSizeMB = 5), !this.value && t.defaultUrl && t.defaultUrl !== "" && (this.value = t.defaultUrl), this.setupMessageListener();
1335
+ super(t), this.inputType = "button", this.previewWrapper = null, this.previewEl = null, this.emptyStateEl = null, this.errorContainer = null, this.messageListener = null, this.loadingSpinner = null, this.props.delete === void 0 && (this.props.delete = !0), this.props.maxFileSizeMB === void 0 && (this.props.maxFileSizeMB = 5), !this.value && t.defaultUrl && t.defaultUrl !== "" && (this.value = t.defaultUrl), this.setupMessageListener();
1317
1336
  }
1318
1337
  setupMessageListener() {
1319
1338
  this.messageListener = (t) => {
@@ -1338,6 +1357,12 @@ class _ extends p {
1338
1357
  hideError() {
1339
1358
  this.errorContainer && (this.errorContainer.style.display = "none");
1340
1359
  }
1360
+ showLoading() {
1361
+ !this.previewWrapper || !this.loadingSpinner || (this.previewWrapper.classList.add("loading"), this.previewWrapper.style.display = "flex", this.loadingSpinner.style.display = "block", this.previewEl && (this.previewEl.style.display = "none"));
1362
+ }
1363
+ hideLoading() {
1364
+ !this.previewWrapper || !this.loadingSpinner || (this.previewWrapper.classList.remove("loading"), this.loadingSpinner.style.display = "none");
1365
+ }
1341
1366
  validateFileSize(t) {
1342
1367
  const e = (this.props.maxFileSizeMB || 5) * 1024 * 1024;
1343
1368
  if (t.size > e) {
@@ -1353,36 +1378,45 @@ class _ extends p {
1353
1378
  const e = this.previewWrapper.parentElement, i = e == null ? void 0 : e.querySelector(".upload-button"), s = e == null ? void 0 : e.querySelector(
1354
1379
  ".preview-placeholder"
1355
1380
  );
1356
- t && t !== "" ? (this.previewWrapper.classList.add("has-image"), this.previewEl.src = t, this.previewWrapper.style.display = "block", this.previewEl.style.display = "block", s && s instanceof HTMLElement && (s.style.display = "none"), e && e.classList.remove("no-image"), i && (i.innerHTML = `
1357
- <span class="upload-icon">${L}</span>
1381
+ if (t && t !== "") {
1382
+ this.showLoading(), s && s instanceof HTMLElement && (s.style.display = "none"), e && e.classList.remove("no-image"), i && (i.innerHTML = `
1383
+ <span class="upload-icon">${b}</span>
1358
1384
  <span class="upload-label">Replace</span>
1359
- `)) : (this.previewWrapper.classList.remove("has-image"), this.previewEl.src = "", this.previewEl.style.display = "none", this.previewWrapper.style.display = "none", s && s instanceof HTMLElement && (s.style.display = "block"), e && e.classList.add("no-image"), i && (i.innerHTML = `
1360
- <span class="upload-icon">${L}</span>
1385
+ `);
1386
+ const n = () => {
1387
+ this.hideLoading(), this.previewWrapper.classList.add("has-image"), this.previewEl.style.display = "block", this.previewEl.removeEventListener("load", n), this.previewEl.removeEventListener("error", a);
1388
+ }, a = () => {
1389
+ this.hideLoading(), this.showError("Failed to load image. Please try again."), this.previewWrapper.classList.remove("has-image"), this.previewEl.style.display = "none", this.previewWrapper.style.display = "none", s && s instanceof HTMLElement && (s.style.display = "block"), e && e.classList.add("no-image"), this.previewEl.removeEventListener("load", n), this.previewEl.removeEventListener("error", a);
1390
+ };
1391
+ this.previewEl.addEventListener("load", n), this.previewEl.addEventListener("error", a), this.previewEl.src = t;
1392
+ } else
1393
+ this.hideLoading(), this.previewWrapper.classList.remove("has-image"), this.previewEl.src = "", this.previewEl.style.display = "none", this.previewWrapper.style.display = "none", s && s instanceof HTMLElement && (s.style.display = "block"), e && e.classList.add("no-image"), i && (i.innerHTML = `
1394
+ <span class="upload-icon">${b}</span>
1361
1395
  <span class="upload-label">Upload</span>
1362
- `));
1396
+ `);
1363
1397
  }
1364
1398
  draw() {
1365
1399
  const t = document.createElement("div");
1366
1400
  t.className = "upload-setting-wrapper", t.setAttribute("data-setting-id", this.id), t.addEventListener(
1367
1401
  "focusout",
1368
- (a) => {
1402
+ (o) => {
1369
1403
  var l;
1370
- a.relatedTarget && t.contains(a.relatedTarget) || (l = this.onBlur) == null || l.call(this, this.value ?? "");
1404
+ o.relatedTarget && t.contains(o.relatedTarget) || (l = this.onBlur) == null || l.call(this, this.value ?? "");
1371
1405
  },
1372
1406
  !0
1373
1407
  );
1374
1408
  const e = !!(this.props.title || this.props.icon);
1375
1409
  if (e || t.classList.add("no-label"), e) {
1376
- const a = document.createElement("div");
1377
- if (a.className = "icon-title-container", this.props.icon) {
1410
+ const o = document.createElement("div");
1411
+ if (o.className = "icon-title-container", this.props.icon) {
1378
1412
  const l = this.createIcon(this.props.icon);
1379
- a.appendChild(l);
1413
+ o.appendChild(l);
1380
1414
  }
1381
1415
  if (this.props.title) {
1382
1416
  const l = this.createLabel(this.props.title);
1383
- a.appendChild(l);
1417
+ o.appendChild(l);
1384
1418
  }
1385
- t.appendChild(a);
1419
+ t.appendChild(o);
1386
1420
  }
1387
1421
  this.errorContainer = document.createElement("div"), this.errorContainer.className = "error-message", this.errorContainer.style.display = "none", t.appendChild(this.errorContainer);
1388
1422
  const i = document.createElement("div");
@@ -1390,19 +1424,19 @@ class _ extends p {
1390
1424
  const s = this.value && this.value !== "";
1391
1425
  s || i.classList.add("no-image");
1392
1426
  const n = document.createElement("div");
1393
- if (n.className = "preview-placeholder", n.innerHTML = W, this.previewWrapper = document.createElement("div"), this.previewWrapper.className = "preview-wrapper", this.previewEl = document.createElement("img"), this.previewEl.className = "upload-preview", this.props.delete) {
1394
- const a = document.createElement("button");
1395
- a.className = "delete-button", a.type = "button", a.title = "Delete image", a.innerHTML = D, this.previewWrapper.appendChild(a), a.onclick = (l) => {
1427
+ if (n.className = "preview-placeholder", n.innerHTML = P, this.previewWrapper = document.createElement("div"), this.previewWrapper.className = "preview-wrapper", this.loadingSpinner = document.createElement("div"), this.loadingSpinner.className = "loading-spinner", this.loadingSpinner.innerHTML = _, this.loadingSpinner.style.display = "none", this.previewWrapper.appendChild(this.loadingSpinner), this.previewEl = document.createElement("img"), this.previewEl.className = "upload-preview", this.props.delete) {
1428
+ const o = document.createElement("button");
1429
+ o.className = "delete-button", o.type = "button", o.title = "Delete image", o.innerHTML = D, this.previewWrapper.appendChild(o), o.onclick = (l) => {
1396
1430
  var h;
1397
1431
  l.stopPropagation(), this.value = "", this.updatePreviewState(null), (h = this.onChange) == null || h.call(this, ""), this.hideError();
1398
1432
  };
1399
1433
  }
1400
1434
  this.previewWrapper.appendChild(this.previewEl);
1401
- const o = document.createElement("button");
1402
- return o.className = "upload-button", o.innerHTML = `
1403
- <span class="upload-icon">${L}</span>
1435
+ const a = document.createElement("button");
1436
+ return a.className = "upload-button", a.innerHTML = `
1437
+ <span class="upload-icon">${b}</span>
1404
1438
  <span class="upload-label">Upload</span>
1405
- `, i.appendChild(n), i.appendChild(this.previewWrapper), i.appendChild(o), t.appendChild(i), s ? this.updatePreviewState(this.value) : this.updatePreviewState(null), o.onclick = () => {
1439
+ `, i.appendChild(n), i.appendChild(this.previewWrapper), i.appendChild(a), t.appendChild(i), s ? this.updatePreviewState(this.value) : this.updatePreviewState(null), a.onclick = () => {
1406
1440
  window.postMessage(
1407
1441
  {
1408
1442
  type: "OPEN_FILE_MANAGER_MODAL",
@@ -1413,14 +1447,14 @@ class _ extends p {
1413
1447
  }, t;
1414
1448
  }
1415
1449
  }
1416
- class gt extends v {
1450
+ class mt extends v {
1417
1451
  constructor(t = {}) {
1418
1452
  super({
1419
1453
  ...t,
1420
1454
  title: t.title || "Height",
1421
1455
  suffix: t.suffix || "px",
1422
1456
  minValue: t.minValue ?? 0,
1423
- icon: t.icon || U,
1457
+ icon: t.icon || q,
1424
1458
  default: t.default ?? 100
1425
1459
  }), this.inputType = "number", this.mobileValue = t.mobile;
1426
1460
  }
@@ -1431,17 +1465,17 @@ class gt extends v {
1431
1465
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1432
1466
  }
1433
1467
  }
1434
- const U = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1468
+ const q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1435
1469
  <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"/>
1436
1470
  </svg>`;
1437
- class mt extends v {
1471
+ class ft extends v {
1438
1472
  constructor(t = {}) {
1439
1473
  super({
1440
1474
  ...t,
1441
1475
  title: t.title || "Width",
1442
1476
  suffix: t.suffix || "px",
1443
1477
  minValue: t.minValue ?? 0,
1444
- icon: t.icon || q,
1478
+ icon: t.icon || J,
1445
1479
  default: t.default ?? 100
1446
1480
  }), this.inputType = "number", this.mobileValue = t.mobile;
1447
1481
  }
@@ -1452,14 +1486,14 @@ class mt extends v {
1452
1486
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1453
1487
  }
1454
1488
  }
1455
- const q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1489
+ const J = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1456
1490
  <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="#667085" stroke-linecap="round" stroke-linejoin="round"/>
1457
- </svg>`, J = `
1491
+ </svg>`, Z = `
1458
1492
  <svg xmlns="http://www.w3.org/2000/svg" class="svg-select-api" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down">
1459
1493
  <polyline points="6 9 12 15 18 9"></polyline>
1460
1494
  </svg>
1461
1495
  `;
1462
- class ft extends p {
1496
+ class vt extends p {
1463
1497
  constructor(t = {}) {
1464
1498
  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) {
1465
1499
  const e = this._options.findIndex(
@@ -1486,44 +1520,44 @@ class ft extends p {
1486
1520
  e.classList.add("has-label");
1487
1521
  const n = document.createElement("div");
1488
1522
  n.className = "select-label", n.textContent = this.props.title, e.appendChild(n);
1489
- const o = document.createElement("span");
1490
- if (o.className = "select-value", this.isLoading)
1491
- o.textContent = this.props.loadingText || "Loading options...";
1523
+ const a = document.createElement("span");
1524
+ if (a.className = "select-value", this.isLoading)
1525
+ a.textContent = this.props.loadingText || "Loading options...";
1492
1526
  else {
1493
- const a = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, l = a && typeof a.name == "string" ? a.name : "Select an option";
1494
- o.textContent = l;
1527
+ const o = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, l = o && typeof o.name == "string" ? o.name : "Select an option";
1528
+ a.textContent = l;
1495
1529
  }
1496
- e.appendChild(o);
1530
+ e.appendChild(a);
1497
1531
  } else {
1498
1532
  const n = document.createElement("span");
1499
1533
  if (this.isLoading)
1500
1534
  n.textContent = this.props.loadingText || "Loading options...";
1501
1535
  else {
1502
- const o = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, a = o && typeof o.name == "string" ? o.name : "Select an option";
1503
- n.textContent = a;
1536
+ const a = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, o = a && typeof a.name == "string" ? a.name : "Select an option";
1537
+ n.textContent = o;
1504
1538
  }
1505
1539
  e.appendChild(n);
1506
1540
  }
1507
1541
  e.onclick = () => {
1508
- var n, o;
1509
- this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1542
+ var n, a;
1543
+ this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (a = this.svgContainer) == null || a.classList.toggle("open", this.isOpen));
1510
1544
  }, t.appendChild(e), this.buttonEl = e;
1511
1545
  const i = document.createElement("ul");
1512
- i.classList.add("select-api-options"), this._options.forEach((n, o) => {
1513
- const a = this.createOption(n, o);
1514
- a.onclick = (l) => this.selectApiOption(l, o, e), i.appendChild(a);
1546
+ i.classList.add("select-api-options"), this._options.forEach((n, a) => {
1547
+ const o = this.createOption(n, a);
1548
+ o.onclick = (l) => this.selectApiOption(l, a, e), i.appendChild(o);
1515
1549
  }), t.appendChild(i);
1516
1550
  const s = document.createElement("div");
1517
- return s.classList.add("svg-container"), s.innerHTML = J, t.appendChild(s), s.onclick = () => {
1518
- var n, o;
1519
- this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1551
+ return s.classList.add("svg-container"), s.innerHTML = Z, t.appendChild(s), s.onclick = () => {
1552
+ var n, a;
1553
+ this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (a = this.svgContainer) == null || a.classList.toggle("open", this.isOpen));
1520
1554
  }, this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && !this.hasInitializedOptions ? (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1521
- const o = new Set(
1555
+ const a = new Set(
1522
1556
  this._options.map((l) => JSON.stringify(l.value))
1523
- ), a = n.filter(
1524
- (l) => !o.has(JSON.stringify(l.value))
1557
+ ), o = n.filter(
1558
+ (l) => !a.has(JSON.stringify(l.value))
1525
1559
  );
1526
- if (this._options.push(...a), this.isLoading = !1, this.hasInitializedOptions = !0, this.value !== void 0) {
1560
+ if (this._options.push(...o), this.isLoading = !1, this.hasInitializedOptions = !0, this.value !== void 0) {
1527
1561
  const l = this._options.findIndex(
1528
1562
  (h) => JSON.stringify(h.value) === JSON.stringify(this.value)
1529
1563
  );
@@ -1537,12 +1571,12 @@ class ft extends p {
1537
1571
  !0
1538
1572
  );
1539
1573
  })) : this.props.getOptionsAsync && this._options.length <= 1 && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1540
- const o = new Set(
1574
+ const a = new Set(
1541
1575
  this._options.map((l) => JSON.stringify(l.value))
1542
- ), a = n.filter(
1543
- (l) => !o.has(JSON.stringify(l.value))
1576
+ ), o = n.filter(
1577
+ (l) => !a.has(JSON.stringify(l.value))
1544
1578
  );
1545
- if (this._options.push(...a), this.isLoading = !1, this.value !== void 0) {
1579
+ if (this._options.push(...o), this.isLoading = !1, this.value !== void 0) {
1546
1580
  const l = this._options.findIndex(
1547
1581
  (h) => JSON.stringify(h.value) === JSON.stringify(this.value)
1548
1582
  );
@@ -1558,19 +1592,19 @@ class ft extends p {
1558
1592
  })), t;
1559
1593
  }
1560
1594
  selectApiOption(t, e, i) {
1561
- var l, h, r, u;
1595
+ var l, h, r, d;
1562
1596
  const s = t.target, n = s.querySelector(".select-api-radio") || ((l = s.closest(".select-api-option")) == null ? void 0 : l.querySelector(".select-api-radio"));
1563
1597
  n && (n.checked = !0), this.selectedOptionIndex = e;
1564
- const o = this._options[e].value;
1565
- this.value = o;
1566
- const a = i.querySelector(".select-value");
1567
- if (a)
1568
- a.textContent = this._options[e].name;
1598
+ const a = this._options[e].value;
1599
+ this.value = a;
1600
+ const o = i.querySelector(".select-value");
1601
+ if (o)
1602
+ o.textContent = this._options[e].name;
1569
1603
  else {
1570
- const d = i.firstChild;
1571
- d && d.tagName === "SPAN" && (d.textContent = this._options[e].name);
1604
+ const u = i.firstChild;
1605
+ u && u.tagName === "SPAN" && (u.textContent = this._options[e].name);
1572
1606
  }
1573
- this.isOpen = !1, (h = this.optionsListEl) == null || h.classList.remove("open"), (r = this.svgContainer) == null || r.classList.remove("open"), (u = this.onChange) == null || u.call(this, o), this.detectChangeCallback && this.detectChangeCallback(o);
1607
+ this.isOpen = !1, (h = this.optionsListEl) == null || h.classList.remove("open"), (r = this.svgContainer) == null || r.classList.remove("open"), (d = this.onChange) == null || d.call(this, a), this.detectChangeCallback && this.detectChangeCallback(a);
1574
1608
  }
1575
1609
  updateOptionsList() {
1576
1610
  !this.optionsListEl || !this.buttonEl || (this.optionsListEl.innerHTML = "", this._options.forEach((t, e) => {
@@ -1603,13 +1637,13 @@ class ft extends p {
1603
1637
  ), this.updateButtonText();
1604
1638
  }
1605
1639
  }
1606
- class vt extends p {
1640
+ class Ct extends p {
1607
1641
  constructor(t) {
1608
1642
  var e, i;
1609
1643
  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;
1610
1644
  }
1611
1645
  draw() {
1612
- var o, a;
1646
+ var a, o;
1613
1647
  const t = document.createElement("div");
1614
1648
  t.className = "toggle-setting-container", this.props.icon && t.classList.add("toggle-with-icon");
1615
1649
  const e = document.createElement("div");
@@ -1625,9 +1659,9 @@ class vt extends p {
1625
1659
  const i = document.createElement("label");
1626
1660
  i.className = "toggle-switch";
1627
1661
  const s = document.createElement("input");
1628
- 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, s.addEventListener("change", () => {
1662
+ s.type = "checkbox", s.checked = ((o = (a = this.props.options) == null ? void 0 : a.find((l) => l.value === this.value)) == null ? void 0 : o.status) ?? !1, s.addEventListener("change", () => {
1629
1663
  var h, r;
1630
- const l = ((r = (h = this.props.options) == null ? void 0 : h.find((u) => u.status === s.checked)) == null ? void 0 : r.value) ?? "";
1664
+ const l = ((r = (h = this.props.options) == null ? void 0 : h.find((d) => d.status === s.checked)) == null ? void 0 : r.value) ?? "";
1631
1665
  this.value = l, this.onChange && this.onChange(this.value), this.detectChangeCallback && this.detectChangeCallback(this.value);
1632
1666
  });
1633
1667
  const n = document.createElement("span");
@@ -1648,13 +1682,13 @@ class vt extends p {
1648
1682
  this.detectChangeCallback = t;
1649
1683
  }
1650
1684
  }
1651
- const Z = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1685
+ const K = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1652
1686
  <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"/>
1653
1687
  </svg>`;
1654
- class Ct extends p {
1688
+ class wt extends p {
1655
1689
  // Store mobile value
1656
1690
  constructor(t = {}) {
1657
- t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Z, 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);
1691
+ t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? K, 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);
1658
1692
  }
1659
1693
  draw() {
1660
1694
  const t = document.createElement("div");
@@ -1665,27 +1699,27 @@ class Ct extends p {
1665
1699
  i.className = "setting-label", i.setAttribute("for", this.id + "-input");
1666
1700
  const s = document.createElement("span");
1667
1701
  if (s.textContent = this.props.title ?? "Gap", i.appendChild(s), this.props.icon) {
1668
- const a = document.createElement("span");
1669
- a.className = "setting-icon", a.innerHTML = this.props.icon, i.insertBefore(a, s);
1702
+ const o = document.createElement("span");
1703
+ o.className = "setting-icon", o.innerHTML = this.props.icon, i.insertBefore(o, s);
1670
1704
  }
1671
1705
  const n = document.createElement("div");
1672
1706
  n.className = `setting-input-wrapper ${this.props.wrapperClassName || ""}`, n.classList.add("gap-setting-wrapper");
1673
- const o = document.createElement("div");
1674
- return o.className = "gap-inputs-container", this.props.rowGap && o.appendChild(this.createGapInput("row", "Row")), this.props.columnGap && o.appendChild(this.createGapInput("column", "Col")), n.appendChild(o), e.appendChild(i), e.appendChild(n), t.appendChild(e), t;
1707
+ const a = document.createElement("div");
1708
+ return a.className = "gap-inputs-container", this.props.rowGap && a.appendChild(this.createGapInput("row", "Row")), this.props.columnGap && a.appendChild(this.createGapInput("column", "Col")), n.appendChild(a), e.appendChild(i), e.appendChild(n), t.appendChild(e), t;
1675
1709
  }
1676
1710
  createGapInput(t, e) {
1677
1711
  const i = document.createElement("div");
1678
1712
  i.className = "gap-input-wrapper";
1679
1713
  const s = document.createElement("input");
1680
1714
  if (s.type = "number", s.className = `gap-input gap-${t}-input ${this.props.inputClassName || ""}`, s.id = `${this.id}-${t}-input`, s.min = String(this.props.minValue ?? 0), this.props.maxValue !== void 0 && (s.max = String(this.props.maxValue)), s.step = String(this.props.step ?? 1), s.value = String(this.inputValues[t] ?? this.value), s.title = e, s.addEventListener("input", (n) => {
1681
- const o = n.target;
1682
- let a = parseFloat(o.value);
1683
- a = this.validateValue(a), String(a) !== o.value && (o.value = String(a)), this.inputValues[t] = a, this.setValue(a);
1715
+ const a = n.target;
1716
+ let o = parseFloat(a.value);
1717
+ o = this.validateValue(o), String(o) !== a.value && (a.value = String(o)), this.inputValues[t] = o, this.setValue(o);
1684
1718
  }), s.addEventListener("blur", (n) => {
1685
1719
  var l, h;
1686
- const o = n.target;
1687
- let a = parseFloat(o.value);
1688
- a = this.validateValue(a), String(a) !== o.value && (o.value = String(a), this.inputValues[t] = a, this.setValue(a)), (h = (l = this.props).onBlur) == null || h.call(l);
1720
+ const a = n.target;
1721
+ let o = parseFloat(a.value);
1722
+ o = this.validateValue(o), String(o) !== a.value && (a.value = String(o), this.inputValues[t] = o, this.setValue(o)), (h = (l = this.props).onBlur) == null || h.call(l);
1689
1723
  }), i.appendChild(s), this.props.suffix && this.props.suffix !== "none") {
1690
1724
  const n = document.createElement("span");
1691
1725
  n.className = "gap-suffix", n.textContent = this.props.suffix, i.appendChild(n), s.style.paddingRight = "30px";
@@ -1705,47 +1739,47 @@ class Ct extends p {
1705
1739
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1706
1740
  }
1707
1741
  }
1708
- const K = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1742
+ const X = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1709
1743
  <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"/>
1710
1744
  </svg>`;
1711
- class wt extends v {
1745
+ class Et extends v {
1712
1746
  constructor(t = {}) {
1713
1747
  super({
1714
1748
  ...t,
1715
1749
  minValue: t.minValue ?? 0,
1716
1750
  maxValue: t.maxValue ?? 1e3,
1717
- icon: t.icon || K,
1751
+ icon: t.icon || X,
1718
1752
  title: t.title || "Margin Bottom",
1719
1753
  default: t.default ?? 20,
1720
1754
  wrapperClassName: "margin-bottom-wrapper " + (t.wrapperClassName || "")
1721
1755
  }), this.inputType = "number";
1722
1756
  }
1723
1757
  }
1724
- const X = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1758
+ const Q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1725
1759
  <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"
1726
1760
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1727
1761
  </svg>`;
1728
- class Et extends v {
1762
+ class Lt extends v {
1729
1763
  constructor(t = {}) {
1730
1764
  super({
1731
1765
  ...t,
1732
1766
  minValue: t.minValue ?? 0,
1733
1767
  maxValue: t.maxValue ?? 1e3,
1734
- icon: t.icon || X,
1768
+ icon: t.icon || Q,
1735
1769
  title: t.title || "Margin Top",
1736
1770
  default: t.default ?? 20,
1737
1771
  wrapperClassName: "margin-top-wrapper " + (t.wrapperClassName || "")
1738
1772
  }), this.inputType = "number";
1739
1773
  }
1740
1774
  }
1741
- const Q = `
1775
+ const Y = `
1742
1776
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1743
1777
  <polyline points="3,6 5,6 21,6"></polyline>
1744
1778
  <path d="m19,6v14a2,2 0 0,1-2,2H7a2,2 0 0,1-2-2V6m3,0V4a2,2 0 0,1,2-2h4a2,2 0 0,1,2,2v2"></path>
1745
1779
  <line x1="10" y1="11" x2="10" y2="17"></line>
1746
1780
  <line x1="14" y1="11" x2="14" y2="17"></line>
1747
1781
  </svg>
1748
- `, Y = `
1782
+ `, tt = `
1749
1783
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
1750
1784
  <line x1="12" y1="5" x2="12" y2="19"></line>
1751
1785
  <line x1="5" y1="12" x2="19" y2="12"></line>
@@ -1793,15 +1827,15 @@ class bt extends p {
1793
1827
  s.classList.add("language-label"), s.textContent = t.toUpperCase();
1794
1828
  const n = document.createElement("div");
1795
1829
  n.classList.add("language-input-group");
1796
- const o = document.createElement("input");
1797
- o.type = "text", o.classList.add("language-input"), o.value = e || "", o.placeholder = this.props.placeholder || "Enter text...", o.addEventListener("input", (l) => {
1830
+ const a = document.createElement("input");
1831
+ a.type = "text", a.classList.add("language-input"), a.value = e || "", a.placeholder = this.props.placeholder || "Enter text...", a.addEventListener("input", (l) => {
1798
1832
  const h = l.target;
1799
1833
  this.updateLanguageValue(t, h.value);
1800
1834
  });
1801
- const a = document.createElement("button");
1802
- return a.type = "button", a.classList.add("delete-language-btn"), a.innerHTML = Q, a.title = `Delete ${t.toUpperCase()}`, a.addEventListener("click", () => {
1835
+ const o = document.createElement("button");
1836
+ return o.type = "button", o.classList.add("delete-language-btn"), o.innerHTML = Y, o.title = `Delete ${t.toUpperCase()}`, o.addEventListener("click", () => {
1803
1837
  this.removeLanguage(t);
1804
- }), n.appendChild(o), n.appendChild(a), i.appendChild(s), i.appendChild(n), i;
1838
+ }), n.appendChild(a), n.appendChild(o), i.appendChild(s), i.appendChild(n), i;
1805
1839
  }
1806
1840
  updateLanguageValue(t, e) {
1807
1841
  this.value || (this.value = {}), this.value[t] = e, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
@@ -1832,9 +1866,9 @@ class bt extends p {
1832
1866
  const s = document.createElement("select");
1833
1867
  s.classList.add("add-language-select"), this.addLanguageSelect = s;
1834
1868
  const n = document.createElement("button");
1835
- return n.type = "button", n.classList.add("add-language-btn"), n.innerHTML = `${Y} Add`, this.addButton = n, n.addEventListener("click", () => {
1836
- const o = s.value;
1837
- o && this.addLanguage(o);
1869
+ return n.type = "button", n.classList.add("add-language-btn"), n.innerHTML = `${tt} Add`, this.addButton = n, n.addEventListener("click", () => {
1870
+ const a = s.value;
1871
+ a && this.addLanguage(a);
1838
1872
  }), i.appendChild(s), i.appendChild(n), t.appendChild(e), t.appendChild(i), t;
1839
1873
  }
1840
1874
  draw() {
@@ -1846,9 +1880,9 @@ class bt extends p {
1846
1880
  const e = document.createElement("div");
1847
1881
  e.classList.add("multi-language-content");
1848
1882
  const i = document.createElement("div");
1849
- i.classList.add("languages-container"), this.languagesContainer = i, this.value && Object.entries(this.value).forEach(([n, o]) => {
1850
- const a = this.createLanguageRow(n, o);
1851
- i.appendChild(a);
1883
+ i.classList.add("languages-container"), this.languagesContainer = i, this.value && Object.entries(this.value).forEach(([n, a]) => {
1884
+ const o = this.createLanguageRow(n, a);
1885
+ i.appendChild(o);
1852
1886
  }), e.appendChild(i);
1853
1887
  const s = this.createAddLanguageSection();
1854
1888
  return e.appendChild(s), t.appendChild(e), this.updateAddLanguageSelect(), this.container = t, t;
@@ -1860,7 +1894,7 @@ class bt extends p {
1860
1894
  }), this.updateAddLanguageSelect());
1861
1895
  }
1862
1896
  }
1863
- class Lt extends p {
1897
+ class xt extends p {
1864
1898
  constructor(t = {}) {
1865
1899
  super(t), this.inputType = "select";
1866
1900
  const e = [
@@ -1887,16 +1921,16 @@ class Lt extends p {
1887
1921
  this.selectSetting.destroy(), super.destroy();
1888
1922
  }
1889
1923
  }
1890
- const tt = `
1924
+ const et = `
1891
1925
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1892
1926
  <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"/>
1893
1927
  </svg>
1894
- `, et = `
1928
+ `, it = `
1895
1929
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1896
1930
  <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"/>
1897
1931
  </svg>
1898
1932
  `;
1899
- class xt extends f {
1933
+ class yt extends f {
1900
1934
  constructor(t) {
1901
1935
  super({
1902
1936
  title: "Border",
@@ -1905,7 +1939,7 @@ class xt extends f {
1905
1939
  settings: {
1906
1940
  size: new v({
1907
1941
  title: "Size",
1908
- icon: et,
1942
+ icon: it,
1909
1943
  default: (t == null ? void 0 : t.size) ?? 0,
1910
1944
  suffix: "px"
1911
1945
  }),
@@ -1914,7 +1948,7 @@ class xt extends f {
1914
1948
  }),
1915
1949
  radius: new v({
1916
1950
  title: "Radius",
1917
- icon: tt,
1951
+ icon: et,
1918
1952
  default: (t == null ? void 0 : t.radius) ?? 12,
1919
1953
  suffix: "px"
1920
1954
  })
@@ -1933,20 +1967,20 @@ class xt extends f {
1933
1967
  `;
1934
1968
  }
1935
1969
  }
1936
- const it = `
1970
+ const st = `
1937
1971
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
1938
1972
  <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"/>
1939
1973
  </svg>
1940
- `, st = `
1974
+ `, nt = `
1941
1975
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1942
1976
  <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"/>
1943
1977
  </svg>
1944
- `, nt = `
1978
+ `, at = `
1945
1979
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1946
1980
  <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"/>
1947
1981
  </svg>
1948
1982
  `;
1949
- class yt extends f {
1983
+ class Mt extends f {
1950
1984
  constructor(t = {}) {
1951
1985
  const { showAlign: e = t.showAlign ?? !0, ...i } = t;
1952
1986
  super({
@@ -1960,7 +1994,7 @@ class yt extends f {
1960
1994
  }),
1961
1995
  fontFamily: new y({
1962
1996
  title: "Font",
1963
- icon: it,
1997
+ icon: st,
1964
1998
  default: i.fontFamilyDefault ?? "Satoshi",
1965
1999
  options: i.fontFamilyOptions ?? [
1966
2000
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -1973,7 +2007,7 @@ class yt extends f {
1973
2007
  }),
1974
2008
  fontWeight: new y({
1975
2009
  title: "Weight",
1976
- icon: st,
2010
+ icon: nt,
1977
2011
  default: i.fontWeightDefault ?? "400",
1978
2012
  options: i.fontWeightOptions ?? [
1979
2013
  { name: "Regular", value: "400" },
@@ -1985,7 +2019,7 @@ class yt extends f {
1985
2019
  }),
1986
2020
  fontSize: new v({
1987
2021
  title: "Size",
1988
- icon: nt,
2022
+ icon: at,
1989
2023
  default: i.fontSizeDefault ?? 12,
1990
2024
  suffix: "px",
1991
2025
  mobile: i.fontSizeMobileDefault
@@ -2002,8 +2036,8 @@ class yt extends f {
2002
2036
  });
2003
2037
  }
2004
2038
  getCssCode() {
2005
- var o;
2006
- 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";
2039
+ var a;
2040
+ 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 = ((a = this.settings.align) == null ? void 0 : a.value) ?? "left";
2007
2041
  return `
2008
2042
  color: ${t};
2009
2043
  font-family: ${e};
@@ -2021,11 +2055,11 @@ class E extends p {
2021
2055
  }), this.inputType = "number", this.value = t.default !== void 0 ? t.default : "auto";
2022
2056
  }
2023
2057
  draw() {
2024
- const t = this.value === "auto" ? "text" : "number", e = (a) => {
2025
- this.value !== "auto" && (this.props.minValue !== void 0 && (a.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (a.max = String(this.props.maxValue)), this.props.className && a.classList.add(this.props.className), a.addEventListener("input", () => {
2058
+ const t = this.value === "auto" ? "text" : "number", e = (o) => {
2059
+ this.value !== "auto" && (this.props.minValue !== void 0 && (o.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (o.max = String(this.props.maxValue)), this.props.className && o.classList.add(this.props.className), o.addEventListener("input", () => {
2026
2060
  const l = this.props.minValue ?? Number.MIN_SAFE_INTEGER, h = this.props.maxValue ?? Number.MAX_SAFE_INTEGER;
2027
- let r = Number(a.value);
2028
- r < l && (r = l), r > h && (r = h), a.value = String(r);
2061
+ let r = Number(o.value);
2062
+ r < l && (r = l), r > h && (r = h), o.value = String(r);
2029
2063
  }));
2030
2064
  }, i = this.createInput({
2031
2065
  value: this.value,
@@ -2046,9 +2080,9 @@ class E extends p {
2046
2080
  s && (s.style.paddingRight = "35px");
2047
2081
  const n = document.createElement("span");
2048
2082
  n.className = "suffix-label", n.textContent = this.props.suffix, i.appendChild(n);
2049
- const o = i.querySelector("input");
2050
- return o && (o.oninput = (a) => {
2051
- const l = a.target.value.trim();
2083
+ const a = i.querySelector("input");
2084
+ return a && (a.oninput = (o) => {
2085
+ const l = o.target.value.trim();
2052
2086
  if (l.toLowerCase() === "auto")
2053
2087
  this.value = "auto";
2054
2088
  else {
@@ -2059,7 +2093,7 @@ class E extends p {
2059
2093
  }), i;
2060
2094
  }
2061
2095
  }
2062
- class Mt extends f {
2096
+ class kt extends f {
2063
2097
  constructor(t) {
2064
2098
  super({
2065
2099
  title: "Margins",
@@ -2068,25 +2102,25 @@ class Mt extends f {
2068
2102
  settings: {
2069
2103
  marginTop: new E({
2070
2104
  title: "Top",
2071
- icon: at,
2105
+ icon: ot,
2072
2106
  suffix: "px",
2073
2107
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
2074
2108
  }),
2075
2109
  marginRight: new E({
2076
2110
  title: "Right",
2077
- icon: ot,
2111
+ icon: lt,
2078
2112
  suffix: "px",
2079
2113
  default: (t == null ? void 0 : t.marginRight) ?? 0
2080
2114
  }),
2081
2115
  marginBottom: new E({
2082
2116
  title: "Bottom",
2083
- icon: lt,
2117
+ icon: rt,
2084
2118
  suffix: "px",
2085
2119
  default: (t == null ? void 0 : t.marginBottom) ?? 0
2086
2120
  }),
2087
2121
  marginLeft: new E({
2088
2122
  title: "Left",
2089
- icon: rt,
2123
+ icon: ht,
2090
2124
  suffix: "px",
2091
2125
  default: (t == null ? void 0 : t.marginLeft) ?? 0
2092
2126
  })
@@ -2103,16 +2137,16 @@ class Mt extends f {
2103
2137
  `;
2104
2138
  }
2105
2139
  }
2106
- const at = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2140
+ const ot = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2107
2141
  <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"/>
2108
- </svg>`, ot = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2109
- <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"/>
2110
2142
  </svg>`, lt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2111
- <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"/>
2143
+ <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"/>
2112
2144
  </svg>`, rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2145
+ <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"/>
2146
+ </svg>`, ht = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2113
2147
  <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"/>
2114
2148
  </svg>`;
2115
- class kt extends f {
2149
+ class Vt extends f {
2116
2150
  /**
2117
2151
  * Constructs a new BackgroundSettingSet.
2118
2152
  *
@@ -2142,7 +2176,7 @@ class kt extends f {
2142
2176
  collapsed: t == null ? void 0 : t.collapsed,
2143
2177
  hideCondition: t == null ? void 0 : t.hideCondition,
2144
2178
  settings: {
2145
- backgroundImage: new _({
2179
+ backgroundImage: new U({
2146
2180
  ...t == null ? void 0 : t.uploadProps,
2147
2181
  default: (t == null ? void 0 : t.backgroundImage) ?? ""
2148
2182
  }),
@@ -2161,10 +2195,10 @@ class kt extends f {
2161
2195
  draw() {
2162
2196
  const t = super.draw(), e = t.querySelector(".setting-group-content");
2163
2197
  if (!e) return t;
2164
- const i = Array.from(e.children), [s, n, o] = i;
2198
+ const i = Array.from(e.children), [s, n, a] = i;
2165
2199
  e.innerHTML = "", e.appendChild(s), e.appendChild(n);
2166
- const a = document.createElement("div");
2167
- return a.className = "bgset-or-label", a.textContent = "OR", e.appendChild(a), e.appendChild(o), t;
2200
+ const o = document.createElement("div");
2201
+ return o.className = "bgset-or-label", o.textContent = "OR", e.appendChild(o), e.appendChild(a), t;
2168
2202
  }
2169
2203
  /**
2170
2204
  * Helper method to generate CSS based on the current settings.
@@ -2181,44 +2215,44 @@ class kt extends f {
2181
2215
  `;
2182
2216
  }
2183
2217
  }
2184
- function Vt(c) {
2218
+ function Nt(c) {
2185
2219
  return c instanceof f;
2186
2220
  }
2187
- function Nt(c) {
2221
+ function St(c) {
2188
2222
  return c instanceof p;
2189
2223
  }
2190
2224
  export {
2191
2225
  j as AlignSetting,
2192
- Lt as AnimationSetting,
2193
- kt as BackgroundSettingSet,
2194
- xt as BorderSettingSet,
2195
- dt as ButtonSetting,
2226
+ xt as AnimationSetting,
2227
+ Vt as BackgroundSettingSet,
2228
+ yt as BorderSettingSet,
2229
+ pt as ButtonSetting,
2196
2230
  m as ColorSetting,
2197
2231
  C as ColorWithOpacitySetting,
2198
- pt as DimensionSetting,
2199
- Ct as GapSetting,
2200
- yt as HeaderTypographySettingSet,
2201
- gt as HeightSetting,
2232
+ gt as DimensionSetting,
2233
+ wt as GapSetting,
2234
+ Mt as HeaderTypographySettingSet,
2235
+ mt as HeightSetting,
2202
2236
  ut as HtmlSetting,
2203
- wt as MarginBottomSetting,
2204
- Mt as MarginSettingGroup,
2205
- Et as MarginTopSetting,
2237
+ Et as MarginBottomSetting,
2238
+ kt as MarginSettingGroup,
2239
+ Lt as MarginTopSetting,
2206
2240
  bt as MultiLanguageSetting,
2207
2241
  v as NumberSetting,
2208
2242
  F as OpacitySetting,
2209
- ft as SelectApiSettings,
2243
+ vt as SelectApiSettings,
2210
2244
  y as SelectSetting,
2211
2245
  p as Setting,
2212
2246
  f as SettingGroup,
2213
2247
  A as StringSetting,
2214
- ht as TabSettingGroup,
2215
- ht as TabsSettingGroup,
2216
- vt as Toggle,
2217
- _ as UploadSetting,
2218
- mt as WidthSetting,
2219
- ct as asSettingGroupWithSettings,
2248
+ ct as TabSettingGroup,
2249
+ ct as TabsSettingGroup,
2250
+ Ct as Toggle,
2251
+ U as UploadSetting,
2252
+ ft as WidthSetting,
2253
+ dt as asSettingGroupWithSettings,
2220
2254
  T as createSettingGroup,
2221
- Nt as isSetting,
2222
- Vt as isSettingGroup,
2255
+ St as isSetting,
2256
+ Nt as isSettingGroup,
2223
2257
  w as iterateSettings
2224
2258
  };