builder-settings-types 0.0.207 → 0.0.209

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,11 +1,11 @@
1
- const T = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
- let N = (c = 21) => {
1
+ const V = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
+ let M = (c = 21) => {
3
3
  let t = "", e = crypto.getRandomValues(new Uint8Array(c |= 0));
4
4
  for (; c--; )
5
- t += T[e[c] & 63];
5
+ t += V[e[c] & 63];
6
6
  return t;
7
7
  };
8
- function L(c) {
8
+ function b(c) {
9
9
  if (c === null || typeof c != "object")
10
10
  return c;
11
11
  if (c instanceof Date)
@@ -13,16 +13,16 @@ function L(c) {
13
13
  if (Array.isArray(c)) {
14
14
  const i = [];
15
15
  for (let s = 0; s < c.length; s++)
16
- i[s] = L(c[s]);
16
+ i[s] = b(c[s]);
17
17
  return i;
18
18
  }
19
19
  const t = {};
20
20
  for (const i in c)
21
- Object.prototype.hasOwnProperty.call(c, i) && (t[i] = L(c[i]));
21
+ Object.prototype.hasOwnProperty.call(c, i) && (t[i] = b(c[i]));
22
22
  const e = Object.getPrototypeOf(c);
23
23
  return e !== Object.prototype && Object.setPrototypeOf(t, e), t;
24
24
  }
25
- function B(c) {
25
+ function N(c) {
26
26
  switch (c) {
27
27
  case "number":
28
28
  return 0;
@@ -42,7 +42,7 @@ function B(c) {
42
42
  }
43
43
  class p {
44
44
  constructor(t = {}) {
45
- this.props = t, this.id = t.id || N(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "";
45
+ this.props = t, this.id = t.id || M(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "";
46
46
  }
47
47
  static SetUploadUrl(t) {
48
48
  window.DefaultUploadUrl = t, p.DefaultUploadUrl = t;
@@ -60,58 +60,58 @@ class p {
60
60
  this.value = t, this.inputEl && (this.inputEl.value = String(t)), this.onChange && this.onChange(t), this.props.detectChange && this.props.detectChange(t);
61
61
  }
62
62
  clone() {
63
- const t = this.constructor, e = L(this.props), i = new t(e);
64
- return i.value = L(this.value), i;
63
+ const t = this.constructor, e = b(this.props), i = new t(e);
64
+ return i.value = b(this.value), i;
65
65
  }
66
66
  createInput(t) {
67
67
  t = { ...this.props.inputProps, ...t };
68
68
  const e = document.createElement("div");
69
69
  if (e.className = t.wrapperClassName || "", t.title || t.icon) {
70
- const o = document.createElement("div");
71
- if (o.className = "icon-container", t.icon) {
70
+ const a = document.createElement("div");
71
+ if (a.className = "icon-container", t.icon) {
72
72
  const l = this.createIcon(t.icon, t.iconClassName);
73
- o.appendChild(l);
73
+ a.appendChild(l);
74
74
  }
75
75
  if (t.title) {
76
76
  const l = this.createLabel(t.title, t.labelClassName);
77
- o.appendChild(l);
77
+ a.appendChild(l);
78
78
  }
79
- e.appendChild(o);
79
+ e.appendChild(a);
80
80
  }
81
81
  const i = document.createElement("div");
82
82
  i.className = t.wrapperClassName || "";
83
83
  const s = document.createElement("input");
84
- this.inputEl = s, s.value = String(t.value || B(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "";
85
- const n = (o) => {
86
- const l = o.target;
87
- let r = l.value;
84
+ this.inputEl = s, s.value = String(t.value || N(t.inputType)), s.type = t.inputType, s.placeholder = t.placeholder || "", s.className = t.inputClassName || "";
85
+ const n = (a) => {
86
+ const l = a.target;
87
+ let h = l.value;
88
88
  switch (t.inputType) {
89
89
  case "number":
90
- r = Number(l.value);
90
+ h = Number(l.value);
91
91
  break;
92
92
  case "color":
93
- r = l.value;
93
+ h = l.value;
94
94
  break;
95
95
  case "date":
96
- r = l.value;
96
+ h = l.value;
97
97
  break;
98
98
  case "select":
99
- r = l.value;
99
+ h = l.value;
100
100
  break;
101
101
  case "text":
102
- r = l.value;
102
+ h = l.value;
103
103
  break;
104
104
  case "button":
105
- r = l.value;
105
+ h = l.value;
106
106
  break;
107
107
  default:
108
- r = l.value;
108
+ h = l.value;
109
109
  }
110
- this.value = r, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
111
- }, a = (o) => {
112
- o.target, this.onBlur && this.onBlur(this.value);
110
+ this.value = h, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
111
+ }, o = (a) => {
112
+ a.target, this.onBlur && this.onBlur(this.value);
113
113
  };
114
- return s.addEventListener("input", n), s.addEventListener("change", n), s.addEventListener("blur", a), t.inputCustomizer && t.inputCustomizer(s), i.appendChild(s), e.appendChild(i), e;
114
+ return s.addEventListener("input", n), s.addEventListener("change", n), s.addEventListener("blur", o), t.inputCustomizer && t.inputCustomizer(s), i.appendChild(s), e.appendChild(i), e;
115
115
  }
116
116
  createLabel(t, e) {
117
117
  const i = document.createElement("span");
@@ -122,31 +122,31 @@ class p {
122
122
  return i.className = "input-icon " + (e || ""), i.innerHTML = t, i;
123
123
  }
124
124
  }
125
- function A(c) {
125
+ function S(c) {
126
126
  let t = 0, e = c.parentElement;
127
127
  for (; e; )
128
128
  e.classList.contains("setting-group") && e !== c && t++, e = e.parentElement;
129
129
  return t;
130
130
  }
131
- function k(c, t) {
131
+ function x(c, t) {
132
132
  const e = Math.min(Math.max(t, 0), 5);
133
133
  c.setAttribute("data-nesting-level", e.toString()), e > 0 ? c.style.setProperty("--visual-indent", `${e * 2}px`) : (c.style.removeProperty("--visual-indent"), c.style.marginLeft = "");
134
134
  }
135
- function S(c, t = 0) {
135
+ function k(c, t = 0) {
136
136
  c.querySelectorAll(":scope > .setting-group-content > .setting-group").forEach((i) => {
137
137
  const s = i, n = t + 1;
138
- k(s, n), S(s, n);
138
+ x(s, n), k(s, n);
139
139
  });
140
140
  }
141
- const R = {
141
+ const I = {
142
142
  maxLevel: 5,
143
143
  spacingMultiplier: 1,
144
144
  visualIndentMultiplier: 2,
145
145
  enableAutoDetection: !0
146
146
  };
147
- class $ {
147
+ class O {
148
148
  constructor(t = {}) {
149
- this.observedElements = /* @__PURE__ */ new Set(), this.config = { ...R, ...t }, this.config.enableAutoDetection && this.setupAutoDetection();
149
+ this.observedElements = /* @__PURE__ */ new Set(), this.config = { ...I, ...t }, this.config.enableAutoDetection && this.setupAutoDetection();
150
150
  }
151
151
  /**
152
152
  * Setup automatic detection using MutationObserver
@@ -180,7 +180,7 @@ class $ {
180
180
  * Update nesting for a specific element
181
181
  */
182
182
  updateElementNesting(t) {
183
- const e = A(t);
183
+ const e = S(t);
184
184
  this.applyNestingWithConfig(t, e);
185
185
  }
186
186
  /**
@@ -228,8 +228,8 @@ class $ {
228
228
  this.observer && (this.observer.disconnect(), this.observer = void 0), this.observedElements.clear();
229
229
  }
230
230
  }
231
- const F = new $();
232
- function b(c, t) {
231
+ const H = new O();
232
+ function w(c, t) {
233
233
  for (const e in c)
234
234
  if (c.hasOwnProperty(e)) {
235
235
  const i = c[e];
@@ -239,11 +239,11 @@ function b(c, t) {
239
239
  const g = class g {
240
240
  constructor(t) {
241
241
  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 = () => {
242
- }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.parentNestingLevel = 0, this.id = t.id || N(), 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();
242
+ }, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.parentNestingLevel = 0, this.id = t.id || M(), 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();
243
243
  }
244
244
  propagateNestingLevel() {
245
245
  const t = this.nestingLevel + 1;
246
- b(this.settings, (e, i) => {
246
+ w(this.settings, (e, i) => {
247
247
  i instanceof g && (i.parentNestingLevel = this.nestingLevel, i.nestingLevel = t, i.propagateNestingLevel());
248
248
  });
249
249
  }
@@ -254,7 +254,7 @@ const g = class g {
254
254
  this.nestingLevel = t, this.propagateNestingLevel(), this.elementRef && this.updateNestingStyles();
255
255
  }
256
256
  updateNestingStyles() {
257
- this.elementRef && (k(this.elementRef, this.nestingLevel), S(this.elementRef, this.nestingLevel));
257
+ this.elementRef && (x(this.elementRef, this.nestingLevel), k(this.elementRef, this.nestingLevel));
258
258
  }
259
259
  static hide() {
260
260
  this.hiddenElements.forEach((t) => {
@@ -277,23 +277,23 @@ const g = class g {
277
277
  Object.keys(s).length > 0 && (this.lastChangeTime = Date.now(), this.initialValues = i, t(i), this.updateVisibility()), this.isHandlingChange = !1;
278
278
  }, 50));
279
279
  };
280
- return this.changeHandlers.clear(), b(this.settings, (i, s) => {
280
+ return this.changeHandlers.clear(), w(this.settings, (i, s) => {
281
281
  var n;
282
282
  if (s instanceof g)
283
- s.setOnChange((a) => {
284
- const o = this.getValues();
285
- this.initialValues = o, t(o);
283
+ s.setOnChange((o) => {
284
+ const a = this.getValues();
285
+ this.initialValues = a, t(a);
286
286
  }), this.changeHandlers.add(() => t(this.getValues()));
287
287
  else if (s instanceof p) {
288
- const a = () => {
288
+ const o = () => {
289
289
  e();
290
290
  };
291
- this.changeHandlers.add(a), s.setOnChange(a);
291
+ this.changeHandlers.add(o), s.setOnChange(o);
292
292
  } else {
293
- const a = () => {
293
+ const o = () => {
294
294
  e();
295
295
  };
296
- this.changeHandlers.add(a), (n = s.setOnChange) == null || n.call(s, a);
296
+ this.changeHandlers.add(o), (n = s.setOnChange) == null || n.call(s, o);
297
297
  }
298
298
  }), this;
299
299
  }
@@ -312,7 +312,7 @@ const g = class g {
312
312
  "focusout",
313
313
  this.handleBlur,
314
314
  !0
315
- ), b(this.settings, (t, e) => {
315
+ ), w(this.settings, (t, e) => {
316
316
  e instanceof g && e.setOnBlur(() => {
317
317
  this.onBlur && this.onBlur();
318
318
  });
@@ -326,7 +326,7 @@ const g = class g {
326
326
  }
327
327
  clone() {
328
328
  const t = {};
329
- b(this.settings, (s, n) => {
329
+ w(this.settings, (s, n) => {
330
330
  typeof n.clone == "function" ? t[s] = n.clone() : (console.warn(
331
331
  `Setting with key '${s}' does not have a clone method. Copying reference.`
332
332
  ), t[s] = n);
@@ -341,7 +341,7 @@ const g = class g {
341
341
  custom: this.custom,
342
342
  hideCondition: this.hideCondition,
343
343
  parentNestingLevel: this.parentNestingLevel
344
- }, i = z(e);
344
+ }, i = T(e);
345
345
  return i.initialValues = this.getValues(), i;
346
346
  }
347
347
  setValue(t) {
@@ -379,10 +379,10 @@ const g = class g {
379
379
  ...Object.keys(t),
380
380
  ...Object.keys(e)
381
381
  ])).forEach((n) => {
382
- const a = t[n], o = e[n];
383
- JSON.stringify(a) !== JSON.stringify(o) && (i[n] = {
384
- from: a,
385
- to: o
382
+ const o = t[n], a = e[n];
383
+ JSON.stringify(o) !== JSON.stringify(a) && (i[n] = {
384
+ from: o,
385
+ to: a
386
386
  });
387
387
  }), i;
388
388
  }
@@ -465,7 +465,7 @@ const g = class g {
465
465
  }
466
466
  draw() {
467
467
  const t = document.createElement("div");
468
- 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);
468
+ 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"), x(t, this.nestingLevel);
469
469
  const e = document.createElement("div");
470
470
  e.className = "setting-group-title", this.isCollapsed && e.classList.add("collapsed-view"), e.setAttribute("role", "button"), e.setAttribute(
471
471
  "aria-expanded",
@@ -473,75 +473,75 @@ const g = class g {
473
473
  ), e.setAttribute("tabindex", "0");
474
474
  const i = document.createElement("div");
475
475
  if (i.className = "title-section", this.icon) {
476
- const h = document.createElement("span");
477
- h.className = "group-icon", h.innerHTML = this.icon, i.appendChild(h);
476
+ const r = document.createElement("span");
477
+ r.className = "group-icon", r.innerHTML = this.icon, i.appendChild(r);
478
478
  }
479
479
  const s = document.createElement("h3");
480
480
  s.textContent = this.title, i.appendChild(s);
481
481
  const n = document.createElement("div");
482
482
  if (n.className = "actions-section", this.description && this.isCollapsed) {
483
- const h = document.createElement("span");
484
- h.className = "info-marker", h.innerHTML = `
483
+ const r = document.createElement("span");
484
+ r.className = "info-marker", r.innerHTML = `
485
485
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
486
486
  <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"
487
487
  stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
488
488
  </svg>
489
- `, h.title = this.description, n.appendChild(h);
489
+ `, r.title = this.description, n.appendChild(r);
490
490
  }
491
- const a = document.createElement("span");
492
- a.className = "setting-group-arrow", a.innerHTML = `
491
+ const o = document.createElement("span");
492
+ o.className = "setting-group-arrow", o.innerHTML = `
493
493
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
494
494
  <path d="M4 6L8 10L12 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
495
495
  </svg>
496
- `, this.isCollapsed && a.classList.add("rotated"), n.appendChild(a);
497
- const o = document.createElement("div");
498
- if (o.className = "setting-group-content", this.isCollapsed && (o.classList.add("collapsed"), e.classList.add("collapsed-view"), a.classList.add("rotated"), t.classList.add("collapsed")), this.isMain && o.classList.add("main-content"), this.description && !this.isCollapsed) {
499
- const h = document.createElement("div");
500
- h.className = "setting-group-description", h.textContent = this.description, o.appendChild(h);
496
+ `, this.isCollapsed && o.classList.add("rotated"), n.appendChild(o);
497
+ const a = document.createElement("div");
498
+ if (a.className = "setting-group-content", this.isCollapsed && (a.classList.add("collapsed"), e.classList.add("collapsed-view"), o.classList.add("rotated"), t.classList.add("collapsed")), this.isMain && a.classList.add("main-content"), this.description && !this.isCollapsed) {
499
+ const r = document.createElement("div");
500
+ r.className = "setting-group-description", r.textContent = this.description, a.appendChild(r);
501
501
  }
502
502
  const l = () => {
503
- this.isCollapsed = !this.isCollapsed, o.classList.toggle("collapsed"), e.classList.toggle("collapsed-view"), a.classList.toggle("rotated"), t.classList.toggle("collapsed", this.isCollapsed), e.setAttribute(
503
+ this.isCollapsed = !this.isCollapsed, a.classList.toggle("collapsed"), e.classList.toggle("collapsed-view"), o.classList.toggle("rotated"), t.classList.toggle("collapsed", this.isCollapsed), e.setAttribute(
504
504
  "aria-expanded",
505
505
  (!this.isCollapsed).toString()
506
506
  );
507
- const h = o.querySelector(
507
+ const r = a.querySelector(
508
508
  ".setting-group-description"
509
509
  ), u = n.querySelector(".info-marker");
510
510
  if (this.description)
511
511
  if (this.isCollapsed) {
512
- if (h && h.remove(), !u) {
512
+ if (r && r.remove(), !u) {
513
513
  const d = document.createElement("span");
514
514
  d.className = "info-marker", d.innerHTML = `
515
515
  <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
516
516
  <path d="M8 5.33333V8M8 10.6667H8.00667M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z"
517
517
  stroke="currentColor" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/>
518
518
  </svg>
519
- `, d.title = this.description, n.insertBefore(d, a);
519
+ `, d.title = this.description, n.insertBefore(d, o);
520
520
  }
521
521
  } else {
522
- if (!h) {
522
+ if (!r) {
523
523
  const d = document.createElement("div");
524
- d.className = "setting-group-description", d.textContent = this.description, o.insertBefore(
524
+ d.className = "setting-group-description", d.textContent = this.description, a.insertBefore(
525
525
  d,
526
- o.firstChild
526
+ a.firstChild
527
527
  );
528
528
  }
529
529
  u && u.remove();
530
530
  }
531
531
  };
532
- if (e.onclick = l, e.onkeydown = (h) => {
533
- (h.key === "Enter" || h.key === " ") && (h.preventDefault(), l());
532
+ if (e.onclick = l, e.onkeydown = (r) => {
533
+ (r.key === "Enter" || r.key === " ") && (r.preventDefault(), l());
534
534
  }, Object.keys(this.settings).length > 0) {
535
- for (const h in this.settings)
536
- if (this.settings.hasOwnProperty(h)) {
537
- const u = this.settings[h];
538
- u instanceof g && u.setNestingLevel(this.nestingLevel + 1), o.appendChild(u.draw());
535
+ for (const r in this.settings)
536
+ if (this.settings.hasOwnProperty(r)) {
537
+ const u = this.settings[r];
538
+ u instanceof g && u.setNestingLevel(this.nestingLevel + 1), a.appendChild(u.draw());
539
539
  }
540
540
  } else {
541
- const h = document.createElement("div");
542
- h.className = "setting-group-empty", h.textContent = "No settings in this group", o.appendChild(h);
541
+ const r = document.createElement("div");
542
+ r.className = "setting-group-empty", r.textContent = "No settings in this group", a.appendChild(r);
543
543
  }
544
- return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(o), this.elementRef = t, F.trackElement(t), setTimeout(() => {
544
+ return e.appendChild(i), e.appendChild(n), t.appendChild(e), t.appendChild(a), this.elementRef = t, H.trackElement(t), setTimeout(() => {
545
545
  this.updateNestingStyles();
546
546
  }, 0), this.pendingBlurHandler && (this.setupBlurHandlers(), this.pendingBlurHandler = null), t;
547
547
  }
@@ -578,10 +578,10 @@ const g = class g {
578
578
  let i = e;
579
579
  const s = Object.keys(this.settings), n = Object.keys(e);
580
580
  if (!s.some(
581
- (o) => n.includes(o)
581
+ (a) => n.includes(a)
582
582
  ) && n.length === 1) {
583
- const o = n[0];
584
- i = e[o];
583
+ const a = n[0];
584
+ i = e[a];
585
585
  }
586
586
  this.setValue(i);
587
587
  } catch (e) {
@@ -591,7 +591,7 @@ const g = class g {
591
591
  };
592
592
  g.hiddenElements = /* @__PURE__ */ new Set();
593
593
  let f = g;
594
- class ft extends f {
594
+ class ht extends f {
595
595
  constructor(t) {
596
596
  super(t);
597
597
  const e = Object.keys(this.settings)[0];
@@ -625,28 +625,28 @@ class ft extends f {
625
625
  s.textContent = this.title, i.appendChild(s);
626
626
  const n = document.createElement("div");
627
627
  n.className = "tabs-header", this.tabsContainer = n;
628
- const a = document.createElement("div");
629
- if (a.className = "tab-content", this.contentContainers = {}, Object.keys(this.settings).forEach((o, l) => {
630
- const r = document.createElement("button");
631
- r.className = "tab-button", r.type = "button", r.setAttribute("data-tab-id", o), r.textContent = o, r.addEventListener("click", () => this.switchToTab(o)), n.appendChild(r);
632
- const h = document.createElement("div");
633
- h.className = "tab-panel", this.contentContainers[o] = h;
634
- const u = this.settings[o];
635
- u && (u instanceof f && u.setNestingLevel(this.getNestingLevel() + 1), h.appendChild(u.draw())), a.appendChild(h), l === 0 && !this.activeTabId && (this.activeTabId = o);
636
- }), e.appendChild(i), e.appendChild(n), e.appendChild(a), !this.activeTabId) {
637
- const o = Object.keys(this.settings)[0];
638
- this.activeTabId = o || "";
628
+ const o = document.createElement("div");
629
+ if (o.className = "tab-content", this.contentContainers = {}, Object.keys(this.settings).forEach((a, l) => {
630
+ const h = document.createElement("button");
631
+ h.className = "tab-button", h.type = "button", h.setAttribute("data-tab-id", a), h.textContent = a, h.addEventListener("click", () => this.switchToTab(a)), n.appendChild(h);
632
+ const r = document.createElement("div");
633
+ r.className = "tab-panel", this.contentContainers[a] = r;
634
+ const u = this.settings[a];
635
+ u && (u instanceof f && u.setNestingLevel(this.getNestingLevel() + 1), r.appendChild(u.draw())), o.appendChild(r), l === 0 && !this.activeTabId && (this.activeTabId = a);
636
+ }), e.appendChild(i), e.appendChild(n), e.appendChild(o), !this.activeTabId) {
637
+ const a = Object.keys(this.settings)[0];
638
+ this.activeTabId = a || "";
639
639
  }
640
640
  return this.updateTabUI(), t;
641
641
  }
642
642
  }
643
- function z(c) {
643
+ function T(c) {
644
644
  return new f(c);
645
645
  }
646
- function vt(c) {
646
+ function ct(c) {
647
647
  return c;
648
648
  }
649
- class j extends p {
649
+ class A extends p {
650
650
  constructor(t = {}) {
651
651
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
652
652
  }
@@ -666,12 +666,12 @@ class j extends p {
666
666
  });
667
667
  }
668
668
  }
669
- const P = "<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>";
670
- class m extends j {
669
+ const B = "<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>";
670
+ class m extends A {
671
671
  constructor(t) {
672
672
  super({
673
673
  ...t,
674
- icon: t.icon || P,
674
+ icon: t.icon || B,
675
675
  title: t.title || "Color",
676
676
  default: t.default ? m.normalizeColorValue(t.default) : "#000000"
677
677
  }), this.inputType = "color", this.element = null, this.colorInputEl = null, this.textInputEl = null, this.detectChange = t.detectChange;
@@ -683,14 +683,14 @@ class m extends j {
683
683
  return t = t.replace("#", ""), t.length === 3 && (t = t.split("").map((e) => e + e).join("")), t.length !== 6 ? (console.warn(`Invalid hex value "${t}", using default "#000000"`), "#000000") : /^[0-9A-Fa-f]{6}$/.test(t) ? `#${t.toLowerCase()}` : (console.warn(`Invalid hex value "${t}", using default "#000000"`), "#000000");
684
684
  }
685
685
  static rgbToHexStatic(t) {
686
- const e = t.split(",").map((h) => parseInt(h.trim()));
686
+ const e = t.split(",").map((r) => parseInt(r.trim()));
687
687
  if (e.length !== 3 || e.some(isNaN))
688
688
  return console.warn(`Invalid RGB value "${t}", using default "#000000"`), "#000000";
689
- const [i, s, n] = e, a = Math.max(0, Math.min(255, i)), o = Math.max(0, Math.min(255, s)), l = Math.max(0, Math.min(255, n)), r = (h) => {
690
- const u = h.toString(16);
689
+ const [i, s, n] = e, o = Math.max(0, Math.min(255, i)), a = Math.max(0, Math.min(255, s)), l = Math.max(0, Math.min(255, n)), h = (r) => {
690
+ const u = r.toString(16);
691
691
  return u.length === 1 ? "0" + u : u;
692
692
  };
693
- return `#${r(a)}${r(o)}${r(l)}`;
693
+ return `#${h(o)}${h(a)}${h(l)}`;
694
694
  }
695
695
  setValue(t) {
696
696
  if (t === void 0) {
@@ -713,46 +713,46 @@ class m extends j {
713
713
  if (t.className = "color-setting-wrapper " + (this.props.wrapperClassName || ""), this.props.title || this.props.icon) {
714
714
  const l = document.createElement("div");
715
715
  if (l.className = "icon-container", this.props.icon) {
716
- const r = document.createElement("span");
717
- r.className = "input-icon", r.innerHTML = this.props.icon, l.appendChild(r);
716
+ const h = document.createElement("span");
717
+ h.className = "input-icon", h.innerHTML = this.props.icon, l.appendChild(h);
718
718
  }
719
719
  if (this.props.title) {
720
- const r = document.createElement("span");
721
- r.className = "input-label", r.textContent = this.props.title, l.appendChild(r);
720
+ const h = document.createElement("span");
721
+ h.className = "input-label", h.textContent = this.props.title, l.appendChild(h);
722
722
  }
723
723
  t.appendChild(l);
724
724
  }
725
725
  const e = document.createElement("div");
726
726
  e.className = "color-input-wrapper";
727
727
  const i = (l) => {
728
- const r = l.value.trim();
729
- if (!r)
728
+ const h = l.value.trim();
729
+ if (!h)
730
730
  return e.classList.remove("error"), !0;
731
- const u = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(r);
731
+ const u = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(h);
732
732
  return u ? e.classList.remove("error") : e.classList.add("error"), u;
733
733
  }, s = document.createElement("input");
734
734
  s.type = "color", s.className = "color-picker", s.value = this.value || "#000000", s.setAttribute("aria-label", "Choose color"), s.setAttribute("title", "Click to open color picker"), this.colorInputEl = s;
735
735
  const n = document.createElement("div");
736
736
  n.className = "color-preview";
737
- const a = this.value || "#000000";
738
- n.style.backgroundColor = a;
739
- const o = document.createElement("input");
740
- return o.type = "text", o.className = "color-text-input", o.value = this.value || "", o.placeholder = "#000000", o.setAttribute("pattern", "#[0-9A-Fa-f]{6}"), o.setAttribute("title", "Enter a hex color value (e.g., #ff0000)"), o.setAttribute("aria-label", "Hex color value"), o.setAttribute("maxlength", "7"), this.textInputEl = o, this.textInputEl.addEventListener("input", (l) => {
741
- var h, u;
742
- let r = l.target.value.trim();
737
+ const o = this.value || "#000000";
738
+ n.style.backgroundColor = o;
739
+ const a = document.createElement("input");
740
+ return a.type = "text", a.className = "color-text-input", a.value = this.value || "", a.placeholder = "#000000", a.setAttribute("pattern", "#[0-9A-Fa-f]{6}"), a.setAttribute("title", "Enter a hex color value (e.g., #ff0000)"), a.setAttribute("aria-label", "Hex color value"), a.setAttribute("maxlength", "7"), this.textInputEl = a, this.textInputEl.addEventListener("input", (l) => {
741
+ var r, u;
742
+ let h = l.target.value.trim();
743
743
  if (this.textInputEl && i(this.textInputEl)) {
744
- const d = m.normalizeColorValue(r);
745
- this.value = d, (h = this.onChange) == null || h.call(this, d), (u = this.detectChange) == null || u.call(this, d), this.colorInputEl && (this.colorInputEl.value = d), n.style.backgroundColor = d;
744
+ const d = m.normalizeColorValue(h);
745
+ this.value = d, (r = this.onChange) == null || r.call(this, d), (u = this.detectChange) == null || u.call(this, d), this.colorInputEl && (this.colorInputEl.value = d), n.style.backgroundColor = d;
746
746
  }
747
747
  }), this.colorInputEl.addEventListener("input", (l) => {
748
748
  var u, d;
749
- const r = l.target.value, h = m.normalizeColorValue(r);
750
- this.value = h, (u = this.onChange) == null || u.call(this, h), (d = this.detectChange) == null || d.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h, e.classList.remove("error");
749
+ const h = l.target.value, r = m.normalizeColorValue(h);
750
+ this.value = r, (u = this.onChange) == null || u.call(this, r), (d = this.detectChange) == null || d.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r, e.classList.remove("error");
751
751
  }), this.colorInputEl.addEventListener("change", (l) => {
752
752
  var u, d;
753
- const r = l.target.value, h = m.normalizeColorValue(r);
754
- this.value = h, (u = this.onChange) == null || u.call(this, h), (d = this.detectChange) == null || d.call(this, h), this.textInputEl && (this.textInputEl.value = h), n.style.backgroundColor = h;
755
- }), e.appendChild(s), e.appendChild(n), e.appendChild(o), t.appendChild(e), this.element = t, t;
753
+ const h = l.target.value, r = m.normalizeColorValue(h);
754
+ this.value = r, (u = this.onChange) == null || u.call(this, r), (d = this.detectChange) == null || d.call(this, r), this.textInputEl && (this.textInputEl.value = r), n.style.backgroundColor = r;
755
+ }), e.appendChild(s), e.appendChild(n), e.appendChild(a), t.appendChild(e), this.element = t, t;
756
756
  }
757
757
  getElement() {
758
758
  return this.element;
@@ -770,7 +770,7 @@ class m extends j {
770
770
  return this.isValidHex() ? this.hexToRgb(this.value) : "0, 0, 0";
771
771
  }
772
772
  }
773
- const G = `
773
+ const R = `
774
774
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
775
775
  <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"/>
776
776
  <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="0.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.5"/>
@@ -780,7 +780,7 @@ class C extends p {
780
780
  constructor(t = {}) {
781
781
  super({
782
782
  ...t,
783
- icon: t.icon || G,
783
+ icon: t.icon || R,
784
784
  title: t.title || "Color & Opacity",
785
785
  default: t.default || "#000000FF"
786
786
  }), this.inputType = "color", this.element = null, this.colorInputEl = null, this.textInputEl = null, this.opacityInputEl = null, this.colorPreviewEl = null, this.detectChange = t.detectChange, this.value && (this.value = C.normalizeHexWithOpacity(this.value));
@@ -808,8 +808,8 @@ class C extends p {
808
808
  }
809
809
  updateColorPreview() {
810
810
  if (!this.colorPreviewEl || !this.value) return;
811
- const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), a = parseInt(i.substring(4, 6), 16);
812
- this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${a}, ${e})`;
811
+ const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), o = parseInt(i.substring(4, 6), 16);
812
+ this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${o}, ${e})`;
813
813
  }
814
814
  handleColorChange(t) {
815
815
  const e = this.getOpacityPercent(), i = C.combineColorOpacity(t, e);
@@ -826,41 +826,41 @@ class C extends p {
826
826
  draw() {
827
827
  const t = document.createElement("div");
828
828
  if (t.className = "color-with-opacity-setting-wrapper " + (this.props.wrapperClassName || ""), this.props.title || this.props.icon) {
829
- const a = document.createElement("div");
830
- if (a.className = "icon-container", this.props.icon) {
831
- const o = document.createElement("span");
832
- o.className = "input-icon", o.innerHTML = this.props.icon, a.appendChild(o);
829
+ const o = document.createElement("div");
830
+ if (o.className = "icon-container", this.props.icon) {
831
+ const a = document.createElement("span");
832
+ a.className = "input-icon", a.innerHTML = this.props.icon, o.appendChild(a);
833
833
  }
834
834
  if (this.props.title) {
835
- const o = document.createElement("span");
836
- o.className = "input-label", o.textContent = this.props.title, a.appendChild(o);
835
+ const a = document.createElement("span");
836
+ a.className = "input-label", a.textContent = this.props.title, o.appendChild(a);
837
837
  }
838
- t.appendChild(a);
838
+ t.appendChild(o);
839
839
  }
840
840
  const e = document.createElement("div");
841
- e.className = "color-with-opacity-input-wrapper", this.colorInputEl = document.createElement("input"), this.colorInputEl.type = "color", this.colorInputEl.className = "color-with-opacity-picker", this.colorPreviewEl = document.createElement("div"), this.colorPreviewEl.className = "color-with-opacity-preview", this.textInputEl = document.createElement("input"), this.textInputEl.type = "text", this.textInputEl.className = "color-with-opacity-text-input", this.textInputEl.placeholder = "#000000FF", this.updateInputElements(), this.updateColorPreview(), this.colorInputEl.addEventListener("input", (a) => {
842
- const o = a.target;
843
- this.handleColorChange(o.value), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
844
- }), this.textInputEl.addEventListener("input", (a) => {
845
- const o = a.target;
846
- this.handleTextInput(o.value) ? (this.colorInputEl && (this.colorInputEl.value = this.getRgbColor()), this.updateColorPreview(), e.classList.remove("error")) : o.value.trim() === "" ? e.classList.remove("error") : e.classList.add("error");
847
- }), this.textInputEl.addEventListener("blur", (a) => {
848
- const o = a.target;
849
- o.value.trim() === "" && (o.value = this.value || "#000000FF", e.classList.remove("error"));
841
+ e.className = "color-with-opacity-input-wrapper", this.colorInputEl = document.createElement("input"), this.colorInputEl.type = "color", this.colorInputEl.className = "color-with-opacity-picker", this.colorPreviewEl = document.createElement("div"), this.colorPreviewEl.className = "color-with-opacity-preview", this.textInputEl = document.createElement("input"), this.textInputEl.type = "text", this.textInputEl.className = "color-with-opacity-text-input", this.textInputEl.placeholder = "#000000FF", this.updateInputElements(), this.updateColorPreview(), this.colorInputEl.addEventListener("input", (o) => {
842
+ const a = o.target;
843
+ this.handleColorChange(a.value), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
844
+ }), this.textInputEl.addEventListener("input", (o) => {
845
+ const a = o.target;
846
+ this.handleTextInput(a.value) ? (this.colorInputEl && (this.colorInputEl.value = this.getRgbColor()), this.updateColorPreview(), e.classList.remove("error")) : a.value.trim() === "" ? e.classList.remove("error") : e.classList.add("error");
847
+ }), this.textInputEl.addEventListener("blur", (o) => {
848
+ const a = o.target;
849
+ a.value.trim() === "" && (a.value = this.value || "#000000FF", e.classList.remove("error"));
850
850
  }), this.colorPreviewEl.addEventListener("click", () => {
851
- var a;
852
- (a = this.colorInputEl) == null || a.click();
851
+ var o;
852
+ (o = this.colorInputEl) == null || o.click();
853
853
  }), e.appendChild(this.colorInputEl), e.appendChild(this.colorPreviewEl), e.appendChild(this.textInputEl);
854
854
  const i = document.createElement("div");
855
855
  i.className = "color-with-opacity-opacity-wrapper", this.opacityInputEl = document.createElement("input"), this.opacityInputEl.type = "number", this.opacityInputEl.className = "color-with-opacity-opacity-input", this.opacityInputEl.value = this.getOpacityPercent().toString(), this.opacityInputEl.min = "0", this.opacityInputEl.max = "100", this.opacityInputEl.step = "1", this.opacityInputEl.placeholder = "100";
856
856
  const s = document.createElement("span");
857
- s.className = "color-with-opacity-opacity-suffix", s.textContent = "%", this.opacityInputEl.addEventListener("input", (a) => {
858
- const o = a.target, l = parseFloat(o.value);
857
+ s.className = "color-with-opacity-opacity-suffix", s.textContent = "%", this.opacityInputEl.addEventListener("input", (o) => {
858
+ const a = o.target, l = parseFloat(a.value);
859
859
  isNaN(l) || (this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview());
860
- }), this.opacityInputEl.addEventListener("blur", (a) => {
861
- const o = a.target;
862
- let l = parseFloat(o.value);
863
- isNaN(l) && (l = this.getOpacityPercent()), l = Math.max(0, Math.min(100, l)), o.value = l.toString(), this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
860
+ }), this.opacityInputEl.addEventListener("blur", (o) => {
861
+ const a = o.target;
862
+ let l = parseFloat(a.value);
863
+ isNaN(l) && (l = this.getOpacityPercent()), l = Math.max(0, Math.min(100, l)), a.value = l.toString(), this.handleOpacityChange(l), this.textInputEl && (this.textInputEl.value = this.value || "#000000FF"), this.updateColorPreview();
864
864
  }), i.appendChild(this.opacityInputEl), i.appendChild(s);
865
865
  const n = document.createElement("div");
866
866
  return n.className = "color-with-opacity-controls-wrapper", n.appendChild(e), n.appendChild(i), t.appendChild(n), this.element = t, this.updateInputElements(), this.updateColorPreview(), t;
@@ -873,8 +873,8 @@ class C extends p {
873
873
  }
874
874
  getRgbaValue() {
875
875
  if (!this.value) return "rgba(0, 0, 0, 1)";
876
- const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), a = parseInt(i.substring(4, 6), 16);
877
- return `rgba(${s}, ${n}, ${a}, ${e})`;
876
+ const t = this.getRgbColor(), e = this.getOpacityPercent() / 100, i = t.replace("#", ""), s = parseInt(i.substring(0, 2), 16), n = parseInt(i.substring(2, 4), 16), o = parseInt(i.substring(4, 6), 16);
877
+ return `rgba(${s}, ${n}, ${o}, ${e})`;
878
878
  }
879
879
  getColorAndOpacity() {
880
880
  return {
@@ -883,7 +883,7 @@ class C extends p {
883
883
  };
884
884
  }
885
885
  }
886
- class Ct extends p {
886
+ class ut extends p {
887
887
  constructor(t = {}) {
888
888
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
889
889
  }
@@ -895,20 +895,20 @@ class Ct extends p {
895
895
  if (t.className = "html-setting-wrapper " + (this.props.wrapperClassName || ""), this.props.title || this.props.icon) {
896
896
  const n = document.createElement("div");
897
897
  if (n.className = "icon-container", this.props.icon) {
898
- const a = this.createIcon(this.props.icon);
899
- n.appendChild(a);
898
+ const o = this.createIcon(this.props.icon);
899
+ n.appendChild(o);
900
900
  }
901
901
  if (this.props.title) {
902
- const a = this.createLabel(this.props.title);
903
- n.appendChild(a);
902
+ const o = this.createLabel(this.props.title);
903
+ n.appendChild(o);
904
904
  }
905
905
  t.appendChild(n);
906
906
  }
907
907
  const e = document.createElement("textarea");
908
908
  this.textareaEl = e, e.value = this.value || "", e.placeholder = this.props.placeholder || "Paste your HTML here...", e.className = "html-setting-textarea " + (this.props.textareaClassName || ""), e.rows = this.props.rows || 6, this.props.maxLength !== void 0 && (e.maxLength = this.props.maxLength), this.props.className && e.classList.add(this.props.className);
909
909
  const i = (n) => {
910
- const o = n.target.value;
911
- this.value = o, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
910
+ const a = n.target.value;
911
+ this.value = a, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
912
912
  }, s = (n) => {
913
913
  this.onBlur && this.value !== void 0 && this.onBlur(this.value);
914
914
  };
@@ -938,12 +938,12 @@ class v extends p {
938
938
  const i = document.createElement("input");
939
939
  if (i.type = "number", i.className = "number-setting-input " + (this.props.inputClassName || ""), i.value = String(this.value ?? ""), i.placeholder = this.props.placeholder || "", this.props.minValue !== void 0 && (i.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (i.max = String(this.props.maxValue)), this.props.step !== void 0 && (i.step = String(this.props.step)), i.addEventListener("input", () => {
940
940
  const s = this.props.minValue ?? Number.MIN_SAFE_INTEGER, n = this.props.maxValue ?? Number.MAX_SAFE_INTEGER;
941
- let a = Number(i.value);
942
- a < s && (a = s), a > n && (a = n), String(a) !== i.value && (i.value = String(a)), this.setValue(a);
941
+ let o = Number(i.value);
942
+ o < s && (o = s), o > n && (o = n), String(o) !== i.value && (i.value = String(o)), this.setValue(o);
943
943
  }), i.addEventListener("blur", () => {
944
- var n, a;
944
+ var n, o;
945
945
  const s = this.validateValue(Number(i.value));
946
- s !== Number(i.value) && (i.value = String(s), this.setValue(s)), (a = (n = this.props).onBlur) == null || a.call(n);
946
+ s !== Number(i.value) && (i.value = String(s), this.setValue(s)), (o = (n = this.props).onBlur) == null || o.call(n);
947
947
  }), e.appendChild(i), this.props.suffix && this.props.suffix !== "none") {
948
948
  const s = document.createElement("span");
949
949
  s.className = "suffix-label", s.textContent = this.props.suffix, e.appendChild(s);
@@ -974,12 +974,12 @@ class v extends p {
974
974
  );
975
975
  }
976
976
  }
977
- const W = `
977
+ const $ = `
978
978
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
979
979
  <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"/>
980
980
  <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"/>
981
981
  </svg>`;
982
- class D extends v {
982
+ class F extends v {
983
983
  constructor(t = {}) {
984
984
  const e = {
985
985
  title: "Opacity",
@@ -988,7 +988,7 @@ class D extends v {
988
988
  maxValue: 100,
989
989
  step: 1,
990
990
  default: t.default ?? 100,
991
- icon: W,
991
+ icon: $,
992
992
  ...t
993
993
  };
994
994
  super(e), this.inputType = "number", this.mobileValue = t.mobile;
@@ -1000,12 +1000,12 @@ class D extends v {
1000
1000
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1001
1001
  }
1002
1002
  }
1003
- const U = `
1003
+ const z = `
1004
1004
  <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">
1005
1005
  <polyline points="6 9 12 15 18 9"></polyline>
1006
1006
  </svg>
1007
1007
  `;
1008
- class M extends p {
1008
+ class y extends p {
1009
1009
  constructor(t = {}) {
1010
1010
  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, this.resizeListener = null, t.options && (this._options = [...t.options]), t.getOptions && this._options.push(...t.getOptions()), t.getOptionsAsync && (this.isLoading = !0), this.value !== void 0) {
1011
1011
  const e = this._options.findIndex((i) => i.value === this.value);
@@ -1021,12 +1021,12 @@ class M extends p {
1021
1021
  if (t.classList.add("select-container"), this.container = t, this.props.icon || this.props.title) {
1022
1022
  const n = document.createElement("div");
1023
1023
  if (n.className = "icon-container", this.props.icon) {
1024
- const a = this.createIcon(this.props.icon);
1025
- n.appendChild(a);
1024
+ const o = this.createIcon(this.props.icon);
1025
+ n.appendChild(o);
1026
1026
  }
1027
1027
  if (this.props.title) {
1028
- const a = this.createLabel(this.props.title);
1029
- n.appendChild(a);
1028
+ const o = this.createLabel(this.props.title);
1029
+ n.appendChild(o);
1030
1030
  }
1031
1031
  t.appendChild(n);
1032
1032
  } else {
@@ -1035,22 +1035,22 @@ class M extends p {
1035
1035
  }
1036
1036
  const e = document.createElement("div");
1037
1037
  e.classList.add("select-button"), this.isLoading ? e.classList.add("loading") : e.textContent = this.selectedOptionIndex !== null ? this._options[this.selectedOptionIndex].name : this.props.placeholder || "Select an option", e.onclick = () => {
1038
- var n, a;
1039
- this.isLoading || (this.isOpen = !this.isOpen, this.isOpen ? this.checkDropdownPosition() : this.cleanupDropdownPosition(), (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (a = this.svgContainer) == null || a.classList.toggle("open", this.isOpen));
1038
+ var n, o;
1039
+ this.isLoading || (this.isOpen = !this.isOpen, this.isOpen ? this.checkDropdownPosition() : this.cleanupDropdownPosition(), (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1040
1040
  }, t.appendChild(e), this.buttonEl = e;
1041
1041
  const i = document.createElement("ul");
1042
- i.classList.add("select-options"), this._options.forEach((n, a) => {
1043
- const o = this.createOption(n, a);
1044
- o.onclick = (l) => this.selectOption(l, a, e), i.appendChild(o);
1042
+ i.classList.add("select-options"), this._options.forEach((n, o) => {
1043
+ const a = this.createOption(n, o);
1044
+ a.onclick = (l) => this.selectOption(l, o, e), i.appendChild(a);
1045
1045
  }), document.body.appendChild(i);
1046
1046
  const s = document.createElement("div");
1047
- 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) => {
1047
+ return s.classList.add("svg-container"), s.innerHTML = z, t.appendChild(s), this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1048
1048
  this._options.push(...n), this.isLoading = !1, this.updateOptionsList(), this.updateButtonText();
1049
1049
  }).catch((n) => {
1050
1050
  console.error("Failed to fetch async options:", n), this.isLoading = !1, this.updateButtonText("Failed to load options");
1051
1051
  })), this.clickOutsideListener && document.removeEventListener("click", this.clickOutsideListener), this.clickOutsideListener = (n) => {
1052
- var a, o;
1053
- this.isOpen && !t.contains(n.target) && (this.isOpen = !1, (a = this.optionsListEl) == null || a.classList.remove("open"), (o = this.svgContainer) == null || o.classList.remove("open"), this.cleanupDropdownPosition());
1052
+ var o, a;
1053
+ this.isOpen && !t.contains(n.target) && (this.isOpen = !1, (o = this.optionsListEl) == null || o.classList.remove("open"), (a = this.svgContainer) == null || a.classList.remove("open"), this.cleanupDropdownPosition());
1054
1054
  }, document.addEventListener("click", this.clickOutsideListener), this.resizeListener && window.removeEventListener("resize", this.resizeListener), this.resizeListener = () => {
1055
1055
  this.isOpen && this.checkDropdownPosition();
1056
1056
  }, window.addEventListener("resize", this.resizeListener), t;
@@ -1072,10 +1072,10 @@ class M extends p {
1072
1072
  }
1073
1073
  }
1074
1074
  selectOption(t, e, i) {
1075
- var n, a, o;
1075
+ var n, o, a;
1076
1076
  const s = this._options[e];
1077
- s && (this.value = s.value, (n = this.onChange) == null || n.call(this, this.value), this.selectedOptionIndex = e, this.isOpen = !1, i.textContent = s.name, (a = this.optionsListEl) == null || a.classList.remove("open"), (o = this.svgContainer) == null || o.classList.remove("open"), this.cleanupDropdownPosition(), this.optionsListEl && this.optionsListEl.querySelectorAll(".select-option").forEach((r, h) => {
1078
- h === e ? r.classList.add("selected") : r.classList.remove("selected");
1077
+ s && (this.value = s.value, (n = this.onChange) == null || n.call(this, this.value), this.selectedOptionIndex = e, this.isOpen = !1, i.textContent = s.name, (o = this.optionsListEl) == null || o.classList.remove("open"), (a = this.svgContainer) == null || a.classList.remove("open"), this.cleanupDropdownPosition(), this.optionsListEl && this.optionsListEl.querySelectorAll(".select-option").forEach((h, r) => {
1078
+ r === e ? h.classList.add("selected") : h.classList.remove("selected");
1079
1079
  }));
1080
1080
  }
1081
1081
  /**
@@ -1113,7 +1113,7 @@ class M extends p {
1113
1113
  this.clickOutsideListener && (document.removeEventListener("click", this.clickOutsideListener), this.clickOutsideListener = null), this.resizeListener && (window.removeEventListener("resize", this.resizeListener), this.resizeListener = null), this.cleanupDropdownPosition(), this.optionsListEl && this.optionsListEl.parentNode && this.optionsListEl.parentNode.removeChild(this.optionsListEl), super.destroy();
1114
1114
  }
1115
1115
  }
1116
- class _ extends p {
1116
+ class j extends p {
1117
1117
  constructor(t = {}) {
1118
1118
  super(t), this.inputType = "button", this.value || (this.value = "center");
1119
1119
  }
@@ -1158,15 +1158,15 @@ class _ extends p {
1158
1158
  `
1159
1159
  }
1160
1160
  ].forEach((n) => {
1161
- const a = document.createElement("button");
1162
- a.className = "align-option-button", a.innerHTML = n.icon, this.value === n.name && a.classList.add("selected"), a.addEventListener("click", () => {
1163
- var o;
1164
- i.querySelectorAll(".align-option-button").forEach((l) => l.classList.remove("selected")), a.classList.add("selected"), this.value = n.name, (o = this.onChange) == null || o.call(this, this.value);
1165
- }), i.appendChild(a);
1161
+ const o = document.createElement("button");
1162
+ o.className = "align-option-button", o.innerHTML = n.icon, this.value === n.name && o.classList.add("selected"), o.addEventListener("click", () => {
1163
+ var a;
1164
+ i.querySelectorAll(".align-option-button").forEach((l) => l.classList.remove("selected")), o.classList.add("selected"), this.value = n.name, (a = this.onChange) == null || a.call(this, this.value);
1165
+ }), i.appendChild(o);
1166
1166
  }), t.appendChild(i), t;
1167
1167
  }
1168
1168
  }
1169
- class wt extends p {
1169
+ class dt extends p {
1170
1170
  constructor(t) {
1171
1171
  super(t), this.inputType = "button";
1172
1172
  }
@@ -1179,7 +1179,7 @@ class wt extends p {
1179
1179
  return e.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), e.appendChild(t), e;
1180
1180
  }
1181
1181
  }
1182
- class Et extends p {
1182
+ class pt extends p {
1183
1183
  constructor(t = {}) {
1184
1184
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1185
1185
  const e = t.width || 0, i = t.height || 0;
@@ -1192,14 +1192,14 @@ class Et extends p {
1192
1192
  suffix: "px",
1193
1193
  minValue: this.minWidth,
1194
1194
  maxValue: this.maxWidth,
1195
- icon: q
1195
+ icon: G
1196
1196
  }), this.heightSetting = new v({
1197
1197
  title: "Height",
1198
1198
  default: this.value.height,
1199
1199
  suffix: "px",
1200
1200
  minValue: this.minHeight,
1201
1201
  maxValue: this.maxHeight,
1202
- icon: J
1202
+ icon: P
1203
1203
  }), this.widthSetting.setOnChange(this.handleWidthChange.bind(this)), this.heightSetting.setOnChange(this.handleHeightChange.bind(this));
1204
1204
  }
1205
1205
  handleWidthChange(t) {
@@ -1269,8 +1269,8 @@ class Et extends p {
1269
1269
  return n.className = "dimension-lock-icon", n.setAttribute("type", "button"), n.setAttribute("aria-pressed", String(this.locked)), n.setAttribute(
1270
1270
  "aria-label",
1271
1271
  this.locked ? "Unlock aspect ratio" : "Lock aspect ratio"
1272
- ), n.title = this.locked ? "Unlock aspect ratio" : "Lock aspect ratio", n.innerHTML = this.getLockSVG(this.locked), n.onclick = (a) => {
1273
- a.preventDefault(), this.toggleLock(n);
1272
+ ), n.title = this.locked ? "Unlock aspect ratio" : "Lock aspect ratio", n.innerHTML = this.getLockSVG(this.locked), n.onclick = (o) => {
1273
+ o.preventDefault(), this.toggleLock(n);
1274
1274
  }, s.appendChild(n), t.appendChild(e), t.appendChild(s), t.appendChild(i), t;
1275
1275
  }
1276
1276
  isLocked() {
@@ -1293,27 +1293,42 @@ class Et extends p {
1293
1293
  }
1294
1294
  }
1295
1295
  }
1296
- const q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1296
+ const G = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1297
1297
  <path d="M4.5 9.5H13.5M4.5 9.5L6 7.25M4.5 9.5L6 11.75M13.5 9.5L12 7.25M13.5 9.5L12 11.75M15.75 16.25V2.75M2.25 16.25V2.75" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
1298
- </svg>`, J = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1298
+ </svg>`, P = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1299
1299
  <path d="M9 14L9 5M9 14L6.75 12.5M9 14L11.25 12.5M9 5L6.75 6.5M9 5L11.25 6.5M15.75 2.75H2.25M15.75 16.25H2.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
1300
- </svg>`, y = `
1300
+ </svg>`, L = `
1301
1301
  <svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
1302
1302
  <path d="M5 10.5L7.5 8M7.5 8L10 10.5M7.5 8V13.625M12.5 10.9643C13.2634 10.3338 13.75 9.37996 13.75 8.3125C13.75 6.41402 12.211 4.875 10.3125 4.875C10.1759 4.875 10.0482 4.80375 9.97882 4.68609C9.16379 3.30302 7.65902 2.375 5.9375 2.375C3.34867 2.375 1.25 4.47367 1.25 7.0625C1.25 8.35381 1.77215 9.52317 2.61684 10.371" stroke="#475467" stroke-linecap="round" stroke-linejoin="round"/>
1303
1303
  </svg>
1304
- `, Z = `
1304
+ `, W = `
1305
1305
  <svg width="91" height="71" viewBox="0 0 91 71" fill="none" xmlns="http://www.w3.org/2000/svg">
1306
1306
  <rect width="91" height="71" rx="4" fill="#F2F4F7"/>
1307
1307
  <path d="M37 31.5L39.5 29M39.5 29L42 31.5M39.5 29V34.625M44.5 31.9643C45.2634 31.3338 45.75 30.38 45.75 29.3125C45.75 27.414 44.211 25.875 42.3125 25.875C42.1759 25.875 42.0482 25.8037 41.9788 25.6861C41.1638 24.303 39.659 23.375 37.9375 23.375C35.3487 23.375 33.25 25.4737 33.25 28.0625C33.25 29.3538 33.7721 30.5232 34.6168 31.371" stroke="#475467" stroke-linecap="round" stroke-linejoin="round"/>
1308
1308
  </svg>
1309
- `, K = `
1309
+ `, D = `
1310
1310
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 12 12" fill="none">
1311
1311
  <path d="M8 3V2.6C8 2.03995 8 1.75992 7.89101 1.54601C7.79513 1.35785 7.64215 1.20487 7.45399 1.10899C7.24008 1 6.96005 1 6.4 1H5.6C5.03995 1 4.75992 1 4.54601 1.10899C4.35785 1.20487 4.20487 1.35785 4.10899 1.54601C4 1.75992 4 2.03995 4 2.6V3M5 5.75V8.25M7 5.75V8.25M1.5 3H10.5M9.5 3V8.6C9.5 9.44008 9.5 9.86012 9.33651 10.181C9.1927 10.4632 8.96323 10.6927 8.68099 10.8365C8.36012 11 7.94008 11 7.1 11H4.9C4.05992 11 3.63988 11 3.31901 10.8365C3.03677 10.6927 2.8073 10.4632 2.66349 10.181C2.5 9.86012 2.5 9.44008 2.5 8.6V3" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
1312
1312
  </svg>
1313
1313
  `;
1314
- class X extends p {
1314
+ class _ extends p {
1315
1315
  constructor(t = {}) {
1316
- 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);
1316
+ super(t), this.inputType = "button", this.previewWrapper = null, this.previewEl = null, this.emptyStateEl = null, this.errorContainer = null, this.messageListener = null, this.props.delete === void 0 && (this.props.delete = !0), this.props.maxFileSizeMB === void 0 && (this.props.maxFileSizeMB = 5), !this.value && t.defaultUrl && t.defaultUrl !== "" && (this.value = t.defaultUrl), this.setupMessageListener();
1317
+ }
1318
+ setupMessageListener() {
1319
+ this.messageListener = (t) => {
1320
+ var e;
1321
+ if (t.data && t.data.type === "FILE_MANAGER_IMAGE_SELECTED") {
1322
+ const i = t.data.imageUrl;
1323
+ i && typeof i == "string" && (this.value = i, this.updatePreviewState(i), (e = this.onChange) == null || e.call(this, i), this.hideError());
1324
+ }
1325
+ }, window.addEventListener("message", this.messageListener);
1326
+ }
1327
+ cleanupMessageListener() {
1328
+ this.messageListener && (window.removeEventListener("message", this.messageListener), this.messageListener = null);
1329
+ }
1330
+ destroy() {
1331
+ this.cleanupMessageListener();
1317
1332
  }
1318
1333
  showError(t) {
1319
1334
  this.errorContainer && (this.errorContainer.textContent = t, this.errorContainer.style.display = "block", setTimeout(() => {
@@ -1339,10 +1354,10 @@ class X extends p {
1339
1354
  ".preview-placeholder"
1340
1355
  );
1341
1356
  t && t !== "" ? (this.previewWrapper.classList.add("has-image"), this.previewEl.src = t, this.previewWrapper.style.display = "block", this.previewEl.style.display = "block", s && s instanceof HTMLElement && (s.style.display = "none"), e && e.classList.remove("no-image"), i && (i.innerHTML = `
1342
- <span class="upload-icon">${y}</span>
1357
+ <span class="upload-icon">${L}</span>
1343
1358
  <span class="upload-label">Replace</span>
1344
1359
  `)) : (this.previewWrapper.classList.remove("has-image"), this.previewEl.src = "", this.previewEl.style.display = "none", this.previewWrapper.style.display = "none", s && s instanceof HTMLElement && (s.style.display = "block"), e && e.classList.add("no-image"), i && (i.innerHTML = `
1345
- <span class="upload-icon">${y}</span>
1360
+ <span class="upload-icon">${L}</span>
1346
1361
  <span class="upload-label">Upload</span>
1347
1362
  `));
1348
1363
  }
@@ -1350,24 +1365,24 @@ class X extends p {
1350
1365
  const t = document.createElement("div");
1351
1366
  t.className = "upload-setting-wrapper", t.setAttribute("data-setting-id", this.id), t.addEventListener(
1352
1367
  "focusout",
1353
- (l) => {
1354
- var r;
1355
- l.relatedTarget && t.contains(l.relatedTarget) || (r = this.onBlur) == null || r.call(this, this.value ?? "");
1368
+ (a) => {
1369
+ var l;
1370
+ a.relatedTarget && t.contains(a.relatedTarget) || (l = this.onBlur) == null || l.call(this, this.value ?? "");
1356
1371
  },
1357
1372
  !0
1358
1373
  );
1359
1374
  const e = !!(this.props.title || this.props.icon);
1360
1375
  if (e || t.classList.add("no-label"), e) {
1361
- const l = document.createElement("div");
1362
- if (l.className = "icon-title-container", this.props.icon) {
1363
- const r = this.createIcon(this.props.icon);
1364
- l.appendChild(r);
1376
+ const a = document.createElement("div");
1377
+ if (a.className = "icon-title-container", this.props.icon) {
1378
+ const l = this.createIcon(this.props.icon);
1379
+ a.appendChild(l);
1365
1380
  }
1366
1381
  if (this.props.title) {
1367
- const r = this.createLabel(this.props.title);
1368
- l.appendChild(r);
1382
+ const l = this.createLabel(this.props.title);
1383
+ a.appendChild(l);
1369
1384
  }
1370
- t.appendChild(l);
1385
+ t.appendChild(a);
1371
1386
  }
1372
1387
  this.errorContainer = document.createElement("div"), this.errorContainer.className = "error-message", this.errorContainer.style.display = "none", t.appendChild(this.errorContainer);
1373
1388
  const i = document.createElement("div");
@@ -1375,71 +1390,37 @@ class X extends p {
1375
1390
  const s = this.value && this.value !== "";
1376
1391
  s || i.classList.add("no-image");
1377
1392
  const n = document.createElement("div");
1378
- if (n.className = "preview-placeholder", n.innerHTML = Z, this.previewWrapper = document.createElement("div"), this.previewWrapper.className = "preview-wrapper", this.previewEl = document.createElement("img"), this.previewEl.className = "upload-preview", this.props.delete) {
1379
- const l = document.createElement("button");
1380
- l.className = "delete-button", l.type = "button", l.title = "Delete image", l.innerHTML = K, this.previewWrapper.appendChild(l), l.onclick = (r) => {
1393
+ if (n.className = "preview-placeholder", n.innerHTML = W, this.previewWrapper = document.createElement("div"), this.previewWrapper.className = "preview-wrapper", this.previewEl = document.createElement("img"), this.previewEl.className = "upload-preview", this.props.delete) {
1394
+ const a = document.createElement("button");
1395
+ a.className = "delete-button", a.type = "button", a.title = "Delete image", a.innerHTML = D, this.previewWrapper.appendChild(a), a.onclick = (l) => {
1381
1396
  var h;
1382
- r.stopPropagation(), this.value = "", o.value = "", this.updatePreviewState(null), (h = this.onChange) == null || h.call(this, ""), this.hideError();
1397
+ l.stopPropagation(), this.value = "", this.updatePreviewState(null), (h = this.onChange) == null || h.call(this, ""), this.hideError();
1383
1398
  };
1384
1399
  }
1385
1400
  this.previewWrapper.appendChild(this.previewEl);
1386
- const a = document.createElement("button");
1387
- a.className = "upload-button", a.innerHTML = `
1388
- <span class="upload-icon">${y}</span>
1401
+ const o = document.createElement("button");
1402
+ return o.className = "upload-button", o.innerHTML = `
1403
+ <span class="upload-icon">${L}</span>
1389
1404
  <span class="upload-label">Upload</span>
1390
- `;
1391
- const o = document.createElement("input");
1392
- 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 = () => {
1393
- o.click();
1394
- }, o.onchange = async () => {
1395
- var r, h, u;
1396
- const l = (r = o.files) == null ? void 0 : r[0];
1397
- if (l) {
1398
- if (!this.validateFileSize(l)) {
1399
- o.value = "";
1400
- return;
1401
- }
1402
- this.hideError();
1403
- try {
1404
- a.classList.add("loading"), a.disabled = !0;
1405
- const d = new FormData(), I = this.props.formFieldName || "file";
1406
- d.append(I, l, l.name);
1407
- const V = this.props.uploadUrl || p.DefaultUploadUrl;
1408
- if (!V)
1409
- throw new Error("No uploadUrl provided to UploadSetting.");
1410
- const O = this.props.requestMethod || "POST", H = { ...this.props.requestHeaders || {} }, E = await (await fetch(V, {
1411
- method: O,
1412
- body: d,
1413
- headers: H
1414
- })).json();
1415
- console.log("Upload response:", E);
1416
- let w;
1417
- if (this.props.parseResponse)
1418
- w = this.props.parseResponse(E);
1419
- else if (w = (h = E == null ? void 0 : E.data) == null ? void 0 : h.url, !w)
1420
- throw new Error(
1421
- "No URL found in response. Provide a parseResponse if needed."
1422
- );
1423
- console.log("Final URL:", w), this.value = w, this.updatePreviewState(w), (u = this.onChange) == null || u.call(this, w);
1424
- } catch (d) {
1425
- console.error("Error uploading file:", d), this.showError(
1426
- `Upload failed: ${d instanceof Error ? d.message : "Unknown error"}`
1427
- ), o.value = "";
1428
- } finally {
1429
- a.classList.remove("loading"), a.disabled = !1;
1430
- }
1431
- }
1405
+ `, i.appendChild(n), i.appendChild(this.previewWrapper), i.appendChild(o), t.appendChild(i), s ? this.updatePreviewState(this.value) : this.updatePreviewState(null), o.onclick = () => {
1406
+ window.postMessage(
1407
+ {
1408
+ type: "OPEN_FILE_MANAGER_MODAL",
1409
+ settingId: this.id
1410
+ },
1411
+ "*"
1412
+ );
1432
1413
  }, t;
1433
1414
  }
1434
1415
  }
1435
- class bt extends v {
1416
+ class gt extends v {
1436
1417
  constructor(t = {}) {
1437
1418
  super({
1438
1419
  ...t,
1439
1420
  title: t.title || "Height",
1440
1421
  suffix: t.suffix || "px",
1441
1422
  minValue: t.minValue ?? 0,
1442
- icon: t.icon || Q,
1423
+ icon: t.icon || U,
1443
1424
  default: t.default ?? 100
1444
1425
  }), this.inputType = "number", this.mobileValue = t.mobile;
1445
1426
  }
@@ -1450,17 +1431,17 @@ class bt extends v {
1450
1431
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1451
1432
  }
1452
1433
  }
1453
- const Q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1434
+ const U = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1454
1435
  <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"/>
1455
1436
  </svg>`;
1456
- class xt extends v {
1437
+ class mt extends v {
1457
1438
  constructor(t = {}) {
1458
1439
  super({
1459
1440
  ...t,
1460
1441
  title: t.title || "Width",
1461
1442
  suffix: t.suffix || "px",
1462
1443
  minValue: t.minValue ?? 0,
1463
- icon: t.icon || Y,
1444
+ icon: t.icon || q,
1464
1445
  default: t.default ?? 100
1465
1446
  }), this.inputType = "number", this.mobileValue = t.mobile;
1466
1447
  }
@@ -1471,14 +1452,14 @@ class xt extends v {
1471
1452
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1472
1453
  }
1473
1454
  }
1474
- const Y = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1455
+ const q = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1475
1456
  <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"/>
1476
- </svg>`, tt = `
1457
+ </svg>`, J = `
1477
1458
  <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">
1478
1459
  <polyline points="6 9 12 15 18 9"></polyline>
1479
1460
  </svg>
1480
1461
  `;
1481
- class Lt extends p {
1462
+ class ft extends p {
1482
1463
  constructor(t = {}) {
1483
1464
  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) {
1484
1465
  const e = this._options.findIndex(
@@ -1505,46 +1486,46 @@ class Lt extends p {
1505
1486
  e.classList.add("has-label");
1506
1487
  const n = document.createElement("div");
1507
1488
  n.className = "select-label", n.textContent = this.props.title, e.appendChild(n);
1508
- const a = document.createElement("span");
1509
- if (a.className = "select-value", this.isLoading)
1510
- a.textContent = this.props.loadingText || "Loading options...";
1489
+ const o = document.createElement("span");
1490
+ if (o.className = "select-value", this.isLoading)
1491
+ o.textContent = this.props.loadingText || "Loading options...";
1511
1492
  else {
1512
- const o = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, l = o && typeof o.name == "string" ? o.name : "Select an option";
1513
- a.textContent = l;
1493
+ const a = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, l = a && typeof a.name == "string" ? a.name : "Select an option";
1494
+ o.textContent = l;
1514
1495
  }
1515
- e.appendChild(a);
1496
+ e.appendChild(o);
1516
1497
  } else {
1517
1498
  const n = document.createElement("span");
1518
1499
  if (this.isLoading)
1519
1500
  n.textContent = this.props.loadingText || "Loading options...";
1520
1501
  else {
1521
- const a = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, o = a && typeof a.name == "string" ? a.name : "Select an option";
1522
- n.textContent = o;
1502
+ const o = this.selectedOptionIndex !== null && this._options && this.selectedOptionIndex >= 0 && this.selectedOptionIndex < this._options.length ? this._options[this.selectedOptionIndex] : null, a = o && typeof o.name == "string" ? o.name : "Select an option";
1503
+ n.textContent = a;
1523
1504
  }
1524
1505
  e.appendChild(n);
1525
1506
  }
1526
1507
  e.onclick = () => {
1527
- var n, a;
1528
- 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));
1508
+ var n, o;
1509
+ this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1529
1510
  }, t.appendChild(e), this.buttonEl = e;
1530
1511
  const i = document.createElement("ul");
1531
- i.classList.add("select-api-options"), this._options.forEach((n, a) => {
1532
- const o = this.createOption(n, a);
1533
- o.onclick = (l) => this.selectApiOption(l, a, e), i.appendChild(o);
1512
+ i.classList.add("select-api-options"), this._options.forEach((n, o) => {
1513
+ const a = this.createOption(n, o);
1514
+ a.onclick = (l) => this.selectApiOption(l, o, e), i.appendChild(a);
1534
1515
  }), t.appendChild(i);
1535
1516
  const s = document.createElement("div");
1536
- return s.classList.add("svg-container"), s.innerHTML = tt, t.appendChild(s), s.onclick = () => {
1537
- var n, a;
1538
- 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));
1517
+ return s.classList.add("svg-container"), s.innerHTML = J, t.appendChild(s), s.onclick = () => {
1518
+ var n, o;
1519
+ this.isLoading || (this.isOpen = !this.isOpen, (n = this.optionsListEl) == null || n.classList.toggle("open", this.isOpen), (o = this.svgContainer) == null || o.classList.toggle("open", this.isOpen));
1539
1520
  }, this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && !this.hasInitializedOptions ? (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1540
- const a = new Set(
1521
+ const o = new Set(
1541
1522
  this._options.map((l) => JSON.stringify(l.value))
1542
- ), o = n.filter(
1543
- (l) => !a.has(JSON.stringify(l.value))
1523
+ ), a = n.filter(
1524
+ (l) => !o.has(JSON.stringify(l.value))
1544
1525
  );
1545
- if (this._options.push(...o), this.isLoading = !1, this.hasInitializedOptions = !0, this.value !== void 0) {
1526
+ if (this._options.push(...a), this.isLoading = !1, this.hasInitializedOptions = !0, this.value !== void 0) {
1546
1527
  const l = this._options.findIndex(
1547
- (r) => JSON.stringify(r.value) === JSON.stringify(this.value)
1528
+ (h) => JSON.stringify(h.value) === JSON.stringify(this.value)
1548
1529
  );
1549
1530
  this.selectedOptionIndex = l !== -1 ? l : null;
1550
1531
  } else
@@ -1556,14 +1537,14 @@ class Lt extends p {
1556
1537
  !0
1557
1538
  );
1558
1539
  })) : this.props.getOptionsAsync && this._options.length <= 1 && (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
1559
- const a = new Set(
1540
+ const o = new Set(
1560
1541
  this._options.map((l) => JSON.stringify(l.value))
1561
- ), o = n.filter(
1562
- (l) => !a.has(JSON.stringify(l.value))
1542
+ ), a = n.filter(
1543
+ (l) => !o.has(JSON.stringify(l.value))
1563
1544
  );
1564
- if (this._options.push(...o), this.isLoading = !1, this.value !== void 0) {
1545
+ if (this._options.push(...a), this.isLoading = !1, this.value !== void 0) {
1565
1546
  const l = this._options.findIndex(
1566
- (r) => JSON.stringify(r.value) === JSON.stringify(this.value)
1547
+ (h) => JSON.stringify(h.value) === JSON.stringify(this.value)
1567
1548
  );
1568
1549
  this.selectedOptionIndex = l !== -1 ? l : null;
1569
1550
  } else
@@ -1577,19 +1558,19 @@ class Lt extends p {
1577
1558
  })), t;
1578
1559
  }
1579
1560
  selectApiOption(t, e, i) {
1580
- var l, r, h, u;
1561
+ var l, h, r, u;
1581
1562
  const s = t.target, n = s.querySelector(".select-api-radio") || ((l = s.closest(".select-api-option")) == null ? void 0 : l.querySelector(".select-api-radio"));
1582
1563
  n && (n.checked = !0), this.selectedOptionIndex = e;
1583
- const a = this._options[e].value;
1584
- this.value = a;
1585
- const o = i.querySelector(".select-value");
1586
- if (o)
1587
- o.textContent = this._options[e].name;
1564
+ const o = this._options[e].value;
1565
+ this.value = o;
1566
+ const a = i.querySelector(".select-value");
1567
+ if (a)
1568
+ a.textContent = this._options[e].name;
1588
1569
  else {
1589
1570
  const d = i.firstChild;
1590
1571
  d && d.tagName === "SPAN" && (d.textContent = this._options[e].name);
1591
1572
  }
1592
- this.isOpen = !1, (r = this.optionsListEl) == null || r.classList.remove("open"), (h = this.svgContainer) == null || h.classList.remove("open"), (u = this.onChange) == null || u.call(this, a), this.detectChangeCallback && this.detectChangeCallback(a);
1573
+ this.isOpen = !1, (h = this.optionsListEl) == null || h.classList.remove("open"), (r = this.svgContainer) == null || r.classList.remove("open"), (u = this.onChange) == null || u.call(this, o), this.detectChangeCallback && this.detectChangeCallback(o);
1593
1574
  }
1594
1575
  updateOptionsList() {
1595
1576
  !this.optionsListEl || !this.buttonEl || (this.optionsListEl.innerHTML = "", this._options.forEach((t, e) => {
@@ -1622,13 +1603,13 @@ class Lt extends p {
1622
1603
  ), this.updateButtonText();
1623
1604
  }
1624
1605
  }
1625
- class yt extends p {
1606
+ class vt extends p {
1626
1607
  constructor(t) {
1627
1608
  var e, i;
1628
1609
  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;
1629
1610
  }
1630
1611
  draw() {
1631
- var a, o;
1612
+ var o, a;
1632
1613
  const t = document.createElement("div");
1633
1614
  t.className = "toggle-setting-container", this.props.icon && t.classList.add("toggle-with-icon");
1634
1615
  const e = document.createElement("div");
@@ -1644,20 +1625,20 @@ class yt extends p {
1644
1625
  const i = document.createElement("label");
1645
1626
  i.className = "toggle-switch";
1646
1627
  const s = document.createElement("input");
1647
- 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", () => {
1648
- var r, h;
1649
- const l = ((h = (r = this.props.options) == null ? void 0 : r.find((u) => u.status === s.checked)) == null ? void 0 : h.value) ?? "";
1628
+ s.type = "checkbox", s.checked = ((a = (o = this.props.options) == null ? void 0 : o.find((l) => l.value === this.value)) == null ? void 0 : a.status) ?? !1, s.addEventListener("change", () => {
1629
+ var h, r;
1630
+ const l = ((r = (h = this.props.options) == null ? void 0 : h.find((u) => u.status === s.checked)) == null ? void 0 : r.value) ?? "";
1650
1631
  this.value = l, this.onChange && this.onChange(this.value), this.detectChangeCallback && this.detectChangeCallback(this.value);
1651
1632
  });
1652
1633
  const n = document.createElement("span");
1653
1634
  if (n.className = "toggle-slider", this.props.activeColor || this.props.inactiveColor) {
1654
- const l = document.createElement("style"), r = this.props.activeColor || "#4CAF50", h = this.props.inactiveColor || "#ccc";
1635
+ const l = document.createElement("style"), h = this.props.activeColor || "#4CAF50", r = this.props.inactiveColor || "#ccc";
1655
1636
  l.textContent = `
1656
1637
  .toggle-switch input:checked + .toggle-slider {
1657
- background-color: ${r};
1638
+ background-color: ${h};
1658
1639
  }
1659
1640
  .toggle-switch .toggle-slider {
1660
- background-color: ${h};
1641
+ background-color: ${r};
1661
1642
  }
1662
1643
  `, document.head.appendChild(l);
1663
1644
  }
@@ -1667,13 +1648,13 @@ class yt extends p {
1667
1648
  this.detectChangeCallback = t;
1668
1649
  }
1669
1650
  }
1670
- const et = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1651
+ const Z = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1671
1652
  <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"/>
1672
1653
  </svg>`;
1673
- class kt extends p {
1654
+ class Ct extends p {
1674
1655
  // Store mobile value
1675
1656
  constructor(t = {}) {
1676
- t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? et, 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);
1657
+ t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Z, t.suffix = t.suffix ?? "px", t.minValue = t.minValue ?? 0, super(t), this.inputType = "number", this.inputValues = {}, this.mobileValue = t.mobile, this.value = this.validateValue(t.default ?? 0), t.rowGap && (this.inputValues.row = this.value), t.columnGap && (this.inputValues.column = this.value);
1677
1658
  }
1678
1659
  draw() {
1679
1660
  const t = document.createElement("div");
@@ -1684,27 +1665,27 @@ class kt extends p {
1684
1665
  i.className = "setting-label", i.setAttribute("for", this.id + "-input");
1685
1666
  const s = document.createElement("span");
1686
1667
  if (s.textContent = this.props.title ?? "Gap", i.appendChild(s), this.props.icon) {
1687
- const o = document.createElement("span");
1688
- o.className = "setting-icon", o.innerHTML = this.props.icon, i.insertBefore(o, s);
1668
+ const a = document.createElement("span");
1669
+ a.className = "setting-icon", a.innerHTML = this.props.icon, i.insertBefore(a, s);
1689
1670
  }
1690
1671
  const n = document.createElement("div");
1691
1672
  n.className = `setting-input-wrapper ${this.props.wrapperClassName || ""}`, n.classList.add("gap-setting-wrapper");
1692
- const a = document.createElement("div");
1693
- return a.className = "gap-inputs-container", this.props.rowGap && a.appendChild(this.createGapInput("row", "Row")), this.props.columnGap && a.appendChild(this.createGapInput("column", "Col")), n.appendChild(a), e.appendChild(i), e.appendChild(n), t.appendChild(e), t;
1673
+ const o = document.createElement("div");
1674
+ return o.className = "gap-inputs-container", this.props.rowGap && o.appendChild(this.createGapInput("row", "Row")), this.props.columnGap && o.appendChild(this.createGapInput("column", "Col")), n.appendChild(o), e.appendChild(i), e.appendChild(n), t.appendChild(e), t;
1694
1675
  }
1695
1676
  createGapInput(t, e) {
1696
1677
  const i = document.createElement("div");
1697
1678
  i.className = "gap-input-wrapper";
1698
1679
  const s = document.createElement("input");
1699
1680
  if (s.type = "number", s.className = `gap-input gap-${t}-input ${this.props.inputClassName || ""}`, s.id = `${this.id}-${t}-input`, s.min = String(this.props.minValue ?? 0), this.props.maxValue !== void 0 && (s.max = String(this.props.maxValue)), s.step = String(this.props.step ?? 1), s.value = String(this.inputValues[t] ?? this.value), s.title = e, s.addEventListener("input", (n) => {
1700
- const a = n.target;
1701
- let o = parseFloat(a.value);
1702
- o = this.validateValue(o), String(o) !== a.value && (a.value = String(o)), this.inputValues[t] = o, this.setValue(o);
1681
+ const o = n.target;
1682
+ let a = parseFloat(o.value);
1683
+ a = this.validateValue(a), String(a) !== o.value && (o.value = String(a)), this.inputValues[t] = a, this.setValue(a);
1703
1684
  }), s.addEventListener("blur", (n) => {
1704
- var l, r;
1705
- const a = n.target;
1706
- let o = parseFloat(a.value);
1707
- o = this.validateValue(o), String(o) !== a.value && (a.value = String(o), this.inputValues[t] = o, this.setValue(o)), (r = (l = this.props).onBlur) == null || r.call(l);
1685
+ var l, h;
1686
+ const o = n.target;
1687
+ let a = parseFloat(o.value);
1688
+ a = this.validateValue(a), String(a) !== o.value && (o.value = String(a), this.inputValues[t] = a, this.setValue(a)), (h = (l = this.props).onBlur) == null || h.call(l);
1708
1689
  }), i.appendChild(s), this.props.suffix && this.props.suffix !== "none") {
1709
1690
  const n = document.createElement("span");
1710
1691
  n.className = "gap-suffix", n.textContent = this.props.suffix, i.appendChild(n), s.style.paddingRight = "30px";
@@ -1724,53 +1705,53 @@ class kt extends p {
1724
1705
  this.mobileValue = t, t !== void 0 && this.setValue(t);
1725
1706
  }
1726
1707
  }
1727
- const it = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1708
+ const K = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1728
1709
  <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"/>
1729
1710
  </svg>`;
1730
- class Mt extends v {
1711
+ class wt extends v {
1731
1712
  constructor(t = {}) {
1732
1713
  super({
1733
1714
  ...t,
1734
1715
  minValue: t.minValue ?? 0,
1735
1716
  maxValue: t.maxValue ?? 1e3,
1736
- icon: t.icon || it,
1717
+ icon: t.icon || K,
1737
1718
  title: t.title || "Margin Bottom",
1738
1719
  default: t.default ?? 20,
1739
1720
  wrapperClassName: "margin-bottom-wrapper " + (t.wrapperClassName || "")
1740
1721
  }), this.inputType = "number";
1741
1722
  }
1742
1723
  }
1743
- const st = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1724
+ const X = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1744
1725
  <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"
1745
1726
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1746
1727
  </svg>`;
1747
- class Vt extends v {
1728
+ class Et extends v {
1748
1729
  constructor(t = {}) {
1749
1730
  super({
1750
1731
  ...t,
1751
1732
  minValue: t.minValue ?? 0,
1752
1733
  maxValue: t.maxValue ?? 1e3,
1753
- icon: t.icon || st,
1734
+ icon: t.icon || X,
1754
1735
  title: t.title || "Margin Top",
1755
1736
  default: t.default ?? 20,
1756
1737
  wrapperClassName: "margin-top-wrapper " + (t.wrapperClassName || "")
1757
1738
  }), this.inputType = "number";
1758
1739
  }
1759
1740
  }
1760
- const nt = `
1741
+ const Q = `
1761
1742
  <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">
1762
1743
  <polyline points="3,6 5,6 21,6"></polyline>
1763
1744
  <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>
1764
1745
  <line x1="10" y1="11" x2="10" y2="17"></line>
1765
1746
  <line x1="14" y1="11" x2="14" y2="17"></line>
1766
1747
  </svg>
1767
- `, at = `
1748
+ `, Y = `
1768
1749
  <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">
1769
1750
  <line x1="12" y1="5" x2="12" y2="19"></line>
1770
1751
  <line x1="5" y1="12" x2="19" y2="12"></line>
1771
1752
  </svg>
1772
1753
  `;
1773
- class Nt extends p {
1754
+ class bt extends p {
1774
1755
  constructor(t = {}) {
1775
1756
  super(t), this.inputType = {}, this.container = null, this.languagesContainer = null, this.addLanguageSelect = null, this.addButton = null, this.defaultLanguages = [
1776
1757
  { code: "en", name: "English" },
@@ -1812,15 +1793,15 @@ class Nt extends p {
1812
1793
  s.classList.add("language-label"), s.textContent = t.toUpperCase();
1813
1794
  const n = document.createElement("div");
1814
1795
  n.classList.add("language-input-group");
1815
- const a = document.createElement("input");
1816
- a.type = "text", a.classList.add("language-input"), a.value = e || "", a.placeholder = this.props.placeholder || "Enter text...", a.addEventListener("input", (l) => {
1817
- const r = l.target;
1818
- this.updateLanguageValue(t, r.value);
1796
+ const o = document.createElement("input");
1797
+ o.type = "text", o.classList.add("language-input"), o.value = e || "", o.placeholder = this.props.placeholder || "Enter text...", o.addEventListener("input", (l) => {
1798
+ const h = l.target;
1799
+ this.updateLanguageValue(t, h.value);
1819
1800
  });
1820
- const o = document.createElement("button");
1821
- return o.type = "button", o.classList.add("delete-language-btn"), o.innerHTML = nt, o.title = `Delete ${t.toUpperCase()}`, o.addEventListener("click", () => {
1801
+ const a = document.createElement("button");
1802
+ return a.type = "button", a.classList.add("delete-language-btn"), a.innerHTML = Q, a.title = `Delete ${t.toUpperCase()}`, a.addEventListener("click", () => {
1822
1803
  this.removeLanguage(t);
1823
- }), n.appendChild(a), n.appendChild(o), i.appendChild(s), i.appendChild(n), i;
1804
+ }), n.appendChild(o), n.appendChild(a), i.appendChild(s), i.appendChild(n), i;
1824
1805
  }
1825
1806
  updateLanguageValue(t, e) {
1826
1807
  this.value || (this.value = {}), this.value[t] = e, this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value);
@@ -1851,9 +1832,9 @@ class Nt extends p {
1851
1832
  const s = document.createElement("select");
1852
1833
  s.classList.add("add-language-select"), this.addLanguageSelect = s;
1853
1834
  const n = document.createElement("button");
1854
- return n.type = "button", n.classList.add("add-language-btn"), n.innerHTML = `${at} Add`, this.addButton = n, n.addEventListener("click", () => {
1855
- const a = s.value;
1856
- a && this.addLanguage(a);
1835
+ return n.type = "button", n.classList.add("add-language-btn"), n.innerHTML = `${Y} Add`, this.addButton = n, n.addEventListener("click", () => {
1836
+ const o = s.value;
1837
+ o && this.addLanguage(o);
1857
1838
  }), i.appendChild(s), i.appendChild(n), t.appendChild(e), t.appendChild(i), t;
1858
1839
  }
1859
1840
  draw() {
@@ -1865,9 +1846,9 @@ class Nt extends p {
1865
1846
  const e = document.createElement("div");
1866
1847
  e.classList.add("multi-language-content");
1867
1848
  const i = document.createElement("div");
1868
- i.classList.add("languages-container"), this.languagesContainer = i, this.value && Object.entries(this.value).forEach(([n, a]) => {
1869
- const o = this.createLanguageRow(n, a);
1870
- i.appendChild(o);
1849
+ i.classList.add("languages-container"), this.languagesContainer = i, this.value && Object.entries(this.value).forEach(([n, o]) => {
1850
+ const a = this.createLanguageRow(n, o);
1851
+ i.appendChild(a);
1871
1852
  }), e.appendChild(i);
1872
1853
  const s = this.createAddLanguageSection();
1873
1854
  return e.appendChild(s), t.appendChild(e), this.updateAddLanguageSelect(), this.container = t, t;
@@ -1879,18 +1860,18 @@ class Nt extends p {
1879
1860
  }), this.updateAddLanguageSelect());
1880
1861
  }
1881
1862
  }
1882
- class St extends p {
1863
+ class Lt extends p {
1883
1864
  constructor(t = {}) {
1884
1865
  super(t), this.inputType = "select";
1885
1866
  const e = [
1886
1867
  { name: "None", value: "none" },
1887
- { name: "Fade", value: "fade 1s ease forwards" },
1888
- { name: "Slide", value: "slide 0.8s ease forwards" },
1889
- { name: "Zoom", value: "zoom 0.6s ease forwards" },
1890
- { name: "Bounce", value: "bounce 1.5s ease infinite" },
1891
- { name: "Pulse", value: "pulse 1.2s ease infinite" }
1868
+ { name: "Fade", value: "fade 1.5s ease-in-out infinite" },
1869
+ { name: "Slide", value: "slide 1.5s ease-in-out infinite" },
1870
+ { name: "Zoom", value: "zoom 1.5s ease-in-out infinite" },
1871
+ { name: "Bounce", value: "bounce 1.5s ease-in-out infinite" },
1872
+ { name: "Pulse", value: "pulse 1.5s ease-in-out infinite" }
1892
1873
  ];
1893
- this.selectSetting = new M({
1874
+ this.selectSetting = new y({
1894
1875
  title: this.title || "Animation",
1895
1876
  options: e,
1896
1877
  default: this.props.default || "none"
@@ -1906,16 +1887,16 @@ class St extends p {
1906
1887
  this.selectSetting.destroy(), super.destroy();
1907
1888
  }
1908
1889
  }
1909
- const ot = `
1890
+ const tt = `
1910
1891
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1911
1892
  <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"/>
1912
1893
  </svg>
1913
- `, lt = `
1894
+ `, et = `
1914
1895
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1915
1896
  <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"/>
1916
1897
  </svg>
1917
1898
  `;
1918
- class It extends f {
1899
+ class xt extends f {
1919
1900
  constructor(t) {
1920
1901
  super({
1921
1902
  title: "Border",
@@ -1924,7 +1905,7 @@ class It extends f {
1924
1905
  settings: {
1925
1906
  size: new v({
1926
1907
  title: "Size",
1927
- icon: lt,
1908
+ icon: et,
1928
1909
  default: (t == null ? void 0 : t.size) ?? 0,
1929
1910
  suffix: "px"
1930
1911
  }),
@@ -1933,7 +1914,7 @@ class It extends f {
1933
1914
  }),
1934
1915
  radius: new v({
1935
1916
  title: "Radius",
1936
- icon: ot,
1917
+ icon: tt,
1937
1918
  default: (t == null ? void 0 : t.radius) ?? 12,
1938
1919
  suffix: "px"
1939
1920
  })
@@ -1952,20 +1933,20 @@ class It extends f {
1952
1933
  `;
1953
1934
  }
1954
1935
  }
1955
- const rt = `
1936
+ const it = `
1956
1937
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
1957
1938
  <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"/>
1958
1939
  </svg>
1959
- `, ht = `
1940
+ `, st = `
1960
1941
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1961
1942
  <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"/>
1962
1943
  </svg>
1963
- `, ct = `
1944
+ `, nt = `
1964
1945
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1965
1946
  <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"/>
1966
1947
  </svg>
1967
1948
  `;
1968
- class Ot extends f {
1949
+ class yt extends f {
1969
1950
  constructor(t = {}) {
1970
1951
  const { showAlign: e = t.showAlign ?? !0, ...i } = t;
1971
1952
  super({
@@ -1977,9 +1958,9 @@ class Ot extends f {
1977
1958
  color: new C({
1978
1959
  default: i.colorDefault ?? "0, 0, 30"
1979
1960
  }),
1980
- fontFamily: new M({
1961
+ fontFamily: new y({
1981
1962
  title: "Font",
1982
- icon: rt,
1963
+ icon: it,
1983
1964
  default: i.fontFamilyDefault ?? "Satoshi",
1984
1965
  options: i.fontFamilyOptions ?? [
1985
1966
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -1990,9 +1971,9 @@ class Ot extends f {
1990
1971
  getOptions: i.fontFamilyGetOptions,
1991
1972
  getOptionsAsync: i.fontFamilyGetOptionsAsync
1992
1973
  }),
1993
- fontWeight: new M({
1974
+ fontWeight: new y({
1994
1975
  title: "Weight",
1995
- icon: ht,
1976
+ icon: st,
1996
1977
  default: i.fontWeightDefault ?? "400",
1997
1978
  options: i.fontWeightOptions ?? [
1998
1979
  { name: "Regular", value: "400" },
@@ -2004,7 +1985,7 @@ class Ot extends f {
2004
1985
  }),
2005
1986
  fontSize: new v({
2006
1987
  title: "Size",
2007
- icon: ct,
1988
+ icon: nt,
2008
1989
  default: i.fontSizeDefault ?? 12,
2009
1990
  suffix: "px",
2010
1991
  mobile: i.fontSizeMobileDefault
@@ -2012,7 +1993,7 @@ class Ot extends f {
2012
1993
  };
2013
1994
  return e ? {
2014
1995
  ...s,
2015
- align: new _({
1996
+ align: new j({
2016
1997
  title: "Align",
2017
1998
  default: i.alignDefault ?? "center"
2018
1999
  })
@@ -2021,8 +2002,8 @@ class Ot extends f {
2021
2002
  });
2022
2003
  }
2023
2004
  getCssCode() {
2024
- var a;
2025
- const t = this.settings.color.value ?? "#000000", e = this.settings.fontFamily.value ?? "Satoshi", i = this.settings.fontWeight.value ?? "bold", s = this.settings.fontSize.value ?? 12, n = ((a = this.settings.align) == null ? void 0 : a.value) ?? "left";
2005
+ var o;
2006
+ const t = this.settings.color.value ?? "#000000", e = this.settings.fontFamily.value ?? "Satoshi", i = this.settings.fontWeight.value ?? "bold", s = this.settings.fontSize.value ?? 12, n = ((o = this.settings.align) == null ? void 0 : o.value) ?? "left";
2026
2007
  return `
2027
2008
  color: ${t};
2028
2009
  font-family: ${e};
@@ -2032,7 +2013,7 @@ class Ot extends f {
2032
2013
  `;
2033
2014
  }
2034
2015
  }
2035
- class x extends p {
2016
+ class E extends p {
2036
2017
  constructor(t) {
2037
2018
  super({
2038
2019
  ...t,
@@ -2040,11 +2021,11 @@ class x extends p {
2040
2021
  }), this.inputType = "number", this.value = t.default !== void 0 ? t.default : "auto";
2041
2022
  }
2042
2023
  draw() {
2043
- const t = this.value === "auto" ? "text" : "number", e = (o) => {
2044
- this.value !== "auto" && (this.props.minValue !== void 0 && (o.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (o.max = String(this.props.maxValue)), this.props.className && o.classList.add(this.props.className), o.addEventListener("input", () => {
2045
- const l = this.props.minValue ?? Number.MIN_SAFE_INTEGER, r = this.props.maxValue ?? Number.MAX_SAFE_INTEGER;
2046
- let h = Number(o.value);
2047
- h < l && (h = l), h > r && (h = r), o.value = String(h);
2024
+ const t = this.value === "auto" ? "text" : "number", e = (a) => {
2025
+ this.value !== "auto" && (this.props.minValue !== void 0 && (a.min = String(this.props.minValue)), this.props.maxValue !== void 0 && (a.max = String(this.props.maxValue)), this.props.className && a.classList.add(this.props.className), a.addEventListener("input", () => {
2026
+ const l = this.props.minValue ?? Number.MIN_SAFE_INTEGER, h = this.props.maxValue ?? Number.MAX_SAFE_INTEGER;
2027
+ let r = Number(a.value);
2028
+ r < l && (r = l), r > h && (r = h), a.value = String(r);
2048
2029
  }));
2049
2030
  }, i = this.createInput({
2050
2031
  value: this.value,
@@ -2065,47 +2046,47 @@ class x extends p {
2065
2046
  s && (s.style.paddingRight = "35px");
2066
2047
  const n = document.createElement("span");
2067
2048
  n.className = "suffix-label", n.textContent = this.props.suffix, i.appendChild(n);
2068
- const a = i.querySelector("input");
2069
- return a && (a.oninput = (o) => {
2070
- const l = o.target.value.trim();
2049
+ const o = i.querySelector("input");
2050
+ return o && (o.oninput = (a) => {
2051
+ const l = a.target.value.trim();
2071
2052
  if (l.toLowerCase() === "auto")
2072
2053
  this.value = "auto";
2073
2054
  else {
2074
- const r = Number(l);
2075
- isNaN(r) || (this.value = r);
2055
+ const h = Number(l);
2056
+ isNaN(h) || (this.value = h);
2076
2057
  }
2077
2058
  this.onChange && this.onChange(this.value);
2078
2059
  }), i;
2079
2060
  }
2080
2061
  }
2081
- class Ht extends f {
2062
+ class Mt extends f {
2082
2063
  constructor(t) {
2083
2064
  super({
2084
2065
  title: "Margins",
2085
2066
  collapsed: t == null ? void 0 : t.collapsed,
2086
2067
  hideCondition: t == null ? void 0 : t.hideCondition,
2087
2068
  settings: {
2088
- marginTop: new x({
2069
+ marginTop: new E({
2089
2070
  title: "Top",
2090
- icon: ut,
2071
+ icon: at,
2091
2072
  suffix: "px",
2092
2073
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
2093
2074
  }),
2094
- marginRight: new x({
2075
+ marginRight: new E({
2095
2076
  title: "Right",
2096
- icon: dt,
2077
+ icon: ot,
2097
2078
  suffix: "px",
2098
2079
  default: (t == null ? void 0 : t.marginRight) ?? 0
2099
2080
  }),
2100
- marginBottom: new x({
2081
+ marginBottom: new E({
2101
2082
  title: "Bottom",
2102
- icon: pt,
2083
+ icon: lt,
2103
2084
  suffix: "px",
2104
2085
  default: (t == null ? void 0 : t.marginBottom) ?? 0
2105
2086
  }),
2106
- marginLeft: new x({
2087
+ marginLeft: new E({
2107
2088
  title: "Left",
2108
- icon: gt,
2089
+ icon: rt,
2109
2090
  suffix: "px",
2110
2091
  default: (t == null ? void 0 : t.marginLeft) ?? 0
2111
2092
  })
@@ -2122,16 +2103,16 @@ class Ht extends f {
2122
2103
  `;
2123
2104
  }
2124
2105
  }
2125
- const ut = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2106
+ const at = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2126
2107
  <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"/>
2127
- </svg>`, dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2108
+ </svg>`, ot = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2128
2109
  <path d="M5.625 2.75H5.6325M5.625 9.5H5.6325M5.625 16.25H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M12.375 16.25H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 16.25H9.0075M9 12.875H9.0075M9 6.125H9.0075M2.25 2.75H2.2575M2.25 9.5H2.2575M2.25 16.25H2.2575M2.25 12.875H2.2575M2.25 6.125H2.2575M15.75 16.25V2.75" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
2129
- </svg>`, pt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2110
+ </svg>`, lt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2130
2111
  <path d="M2.25 2.75H2.2575M2.25 9.5H2.2575M2.25 12.875H2.2575M2.25 6.125H2.2575M5.625 2.75H5.6325M5.625 9.5H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 2.75H15.7575M15.75 9.5H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M15.75 16.25H2.25" stroke="#667085" stroke-linecap="round" stroke-linejoin="round"/>
2131
- </svg>`, gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2112
+ </svg>`, rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2132
2113
  <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"/>
2133
2114
  </svg>`;
2134
- class Tt extends f {
2115
+ class kt extends f {
2135
2116
  /**
2136
2117
  * Constructs a new BackgroundSettingSet.
2137
2118
  *
@@ -2161,11 +2142,11 @@ class Tt extends f {
2161
2142
  collapsed: t == null ? void 0 : t.collapsed,
2162
2143
  hideCondition: t == null ? void 0 : t.hideCondition,
2163
2144
  settings: {
2164
- backgroundImage: new X({
2145
+ backgroundImage: new _({
2165
2146
  ...t == null ? void 0 : t.uploadProps,
2166
2147
  default: (t == null ? void 0 : t.backgroundImage) ?? ""
2167
2148
  }),
2168
- opacity: new D({
2149
+ opacity: new F({
2169
2150
  default: (t == null ? void 0 : t.opacity) ?? 100
2170
2151
  }),
2171
2152
  backgroundColor: new C({
@@ -2180,10 +2161,10 @@ class Tt extends f {
2180
2161
  draw() {
2181
2162
  const t = super.draw(), e = t.querySelector(".setting-group-content");
2182
2163
  if (!e) return t;
2183
- const i = Array.from(e.children), [s, n, a] = i;
2164
+ const i = Array.from(e.children), [s, n, o] = i;
2184
2165
  e.innerHTML = "", e.appendChild(s), e.appendChild(n);
2185
- const o = document.createElement("div");
2186
- return o.className = "bgset-or-label", o.textContent = "OR", e.appendChild(o), e.appendChild(a), t;
2166
+ const a = document.createElement("div");
2167
+ return a.className = "bgset-or-label", a.textContent = "OR", e.appendChild(a), e.appendChild(o), t;
2187
2168
  }
2188
2169
  /**
2189
2170
  * Helper method to generate CSS based on the current settings.
@@ -2200,44 +2181,44 @@ class Tt extends f {
2200
2181
  `;
2201
2182
  }
2202
2183
  }
2203
- function Bt(c) {
2184
+ function Vt(c) {
2204
2185
  return c instanceof f;
2205
2186
  }
2206
- function At(c) {
2187
+ function Nt(c) {
2207
2188
  return c instanceof p;
2208
2189
  }
2209
2190
  export {
2210
- _ as AlignSetting,
2211
- St as AnimationSetting,
2212
- Tt as BackgroundSettingSet,
2213
- It as BorderSettingSet,
2214
- wt as ButtonSetting,
2191
+ j as AlignSetting,
2192
+ Lt as AnimationSetting,
2193
+ kt as BackgroundSettingSet,
2194
+ xt as BorderSettingSet,
2195
+ dt as ButtonSetting,
2215
2196
  m as ColorSetting,
2216
2197
  C as ColorWithOpacitySetting,
2217
- Et as DimensionSetting,
2218
- kt as GapSetting,
2219
- Ot as HeaderTypographySettingSet,
2220
- bt as HeightSetting,
2221
- Ct as HtmlSetting,
2222
- Mt as MarginBottomSetting,
2223
- Ht as MarginSettingGroup,
2224
- Vt as MarginTopSetting,
2225
- Nt as MultiLanguageSetting,
2198
+ pt as DimensionSetting,
2199
+ Ct as GapSetting,
2200
+ yt as HeaderTypographySettingSet,
2201
+ gt as HeightSetting,
2202
+ ut as HtmlSetting,
2203
+ wt as MarginBottomSetting,
2204
+ Mt as MarginSettingGroup,
2205
+ Et as MarginTopSetting,
2206
+ bt as MultiLanguageSetting,
2226
2207
  v as NumberSetting,
2227
- D as OpacitySetting,
2228
- Lt as SelectApiSettings,
2229
- M as SelectSetting,
2208
+ F as OpacitySetting,
2209
+ ft as SelectApiSettings,
2210
+ y as SelectSetting,
2230
2211
  p as Setting,
2231
2212
  f as SettingGroup,
2232
- j as StringSetting,
2233
- ft as TabSettingGroup,
2234
- ft as TabsSettingGroup,
2235
- yt as Toggle,
2236
- X as UploadSetting,
2237
- xt as WidthSetting,
2238
- vt as asSettingGroupWithSettings,
2239
- z as createSettingGroup,
2240
- At as isSetting,
2241
- Bt as isSettingGroup,
2242
- b as iterateSettings
2213
+ A as StringSetting,
2214
+ ht as TabSettingGroup,
2215
+ ht as TabsSettingGroup,
2216
+ vt as Toggle,
2217
+ _ as UploadSetting,
2218
+ mt as WidthSetting,
2219
+ ct as asSettingGroupWithSettings,
2220
+ T as createSettingGroup,
2221
+ Nt as isSetting,
2222
+ Vt as isSettingGroup,
2223
+ w as iterateSettings
2243
2224
  };