builder-settings-types 0.0.242 → 0.0.244

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 T = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
- let N = (c = 21) => {
2
+ let S = (c = 21) => {
3
3
  let t = "", e = crypto.getRandomValues(new Uint8Array(c |= 0));
4
4
  for (; c--; )
5
5
  t += T[e[c] & 63];
@@ -111,7 +111,7 @@ class B {
111
111
  this.observer && (this.observer.disconnect(), this.observer = void 0), this.observedElements.clear();
112
112
  }
113
113
  }
114
- const S = new B();
114
+ const N = new B();
115
115
  function y(c) {
116
116
  if (c === null || typeof c != "object") return c;
117
117
  if (c instanceof Date) return new Date(c.getTime());
@@ -124,7 +124,7 @@ function y(c) {
124
124
  }
125
125
  return c;
126
126
  }
127
- function D(c) {
127
+ function $(c) {
128
128
  switch (c) {
129
129
  case "number":
130
130
  return 0;
@@ -144,7 +144,7 @@ function D(c) {
144
144
  }
145
145
  class g {
146
146
  constructor(t = {}) {
147
- this.props = t, this.dataPropsPath = "", this.id = t.id || N(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "", this.includeGetJson = t.includeGetJson !== void 0 ? t.includeGetJson : !0;
147
+ this.props = t, this.dataPropsPath = "", this.id = t.id || S(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "", this.includeGetJson = t.includeGetJson !== void 0 ? t.includeGetJson : !0;
148
148
  }
149
149
  static SetUploadUrl(t) {
150
150
  globalThis.DefaultUploadUrl = t, g.DefaultUploadUrl = t;
@@ -189,7 +189,7 @@ class g {
189
189
  const i = document.createElement("div");
190
190
  i.className = t.wrapperClassName || "";
191
191
  const s = document.createElement("input");
192
- this.inputEl = s, s.value = String(t.value || D(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "", this.dataPropsPath && s.setAttribute("data-test-id", this.dataPropsPath);
192
+ this.inputEl = s, s.value = String(t.value || $(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "", this.dataPropsPath && s.setAttribute("data-test-id", this.dataPropsPath);
193
193
  const n = (o) => {
194
194
  const l = o.target;
195
195
  let r = l.value;
@@ -233,13 +233,13 @@ class g {
233
233
  function w(c) {
234
234
  return c instanceof g;
235
235
  }
236
- function p(c) {
236
+ function u(c) {
237
237
  return c instanceof v;
238
238
  }
239
- function ft(c) {
240
- return w(c) || p(c);
239
+ function gt(c) {
240
+ return w(c) || u(c);
241
241
  }
242
- function b(c, t) {
242
+ function E(c, t) {
243
243
  for (const e in c)
244
244
  if (Object.prototype.hasOwnProperty.call(c, e)) {
245
245
  const i = c[e];
@@ -249,12 +249,12 @@ function b(c, t) {
249
249
  const L = class L {
250
250
  constructor(t) {
251
251
  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.lastChangeTime = 0, this.handleBlur = () => {
252
- }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.id = t.id || N(), this.title = t.title, this.settings = t.settings, this.isCollapsed = t.collapsed ?? !1, this.isMain = t.main ?? !1, this.custom = t.custom ?? !1, this.nestingLevel = 0, this.includeGetJson = t.includeGetJson ?? !0, this.addItemCfg = t.addItem, this.deleteItemCfg = t.deleteItem, this.dataProps = t.dataProps, this.dataPropsPath = t.dataProps || "", Object.assign(this, t.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel(), this.propagateDataPropsPath();
252
+ }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.id = t.id || S(), this.title = t.title, this.settings = t.settings, this.isCollapsed = t.collapsed ?? !1, this.isMain = t.main ?? !1, this.custom = t.custom ?? !1, this.nestingLevel = 0, this.includeGetJson = t.includeGetJson ?? !0, this.addItemCfg = t.addItem, this.deleteItemCfg = t.deleteItem, this.dataProps = t.dataProps, this.dataPropsPath = t.dataProps || "", Object.assign(this, t.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel(), this.propagateDataPropsPath();
253
253
  }
254
254
  propagateNestingLevel() {
255
255
  const t = this.nestingLevel + 1;
256
- b(this.settings, (e, i) => {
257
- p(i) && (i.nestingLevel = t, i.propagateNestingLevel());
256
+ E(this.settings, (e, i) => {
257
+ u(i) && (i.nestingLevel = t, i.propagateNestingLevel());
258
258
  });
259
259
  }
260
260
  getNestingLevel() {
@@ -270,9 +270,9 @@ const L = class L {
270
270
  this.dataPropsPath = t, this.propagateDataPropsPath();
271
271
  }
272
272
  propagateDataPropsPath() {
273
- b(this.settings, (t, e) => {
273
+ E(this.settings, (t, e) => {
274
274
  const i = String(t), s = this.dataPropsPath ? `${this.dataPropsPath}_${i}` : i;
275
- (p(e) || w(e) && typeof e.setDataPropsPath == "function") && e.setDataPropsPath(s);
275
+ (u(e) || w(e) && typeof e.setDataPropsPath == "function") && e.setDataPropsPath(s);
276
276
  });
277
277
  }
278
278
  updateNestingStyles() {
@@ -281,7 +281,7 @@ const L = class L {
281
281
  forceChildUIRefresh() {
282
282
  Object.entries(this.settings).forEach(([t, e]) => {
283
283
  try {
284
- if (p(e)) {
284
+ if (u(e)) {
285
285
  const i = e.getValues();
286
286
  e.setValue(i);
287
287
  } else if (typeof e.setValue == "function") {
@@ -325,7 +325,7 @@ const L = class L {
325
325
  }
326
326
  clone() {
327
327
  const t = {};
328
- b(this.settings, (s, n) => {
328
+ E(this.settings, (s, n) => {
329
329
  const a = String(s);
330
330
  typeof n.clone == "function" ? t[a] = n.clone() : (console.warn(
331
331
  `Setting with key '${a}' does not have a clone method. Copying reference.`
@@ -351,7 +351,7 @@ const L = class L {
351
351
  setMobileValues(t) {
352
352
  !t || typeof t != "object" || (Object.entries(t).forEach(([e, i]) => {
353
353
  const s = this.settings[e];
354
- s && (p(s) || w(s)) && typeof s.setMobileValue == "function" && s.setMobileValue(i);
354
+ s && (u(s) || w(s)) && typeof s.setMobileValue == "function" && s.setMobileValue(i);
355
355
  }), this.setValue(t), this.onChange && this.onChange(this.getValues()));
356
356
  }
357
357
  getMobileValues(t) {
@@ -360,7 +360,7 @@ const L = class L {
360
360
  for (const i in this.settings)
361
361
  if (Object.prototype.hasOwnProperty.call(this.settings, i)) {
362
362
  const s = this.settings[i];
363
- if (p(s))
363
+ if (u(s))
364
364
  e[i] = s.getMobileValues();
365
365
  else {
366
366
  const n = s;
@@ -371,7 +371,7 @@ const L = class L {
371
371
  } else {
372
372
  const e = this.settings[t];
373
373
  if (!e) return;
374
- if (p(e)) return e.getMobileValues();
374
+ if (u(e)) return e.getMobileValues();
375
375
  const i = e;
376
376
  return i.mobileValue !== void 0 ? i.mobileValue : i.value;
377
377
  }
@@ -387,9 +387,9 @@ const L = class L {
387
387
  Object.keys(s).length > 0 && (this.lastChangeTime = Date.now(), this.initialValues = i, t(i), this.updateVisibility()), this.isHandlingChange = !1;
388
388
  }, 50));
389
389
  };
390
- return this.changeHandlers.clear(), b(this.settings, (i, s) => {
390
+ return this.changeHandlers.clear(), E(this.settings, (i, s) => {
391
391
  var n;
392
- if (p(s))
392
+ if (u(s))
393
393
  s.setOnChange(() => {
394
394
  const a = this.getValues();
395
395
  this.initialValues = a, t(a);
@@ -420,7 +420,7 @@ const L = class L {
420
420
  this.addSetting(i, l), n = l;
421
421
  }
422
422
  }
423
- n && (p(n) || w(n)) && typeof n.setValue == "function" && n.setValue(s);
423
+ n && (u(n) || w(n)) && typeof n.setValue == "function" && n.setValue(s);
424
424
  }), setTimeout(() => {
425
425
  this.forceChildUIRefresh();
426
426
  }, 0);
@@ -434,7 +434,7 @@ const L = class L {
434
434
  const s = this.getValues();
435
435
  this.initialValues = s, (n = this.onChange) == null || n.call(this, s), this.updateVisibility();
436
436
  };
437
- p(t) ? t.setOnChange(() => e()) : w(t) ? t.setOnChange(() => e()) : (i = t.setOnChange) == null || i.call(t, () => e());
437
+ u(t) ? t.setOnChange(() => e()) : w(t) ? t.setOnChange(() => e()) : (i = t.setOnChange) == null || i.call(t, () => e());
438
438
  }
439
439
  addSetting(t, e) {
440
440
  var s, n;
@@ -443,14 +443,14 @@ const L = class L {
443
443
  ".setting-group-content"
444
444
  );
445
445
  if (a) {
446
- p(e) && typeof e.setNestingLevel == "function" && e.setNestingLevel(this.nestingLevel + 1);
446
+ u(e) && typeof e.setNestingLevel == "function" && e.setNestingLevel(this.nestingLevel + 1);
447
447
  const o = e.draw(), l = this.deleteItemCfg ?? this.addItemCfg;
448
448
  if (l) {
449
449
  const d = l.keyPrefix ?? ((s = this.addItemCfg) == null ? void 0 : s.keyPrefix);
450
450
  d && t.startsWith(d) && this.addDeleteButtonToElement(o, t);
451
451
  }
452
452
  const r = a.querySelector(".sg-add-button-bottom");
453
- r ? a.insertBefore(o, r) : a.appendChild(o), S.trackElement(o), x(o, this.nestingLevel + 1), V(o, this.nestingLevel + 1);
453
+ r ? a.insertBefore(o, r) : a.appendChild(o), N.trackElement(o), x(o, this.nestingLevel + 1), V(o, this.nestingLevel + 1);
454
454
  const h = o.style.display;
455
455
  o.style.display = "none", o.offsetHeight, o.style.display = h, this.updateNestingStyles();
456
456
  }
@@ -633,12 +633,12 @@ const L = class L {
633
633
  for (const i in this.settings)
634
634
  if (Object.prototype.hasOwnProperty.call(this.settings, i)) {
635
635
  const s = this.settings[i];
636
- p(s) ? e[i] = s.getValues() : e[i] = s.value;
636
+ u(s) ? e[i] = s.getValues() : e[i] = s.value;
637
637
  }
638
638
  return e;
639
639
  } else {
640
640
  const e = this.settings[t];
641
- return e ? p(e) ? e.getValues() : e.value : void 0;
641
+ return e ? u(e) ? e.getValues() : e.value : void 0;
642
642
  }
643
643
  }
644
644
  getValuesForJson(t) {
@@ -648,7 +648,7 @@ const L = class L {
648
648
  for (const i in this.settings)
649
649
  if (Object.prototype.hasOwnProperty.call(this.settings, i)) {
650
650
  const s = this.settings[i];
651
- if (p(s))
651
+ if (u(s))
652
652
  e[i] = s.getValuesForJson();
653
653
  else {
654
654
  const n = s;
@@ -659,7 +659,7 @@ const L = class L {
659
659
  } else {
660
660
  const e = this.settings[t];
661
661
  if (!e) return;
662
- if (p(e))
662
+ if (u(e))
663
663
  return e.includeGetJson === !1 ? null : e.getValuesForJson();
664
664
  {
665
665
  const i = e;
@@ -673,7 +673,7 @@ const L = class L {
673
673
  for (const i in this.settings)
674
674
  if (Object.prototype.hasOwnProperty.call(this.settings, i)) {
675
675
  const s = this.settings[i];
676
- if (p(s))
676
+ if (u(s))
677
677
  e[i] = s.getDefaultValues();
678
678
  else {
679
679
  const n = s;
@@ -684,7 +684,7 @@ const L = class L {
684
684
  } else {
685
685
  const e = this.settings[t];
686
686
  if (!e) return;
687
- if (p(e)) return e.getDefaultValues();
687
+ if (u(e)) return e.getDefaultValues();
688
688
  const i = e;
689
689
  return i.default !== void 0 ? i.default : i.value;
690
690
  }
@@ -723,13 +723,13 @@ const L = class L {
723
723
  for (const h in this.settings)
724
724
  if (Object.prototype.hasOwnProperty.call(this.settings, h)) {
725
725
  const d = this.settings[h];
726
- p(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.nestingLevel + 1);
727
- const u = d.draw();
728
- p(d) && d.deleteItemCfg && this.addDeleteButtonToElement(
729
- u,
726
+ u(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.nestingLevel + 1);
727
+ const p = d.draw();
728
+ u(d) && d.deleteItemCfg && this.addDeleteButtonToElement(
729
+ p,
730
730
  h,
731
731
  d
732
- ), o.appendChild(u);
732
+ ), o.appendChild(p);
733
733
  }
734
734
  } else {
735
735
  const h = document.createElement("div");
@@ -744,13 +744,13 @@ const L = class L {
744
744
  <path d="M8 3.333v9.334M3.333 8h9.334" stroke="currentColor"
745
745
  stroke-width="1.5" stroke-linecap="round"/>
746
746
  </svg>`;
747
- h.innerHTML = `${d}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, h.addEventListener("click", (u) => {
748
- u.stopPropagation(), u.preventDefault();
747
+ h.innerHTML = `${d}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, h.addEventListener("click", (p) => {
748
+ p.stopPropagation(), p.preventDefault();
749
749
  const k = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), O = this.addItemCfg.createItem(k), H = `${this.addItemCfg.keyPrefix}${k}`;
750
750
  this.addSetting(H, O);
751
751
  }), o.appendChild(h);
752
752
  }
753
- return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, S.trackElement(t), setTimeout(() => {
753
+ return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, N.trackElement(t), setTimeout(() => {
754
754
  this.updateNestingStyles();
755
755
  }, 0), this.pendingBlurHandler && (this.pendingBlurHandler = null), t;
756
756
  }
@@ -794,10 +794,10 @@ const L = class L {
794
794
  };
795
795
  L.hiddenElements = /* @__PURE__ */ new Set();
796
796
  let v = L;
797
- function vt(c) {
798
- return new $(c);
797
+ function mt(c) {
798
+ return new D(c);
799
799
  }
800
- class $ extends v {
800
+ class D extends v {
801
801
  constructor(t) {
802
802
  super(t);
803
803
  const e = Object.keys(this.settings)[0];
@@ -838,7 +838,7 @@ class $ extends v {
838
838
  const h = document.createElement("div");
839
839
  h.className = "tab-panel", this.contentContainers[o] = h;
840
840
  const d = this.settings[o];
841
- d && (p(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.getNestingLevel() + 1), h.appendChild(
841
+ d && (u(d) && typeof d.setNestingLevel == "function" && d.setNestingLevel(this.getNestingLevel() + 1), h.appendChild(
842
842
  d.draw()
843
843
  )), a.appendChild(h), l === 0 && !this.activeTabId && (this.activeTabId = o);
844
844
  }), e.appendChild(i), e.appendChild(n), e.appendChild(a), !this.activeTabId) {
@@ -851,7 +851,7 @@ class $ extends v {
851
851
  function R(c) {
852
852
  return new v(c);
853
853
  }
854
- function Ct(c) {
854
+ function ft(c) {
855
855
  return c;
856
856
  }
857
857
  class F extends g {
@@ -949,17 +949,17 @@ class m extends F {
949
949
  var h, d;
950
950
  let r = l.target.value.trim();
951
951
  if (this.textInputEl && i(this.textInputEl)) {
952
- const u = m.normalizeColorValue(r);
953
- this.value = u, (h = this.onChange) == null || h.call(this, u), (d = this.detectChange) == null || d.call(this, u), this.colorInputEl && (this.colorInputEl.value = u), n.style.backgroundColor = u;
952
+ const p = m.normalizeColorValue(r);
953
+ this.value = p, (h = this.onChange) == null || h.call(this, p), (d = this.detectChange) == null || d.call(this, p), this.colorInputEl && (this.colorInputEl.value = p), n.style.backgroundColor = p;
954
954
  }
955
955
  }), this.colorInputEl.addEventListener("input", (l) => {
956
- var d, u;
956
+ var d, p;
957
957
  const r = l.target.value, h = m.normalizeColorValue(r);
958
- this.value = h, (d = this.onChange) == null || d.call(this, h), (u = this.detectChange) == null || u.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h, e.classList.remove("error");
958
+ this.value = h, (d = this.onChange) == null || d.call(this, h), (p = this.detectChange) == null || p.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h, e.classList.remove("error");
959
959
  }), this.colorInputEl.addEventListener("change", (l) => {
960
- var d, u;
960
+ var d, p;
961
961
  const r = l.target.value, h = m.normalizeColorValue(r);
962
- this.value = h, (d = this.onChange) == null || d.call(this, h), (u = this.detectChange) == null || u.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h;
962
+ this.value = h, (d = this.onChange) == null || d.call(this, h), (p = this.detectChange) == null || p.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h;
963
963
  }), e.appendChild(s), e.appendChild(n), e.appendChild(o), t.appendChild(e), this.element = t, t;
964
964
  }
965
965
  getElement() {
@@ -1106,7 +1106,7 @@ class C extends g {
1106
1106
  };
1107
1107
  }
1108
1108
  }
1109
- class wt extends g {
1109
+ class vt extends g {
1110
1110
  constructor(t = {}) {
1111
1111
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
1112
1112
  }
@@ -1197,12 +1197,12 @@ class f extends g {
1197
1197
  );
1198
1198
  }
1199
1199
  }
1200
- const j = `
1200
+ const W = `
1201
1201
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1202
1202
  <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"/>
1203
1203
  <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"/>
1204
1204
  </svg>`;
1205
- class W extends f {
1205
+ class _ extends f {
1206
1206
  constructor(t = {}) {
1207
1207
  const e = {
1208
1208
  title: "Opacity",
@@ -1211,7 +1211,7 @@ class W extends f {
1211
1211
  maxValue: 100,
1212
1212
  step: 1,
1213
1213
  default: t.default ?? 100,
1214
- icon: j,
1214
+ icon: W,
1215
1215
  ...t
1216
1216
  };
1217
1217
  super(e), this.inputType = "number", this.mobileValue = t.mobile;
@@ -1223,7 +1223,7 @@ class W extends f {
1223
1223
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1224
1224
  }
1225
1225
  }
1226
- const _ = `
1226
+ const j = `
1227
1227
  <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">
1228
1228
  <polyline points="6 9 12 15 18 9"></polyline>
1229
1229
  </svg>
@@ -1272,7 +1272,7 @@ class I extends g {
1272
1272
  o.onclick = (l) => this.selectOption(l, a, e), i.appendChild(o);
1273
1273
  }), document.body.appendChild(i);
1274
1274
  const s = document.createElement("div");
1275
- return s.classList.add("svg-container"), s.innerHTML = _, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1275
+ return s.classList.add("svg-container"), s.innerHTML = j, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1276
1276
  this._options.push(...n), this.isLoading = !1, this.updateOptionsList(), this.updateButtonText();
1277
1277
  }).catch((n) => {
1278
1278
  console.error("Failed to fetch async options:", n), this.isLoading = !1, this.updateButtonText("Failed to load options");
@@ -1397,7 +1397,7 @@ class J extends g {
1397
1397
  }), t.appendChild(i), t;
1398
1398
  }
1399
1399
  }
1400
- class bt extends g {
1400
+ class Ct extends g {
1401
1401
  constructor(t) {
1402
1402
  super(t), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
1403
1403
  }
@@ -1426,7 +1426,7 @@ class bt extends g {
1426
1426
  return a.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), a.appendChild(t), a;
1427
1427
  }
1428
1428
  }
1429
- class Et extends g {
1429
+ class wt extends g {
1430
1430
  constructor(t = {}) {
1431
1431
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1432
1432
  const e = t.width || 0, i = t.height || 0;
@@ -1694,7 +1694,7 @@ class Q extends g {
1694
1694
  }, t;
1695
1695
  }
1696
1696
  }
1697
- class xt extends f {
1697
+ class Et extends f {
1698
1698
  constructor(t = {}) {
1699
1699
  super({
1700
1700
  ...t,
@@ -1715,7 +1715,7 @@ class xt extends f {
1715
1715
  const Y = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1716
1716
  <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"/>
1717
1717
  </svg>`;
1718
- class yt extends f {
1718
+ class bt extends f {
1719
1719
  constructor(t = {}) {
1720
1720
  super({
1721
1721
  ...t,
@@ -1740,7 +1740,7 @@ const tt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
1740
1740
  <polyline points="6 9 12 15 18 9"></polyline>
1741
1741
  </svg>
1742
1742
  `;
1743
- class Lt extends g {
1743
+ class xt extends g {
1744
1744
  constructor(t = {}) {
1745
1745
  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) {
1746
1746
  const e = this._options.findIndex(
@@ -1851,8 +1851,8 @@ class Lt extends g {
1851
1851
  if (o)
1852
1852
  o.textContent = this._options[e].name;
1853
1853
  else {
1854
- const u = i.firstChild;
1855
- u && u.tagName === "SPAN" && (u.textContent = this._options[e].name);
1854
+ const p = i.firstChild;
1855
+ p && p.tagName === "SPAN" && (p.textContent = this._options[e].name);
1856
1856
  }
1857
1857
  this.isOpen = !1, (r = this.optionsListEl) == null || r.classList.remove("open"), (h = this.svgContainer) == null || h.classList.remove("open"), (d = this.onChange) == null || d.call(this, a), this.detectChangeCallback && this.detectChangeCallback(a);
1858
1858
  }
@@ -1887,7 +1887,7 @@ class Lt extends g {
1887
1887
  ), this.updateButtonText();
1888
1888
  }
1889
1889
  }
1890
- class kt extends g {
1890
+ class yt extends g {
1891
1891
  constructor(t) {
1892
1892
  var e, i;
1893
1893
  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;
@@ -1935,7 +1935,7 @@ class kt extends g {
1935
1935
  const it = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1936
1936
  <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"/>
1937
1937
  </svg>`;
1938
- class Mt extends g {
1938
+ class Lt extends g {
1939
1939
  // Store mobile value
1940
1940
  constructor(t = {}) {
1941
1941
  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);
@@ -1992,7 +1992,7 @@ class Mt extends g {
1992
1992
  const st = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1993
1993
  <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"/>
1994
1994
  </svg>`;
1995
- class Vt extends f {
1995
+ class kt extends f {
1996
1996
  constructor(t = {}) {
1997
1997
  super({
1998
1998
  ...t,
@@ -2009,7 +2009,7 @@ const nt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
2009
2009
  <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"
2010
2010
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2011
2011
  </svg>`;
2012
- class It extends f {
2012
+ class Mt extends f {
2013
2013
  constructor(t = {}) {
2014
2014
  super({
2015
2015
  ...t,
@@ -2022,134 +2022,53 @@ class It extends f {
2022
2022
  }), this.inputType = "number";
2023
2023
  }
2024
2024
  }
2025
- const at = `
2026
- <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">
2027
- <polyline points="3,6 5,6 21,6"></polyline>
2028
- <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>
2029
- <line x1="10" y1="11" x2="10" y2="17"></line>
2030
- <line x1="14" y1="11" x2="14" y2="17"></line>
2031
- </svg>
2032
- `, ot = `
2033
- <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">
2034
- <line x1="12" y1="5" x2="12" y2="19"></line>
2035
- <line x1="5" y1="12" x2="19" y2="12"></line>
2036
- </svg>
2037
- `;
2038
- class St extends g {
2039
- constructor(t = {}) {
2040
- super(t), this.inputType = {}, this.container = null, this.languagesContainer = null, this.addLanguageSelect = null, this.addButton = null, this.defaultLanguages = [
2041
- { code: "en", name: "English" },
2042
- { code: "ka", name: "Georgian" },
2043
- { code: "ru", name: "Russian" },
2044
- { code: "tr", name: "Turkish" },
2045
- { code: "de", name: "German" },
2046
- { code: "fr", name: "French" },
2047
- { code: "es", name: "Spanish" },
2048
- { code: "it", name: "Italian" },
2049
- { code: "ar", name: "Arabic" },
2050
- { code: "zh", name: "Chinese" }
2051
- ], this.value || (this.value = {});
2052
- }
2053
- get availableLanguages() {
2054
- return this.props.availableLanguages || this.defaultLanguages;
2055
- }
2056
- get usedLanguageCodes() {
2057
- return Object.keys(this.value || {});
2058
- }
2059
- get availableLanguageOptions() {
2060
- return this.availableLanguages.filter(
2061
- (t) => !this.usedLanguageCodes.includes(t.code)
2062
- );
2063
- }
2064
- updateAddLanguageSelect() {
2065
- if (!this.addLanguageSelect) return;
2066
- this.addLanguageSelect.innerHTML = '<option value="">Select language...</option>', this.availableLanguageOptions.forEach((i) => {
2067
- const s = document.createElement("option");
2068
- s.value = i.code, s.textContent = i.name, this.addLanguageSelect.appendChild(s);
2025
+ class Vt extends g {
2026
+ constructor(t) {
2027
+ super(t), this.inputType = {}, this.container = null, this.value || (this.value = {}), t.languages.forEach((e) => {
2028
+ e in (this.value || {}) || (this.value || (this.value = {}), this.value[e] = "");
2069
2029
  });
2070
- const t = this.availableLanguageOptions.length > 0, e = this.props.maxLanguages && this.usedLanguageCodes.length >= this.props.maxLanguages;
2071
- this.addButton && (this.addButton.disabled = !t || !!e);
2072
2030
  }
2073
- createLanguageRow(t, e) {
2031
+ createTextareaRow(t, e) {
2074
2032
  const i = document.createElement("div");
2075
- i.classList.add("multi-language-row"), i.dataset.language = t;
2076
- const s = document.createElement("span");
2077
- s.classList.add("language-label"), s.textContent = t.toUpperCase();
2078
- const n = document.createElement("div");
2079
- n.classList.add("language-input-group");
2080
- const a = document.createElement("input");
2081
- a.type = "text", a.classList.add("language-input"), a.value = e || "", a.placeholder = this.props.placeholder || "Enter text...", this.getDataPropsPath() && a.setAttribute(
2033
+ i.classList.add("simple-multi-language-row");
2034
+ const s = document.createElement("label");
2035
+ s.classList.add("simple-language-label"), s.textContent = t.toUpperCase(), s.setAttribute("for", `textarea-${t}`);
2036
+ const n = document.createElement("textarea");
2037
+ return n.id = `textarea-${t}`, n.classList.add("simple-language-textarea"), n.value = e || "", n.placeholder = this.props.placeholder || `Enter text in ${t.toUpperCase()}...`, n.rows = this.props.rows || 3, this.getDataPropsPath() && n.setAttribute(
2082
2038
  "data-test-id",
2083
2039
  `${this.getDataPropsPath()}_${t}`
2084
- ), a.addEventListener("input", (l) => {
2085
- const r = l.target;
2086
- this.updateLanguageValue(t, r.value);
2087
- });
2088
- const o = document.createElement("button");
2089
- return o.type = "button", o.classList.add("delete-language-btn"), o.innerHTML = at, o.title = `Delete ${t.toUpperCase()}`, o.addEventListener("click", () => {
2090
- this.removeLanguage(t);
2091
- }), n.appendChild(a), n.appendChild(o), i.appendChild(s), i.appendChild(n), i;
2040
+ ), n.addEventListener("input", (a) => {
2041
+ const o = a.target;
2042
+ this.updateLanguageValue(t, o.value);
2043
+ }), i.appendChild(s), i.appendChild(n), i;
2092
2044
  }
2093
2045
  updateLanguageValue(t, e) {
2094
2046
  this.value || (this.value = {}), this.value[t] = e, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
2095
2047
  }
2096
- removeLanguage(t) {
2097
- var i;
2098
- if (!this.value) return;
2099
- delete this.value[t], this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
2100
- const e = (i = this.languagesContainer) == null ? void 0 : i.querySelector(
2101
- `[data-language="${t}"]`
2102
- );
2103
- e && e.remove(), this.updateAddLanguageSelect();
2104
- }
2105
- addLanguage(t) {
2106
- var s;
2107
- if (!t || this.usedLanguageCodes.includes(t)) return;
2108
- this.value || (this.value = {}), this.value[t] = "", this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
2109
- const e = this.createLanguageRow(t, "");
2110
- (s = this.languagesContainer) == null || s.appendChild(e), this.updateAddLanguageSelect(), this.addLanguageSelect && (this.addLanguageSelect.value = "");
2111
- const i = e.querySelector(".language-input");
2112
- i && i.focus();
2113
- }
2114
- createAddLanguageSection() {
2115
- const t = document.createElement("div");
2116
- t.classList.add("add-language-section");
2117
- const e = document.createElement("div");
2118
- e.classList.add("add-language-label"), e.textContent = "Add language:";
2119
- const i = document.createElement("div");
2120
- i.classList.add("add-language-controls");
2121
- const s = document.createElement("select");
2122
- s.classList.add("add-language-select"), this.addLanguageSelect = s;
2123
- const n = document.createElement("button");
2124
- return n.type = "button", n.classList.add("add-language-btn"), n.innerHTML = `${ot} Add`, this.addButton = n, n.addEventListener("click", () => {
2125
- const a = s.value;
2126
- a && this.addLanguage(a);
2127
- }), i.appendChild(s), i.appendChild(n), t.appendChild(e), t.appendChild(i), t;
2128
- }
2129
2048
  draw() {
2130
2049
  const t = document.createElement("div");
2131
- if (t.classList.add("multi-language-wrapper"), this.props.title) {
2132
- const n = document.createElement("div");
2133
- n.classList.add("multi-language-title"), n.textContent = this.props.title, t.appendChild(n);
2050
+ if (t.classList.add("simple-multi-language-wrapper"), this.props.title) {
2051
+ const i = document.createElement("div");
2052
+ i.classList.add("simple-multi-language-title"), i.textContent = this.props.title, t.appendChild(i);
2134
2053
  }
2135
2054
  const e = document.createElement("div");
2136
- e.classList.add("multi-language-content");
2137
- const i = document.createElement("div");
2138
- i.classList.add("languages-container"), this.languagesContainer = i, this.value && Object.entries(this.value).forEach(([n, a]) => {
2139
- const o = this.createLanguageRow(n, a);
2140
- i.appendChild(o);
2141
- }), e.appendChild(i);
2142
- const s = this.createAddLanguageSection();
2143
- return e.appendChild(s), t.appendChild(e), this.updateAddLanguageSelect(), this.container = t, t;
2055
+ return e.classList.add("simple-multi-language-content"), this.props.languages.forEach((i) => {
2056
+ var a;
2057
+ const s = ((a = this.value) == null ? void 0 : a[i]) || "", n = this.createTextareaRow(i, s);
2058
+ e.appendChild(n);
2059
+ }), t.appendChild(e), this.container = t, t;
2144
2060
  }
2145
2061
  setValue(t) {
2146
- super.setValue(t), this.languagesContainer && (this.languagesContainer.innerHTML = "", this.value && Object.entries(this.value).forEach(([e, i]) => {
2147
- const s = this.createLanguageRow(e, i);
2148
- this.languagesContainer.appendChild(s);
2149
- }), this.updateAddLanguageSelect());
2062
+ super.setValue(t), this.container && this.props.languages.forEach((e) => {
2063
+ var s;
2064
+ const i = (s = this.container) == null ? void 0 : s.querySelector(
2065
+ `#textarea-${e}`
2066
+ );
2067
+ i && (i.value = (t == null ? void 0 : t[e]) || "");
2068
+ });
2150
2069
  }
2151
2070
  }
2152
- class Nt extends g {
2071
+ class It extends g {
2153
2072
  constructor(t = {}) {
2154
2073
  super(t), this.inputType = "select";
2155
2074
  const e = [
@@ -2176,16 +2095,16 @@ class Nt extends g {
2176
2095
  this.selectSetting.destroy(), super.destroy();
2177
2096
  }
2178
2097
  }
2179
- const lt = `
2098
+ const at = `
2180
2099
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2181
2100
  <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"/>
2182
2101
  </svg>
2183
- `, rt = `
2102
+ `, ot = `
2184
2103
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2185
2104
  <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"/>
2186
2105
  </svg>
2187
2106
  `;
2188
- class Ot extends v {
2107
+ class Nt extends v {
2189
2108
  constructor(t) {
2190
2109
  super({
2191
2110
  title: "Border",
@@ -2193,7 +2112,7 @@ class Ot extends v {
2193
2112
  settings: {
2194
2113
  size: new f({
2195
2114
  title: "Size",
2196
- icon: rt,
2115
+ icon: ot,
2197
2116
  default: (t == null ? void 0 : t.size) ?? 0,
2198
2117
  suffix: "px"
2199
2118
  }),
@@ -2202,7 +2121,7 @@ class Ot extends v {
2202
2121
  }),
2203
2122
  radius: new f({
2204
2123
  title: "Radius",
2205
- icon: lt,
2124
+ icon: at,
2206
2125
  default: (t == null ? void 0 : t.radius) ?? 12,
2207
2126
  suffix: "px"
2208
2127
  })
@@ -2221,20 +2140,20 @@ class Ot extends v {
2221
2140
  `;
2222
2141
  }
2223
2142
  }
2224
- const ht = `
2143
+ const lt = `
2225
2144
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
2226
2145
  <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"/>
2227
2146
  </svg>
2228
- `, ct = `
2147
+ `, rt = `
2229
2148
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2230
2149
  <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"/>
2231
2150
  </svg>
2232
- `, dt = `
2151
+ `, ht = `
2233
2152
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2234
2153
  <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"/>
2235
2154
  </svg>
2236
2155
  `;
2237
- class Ht extends v {
2156
+ class St extends v {
2238
2157
  constructor(t = {}) {
2239
2158
  const { showAlign: e = t.showAlign ?? !0, ...i } = t;
2240
2159
  super({
@@ -2247,7 +2166,7 @@ class Ht extends v {
2247
2166
  }),
2248
2167
  fontFamily: new I({
2249
2168
  title: "Font",
2250
- icon: ht,
2169
+ icon: lt,
2251
2170
  default: i.fontFamilyDefault ?? "Satoshi",
2252
2171
  options: i.fontFamilyOptions ?? [
2253
2172
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -2260,7 +2179,7 @@ class Ht extends v {
2260
2179
  }),
2261
2180
  fontWeight: new I({
2262
2181
  title: "Weight",
2263
- icon: ct,
2182
+ icon: rt,
2264
2183
  default: i.fontWeightDefault ?? "400",
2265
2184
  options: i.fontWeightOptions ?? [
2266
2185
  { name: "Regular", value: "400" },
@@ -2272,7 +2191,7 @@ class Ht extends v {
2272
2191
  }),
2273
2192
  fontSize: new f({
2274
2193
  title: "Size",
2275
- icon: dt,
2194
+ icon: ht,
2276
2195
  default: i.fontSizeDefault ?? 12,
2277
2196
  suffix: "px",
2278
2197
  mobile: i.fontSizeMobileDefault
@@ -2300,7 +2219,7 @@ class Ht extends v {
2300
2219
  `;
2301
2220
  }
2302
2221
  }
2303
- class E extends g {
2222
+ class b extends g {
2304
2223
  constructor(t) {
2305
2224
  super({
2306
2225
  ...t,
@@ -2346,33 +2265,33 @@ class E extends g {
2346
2265
  }), i;
2347
2266
  }
2348
2267
  }
2349
- class Tt extends v {
2268
+ class Ot extends v {
2350
2269
  constructor(t) {
2351
2270
  super({
2352
2271
  title: "Margins",
2353
2272
  collapsed: t == null ? void 0 : t.collapsed,
2354
2273
  settings: {
2355
- marginTop: new E({
2274
+ marginTop: new b({
2356
2275
  title: "Top",
2357
- icon: ut,
2276
+ icon: ct,
2358
2277
  suffix: "px",
2359
2278
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
2360
2279
  }),
2361
- marginRight: new E({
2280
+ marginRight: new b({
2362
2281
  title: "Right",
2363
- icon: pt,
2282
+ icon: dt,
2364
2283
  suffix: "px",
2365
2284
  default: (t == null ? void 0 : t.marginRight) ?? 0
2366
2285
  }),
2367
- marginBottom: new E({
2286
+ marginBottom: new b({
2368
2287
  title: "Bottom",
2369
- icon: gt,
2288
+ icon: pt,
2370
2289
  suffix: "px",
2371
2290
  default: (t == null ? void 0 : t.marginBottom) ?? 0
2372
2291
  }),
2373
- marginLeft: new E({
2292
+ marginLeft: new b({
2374
2293
  title: "Left",
2375
- icon: mt,
2294
+ icon: ut,
2376
2295
  suffix: "px",
2377
2296
  default: (t == null ? void 0 : t.marginLeft) ?? 0
2378
2297
  })
@@ -2389,16 +2308,16 @@ class Tt extends v {
2389
2308
  `;
2390
2309
  }
2391
2310
  }
2392
- const ut = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2311
+ const ct = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2393
2312
  <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"/>
2394
- </svg>`, pt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2313
+ </svg>`, dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2395
2314
  <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"/>
2396
- </svg>`, gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2315
+ </svg>`, pt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2397
2316
  <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"/>
2398
- </svg>`, mt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2317
+ </svg>`, ut = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2399
2318
  <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"/>
2400
2319
  </svg>`;
2401
- class Pt extends v {
2320
+ class Ht extends v {
2402
2321
  constructor(t) {
2403
2322
  super({
2404
2323
  title: "Background Image",
@@ -2408,7 +2327,7 @@ class Pt extends v {
2408
2327
  ...t == null ? void 0 : t.uploadProps,
2409
2328
  default: (t == null ? void 0 : t.backgroundImage) ?? ""
2410
2329
  }),
2411
- opacity: new W({
2330
+ opacity: new _({
2412
2331
  default: (t == null ? void 0 : t.opacity) ?? 100
2413
2332
  }),
2414
2333
  backgroundColor: new C({
@@ -2439,38 +2358,38 @@ class Pt extends v {
2439
2358
  }
2440
2359
  export {
2441
2360
  J as AlignSetting,
2442
- Nt as AnimationSetting,
2443
- Pt as BackgroundSettingSet,
2444
- Ot as BorderSettingSet,
2445
- bt as ButtonSetting,
2361
+ It as AnimationSetting,
2362
+ Ht as BackgroundSettingSet,
2363
+ Nt as BorderSettingSet,
2364
+ Ct as ButtonSetting,
2446
2365
  m as ColorSetting,
2447
2366
  C as ColorWithOpacitySetting,
2448
- Et as DimensionSetting,
2449
- Mt as GapSetting,
2450
- Ht as HeaderTypographySettingSet,
2451
- xt as HeightSetting,
2452
- wt as HtmlSetting,
2453
- Vt as MarginBottomSetting,
2454
- Tt as MarginSettingGroup,
2455
- It as MarginTopSetting,
2456
- St as MultiLanguageSetting,
2367
+ wt as DimensionSetting,
2368
+ Lt as GapSetting,
2369
+ St as HeaderTypographySettingSet,
2370
+ Et as HeightSetting,
2371
+ vt as HtmlSetting,
2372
+ kt as MarginBottomSetting,
2373
+ Ot as MarginSettingGroup,
2374
+ Mt as MarginTopSetting,
2375
+ Vt as MultiLanguageSetting,
2457
2376
  f as NumberSetting,
2458
- W as OpacitySetting,
2459
- Lt as SelectApiSettings,
2377
+ _ as OpacitySetting,
2378
+ xt as SelectApiSettings,
2460
2379
  I as SelectSetting,
2461
2380
  g as Setting,
2462
2381
  v as SettingGroup,
2463
2382
  F as StringSetting,
2464
- $ as TabSettingGroup,
2465
- $ as TabsSettingGroup,
2466
- kt as Toggle,
2383
+ D as TabSettingGroup,
2384
+ D as TabsSettingGroup,
2385
+ yt as Toggle,
2467
2386
  Q as UploadSetting,
2468
- yt as WidthSetting,
2469
- Ct as asSettingGroupWithSettings,
2387
+ bt as WidthSetting,
2388
+ ft as asSettingGroupWithSettings,
2470
2389
  R as createSettingGroup,
2471
- vt as createTabSettingGroup,
2390
+ mt as createTabSettingGroup,
2472
2391
  w as isSetting,
2473
- ft as isSettingChild,
2474
- p as isSettingGroup,
2475
- b as iterateSettings
2392
+ gt as isSettingChild,
2393
+ u as isSettingGroup,
2394
+ E as iterateSettings
2476
2395
  };