builder-settings-types 0.0.355 → 0.0.356
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
|
|
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,
|
|
150
|
+
globalThis.DefaultUploadUrl = t, I.DefaultUploadUrl = t;
|
|
151
151
|
}
|
|
152
152
|
static SetDefaultLanguage(t) {
|
|
153
|
-
globalThis.DefaultLanguage = t,
|
|
153
|
+
globalThis.DefaultLanguage = t, I.DefaultLanguage = t;
|
|
154
154
|
}
|
|
155
155
|
static CurrentLanguage(t) {
|
|
156
|
-
return t !== void 0 && (
|
|
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
|
|
159
|
+
return I.currentLanguageExplicitlySet;
|
|
160
160
|
}
|
|
161
161
|
static onLanguageChange(t) {
|
|
162
|
-
return
|
|
163
|
-
|
|
162
|
+
return I.languageChangeCallbacks.add(t), () => {
|
|
163
|
+
I.languageChangeCallbacks.delete(t);
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
static SetGlobalVariables(t) {
|
|
167
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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()),
|
|
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
|
|
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:
|
|
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 &&
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
567
|
-
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 =
|
|
612
|
+
let i = U(t), s = "solid";
|
|
613
613
|
if (i)
|
|
614
614
|
s = "solid";
|
|
615
615
|
else {
|
|
616
|
-
const l =
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
674
|
+
const t = V(c);
|
|
675
675
|
if (t)
|
|
676
676
|
return et(t);
|
|
677
|
-
const e =
|
|
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
|
-
},
|
|
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>`,
|
|
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 =
|
|
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 =
|
|
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 } =
|
|
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" && (
|
|
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
|
|
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 =
|
|
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 =
|
|
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 } =
|
|
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" && (
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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:
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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((
|
|
1460
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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((
|
|
1672
|
-
this.clearGlobalBindingForCustomChange(), p.value =
|
|
1673
|
-
const
|
|
1674
|
-
f.style.setProperty("--slider-color", `rgb(${
|
|
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
|
|
1705
|
-
this.value.stops[n].position =
|
|
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
|
|
1714
|
-
this.value.stops[n].position =
|
|
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 && (
|
|
1770
|
-
if (this.isPopoverOpen = !0,
|
|
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 =
|
|
1818
|
-
|
|
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),
|
|
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() :
|
|
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 =
|
|
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
|
-
},
|
|
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 :
|
|
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 :
|
|
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
|
-
|
|
1873
|
-
let J =
|
|
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 ?
|
|
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 ?
|
|
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
|
|
2500
|
+
function ci(c) {
|
|
2501
2501
|
return new Xt(c);
|
|
2502
2502
|
}
|
|
2503
2503
|
class Xt extends $ {
|
|
@@ -2564,7 +2564,7 @@ class Xt extends $ {
|
|
|
2564
2564
|
function Yt(c) {
|
|
2565
2565
|
return new $(c);
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function hi(c) {
|
|
2568
2568
|
return c;
|
|
2569
2569
|
}
|
|
2570
2570
|
class Kt extends w {
|
|
@@ -2758,14 +2758,14 @@ const te = `
|
|
|
2758
2758
|
<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
2759
|
<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
2760
|
</svg>`;
|
|
2761
|
-
class
|
|
2761
|
+
class j extends w {
|
|
2762
2762
|
constructor(t = {}) {
|
|
2763
2763
|
super({
|
|
2764
2764
|
...t,
|
|
2765
2765
|
icon: t.icon || te,
|
|
2766
2766
|
title: t.title || "Color & Opacity",
|
|
2767
2767
|
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 =
|
|
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 = j.normalizeHexWithOpacity(this.value));
|
|
2769
2769
|
}
|
|
2770
2770
|
static normalizeHexWithOpacity(t) {
|
|
2771
2771
|
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 +2783,7 @@ class _ extends w {
|
|
|
2783
2783
|
return `#${i}${n}`;
|
|
2784
2784
|
}
|
|
2785
2785
|
setValue(t) {
|
|
2786
|
-
t === void 0 || t === "" ? this.value = "#000000FF" : this.value =
|
|
2786
|
+
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
2787
|
}
|
|
2788
2788
|
updateInputElements() {
|
|
2789
2789
|
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 +2794,7 @@ class _ extends w {
|
|
|
2794
2794
|
this.colorPreviewEl.style.backgroundColor = `rgba(${s}, ${n}, ${o}, ${e})`;
|
|
2795
2795
|
}
|
|
2796
2796
|
handleColorChange(t) {
|
|
2797
|
-
const e = this.getOpacityPercent(), i =
|
|
2797
|
+
const e = this.getOpacityPercent(), i = j.combineColorOpacity(
|
|
2798
2798
|
t,
|
|
2799
2799
|
e
|
|
2800
2800
|
);
|
|
@@ -2805,7 +2805,7 @@ class _ extends w {
|
|
|
2805
2805
|
return e || i ? (this.setValue(t), !0) : !1;
|
|
2806
2806
|
}
|
|
2807
2807
|
handleOpacityChange(t) {
|
|
2808
|
-
const e = this.getRgbColor(), i = Math.max(0, Math.min(100, t)), s =
|
|
2808
|
+
const e = this.getRgbColor(), i = Math.max(0, Math.min(100, t)), s = j.combineColorOpacity(
|
|
2809
2809
|
e,
|
|
2810
2810
|
i
|
|
2811
2811
|
);
|
|
@@ -2895,7 +2895,7 @@ class _ extends w {
|
|
|
2895
2895
|
};
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
2898
|
-
class
|
|
2898
|
+
class di extends w {
|
|
2899
2899
|
constructor(t = {}) {
|
|
2900
2900
|
super(t), this.inputType = "text", t.onChange && this.setOnChange(t.onChange);
|
|
2901
2901
|
}
|
|
@@ -3180,7 +3180,7 @@ class ne extends w {
|
|
|
3180
3180
|
}), t.appendChild(i), t;
|
|
3181
3181
|
}
|
|
3182
3182
|
}
|
|
3183
|
-
class
|
|
3183
|
+
class pi extends w {
|
|
3184
3184
|
constructor(t) {
|
|
3185
3185
|
super(t), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
|
|
3186
3186
|
}
|
|
@@ -3209,7 +3209,7 @@ class di extends w {
|
|
|
3209
3209
|
return o.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), o.appendChild(t), o;
|
|
3210
3210
|
}
|
|
3211
3211
|
}
|
|
3212
|
-
class
|
|
3212
|
+
class ui extends w {
|
|
3213
3213
|
constructor(t = {}) {
|
|
3214
3214
|
super(t), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
|
|
3215
3215
|
const e = t.width || 0, i = t.height || 0;
|
|
@@ -3542,7 +3542,7 @@ const st = `
|
|
|
3542
3542
|
"image/gif",
|
|
3543
3543
|
"image/webp"
|
|
3544
3544
|
];
|
|
3545
|
-
function
|
|
3545
|
+
function Ie(c, t) {
|
|
3546
3546
|
if (!Me.includes(c.type))
|
|
3547
3547
|
return {
|
|
3548
3548
|
valid: !1,
|
|
@@ -3572,7 +3572,7 @@ function xt(c, t, e) {
|
|
|
3572
3572
|
y: nt(s)
|
|
3573
3573
|
};
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Vt(c) {
|
|
3576
3576
|
const t = c.map((i) => i.index).sort((i, s) => i - s);
|
|
3577
3577
|
let e = 1;
|
|
3578
3578
|
for (const i of t)
|
|
@@ -3582,8 +3582,8 @@ function Tt(c) {
|
|
|
3582
3582
|
break;
|
|
3583
3583
|
return e;
|
|
3584
3584
|
}
|
|
3585
|
-
function
|
|
3586
|
-
const e =
|
|
3585
|
+
function Se(c, t) {
|
|
3586
|
+
const e = Vt(c);
|
|
3587
3587
|
let i = `Prize ${e}`;
|
|
3588
3588
|
if (t && t.length > 0) {
|
|
3589
3589
|
const s = t[e - 1];
|
|
@@ -3646,7 +3646,7 @@ const gt = class gt {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
};
|
|
3648
3648
|
gt.styleInjected = !1;
|
|
3649
|
-
let
|
|
3649
|
+
let _ = gt;
|
|
3650
3650
|
class Ne {
|
|
3651
3651
|
constructor() {
|
|
3652
3652
|
this.overlayElement = null, this.activePromise = null;
|
|
@@ -3682,7 +3682,7 @@ class Ne {
|
|
|
3682
3682
|
this.overlayElement && (this.overlayElement.remove(), this.overlayElement = null), this.activePromise = null;
|
|
3683
3683
|
}
|
|
3684
3684
|
}
|
|
3685
|
-
class
|
|
3685
|
+
class Te {
|
|
3686
3686
|
constructor() {
|
|
3687
3687
|
this.element = document.createElement("div"), this.element.className = "marker-cursor-tooltip";
|
|
3688
3688
|
}
|
|
@@ -3706,7 +3706,7 @@ class Pe {
|
|
|
3706
3706
|
return t < e;
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
|
-
class
|
|
3709
|
+
class Pe {
|
|
3710
3710
|
constructor() {
|
|
3711
3711
|
this.history = [], this.historyIndex = -1;
|
|
3712
3712
|
}
|
|
@@ -3744,7 +3744,7 @@ class Ve {
|
|
|
3744
3744
|
this.history = [], this.historyIndex = -1;
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
|
-
class
|
|
3747
|
+
class Ve {
|
|
3748
3748
|
constructor() {
|
|
3749
3749
|
this.messageListener = null, this.handlers = /* @__PURE__ */ new Map();
|
|
3750
3750
|
}
|
|
@@ -3781,7 +3781,7 @@ class Te {
|
|
|
3781
3781
|
this.handlers.clear(), this.cleanupMessageListener();
|
|
3782
3782
|
}
|
|
3783
3783
|
}
|
|
3784
|
-
const Lt = new
|
|
3784
|
+
const Lt = new Ve();
|
|
3785
3785
|
function Oe(c, t) {
|
|
3786
3786
|
const e = document.createElement("div");
|
|
3787
3787
|
e.className = "marker-container", e.style.left = `${c.x}%`, e.style.top = `${c.y}%`, e.setAttribute("data-marker-id", String(c.id));
|
|
@@ -3991,13 +3991,15 @@ function We(c, t, e) {
|
|
|
3991
3991
|
}
|
|
3992
3992
|
return i.appendChild(n), i;
|
|
3993
3993
|
}
|
|
3994
|
-
const
|
|
3994
|
+
const je = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" fill="none">
|
|
3995
|
+
<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"/>
|
|
3996
|
+
</svg>`, A = class A extends w {
|
|
3995
3997
|
constructor(t = {}) {
|
|
3996
3998
|
var e;
|
|
3997
3999
|
super(t), this.inputType = {
|
|
3998
4000
|
imageUrl: "text",
|
|
3999
4001
|
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
|
|
4002
|
+
}, 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
4003
|
this.handleFileManagerImageSelected(i);
|
|
4002
4004
|
}), this.onBackgroundClick = (i) => {
|
|
4003
4005
|
if (this.isPopoverOpen && this.popoverElements && !this.popoverElements.popover.contains(i.target)) {
|
|
@@ -4085,7 +4087,7 @@ const A = class A extends w {
|
|
|
4085
4087
|
JSON.stringify(this.initialValue)
|
|
4086
4088
|
), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.triggerChange());
|
|
4087
4089
|
}
|
|
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);
|
|
4090
|
+
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
4091
|
}
|
|
4090
4092
|
}
|
|
4091
4093
|
positionPopoverElement() {
|
|
@@ -4097,6 +4099,7 @@ const A = class A extends w {
|
|
|
4097
4099
|
refreshPopoverContent() {
|
|
4098
4100
|
var a;
|
|
4099
4101
|
if (!this.popoverElements) return;
|
|
4102
|
+
this.clearErrorTooltip();
|
|
4100
4103
|
const t = this.popoverElements.content, e = t.querySelector(
|
|
4101
4104
|
".image-map-container"
|
|
4102
4105
|
), i = t.querySelector(
|
|
@@ -4119,7 +4122,7 @@ const A = class A extends w {
|
|
|
4119
4122
|
const r = document.createElement("div");
|
|
4120
4123
|
r.className = "image-map-main-layout";
|
|
4121
4124
|
const h = document.createElement("div");
|
|
4122
|
-
h.className = "image-map-image-section", this.cursorTooltip = new
|
|
4125
|
+
h.className = "image-map-image-section", this.cursorTooltip = new Te();
|
|
4123
4126
|
const { container: d, imageElement: p } = Fe(
|
|
4124
4127
|
this.value.imageUrl,
|
|
4125
4128
|
this.value.markers,
|
|
@@ -4202,16 +4205,16 @@ const A = class A extends w {
|
|
|
4202
4205
|
markers: n
|
|
4203
4206
|
}, this.previousImageDimensions = s, this.historyManager.initialize(n), this.updateUndoRedoButtons(), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
4204
4207
|
}, i.onerror = () => {
|
|
4205
|
-
|
|
4208
|
+
_.show("Failed to load image from file manager.");
|
|
4206
4209
|
}, i.src = t;
|
|
4207
4210
|
}
|
|
4208
4211
|
handleImageUpload(t) {
|
|
4209
|
-
const e = this.previousImageDimensions, i =
|
|
4212
|
+
const e = this.previousImageDimensions, i = Ie(
|
|
4210
4213
|
t,
|
|
4211
4214
|
this.props.maxFileSizeMB || bt
|
|
4212
4215
|
);
|
|
4213
4216
|
if (!i.valid) {
|
|
4214
|
-
|
|
4217
|
+
_.show(i.error);
|
|
4215
4218
|
return;
|
|
4216
4219
|
}
|
|
4217
4220
|
const s = new FileReader();
|
|
@@ -4235,22 +4238,21 @@ const A = class A extends w {
|
|
|
4235
4238
|
markers: h
|
|
4236
4239
|
}, this.previousImageDimensions = r, this.historyManager.initialize(h), this.updateUndoRedoButtons(), this.mainDisplayElements && O(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
4237
4240
|
}, l.onerror = () => {
|
|
4238
|
-
|
|
4241
|
+
_.show("Failed to read image file.");
|
|
4239
4242
|
}, l.src = o;
|
|
4240
4243
|
}
|
|
4241
4244
|
}, s.onerror = () => {
|
|
4242
|
-
|
|
4245
|
+
_.show("Failed to read image file.");
|
|
4243
4246
|
}, s.readAsDataURL(t);
|
|
4244
4247
|
}
|
|
4245
4248
|
handleImageClick(t) {
|
|
4246
4249
|
if (this.draggingMarkerId !== null || !this.value || !this.imageElement) return;
|
|
4247
4250
|
if (this.value.markers.length >= (this.props.maxMarkers || F)) {
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
);
|
|
4251
|
+
const r = `Maximum of ${this.props.maxMarkers || F} markers allowed.`;
|
|
4252
|
+
this.showErrorTooltip(r, t.clientX, t.clientY);
|
|
4251
4253
|
return;
|
|
4252
4254
|
}
|
|
4253
|
-
const e = this.imageElement.getBoundingClientRect(), { x: i, y: s } = xt(t.clientX, t.clientY, e), n =
|
|
4255
|
+
const e = this.imageElement.getBoundingClientRect(), { x: i, y: s } = xt(t.clientX, t.clientY, e), n = Vt(this.value.markers);
|
|
4254
4256
|
let o;
|
|
4255
4257
|
this.props.prizeMap && this.props.prizeMap.length > 0 && (o = this.props.prizeMap[n - 1]);
|
|
4256
4258
|
const a = {
|
|
@@ -4307,7 +4309,7 @@ const A = class A extends w {
|
|
|
4307
4309
|
if (!this.cursorTooltip || !this.value) return;
|
|
4308
4310
|
const t = this.props.maxMarkers || F;
|
|
4309
4311
|
if (this.cursorTooltip.shouldShow(this.value.markers.length, t)) {
|
|
4310
|
-
const e =
|
|
4312
|
+
const e = Se(
|
|
4311
4313
|
this.value.markers,
|
|
4312
4314
|
this.props.prizeMap
|
|
4313
4315
|
);
|
|
@@ -4354,8 +4356,42 @@ const A = class A extends w {
|
|
|
4354
4356
|
triggerChange() {
|
|
4355
4357
|
this.value && (this.onChange && this.onChange(this.value), this.props.detectChange && this.props.detectChange(this.value));
|
|
4356
4358
|
}
|
|
4359
|
+
showErrorTooltip(t, e, i) {
|
|
4360
|
+
if (!this.imageElement || !this.isPopoverOpen) return;
|
|
4361
|
+
const s = this.imageElement.parentElement;
|
|
4362
|
+
if (!s) return;
|
|
4363
|
+
const n = this.imageElement.getBoundingClientRect();
|
|
4364
|
+
if (!this.errorTooltipEl || !s.contains(this.errorTooltipEl)) {
|
|
4365
|
+
this.errorTooltipEl = document.createElement("div"), this.errorTooltipEl.className = "image-map-error-tooltip";
|
|
4366
|
+
const p = document.createElement("div");
|
|
4367
|
+
p.className = "image-map-error-tooltip-content", this.errorTooltipEl.appendChild(p);
|
|
4368
|
+
const u = document.createElement("div");
|
|
4369
|
+
u.className = "image-map-error-tooltip-tail", u.innerHTML = je, this.errorTooltipEl.appendChild(u), s.appendChild(this.errorTooltipEl);
|
|
4370
|
+
}
|
|
4371
|
+
const o = this.errorTooltipEl.querySelector(
|
|
4372
|
+
".image-map-error-tooltip-content"
|
|
4373
|
+
);
|
|
4374
|
+
o && (o.textContent = t);
|
|
4375
|
+
const a = s.getBoundingClientRect(), l = e - a.left, r = i - a.top, h = Math.min(
|
|
4376
|
+
Math.max(l, n.left - a.left),
|
|
4377
|
+
n.right - a.left
|
|
4378
|
+
), d = Math.min(
|
|
4379
|
+
Math.max(r, n.top - a.top),
|
|
4380
|
+
n.bottom - a.top
|
|
4381
|
+
);
|
|
4382
|
+
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(() => {
|
|
4383
|
+
this.hideErrorTooltip();
|
|
4384
|
+
}, 2e3);
|
|
4385
|
+
}
|
|
4386
|
+
hideErrorTooltip() {
|
|
4387
|
+
this.errorTooltipEl && (this.errorTooltipEl.classList.remove("visible"), this.errorTooltipTimeoutId = null);
|
|
4388
|
+
}
|
|
4389
|
+
clearErrorTooltip() {
|
|
4390
|
+
var t;
|
|
4391
|
+
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;
|
|
4392
|
+
}
|
|
4357
4393
|
destroy() {
|
|
4358
|
-
this.closePopover(), this.popoverElements && (this.popoverElements.backdrop.parentElement && this.popoverElements.backdrop.parentElement.removeChild(
|
|
4394
|
+
this.closePopover(), this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.parentElement && this.popoverElements.backdrop.parentElement.removeChild(
|
|
4359
4395
|
this.popoverElements.backdrop
|
|
4360
4396
|
), this.popoverElements.popover.parentElement && this.popoverElements.popover.parentElement.removeChild(
|
|
4361
4397
|
this.popoverElements.popover
|
|
@@ -4364,14 +4400,14 @@ const A = class A extends w {
|
|
|
4364
4400
|
};
|
|
4365
4401
|
A.openInstance = null;
|
|
4366
4402
|
let kt = A;
|
|
4367
|
-
class
|
|
4403
|
+
class _e extends B {
|
|
4368
4404
|
constructor(t = {}) {
|
|
4369
4405
|
super({
|
|
4370
4406
|
...t,
|
|
4371
4407
|
title: t.title || "Height",
|
|
4372
4408
|
suffix: t.suffix || "px",
|
|
4373
4409
|
minValue: t.minValue ?? 0,
|
|
4374
|
-
icon: t.icon ||
|
|
4410
|
+
icon: t.icon || qe,
|
|
4375
4411
|
default: t.default ?? 100
|
|
4376
4412
|
}), this.inputType = "number", this.mobileValue = t.mobile, this.suffix = t.suffix || "px";
|
|
4377
4413
|
}
|
|
@@ -4386,17 +4422,17 @@ class je extends B {
|
|
|
4386
4422
|
this.mobileValue = t, t !== void 0 && this.setValue(t);
|
|
4387
4423
|
}
|
|
4388
4424
|
}
|
|
4389
|
-
const
|
|
4425
|
+
const qe = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
4390
4426
|
<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
4427
|
</svg>`;
|
|
4392
|
-
class
|
|
4428
|
+
class Ze extends B {
|
|
4393
4429
|
constructor(t = {}) {
|
|
4394
4430
|
super({
|
|
4395
4431
|
...t,
|
|
4396
4432
|
title: t.title || "Width",
|
|
4397
4433
|
suffix: t.suffix || "px",
|
|
4398
4434
|
minValue: t.minValue ?? 0,
|
|
4399
|
-
icon: t.icon ||
|
|
4435
|
+
icon: t.icon || Je,
|
|
4400
4436
|
default: t.default ?? 100
|
|
4401
4437
|
}), this.inputType = "number", this.mobileValue = t.mobile;
|
|
4402
4438
|
}
|
|
@@ -4407,14 +4443,14 @@ class qe extends B {
|
|
|
4407
4443
|
this.mobileValue = t, t !== void 0 && this.setValue(t);
|
|
4408
4444
|
}
|
|
4409
4445
|
}
|
|
4410
|
-
const
|
|
4446
|
+
const Je = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
4411
4447
|
<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>`,
|
|
4448
|
+
</svg>`, Xe = `
|
|
4413
4449
|
<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
4450
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
4415
4451
|
</svg>
|
|
4416
4452
|
`;
|
|
4417
|
-
class
|
|
4453
|
+
class gi extends w {
|
|
4418
4454
|
constructor(t = {}) {
|
|
4419
4455
|
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
4456
|
const e = this._options.findIndex(
|
|
@@ -4471,7 +4507,7 @@ class ui extends w {
|
|
|
4471
4507
|
a.onclick = (l) => this.selectApiOption(l, o, e), i.appendChild(a);
|
|
4472
4508
|
}), t.appendChild(i);
|
|
4473
4509
|
const s = document.createElement("div");
|
|
4474
|
-
return s.classList.add("svg-container"), s.innerHTML =
|
|
4510
|
+
return s.classList.add("svg-container"), s.innerHTML = Xe, t.appendChild(s), s.onclick = () => {
|
|
4475
4511
|
var n, o;
|
|
4476
4512
|
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
4513
|
}, this.optionsListEl = i, this.svgContainer = s, this.props.getOptionsAsync && !this.hasInitializedOptions ? (this.isLoading = !0, this.updateButtonText(), this.props.getOptionsAsync().then((n) => {
|
|
@@ -4565,7 +4601,7 @@ class ui extends w {
|
|
|
4565
4601
|
), this.updateButtonText(), this.updateOptionsList(), this.detectChangeCallback && this.detectChangeCallback !== this.props.detectChange && this.detectChangeCallback(t);
|
|
4566
4602
|
}
|
|
4567
4603
|
}
|
|
4568
|
-
class
|
|
4604
|
+
class mi extends w {
|
|
4569
4605
|
constructor(t) {
|
|
4570
4606
|
var e, i;
|
|
4571
4607
|
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 +4651,13 @@ class gi extends w {
|
|
|
4615
4651
|
this.detectChangeCallback = t;
|
|
4616
4652
|
}
|
|
4617
4653
|
}
|
|
4618
|
-
const
|
|
4654
|
+
const Ye = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4619
4655
|
<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
4656
|
</svg>`;
|
|
4621
|
-
class
|
|
4657
|
+
class vi extends w {
|
|
4622
4658
|
// Store mobile value
|
|
4623
4659
|
constructor(t = {}) {
|
|
4624
|
-
t.rowGap = t.rowGap ?? !0, t.columnGap = t.columnGap ?? !0, t.title = t.title ?? "Gap", t.icon = t.icon ??
|
|
4660
|
+
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
4661
|
}
|
|
4626
4662
|
draw() {
|
|
4627
4663
|
const t = document.createElement("div");
|
|
@@ -4672,40 +4708,40 @@ class mi extends w {
|
|
|
4672
4708
|
this.mobileValue = t, t !== void 0 && this.setValue(t);
|
|
4673
4709
|
}
|
|
4674
4710
|
}
|
|
4675
|
-
const
|
|
4711
|
+
const Ke = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
4676
4712
|
<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
4713
|
</svg>`;
|
|
4678
|
-
class
|
|
4714
|
+
class fi extends B {
|
|
4679
4715
|
constructor(t = {}) {
|
|
4680
4716
|
super({
|
|
4681
4717
|
...t,
|
|
4682
4718
|
minValue: t.minValue ?? 0,
|
|
4683
4719
|
maxValue: t.maxValue ?? 1e3,
|
|
4684
|
-
icon: t.icon ||
|
|
4720
|
+
icon: t.icon || Ke,
|
|
4685
4721
|
title: t.title || "Margin Bottom",
|
|
4686
4722
|
default: t.default ?? 20,
|
|
4687
4723
|
wrapperClassName: "margin-bottom-wrapper " + (t.wrapperClassName || "")
|
|
4688
4724
|
}), this.inputType = "number";
|
|
4689
4725
|
}
|
|
4690
4726
|
}
|
|
4691
|
-
const
|
|
4727
|
+
const Qe = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
4692
4728
|
<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
4729
|
stroke="#667085" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4694
4730
|
</svg>`;
|
|
4695
|
-
class
|
|
4731
|
+
class Ci extends B {
|
|
4696
4732
|
constructor(t = {}) {
|
|
4697
4733
|
super({
|
|
4698
4734
|
...t,
|
|
4699
4735
|
minValue: t.minValue ?? 0,
|
|
4700
4736
|
maxValue: t.maxValue ?? 1e3,
|
|
4701
|
-
icon: t.icon ||
|
|
4737
|
+
icon: t.icon || Qe,
|
|
4702
4738
|
title: t.title || "Margin Top",
|
|
4703
4739
|
default: t.default ?? 20,
|
|
4704
4740
|
wrapperClassName: "margin-top-wrapper " + (t.wrapperClassName || "")
|
|
4705
4741
|
}), this.inputType = "number";
|
|
4706
4742
|
}
|
|
4707
4743
|
}
|
|
4708
|
-
class
|
|
4744
|
+
class yi extends w {
|
|
4709
4745
|
constructor(t) {
|
|
4710
4746
|
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
4747
|
const e = w.HasExplicitCurrentLanguage(), i = e ? w.CurrentLanguage() : "", s = w.DefaultLanguage;
|
|
@@ -4974,7 +5010,7 @@ class Ci extends w {
|
|
|
4974
5010
|
});
|
|
4975
5011
|
}
|
|
4976
5012
|
}
|
|
4977
|
-
class
|
|
5013
|
+
class Ei extends w {
|
|
4978
5014
|
constructor(t = {}) {
|
|
4979
5015
|
super(t), this.inputType = "select";
|
|
4980
5016
|
const e = [
|
|
@@ -5001,16 +5037,16 @@ class yi extends w {
|
|
|
5001
5037
|
this.selectSetting.destroy(), super.destroy();
|
|
5002
5038
|
}
|
|
5003
5039
|
}
|
|
5004
|
-
const
|
|
5040
|
+
const ti = `
|
|
5005
5041
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5006
5042
|
<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
5043
|
</svg>
|
|
5008
|
-
`,
|
|
5044
|
+
`, ei = `
|
|
5009
5045
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5010
5046
|
<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
5047
|
</svg>
|
|
5012
5048
|
`;
|
|
5013
|
-
class
|
|
5049
|
+
class bi extends $ {
|
|
5014
5050
|
constructor(t) {
|
|
5015
5051
|
super({
|
|
5016
5052
|
title: "Border",
|
|
@@ -5018,7 +5054,7 @@ class Ei extends $ {
|
|
|
5018
5054
|
settings: {
|
|
5019
5055
|
size: new B({
|
|
5020
5056
|
title: "Size",
|
|
5021
|
-
icon:
|
|
5057
|
+
icon: ei,
|
|
5022
5058
|
default: (t == null ? void 0 : t.size) ?? 0,
|
|
5023
5059
|
suffix: "px"
|
|
5024
5060
|
}),
|
|
@@ -5028,7 +5064,7 @@ class Ei extends $ {
|
|
|
5028
5064
|
}),
|
|
5029
5065
|
radius: new B({
|
|
5030
5066
|
title: "Radius",
|
|
5031
|
-
icon:
|
|
5067
|
+
icon: ti,
|
|
5032
5068
|
default: (t == null ? void 0 : t.radius) ?? 12,
|
|
5033
5069
|
suffix: "px"
|
|
5034
5070
|
})
|
|
@@ -5052,20 +5088,20 @@ class Ei extends $ {
|
|
|
5052
5088
|
`;
|
|
5053
5089
|
}
|
|
5054
5090
|
}
|
|
5055
|
-
const
|
|
5091
|
+
const ii = `
|
|
5056
5092
|
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="13" viewBox="0 0 14 13" fill="none">
|
|
5057
5093
|
<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
5094
|
</svg>
|
|
5059
|
-
`,
|
|
5095
|
+
`, si = `
|
|
5060
5096
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5061
5097
|
<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
5098
|
</svg>
|
|
5063
|
-
`,
|
|
5099
|
+
`, ni = `
|
|
5064
5100
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5065
5101
|
<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
5102
|
</svg>
|
|
5067
5103
|
`;
|
|
5068
|
-
class
|
|
5104
|
+
class wi extends $ {
|
|
5069
5105
|
constructor(t = {}) {
|
|
5070
5106
|
const { showAlign: e = t.showAlign ?? !0, ...i } = t;
|
|
5071
5107
|
super({
|
|
@@ -5079,7 +5115,7 @@ class bi extends $ {
|
|
|
5079
5115
|
}),
|
|
5080
5116
|
fontFamily: new ht({
|
|
5081
5117
|
title: "Font",
|
|
5082
|
-
icon:
|
|
5118
|
+
icon: ii,
|
|
5083
5119
|
default: i.fontFamilyDefault ?? "Satoshi",
|
|
5084
5120
|
options: i.fontFamilyOptions ?? [
|
|
5085
5121
|
{ name: "Alt", value: "Croco Sans Black Caps Alt" },
|
|
@@ -5092,7 +5128,7 @@ class bi extends $ {
|
|
|
5092
5128
|
}),
|
|
5093
5129
|
fontWeight: new ht({
|
|
5094
5130
|
title: "Weight",
|
|
5095
|
-
icon:
|
|
5131
|
+
icon: si,
|
|
5096
5132
|
default: i.fontWeightDefault ?? "400",
|
|
5097
5133
|
options: i.fontWeightOptions ?? [
|
|
5098
5134
|
{ name: "Regular", value: "400" },
|
|
@@ -5104,7 +5140,7 @@ class bi extends $ {
|
|
|
5104
5140
|
}),
|
|
5105
5141
|
fontSize: new B({
|
|
5106
5142
|
title: "Size",
|
|
5107
|
-
icon:
|
|
5143
|
+
icon: ni,
|
|
5108
5144
|
default: i.fontSizeDefault ?? 12,
|
|
5109
5145
|
suffix: "px",
|
|
5110
5146
|
mobile: i.fontSizeMobileDefault
|
|
@@ -5190,7 +5226,7 @@ class K extends w {
|
|
|
5190
5226
|
}), i;
|
|
5191
5227
|
}
|
|
5192
5228
|
}
|
|
5193
|
-
class
|
|
5229
|
+
class xi extends $ {
|
|
5194
5230
|
constructor(t) {
|
|
5195
5231
|
super({
|
|
5196
5232
|
title: "Margins",
|
|
@@ -5198,25 +5234,25 @@ class wi extends $ {
|
|
|
5198
5234
|
settings: {
|
|
5199
5235
|
marginTop: new K({
|
|
5200
5236
|
title: "Top",
|
|
5201
|
-
icon:
|
|
5237
|
+
icon: oi,
|
|
5202
5238
|
suffix: "px",
|
|
5203
5239
|
default: (t == null ? void 0 : t.marginTop) ?? "auto"
|
|
5204
5240
|
}),
|
|
5205
5241
|
marginRight: new K({
|
|
5206
5242
|
title: "Right",
|
|
5207
|
-
icon:
|
|
5243
|
+
icon: ai,
|
|
5208
5244
|
suffix: "px",
|
|
5209
5245
|
default: (t == null ? void 0 : t.marginRight) ?? 0
|
|
5210
5246
|
}),
|
|
5211
5247
|
marginBottom: new K({
|
|
5212
5248
|
title: "Bottom",
|
|
5213
|
-
icon:
|
|
5249
|
+
icon: li,
|
|
5214
5250
|
suffix: "px",
|
|
5215
5251
|
default: (t == null ? void 0 : t.marginBottom) ?? 0
|
|
5216
5252
|
}),
|
|
5217
5253
|
marginLeft: new K({
|
|
5218
5254
|
title: "Left",
|
|
5219
|
-
icon:
|
|
5255
|
+
icon: ri,
|
|
5220
5256
|
suffix: "px",
|
|
5221
5257
|
default: (t == null ? void 0 : t.marginLeft) ?? 0
|
|
5222
5258
|
})
|
|
@@ -5233,16 +5269,16 @@ class wi extends $ {
|
|
|
5233
5269
|
`;
|
|
5234
5270
|
}
|
|
5235
5271
|
}
|
|
5236
|
-
const
|
|
5272
|
+
const oi = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5237
5273
|
<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
5274
|
</svg>`, ai = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5241
|
-
<path d="
|
|
5275
|
+
<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
5276
|
</svg>`, li = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5277
|
+
<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"/>
|
|
5278
|
+
</svg>`, ri = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
5243
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.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
5280
|
</svg>`;
|
|
5245
|
-
class
|
|
5281
|
+
class Li extends $ {
|
|
5246
5282
|
constructor(t) {
|
|
5247
5283
|
super({
|
|
5248
5284
|
title: "Background Image",
|
|
@@ -5255,7 +5291,7 @@ class xi extends $ {
|
|
|
5255
5291
|
opacity: new ie({
|
|
5256
5292
|
default: (t == null ? void 0 : t.opacity) ?? 100
|
|
5257
5293
|
}),
|
|
5258
|
-
backgroundColor: new
|
|
5294
|
+
backgroundColor: new j({
|
|
5259
5295
|
default: (t == null ? void 0 : t.backgroundColor) ?? "0, 0, 30"
|
|
5260
5296
|
})
|
|
5261
5297
|
}
|
|
@@ -5281,7 +5317,7 @@ class xi extends $ {
|
|
|
5281
5317
|
`;
|
|
5282
5318
|
}
|
|
5283
5319
|
}
|
|
5284
|
-
class
|
|
5320
|
+
class ki extends $ {
|
|
5285
5321
|
constructor(t) {
|
|
5286
5322
|
super({
|
|
5287
5323
|
title: (t == null ? void 0 : t.title) ?? "Image",
|
|
@@ -5291,11 +5327,11 @@ class Li extends $ {
|
|
|
5291
5327
|
...t == null ? void 0 : t.uploadProps,
|
|
5292
5328
|
default: (t == null ? void 0 : t.image) ?? ""
|
|
5293
5329
|
}),
|
|
5294
|
-
width: new
|
|
5330
|
+
width: new Ze({
|
|
5295
5331
|
default: (t == null ? void 0 : t.width) ?? 1e3,
|
|
5296
5332
|
mobile: t == null ? void 0 : t.widthMobile
|
|
5297
5333
|
}),
|
|
5298
|
-
height: new
|
|
5334
|
+
height: new _e({
|
|
5299
5335
|
default: (t == null ? void 0 : t.height) ?? 300,
|
|
5300
5336
|
mobile: t == null ? void 0 : t.heightMobile
|
|
5301
5337
|
})
|
|
@@ -5305,39 +5341,39 @@ class Li extends $ {
|
|
|
5305
5341
|
}
|
|
5306
5342
|
export {
|
|
5307
5343
|
ne as AlignSetting,
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5344
|
+
Ei as AnimationSetting,
|
|
5345
|
+
Li as BackgroundSettingSet,
|
|
5346
|
+
bi as BorderSettingSet,
|
|
5347
|
+
pi as ButtonSetting,
|
|
5312
5348
|
H as ColorSetting,
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5349
|
+
j as ColorWithOpacitySetting,
|
|
5350
|
+
ui as DimensionSetting,
|
|
5351
|
+
vi as GapSetting,
|
|
5316
5352
|
J as GradientSetting,
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5353
|
+
wi as HeaderTypographySettingSet,
|
|
5354
|
+
_e as HeightSetting,
|
|
5355
|
+
di as HtmlSetting,
|
|
5320
5356
|
kt as ImageMapSetting,
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5357
|
+
ki as ImageSettingSet,
|
|
5358
|
+
fi as MarginBottomSetting,
|
|
5359
|
+
xi as MarginSettingGroup,
|
|
5360
|
+
Ci as MarginTopSetting,
|
|
5361
|
+
yi as MultiLanguageSetting,
|
|
5326
5362
|
B as NumberSetting,
|
|
5327
5363
|
ie as OpacitySetting,
|
|
5328
|
-
|
|
5364
|
+
gi as SelectApiSettings,
|
|
5329
5365
|
ht as SelectSetting,
|
|
5330
5366
|
w as Setting,
|
|
5331
5367
|
$ as SettingGroup,
|
|
5332
5368
|
Kt as StringSetting,
|
|
5333
5369
|
Xt as TabSettingGroup,
|
|
5334
5370
|
Xt as TabsSettingGroup,
|
|
5335
|
-
|
|
5371
|
+
mi as Toggle,
|
|
5336
5372
|
ut as UploadSetting,
|
|
5337
|
-
|
|
5338
|
-
|
|
5373
|
+
Ze as WidthSetting,
|
|
5374
|
+
hi as asSettingGroupWithSettings,
|
|
5339
5375
|
Yt as createSettingGroup,
|
|
5340
|
-
|
|
5376
|
+
ci as createTabSettingGroup,
|
|
5341
5377
|
R as isSetting,
|
|
5342
5378
|
vt as isSettingChild,
|
|
5343
5379
|
M as isSettingGroup,
|