builder-settings-types 0.0.185 → 0.0.187

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.
@@ -1,5 +1,5 @@
1
1
  const R = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
- let I = (c = 21) => {
2
+ let T = (c = 21) => {
3
3
  let t = "", e = crypto.getRandomValues(new Uint8Array(c |= 0));
4
4
  for (; c--; )
5
5
  t += R[e[c] & 63];
@@ -22,7 +22,7 @@ function L(c) {
22
22
  const e = Object.getPrototypeOf(c);
23
23
  return e !== Object.prototype && Object.setPrototypeOf(t, e), t;
24
24
  }
25
- function $(c) {
25
+ function j(c) {
26
26
  switch (c) {
27
27
  case "number":
28
28
  return 0;
@@ -42,7 +42,7 @@ function $(c) {
42
42
  }
43
43
  class p {
44
44
  constructor(t = {}) {
45
- this.props = t, this.id = t.id || I(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "";
45
+ this.props = t, this.id = t.id || T(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "";
46
46
  }
47
47
  destroy() {
48
48
  throw new Error("Method not implemented.");
@@ -79,7 +79,7 @@ class p {
79
79
  const i = document.createElement("div");
80
80
  i.className = t.wrapperClassName || "";
81
81
  const s = document.createElement("input");
82
- this.inputEl = s, s.value = String(t.value || $(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "";
82
+ this.inputEl = s, s.value = String(t.value || j(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "";
83
83
  const n = (o) => {
84
84
  const l = o.target;
85
85
  let h = l.value;
@@ -120,7 +120,7 @@ class p {
120
120
  return i.className = "input-icon " + (e || ""), i.innerHTML = t, i;
121
121
  }
122
122
  }
123
- function S(c) {
123
+ function O(c) {
124
124
  let t = 0, e = c.parentElement;
125
125
  for (; e; )
126
126
  e.classList.contains("setting-group") && e !== c && t++, e = e.parentElement;
@@ -142,7 +142,7 @@ const F = {
142
142
  visualIndentMultiplier: 2,
143
143
  enableAutoDetection: !0
144
144
  };
145
- class j {
145
+ class P {
146
146
  constructor(t = {}) {
147
147
  this.observedElements = /* @__PURE__ */ new Set(), this.config = { ...F, ...t }, this.config.enableAutoDetection && this.setupAutoDetection();
148
148
  }
@@ -178,7 +178,7 @@ class j {
178
178
  * Update nesting for a specific element
179
179
  */
180
180
  updateElementNesting(t) {
181
- const e = S(t);
181
+ const e = O(t);
182
182
  this.applyNestingWithConfig(t, e);
183
183
  }
184
184
  /**
@@ -226,7 +226,7 @@ class j {
226
226
  this.observer && (this.observer.disconnect(), this.observer = void 0), this.observedElements.clear();
227
227
  }
228
228
  }
229
- const P = new j();
229
+ const G = new P();
230
230
  function x(c, t) {
231
231
  for (const e in c)
232
232
  if (c.hasOwnProperty(e)) {
@@ -234,10 +234,10 @@ function x(c, t) {
234
234
  t(e, i);
235
235
  }
236
236
  }
237
- const g = class g {
237
+ const m = class m {
238
238
  constructor(t) {
239
239
  this.elementRef = null, this.isHidden = !1, this.custom = !1, this.initialValues = {}, this.changeTimeout = null, this.isHandlingChange = !1, this.changeHandlers = /* @__PURE__ */ new Set(), this.blurTimeout = null, this.lastValues = {}, this.lastChangeTime = 0, this.CHANGE_DEBOUNCE = 100, this.handleBlur = () => {
240
- }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.parentNestingLevel = 0, this.id = t.id || I(), this.title = t.title, this.settings = t.settings, this.description = t.description, this.icon = t.icon, this.isCollapsed = t.collapsed ?? !1, this.isMain = t.main ?? !1, this.custom = t.custom ?? !1, this.hideCondition = t.hideCondition, this.onBlur = t.onBlur, this.parentNestingLevel = t.parentNestingLevel ?? 0, this.nestingLevel = this.parentNestingLevel, Object.assign(this, t.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel();
240
+ }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.parentNestingLevel = 0, this.id = t.id || T(), this.title = t.title, this.settings = t.settings, this.description = t.description, this.icon = t.icon, this.isCollapsed = t.collapsed ?? !1, this.isMain = t.main ?? !1, this.custom = t.custom ?? !1, this.hideCondition = t.hideCondition, this.onBlur = t.onBlur, this.parentNestingLevel = t.parentNestingLevel ?? 0, this.nestingLevel = this.parentNestingLevel, Object.assign(this, t.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel();
241
241
  }
242
242
  /**
243
243
  * Propagate nesting level to child setting groups
@@ -245,7 +245,7 @@ const g = class g {
245
245
  propagateNestingLevel() {
246
246
  const t = this.nestingLevel + 1;
247
247
  x(this.settings, (e, i) => {
248
- i instanceof g && (i.parentNestingLevel = this.nestingLevel, i.nestingLevel = t, i.propagateNestingLevel());
248
+ i instanceof m && (i.parentNestingLevel = this.nestingLevel, i.nestingLevel = t, i.propagateNestingLevel());
249
249
  });
250
250
  }
251
251
  /**
@@ -271,7 +271,7 @@ const g = class g {
271
271
  */
272
272
  autoDetectNestingLevel() {
273
273
  if (!this.elementRef) return;
274
- const t = S(this.elementRef);
274
+ const t = O(this.elementRef);
275
275
  t !== this.nestingLevel && this.setNestingLevel(t);
276
276
  }
277
277
  static hide() {
@@ -297,7 +297,7 @@ const g = class g {
297
297
  };
298
298
  return this.changeHandlers.clear(), x(this.settings, (i, s) => {
299
299
  var n;
300
- if (s instanceof g)
300
+ if (s instanceof m)
301
301
  s.setOnChange((a) => {
302
302
  const o = this.getValues();
303
303
  this.initialValues = o, t(o);
@@ -331,7 +331,7 @@ const g = class g {
331
331
  this.handleBlur,
332
332
  !0
333
333
  ), x(this.settings, (t, e) => {
334
- e instanceof g && e.setOnBlur(() => {
334
+ e instanceof m && e.setOnBlur(() => {
335
335
  this.onBlur && this.onBlur();
336
336
  });
337
337
  });
@@ -366,7 +366,7 @@ const g = class g {
366
366
  if (!t || typeof t != "object") return;
367
367
  Object.entries(t).forEach(([i, s]) => {
368
368
  const n = this.settings[i];
369
- n && (n instanceof g || n instanceof p) && typeof n.setValue == "function" && n.setValue(s);
369
+ n && (n instanceof m || n instanceof p) && typeof n.setValue == "function" && n.setValue(s);
370
370
  });
371
371
  const e = this.getValues();
372
372
  this.initialValues = e, this.onChange && this.onChange(e);
@@ -396,12 +396,12 @@ const g = class g {
396
396
  for (const i in this.settings)
397
397
  if (this.settings.hasOwnProperty(i)) {
398
398
  const s = this.settings[i];
399
- s instanceof g ? e[i] = s.getValues() : e[i] = s.value;
399
+ s instanceof m ? e[i] = s.getValues() : e[i] = s.value;
400
400
  }
401
401
  return e;
402
402
  } else {
403
403
  const e = this.settings[t];
404
- return e ? e instanceof g ? e.getValues() : e.value : void 0;
404
+ return e ? e instanceof m ? e.getValues() : e.value : void 0;
405
405
  }
406
406
  }
407
407
  getDefaultValues(t) {
@@ -410,12 +410,12 @@ const g = class g {
410
410
  for (const i in this.settings)
411
411
  if (this.settings.hasOwnProperty(i)) {
412
412
  const s = this.settings[i];
413
- s instanceof g ? e[i] = s.getDefaultValues() : e[i] = s.default !== void 0 ? s.default : s.value;
413
+ s instanceof m ? e[i] = s.getDefaultValues() : e[i] = s.default !== void 0 ? s.default : s.value;
414
414
  }
415
415
  return e;
416
416
  } else {
417
417
  const e = this.settings[t];
418
- return e ? e instanceof g ? e.getDefaultValues() : e.default !== void 0 ? e.default : e.value : void 0;
418
+ return e ? e instanceof m ? e.getDefaultValues() : e.default !== void 0 ? e.default : e.value : void 0;
419
419
  }
420
420
  }
421
421
  getMobileValues(t) {
@@ -424,7 +424,7 @@ const g = class g {
424
424
  for (const i in this.settings)
425
425
  if (this.settings.hasOwnProperty(i)) {
426
426
  const s = this.settings[i];
427
- if (s instanceof g)
427
+ if (s instanceof m)
428
428
  e[i] = s.getMobileValues();
429
429
  else if (typeof s.getMobileValue == "function") {
430
430
  const n = s.getMobileValue();
@@ -436,7 +436,7 @@ const g = class g {
436
436
  } else {
437
437
  const e = this.settings[t];
438
438
  if (!e) return;
439
- if (e instanceof g)
439
+ if (e instanceof m)
440
440
  return e.getMobileValues();
441
441
  if (typeof e.getMobileValue == "function") {
442
442
  const i = e.getMobileValue();
@@ -448,7 +448,7 @@ const g = class g {
448
448
  setMobileValues(t) {
449
449
  if (!(!t || typeof t != "object") && (Object.entries(t).forEach(([e, i]) => {
450
450
  const s = this.settings[e];
451
- s && (s instanceof g ? typeof i == "object" && i !== null && s.setMobileValues(i) : typeof s.setMobileValue == "function" && s.setMobileValue(i));
451
+ s && (s instanceof m ? typeof i == "object" && i !== null && s.setMobileValues(i) : typeof s.setMobileValue == "function" && s.setMobileValue(i));
452
452
  }), this.setValue(t), this.onChange)) {
453
453
  const e = this.getValues();
454
454
  this.onChange(e);
@@ -463,7 +463,7 @@ const g = class g {
463
463
  }
464
464
  draw() {
465
465
  const t = document.createElement("div");
466
- t.className = "setting-group", t.id = `setting-group-${this.id}`, g.hiddenElements.add(t), this.hideCondition && this.hideCondition() && (t.style.display = "none"), this.isMain && t.classList.add("main-group"), this.custom && t.classList.add("custom_class"), k(t, this.nestingLevel);
466
+ t.className = "setting-group", t.id = `setting-group-${this.id}`, m.hiddenElements.add(t), this.hideCondition && this.hideCondition() && (t.style.display = "none"), this.isMain && t.classList.add("main-group"), this.custom && t.classList.add("custom_class"), k(t, this.nestingLevel);
467
467
  const e = document.createElement("div");
468
468
  e.className = "setting-group-title", this.isCollapsed && e.classList.add("collapsed-view"), e.setAttribute("role", "button"), e.setAttribute(
469
469
  "aria-expanded",
@@ -504,27 +504,27 @@ const g = class g {
504
504
  );
505
505
  const r = o.querySelector(
506
506
  ".setting-group-description"
507
- ), u = n.querySelector(".info-marker");
507
+ ), d = n.querySelector(".info-marker");
508
508
  if (this.description)
509
509
  if (this.isCollapsed) {
510
- if (r && r.remove(), !u) {
511
- const d = document.createElement("span");
512
- d.className = "info-marker", d.innerHTML = `
510
+ if (r && r.remove(), !d) {
511
+ const u = document.createElement("span");
512
+ u.className = "info-marker", u.innerHTML = `
513
513
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
514
514
  <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"
515
515
  stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
516
516
  </svg>
517
- `, d.title = this.description, n.insertBefore(d, a);
517
+ `, u.title = this.description, n.insertBefore(u, a);
518
518
  }
519
519
  } else {
520
520
  if (!r) {
521
- const d = document.createElement("div");
522
- d.className = "setting-group-description", d.textContent = this.description, o.insertBefore(
523
- d,
521
+ const u = document.createElement("div");
522
+ u.className = "setting-group-description", u.textContent = this.description, o.insertBefore(
523
+ u,
524
524
  o.firstChild
525
525
  );
526
526
  }
527
- u && u.remove();
527
+ d && d.remove();
528
528
  }
529
529
  };
530
530
  if (e.onclick = l, e.onkeydown = (r) => {
@@ -532,14 +532,14 @@ const g = class g {
532
532
  }, Object.keys(this.settings).length > 0) {
533
533
  for (const r in this.settings)
534
534
  if (this.settings.hasOwnProperty(r)) {
535
- const u = this.settings[r];
536
- u instanceof g && u.setNestingLevel(this.nestingLevel + 1), o.appendChild(u.draw());
535
+ const d = this.settings[r];
536
+ d instanceof m && d.setNestingLevel(this.nestingLevel + 1), o.appendChild(d.draw());
537
537
  }
538
538
  } else {
539
539
  const r = document.createElement("div");
540
540
  r.className = "setting-group-empty", r.textContent = "No settings in this group", o.appendChild(r);
541
541
  }
542
- return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, P.trackElement(t), setTimeout(() => {
542
+ return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, G.trackElement(t), setTimeout(() => {
543
543
  this.updateNestingStyles();
544
544
  }, 0), this.pendingBlurHandler && (this.setupBlurHandlers(), this.pendingBlurHandler = null), t;
545
545
  }
@@ -587,14 +587,178 @@ const g = class g {
587
587
  }
588
588
  }
589
589
  };
590
- g.hiddenElements = /* @__PURE__ */ new Set();
591
- let m = g;
590
+ m.hiddenElements = /* @__PURE__ */ new Set();
591
+ let g = m;
592
592
  function z(c) {
593
- return new m(c);
593
+ return new g(c);
594
594
  }
595
- function ft(c) {
595
+ function Ct(c) {
596
596
  return c;
597
597
  }
598
+ class I extends g {
599
+ constructor(t) {
600
+ if (!t.tabs || t.tabs.length === 0)
601
+ throw new Error("At least one tab is required for TabsSettingGroup");
602
+ const e = t.activeTabId || t.tabs[0].id, i = t.tabs.find((a) => a.id === e) || t.tabs[0], s = I.createCombinedSettings(t.tabs), n = {
603
+ title: t.title,
604
+ settings: s,
605
+ id: t.id || T(),
606
+ collapsed: t.collapsed,
607
+ main: t.main,
608
+ description: t.description,
609
+ icon: t.icon,
610
+ hideCondition: t.hideCondition,
611
+ onBlur: t.onBlur,
612
+ custom: t.custom,
613
+ parentNestingLevel: t.parentNestingLevel
614
+ };
615
+ super(n), this.tabs = [], this.activeTabId = "", this.tabsContainer = null, this.contentContainers = /* @__PURE__ */ new Map(), this.drawnElement = null, this.tabs = t.tabs, this.activeTabId = i.id;
616
+ }
617
+ static createCombinedSettings(t) {
618
+ const e = {};
619
+ return t.forEach((i) => {
620
+ Object.entries(i.settings).forEach(([s, n]) => {
621
+ const a = `${i.id}_${s}`;
622
+ e[a] = n;
623
+ });
624
+ }), e;
625
+ }
626
+ getValues() {
627
+ const t = {};
628
+ if (!this.tabs || this.tabs.length === 0)
629
+ return t.tabs = {}, t.activeTabId = this.activeTabId || "", t;
630
+ const e = {};
631
+ return this.tabs.forEach((i) => {
632
+ e[i.id] = {}, Object.entries(i.settings).forEach(([s, n]) => {
633
+ const a = `${i.id}_${s}`, o = this.settings[a];
634
+ o && (o instanceof g ? e[i.id][s] = o.getValues() : e[i.id][s] = o.value);
635
+ });
636
+ }), t.tabs = e, t.activeTabId = this.activeTabId, t;
637
+ }
638
+ /**
639
+ * Override setValue to properly distribute values to tabs
640
+ * This maintains the SettingGroup interface while handling tab structure
641
+ */
642
+ setValue(t) {
643
+ t && (t.tabs && Object.entries(t.tabs).forEach(([e, i]) => {
644
+ typeof i == "object" && i !== null && this.setTabValues(e, i);
645
+ }), t.activeTabId && this.tabs && this.tabs.find((e) => e.id === t.activeTabId) && this.switchToTab(t.activeTabId), Object.entries(t).forEach(([e, i]) => {
646
+ if (e !== "tabs" && e !== "activeTabId") {
647
+ const s = this.settings[e];
648
+ s && typeof s.setValue == "function" && s.setValue(i);
649
+ }
650
+ }), this.initialValues = this.getValues(), this.onChange && this.onChange(this.getValues()));
651
+ }
652
+ /**
653
+ * Set values for a specific tab
654
+ */
655
+ setTabValues(t, e) {
656
+ !this.tabs || !this.tabs.find((s) => s.id === t) || Object.entries(e).forEach(([s, n]) => {
657
+ const a = `${t}_${s}`, o = this.settings[a];
658
+ o && (o instanceof g ? typeof n == "object" && n !== null && o.setValue(n) : typeof o.setValue == "function" && o.setValue(n));
659
+ });
660
+ }
661
+ getTabValues(t) {
662
+ if (!this.tabs) return {};
663
+ const e = this.tabs.find((s) => s.id === t);
664
+ if (!e) return {};
665
+ const i = {};
666
+ return Object.entries(e.settings).forEach(([s, n]) => {
667
+ const a = `${t}_${s}`, o = this.settings[a];
668
+ o && (o instanceof g ? i[s] = o.getValues() : i[s] = o.value);
669
+ }), i;
670
+ }
671
+ /**
672
+ * Switch to a specific tab
673
+ */
674
+ switchToTab(t) {
675
+ !this.tabs || !this.tabs.find((e) => e.id === t) || t === this.activeTabId || (this.activeTabId = t, this.updateTabUI(), this.onChange && this.onChange(this.getValues()));
676
+ }
677
+ /**
678
+ * Get current active tab ID
679
+ */
680
+ getActiveTabId() {
681
+ return this.activeTabId;
682
+ }
683
+ /**
684
+ * Override draw to add tab interface
685
+ */
686
+ draw() {
687
+ const t = super.draw();
688
+ t.classList.add("tabs-settings-container"), this.drawnElement = t;
689
+ const e = document.createElement("div");
690
+ e.classList.add("tabs-header"), t.classList.contains("main-group") && e.classList.add("main-header"), this.tabsContainer = e, this.tabs.forEach((s) => {
691
+ const n = document.createElement("button");
692
+ if (n.classList.add("tab-button"), n.setAttribute("data-tab-id", s.id), s.id === this.activeTabId && n.classList.add("active"), s.icon) {
693
+ const o = document.createElement("span");
694
+ o.className = "tab-icon", o.innerHTML = s.icon, n.appendChild(o);
695
+ }
696
+ const a = document.createElement("span");
697
+ a.textContent = s.label, n.appendChild(a), n.onclick = () => this.switchToTab(s.id), e.appendChild(n);
698
+ });
699
+ const i = t.querySelector(".setting-group-content");
700
+ return i && (t.insertBefore(e, i), this.setupTabContent(i)), t;
701
+ }
702
+ /**
703
+ * Setup tab content containers
704
+ */
705
+ setupTabContent(t) {
706
+ t.innerHTML = "", this.tabs.forEach((e) => {
707
+ const i = document.createElement("div");
708
+ i.classList.add("tab-content"), i.setAttribute("data-tab-id", e.id), e.id !== this.activeTabId && (i.style.display = "none"), Object.entries(e.settings).forEach(([s, n]) => {
709
+ const a = `${e.id}_${s}`, o = this.settings[a];
710
+ if (o && typeof o.draw == "function") {
711
+ const l = o.draw();
712
+ i.appendChild(l);
713
+ }
714
+ }), t.appendChild(i), this.contentContainers.set(e.id, i);
715
+ });
716
+ }
717
+ /**
718
+ * Update tab UI when active tab changes
719
+ */
720
+ updateTabUI() {
721
+ this.tabsContainer && this.tabsContainer.querySelectorAll(".tab-button").forEach((e) => {
722
+ e.getAttribute("data-tab-id") === this.activeTabId ? e.classList.add("active") : e.classList.remove("active");
723
+ }), this.contentContainers.forEach((t, e) => {
724
+ e === this.activeTabId ? t.style.display = "" : t.style.display = "none";
725
+ });
726
+ }
727
+ /**
728
+ * Add a new tab
729
+ */
730
+ addTab(t) {
731
+ this.tabs.push(t), Object.entries(t.settings).forEach(([e, i]) => {
732
+ const s = `${t.id}_${e}`;
733
+ this.settings[s] = i;
734
+ }), this.tabsContainer && this.redraw();
735
+ }
736
+ /**
737
+ * Remove a tab
738
+ */
739
+ removeTab(t) {
740
+ const e = this.tabs.findIndex((s) => s.id === t);
741
+ if (e === -1) return;
742
+ const i = this.tabs[e];
743
+ Object.keys(i.settings).forEach((s) => {
744
+ const n = `${t}_${s}`;
745
+ delete this.settings[n];
746
+ }), this.tabs.splice(e, 1), this.activeTabId === t && this.tabs.length > 0 && (this.activeTabId = this.tabs[0].id), this.tabsContainer && this.tabs.length > 0 && this.redraw();
747
+ }
748
+ /**
749
+ * Re-draw the component (useful after adding/removing tabs)
750
+ */
751
+ redraw() {
752
+ if (this.drawnElement && this.drawnElement.parentNode) {
753
+ const t = this.draw();
754
+ this.drawnElement.parentNode.replaceChild(t, this.drawnElement), this.drawnElement = t;
755
+ }
756
+ }
757
+ }
758
+ function vt(c) {
759
+ const t = new I(c);
760
+ return Object.assign(t, t.settings);
761
+ }
598
762
  class M extends p {
599
763
  constructor(t = {}) {
600
764
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
@@ -615,12 +779,12 @@ class M extends p {
615
779
  });
616
780
  }
617
781
  }
618
- const G = "<svg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'><path d='M8.99999 15.8542C9.79613 16.5667 10.8475 17 12 17C14.4853 17 16.5 14.9853 16.5 12.5C16.5 10.4248 15.0953 8.67769 13.1849 8.15763M4.81513 8.15762C2.9047 8.67768 1.5 10.4248 1.5 12.5C1.5 14.9853 3.51472 17 6 17C8.48528 17 10.5 14.9853 10.5 12.5C10.5 11.9146 10.3882 11.3554 10.1849 10.8424M13.5 6.5C13.5 8.98528 11.4853 11 9 11C6.51472 11 4.5 8.98528 4.5 6.5C4.5 4.01472 6.51472 2 9 2C11.4853 2 13.5 4.01472 13.5 6.5Z' stroke='#667085' stroke-linecap='round' stroke-linejoin='round'/></svg>";
782
+ const _ = "<svg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'><path d='M8.99999 15.8542C9.79613 16.5667 10.8475 17 12 17C14.4853 17 16.5 14.9853 16.5 12.5C16.5 10.4248 15.0953 8.67769 13.1849 8.15763M4.81513 8.15762C2.9047 8.67768 1.5 10.4248 1.5 12.5C1.5 14.9853 3.51472 17 6 17C8.48528 17 10.5 14.9853 10.5 12.5C10.5 11.9146 10.3882 11.3554 10.1849 10.8424M13.5 6.5C13.5 8.98528 11.4853 11 9 11C6.51472 11 4.5 8.98528 4.5 6.5C4.5 4.01472 6.51472 2 9 2C11.4853 2 13.5 4.01472 13.5 6.5Z' stroke='#667085' stroke-linecap='round' stroke-linejoin='round'/></svg>";
619
783
  class f extends M {
620
784
  constructor(t) {
621
785
  super({
622
786
  ...t,
623
- icon: t.icon || G,
787
+ icon: t.icon || _,
624
788
  title: t.title || "Color",
625
789
  default: t.default ? f.normalizeColorValue(t.default) : "#000000"
626
790
  }), this.inputType = "color", this.element = null, this.colorInputEl = null, this.textInputEl = null, this.detectChange = t.detectChange;
@@ -636,8 +800,8 @@ class f extends M {
636
800
  if (e.length !== 3 || e.some(isNaN))
637
801
  return console.warn(`Invalid RGB value "${t}", using default "#000000"`), "#000000";
638
802
  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) => {
639
- const u = r.toString(16);
640
- return u.length === 1 ? "0" + u : u;
803
+ const d = r.toString(16);
804
+ return d.length === 1 ? "0" + d : d;
641
805
  };
642
806
  return `#${h(a)}${h(o)}${h(l)}`;
643
807
  }
@@ -677,8 +841,8 @@ class f extends M {
677
841
  const h = l.value.trim();
678
842
  if (!h)
679
843
  return e.classList.remove("error"), !0;
680
- const u = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(h);
681
- return u ? e.classList.remove("error") : e.classList.add("error"), u;
844
+ const d = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(h);
845
+ return d ? e.classList.remove("error") : e.classList.add("error"), d;
682
846
  }, s = document.createElement("input");
683
847
  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;
684
848
  const n = document.createElement("div");
@@ -687,20 +851,20 @@ class f extends M {
687
851
  n.style.backgroundColor = a;
688
852
  const o = document.createElement("input");
689
853
  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) => {
690
- var r, u;
854
+ var r, d;
691
855
  let h = l.target.value.trim();
692
856
  if (this.textInputEl && i(this.textInputEl)) {
693
- const d = f.normalizeColorValue(h);
694
- 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;
857
+ const u = f.normalizeColorValue(h);
858
+ 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;
695
859
  }
696
860
  }), this.colorInputEl.addEventListener("input", (l) => {
697
- var u, d;
861
+ var d, u;
698
862
  const h = l.target.value, r = f.normalizeColorValue(h);
699
- 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");
863
+ 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");
700
864
  }), this.colorInputEl.addEventListener("change", (l) => {
701
- var u, d;
865
+ var d, u;
702
866
  const h = l.target.value, r = f.normalizeColorValue(h);
703
- 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;
867
+ 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;
704
868
  }), e.appendChild(s), e.appendChild(n), e.appendChild(o), t.appendChild(e), this.element = t, t;
705
869
  }
706
870
  getElement() {
@@ -832,7 +996,7 @@ class v extends p {
832
996
  };
833
997
  }
834
998
  }
835
- class Ct extends p {
999
+ class bt extends p {
836
1000
  constructor(t = {}) {
837
1001
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
838
1002
  }
@@ -928,7 +1092,7 @@ const D = `
928
1092
  <path d="M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
929
1093
  <path d="M9 1V17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1Z" fill="#667085" stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
930
1094
  </svg>`;
931
- class _ extends C {
1095
+ class q extends C {
932
1096
  constructor(t = {}) {
933
1097
  const e = {
934
1098
  title: "Opacity",
@@ -949,12 +1113,12 @@ class _ extends C {
949
1113
  this.mobileValue = t, t !== void 0 && this.setValue(t);
950
1114
  }
951
1115
  }
952
- const q = `
1116
+ const U = `
953
1117
  <svg xmlns="http://www.w3.org/2000/svg" class="svg-select" 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">
954
1118
  <polyline points="6 9 12 15 18 9"></polyline>
955
1119
  </svg>
956
1120
  `;
957
- class T extends p {
1121
+ class S extends p {
958
1122
  constructor(t = {}) {
959
1123
  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.clickOutsideListener = null, t.options && (this._options = [...t.options]), t.getOptions && this._options.push(...t.getOptions()), t.getOptionsAsync && (this.isLoading = !0), this.value !== void 0) {
960
1124
  const e = this._options.findIndex((i) => i.value === this.value);
@@ -993,7 +1157,7 @@ class T extends p {
993
1157
  o.onclick = (l) => this.selectOption(l, a, e), i.appendChild(o);
994
1158
  }), t.appendChild(i);
995
1159
  const s = document.createElement("div");
996
- return s.classList.add("svg-container"), s.innerHTML = q, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1160
+ return s.classList.add("svg-container"), s.innerHTML = U, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
997
1161
  this._options.push(...n), this.isLoading = !1, this.updateOptionsList(), this.updateButtonText();
998
1162
  }).catch((n) => {
999
1163
  console.error("Failed to fetch async options:", n), this.isLoading = !1, this.updateButtonText("Failed to load options");
@@ -1038,7 +1202,7 @@ class T extends p {
1038
1202
  this.clickOutsideListener && (document.removeEventListener("click", this.clickOutsideListener), this.clickOutsideListener = null), super.destroy();
1039
1203
  }
1040
1204
  }
1041
- class U extends p {
1205
+ class J extends p {
1042
1206
  constructor(t = {}) {
1043
1207
  super(t), this.inputType = "button", this.value || (this.value = "center");
1044
1208
  }
@@ -1091,7 +1255,7 @@ class U extends p {
1091
1255
  }), t.appendChild(i), t;
1092
1256
  }
1093
1257
  }
1094
- class vt extends p {
1258
+ class Et extends p {
1095
1259
  constructor(t) {
1096
1260
  super(t), this.inputType = "button";
1097
1261
  }
@@ -1104,7 +1268,7 @@ class vt extends p {
1104
1268
  return e.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), e.appendChild(t), e;
1105
1269
  }
1106
1270
  }
1107
- class bt extends p {
1271
+ class wt extends p {
1108
1272
  constructor(t = {}) {
1109
1273
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1110
1274
  const e = t.width || 0, i = t.height || 0;
@@ -1117,14 +1281,14 @@ class bt extends p {
1117
1281
  suffix: "px",
1118
1282
  minValue: this.minWidth,
1119
1283
  maxValue: this.maxWidth,
1120
- icon: J
1284
+ icon: Z
1121
1285
  }), this.heightSetting = new C({
1122
1286
  title: "Height",
1123
1287
  default: this.value.height,
1124
1288
  suffix: "px",
1125
1289
  minValue: this.minHeight,
1126
1290
  maxValue: this.maxHeight,
1127
- icon: Z
1291
+ icon: K
1128
1292
  }), this.widthSetting.setOnChange(this.handleWidthChange.bind(this)), this.heightSetting.setOnChange(this.handleHeightChange.bind(this));
1129
1293
  }
1130
1294
  handleWidthChange(t) {
@@ -1218,9 +1382,9 @@ class bt extends p {
1218
1382
  }
1219
1383
  }
1220
1384
  }
1221
- const J = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1385
+ const Z = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1222
1386
  <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"/>
1223
- </svg>`, Z = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1387
+ </svg>`, K = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1224
1388
  <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"/>
1225
1389
  </svg>`, V = `
1226
1390
  <svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
@@ -1231,12 +1395,12 @@ const J = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBo
1231
1395
  <rect width="91" height="71" rx="4" fill="#F2F4F7"/>
1232
1396
  <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"/>
1233
1397
  </svg>
1234
- `, K = `
1398
+ `, Q = `
1235
1399
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 12 12" fill="none">
1236
1400
  <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"/>
1237
1401
  </svg>
1238
1402
  `;
1239
- class Q extends p {
1403
+ class Y extends p {
1240
1404
  constructor(t = {}) {
1241
1405
  super(t), this.inputType = "button", this.previewWrapper = null, this.previewEl = null, this.emptyStateEl = null, this.errorContainer = 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);
1242
1406
  }
@@ -1300,7 +1464,7 @@ class Q extends p {
1300
1464
  const n = document.createElement("div");
1301
1465
  if (n.className = "preview-placeholder", n.innerHTML = X, this.previewWrapper = document.createElement("div"), this.previewWrapper.className = "preview-wrapper", this.previewEl = document.createElement("img"), this.previewEl.className = "upload-preview", this.props.delete) {
1302
1466
  const l = document.createElement("button");
1303
- l.className = "delete-button", l.type = "button", l.title = "Delete image", l.innerHTML = K, this.previewWrapper.appendChild(l), l.onclick = (h) => {
1467
+ l.className = "delete-button", l.type = "button", l.title = "Delete image", l.innerHTML = Q, this.previewWrapper.appendChild(l), l.onclick = (h) => {
1304
1468
  var r;
1305
1469
  h.stopPropagation(), this.value = "", o.value = "", this.updatePreviewState(null), (r = this.onChange) == null || r.call(this, ""), this.hideError();
1306
1470
  };
@@ -1315,7 +1479,7 @@ class Q extends p {
1315
1479
  return o.type = "file", o.accept = "image/*", o.style.display = "none", i.appendChild(n), i.appendChild(this.previewWrapper), i.appendChild(a), t.appendChild(i), t.appendChild(o), s ? this.updatePreviewState(this.value) : this.updatePreviewState(null), a.onclick = () => {
1316
1480
  o.click();
1317
1481
  }, o.onchange = async () => {
1318
- var h, r, u;
1482
+ var h, r, d;
1319
1483
  const l = (h = o.files) == null ? void 0 : h[0];
1320
1484
  if (l) {
1321
1485
  if (!this.validateFileSize(l)) {
@@ -1325,27 +1489,27 @@ class Q extends p {
1325
1489
  this.hideError();
1326
1490
  try {
1327
1491
  a.classList.add("loading"), a.disabled = !0;
1328
- const d = new FormData(), O = this.props.formFieldName || "file";
1329
- d.append(O, l, l.name);
1492
+ const u = new FormData(), B = this.props.formFieldName || "file";
1493
+ u.append(B, l, l.name);
1330
1494
  const N = this.props.uploadUrl;
1331
1495
  if (!N)
1332
1496
  throw new Error("No uploadUrl provided to UploadSetting.");
1333
- const B = this.props.requestMethod || "POST", A = { ...this.props.requestHeaders || {} }, E = await (await fetch(N, {
1334
- method: B,
1335
- body: d,
1336
- headers: A
1497
+ const A = this.props.requestMethod || "POST", $ = { ...this.props.requestHeaders || {} }, w = await (await fetch(N, {
1498
+ method: A,
1499
+ body: u,
1500
+ headers: $
1337
1501
  })).json();
1338
- console.log("Upload response:", E);
1502
+ console.log("Upload response:", w);
1339
1503
  let b;
1340
1504
  if (this.props.parseResponse)
1341
- b = this.props.parseResponse(E);
1342
- else if (b = (r = E == null ? void 0 : E.data) == null ? void 0 : r.url, !b)
1505
+ b = this.props.parseResponse(w);
1506
+ else if (b = (r = w == null ? void 0 : w.data) == null ? void 0 : r.url, !b)
1343
1507
  throw new Error(
1344
1508
  "No URL found in response. Provide a parseResponse if needed."
1345
1509
  );
1346
- console.log("Final URL:", b), this.value = b, this.updatePreviewState(b), (u = this.onChange) == null || u.call(this, b);
1347
- } catch (d) {
1348
- console.error("Error uploading file:", d), this.showError(`Upload failed: ${d instanceof Error ? d.message : "Unknown error"}`), o.value = "";
1510
+ console.log("Final URL:", b), this.value = b, this.updatePreviewState(b), (d = this.onChange) == null || d.call(this, b);
1511
+ } catch (u) {
1512
+ console.error("Error uploading file:", u), this.showError(`Upload failed: ${u instanceof Error ? u.message : "Unknown error"}`), o.value = "";
1349
1513
  } finally {
1350
1514
  a.classList.remove("loading"), a.disabled = !1;
1351
1515
  }
@@ -1353,14 +1517,14 @@ class Q extends p {
1353
1517
  }, t;
1354
1518
  }
1355
1519
  }
1356
- class wt extends C {
1520
+ class xt extends C {
1357
1521
  constructor(t = {}) {
1358
1522
  super({
1359
1523
  ...t,
1360
1524
  title: t.title || "Height",
1361
1525
  suffix: t.suffix || "px",
1362
1526
  minValue: t.minValue ?? 0,
1363
- icon: t.icon || Y,
1527
+ icon: t.icon || tt,
1364
1528
  default: t.default ?? 100
1365
1529
  }), this.inputType = "number", this.mobileValue = t.mobile;
1366
1530
  }
@@ -1371,17 +1535,17 @@ class wt extends C {
1371
1535
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1372
1536
  }
1373
1537
  }
1374
- const Y = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1538
+ const tt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1375
1539
  <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"/>
1376
1540
  </svg>`;
1377
- class Et extends C {
1541
+ class yt extends C {
1378
1542
  constructor(t = {}) {
1379
1543
  super({
1380
1544
  ...t,
1381
1545
  title: t.title || "Width",
1382
1546
  suffix: t.suffix || "px",
1383
1547
  minValue: t.minValue ?? 0,
1384
- icon: t.icon || tt,
1548
+ icon: t.icon || et,
1385
1549
  default: t.default ?? 100
1386
1550
  }), this.inputType = "number", this.mobileValue = t.mobile;
1387
1551
  }
@@ -1392,14 +1556,14 @@ class Et extends C {
1392
1556
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1393
1557
  }
1394
1558
  }
1395
- const tt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1559
+ const et = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1396
1560
  <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"/>
1397
- </svg>`, et = `
1561
+ </svg>`, it = `
1398
1562
  <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">
1399
1563
  <polyline points="6 9 12 15 18 9"></polyline>
1400
1564
  </svg>
1401
1565
  `;
1402
- class xt extends p {
1566
+ class Lt extends p {
1403
1567
  constructor(t = {}) {
1404
1568
  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) {
1405
1569
  const e = this._options.findIndex(
@@ -1454,7 +1618,7 @@ class xt extends p {
1454
1618
  o.onclick = (l) => this.selectApiOption(l, a, e), i.appendChild(o);
1455
1619
  }), t.appendChild(i);
1456
1620
  const s = document.createElement("div");
1457
- return s.classList.add("svg-container"), s.innerHTML = et, t.appendChild(s), s.onclick = () => {
1621
+ return s.classList.add("svg-container"), s.innerHTML = it, t.appendChild(s), s.onclick = () => {
1458
1622
  var n, a;
1459
1623
  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));
1460
1624
  }, this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && !this.hasInitializedOptions ? (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
@@ -1498,7 +1662,7 @@ class xt extends p {
1498
1662
  })), t;
1499
1663
  }
1500
1664
  selectApiOption(t, e, i) {
1501
- var l, h, r, u;
1665
+ var l, h, r, d;
1502
1666
  const s = t.target, n = s.querySelector(".select-api-radio") || ((l = s.closest(".select-api-option")) == null ? void 0 : l.querySelector(".select-api-radio"));
1503
1667
  n && (n.checked = !0), this.selectedOptionIndex = e;
1504
1668
  const a = this._options[e].value;
@@ -1507,10 +1671,10 @@ class xt extends p {
1507
1671
  if (o)
1508
1672
  o.textContent = this._options[e].name;
1509
1673
  else {
1510
- const d = i.firstChild;
1511
- d && d.tagName === "SPAN" && (d.textContent = this._options[e].name);
1674
+ const u = i.firstChild;
1675
+ u && u.tagName === "SPAN" && (u.textContent = this._options[e].name);
1512
1676
  }
1513
- 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, a), this.detectChangeCallback && this.detectChangeCallback(a);
1677
+ 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);
1514
1678
  }
1515
1679
  updateOptionsList() {
1516
1680
  !this.optionsListEl || !this.buttonEl || (this.optionsListEl.innerHTML = "", this._options.forEach((t, e) => {
@@ -1543,7 +1707,7 @@ class xt extends p {
1543
1707
  ), this.updateButtonText();
1544
1708
  }
1545
1709
  }
1546
- class yt extends p {
1710
+ class Vt extends p {
1547
1711
  constructor(t) {
1548
1712
  var e, i;
1549
1713
  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;
@@ -1567,7 +1731,7 @@ class yt extends p {
1567
1731
  const s = document.createElement("input");
1568
1732
  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", () => {
1569
1733
  var h, r;
1570
- const l = ((r = (h = this.props.options) == null ? void 0 : h.find((u) => u.status === s.checked)) == null ? void 0 : r.value) ?? "";
1734
+ const l = ((r = (h = this.props.options) == null ? void 0 : h.find((d) => d.status === s.checked)) == null ? void 0 : r.value) ?? "";
1571
1735
  this.value = l, this.onChange && this.onChange(this.value), this.detectChangeCallback && this.detectChangeCallback(this.value);
1572
1736
  });
1573
1737
  const n = document.createElement("span");
@@ -1588,13 +1752,13 @@ class yt extends p {
1588
1752
  this.detectChangeCallback = t;
1589
1753
  }
1590
1754
  }
1591
- const it = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1755
+ const st = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1592
1756
  <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"/>
1593
1757
  </svg>`;
1594
- class Lt extends p {
1758
+ class kt extends p {
1595
1759
  // Store mobile value
1596
1760
  constructor(t = {}) {
1597
- t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? it, 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);
1761
+ t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? st, 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);
1598
1762
  }
1599
1763
  draw() {
1600
1764
  const t = document.createElement("div");
@@ -1645,7 +1809,7 @@ class Lt extends p {
1645
1809
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1646
1810
  }
1647
1811
  }
1648
- class w extends m {
1812
+ class E extends g {
1649
1813
  constructor(t) {
1650
1814
  var o;
1651
1815
  if (!t.tabs)
@@ -1669,7 +1833,7 @@ class w extends m {
1669
1833
  tabs: this.tabValues,
1670
1834
  activeTabId: this.activeTabId
1671
1835
  }, Object.values(e.settings).forEach((i) => {
1672
- i instanceof w && (i._parentTabsSettings = this);
1836
+ i instanceof E && (i._parentTabsSettings = this);
1673
1837
  }), this.connectChildChangeHandlers());
1674
1838
  }
1675
1839
  connectChildChangeHandlers() {
@@ -1687,18 +1851,18 @@ class w extends m {
1687
1851
  });
1688
1852
  };
1689
1853
  Object.values(this.settings).forEach((e) => {
1690
- e instanceof m ? e.setOnChange(() => {
1854
+ e instanceof g ? e.setOnChange(() => {
1691
1855
  t();
1692
1856
  }) : e instanceof p && e.setOnChange(() => {
1693
1857
  t();
1694
1858
  });
1695
1859
  }), this.tabs.forEach((e) => {
1696
1860
  Object.entries(e.settings).forEach(([i, s]) => {
1697
- (s instanceof m || s instanceof p) && (s instanceof w ? (s._parentTabsSettings = this, s.setOnChange((n) => {
1861
+ (s instanceof g || s instanceof p) && (s instanceof E ? (s._parentTabsSettings = this, s.setOnChange((n) => {
1698
1862
  Promise.resolve().then(() => {
1699
1863
  this.tabValues[e.id] = this.getTabValues(e), this.triggerDebouncedChange();
1700
1864
  });
1701
- })) : s instanceof m ? s.setOnChange(() => {
1865
+ })) : s instanceof g ? s.setOnChange(() => {
1702
1866
  Promise.resolve().then(() => {
1703
1867
  this.tabValues[e.id] = this.getTabValues(e), this.triggerDebouncedChange();
1704
1868
  });
@@ -1729,7 +1893,7 @@ class w extends m {
1729
1893
  const i = (o = this.tabsContainer) == null ? void 0 : o.querySelectorAll(".tab-button");
1730
1894
  i == null || i.forEach((h) => {
1731
1895
  if (h instanceof HTMLElement) {
1732
- const r = this.tabs.find((u) => u.label === h.textContent);
1896
+ const r = this.tabs.find((d) => d.label === h.textContent);
1733
1897
  h.classList.toggle("active", (r == null ? void 0 : r.id) === t);
1734
1898
  }
1735
1899
  }), this.updateSettingsFromTab(t);
@@ -1789,7 +1953,7 @@ class w extends m {
1789
1953
  activeTabId: this.activeTabId
1790
1954
  }, this.tabs.forEach((t) => {
1791
1955
  Object.values(t.settings).forEach((e) => {
1792
- e instanceof w && e.updateInitialValues();
1956
+ e instanceof E && e.updateInitialValues();
1793
1957
  });
1794
1958
  }));
1795
1959
  }
@@ -1807,7 +1971,7 @@ class w extends m {
1807
1971
  getTabValues(t) {
1808
1972
  const e = {};
1809
1973
  return Object.entries(t.settings).forEach(([i, s]) => {
1810
- s instanceof w || s instanceof m ? e[i] = s.getValues() : (s instanceof p, e[i] = s.value);
1974
+ s instanceof E || s instanceof g ? e[i] = s.getValues() : (s instanceof p, e[i] = s.value);
1811
1975
  }), e;
1812
1976
  }
1813
1977
  clone() {
@@ -1833,7 +1997,7 @@ class w extends m {
1833
1997
  hideCondition: this.hideCondition,
1834
1998
  settings: {}
1835
1999
  };
1836
- return new w(
2000
+ return new E(
1837
2001
  e
1838
2002
  );
1839
2003
  }
@@ -1886,49 +2050,49 @@ class w extends m {
1886
2050
  return this.tabs;
1887
2051
  }
1888
2052
  }
1889
- const st = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2053
+ const nt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1890
2054
  <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"/>
1891
2055
  </svg>`;
1892
- class Vt extends C {
2056
+ class Mt extends C {
1893
2057
  constructor(t = {}) {
1894
2058
  super({
1895
2059
  ...t,
1896
2060
  minValue: t.minValue ?? 0,
1897
2061
  maxValue: t.maxValue ?? 1e3,
1898
- icon: t.icon || st,
2062
+ icon: t.icon || nt,
1899
2063
  title: t.title || "Margin Bottom",
1900
2064
  default: t.default ?? 20,
1901
2065
  wrapperClassName: "margin-bottom-wrapper " + (t.wrapperClassName || "")
1902
2066
  }), this.inputType = "number";
1903
2067
  }
1904
2068
  }
1905
- const nt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2069
+ const at = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1906
2070
  <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"
1907
2071
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1908
2072
  </svg>`;
1909
- class kt extends C {
2073
+ class Tt extends C {
1910
2074
  constructor(t = {}) {
1911
2075
  super({
1912
2076
  ...t,
1913
2077
  minValue: t.minValue ?? 0,
1914
2078
  maxValue: t.maxValue ?? 1e3,
1915
- icon: t.icon || nt,
2079
+ icon: t.icon || at,
1916
2080
  title: t.title || "Margin Top",
1917
2081
  default: t.default ?? 20,
1918
2082
  wrapperClassName: "margin-top-wrapper " + (t.wrapperClassName || "")
1919
2083
  }), this.inputType = "number";
1920
2084
  }
1921
2085
  }
1922
- const at = `
2086
+ const ot = `
1923
2087
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1924
2088
  <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"/>
1925
2089
  </svg>
1926
- `, ot = `
2090
+ `, lt = `
1927
2091
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1928
2092
  <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"/>
1929
2093
  </svg>
1930
2094
  `;
1931
- class Mt extends m {
2095
+ class It extends g {
1932
2096
  constructor(t) {
1933
2097
  super({
1934
2098
  title: "Border",
@@ -1937,7 +2101,7 @@ class Mt extends m {
1937
2101
  settings: {
1938
2102
  size: new C({
1939
2103
  title: "Size",
1940
- icon: ot,
2104
+ icon: lt,
1941
2105
  default: (t == null ? void 0 : t.size) ?? 0,
1942
2106
  suffix: "px"
1943
2107
  }),
@@ -1946,7 +2110,7 @@ class Mt extends m {
1946
2110
  }),
1947
2111
  radius: new C({
1948
2112
  title: "Radius",
1949
- icon: at,
2113
+ icon: ot,
1950
2114
  default: (t == null ? void 0 : t.radius) ?? 12,
1951
2115
  suffix: "px"
1952
2116
  })
@@ -1965,20 +2129,20 @@ class Mt extends m {
1965
2129
  `;
1966
2130
  }
1967
2131
  }
1968
- const lt = `
2132
+ const rt = `
1969
2133
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
1970
2134
  <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"/>
1971
2135
  </svg>
1972
- `, rt = `
2136
+ `, ht = `
1973
2137
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1974
2138
  <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"/>
1975
2139
  </svg>
1976
- `, ht = `
2140
+ `, ct = `
1977
2141
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1978
2142
  <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"/>
1979
2143
  </svg>
1980
2144
  `;
1981
- class Nt extends m {
2145
+ class Nt extends g {
1982
2146
  constructor(t = {}) {
1983
2147
  super({
1984
2148
  title: t.title || "Typography",
@@ -1988,9 +2152,9 @@ class Nt extends m {
1988
2152
  color: new v({
1989
2153
  default: t.colorDefault ?? "0, 0, 30"
1990
2154
  }),
1991
- fontFamily: new T({
2155
+ fontFamily: new S({
1992
2156
  title: "Font",
1993
- icon: lt,
2157
+ icon: rt,
1994
2158
  default: t.fontFamilyDefault ?? "Satoshi",
1995
2159
  options: t.fontFamilyOptions ?? [
1996
2160
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -2000,9 +2164,9 @@ class Nt extends m {
2000
2164
  getOptions: t.fontFamilyGetOptions,
2001
2165
  getOptionsAsync: t.fontFamilyGetOptionsAsync
2002
2166
  }),
2003
- fontWeight: new T({
2167
+ fontWeight: new S({
2004
2168
  title: "Weight",
2005
- icon: rt,
2169
+ icon: ht,
2006
2170
  default: t.fontWeightDefault ?? "400",
2007
2171
  options: t.fontWeightOptions ?? [
2008
2172
  { name: "Regular", value: "400" },
@@ -2014,12 +2178,12 @@ class Nt extends m {
2014
2178
  }),
2015
2179
  fontSize: new C({
2016
2180
  title: "Size",
2017
- icon: ht,
2181
+ icon: ct,
2018
2182
  default: t.fontSizeDefault ?? 12,
2019
2183
  suffix: "px",
2020
2184
  mobile: t.fontSizeMobileDefault
2021
2185
  }),
2022
- align: new U({
2186
+ align: new J({
2023
2187
  title: "Align",
2024
2188
  default: t.alignDefault ?? "center"
2025
2189
  })
@@ -2083,7 +2247,7 @@ class y extends p {
2083
2247
  }), i;
2084
2248
  }
2085
2249
  }
2086
- class Tt extends m {
2250
+ class St extends g {
2087
2251
  constructor(t) {
2088
2252
  super({
2089
2253
  title: "Margins",
@@ -2092,7 +2256,7 @@ class Tt extends m {
2092
2256
  settings: {
2093
2257
  marginTop: new y({
2094
2258
  title: "Top",
2095
- icon: ct,
2259
+ icon: dt,
2096
2260
  suffix: "px",
2097
2261
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
2098
2262
  }),
@@ -2104,13 +2268,13 @@ class Tt extends m {
2104
2268
  }),
2105
2269
  marginBottom: new y({
2106
2270
  title: "Bottom",
2107
- icon: dt,
2271
+ icon: pt,
2108
2272
  suffix: "px",
2109
2273
  default: (t == null ? void 0 : t.marginBottom) ?? 0
2110
2274
  }),
2111
2275
  marginLeft: new y({
2112
2276
  title: "Left",
2113
- icon: pt,
2277
+ icon: gt,
2114
2278
  suffix: "px",
2115
2279
  default: (t == null ? void 0 : t.marginLeft) ?? 0
2116
2280
  })
@@ -2127,16 +2291,16 @@ class Tt extends m {
2127
2291
  `;
2128
2292
  }
2129
2293
  }
2130
- const ct = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2294
+ const dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2131
2295
  <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"/>
2132
2296
  </svg>`, ut = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2133
2297
  <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"/>
2134
- </svg>`, dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2135
- <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"/>
2136
2298
  </svg>`, pt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2299
+ <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"/>
2300
+ </svg>`, gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2137
2301
  <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"/>
2138
2302
  </svg>`;
2139
- class It extends m {
2303
+ class Ot extends g {
2140
2304
  /**
2141
2305
  * Constructs a new BackgroundSettingSet.
2142
2306
  *
@@ -2166,11 +2330,11 @@ class It extends m {
2166
2330
  collapsed: t == null ? void 0 : t.collapsed,
2167
2331
  hideCondition: t == null ? void 0 : t.hideCondition,
2168
2332
  settings: {
2169
- backgroundImage: new Q({
2333
+ backgroundImage: new Y({
2170
2334
  ...t == null ? void 0 : t.uploadProps,
2171
2335
  default: (t == null ? void 0 : t.backgroundImage) ?? ""
2172
2336
  }),
2173
- opacity: new _({
2337
+ opacity: new q({
2174
2338
  default: (t == null ? void 0 : t.opacity) ?? 100
2175
2339
  }),
2176
2340
  backgroundColor: new v({
@@ -2205,7 +2369,7 @@ class It extends m {
2205
2369
  `;
2206
2370
  }
2207
2371
  }
2208
- class gt extends m {
2372
+ class mt extends g {
2209
2373
  constructor(t, e, i) {
2210
2374
  super({
2211
2375
  title: `Tab ${t + 1}`,
@@ -2249,7 +2413,7 @@ class gt extends m {
2249
2413
  return t;
2250
2414
  }
2251
2415
  }
2252
- class St extends m {
2416
+ class Ht extends g {
2253
2417
  // Store the rendered element
2254
2418
  constructor(t) {
2255
2419
  super({
@@ -2261,7 +2425,7 @@ class St extends m {
2261
2425
  }
2262
2426
  /** Adds a new tab. */
2263
2427
  addTab(t) {
2264
- const e = this.tabs.length, i = new gt(
2428
+ const e = this.tabs.length, i = new mt(
2265
2429
  e,
2266
2430
  () => this.removeTab(i),
2267
2431
  t
@@ -2318,42 +2482,44 @@ class St extends m {
2318
2482
  }));
2319
2483
  }
2320
2484
  }
2321
- function Ht(c) {
2322
- return c instanceof m;
2485
+ function Bt(c) {
2486
+ return c instanceof g;
2323
2487
  }
2324
- function Ot(c) {
2488
+ function At(c) {
2325
2489
  return c instanceof p;
2326
2490
  }
2327
2491
  export {
2328
- U as AlignSetting,
2329
- It as BackgroundSettingSet,
2330
- Mt as BorderSettingSet,
2331
- vt as ButtonSetting,
2492
+ J as AlignSetting,
2493
+ Ot as BackgroundSettingSet,
2494
+ It as BorderSettingSet,
2495
+ Et as ButtonSetting,
2332
2496
  f as ColorSetting,
2333
2497
  v as ColorWithOpacitySetting,
2334
- bt as DimensionSetting,
2335
- Lt as GapSetting,
2498
+ wt as DimensionSetting,
2499
+ kt as GapSetting,
2336
2500
  Nt as HeaderTypographySettingSet,
2337
- wt as HeightSetting,
2338
- Ct as HtmlSetting,
2339
- Vt as MarginBottomSetting,
2340
- Tt as MarginSettingGroup,
2341
- kt as MarginTopSetting,
2501
+ xt as HeightSetting,
2502
+ bt as HtmlSetting,
2503
+ Mt as MarginBottomSetting,
2504
+ St as MarginSettingGroup,
2505
+ Tt as MarginTopSetting,
2342
2506
  C as NumberSetting,
2343
- _ as OpacitySetting,
2344
- xt as SelectApiSettings,
2345
- T as SelectSetting,
2507
+ q as OpacitySetting,
2508
+ Lt as SelectApiSettings,
2509
+ S as SelectSetting,
2346
2510
  p as Setting,
2347
- m as SettingGroup,
2511
+ g as SettingGroup,
2348
2512
  M as StringSetting,
2349
- St as TabsContainerGroup,
2350
- w as TabsSettings,
2351
- yt as Toggle,
2352
- Q as UploadSetting,
2353
- Et as WidthSetting,
2354
- ft as asSettingGroupWithSettings,
2513
+ Ht as TabsContainerGroup,
2514
+ I as TabsSettingGroup,
2515
+ E as TabsSettings,
2516
+ Vt as Toggle,
2517
+ Y as UploadSetting,
2518
+ yt as WidthSetting,
2519
+ Ct as asSettingGroupWithSettings,
2355
2520
  z as createSettingGroup,
2356
- Ot as isSetting,
2357
- Ht as isSettingGroup,
2521
+ vt as createTabsSettingGroup,
2522
+ At as isSetting,
2523
+ Bt as isSettingGroup,
2358
2524
  x as iterateSettings
2359
2525
  };