builder-settings-types 0.0.257 → 0.0.259

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.
@@ -758,10 +758,10 @@ const Y = class Y {
758
758
  </svg>`;
759
759
  c.innerHTML = `${h}<span style="margin-left:4px;">${this.addItemCfg.buttonLabel ?? "Add"}</span>`, c.addEventListener("click", (d) => {
760
760
  d.stopPropagation(), d.preventDefault();
761
- const g = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), f = this.addItemCfg.createItem(g);
762
- if (st(f)) {
763
- const C = `${this.addItemCfg.keyPrefix}${g}`;
764
- this.addSetting(C, f);
761
+ const m = this.getNextIndexFromPrefix(this.addItemCfg.keyPrefix), u = this.addItemCfg.createItem(m);
762
+ if (st(u)) {
763
+ const g = `${this.addItemCfg.keyPrefix}${m}`;
764
+ this.addSetting(g, u);
765
765
  }
766
766
  }), a.appendChild(c);
767
767
  }
@@ -809,7 +809,7 @@ const Y = class Y {
809
809
  };
810
810
  Y.hiddenElements = /* @__PURE__ */ new Set();
811
811
  let G = Y;
812
- function Wt(p) {
812
+ function Ut(p) {
813
813
  return new pt(p);
814
814
  }
815
815
  class pt extends G {
@@ -866,7 +866,7 @@ class pt extends G {
866
866
  function ut(p) {
867
867
  return new G(p);
868
868
  }
869
- function zt(p) {
869
+ function jt(p) {
870
870
  return p;
871
871
  }
872
872
  class gt extends S {
@@ -1121,7 +1121,7 @@ class W extends S {
1121
1121
  };
1122
1122
  }
1123
1123
  }
1124
- class Ut extends S {
1124
+ class _t extends S {
1125
1125
  constructor(t = {}) {
1126
1126
  super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
1127
1127
  }
@@ -1412,7 +1412,7 @@ class yt extends S {
1412
1412
  }), t.appendChild(i), t;
1413
1413
  }
1414
1414
  }
1415
- class jt extends S {
1415
+ class qt extends S {
1416
1416
  constructor(t) {
1417
1417
  super(t), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
1418
1418
  }
@@ -1441,7 +1441,7 @@ class jt extends S {
1441
1441
  return o.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), o.appendChild(t), o;
1442
1442
  }
1443
1443
  }
1444
- class _t extends S {
1444
+ class Jt extends S {
1445
1445
  constructor(t = {}) {
1446
1446
  super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
1447
1447
  const e = t.width || 0, i = t.height || 0;
@@ -1712,7 +1712,7 @@ class ot extends S {
1712
1712
  }, t;
1713
1713
  }
1714
1714
  }
1715
- class qt extends F {
1715
+ class Zt extends F {
1716
1716
  constructor(t = {}) {
1717
1717
  super({
1718
1718
  ...t,
@@ -1733,7 +1733,7 @@ class qt extends F {
1733
1733
  const Mt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
1734
1734
  <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"/>
1735
1735
  </svg>`;
1736
- class Jt extends F {
1736
+ class Xt extends F {
1737
1737
  constructor(t = {}) {
1738
1738
  super({
1739
1739
  ...t,
@@ -1758,7 +1758,7 @@ const St = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
1758
1758
  <polyline points="6 9 12 15 18 9"></polyline>
1759
1759
  </svg>
1760
1760
  `;
1761
- class Zt extends S {
1761
+ class Yt extends S {
1762
1762
  constructor(t = {}) {
1763
1763
  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) {
1764
1764
  const e = this._options.findIndex(
@@ -1905,7 +1905,7 @@ class Zt extends S {
1905
1905
  ), this.updateButtonText();
1906
1906
  }
1907
1907
  }
1908
- class Xt extends S {
1908
+ class Kt extends S {
1909
1909
  constructor(t) {
1910
1910
  var e, i;
1911
1911
  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;
@@ -1958,7 +1958,7 @@ class Xt extends S {
1958
1958
  const Nt = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1959
1959
  <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"/>
1960
1960
  </svg>`;
1961
- class Yt extends S {
1961
+ class Qt extends S {
1962
1962
  // Store mobile value
1963
1963
  constructor(t = {}) {
1964
1964
  t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ?? Nt, 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);
@@ -2015,7 +2015,7 @@ class Yt extends S {
2015
2015
  const Vt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
2016
2016
  <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"/>
2017
2017
  </svg>`;
2018
- class Kt extends F {
2018
+ class te extends F {
2019
2019
  constructor(t = {}) {
2020
2020
  super({
2021
2021
  ...t,
@@ -2032,7 +2032,7 @@ const Ht = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
2032
2032
  <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"
2033
2033
  stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2034
2034
  </svg>`;
2035
- class Qt extends F {
2035
+ class ee extends F {
2036
2036
  constructor(t = {}) {
2037
2037
  super({
2038
2038
  ...t,
@@ -2045,7 +2045,7 @@ class Qt extends F {
2045
2045
  }), this.inputType = "number";
2046
2046
  }
2047
2047
  }
2048
- class te extends S {
2048
+ class ie extends S {
2049
2049
  constructor(t) {
2050
2050
  super(t), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), t.default ? this.value = { ...t.default } : this.value || (this.value = {}), this.defaultLanguage = t.languages.includes(S.DefaultLanguage) ? S.DefaultLanguage : t.languages[0];
2051
2051
  const e = t.defaultValue || `Enter text in ${this.capitalizeFirstLetter(this.defaultLanguage)}`;
@@ -2078,13 +2078,13 @@ class te extends S {
2078
2078
  return;
2079
2079
  }
2080
2080
  const c = "...";
2081
- let h = 0, d = e.length, g = 0;
2081
+ let h = 0, d = e.length, m = 0;
2082
2082
  for (; h <= d; ) {
2083
- const C = Math.floor((h + d) / 2), u = e.slice(0, C).trimEnd() + c;
2084
- this.measureTextWidth(u, i) <= l ? (g = C, h = C + 1) : d = C - 1;
2083
+ const g = Math.floor((h + d) / 2), f = e.slice(0, g).trimEnd() + c;
2084
+ this.measureTextWidth(f, i) <= l ? (m = g, h = g + 1) : d = g - 1;
2085
2085
  }
2086
- const f = e.slice(0, g).trimEnd() + c;
2087
- t.placeholder = f;
2086
+ const u = e.slice(0, m).trimEnd() + c;
2087
+ t.placeholder = u;
2088
2088
  }
2089
2089
  autosizeTextarea(t, e = 3) {
2090
2090
  t.style.height = "auto";
@@ -2192,7 +2192,7 @@ class te extends S {
2192
2192
  });
2193
2193
  }
2194
2194
  }
2195
- class ee extends S {
2195
+ class se extends S {
2196
2196
  constructor(t = {}) {
2197
2197
  super(t), this.inputType = "select";
2198
2198
  const e = [
@@ -2233,7 +2233,84 @@ const at = `<svg
2233
2233
  fill="#919EAB"
2234
2234
  />
2235
2235
  </svg>`;
2236
- class Tt {
2236
+ function Tt(p) {
2237
+ try {
2238
+ const t = p.match(/linear-gradient\(([^)]+)\)/);
2239
+ if (t) {
2240
+ const e = t[1].trim();
2241
+ let i = 90;
2242
+ const s = e.match(/(\d+)deg/);
2243
+ s ? i = parseInt(s[1]) : e.includes("to right") ? i = 90 : e.includes("to left") ? i = 270 : e.includes("to top") ? i = 0 : e.includes("to bottom") ? i = 180 : e.includes("to top right") ? i = 45 : e.includes("to top left") ? i = 315 : e.includes("to bottom right") ? i = 135 : e.includes("to bottom left") && (i = 225);
2244
+ const n = [];
2245
+ let o = "", a = 0;
2246
+ for (let r = 0; r < e.length; r++) {
2247
+ const c = e[r];
2248
+ c === "(" && a++, c === ")" && a--, c === "," && a === 0 ? (n.push(o.trim()), o = "") : o += c;
2249
+ }
2250
+ o.trim() && n.push(o.trim());
2251
+ const l = [];
2252
+ for (let r = 0; r < n.length; r++) {
2253
+ const c = n[r];
2254
+ if (c.includes("deg") || c.includes("to ")) continue;
2255
+ let h = "", d = 0, m = 100;
2256
+ const u = c.match(/rgba?\(([^)]+)\)(?:\s*(\d+)%)?/);
2257
+ if (u) {
2258
+ const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), E = parseInt(g[1]), v = parseInt(g[2]), w = g[3] ? parseFloat(g[3]) : 1;
2259
+ h = `#${f.toString(16).padStart(2, "0")}${E.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(w * 100), u[2] ? d = parseInt(u[2]) : d = Math.round(r / Math.max(n.length - 2, 1) * 100);
2260
+ } else {
2261
+ const g = c.match(/#([a-fA-F0-9]{3,8})(?:\s*(\d+)%)?/);
2262
+ g && (h = `#${g[1]}`, g[2] ? d = parseInt(g[2]) : d = Math.round(r / Math.max(n.length - 2, 1) * 100));
2263
+ }
2264
+ h && l.push({
2265
+ color: h,
2266
+ position: d,
2267
+ opacity: m
2268
+ });
2269
+ }
2270
+ if (l.length === 0) {
2271
+ console.log(
2272
+ "No positioned stops found, trying to extract colors without positions"
2273
+ );
2274
+ const r = e.match(
2275
+ /(#[a-fA-F0-9]{3,8}|rgba?\([^)]+\))/g
2276
+ );
2277
+ r && r.forEach((c, h) => {
2278
+ let d = "", m = 100;
2279
+ if (c.startsWith("#"))
2280
+ d = c;
2281
+ else {
2282
+ const u = c.match(/rgba?\(([^)]+)\)/);
2283
+ if (u) {
2284
+ const g = u[1].split(",").map((V) => V.trim()), f = parseInt(g[0]), E = parseInt(g[1]), v = parseInt(g[2]), w = g[3] ? parseFloat(g[3]) : 1;
2285
+ d = `#${f.toString(16).padStart(2, "0")}${E.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`, m = Math.round(w * 100);
2286
+ }
2287
+ }
2288
+ if (d) {
2289
+ const u = Math.round(
2290
+ h / Math.max(r.length - 1, 1) * 100
2291
+ );
2292
+ console.log(
2293
+ `Auto-positioned stop: ${d} at ${u}% with ${m}% opacity`
2294
+ ), l.push({
2295
+ color: d,
2296
+ position: u,
2297
+ opacity: m
2298
+ });
2299
+ }
2300
+ });
2301
+ }
2302
+ return {
2303
+ type: "linear",
2304
+ angle: i,
2305
+ stops: l
2306
+ };
2307
+ }
2308
+ return null;
2309
+ } catch (t) {
2310
+ return console.warn("Failed to parse CSS gradient:", p, t), null;
2311
+ }
2312
+ }
2313
+ class Pt {
2237
2314
  constructor(t) {
2238
2315
  this.isOpen = !1, this.currentColor = "#ff0000", this.currentOpacity = 100, this.isUpdatingHue = !1, this.handleOutsideClick = (e) => {
2239
2316
  const i = document.querySelector(".gradient-popover");
@@ -2267,22 +2344,22 @@ class Tt {
2267
2344
  h.className = "color-picker-opacity", this.opacitySlider = h;
2268
2345
  const d = document.createElement("div");
2269
2346
  d.className = "color-picker-opacity-marker", this.opacityMarker = d, h.appendChild(d);
2270
- const g = document.createElement("div");
2271
- g.className = "color-picker-format-section";
2272
- const f = document.createElement("select");
2273
- f.className = "color-picker-format-select", this.formatSelect = f;
2274
- const C = document.createElement("option");
2275
- C.value = "hex", C.textContent = "HEX";
2276
- const u = document.createElement("option");
2277
- u.value = "rgb", u.textContent = "RGB";
2347
+ const m = document.createElement("div");
2348
+ m.className = "color-picker-format-section";
2349
+ const u = document.createElement("select");
2350
+ u.className = "color-picker-format-select", this.formatSelect = u;
2351
+ const g = document.createElement("option");
2352
+ g.value = "hex", g.textContent = "HEX";
2353
+ const f = document.createElement("option");
2354
+ f.value = "rgb", f.textContent = "RGB";
2278
2355
  const E = document.createElement("option");
2279
- E.value = "hsl", E.textContent = "HSL", f.appendChild(C), f.appendChild(u), f.appendChild(E);
2356
+ E.value = "hsl", E.textContent = "HSL", u.appendChild(g), u.appendChild(f), u.appendChild(E);
2280
2357
  const v = document.createElement("input");
2281
2358
  v.type = "text", v.className = "color-picker-color-input", v.value = this.currentColor, this.hexInput = v;
2282
- const L = document.createElement("div");
2283
- L.className = "color-picker-input-container";
2284
- const T = document.createElement("button");
2285
- return T.className = "color-picker-copy-inside", T.textContent = "Copy", T.addEventListener("click", () => this.copyToClipboard()), L.appendChild(v), L.appendChild(T), g.appendChild(f), g.appendChild(L), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(h), t.appendChild(g), this.setupEyedropper(l), this.setupEventListeners(), t.addEventListener("click", (z) => {
2359
+ const w = document.createElement("div");
2360
+ w.className = "color-picker-input-container";
2361
+ const V = document.createElement("button");
2362
+ return V.className = "color-picker-copy-inside", V.textContent = "Copy", V.addEventListener("click", () => this.copyToClipboard()), w.appendChild(v), w.appendChild(V), m.appendChild(u), m.appendChild(w), t.appendChild(e), t.appendChild(n), t.appendChild(a), t.appendChild(h), t.appendChild(m), this.setupEyedropper(l), this.setupEventListeners(), t.addEventListener("click", (z) => {
2286
2363
  z.stopPropagation();
2287
2364
  }), t;
2288
2365
  }
@@ -2483,10 +2560,10 @@ class Tt {
2483
2560
  }, r = (h) => {
2484
2561
  if (!i) return;
2485
2562
  h.preventDefault(), h.stopPropagation();
2486
- const d = h.clientX - s, g = h.clientY - n;
2487
- let f = o + d, C = a + g;
2488
- const u = window.innerWidth, E = window.innerHeight, v = e.offsetWidth, L = e.offsetHeight;
2489
- f = Math.max(8, Math.min(u - v - 8, f)), C = Math.max(8, Math.min(E - L - 8, C)), e.style.left = `${f}px`, e.style.top = `${C}px`;
2563
+ const d = h.clientX - s, m = h.clientY - n;
2564
+ let u = o + d, g = a + m;
2565
+ const f = window.innerWidth, E = window.innerHeight, v = e.offsetWidth, w = e.offsetHeight;
2566
+ u = Math.max(8, Math.min(f - v - 8, u)), g = Math.max(8, Math.min(E - w - 8, g)), e.style.left = `${u}px`, e.style.top = `${g}px`;
2490
2567
  }, c = (h) => {
2491
2568
  i && (i = !1, h.preventDefault(), h.stopPropagation(), e.classList.remove("dragging"), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", c), document.body.style.userSelect = "");
2492
2569
  };
@@ -2499,43 +2576,71 @@ class Tt {
2499
2576
  return this.element;
2500
2577
  }
2501
2578
  }
2502
- class ie extends S {
2579
+ class Ot extends S {
2503
2580
  constructor(t = {}) {
2504
- super({
2505
- ...t,
2506
- title: t.title || "Gradient",
2507
- default: t.default || {
2581
+ let e;
2582
+ if (typeof t.default == "string")
2583
+ if (t.default.match(/^#[a-fA-F0-9]{3,8}$/)) {
2584
+ let i = t.default, s = 100;
2585
+ if (i.length === 9) {
2586
+ const n = parseInt(i.slice(-2), 16);
2587
+ s = Math.round(n / 255 * 100), i = i.slice(0, 7);
2588
+ }
2589
+ e = {
2590
+ type: "solid",
2591
+ angle: 90,
2592
+ stops: [{ color: i, position: 0, opacity: s }]
2593
+ };
2594
+ } else
2595
+ e = Tt(t.default) || {
2596
+ type: "linear",
2597
+ angle: 90,
2598
+ stops: [
2599
+ { color: "#a84b4b", position: 0, opacity: 100 },
2600
+ { color: "#786666", position: 100, opacity: 100 }
2601
+ ]
2602
+ };
2603
+ else
2604
+ e = t.default || {
2508
2605
  type: "linear",
2509
2606
  angle: 90,
2510
2607
  stops: [
2511
2608
  { color: "#a84b4b", position: 0, opacity: 100 },
2512
2609
  { color: "#786666", position: 100, opacity: 100 }
2513
2610
  ]
2514
- }
2611
+ };
2612
+ super({
2613
+ ...t,
2614
+ title: t.title || "Gradient",
2615
+ default: e
2515
2616
  }), this.inputType = {
2516
2617
  type: "text",
2517
2618
  angle: "number",
2518
2619
  stops: "text"
2519
- }, this.element = null, this.previewElement = null, this.textInputElement = null, this.popoverElement = null, this.placeholderTrigger = null, this.isPopoverOpen = !1, this.isUserEditing = !1, this.handleBackgroundClick = (e) => {
2520
- var l;
2620
+ }, this.element = null, this.previewElement = null, this.textInputElement = null, this.popoverElement = null, this.placeholderTrigger = null, this.isPopoverOpen = !1, this.isUserEditing = !1, this.handleBackgroundClick = (i) => {
2621
+ var r;
2521
2622
  if (!this.popoverElement || !this.isPopoverOpen) return;
2522
- const i = e.target, s = this.popoverElement.contains(i), n = (l = this.element) == null ? void 0 : l.contains(i), o = document.querySelectorAll(".custom-color-picker"), a = Array.from(o).some(
2523
- (r) => r.contains(i)
2623
+ const s = i.target, n = this.popoverElement.contains(s), o = (r = this.element) == null ? void 0 : r.contains(s), a = document.querySelectorAll(".custom-color-picker"), l = Array.from(a).some(
2624
+ (c) => c.contains(s)
2524
2625
  );
2525
- !s && !n && !a && this.closePopover();
2626
+ !n && !o && !l && this.closePopover();
2526
2627
  }, this.detectChange = t.detectChange, this.forText = t.forText || !1;
2527
2628
  }
2528
2629
  setValue(t) {
2529
- t ? (this.value = t, this.value.stops && this.value.stops.forEach((e) => {
2530
- e.opacity === void 0 && (e.opacity = 100);
2531
- })) : this.value = {
2630
+ let e;
2631
+ !t || !this.isValidGradientValue(t) ? (console.warn(
2632
+ "Invalid gradient value in setValue, using default:",
2633
+ t
2634
+ ), e = {
2532
2635
  type: "linear",
2533
2636
  angle: 90,
2534
2637
  stops: [
2535
2638
  { color: "#a84b4b", position: 0, opacity: 100 },
2536
2639
  { color: "#786666", position: 100, opacity: 100 }
2537
2640
  ]
2538
- }, this.updateUI(), this.isPopoverOpen && this.refreshPopoverContent(), this.onChange && this.onChange(this.value), this.detectChange && this.detectChange(this.value);
2641
+ }) : (e = t, e.stops && e.stops.forEach((i) => {
2642
+ i.opacity === void 0 && (i.opacity = 100);
2643
+ })), super.setValue(e), this.updateUI(), this.isPopoverOpen && this.refreshPopoverContent();
2539
2644
  }
2540
2645
  updateUI() {
2541
2646
  if (this.previewElement && this.value)
@@ -2589,14 +2694,22 @@ class ie extends S {
2589
2694
  s.stopPropagation(), this.openPopover();
2590
2695
  }), e.appendChild(this.previewElement), e.appendChild(this.textInputElement), e.appendChild(i), this.placeholderTrigger = i, t.appendChild(e), this.createPopover(), this.element = t, t;
2591
2696
  }
2697
+ isValidGradientValue(t) {
2698
+ return !t || typeof t != "object" || !t.type || !["linear", "radial", "solid"].includes(t.type) || t.type !== "solid" && typeof t.angle != "number" || !Array.isArray(t.stops) || t.stops.length === 0 ? !1 : t.stops.every(
2699
+ (e) => e && typeof e.color == "string" && typeof e.position == "number"
2700
+ );
2701
+ }
2592
2702
  generateCSS(t) {
2593
- if (!t) return "linear-gradient(90deg, #a84b4b 0%, #786666 100%)";
2703
+ if (!t || !this.isValidGradientValue(t))
2704
+ return console.warn("Invalid gradient value passed to generateCSS:", t), "linear-gradient(90deg, #a84b4b 0%, #786666 100%)";
2594
2705
  if (t.type === "solid") {
2595
2706
  const i = t.stops && t.stops.length > 0 ? t.stops[0] : null;
2596
2707
  if (!i) return "#000000";
2597
2708
  const s = i.opacity !== void 0 ? i.opacity : 100, n = Math.round(s / 100 * 255).toString(16).toUpperCase().padStart(2, "0");
2598
2709
  return `#${i.color.replace("#", "")}${n}`;
2599
2710
  }
2711
+ if (!t.stops || !Array.isArray(t.stops) || t.stops.length === 0)
2712
+ return console.warn("Invalid gradient stops in generateCSS:", t), "linear-gradient(90deg, #a84b4b 0%, #786666 100%)";
2600
2713
  const e = t.stops.map((i) => {
2601
2714
  const s = i.opacity !== void 0 ? i.opacity : 100;
2602
2715
  return `${this.addOpacityToColor(i.color, s)} ${i.position}%`;
@@ -2704,8 +2817,8 @@ class ie extends S {
2704
2817
  const i = ((l = (a = (o = this.value) == null ? void 0 : o.stops) == null ? void 0 : a[0]) == null ? void 0 : l.color) || "#000000", s = ((h = (c = (r = this.value) == null ? void 0 : r.stops) == null ? void 0 : c[0]) == null ? void 0 : h.opacity) || 100, n = this.createEmbeddedColorPickerWithOpacity(
2705
2818
  i,
2706
2819
  s,
2707
- (d, g) => {
2708
- this.value && (!this.value.stops || this.value.stops.length === 0 ? this.value.stops = [{ color: d, position: 0, opacity: g }] : (this.value.stops[0].color = d, this.value.stops[0].opacity = g), this.updateUI(), this.triggerChange());
2820
+ (d, m) => {
2821
+ this.value && (!this.value.stops || this.value.stops.length === 0 ? this.value.stops = [{ color: d, position: 0, opacity: m }] : (this.value.stops[0].color = d, this.value.stops[0].opacity = m), this.updateUI(), this.triggerChange());
2709
2822
  }
2710
2823
  );
2711
2824
  e.appendChild(n), t.appendChild(e);
@@ -2731,29 +2844,29 @@ class ie extends S {
2731
2844
  h.className = "color-picker-opacity embedded";
2732
2845
  const d = document.createElement("div");
2733
2846
  d.className = "color-picker-opacity-marker", h.appendChild(d);
2734
- const g = document.createElement("div");
2735
- g.className = "color-picker-format-section embedded";
2736
- const f = document.createElement("select");
2737
- f.className = "color-picker-format-select";
2738
- const C = document.createElement("option");
2739
- C.value = "hex", C.textContent = "HEX";
2740
- const u = document.createElement("option");
2741
- u.value = "rgb", u.textContent = "RGB";
2847
+ const m = document.createElement("div");
2848
+ m.className = "color-picker-format-section embedded";
2849
+ const u = document.createElement("select");
2850
+ u.className = "color-picker-format-select";
2851
+ const g = document.createElement("option");
2852
+ g.value = "hex", g.textContent = "HEX";
2853
+ const f = document.createElement("option");
2854
+ f.value = "rgb", f.textContent = "RGB";
2742
2855
  const E = document.createElement("option");
2743
- E.value = "hsl", E.textContent = "HSL", f.appendChild(C), f.appendChild(u), f.appendChild(E);
2856
+ E.value = "hsl", E.textContent = "HSL", u.appendChild(g), u.appendChild(f), u.appendChild(E);
2744
2857
  const v = document.createElement("input");
2745
2858
  v.type = "text", v.className = "color-picker-color-input", v.value = t;
2746
- const L = document.createElement("div");
2747
- L.className = "color-picker-input-container";
2748
- const T = document.createElement("button");
2749
- return T.className = "color-picker-copy-inside", T.textContent = "Copy", L.appendChild(v), L.appendChild(T), g.appendChild(f), g.appendChild(L), s.appendChild(n), s.appendChild(a), s.appendChild(h), s.appendChild(g), this.setupEmbeddedColorPicker(
2859
+ const w = document.createElement("div");
2860
+ w.className = "color-picker-input-container";
2861
+ const V = document.createElement("button");
2862
+ return V.className = "color-picker-copy-inside", V.textContent = "Copy", w.appendChild(v), w.appendChild(V), m.appendChild(u), m.appendChild(w), s.appendChild(n), s.appendChild(a), s.appendChild(h), s.appendChild(m), this.setupEmbeddedColorPicker(
2750
2863
  n,
2751
2864
  o,
2752
2865
  r,
2753
2866
  c,
2754
- f,
2867
+ u,
2755
2868
  v,
2756
- T,
2869
+ V,
2757
2870
  l,
2758
2871
  t,
2759
2872
  e,
@@ -2787,24 +2900,24 @@ class ie extends S {
2787
2900
  h.className = "color-picker-format-section embedded";
2788
2901
  const d = document.createElement("select");
2789
2902
  d.className = "color-picker-format-select";
2903
+ const m = document.createElement("option");
2904
+ m.value = "hex", m.textContent = "HEX";
2905
+ const u = document.createElement("option");
2906
+ u.value = "rgb", u.textContent = "RGB";
2790
2907
  const g = document.createElement("option");
2791
- g.value = "hex", g.textContent = "HEX";
2792
- const f = document.createElement("option");
2793
- f.value = "rgb", f.textContent = "RGB";
2794
- const C = document.createElement("option");
2795
- C.value = "hsl", C.textContent = "HSL", d.appendChild(g), d.appendChild(f), d.appendChild(C);
2796
- const u = document.createElement("input");
2797
- u.type = "text", u.className = "color-picker-color-input", u.value = t;
2908
+ g.value = "hsl", g.textContent = "HSL", d.appendChild(m), d.appendChild(u), d.appendChild(g);
2909
+ const f = document.createElement("input");
2910
+ f.type = "text", f.className = "color-picker-color-input", f.value = t;
2798
2911
  const E = document.createElement("div");
2799
2912
  E.className = "color-picker-input-container";
2800
2913
  const v = document.createElement("button");
2801
- return v.className = "color-picker-copy-inside", v.textContent = "Copy", E.appendChild(u), E.appendChild(v), h.appendChild(d), h.appendChild(E), s.appendChild(n), s.appendChild(a), s.appendChild(h), this.setupEmbeddedColorPicker(
2914
+ return v.className = "color-picker-copy-inside", v.textContent = "Copy", E.appendChild(f), E.appendChild(v), h.appendChild(d), h.appendChild(E), s.appendChild(n), s.appendChild(a), s.appendChild(h), this.setupEmbeddedColorPicker(
2802
2915
  n,
2803
2916
  o,
2804
2917
  r,
2805
2918
  c,
2806
2919
  d,
2807
- u,
2920
+ f,
2808
2921
  v,
2809
2922
  l,
2810
2923
  t,
@@ -2814,102 +2927,102 @@ class ie extends S {
2814
2927
  }
2815
2928
  setupEmbeddedColorPicker(t, e, i, s, n, o, a, l, r, c, h) {
2816
2929
  let d = r;
2817
- const { h: g, s: f, v: C } = this.hexToHsv(r);
2818
- let u = c;
2819
- s.style.left = `${g / 360 * 100}%`, e.style.left = `${f * 100}%`, e.style.top = `${(1 - C) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${g}, 100%, 50%))`;
2820
- const E = (m, b = u) => {
2821
- d = m, u = Math.round(b), v(), h(m, u);
2930
+ const { h: m, s: u, v: g } = this.hexToHsv(r);
2931
+ let f = c;
2932
+ s.style.left = `${m / 360 * 100}%`, e.style.left = `${u * 100}%`, e.style.top = `${(1 - g) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${m}, 100%, 50%))`;
2933
+ const E = (C, b = f) => {
2934
+ d = C, f = Math.round(b), v(), h(C, f);
2822
2935
  }, v = () => {
2823
- const m = n.value, { h: b, s: w, v: x } = this.hexToHsv(d);
2824
- switch (m) {
2936
+ const C = n.value, { h: b, s: x, v: L } = this.hexToHsv(d);
2937
+ switch (C) {
2825
2938
  case "hex":
2826
2939
  o.value = d;
2827
2940
  break;
2828
2941
  case "rgb":
2829
- const { r: V, g: $, b: R } = this.hexToRgb(d);
2830
- o.value = `rgb(${V}, ${$}, ${R})`;
2942
+ const { r: H, g: $, b: R } = this.hexToRgb(d);
2943
+ o.value = `rgb(${H}, ${$}, ${R})`;
2831
2944
  break;
2832
2945
  case "hsl":
2833
- const { hue: B, sat: _, lightness: K } = this.hsvToHsl(b, w, x);
2946
+ const { hue: B, sat: _, lightness: K } = this.hsvToHsl(b, x, L);
2834
2947
  o.value = `hsl(${Math.round(B)}, ${Math.round(
2835
2948
  _ * 100
2836
2949
  )}%, ${Math.round(K * 100)}%)`;
2837
2950
  break;
2838
2951
  }
2839
- }, L = () => parseFloat(s.style.left || "0%") / 100 * 360, T = (m, b) => {
2840
- const w = L(), x = this.hsvToHex(w, m, b);
2841
- E(x, u);
2842
- }, z = (m) => {
2843
- m = Math.max(0.1, Math.min(358.9, m));
2844
- const b = parseFloat(e.style.left || "50%") / 100, w = parseFloat(e.style.top || "50%") / 100;
2845
- t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${m}, 100%, 50%))`;
2846
- const x = b, V = 1 - w, $ = this.hsvToHex(m, x, V);
2847
- E($, u);
2848
- }, U = (m) => {
2849
- m.stopPropagation();
2850
- const b = t.getBoundingClientRect(), w = Math.max(0, Math.min(1, (m.clientX - b.left) / b.width)), x = Math.max(0, Math.min(1, (m.clientY - b.top) / b.height));
2851
- e.style.left = `${w * 100}%`, e.style.top = `${x * 100}%`, T(w, 1 - x);
2852
- }, I = (m) => {
2853
- m.preventDefault(), m.stopPropagation(), U(m);
2854
- const b = (x) => U(x), w = () => {
2855
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
2952
+ }, w = () => parseFloat(s.style.left || "0%") / 100 * 360, V = (C, b) => {
2953
+ const x = w(), L = this.hsvToHex(x, C, b);
2954
+ E(L, f);
2955
+ }, z = (C) => {
2956
+ C = Math.max(0.1, Math.min(358.9, C));
2957
+ const b = parseFloat(e.style.left || "50%") / 100, x = parseFloat(e.style.top || "50%") / 100;
2958
+ t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${C}, 100%, 50%))`;
2959
+ const L = b, H = 1 - x, $ = this.hsvToHex(C, L, H);
2960
+ E($, f);
2961
+ }, U = (C) => {
2962
+ C.stopPropagation();
2963
+ const b = t.getBoundingClientRect(), x = Math.max(0, Math.min(1, (C.clientX - b.left) / b.width)), L = Math.max(0, Math.min(1, (C.clientY - b.top) / b.height));
2964
+ e.style.left = `${x * 100}%`, e.style.top = `${L * 100}%`, V(x, 1 - L);
2965
+ }, I = (C) => {
2966
+ C.preventDefault(), C.stopPropagation(), U(C);
2967
+ const b = (L) => U(L), x = () => {
2968
+ document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x);
2856
2969
  };
2857
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
2858
- }, y = (m) => {
2859
- m.stopPropagation();
2970
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", x);
2971
+ }, y = (C) => {
2972
+ C.stopPropagation();
2860
2973
  const b = i.getBoundingClientRect();
2861
- let w = (m.clientX - b.left) / b.width;
2862
- w = Math.max(1e-3, Math.min(0.998, w)), s.style.left = `${w * 100}%`;
2863
- const x = w * 360;
2864
- z(x);
2865
- }, k = (m) => {
2866
- m.preventDefault(), m.stopPropagation(), y(m);
2867
- const b = (x) => y(x), w = () => {
2868
- document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", w);
2974
+ let x = (C.clientX - b.left) / b.width;
2975
+ x = Math.max(1e-3, Math.min(0.998, x)), s.style.left = `${x * 100}%`;
2976
+ const L = x * 360;
2977
+ z(L);
2978
+ }, k = (C) => {
2979
+ C.preventDefault(), C.stopPropagation(), y(C);
2980
+ const b = (L) => y(L), x = () => {
2981
+ document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x);
2869
2982
  };
2870
- document.addEventListener("mousemove", b), document.addEventListener("mouseup", w);
2871
- }, P = (m) => {
2872
- const b = m.target.value, w = n.value;
2873
- let x = "";
2874
- if (w === "hex" && /^#[0-9A-Fa-f]{6}$/.test(b))
2875
- x = b;
2876
- else if (w === "rgb") {
2877
- const V = b.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
2878
- if (V) {
2879
- const $ = parseInt(V[1]), R = parseInt(V[2]), B = parseInt(V[3]);
2880
- $ <= 255 && R <= 255 && B <= 255 && (x = `#${$.toString(16).padStart(2, "0")}${R.toString(16).padStart(2, "0")}${B.toString(16).padStart(2, "0")}`);
2983
+ document.addEventListener("mousemove", b), document.addEventListener("mouseup", x);
2984
+ }, P = (C) => {
2985
+ const b = C.target.value, x = n.value;
2986
+ let L = "";
2987
+ if (x === "hex" && /^#[0-9A-Fa-f]{6}$/.test(b))
2988
+ L = b;
2989
+ else if (x === "rgb") {
2990
+ const H = b.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
2991
+ if (H) {
2992
+ const $ = parseInt(H[1]), R = parseInt(H[2]), B = parseInt(H[3]);
2993
+ $ <= 255 && R <= 255 && B <= 255 && (L = `#${$.toString(16).padStart(2, "0")}${R.toString(16).padStart(2, "0")}${B.toString(16).padStart(2, "0")}`);
2881
2994
  }
2882
- } else if (w === "hsl") {
2883
- const V = b.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
2884
- if (V) {
2885
- const $ = parseInt(V[1]), R = parseInt(V[2]) / 100, B = parseInt(V[3]) / 100;
2995
+ } else if (x === "hsl") {
2996
+ const H = b.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
2997
+ if (H) {
2998
+ const $ = parseInt(H[1]), R = parseInt(H[2]) / 100, B = parseInt(H[3]) / 100;
2886
2999
  if ($ <= 360 && R <= 1 && B <= 1) {
2887
3000
  const _ = B + R * Math.min(B, 1 - B), K = _ === 0 ? 0 : 2 * (1 - B / _);
2888
- x = this.hsvToHex($, K, _);
3001
+ L = this.hsvToHex($, K, _);
2889
3002
  }
2890
3003
  }
2891
3004
  }
2892
- if (x) {
2893
- const { h: V, s: $, v: R } = this.hexToHsv(x);
2894
- s.style.left = `${V / 360 * 100}%`, e.style.left = `${$ * 100}%`, e.style.top = `${(1 - R) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${V}, 100%, 50%))`, E(x, u);
3005
+ if (L) {
3006
+ const { h: H, s: $, v: R } = this.hexToHsv(L);
3007
+ s.style.left = `${H / 360 * 100}%`, e.style.left = `${$ * 100}%`, e.style.top = `${(1 - R) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${H}, 100%, 50%))`, E(L, f);
2895
3008
  }
2896
- }, O = (m) => {
3009
+ }, O = (C) => {
2897
3010
  v();
2898
- }, H = () => {
3011
+ }, T = () => {
2899
3012
  v();
2900
3013
  }, M = () => {
2901
3014
  navigator.clipboard.writeText(o.value).catch(() => {
2902
3015
  o.select(), document.execCommand("copy");
2903
3016
  });
2904
3017
  };
2905
- v(), t.addEventListener("mousedown", I), t.addEventListener("click", U), i.addEventListener("mousedown", k), i.addEventListener("click", y), n.addEventListener("change", H), o.addEventListener("input", P), o.addEventListener("blur", O), a.addEventListener("click", M);
3018
+ v(), t.addEventListener("mousedown", I), t.addEventListener("click", U), i.addEventListener("mousedown", k), i.addEventListener("click", y), n.addEventListener("change", T), o.addEventListener("input", P), o.addEventListener("blur", O), a.addEventListener("click", M);
2906
3019
  const A = async () => {
2907
3020
  if ("EyeDropper" in window)
2908
3021
  try {
2909
- const w = (await new window.EyeDropper().open()).sRGBHex, { h: x, s: V, v: $ } = this.hexToHsv(w);
2910
- s.style.left = `${x / 360 * 100}%`, e.style.left = `${V * 100}%`, e.style.top = `${(1 - $) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${x}, 100%, 50%))`, E(w, u);
2911
- } catch (m) {
2912
- console.log("User cancelled eyedropper or error occurred:", m);
3022
+ const x = (await new window.EyeDropper().open()).sRGBHex, { h: L, s: H, v: $ } = this.hexToHsv(x);
3023
+ s.style.left = `${L / 360 * 100}%`, e.style.left = `${H * 100}%`, e.style.top = `${(1 - $) * 100}%`, t.style.background = `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${L}, 100%, 50%))`, E(x, f);
3024
+ } catch (C) {
3025
+ console.log("User cancelled eyedropper or error occurred:", C);
2913
3026
  }
2914
3027
  else
2915
3028
  alert(
@@ -2933,8 +3046,8 @@ class ie extends S {
2933
3046
  o(), a();
2934
3047
  let l = !1;
2935
3048
  const r = (c) => {
2936
- const h = t.getBoundingClientRect(), d = c.clientX - h.left, g = Math.max(0, Math.min(100, d / h.width * 100)), f = Math.round(g);
2937
- s = f, a(), n(i, f);
3049
+ const h = t.getBoundingClientRect(), d = c.clientX - h.left, m = Math.max(0, Math.min(100, d / h.width * 100)), u = Math.round(m);
3050
+ s = u, a(), n(i, u);
2938
3051
  };
2939
3052
  t.addEventListener("mousedown", (c) => {
2940
3053
  l = !0, r(c);
@@ -2973,31 +3086,31 @@ class ie extends S {
2973
3086
  <svg width="15" height="17" viewBox="0 0 15 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2974
3087
  <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"/>
2975
3088
  </svg>
2976
- `, l.title = "Flip gradient", i.addEventListener("change", (u) => {
2977
- const E = u.target.value;
3089
+ `, l.title = "Flip gradient", i.addEventListener("change", (f) => {
3090
+ const E = f.target.value;
2978
3091
  this.switchType(E === "radial" ? "radial" : "linear");
2979
- }), o.addEventListener("input", (u) => {
2980
- const E = u.target.value, v = parseInt(E);
3092
+ }), o.addEventListener("input", (f) => {
3093
+ const E = f.target.value, v = parseInt(E);
2981
3094
  if (this.value && !isNaN(v)) {
2982
- const L = Math.max(0, Math.min(360, v));
2983
- this.value.angle = L, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3095
+ const w = Math.max(0, Math.min(360, v));
3096
+ this.value.angle = w, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
2984
3097
  }
2985
- }), o.addEventListener("focus", (u) => {
2986
- const E = u.target;
3098
+ }), o.addEventListener("focus", (f) => {
3099
+ const E = f.target;
2987
3100
  E.value = E.value.replace(/[^0-9-]/g, ""), setTimeout(() => E.select(), 0);
2988
- }), o.addEventListener("blur", (u) => {
2989
- var L;
2990
- const E = u.target;
3101
+ }), o.addEventListener("blur", (f) => {
3102
+ var w;
3103
+ const E = f.target;
2991
3104
  let v = parseInt(E.value);
2992
- isNaN(v) && (v = ((L = this.value) == null ? void 0 : L.angle) ?? 0), v = Math.max(0, Math.min(360, v)), this.value && (this.value.angle = v), E.value = `${v}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3105
+ isNaN(v) && (v = ((w = this.value) == null ? void 0 : w.angle) ?? 0), v = Math.max(0, Math.min(360, v)), this.value && (this.value.angle = v), E.value = `${v}°`, this.updateGradientPreview(), this.updateUI(), this.triggerChange();
2993
3106
  }), l.addEventListener("click", () => {
2994
- this.value && (this.value.stops = this.value.stops.map((u) => ({
2995
- ...u,
2996
- position: 100 - u.position
3107
+ this.value && (this.value.stops = this.value.stops.map((f) => ({
3108
+ ...f,
3109
+ position: 100 - f.position
2997
3110
  })), this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), this.triggerChange());
2998
3111
  }), e.appendChild(i), e.appendChild(o), e.appendChild(l), t.appendChild(e), (() => {
2999
- var u;
3000
- ((u = this.value) == null ? void 0 : u.type) === "radial" ? (o.disabled = !0, o.style.opacity = "0.5") : (o.disabled = !1, o.style.opacity = "1");
3112
+ var f;
3113
+ ((f = this.value) == null ? void 0 : f.type) === "radial" ? (o.disabled = !0, o.style.opacity = "0.5") : (o.disabled = !1, o.style.opacity = "1");
3001
3114
  })();
3002
3115
  const c = document.createElement("div");
3003
3116
  c.className = "gradient-preview", this.updateGradientPreview(c);
@@ -3005,13 +3118,13 @@ class ie extends S {
3005
3118
  h.className = "gradient-handles", this.createGradientHandles(h, c), c.appendChild(h), t.appendChild(c);
3006
3119
  const d = document.createElement("div");
3007
3120
  d.className = "gradient-stops-header";
3008
- const g = document.createElement("span");
3009
- g.textContent = "Stops";
3010
- const f = document.createElement("button");
3011
- f.type = "button", f.className = "gradient-add-stop", f.textContent = "+", d.appendChild(g), d.appendChild(f);
3012
- const C = document.createElement("div");
3013
- C.className = "gradient-stops", t.appendChild(d), t.appendChild(C), this.updateStopsList(C), f.addEventListener("click", () => {
3014
- this.addGradientStop(), this.updateStopsList(C), this.updateGradientPreview(c), this.createGradientHandles(h, c), this.updateUI();
3121
+ const m = document.createElement("span");
3122
+ m.textContent = "Stops";
3123
+ const u = document.createElement("button");
3124
+ u.type = "button", u.className = "gradient-add-stop", u.textContent = "+", d.appendChild(m), d.appendChild(u);
3125
+ const g = document.createElement("div");
3126
+ g.className = "gradient-stops", t.appendChild(d), t.appendChild(g), this.updateStopsList(g), u.addEventListener("click", () => {
3127
+ this.addGradientStop(), this.updateStopsList(g), this.updateGradientPreview(c), this.createGradientHandles(h, c), this.updateUI();
3015
3128
  });
3016
3129
  }
3017
3130
  updateGradientPreview(t) {
@@ -3030,16 +3143,16 @@ class ie extends S {
3030
3143
  makeDraggable(t, e, i) {
3031
3144
  let s = !1, n = 0, o = 0, a = null;
3032
3145
  const l = (d) => "touches" in d && d.touches.length > 0 ? d.touches[0].clientX : d.clientX, r = (d) => {
3033
- var g, f, C;
3034
- s = !0, n = l(d), o = ((C = (f = (g = this.value) == null ? void 0 : g.stops) == null ? void 0 : f[i]) == null ? void 0 : C.position) || 0, t.classList.add("selected"), document.addEventListener("pointermove", c, { passive: !1 }), document.addEventListener("pointerup", h), document.addEventListener("mousemove", c, { passive: !1 }), document.addEventListener("mouseup", h), document.addEventListener("touchmove", c, {
3146
+ var m, u, g;
3147
+ s = !0, n = l(d), o = ((g = (u = (m = this.value) == null ? void 0 : m.stops) == null ? void 0 : u[i]) == null ? void 0 : g.position) || 0, t.classList.add("selected"), document.addEventListener("pointermove", c, { passive: !1 }), document.addEventListener("pointerup", h), document.addEventListener("mousemove", c, { passive: !1 }), document.addEventListener("mouseup", h), document.addEventListener("touchmove", c, {
3035
3148
  passive: !1
3036
3149
  }), document.addEventListener("touchend", h), d.preventDefault();
3037
3150
  }, c = (d) => {
3038
3151
  var E, v;
3039
3152
  if (!s || !((v = (E = this.value) == null ? void 0 : E.stops) != null && v[i])) return;
3040
- const g = e.getBoundingClientRect(), C = (l(d) - n) / g.width * 100;
3041
- let u = o + C;
3042
- u = Math.max(0, Math.min(100, u)), this.value.stops[i].position = Math.round(u), t.style.left = `${u}%`, a && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
3153
+ const m = e.getBoundingClientRect(), g = (l(d) - n) / m.width * 100;
3154
+ let f = o + g;
3155
+ f = Math.max(0, Math.min(100, f)), this.value.stops[i].position = Math.round(f), t.style.left = `${f}%`, a && cancelAnimationFrame(a), a = requestAnimationFrame(() => {
3043
3156
  this.updateGradientPreview(), this.updateStopsList(), this.updateUI(), a = null;
3044
3157
  }), d.preventDefault();
3045
3158
  }, h = () => {
@@ -3070,15 +3183,15 @@ class ie extends S {
3070
3183
  d.type = "button", d.className = "gstop-color-copy", d.innerHTML = `<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3071
3184
  <path d="M14.5896 19.3033L13.4111 20.4818C11.7839 22.109 9.14575 22.109 7.51856 20.4818C5.89138 18.8546 5.89138 16.2164 7.51856 14.5892L8.69708 13.4107M19.3037 14.5892L20.4822 13.4107C22.1094 11.7835 22.1094 9.14535 20.4822 7.51816C18.855 5.89098 16.2168 5.89098 14.5896 7.51816L13.4111 8.69668M11.0837 16.9166L16.917 11.0833" stroke="#919EAB" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
3072
3185
  </svg>`, r.appendChild(c), r.appendChild(h), r.appendChild(d);
3073
- const g = document.createElement("button");
3074
- g.type = "button", g.className = "gstop-del", g.innerHTML = `<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
3186
+ const m = document.createElement("button");
3187
+ m.type = "button", m.className = "gstop-del", m.innerHTML = `<svg width="14" height="2" viewBox="0 0 14 2" fill="none" xmlns="http://www.w3.org/2000/svg">
3075
3188
  <path d="M0.8 0.800003H12.4667" stroke="#919EAB" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
3076
- </svg>`, g.disabled = (((U = (z = this.value) == null ? void 0 : z.stops) == null ? void 0 : U.length) || 0) <= 2, l.addEventListener("input", (I) => {
3189
+ </svg>`, m.disabled = (((U = (z = this.value) == null ? void 0 : z.stops) == null ? void 0 : U.length) || 0) <= 2, l.addEventListener("input", (I) => {
3077
3190
  var O;
3078
3191
  const y = I.target, k = y.value.replace(/[^\d]/g, ""), P = parseInt(k);
3079
3192
  if (this.value && !isNaN(P)) {
3080
- const H = Math.max(0, Math.min(100, P));
3081
- this.value.stops[n].position = H, y.value = `${H}%`;
3193
+ const T = Math.max(0, Math.min(100, P));
3194
+ this.value.stops[n].position = T, y.value = `${T}%`;
3082
3195
  const M = (O = this.popoverElement) == null ? void 0 : O.querySelector(
3083
3196
  ".gradient-preview"
3084
3197
  ), A = M == null ? void 0 : M.querySelector(
@@ -3090,35 +3203,35 @@ class ie extends S {
3090
3203
  const y = I.target, k = y.value.replace("%", "");
3091
3204
  y.value = k, y.select();
3092
3205
  }), l.addEventListener("blur", (I) => {
3093
- var O, H;
3206
+ var O, T;
3094
3207
  const y = I.target, k = y.value.replace(/[^\d]/g, ""), P = parseInt(k);
3095
3208
  if (isNaN(P))
3096
- y.value = `${((H = (O = this.value) == null ? void 0 : O.stops[n]) == null ? void 0 : H.position) || 0}%`;
3209
+ y.value = `${((T = (O = this.value) == null ? void 0 : O.stops[n]) == null ? void 0 : T.position) || 0}%`;
3097
3210
  else {
3098
3211
  const M = Math.max(0, Math.min(100, P));
3099
3212
  y.value = `${M}%`, this.value && (this.value.stops[n].position = M, this.updateGradientPreview(), this.updateUI(), this.triggerChange());
3100
3213
  }
3101
3214
  });
3102
- const f = new Tt(
3215
+ const u = new Pt(
3103
3216
  (I, y) => {
3104
3217
  var k, P, O;
3105
3218
  if (h.value = I.replace("#", "").toUpperCase(), c.style.backgroundColor = I, this.value) {
3106
3219
  this.value.stops[n].color = I, y !== void 0 && (this.value.stops[n].opacity = y);
3107
- const H = (k = o.parentElement) == null ? void 0 : k.querySelector(
3220
+ const T = (k = o.parentElement) == null ? void 0 : k.querySelector(
3108
3221
  ".gstop-opacity-slider"
3109
3222
  );
3110
- if (H) {
3111
- const m = this.hexToRgb(I);
3112
- H.style.setProperty(
3223
+ if (T) {
3224
+ const C = this.hexToRgb(I);
3225
+ T.style.setProperty(
3113
3226
  "--slider-color",
3114
- `rgb(${m.r}, ${m.g}, ${m.b})`
3227
+ `rgb(${C.r}, ${C.g}, ${C.b})`
3115
3228
  );
3116
3229
  }
3117
3230
  if (y !== void 0) {
3118
- const m = (P = o.parentElement) == null ? void 0 : P.querySelector(
3231
+ const C = (P = o.parentElement) == null ? void 0 : P.querySelector(
3119
3232
  ".gstop-opacity-value"
3120
3233
  );
3121
- m && (m.textContent = `${y}%`), H && (H.value = y.toString());
3234
+ C && (C.textContent = `${y}%`), T && (T.value = y.toString());
3122
3235
  }
3123
3236
  const M = (O = this.popoverElement) == null ? void 0 : O.querySelector(
3124
3237
  ".gradient-preview"
@@ -3130,20 +3243,20 @@ class ie extends S {
3130
3243
  }
3131
3244
  );
3132
3245
  h.addEventListener("click", (I) => {
3133
- I.stopPropagation(), f.open(s.color, h, s.opacity || 100);
3246
+ I.stopPropagation(), u.open(s.color, h, s.opacity || 100);
3134
3247
  }), h.addEventListener("input", (I) => {
3135
3248
  var P, O;
3136
3249
  const y = I.target.value.trim(), k = y.startsWith("#") ? y : `#${y}`;
3137
3250
  if (/^#[0-9A-Fa-f]{6}$/.test(k) && (c.style.backgroundColor = k, this.value)) {
3138
3251
  this.value.stops[n].color = k;
3139
- const H = (P = o.parentElement) == null ? void 0 : P.querySelector(
3252
+ const T = (P = o.parentElement) == null ? void 0 : P.querySelector(
3140
3253
  ".gstop-opacity-slider"
3141
3254
  );
3142
- if (H) {
3143
- const m = this.hexToRgb(k);
3144
- H.style.setProperty(
3255
+ if (T) {
3256
+ const C = this.hexToRgb(k);
3257
+ T.style.setProperty(
3145
3258
  "--slider-color",
3146
- `rgb(${m.r}, ${m.g}, ${m.b})`
3259
+ `rgb(${C.r}, ${C.g}, ${C.b})`
3147
3260
  );
3148
3261
  }
3149
3262
  const M = (O = this.popoverElement) == null ? void 0 : O.querySelector(
@@ -3167,7 +3280,7 @@ class ie extends S {
3167
3280
  } catch (k) {
3168
3281
  console.warn("Failed to copy color to clipboard:", k);
3169
3282
  }
3170
- }), g.addEventListener("click", () => {
3283
+ }), m.addEventListener("click", () => {
3171
3284
  var I;
3172
3285
  if (this.value && this.value.stops.length > 2) {
3173
3286
  this.value.stops.splice(n, 1);
@@ -3178,22 +3291,22 @@ class ie extends S {
3178
3291
  );
3179
3292
  y && k && this.createGradientHandles(k, y), this.updateStopsList(), this.updateGradientPreview(), this.updateUI(), this.triggerChange();
3180
3293
  }
3181
- }), o.appendChild(a), o.appendChild(r), o.appendChild(g), e.appendChild(o);
3182
- const C = document.createElement("div");
3183
- C.className = "gstop-opacity-row";
3184
- const u = document.createElement("span");
3185
- u.className = "gstop-opacity-label", u.textContent = "Opacity";
3294
+ }), o.appendChild(a), o.appendChild(r), o.appendChild(m), e.appendChild(o);
3295
+ const g = document.createElement("div");
3296
+ g.className = "gstop-opacity-row";
3297
+ const f = document.createElement("span");
3298
+ f.className = "gstop-opacity-label", f.textContent = "Opacity";
3186
3299
  const E = document.createElement("div");
3187
3300
  E.className = "gstop-opacity-group";
3188
3301
  const v = document.createElement("input");
3189
3302
  v.type = "range", v.className = "gstop-opacity-slider", v.min = "0", v.max = "100", v.value = (s.opacity !== void 0 ? s.opacity : 100).toString();
3190
- const L = this.hexToRgb(s.color);
3303
+ const w = this.hexToRgb(s.color);
3191
3304
  v.style.setProperty(
3192
3305
  "--slider-color",
3193
- `rgb(${L.r}, ${L.g}, ${L.b})`
3306
+ `rgb(${w.r}, ${w.g}, ${w.b})`
3194
3307
  );
3195
- const T = document.createElement("span");
3196
- T.className = "gstop-opacity-value", T.textContent = `${s.opacity !== void 0 ? s.opacity : 100}%`;
3308
+ const V = document.createElement("span");
3309
+ V.className = "gstop-opacity-value", V.textContent = `${s.opacity !== void 0 ? s.opacity : 100}%`;
3197
3310
  }));
3198
3311
  }
3199
3312
  addGradientStop() {
@@ -3461,16 +3574,16 @@ class ie extends S {
3461
3574
  return this.value;
3462
3575
  }
3463
3576
  }
3464
- const Pt = `
3577
+ const $t = `
3465
3578
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3466
3579
  <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"/>
3467
3580
  </svg>
3468
- `, Ot = `
3581
+ `, At = `
3469
3582
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3470
3583
  <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"/>
3471
3584
  </svg>
3472
3585
  `;
3473
- class se extends G {
3586
+ class ne extends G {
3474
3587
  constructor(t) {
3475
3588
  super({
3476
3589
  title: "Border",
@@ -3478,7 +3591,7 @@ class se extends G {
3478
3591
  settings: {
3479
3592
  size: new F({
3480
3593
  title: "Size",
3481
- icon: Ot,
3594
+ icon: At,
3482
3595
  default: (t == null ? void 0 : t.size) ?? 0,
3483
3596
  suffix: "px"
3484
3597
  }),
@@ -3487,7 +3600,7 @@ class se extends G {
3487
3600
  }),
3488
3601
  radius: new F({
3489
3602
  title: "Radius",
3490
- icon: Pt,
3603
+ icon: $t,
3491
3604
  default: (t == null ? void 0 : t.radius) ?? 12,
3492
3605
  suffix: "px"
3493
3606
  })
@@ -3506,33 +3619,34 @@ class se extends G {
3506
3619
  `;
3507
3620
  }
3508
3621
  }
3509
- const $t = `
3622
+ const Bt = `
3510
3623
  <svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
3511
3624
  <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"/>
3512
3625
  </svg>
3513
- `, At = `
3626
+ `, Dt = `
3514
3627
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3515
3628
  <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"/>
3516
3629
  </svg>
3517
- `, Bt = `
3630
+ `, Ft = `
3518
3631
  <svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3519
3632
  <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"/>
3520
3633
  </svg>
3521
3634
  `;
3522
- class ne extends G {
3635
+ class oe extends G {
3523
3636
  constructor(t = {}) {
3524
3637
  const { showAlign: e = t.showAlign ?? !0, ...i } = t;
3525
3638
  super({
3526
3639
  title: i.title || "Typography",
3527
3640
  collapsed: i.collapsed,
3528
3641
  settings: (() => {
3529
- const s = {
3530
- color: new W({
3531
- default: i.colorDefault ?? "0, 0, 30"
3642
+ const s = i.gradientDefault || i.colorDefault, n = {
3643
+ color: new Ot({
3644
+ forText: !0,
3645
+ default: s
3532
3646
  }),
3533
3647
  fontFamily: new et({
3534
3648
  title: "Font",
3535
- icon: $t,
3649
+ icon: Bt,
3536
3650
  default: i.fontFamilyDefault ?? "Satoshi",
3537
3651
  options: i.fontFamilyOptions ?? [
3538
3652
  { name: "Alt", value: "Croco Sans Black Caps Alt" },
@@ -3545,7 +3659,7 @@ class ne extends G {
3545
3659
  }),
3546
3660
  fontWeight: new et({
3547
3661
  title: "Weight",
3548
- icon: At,
3662
+ icon: Dt,
3549
3663
  default: i.fontWeightDefault ?? "400",
3550
3664
  options: i.fontWeightOptions ?? [
3551
3665
  { name: "Regular", value: "400" },
@@ -3557,32 +3671,41 @@ class ne extends G {
3557
3671
  }),
3558
3672
  fontSize: new F({
3559
3673
  title: "Size",
3560
- icon: Bt,
3674
+ icon: Ft,
3561
3675
  default: i.fontSizeDefault ?? 12,
3562
3676
  suffix: "px",
3563
3677
  mobile: i.fontSizeMobileDefault
3564
3678
  })
3565
3679
  };
3566
3680
  return e ? {
3567
- ...s,
3681
+ ...n,
3568
3682
  align: new yt({
3569
3683
  title: "Align",
3570
3684
  default: i.alignDefault ?? "center"
3571
3685
  })
3572
- } : s;
3686
+ } : n;
3573
3687
  })()
3574
3688
  });
3575
3689
  }
3576
3690
  getCssCode() {
3577
- var o;
3578
- 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";
3579
- return `
3580
- color: ${t};
3581
- font-family: ${e};
3582
- font-weight: ${i};
3583
- font-size: ${s}px;
3584
- text-align: ${n};
3585
- `;
3691
+ var a;
3692
+ const t = this.settings.color.getCSSValue() ?? "rgba(0, 0, 0, 1)", e = this.settings.fontFamily.value ?? "Satoshi", i = this.settings.fontWeight.value ?? "400", s = this.settings.fontSize.value ?? 12, n = ((a = this.settings.align) == null ? void 0 : a.value) ?? "left";
3693
+ return t.includes("gradient") ? `
3694
+ background: ${t};
3695
+ -webkit-background-clip: text;
3696
+ -webkit-text-fill-color: transparent;
3697
+ background-clip: text;
3698
+ font-family: ${e};
3699
+ font-weight: ${i};
3700
+ font-size: ${s}px;
3701
+ text-align: ${n};
3702
+ ` : `
3703
+ color: ${t};
3704
+ font-family: ${e};
3705
+ font-weight: ${i};
3706
+ font-size: ${s}px;
3707
+ text-align: ${n};
3708
+ `;
3586
3709
  }
3587
3710
  }
3588
3711
  class J extends S {
@@ -3631,7 +3754,7 @@ class J extends S {
3631
3754
  }), i;
3632
3755
  }
3633
3756
  }
3634
- class oe extends G {
3757
+ class ae extends G {
3635
3758
  constructor(t) {
3636
3759
  super({
3637
3760
  title: "Margins",
@@ -3639,25 +3762,25 @@ class oe extends G {
3639
3762
  settings: {
3640
3763
  marginTop: new J({
3641
3764
  title: "Top",
3642
- icon: Dt,
3765
+ icon: Rt,
3643
3766
  suffix: "px",
3644
3767
  default: (t == null ? void 0 : t.marginTop) ?? "auto"
3645
3768
  }),
3646
3769
  marginRight: new J({
3647
3770
  title: "Right",
3648
- icon: Ft,
3771
+ icon: Gt,
3649
3772
  suffix: "px",
3650
3773
  default: (t == null ? void 0 : t.marginRight) ?? 0
3651
3774
  }),
3652
3775
  marginBottom: new J({
3653
3776
  title: "Bottom",
3654
- icon: Rt,
3777
+ icon: Wt,
3655
3778
  suffix: "px",
3656
3779
  default: (t == null ? void 0 : t.marginBottom) ?? 0
3657
3780
  }),
3658
3781
  marginLeft: new J({
3659
3782
  title: "Left",
3660
- icon: Gt,
3783
+ icon: zt,
3661
3784
  suffix: "px",
3662
3785
  default: (t == null ? void 0 : t.marginLeft) ?? 0
3663
3786
  })
@@ -3674,16 +3797,16 @@ class oe extends G {
3674
3797
  `;
3675
3798
  }
3676
3799
  }
3677
- const Dt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3800
+ const Rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3678
3801
  <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"/>
3679
- </svg>`, Ft = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3802
+ </svg>`, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3680
3803
  <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"/>
3681
- </svg>`, Rt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3804
+ </svg>`, Wt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3682
3805
  <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"/>
3683
- </svg>`, Gt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3806
+ </svg>`, zt = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
3684
3807
  <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"/>
3685
3808
  </svg>`;
3686
- class ae extends G {
3809
+ class le extends G {
3687
3810
  constructor(t) {
3688
3811
  super({
3689
3812
  title: "Background Image",
@@ -3724,37 +3847,37 @@ class ae extends G {
3724
3847
  }
3725
3848
  export {
3726
3849
  yt as AlignSetting,
3727
- ee as AnimationSetting,
3728
- ae as BackgroundSettingSet,
3729
- se as BorderSettingSet,
3730
- jt as ButtonSetting,
3850
+ se as AnimationSetting,
3851
+ le as BackgroundSettingSet,
3852
+ ne as BorderSettingSet,
3853
+ qt as ButtonSetting,
3731
3854
  D as ColorSetting,
3732
3855
  W as ColorWithOpacitySetting,
3733
- _t as DimensionSetting,
3734
- Yt as GapSetting,
3735
- ie as GradientSetting,
3736
- ne as HeaderTypographySettingSet,
3737
- qt as HeightSetting,
3738
- Ut as HtmlSetting,
3739
- Kt as MarginBottomSetting,
3740
- oe as MarginSettingGroup,
3741
- Qt as MarginTopSetting,
3742
- te as MultiLanguageSetting,
3856
+ Jt as DimensionSetting,
3857
+ Qt as GapSetting,
3858
+ Ot as GradientSetting,
3859
+ oe as HeaderTypographySettingSet,
3860
+ Zt as HeightSetting,
3861
+ _t as HtmlSetting,
3862
+ te as MarginBottomSetting,
3863
+ ae as MarginSettingGroup,
3864
+ ee as MarginTopSetting,
3865
+ ie as MultiLanguageSetting,
3743
3866
  F as NumberSetting,
3744
3867
  Ct as OpacitySetting,
3745
- Zt as SelectApiSettings,
3868
+ Yt as SelectApiSettings,
3746
3869
  et as SelectSetting,
3747
3870
  S as Setting,
3748
3871
  G as SettingGroup,
3749
3872
  gt as StringSetting,
3750
3873
  pt as TabSettingGroup,
3751
3874
  pt as TabsSettingGroup,
3752
- Xt as Toggle,
3875
+ Kt as Toggle,
3753
3876
  ot as UploadSetting,
3754
- Jt as WidthSetting,
3755
- zt as asSettingGroupWithSettings,
3877
+ Xt as WidthSetting,
3878
+ jt as asSettingGroupWithSettings,
3756
3879
  ut as createSettingGroup,
3757
- Wt as createTabSettingGroup,
3880
+ Ut as createTabSettingGroup,
3758
3881
  j as isSetting,
3759
3882
  st as isSettingChild,
3760
3883
  N as isSettingGroup,