builder-settings-types 0.0.355 → 0.0.357

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.
@@ -142,29 +142,29 @@ function At(c) {
142
142
  return "";
143
143
  }
144
144
  }
145
- const S = class S {
145
+ const I = class I {
146
146
  constructor(t = {}) {
147
147
  this.props = t, this.dataPropsPath = "", this.id = t.id || Mt(), this.value = this.props.default, this.desktop = this.props.default, this.title = t.title || "", this.includeGetJson = t.includeGetJson !== void 0 ? t.includeGetJson : !0;
148
148
  }
149
149
  static SetUploadUrl(t) {
150
- globalThis.DefaultUploadUrl = t, S.DefaultUploadUrl = t;
150
+ globalThis.DefaultUploadUrl = t, I.DefaultUploadUrl = t;
151
151
  }
152
152
  static SetDefaultLanguage(t) {
153
- globalThis.DefaultLanguage = t, S.DefaultLanguage = t;
153
+ globalThis.DefaultLanguage = t, I.DefaultLanguage = t;
154
154
  }
155
155
  static CurrentLanguage(t) {
156
- return t !== void 0 && (S.currentLanguage = t, S.currentLanguageExplicitlySet = !0, S.DefaultLanguage || S.SetDefaultLanguage(t), S.languageChangeCallbacks.forEach((e) => e(t))), S.currentLanguage || S.DefaultLanguage;
156
+ return t !== void 0 && (I.currentLanguage = t, I.currentLanguageExplicitlySet = !0, I.DefaultLanguage || I.SetDefaultLanguage(t), I.languageChangeCallbacks.forEach((e) => e(t))), I.currentLanguage || I.DefaultLanguage;
157
157
  }
158
158
  static HasExplicitCurrentLanguage() {
159
- return S.currentLanguageExplicitlySet;
159
+ return I.currentLanguageExplicitlySet;
160
160
  }
161
161
  static onLanguageChange(t) {
162
- return S.languageChangeCallbacks.add(t), () => {
163
- S.languageChangeCallbacks.delete(t);
162
+ return I.languageChangeCallbacks.add(t), () => {
163
+ I.languageChangeCallbacks.delete(t);
164
164
  };
165
165
  }
166
166
  static SetGlobalVariables(t) {
167
- S.GlobalVariables = { ...S.GlobalVariables, ...t };
167
+ I.GlobalVariables = { ...I.GlobalVariables, ...t };
168
168
  }
169
169
  destroy() {
170
170
  throw new Error("Method not implemented.");
@@ -247,21 +247,21 @@ const S = class S {
247
247
  return i.className = "input-icon " + (e || ""), i.innerHTML = t, i;
248
248
  }
249
249
  };
250
- S.currentLanguageExplicitlySet = !1, S.languageChangeCallbacks = /* @__PURE__ */ new Set(), S.GlobalVariables = {
250
+ I.currentLanguageExplicitlySet = !1, I.languageChangeCallbacks = /* @__PURE__ */ new Set(), I.GlobalVariables = {
251
251
  primary: "#1B1958",
252
252
  secondary: "#0D0938",
253
253
  tertiary: "#2A1560",
254
254
  accent: "#189541",
255
255
  "text-dark": "#00141E",
256
256
  "text-light": "#FFFFFF"
257
- }, S.GlobalVariableGroups = [
257
+ }, I.GlobalVariableGroups = [
258
258
  {
259
259
  title: "Global Colors",
260
260
  keys: ["primary", "secondary", "tertiary", "accent"]
261
261
  },
262
262
  { title: "Text Color", keys: ["text-dark", "text-light"] }
263
263
  ];
264
- let w = S;
264
+ let w = I;
265
265
  function R(c) {
266
266
  return c instanceof w;
267
267
  }
@@ -287,7 +287,7 @@ const dt = (c, t, e) => {
287
287
  i = !1, document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", h), document.body.style.userSelect = "";
288
288
  };
289
289
  c.addEventListener("mousedown", l);
290
- }, z = (c) => {
290
+ }, U = (c) => {
291
291
  if (!c) return null;
292
292
  let t = c.trim();
293
293
  return !t.startsWith("#") || (t = t.slice(1), t.length === 3 && (t = t.split("").map((e) => e + e).join("")), !/^[0-9a-fA-F]{6}$/.test(t)) ? null : `#${t.toUpperCase()}`;
@@ -312,7 +312,7 @@ const dt = (c, t, e) => {
312
312
  Math.round((l + o) * 255),
313
313
  Math.round((r + o) * 255)
314
314
  );
315
- }, St = (c, t, e) => {
315
+ }, It = (c, t, e) => {
316
316
  const i = e * (1 - t / 2), s = i === 0 || i === 1 ? 0 : (e - i) / Math.min(i, 1 - i);
317
317
  return { hue: c, sat: s, lightness: i };
318
318
  }, rt = (c, t, e) => {
@@ -355,7 +355,7 @@ const dt = (c, t, e) => {
355
355
  return `rgba(${n}, ${o}, ${a}, ${e})`;
356
356
  }
357
357
  }
358
- const i = z(c);
358
+ const i = U(c);
359
359
  if (i) {
360
360
  const { r: s, g: n, b: o } = N(i);
361
361
  return `rgba(${s}, ${n}, ${o}, ${e})`;
@@ -385,14 +385,14 @@ const dt = (c, t, e) => {
385
385
  "teal",
386
386
  "fuchsia",
387
387
  "transparent"
388
- ].includes(c.toLowerCase()), It = (c) => [
388
+ ].includes(c.toLowerCase()), St = (c) => [
389
389
  /^#[0-9a-fA-F]{3,8}$/,
390
390
  /^rgba?\s*\([^)]+\)$/,
391
391
  /^hsla?\s*\([^)]+\)$/,
392
392
  /^[a-zA-Z]+$/
393
393
  ].some((e) => e.test(c.trim())), Rt = (c) => {
394
394
  if (typeof document > "u")
395
- return It(c) || !!z(c);
395
+ return St(c) || !!U(c);
396
396
  const t = document.createElement("div");
397
397
  return t.style.color = c, t.style.color !== "";
398
398
  }, Nt = (c) => {
@@ -431,7 +431,7 @@ const dt = (c, t, e) => {
431
431
  opacity: Math.round(l * 100)
432
432
  };
433
433
  }
434
- return { color: z(t) || t, position: 0, opacity: 100 };
434
+ return { color: U(t) || t, position: 0, opacity: 100 };
435
435
  }, ft = (c) => {
436
436
  const t = [];
437
437
  let e = "", i = 0;
@@ -474,7 +474,7 @@ const dt = (c, t, e) => {
474
474
  if (!s) return;
475
475
  let n = "", o = 0;
476
476
  const a = s.match(/^(.+?)\s+(\d+(?:\.\d+)?)%?\s*$/);
477
- a && It(a[1].trim()) ? (n = a[1].trim(), o = parseFloat(a[2])) : (n = s, o = c.length === 1 ? 0 : i / (c.length - 1) * 100);
477
+ a && St(a[1].trim()) ? (n = a[1].trim(), o = parseFloat(a[2])) : (n = s, o = c.length === 1 ? 0 : i / (c.length - 1) * 100);
478
478
  const l = Nt(n);
479
479
  l.position = Math.max(0, Math.min(100, Math.round(o))), t.push(l);
480
480
  }), t;
@@ -489,7 +489,7 @@ const dt = (c, t, e) => {
489
489
  opacity: e.opacity === void 0 || Number.isNaN(e.opacity) ? 100 : e.opacity
490
490
  }))
491
491
  };
492
- }, T = (c) => {
492
+ }, V = (c) => {
493
493
  const t = c.replace(/;$/, "").trim();
494
494
  if (Rt(t)) {
495
495
  const s = Nt(t);
@@ -522,7 +522,7 @@ const dt = (c, t, e) => {
522
522
  return o.length ? D({ type: "radial", angle: 0, stops: o }) : null;
523
523
  }
524
524
  return null;
525
- }, P = (c) => {
525
+ }, T = (c) => {
526
526
  if (c.type === "solid") {
527
527
  const e = c.stops[0], i = e.color;
528
528
  if (i.startsWith("var(--"))
@@ -563,8 +563,8 @@ const dt = (c, t, e) => {
563
563
  static normalizeList(t) {
564
564
  const e = /* @__PURE__ */ new Set(), i = [];
565
565
  return t.forEach((s) => {
566
- let n = z(s);
567
- n || T(s) && (n = s), n && (e.has(n) || (e.add(n), i.push(n)));
566
+ let n = U(s);
567
+ n || V(s) && (n = s), n && (e.has(n) || (e.add(n), i.push(n)));
568
568
  }), i.slice(0, this.MAX_COLORS);
569
569
  }
570
570
  static ensureLoaded() {
@@ -609,11 +609,11 @@ const dt = (c, t, e) => {
609
609
  }
610
610
  static addColor(t, e) {
611
611
  if (!t) return;
612
- let i = z(t), s = "solid";
612
+ let i = U(t), s = "solid";
613
613
  if (i)
614
614
  s = "solid";
615
615
  else {
616
- const l = T(t);
616
+ const l = V(t);
617
617
  l && (i = t, s = l.type === "solid" ? "solid" : "gradient");
618
618
  }
619
619
  if (!i) return;
@@ -622,7 +622,7 @@ const dt = (c, t, e) => {
622
622
  }
623
623
  };
624
624
  X.STORAGE_KEY = "settingsLib_recentColors", X.MAX_COLORS = 18, X.colors = null;
625
- let W = X;
625
+ let z = X;
626
626
  const pt = (c, t) => {
627
627
  const e = document.createElement("div");
628
628
  e.className = "color-picker-recent-section";
@@ -641,7 +641,7 @@ const pt = (c, t) => {
641
641
  l.className = "color-picker-recent-placeholder", l.textContent = "No recent colors yet", e.appendChild(i), e.appendChild(a), e.appendChild(l);
642
642
  const r = () => {
643
643
  n(), a.innerHTML = "";
644
- const h = W.getColors(t);
644
+ const h = z.getColors(t);
645
645
  if (h.length === 0) {
646
646
  a.style.display = "none", l.style.display = "block";
647
647
  return;
@@ -652,7 +652,7 @@ const pt = (c, t) => {
652
652
  const u = Ut(d);
653
653
  if (p.title = u, p.setAttribute("aria-label", `Use color: ${u}`), d.includes("gradient(")) {
654
654
  p.style.backgroundImage = d, p.style.backgroundColor = "transparent";
655
- const m = T(d);
655
+ const m = V(d);
656
656
  m && m.stops && m.stops.length > 0 && (p.style.borderColor = m.stops[0].color);
657
657
  } else
658
658
  p.style.backgroundColor = d, p.style.borderColor = d;
@@ -671,20 +671,20 @@ const pt = (c, t) => {
671
671
  };
672
672
  return r(), { container: e, refresh: r };
673
673
  }, Ut = (c) => {
674
- const t = T(c);
674
+ const t = V(c);
675
675
  if (t)
676
676
  return et(t);
677
- const e = z(c);
677
+ const e = U(c);
678
678
  if (e) {
679
679
  const i = N(e);
680
680
  return `${e} (RGB: ${i.r}, ${i.g}, ${i.b})`;
681
681
  }
682
682
  return c;
683
- }, Pt = `<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
683
+ }, Tt = `<svg width="13" height="13" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg">
684
684
  <path fill-rule="evenodd" clip-rule="evenodd"
685
685
  d="M6.12347 4.96653L1.41158 0.254304C1.25449 0.102568 1.04409 0.0186071 0.825694 0.0205049C0.607302 0.0224037 0.398393 0.110007 0.24396 0.26445C0.0895282 0.418893 0.0019303 0.627818 3.24698e-05 0.846225C-0.00186536 1.06463 0.0820894 1.27505 0.233815 1.43215L4.9457 6.14438L0.233814 10.8566C0.0820886 11.0137 -0.00186625 11.2241 3.15434e-05 11.4425C0.00192934 11.6609 0.0895272 11.8699 0.243959 12.0243C0.398392 12.1787 0.607301 12.2663 0.825693 12.2682C1.04408 12.2701 1.25449 12.1862 1.41158 12.0344L6.12347 7.32222L10.8354 12.0344C10.9932 12.1824 11.2023 12.2632 11.4186 12.2597C11.6349 12.2562 11.8414 12.1687 11.9943 12.0156C12.1472 11.8626 12.2346 11.6561 12.2379 11.4398C12.2413 11.2234 12.1604 11.0143 12.0123 10.8566L7.30123 6.14438L12.0131 1.43215C12.0927 1.35531 12.1561 1.2634 12.1998 1.16177C12.2434 1.06014 12.2664 0.950833 12.2674 0.84023C12.2683 0.729626 12.2473 0.61994 12.2054 0.517568C12.1635 0.415196 12.1017 0.322191 12.0234 0.243979C11.9452 0.165768 11.8522 0.103916 11.7499 0.0620327C11.6475 0.0201492 11.5378 -0.000927989 11.4272 3.33052e-05C11.3166 0.000993646 11.2073 0.0239743 11.1057 0.0676297C11.0041 0.111286 10.9122 0.174745 10.8354 0.254305L6.12347 4.96653Z"
686
686
  fill="#919EAB"/>
687
- </svg>`, Vt = `<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
687
+ </svg>`, Pt = `<svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">
688
688
  <path fill-rule="evenodd" clip-rule="evenodd" d="M19.1972 3.29156C18.936 3.03034 18.6259 2.82313 18.2847 2.68176C17.9434 2.54039 17.5777 2.46763 17.2083 2.46763C16.8389 2.46763 16.4731 2.54039 16.1319 2.68176C15.7906 2.82313 15.4805 3.03034 15.2194 3.29156L13.7822 4.72875C13.2585 4.4772 12.6697 4.39449 12.097 4.49207C11.5243 4.58964 10.9961 4.86267 10.5853 5.27343L9.91687 5.94281C9.74268 6.11693 9.6045 6.32366 9.51023 6.5512C9.41595 6.77873 9.36743 7.02261 9.36743 7.2689C9.36743 7.5152 9.41595 7.75907 9.51023 7.98661C9.6045 8.21414 9.74268 8.42088 9.91687 8.595L3.83625 14.6747C3.57512 14.936 3.36803 15.2462 3.2268 15.5875C3.08556 15.9288 3.01296 16.2947 3.01312 16.6641V18.3516C3.01312 18.6499 3.13165 18.9361 3.34263 19.1471C3.55361 19.358 3.83975 19.4766 4.13812 19.4766H5.82562C6.57129 19.4759 7.28618 19.1792 7.81312 18.6516L13.8937 12.5728C14.0679 12.747 14.2746 12.8852 14.5021 12.9795C14.7297 13.0737 14.9735 13.1223 15.2198 13.1223C15.4661 13.1223 15.71 13.0737 15.9375 12.9795C16.1651 12.8852 16.3718 12.747 16.5459 12.5728L17.2153 11.9025C17.6261 11.4917 17.8991 10.9635 17.9967 10.3908C18.0942 9.81811 18.0115 9.22926 17.76 8.70562L19.1972 7.26937C19.4584 7.0082 19.6656 6.69813 19.807 6.35687C19.9484 6.01561 20.0211 5.64985 20.0211 5.28047C20.0211 4.91108 19.9484 4.54532 19.807 4.20406C19.6656 3.8628 19.4584 3.55273 19.1972 3.29156ZM5.16281 16.0012L11.2425 9.92062L12.5681 11.2462L6.48844 17.3269C6.31266 17.5027 6.07424 17.6015 5.82562 17.6016H4.88812V16.6641C4.88818 16.4154 4.98698 16.177 5.16281 16.0012Z" fill="#353C47"/>
689
689
  </svg>`, zt = `<svg width="15" height="17" viewBox="0 0 15 17" fill="none" xmlns="http://www.w3.org/2000/svg">
690
690
  <path d="M14.1333 12.4667H0.8M0.8 12.4667L4.13333 9.13332M0.8 12.4667L4.13333 15.8M0.8 4.13332H14.1333M14.1333 4.13332L10.8 0.799988M14.1333 4.13332L10.8 7.46665" stroke="#919EAB" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
@@ -747,7 +747,7 @@ class Zt {
747
747
  const i = document.createElement("span");
748
748
  i.textContent = "Color";
749
749
  const s = document.createElement("button");
750
- s.className = "color-picker-close", s.innerHTML = Pt, s.addEventListener("click", () => this.close(!0)), e.appendChild(i), e.appendChild(s), dt(e, t);
750
+ s.className = "color-picker-close", s.innerHTML = Tt, s.addEventListener("click", () => this.close(!0)), e.appendChild(i), e.appendChild(s), dt(e, t);
751
751
  const n = document.createElement("div");
752
752
  n.className = "color-picker-area", this.colorArea = n;
753
753
  const o = document.createElement("div");
@@ -755,7 +755,7 @@ class Zt {
755
755
  const a = document.createElement("div");
756
756
  a.className = "color-picker-sliders-container";
757
757
  const l = document.createElement("button");
758
- l.className = "color-picker-eyedropper", l.type = "button", l.innerHTML = Vt;
758
+ l.className = "color-picker-eyedropper", l.type = "button", l.innerHTML = Pt;
759
759
  const r = document.createElement("div");
760
760
  r.className = "color-picker-sliders-group";
761
761
  const h = document.createElement("div");
@@ -866,7 +866,7 @@ class Zt {
866
866
  const { r: n, g: o, b: a } = N(this.currentColor);
867
867
  this.input.value = `rgb(${n}, ${o}, ${a})`;
868
868
  } else {
869
- const { hue: n, sat: o, lightness: a } = St(e, i, s);
869
+ const { hue: n, sat: o, lightness: a } = It(e, i, s);
870
870
  this.input.value = `hsl(${Math.round(n)}, ${Math.round(
871
871
  o * 100
872
872
  )}%, ${Math.round(a * 100)}%)`;
@@ -915,7 +915,7 @@ class Zt {
915
915
  }
916
916
  close(t) {
917
917
  var e;
918
- this.isOpen && (this.isOpen = !1, this.backdrop.style.display = "none", this.element.style.display = "none", document.removeEventListener("click", this.outsideClick, !0), document.removeEventListener("keydown", this.keyDown, !0), t && this.onChange && this.recentScope === "solid" && (W.addColor(this.currentColor, this.recentScope), (e = this.recentSectionRefresh) == null || e.call(this)));
918
+ this.isOpen && (this.isOpen = !1, this.backdrop.style.display = "none", this.element.style.display = "none", document.removeEventListener("click", this.outsideClick, !0), document.removeEventListener("keydown", this.keyDown, !0), t && this.onChange && this.recentScope === "solid" && (z.addColor(this.currentColor, this.recentScope), (e = this.recentSectionRefresh) == null || e.call(this)));
919
919
  }
920
920
  setOnChange(t) {
921
921
  this.onChange = t;
@@ -937,7 +937,7 @@ class Jt {
937
937
  }
938
938
  sanitizeColor(t) {
939
939
  const e = this.currentColor || "#FFFFFF";
940
- return z(t) ?? e;
940
+ return U(t) ?? e;
941
941
  }
942
942
  clampOpacity(t) {
943
943
  return Number.isFinite(t) ? Math.min(100, Math.max(0, Math.round(t))) : 100;
@@ -952,7 +952,7 @@ class Jt {
952
952
  const s = document.createElement("div");
953
953
  s.className = "color-picker-sliders-container embedded";
954
954
  const n = document.createElement("button");
955
- n.className = "color-picker-eyedropper", n.type = "button", n.innerHTML = Vt;
955
+ n.className = "color-picker-eyedropper", n.type = "button", n.innerHTML = Pt;
956
956
  const o = document.createElement("div");
957
957
  o.className = "color-picker-sliders-group";
958
958
  const a = document.createElement("div");
@@ -964,7 +964,7 @@ class Jt {
964
964
  const h = document.createElement("div");
965
965
  h.className = "color-picker-opacity-marker", this.opacityMarker = h, r.appendChild(h), o.appendChild(a), o.appendChild(r), s.appendChild(n), s.appendChild(o);
966
966
  const d = pt((b) => {
967
- const k = T(b);
967
+ const k = V(b);
968
968
  k && k.type !== "solid" ? this.onColorChange(b, this.currentOpacity) : (this.setColor(b), this.onColorChange(this.currentColor, this.currentOpacity));
969
969
  }, "all");
970
970
  this.recentSectionRefresh = d.refresh;
@@ -1065,7 +1065,7 @@ class Jt {
1065
1065
  const { r: n, g: o, b: a } = N(this.currentColor);
1066
1066
  this.input.value = `rgb(${n}, ${o}, ${a})`;
1067
1067
  } else {
1068
- const { hue: n, sat: o, lightness: a } = St(e, i, s);
1068
+ const { hue: n, sat: o, lightness: a } = It(e, i, s);
1069
1069
  this.input.value = `hsl(${Math.round(n)}, ${Math.round(
1070
1070
  o * 100
1071
1071
  )}%, ${Math.round(a * 100)}%)`;
@@ -1124,7 +1124,7 @@ class Jt {
1124
1124
  }
1125
1125
  commitRecentColor() {
1126
1126
  var t;
1127
- this.recentScope === "solid" && (W.addColor(this.currentColor, this.recentScope), (t = this.recentSectionRefresh) == null || t.call(this));
1127
+ this.recentScope === "solid" && (z.addColor(this.currentColor, this.recentScope), (t = this.recentSectionRefresh) == null || t.call(this));
1128
1128
  }
1129
1129
  getElement() {
1130
1130
  return this.element;
@@ -1137,7 +1137,7 @@ class Jt {
1137
1137
  this.initFromColor(t, e);
1138
1138
  }
1139
1139
  }
1140
- const V = class V extends w {
1140
+ const P = class P extends w {
1141
1141
  constructor(t = {}) {
1142
1142
  const e = typeof t.default == "string" ? void 0 : t.default;
1143
1143
  super({
@@ -1221,7 +1221,7 @@ const V = class V extends w {
1221
1221
  angle: 0,
1222
1222
  stops: [{ color: t, position: 0, opacity: 100 }]
1223
1223
  });
1224
- const i = T(t);
1224
+ const i = V(t);
1225
1225
  if (i)
1226
1226
  return D(i);
1227
1227
  }
@@ -1240,7 +1240,7 @@ const V = class V extends w {
1240
1240
  type: "solid",
1241
1241
  angle: 0,
1242
1242
  stops: [{ color: t, position: 0, opacity: 100 }]
1243
- }) : e = T(t) : t && typeof t == "object" && (e = D(t)), e || (e = this.defaultValue()), this.value = e, this.setLinkedGlobalVariableFrom(t ?? e), this.updateUI(), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange(), this.pendingSolidColor = null, this.updateUnlinkButtonVisibility();
1243
+ }) : e = V(t) : t && typeof t == "object" && (e = D(t)), e || (e = this.defaultValue()), this.value = e, this.setLinkedGlobalVariableFrom(t ?? e), this.updateUI(), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange(), this.pendingSolidColor = null, this.updateUnlinkButtonVisibility();
1244
1244
  }
1245
1245
  updateUI() {
1246
1246
  if (this.previewEl && this.value)
@@ -1249,7 +1249,7 @@ const V = class V extends w {
1249
1249
  this.previewEl.style.background = ct(i, e);
1250
1250
  } else {
1251
1251
  const t = this.resolveGradientGlobalVars(this.value);
1252
- this.previewEl.style.background = P(t);
1252
+ this.previewEl.style.background = T(t);
1253
1253
  }
1254
1254
  if (this.inputEl && this.value && !this.isEditing)
1255
1255
  if (this.isBoundToGlobal() && this.linkedGlobalVariable) {
@@ -1275,7 +1275,7 @@ const V = class V extends w {
1275
1275
  }
1276
1276
  cssForTextValue() {
1277
1277
  return this.value ? {
1278
- background: P(this.value),
1278
+ background: T(this.value),
1279
1279
  "-webkit-background-clip": "text",
1280
1280
  "background-clip": "text",
1281
1281
  color: "transparent",
@@ -1291,7 +1291,7 @@ const V = class V extends w {
1291
1291
  s.className = "input-label", s.textContent = this.props.title, i.appendChild(s), t.appendChild(i);
1292
1292
  }
1293
1293
  const e = document.createElement("div");
1294
- return e.className = "gradient-input-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "gradient-mini-preview", this.previewEl.style.background = this.value ? P(this.value) : "linear-gradient(90deg, #a84b4b 0%, #786666 100%)", this.previewEl.addEventListener("click", (i) => {
1294
+ return e.className = "gradient-input-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "gradient-mini-preview", this.previewEl.style.background = this.value ? T(this.value) : "linear-gradient(90deg, #a84b4b 0%, #786666 100%)", this.previewEl.addEventListener("click", (i) => {
1295
1295
  i.preventDefault(), i.stopPropagation(), this.openPopover();
1296
1296
  }), this.inputEl = document.createElement("input"), this.inputEl.type = "text", this.inputEl.className = "gradient-text-input", this.inputEl.placeholder = "Enter gradient CSS or paste color...", this.inputEl.value = this.value ? et(this.value) : "", this.inputEl.readOnly = !1, this.inputEl.addEventListener("focus", () => {
1297
1297
  if (this.isEditing = !0, this.value)
@@ -1307,11 +1307,11 @@ const V = class V extends w {
1307
1307
  }
1308
1308
  }
1309
1309
  } else
1310
- this.inputEl.value = P(this.value);
1310
+ this.inputEl.value = T(this.value);
1311
1311
  }), this.inputEl.addEventListener("blur", () => {
1312
1312
  this.isEditing = !1, this.value && (this.inputEl.value = et(this.value));
1313
1313
  }), this.inputEl.addEventListener("paste", (i) => this.handlePaste(i)), this.inputEl.addEventListener("input", (i) => this.handleTextInput(i)), this.inputEl.addEventListener("keydown", (i) => {
1314
- i.key === "Enter" && (this.handleTextInput(i), this.inputEl.blur()), i.key === "Escape" && (this.value && (this.inputEl.value = P(this.value)), this.inputEl.blur());
1314
+ i.key === "Enter" && (this.handleTextInput(i), this.inputEl.blur()), i.key === "Escape" && (this.value && (this.inputEl.value = T(this.value)), this.inputEl.blur());
1315
1315
  }), e.appendChild(this.previewEl), this.unlinkButton = document.createElement("button"), this.unlinkButton.type = "button", this.unlinkButton.className = "gradient-unlink-button", this.unlinkButton.innerHTML = qt, this.unlinkButton.title = "Break global color binding", this.unlinkButton.addEventListener("click", (i) => {
1316
1316
  i.preventDefault(), i.stopPropagation(), this.breakGlobalBinding();
1317
1317
  }), e.appendChild(this.unlinkButton), e.appendChild(this.inputEl), t.appendChild(e), this.createPopover(), this.element = t, this.updateUnlinkButtonVisibility(), t;
@@ -1335,7 +1335,7 @@ const V = class V extends w {
1335
1335
  t.appendChild(l);
1336
1336
  }
1337
1337
  const i = document.createElement("button");
1338
- i.type = "button", i.className = "gradient-popover-close", i.innerHTML = Pt, i.addEventListener("click", () => this.closePopover()), t.appendChild(i), dt(t, this.popoverEl, (l, r) => {
1338
+ i.type = "button", i.className = "gradient-popover-close", i.innerHTML = Tt, i.addEventListener("click", () => this.closePopover()), t.appendChild(i), dt(t, this.popoverEl, (l, r) => {
1339
1339
  this.popoverPosition = { left: l, top: r };
1340
1340
  });
1341
1341
  const s = document.createElement("div");
@@ -1389,7 +1389,7 @@ const V = class V extends w {
1389
1389
  ]), t !== "solid" && this.value.stops.length === 1) {
1390
1390
  const d = this.value.stops[0].color;
1391
1391
  if (d.startsWith("var(--")) {
1392
- const p = this.resolveGlobalVarColor(d), u = T(p);
1392
+ const p = this.resolveGlobalVarColor(d), u = V(p);
1393
1393
  u && u.type !== "solid" && u.stops.length >= 2 ? (this.value.stops = u.stops, this.value.angle = u.angle, this.value.type = u.type) : (this.value.stops.push({
1394
1394
  color: "#786666",
1395
1395
  position: 100,
@@ -1456,8 +1456,8 @@ const V = class V extends w {
1456
1456
  const x = this.resolveGlobalVarColor(y);
1457
1457
  k.style.background = x, (this.linkedGlobalVariable === `var(--${v})` || e.color === `var(--${v})`) && k.classList.add("selected");
1458
1458
  const L = document.createElement("span");
1459
- L.className = "global-color-label", L.textContent = v.split("-").map((I) => I.charAt(0).toUpperCase() + I.slice(1)).join(" "), b.appendChild(k), b.appendChild(L), b.addEventListener("click", (I) => {
1460
- I.preventDefault();
1459
+ L.className = "global-color-label", L.textContent = v.split("-").map((S) => S.charAt(0).toUpperCase() + S.slice(1)).join(" "), b.appendChild(k), b.appendChild(L), b.addEventListener("click", (S) => {
1460
+ S.preventDefault();
1461
1461
  const G = `var(--${v})`;
1462
1462
  this.setValue(G), this.pendingSolidColor = G, i(d);
1463
1463
  }), m.appendChild(b);
@@ -1501,7 +1501,7 @@ const V = class V extends w {
1501
1501
  initialOpacity: e.opacity ?? 100,
1502
1502
  onColorChange: (s, n) => {
1503
1503
  if (this.clearGlobalBindingForCustomChange(), this.value) {
1504
- const o = T(s);
1504
+ const o = V(s);
1505
1505
  if (o && o.type !== "solid") {
1506
1506
  this.value = o, this.switchType(o.type, !0);
1507
1507
  return;
@@ -1566,7 +1566,7 @@ const V = class V extends w {
1566
1566
  const l = document.createElement("div");
1567
1567
  l.className = "gradient-stops", t.appendChild(n), t.appendChild(l), this.updateStopsList(l);
1568
1568
  const r = pt((h) => {
1569
- const d = T(h);
1569
+ const d = V(h);
1570
1570
  d && (this.clearGlobalBindingForCustomChange(), this.value = d, this.switchType(d.type, !0), this.updateUI(), this.triggerChange());
1571
1571
  }, "all");
1572
1572
  this.recentGradientRefresh = r.refresh, t.appendChild(r.container), a.addEventListener("click", () => {
@@ -1583,7 +1583,7 @@ const V = class V extends w {
1583
1583
  const e = t || ((i = this.popoverEl) == null ? void 0 : i.querySelector(".gradient-preview"));
1584
1584
  if (e && this.value)
1585
1585
  if (this.value.type === "solid")
1586
- e.style.background = P(this.value);
1586
+ e.style.background = T(this.value);
1587
1587
  else {
1588
1588
  const s = this.value.stops.map((n) => `${ct(n.color, n.opacity ?? 100)} ${n.position}%`).join(", ");
1589
1589
  e.style.background = `linear-gradient(90deg, ${s})`;
@@ -1668,10 +1668,10 @@ const V = class V extends w {
1668
1668
  y.className = "gstop-opacity-value", y.textContent = `${s.opacity ?? 100}%`, g.appendChild(f), g.appendChild(y), p.addEventListener("click", (x) => {
1669
1669
  x.preventDefault(), x.stopPropagation();
1670
1670
  const E = this.getSharedStopColorPicker();
1671
- E.getIsOpen() && E.close(!1), this.colorPickerStopIndex = n, E.setOnChange((I, G) => {
1672
- this.clearGlobalBindingForCustomChange(), p.value = I.replace("#", "").toUpperCase(), d.style.backgroundColor = I, this.value.stops[n].color = I, G !== void 0 && (this.value.stops[n].opacity = G, f.value = String(G), y.textContent = `${G}%`);
1673
- const j = N(I);
1674
- f.style.setProperty("--slider-color", `rgb(${j.r}, ${j.g}, ${j.b})`), f.style.setProperty("--slider-color-transparent", `rgba(${j.r}, ${j.g}, ${j.b}, 0)`), this.updateGradientPreview(), this.createHandles(
1671
+ E.getIsOpen() && E.close(!1), this.colorPickerStopIndex = n, E.setOnChange((S, G) => {
1672
+ this.clearGlobalBindingForCustomChange(), p.value = S.replace("#", "").toUpperCase(), d.style.backgroundColor = S, this.value.stops[n].color = S, G !== void 0 && (this.value.stops[n].opacity = G, f.value = String(G), y.textContent = `${G}%`);
1673
+ const W = N(S);
1674
+ f.style.setProperty("--slider-color", `rgb(${W.r}, ${W.g}, ${W.b})`), f.style.setProperty("--slider-color-transparent", `rgba(${W.r}, ${W.g}, ${W.b}, 0)`), this.updateGradientPreview(), this.createHandles(
1675
1675
  this.popoverEl.querySelector(".gradient-handles"),
1676
1676
  this.popoverEl.querySelector(".gradient-preview")
1677
1677
  ), this.updateUI(), this.triggerChange();
@@ -1701,8 +1701,8 @@ const V = class V extends w {
1701
1701
  this.clearGlobalBindingForCustomChange();
1702
1702
  const E = x.target, L = parseInt(E.value.replace(/[^\d]/g, ""), 10);
1703
1703
  if (!Number.isNaN(L)) {
1704
- const I = Math.max(0, Math.min(100, L));
1705
- this.value.stops[n].position = I, E.value = `${I}%`, this.debouncedPreviewUpdate();
1704
+ const S = Math.max(0, Math.min(100, L));
1705
+ this.value.stops[n].position = S, E.value = `${S}%`, this.debouncedPreviewUpdate();
1706
1706
  }
1707
1707
  }), l.addEventListener("blur", (x) => {
1708
1708
  this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null);
@@ -1710,8 +1710,8 @@ const V = class V extends w {
1710
1710
  if (Number.isNaN(L))
1711
1711
  E.value = `${this.value.stops[n].position}%`;
1712
1712
  else {
1713
- const I = Math.max(0, Math.min(100, L));
1714
- this.value.stops[n].position = I, E.value = `${I}%`;
1713
+ const S = Math.max(0, Math.min(100, L));
1714
+ this.value.stops[n].position = S, E.value = `${S}%`;
1715
1715
  }
1716
1716
  this.updateGradientPreview(), this.createHandles(
1717
1717
  this.popoverEl.querySelector(".gradient-handles"),
@@ -1766,8 +1766,8 @@ const V = class V extends w {
1766
1766
  this.value.stops.push(l), this.value.stops.sort((r, h) => r.position - h.position);
1767
1767
  }
1768
1768
  openPopover() {
1769
- if (this.popoverEl && (V.openInstance && V.openInstance !== this && V.openInstance.closePopover(), !this.isPopoverOpen)) {
1770
- if (this.isPopoverOpen = !0, V.openInstance = this, this.backdropEl && (this.backdropEl.style.display = "block", this.backdropEl.parentElement || document.body.appendChild(this.backdropEl)), this.popoverEl.style.display = "flex", this.refreshPopoverContent(), this.element) {
1769
+ if (this.popoverEl && (P.openInstance && P.openInstance !== this && P.openInstance.closePopover(), !this.isPopoverOpen)) {
1770
+ if (this.isPopoverOpen = !0, P.openInstance = this, this.backdropEl && (this.backdropEl.style.display = "block", this.backdropEl.parentElement || document.body.appendChild(this.backdropEl)), this.popoverEl.style.display = "flex", this.refreshPopoverContent(), this.element) {
1771
1771
  const t = this.element.getBoundingClientRect(), e = 306, i = window.innerWidth, s = window.innerHeight, n = 16;
1772
1772
  this.popoverEl.style.position = "fixed", this.popoverEl.style.zIndex = "10000", this.popoverEl.style.left = "-9999px", this.popoverEl.style.top = "0px";
1773
1773
  const o = this.popoverEl.offsetHeight;
@@ -1814,14 +1814,14 @@ const V = class V extends w {
1814
1814
  var t, e;
1815
1815
  if (!(!this.popoverEl || !this.isPopoverOpen)) {
1816
1816
  if (this.isPopoverOpen = !1, this.popoverPosition = null, (t = this.sharedStopColorPicker) != null && t.getIsOpen() && (this.sharedStopColorPicker.close(!0), this.colorPickerStopIndex = null), this.backdropEl && (this.backdropEl.style.display = "none"), this.popoverEl.style.display = "none", document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), this.commitPendingSolidColor(), this.value && this.value.type !== "solid") {
1817
- const i = P(this.value);
1818
- W.addColor(i, "gradient"), (e = this.recentGradientRefresh) == null || e.call(this);
1817
+ const i = T(this.value);
1818
+ z.addColor(i, "gradient"), (e = this.recentGradientRefresh) == null || e.call(this);
1819
1819
  }
1820
- this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null), V.openInstance === this && (V.openInstance = null);
1820
+ this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null), P.openInstance === this && (P.openInstance = null);
1821
1821
  }
1822
1822
  }
1823
1823
  commitPendingSolidColor() {
1824
- this.pendingSolidColor && (this.solidPicker ? this.solidPicker.commitRecentColor() : W.addColor(this.pendingSolidColor, "solid"), this.pendingSolidColor = null);
1824
+ this.pendingSolidColor && (this.solidPicker ? this.solidPicker.commitRecentColor() : z.addColor(this.pendingSolidColor, "solid"), this.pendingSolidColor = null);
1825
1825
  }
1826
1826
  handlePaste(t) {
1827
1827
  var i;
@@ -1836,7 +1836,7 @@ const V = class V extends w {
1836
1836
  parseAndSet(t) {
1837
1837
  let e = t.trim();
1838
1838
  e && !e.startsWith("#") && !e.startsWith("var(") && !e.startsWith("rgb") && !e.startsWith("hsl") && !e.includes("gradient") && /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$|^[0-9A-Fa-f]{8}$/.test(e) && (e = "#" + e, this.inputEl && (this.inputEl.value = e));
1839
- const i = T(e);
1839
+ const i = V(e);
1840
1840
  i && this.setValue(i);
1841
1841
  }
1842
1842
  getChangePayload() {
@@ -1849,18 +1849,18 @@ const V = class V extends w {
1849
1849
  t !== void 0 && (this.changeDebounceTimeout && clearTimeout(this.changeDebounceTimeout), this.changeDebounceTimeout = setTimeout(() => {
1850
1850
  var e, i;
1851
1851
  (e = this.onChange) == null || e.call(this, t), (i = this.detectChange) == null || i.call(this, t), this.changeDebounceTimeout = null;
1852
- }, V.CHANGE_DEBOUNCE_DELAY));
1852
+ }, P.CHANGE_DEBOUNCE_DELAY));
1853
1853
  }
1854
1854
  getElement() {
1855
1855
  return this.element;
1856
1856
  }
1857
1857
  getValue() {
1858
1858
  const t = this.getChangePayload();
1859
- return t ? typeof t == "string" ? t : P(t) : "";
1859
+ return t ? typeof t == "string" ? t : T(t) : "";
1860
1860
  }
1861
1861
  getCSSValue() {
1862
1862
  const t = this.getChangePayload();
1863
- return t ? typeof t == "string" ? t : P(t) : "";
1863
+ return t ? typeof t == "string" ? t : T(t) : "";
1864
1864
  }
1865
1865
  getCSSForText() {
1866
1866
  return this.value ? this.cssForTextValue() : {};
@@ -1869,8 +1869,8 @@ const V = class V extends w {
1869
1869
  return this.value;
1870
1870
  }
1871
1871
  };
1872
- V.openInstance = null, V.CHANGE_DEBOUNCE_DELAY = 150;
1873
- let J = V;
1872
+ P.openInstance = null, P.CHANGE_DEBOUNCE_DELAY = 150;
1873
+ let J = P;
1874
1874
  function Y(c, t) {
1875
1875
  for (const e in c)
1876
1876
  if (Object.prototype.hasOwnProperty.call(c, e)) {
@@ -2345,7 +2345,7 @@ const ot = class ot {
2345
2345
  if (o.includeGetJson !== !1)
2346
2346
  if (n instanceof J) {
2347
2347
  const a = n.getRawValue();
2348
- i[s] = a ? P(a) : null;
2348
+ i[s] = a ? T(a) : null;
2349
2349
  } else
2350
2350
  i[s] = o.value;
2351
2351
  }
@@ -2361,7 +2361,7 @@ const ot = class ot {
2361
2361
  if (s.includeGetJson === !1) return null;
2362
2362
  if (i instanceof J) {
2363
2363
  const n = i.getRawValue();
2364
- return n ? P(n) : null;
2364
+ return n ? T(n) : null;
2365
2365
  }
2366
2366
  return s.value;
2367
2367
  }
@@ -2497,7 +2497,7 @@ const ot = class ot {
2497
2497
  };
2498
2498
  ot.hiddenElements = /* @__PURE__ */ new Set();
2499
2499
  let $ = ot;
2500
- function ri(c) {
2500
+ function ci(c) {
2501
2501
  return new Xt(c);
2502
2502
  }
2503
2503
  class Xt extends $ {
@@ -2517,9 +2517,13 @@ class Xt extends $ {
2517
2517
  this.initialValues = e, (i = this.onChange) == null || i.call(this, e);
2518
2518
  }
2519
2519
  getValues(t) {
2520
- return t !== void 0 ? super.getValues(t) : {
2521
- ...super.getValues(),
2522
- activeTabId: this.activeTabId
2520
+ if (t !== void 0)
2521
+ return super.getValues(t);
2522
+ const e = super.getValues();
2523
+ return console.log("idddddddddddddddddd", this.id), {
2524
+ ...e,
2525
+ activeTabId: this.activeTabId,
2526
+ id: this.id
2523
2527
  };
2524
2528
  }
2525
2529
  updateTabUI() {
@@ -2564,7 +2568,7 @@ class Xt extends $ {
2564
2568
  function Yt(c) {
2565
2569
  return new $(c);
2566
2570
  }
2567
- function ci(c) {
2571
+ function hi(c) {
2568
2572
  return c;
2569
2573
  }
2570
2574
  class Kt extends w {
@@ -2758,14 +2762,14 @@ const te = `
2758
2762
  <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"/>
2759
2763
  <path d="M9 1V17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1Z" fill="#667085" stroke="#667085" stroke-width="0.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.5"/>
2760
2764
  </svg>`;
2761
- class _ extends w {
2765
+ class j extends w {
2762
2766
  constructor(t = {}) {
2763
2767
  super({
2764
2768
  ...t,
2765
2769
  icon: t.icon || te,
2766
2770
  title: t.title || "Color & Opacity",
2767
2771
  default: t.default || "#000000FF"
2768
- }), 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 = _.normalizeHexWithOpacity(this.value));
2772
+ }), 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 = j.normalizeHexWithOpacity(this.value));
2769
2773
  }
2770
2774
  static normalizeHexWithOpacity(t) {
2771
2775
  return t = t.replace("#", ""), t.length === 3 && (t = t.split("").map((e) => e + e).join("")), t.length === 6 && (t = t + "FF"), t.length === 8 && /^[0-9A-Fa-f]{8}$/.test(t) ? `#${t.toUpperCase()}` : (console.warn(`Invalid hex value "${t}", using default "#000000FF"`), "#000000FF");
@@ -2783,7 +2787,7 @@ class _ extends w {
2783
2787
  return `#${i}${n}`;
2784
2788
  }
2785
2789
  setValue(t) {
2786
- t === void 0 || t === "" ? this.value = "#000000FF" : this.value = _.normalizeHexWithOpacity(t), this.updateInputElements(), this.updateColorPreview(), this.onChange && this.onChange(this.value), this.detectChange && this.detectChange(this.value);
2790
+ t === void 0 || t === "" ? this.value = "#000000FF" : this.value = j.normalizeHexWithOpacity(t), this.updateInputElements(), this.updateColorPreview(), this.onChange && this.onChange(this.value), this.detectChange && this.detectChange(this.value);
2787
2791
  }
2788
2792
  updateInputElements() {
2789
2793
  this.value && (this.colorInputEl && (this.colorInputEl.value = this.getRgbColor()), this.textInputEl && (this.textInputEl.value = this.value), this.opacityInputEl && (this.opacityInputEl.value = this.getOpacityPercent().toString()));
@@ -2794,7 +2798,7 @@ class _ extends w {
2794
2798
  this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${o}, ${e})`;
2795
2799
  }
2796
2800
  handleColorChange(t) {
2797
- const e = this.getOpacityPercent(), i = _.combineColorOpacity(
2801
+ const e = this.getOpacityPercent(), i = j.combineColorOpacity(
2798
2802
  t,
2799
2803
  e
2800
2804
  );
@@ -2805,7 +2809,7 @@ class _ extends w {
2805
2809
  return e || i ? (this.setValue(t), !0) : !1;
2806
2810
  }
2807
2811
  handleOpacityChange(t) {
2808
- const e = this.getRgbColor(), i = Math.max(0, Math.min(100, t)), s = _.combineColorOpacity(
2812
+ const e = this.getRgbColor(), i = Math.max(0, Math.min(100, t)), s = j.combineColorOpacity(
2809
2813
  e,
2810
2814
  i
2811
2815
  );
@@ -2895,7 +2899,7 @@ class _ extends w {
2895
2899
  };
2896
2900
  }
2897
2901
  }
2898
- class hi extends w {
2902
+ class di extends w {
2899
2903
  constructor(t = {}) {
2900
2904
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
2901
2905
  }
@@ -3180,7 +3184,7 @@ class ne extends w {
3180
3184
  }), t.appendChild(i), t;
3181
3185
  }
3182
3186
  }
3183
- class di extends w {
3187
+ class pi extends w {
3184
3188
  constructor(t) {
3185
3189
  super(t), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
3186
3190
  }
@@ -3209,7 +3213,7 @@ class di extends w {
3209
3213
  return o.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), o.appendChild(t), o;
3210
3214
  }
3211
3215
  }
3212
- class pi extends w {
3216
+ class ui extends w {
3213
3217
  constructor(t = {}) {
3214
3218
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
3215
3219
  const e = t.width || 0, i = t.height || 0;
@@ -3542,7 +3546,7 @@ const st = `
3542
3546
  "image/gif",
3543
3547
  "image/webp"
3544
3548
  ];
3545
- function Se(c, t) {
3549
+ function Ie(c, t) {
3546
3550
  if (!Me.includes(c.type))
3547
3551
  return {
3548
3552
  valid: !1,
@@ -3572,7 +3576,7 @@ function xt(c, t, e) {
3572
3576
  y: nt(s)
3573
3577
  };
3574
3578
  }
3575
- function Tt(c) {
3579
+ function Vt(c) {
3576
3580
  const t = c.map((i) => i.index).sort((i, s) => i - s);
3577
3581
  let e = 1;
3578
3582
  for (const i of t)
@@ -3582,8 +3586,8 @@ function Tt(c) {
3582
3586
  break;
3583
3587
  return e;
3584
3588
  }
3585
- function Ie(c, t) {
3586
- const e = Tt(c);
3589
+ function Se(c, t) {
3590
+ const e = Vt(c);
3587
3591
  let i = `Prize ${e}`;
3588
3592
  if (t && t.length > 0) {
3589
3593
  const s = t[e - 1];
@@ -3646,7 +3650,7 @@ const gt = class gt {
3646
3650
  }
3647
3651
  };
3648
3652
  gt.styleInjected = !1;
3649
- let U = gt;
3653
+ let _ = gt;
3650
3654
  class Ne {
3651
3655
  constructor() {
3652
3656
  this.overlayElement = null, this.activePromise = null;
@@ -3682,7 +3686,7 @@ class Ne {
3682
3686
  this.overlayElement && (this.overlayElement.remove(), this.overlayElement = null), this.activePromise = null;
3683
3687
  }
3684
3688
  }
3685
- class Pe {
3689
+ class Te {
3686
3690
  constructor() {
3687
3691
  this.element = document.createElement("div"), this.element.className = "marker-cursor-tooltip";
3688
3692
  }
@@ -3706,7 +3710,7 @@ class Pe {
3706
3710
  return t < e;
3707
3711
  }
3708
3712
  }
3709
- class Ve {
3713
+ class Pe {
3710
3714
  constructor() {
3711
3715
  this.history = [], this.historyIndex = -1;
3712
3716
  }
@@ -3744,7 +3748,7 @@ class Ve {
3744
3748
  this.history = [], this.historyIndex = -1;
3745
3749
  }
3746
3750
  }
3747
- class Te {
3751
+ class Ve {
3748
3752
  constructor() {
3749
3753
  this.messageListener = null, this.handlers = /* @__PURE__ */ new Map();
3750
3754
  }
@@ -3781,7 +3785,7 @@ class Te {
3781
3785
  this.handlers.clear(), this.cleanupMessageListener();
3782
3786
  }
3783
3787
  }
3784
- const Lt = new Te();
3788
+ const Lt = new Ve();
3785
3789
  function Oe(c, t) {
3786
3790
  const e = document.createElement("div");
3787
3791
  e.className = "marker-container", e.style.left = `${c.x}%`, e.style.top = `${c.y}%`, e.setAttribute("data-marker-id", String(c.id));
@@ -3991,13 +3995,15 @@ function We(c, t, e) {
3991
3995
  }
3992
3996
  return i.appendChild(n), i;
3993
3997
  }
3994
- const A = class A extends w {
3998
+ const je = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" fill="none">
3999
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0 0L2.58579 2.58579C3.36684 3.36684 4.63317 3.36683 5.41421 2.58579L8 0L0 0Z" fill="#FF5630"/>
4000
+ </svg>`, A = class A extends w {
3995
4001
  constructor(t = {}) {
3996
4002
  var e;
3997
4003
  super(t), this.inputType = {
3998
4004
  imageUrl: "text",
3999
4005
  markers: "text"
4000
- }, this.mainDisplayElements = null, this.popoverElements = null, this.imageElement = null, this.cursorTooltip = null, this.popoverPosition = null, this.isPopoverOpen = !1, this.confirmModal = new Ne(), this.previousImageDimensions = null, this.draggingMarkerId = null, this.historyManager = new Ve(), this.isUndoRedoOperation = !1, this.initialValue = null, this.lastMouseX = 0, this.lastMouseY = 0, this.props.maxMarkers = this.props.maxMarkers ?? ((e = this.props.prizeMap) == null ? void 0 : e.length) ?? F, this.props.maxFileSizeMB = this.props.maxFileSizeMB ?? bt, this.props.markerSize = this.props.markerSize ?? Ee, this.value || (this.value = { imageUrl: "", markers: [] }), Lt.registerHandler(this.id, (i) => {
4006
+ }, this.mainDisplayElements = null, this.popoverElements = null, this.imageElement = null, this.cursorTooltip = null, this.popoverPosition = null, this.isPopoverOpen = !1, this.confirmModal = new Ne(), this.previousImageDimensions = null, this.draggingMarkerId = null, this.historyManager = new Pe(), this.isUndoRedoOperation = !1, this.initialValue = null, this.lastMouseX = 0, this.lastMouseY = 0, this.errorTooltipEl = null, this.errorTooltipTimeoutId = null, this.props.maxMarkers = this.props.maxMarkers ?? ((e = this.props.prizeMap) == null ? void 0 : e.length) ?? F, this.props.maxFileSizeMB = this.props.maxFileSizeMB ?? bt, this.props.markerSize = this.props.markerSize ?? Ee, this.value || (this.value = { imageUrl: "", markers: [] }), Lt.registerHandler(this.id, (i) => {
4001
4007
  this.handleFileManagerImageSelected(i);
4002
4008
  }), this.onBackgroundClick = (i) => {
4003
4009
  if (this.isPopoverOpen && this.popoverElements && !this.popoverElements.popover.contains(i.target)) {
@@ -4085,7 +4091,7 @@ const A = class A extends w {
4085
4091
  JSON.stringify(this.initialValue)
4086
4092
  ), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.triggerChange());
4087
4093
  }
4088
- this.isPopoverOpen = !1, this.draggingMarkerId = null, this.popoverElements && (this.popoverElements.backdrop.style.display = "none", this.popoverElements.popover.style.display = "none"), document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), A.openInstance === this && (A.openInstance = null);
4094
+ this.isPopoverOpen = !1, this.draggingMarkerId = null, this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.style.display = "none", this.popoverElements.popover.style.display = "none"), document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), A.openInstance === this && (A.openInstance = null);
4089
4095
  }
4090
4096
  }
4091
4097
  positionPopoverElement() {
@@ -4097,6 +4103,7 @@ const A = class A extends w {
4097
4103
  refreshPopoverContent() {
4098
4104
  var a;
4099
4105
  if (!this.popoverElements) return;
4106
+ this.clearErrorTooltip();
4100
4107
  const t = this.popoverElements.content, e = t.querySelector(
4101
4108
  ".image-map-container"
4102
4109
  ), i = t.querySelector(
@@ -4119,7 +4126,7 @@ const A = class A extends w {
4119
4126
  const r = document.createElement("div");
4120
4127
  r.className = "image-map-main-layout";
4121
4128
  const h = document.createElement("div");
4122
- h.className = "image-map-image-section", this.cursorTooltip = new Pe();
4129
+ h.className = "image-map-image-section", this.cursorTooltip = new Te();
4123
4130
  const { container: d, imageElement: p } = Fe(
4124
4131
  this.value.imageUrl,
4125
4132
  this.value.markers,
@@ -4202,16 +4209,16 @@ const A = class A extends w {
4202
4209
  markers: n
4203
4210
  }, this.previousImageDimensions = s, this.historyManager.initialize(n), this.updateUndoRedoButtons(), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
4204
4211
  }, i.onerror = () => {
4205
- U.show("Failed to load image from file manager.");
4212
+ _.show("Failed to load image from file manager.");
4206
4213
  }, i.src = t;
4207
4214
  }
4208
4215
  handleImageUpload(t) {
4209
- const e = this.previousImageDimensions, i = Se(
4216
+ const e = this.previousImageDimensions, i = Ie(
4210
4217
  t,
4211
4218
  this.props.maxFileSizeMB || bt
4212
4219
  );
4213
4220
  if (!i.valid) {
4214
- U.show(i.error);
4221
+ _.show(i.error);
4215
4222
  return;
4216
4223
  }
4217
4224
  const s = new FileReader();
@@ -4235,22 +4242,21 @@ const A = class A extends w {
4235
4242
  markers: h
4236
4243
  }, this.previousImageDimensions = r, this.historyManager.initialize(h), this.updateUndoRedoButtons(), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
4237
4244
  }, l.onerror = () => {
4238
- U.show("Failed to read image file.");
4245
+ _.show("Failed to read image file.");
4239
4246
  }, l.src = o;
4240
4247
  }
4241
4248
  }, s.onerror = () => {
4242
- U.show("Failed to read image file.");
4249
+ _.show("Failed to read image file.");
4243
4250
  }, s.readAsDataURL(t);
4244
4251
  }
4245
4252
  handleImageClick(t) {
4246
4253
  if (this.draggingMarkerId !== null || !this.value || !this.imageElement) return;
4247
4254
  if (this.value.markers.length >= (this.props.maxMarkers || F)) {
4248
- U.show(
4249
- `Maximum of ${this.props.maxMarkers || F} markers allowed.`
4250
- );
4255
+ const r = `Maximum of ${this.props.maxMarkers || F} markers allowed.`;
4256
+ this.showErrorTooltip(r, t.clientX, t.clientY);
4251
4257
  return;
4252
4258
  }
4253
- const e = this.imageElement.getBoundingClientRect(), { x: i, y: s } = xt(t.clientX, t.clientY, e), n = Tt(this.value.markers);
4259
+ const e = this.imageElement.getBoundingClientRect(), { x: i, y: s } = xt(t.clientX, t.clientY, e), n = Vt(this.value.markers);
4254
4260
  let o;
4255
4261
  this.props.prizeMap && this.props.prizeMap.length > 0 && (o = this.props.prizeMap[n - 1]);
4256
4262
  const a = {
@@ -4307,7 +4313,7 @@ const A = class A extends w {
4307
4313
  if (!this.cursorTooltip || !this.value) return;
4308
4314
  const t = this.props.maxMarkers || F;
4309
4315
  if (this.cursorTooltip.shouldShow(this.value.markers.length, t)) {
4310
- const e = Ie(
4316
+ const e = Se(
4311
4317
  this.value.markers,
4312
4318
  this.props.prizeMap
4313
4319
  );
@@ -4354,8 +4360,42 @@ const A = class A extends w {
4354
4360
  triggerChange() {
4355
4361
  this.value && (this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value));
4356
4362
  }
4363
+ showErrorTooltip(t, e, i) {
4364
+ if (!this.imageElement || !this.isPopoverOpen) return;
4365
+ const s = this.imageElement.parentElement;
4366
+ if (!s) return;
4367
+ const n = this.imageElement.getBoundingClientRect();
4368
+ if (!this.errorTooltipEl || !s.contains(this.errorTooltipEl)) {
4369
+ this.errorTooltipEl = document.createElement("div"), this.errorTooltipEl.className = "image-map-error-tooltip";
4370
+ const p = document.createElement("div");
4371
+ p.className = "image-map-error-tooltip-content", this.errorTooltipEl.appendChild(p);
4372
+ const u = document.createElement("div");
4373
+ u.className = "image-map-error-tooltip-tail", u.innerHTML = je, this.errorTooltipEl.appendChild(u), s.appendChild(this.errorTooltipEl);
4374
+ }
4375
+ const o = this.errorTooltipEl.querySelector(
4376
+ ".image-map-error-tooltip-content"
4377
+ );
4378
+ o && (o.textContent = t);
4379
+ const a = s.getBoundingClientRect(), l = e - a.left, r = i - a.top, h = Math.min(
4380
+ Math.max(l, n.left - a.left),
4381
+ n.right - a.left
4382
+ ), d = Math.min(
4383
+ Math.max(r, n.top - a.top),
4384
+ n.bottom - a.top
4385
+ );
4386
+ this.errorTooltipEl.style.left = `${h}px`, this.errorTooltipEl.style.top = `${d}px`, this.errorTooltipEl.classList.remove("visible"), this.errorTooltipEl.offsetWidth, this.errorTooltipEl.classList.add("visible"), this.errorTooltipTimeoutId !== null && window.clearTimeout(this.errorTooltipTimeoutId), this.errorTooltipTimeoutId = window.setTimeout(() => {
4387
+ this.hideErrorTooltip();
4388
+ }, 2e3);
4389
+ }
4390
+ hideErrorTooltip() {
4391
+ this.errorTooltipEl && (this.errorTooltipEl.classList.remove("visible"), this.errorTooltipTimeoutId = null);
4392
+ }
4393
+ clearErrorTooltip() {
4394
+ var t;
4395
+ this.errorTooltipTimeoutId !== null && (window.clearTimeout(this.errorTooltipTimeoutId), this.errorTooltipTimeoutId = null), (t = this.errorTooltipEl) != null && t.parentElement && this.errorTooltipEl.parentElement.removeChild(this.errorTooltipEl), this.errorTooltipEl = null;
4396
+ }
4357
4397
  destroy() {
4358
- this.closePopover(), this.popoverElements && (this.popoverElements.backdrop.parentElement && this.popoverElements.backdrop.parentElement.removeChild(
4398
+ this.closePopover(), this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.parentElement && this.popoverElements.backdrop.parentElement.removeChild(
4359
4399
  this.popoverElements.backdrop
4360
4400
  ), this.popoverElements.popover.parentElement && this.popoverElements.popover.parentElement.removeChild(
4361
4401
  this.popoverElements.popover
@@ -4364,14 +4404,14 @@ const A = class A extends w {
4364
4404
  };
4365
4405
  A.openInstance = null;
4366
4406
  let kt = A;
4367
- class je extends B {
4407
+ class _e extends B {
4368
4408
  constructor(t = {}) {
4369
4409
  super({
4370
4410
  ...t,
4371
4411
  title: t.title || "Height",
4372
4412
  suffix: t.suffix || "px",
4373
4413
  minValue: t.minValue ?? 0,
4374
- icon: t.icon || _e,
4414
+ icon: t.icon || qe,
4375
4415
  default: t.default ?? 100
4376
4416
  }), this.inputType = "number", this.mobileValue = t.mobile, this.suffix = t.suffix || "px";
4377
4417
  }
@@ -4386,17 +4426,17 @@ class je extends B {
4386
4426
  this.mobileValue = t, t !== void 0 && this.setValue(t);
4387
4427
  }
4388
4428
  }
4389
- const _e = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4429
+ const qe = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4390
4430
  <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"/>
4391
4431
  </svg>`;
4392
- class qe extends B {
4432
+ class Ze extends B {
4393
4433
  constructor(t = {}) {
4394
4434
  super({
4395
4435
  ...t,
4396
4436
  title: t.title || "Width",
4397
4437
  suffix: t.suffix || "px",
4398
4438
  minValue: t.minValue ?? 0,
4399
- icon: t.icon || Ze,
4439
+ icon: t.icon || Je,
4400
4440
  default: t.default ?? 100
4401
4441
  }), this.inputType = "number", this.mobileValue = t.mobile;
4402
4442
  }
@@ -4407,14 +4447,14 @@ class qe extends B {
4407
4447
  this.mobileValue = t, t !== void 0 && this.setValue(t);
4408
4448
  }
4409
4449
  }
4410
- const Ze = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4450
+ const Je = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4411
4451
  <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"/>
4412
- </svg>`, Je = `
4452
+ </svg>`, Xe = `
4413
4453
  <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">
4414
4454
  <polyline points="6 9 12 15 18 9"></polyline>
4415
4455
  </svg>
4416
4456
  `;
4417
- class ui extends w {
4457
+ class gi extends w {
4418
4458
  constructor(t = {}) {
4419
4459
  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) {
4420
4460
  const e = this._options.findIndex(
@@ -4471,7 +4511,7 @@ class ui extends w {
4471
4511
  a.onclick = (l) => this.selectApiOption(l, o, e), i.appendChild(a);
4472
4512
  }), t.appendChild(i);
4473
4513
  const s = document.createElement("div");
4474
- return s.classList.add("svg-container"), s.innerHTML = Je, t.appendChild(s), s.onclick = () => {
4514
+ return s.classList.add("svg-container"), s.innerHTML = Xe, t.appendChild(s), s.onclick = () => {
4475
4515
  var n, o;
4476
4516
  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));
4477
4517
  }, this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && !this.hasInitializedOptions ? (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
@@ -4565,7 +4605,7 @@ class ui extends w {
4565
4605
  ), this.updateButtonText(), this.updateOptionsList(), this.detectChangeCallback && this.detectChangeCallback !== this.props.detectChange && this.detectChangeCallback(t);
4566
4606
  }
4567
4607
  }
4568
- class gi extends w {
4608
+ class mi extends w {
4569
4609
  constructor(t) {
4570
4610
  var e, i;
4571
4611
  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;
@@ -4615,13 +4655,13 @@ class gi extends w {
4615
4655
  this.detectChangeCallback = t;
4616
4656
  }
4617
4657
  }
4618
- const Xe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
4658
+ const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
4619
4659
  <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"/>
4620
4660
  </svg>`;
4621
- class mi extends w {
4661
+ class vi extends w {
4622
4662
  // Store mobile value
4623
4663
  constructor(t = {}) {
4624
- t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Xe, 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);
4664
+ t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Ye, 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);
4625
4665
  }
4626
4666
  draw() {
4627
4667
  const t = document.createElement("div");
@@ -4672,40 +4712,40 @@ class mi extends w {
4672
4712
  this.mobileValue = t, t !== void 0 && this.setValue(t);
4673
4713
  }
4674
4714
  }
4675
- const Ye = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4715
+ const Ke = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4676
4716
  <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"/>
4677
4717
  </svg>`;
4678
- class vi extends B {
4718
+ class fi extends B {
4679
4719
  constructor(t = {}) {
4680
4720
  super({
4681
4721
  ...t,
4682
4722
  minValue: t.minValue ?? 0,
4683
4723
  maxValue: t.maxValue ?? 1e3,
4684
- icon: t.icon || Ye,
4724
+ icon: t.icon || Ke,
4685
4725
  title: t.title || "Margin Bottom",
4686
4726
  default: t.default ?? 20,
4687
4727
  wrapperClassName: "margin-bottom-wrapper " + (t.wrapperClassName || "")
4688
4728
  }), this.inputType = "number";
4689
4729
  }
4690
4730
  }
4691
- const Ke = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4731
+ const Qe = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
4692
4732
  <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"
4693
4733
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4694
4734
  </svg>`;
4695
- class fi extends B {
4735
+ class Ci extends B {
4696
4736
  constructor(t = {}) {
4697
4737
  super({
4698
4738
  ...t,
4699
4739
  minValue: t.minValue ?? 0,
4700
4740
  maxValue: t.maxValue ?? 1e3,
4701
- icon: t.icon || Ke,
4741
+ icon: t.icon || Qe,
4702
4742
  title: t.title || "Margin Top",
4703
4743
  default: t.default ?? 20,
4704
4744
  wrapperClassName: "margin-top-wrapper " + (t.wrapperClassName || "")
4705
4745
  }), this.inputType = "number";
4706
4746
  }
4707
4747
  }
4708
- class Ci extends w {
4748
+ class yi extends w {
4709
4749
  constructor(t) {
4710
4750
  super(t), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), this.popup = null, t.default ? this.value = { ...t.default } : this.value || (this.value = {});
4711
4751
  const e = w.HasExplicitCurrentLanguage(), i = e ? w.CurrentLanguage() : "", s = w.DefaultLanguage;
@@ -4974,7 +5014,7 @@ class Ci extends w {
4974
5014
  });
4975
5015
  }
4976
5016
  }
4977
- class yi extends w {
5017
+ class Ei extends w {
4978
5018
  constructor(t = {}) {
4979
5019
  super(t), this.inputType = "select";
4980
5020
  const e = [
@@ -5001,16 +5041,16 @@ class yi extends w {
5001
5041
  this.selectSetting.destroy(), super.destroy();
5002
5042
  }
5003
5043
  }
5004
- const Qe = `
5044
+ const ti = `
5005
5045
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5006
5046
  <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"/>
5007
5047
  </svg>
5008
- `, ti = `
5048
+ `, ei = `
5009
5049
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5010
5050
  <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"/>
5011
5051
  </svg>
5012
5052
  `;
5013
- class Ei extends $ {
5053
+ class bi extends $ {
5014
5054
  constructor(t) {
5015
5055
  super({
5016
5056
  title: "Border",
@@ -5018,7 +5058,7 @@ class Ei extends $ {
5018
5058
  settings: {
5019
5059
  size: new B({
5020
5060
  title: "Size",
5021
- icon: ti,
5061
+ icon: ei,
5022
5062
  default: (t == null ? void 0 : t.size) ?? 0,
5023
5063
  suffix: "px"
5024
5064
  }),
@@ -5028,7 +5068,7 @@ class Ei extends $ {
5028
5068
  }),
5029
5069
  radius: new B({
5030
5070
  title: "Radius",
5031
- icon: Qe,
5071
+ icon: ti,
5032
5072
  default: (t == null ? void 0 : t.radius) ?? 12,
5033
5073
  suffix: "px"
5034
5074
  })
@@ -5052,20 +5092,20 @@ class Ei extends $ {
5052
5092
  `;
5053
5093
  }
5054
5094
  }
5055
- const ei = `
5095
+ const ii = `
5056
5096
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
5057
5097
  <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"/>
5058
5098
  </svg>
5059
- `, ii = `
5099
+ `, si = `
5060
5100
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5061
5101
  <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"/>
5062
5102
  </svg>
5063
- `, si = `
5103
+ `, ni = `
5064
5104
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5065
5105
  <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"/>
5066
5106
  </svg>
5067
5107
  `;
5068
- class bi extends $ {
5108
+ class wi extends $ {
5069
5109
  constructor(t = {}) {
5070
5110
  const { showAlign: e = t.showAlign ?? !0, ...i } = t;
5071
5111
  super({
@@ -5079,7 +5119,7 @@ class bi extends $ {
5079
5119
  }),
5080
5120
  fontFamily: new ht({
5081
5121
  title: "Font",
5082
- icon: ei,
5122
+ icon: ii,
5083
5123
  default: i.fontFamilyDefault ?? "Satoshi",
5084
5124
  options: i.fontFamilyOptions ?? [
5085
5125
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -5092,7 +5132,7 @@ class bi extends $ {
5092
5132
  }),
5093
5133
  fontWeight: new ht({
5094
5134
  title: "Weight",
5095
- icon: ii,
5135
+ icon: si,
5096
5136
  default: i.fontWeightDefault ?? "400",
5097
5137
  options: i.fontWeightOptions ?? [
5098
5138
  { name: "Regular", value: "400" },
@@ -5104,7 +5144,7 @@ class bi extends $ {
5104
5144
  }),
5105
5145
  fontSize: new B({
5106
5146
  title: "Size",
5107
- icon: si,
5147
+ icon: ni,
5108
5148
  default: i.fontSizeDefault ?? 12,
5109
5149
  suffix: "px",
5110
5150
  mobile: i.fontSizeMobileDefault
@@ -5190,7 +5230,7 @@ class K extends w {
5190
5230
  }), i;
5191
5231
  }
5192
5232
  }
5193
- class wi extends $ {
5233
+ class xi extends $ {
5194
5234
  constructor(t) {
5195
5235
  super({
5196
5236
  title: "Margins",
@@ -5198,25 +5238,25 @@ class wi extends $ {
5198
5238
  settings: {
5199
5239
  marginTop: new K({
5200
5240
  title: "Top",
5201
- icon: ni,
5241
+ icon: oi,
5202
5242
  suffix: "px",
5203
5243
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
5204
5244
  }),
5205
5245
  marginRight: new K({
5206
5246
  title: "Right",
5207
- icon: oi,
5247
+ icon: ai,
5208
5248
  suffix: "px",
5209
5249
  default: (t == null ? void 0 : t.marginRight) ?? 0
5210
5250
  }),
5211
5251
  marginBottom: new K({
5212
5252
  title: "Bottom",
5213
- icon: ai,
5253
+ icon: li,
5214
5254
  suffix: "px",
5215
5255
  default: (t == null ? void 0 : t.marginBottom) ?? 0
5216
5256
  }),
5217
5257
  marginLeft: new K({
5218
5258
  title: "Left",
5219
- icon: li,
5259
+ icon: ri,
5220
5260
  suffix: "px",
5221
5261
  default: (t == null ? void 0 : t.marginLeft) ?? 0
5222
5262
  })
@@ -5233,16 +5273,16 @@ class wi extends $ {
5233
5273
  `;
5234
5274
  }
5235
5275
  }
5236
- const ni = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5276
+ const oi = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5237
5277
  <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"/>
5238
- </svg>`, oi = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5239
- <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"/>
5240
5278
  </svg>`, ai = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5241
- <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"/>
5279
+ <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"/>
5242
5280
  </svg>`, li = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5281
+ <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"/>
5282
+ </svg>`, ri = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
5243
5283
  <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"/>
5244
5284
  </svg>`;
5245
- class xi extends $ {
5285
+ class Li extends $ {
5246
5286
  constructor(t) {
5247
5287
  super({
5248
5288
  title: "Background Image",
@@ -5255,7 +5295,7 @@ class xi extends $ {
5255
5295
  opacity: new ie({
5256
5296
  default: (t == null ? void 0 : t.opacity) ?? 100
5257
5297
  }),
5258
- backgroundColor: new _({
5298
+ backgroundColor: new j({
5259
5299
  default: (t == null ? void 0 : t.backgroundColor) ?? "0, 0, 30"
5260
5300
  })
5261
5301
  }
@@ -5281,7 +5321,7 @@ class xi extends $ {
5281
5321
  `;
5282
5322
  }
5283
5323
  }
5284
- class Li extends $ {
5324
+ class ki extends $ {
5285
5325
  constructor(t) {
5286
5326
  super({
5287
5327
  title: (t == null ? void 0 : t.title) ?? "Image",
@@ -5291,11 +5331,11 @@ class Li extends $ {
5291
5331
  ...t == null ? void 0 : t.uploadProps,
5292
5332
  default: (t == null ? void 0 : t.image) ?? ""
5293
5333
  }),
5294
- width: new qe({
5334
+ width: new Ze({
5295
5335
  default: (t == null ? void 0 : t.width) ?? 1e3,
5296
5336
  mobile: t == null ? void 0 : t.widthMobile
5297
5337
  }),
5298
- height: new je({
5338
+ height: new _e({
5299
5339
  default: (t == null ? void 0 : t.height) ?? 300,
5300
5340
  mobile: t == null ? void 0 : t.heightMobile
5301
5341
  })
@@ -5305,39 +5345,39 @@ class Li extends $ {
5305
5345
  }
5306
5346
  export {
5307
5347
  ne as AlignSetting,
5308
- yi as AnimationSetting,
5309
- xi as BackgroundSettingSet,
5310
- Ei as BorderSettingSet,
5311
- di as ButtonSetting,
5348
+ Ei as AnimationSetting,
5349
+ Li as BackgroundSettingSet,
5350
+ bi as BorderSettingSet,
5351
+ pi as ButtonSetting,
5312
5352
  H as ColorSetting,
5313
- _ as ColorWithOpacitySetting,
5314
- pi as DimensionSetting,
5315
- mi as GapSetting,
5353
+ j as ColorWithOpacitySetting,
5354
+ ui as DimensionSetting,
5355
+ vi as GapSetting,
5316
5356
  J as GradientSetting,
5317
- bi as HeaderTypographySettingSet,
5318
- je as HeightSetting,
5319
- hi as HtmlSetting,
5357
+ wi as HeaderTypographySettingSet,
5358
+ _e as HeightSetting,
5359
+ di as HtmlSetting,
5320
5360
  kt as ImageMapSetting,
5321
- Li as ImageSettingSet,
5322
- vi as MarginBottomSetting,
5323
- wi as MarginSettingGroup,
5324
- fi as MarginTopSetting,
5325
- Ci as MultiLanguageSetting,
5361
+ ki as ImageSettingSet,
5362
+ fi as MarginBottomSetting,
5363
+ xi as MarginSettingGroup,
5364
+ Ci as MarginTopSetting,
5365
+ yi as MultiLanguageSetting,
5326
5366
  B as NumberSetting,
5327
5367
  ie as OpacitySetting,
5328
- ui as SelectApiSettings,
5368
+ gi as SelectApiSettings,
5329
5369
  ht as SelectSetting,
5330
5370
  w as Setting,
5331
5371
  $ as SettingGroup,
5332
5372
  Kt as StringSetting,
5333
5373
  Xt as TabSettingGroup,
5334
5374
  Xt as TabsSettingGroup,
5335
- gi as Toggle,
5375
+ mi as Toggle,
5336
5376
  ut as UploadSetting,
5337
- qe as WidthSetting,
5338
- ci as asSettingGroupWithSettings,
5377
+ Ze as WidthSetting,
5378
+ hi as asSettingGroupWithSettings,
5339
5379
  Yt as createSettingGroup,
5340
- ri as createTabSettingGroup,
5380
+ ci as createTabSettingGroup,
5341
5381
  R as isSetting,
5342
5382
  vt as isSettingChild,
5343
5383
  M as isSettingGroup,