@charisol/plexo-sdk 2.0.29 → 2.0.31
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.
- package/README.md +23 -0
- package/dist/{InlineColorPicker-XesBzRsU.js → InlineColorPicker-Cb9p4I_m.js} +123 -90
- package/dist/{blank-BEl6CY5C.js → blank-Dg8GIfQP.js} +271 -246
- package/dist/{files-Df6FY0HK.js → files-Bjoz1wCf.js} +13 -13
- package/dist/index.js +9045 -9078
- package/dist/plexo-sdk.css +1 -1
- package/dist/{v1-Cn7SGvZk.js → v1-B6QkDh9R.js} +545 -545
- package/dist/v2/components/layout/TopToolbar.d.ts +7 -0
- package/dist/v2/components/simple/SimpleCoach.d.ts +8 -0
- package/dist/v2/components/simple/SimpleHint.d.ts +3 -0
- package/dist/v2/components/simple/SimpleInspector.d.ts +3 -0
- package/dist/v2/components/simple/SimpleSidebar.d.ts +3 -0
- package/dist/v2/components/simple/SimpleTopBar.d.ts +5 -0
- package/dist/v2/components/simple/words.d.ts +12 -0
- package/dist/v2/data/blankPage.d.ts +5 -0
- package/dist/v2/host/HostContext.d.ts +14 -0
- package/dist/v2/index.d.ts +2 -1
- package/dist/v2-compile.js +8 -8
- package/dist/v2-files.js +1 -1
- package/dist/v2.js +5230 -4276
- package/package.json +1 -1
|
@@ -13606,9 +13606,34 @@ function aa() {
|
|
|
13606
13606
|
rootNode: e
|
|
13607
13607
|
}];
|
|
13608
13608
|
}
|
|
13609
|
+
function oa() {
|
|
13610
|
+
let e = {
|
|
13611
|
+
id: i("page"),
|
|
13612
|
+
type: "page",
|
|
13613
|
+
name: "Page",
|
|
13614
|
+
styles: {
|
|
13615
|
+
backgroundColor: "#ffffff",
|
|
13616
|
+
textColor: "#111827",
|
|
13617
|
+
fontFamily: "Inter"
|
|
13618
|
+
},
|
|
13619
|
+
children: [
|
|
13620
|
+
["header", "simple"],
|
|
13621
|
+
["hero", "centered"],
|
|
13622
|
+
["features", "grid"],
|
|
13623
|
+
["footer", "simple"]
|
|
13624
|
+
].map(([e, t]) => Ci(ui(e, t)))
|
|
13625
|
+
};
|
|
13626
|
+
return [{
|
|
13627
|
+
id: i("page"),
|
|
13628
|
+
name: "Home",
|
|
13629
|
+
slug: "home",
|
|
13630
|
+
isHome: !0,
|
|
13631
|
+
rootNode: e
|
|
13632
|
+
}];
|
|
13633
|
+
}
|
|
13609
13634
|
//#endregion
|
|
13610
13635
|
//#region src/v2/render/runtime.ts
|
|
13611
|
-
function
|
|
13636
|
+
function sa(e) {
|
|
13612
13637
|
let t = [], n = (t) => Array.prototype.slice.call(e.querySelectorAll(t)), r = typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, i = n(".plx-in");
|
|
13613
13638
|
if (i.length && !r && typeof IntersectionObserver == "function") {
|
|
13614
13639
|
let n = e.querySelector(".plx-page") || e;
|
|
@@ -13713,31 +13738,31 @@ function oa(e) {
|
|
|
13713
13738
|
e.addEventListener("submit", n), t.push(() => e.removeEventListener("submit", n));
|
|
13714
13739
|
}), () => t.forEach((e) => e());
|
|
13715
13740
|
}
|
|
13716
|
-
var
|
|
13717
|
-
function
|
|
13741
|
+
var ca = `(function(){var __name=function(f){return f};return ${sa.toString()}})()`, la = 1e5, ua = (e) => typeof e == "string" && /^[A-Za-z][A-Za-z0-9_-]{0,63}$/.test(e.trim()) ? e.trim() : null, da = (e) => ua(e.replace(/[^A-Za-z0-9_-]+/g, "-").replace(/^[^A-Za-z]+/, "").slice(0, 64)) ?? "";
|
|
13742
|
+
function fa(e) {
|
|
13718
13743
|
if (typeof e != "string") return { code: "" };
|
|
13719
13744
|
let t = e.trim();
|
|
13720
13745
|
return t ? t.length > 1e5 ? {
|
|
13721
13746
|
code: "",
|
|
13722
|
-
warning: `The site's custom code is too long (over ${
|
|
13747
|
+
warning: `The site's custom code is too long (over ${la.toLocaleString("en-US")} characters), so it was left out. Shorten it or load it from a file instead.`
|
|
13723
13748
|
} : { code: t.replace(/<\/(script)/gi, "<\\/$1").replace(/<!--/g, "<\\!--") } : { code: "" };
|
|
13724
13749
|
}
|
|
13725
13750
|
//#endregion
|
|
13726
13751
|
//#region src/v2/utils/css.ts
|
|
13727
|
-
function
|
|
13752
|
+
function pa(e) {
|
|
13728
13753
|
return `url("${e.replace(/["\\\n\r\f]/g, (e) => `\\${e.charCodeAt(0).toString(16)} `)}")`;
|
|
13729
13754
|
}
|
|
13730
13755
|
//#endregion
|
|
13731
13756
|
//#region src/v2/design/typeScale.ts
|
|
13732
|
-
var
|
|
13733
|
-
function
|
|
13757
|
+
var ma = 16;
|
|
13758
|
+
function ha(e, t, n = 0) {
|
|
13734
13759
|
return n > 12 ? e : e.replace(/var\(\s*(--[A-Za-z0-9_-]+)\s*(?:,\s*((?:[^()]|\([^()]*\))*))?\)/g, (e, r, i) => {
|
|
13735
13760
|
let a = t.get(r);
|
|
13736
|
-
return a ?
|
|
13761
|
+
return a ? ha(d(a), t, n + 1) : i === void 0 ? "NaN" : ha(i.trim(), t, n + 1);
|
|
13737
13762
|
});
|
|
13738
13763
|
}
|
|
13739
|
-
function
|
|
13740
|
-
let n =
|
|
13764
|
+
function ga(e, t) {
|
|
13765
|
+
let n = ha(e.trim(), t.tokens ?? /* @__PURE__ */ new Map()), r = 0, i = () => {
|
|
13741
13766
|
for (; r < n.length && /\s/.test(n[r]);) r += 1;
|
|
13742
13767
|
}, a = () => {
|
|
13743
13768
|
throw Error("bad");
|
|
@@ -13826,57 +13851,57 @@ function ha(e, t) {
|
|
|
13826
13851
|
return null;
|
|
13827
13852
|
}
|
|
13828
13853
|
}
|
|
13829
|
-
var
|
|
13854
|
+
var _a = {
|
|
13830
13855
|
tablet: .8,
|
|
13831
13856
|
mobile: .6
|
|
13832
|
-
},
|
|
13833
|
-
function va(e, t) {
|
|
13834
|
-
return t === "desktop" || e.responsive?.tablet?.fontSize !== void 0 ? !1 : t === "tablet" || e.responsive?.mobile?.fontSize === void 0;
|
|
13835
|
-
}
|
|
13857
|
+
}, va = 40;
|
|
13836
13858
|
function ya(e, t) {
|
|
13837
|
-
return e
|
|
13859
|
+
return t === "desktop" || e.responsive?.tablet?.fontSize !== void 0 ? !1 : t === "tablet" || e.responsive?.mobile?.fontSize === void 0;
|
|
13838
13860
|
}
|
|
13839
13861
|
function ba(e, t) {
|
|
13862
|
+
return e <= va ? e : Math.max(va, e * _a[t]);
|
|
13863
|
+
}
|
|
13864
|
+
function xa(e, t) {
|
|
13840
13865
|
let n = e.trim(), r = /^(\d*\.?\d+)(px|rem)$/i.exec(n);
|
|
13841
13866
|
if (r) {
|
|
13842
13867
|
let e = parseFloat(r[1]) * (r[2].toLowerCase() === "rem" ? 16 : 1);
|
|
13843
|
-
if (e <=
|
|
13844
|
-
let i =
|
|
13868
|
+
if (e <= va) return n;
|
|
13869
|
+
let i = ba(e, t);
|
|
13845
13870
|
return r[2].toLowerCase() === "rem" ? `${Math.round(i / 16 * 1e3) / 1e3}rem` : `${Math.round(i * 10) / 10}px`;
|
|
13846
13871
|
}
|
|
13847
|
-
return /^(?:var|calc|clamp|min|max)\(/i.test(n) && n.length < 300 ? `max(min(${n}, ${
|
|
13872
|
+
return /^(?:var|calc|clamp|min|max)\(/i.test(n) && n.length < 300 ? `max(min(${n}, ${va}px), calc(${n} * ${_a[t]}))` : n;
|
|
13848
13873
|
}
|
|
13849
|
-
var
|
|
13850
|
-
function
|
|
13874
|
+
var Sa = (e, t = 10) => Math.round(e * t) / t;
|
|
13875
|
+
function Ca(e, t) {
|
|
13851
13876
|
return le(t.textStyle) ? t.textStyle : e.type === "heading" ? me(e.props?.level) : null;
|
|
13852
13877
|
}
|
|
13853
|
-
function
|
|
13854
|
-
return e ?
|
|
13878
|
+
function wa(e, t) {
|
|
13879
|
+
return e ? ga(/^-?[\d.]+$/.test(e.trim()) ? `${e.trim()}px` : e, {
|
|
13855
13880
|
...t,
|
|
13856
13881
|
tokens: t.tokens
|
|
13857
13882
|
}) : null;
|
|
13858
13883
|
}
|
|
13859
|
-
function
|
|
13860
|
-
let i = l(n), a = b[r], s =
|
|
13884
|
+
function Ta(e, t, n, r) {
|
|
13885
|
+
let i = l(n), a = b[r], s = Ca(e, t), c = s ? ue(s) : null, u = {
|
|
13861
13886
|
tokens: i,
|
|
13862
13887
|
width: a,
|
|
13863
13888
|
fontPx: 16
|
|
13864
|
-
}, d =
|
|
13889
|
+
}, d = wa(t.fontSize, u), f = d !== null && ya(e, r) ? ba(d, r) : d, p = c ? ga(c.size[r], u) : null, m = f ?? p ?? 16, h = {
|
|
13865
13890
|
...u,
|
|
13866
13891
|
fontPx: m
|
|
13867
13892
|
}, g = null, _ = !1;
|
|
13868
13893
|
if (t.lineHeight) {
|
|
13869
13894
|
let e = String(t.lineHeight).trim(), n = /^-?[\d.]+$/.test(e) ? parseFloat(e) : /%$/.test(e) ? parseFloat(e) / 100 : (() => {
|
|
13870
|
-
let t =
|
|
13895
|
+
let t = ga(e, h);
|
|
13871
13896
|
return t === null ? null : t / m;
|
|
13872
13897
|
})();
|
|
13873
13898
|
n !== null && Number.isFinite(n) && n > 0 && (g = n, _ = !0);
|
|
13874
13899
|
}
|
|
13875
|
-
g === null && (g = c ?
|
|
13876
|
-
let v = t.isBold ? 700 : Number(t.fontWeight ?? (c ?
|
|
13900
|
+
g === null && (g = c ? ga(c.line, h) : null), g === null && (g = 1.5);
|
|
13901
|
+
let v = t.isBold ? 700 : Number(t.fontWeight ?? (c ? ga(c.weight, h) : 400)), y = t.fontFamily ?? ha(c && c.family === "heading" ? "var(--semantic-font-family-heading, var(--font-family-sans))" : "var(--semantic-font-family-body, var(--font-family-sans))", i);
|
|
13877
13902
|
return {
|
|
13878
|
-
fontSize:
|
|
13879
|
-
lineHeight:
|
|
13903
|
+
fontSize: Sa(m),
|
|
13904
|
+
lineHeight: Sa(g, 100),
|
|
13880
13905
|
fontWeight: Number.isFinite(v) ? v : 400,
|
|
13881
13906
|
fontFamily: o(y),
|
|
13882
13907
|
textStyle: s,
|
|
@@ -13890,7 +13915,7 @@ function wa(e, t, n, r) {
|
|
|
13890
13915
|
}
|
|
13891
13916
|
//#endregion
|
|
13892
13917
|
//#region src/v2/render/nodeStyle.ts
|
|
13893
|
-
var
|
|
13918
|
+
var Ea = [
|
|
13894
13919
|
"flex-start",
|
|
13895
13920
|
"center",
|
|
13896
13921
|
"flex-end",
|
|
@@ -13898,25 +13923,25 @@ var Ta = [
|
|
|
13898
13923
|
"start",
|
|
13899
13924
|
"end",
|
|
13900
13925
|
"baseline"
|
|
13901
|
-
],
|
|
13926
|
+
], Da = [
|
|
13902
13927
|
"hidden",
|
|
13903
13928
|
"visible",
|
|
13904
13929
|
"auto",
|
|
13905
13930
|
"clip"
|
|
13906
|
-
],
|
|
13931
|
+
], Oa = ["normal", "nowrap"], ka = [
|
|
13907
13932
|
"auto",
|
|
13908
13933
|
"pointer",
|
|
13909
13934
|
"default",
|
|
13910
13935
|
"text",
|
|
13911
13936
|
"grab",
|
|
13912
13937
|
"not-allowed"
|
|
13913
|
-
],
|
|
13938
|
+
], Aa = [
|
|
13914
13939
|
"ease",
|
|
13915
13940
|
"linear",
|
|
13916
13941
|
"ease-in",
|
|
13917
13942
|
"ease-out",
|
|
13918
13943
|
"ease-in-out"
|
|
13919
|
-
],
|
|
13944
|
+
], ja = {
|
|
13920
13945
|
all: ["all"],
|
|
13921
13946
|
opacity: ["opacity"],
|
|
13922
13947
|
transform: ["transform"],
|
|
@@ -13926,7 +13951,7 @@ var Ta = [
|
|
|
13926
13951
|
"border-color",
|
|
13927
13952
|
"box-shadow"
|
|
13928
13953
|
]
|
|
13929
|
-
}, J = (e, t) => typeof e == "string" && t.includes(e) ? e : void 0,
|
|
13954
|
+
}, J = (e, t) => typeof e == "string" && t.includes(e) ? e : void 0, Ma = (e) => typeof e == "string" && /^(?:(?:left|right|top|bottom|center|-?\d{1,3}(?:\.\d+)?%)(?: |$)){1,2}$/.test(e.trim() + " ") ? e.trim() : void 0, Na = (e) => {
|
|
13930
13955
|
let t = typeof e == "number" ? e : typeof e == "string" ? parseFloat(e) : NaN;
|
|
13931
13956
|
if (!Number.isFinite(t) || t <= 0) return {};
|
|
13932
13957
|
let n = `blur(${Math.round(Math.min(40, t) * 10) / 10}px)`;
|
|
@@ -13935,18 +13960,18 @@ var Ta = [
|
|
|
13935
13960
|
WebkitBackdropFilter: n
|
|
13936
13961
|
};
|
|
13937
13962
|
};
|
|
13938
|
-
function
|
|
13939
|
-
let t = J(e.transitionProperty, Object.keys(
|
|
13963
|
+
function Pa(e) {
|
|
13964
|
+
let t = J(e.transitionProperty, Object.keys(ja));
|
|
13940
13965
|
if (!t) return;
|
|
13941
|
-
let n = typeof e.transitionDuration == "number" ? e.transitionDuration : 200, r = Math.round(Math.min(2e3, Math.max(0, Number.isFinite(n) ? n : 200))), i = J(e.transitionEasing,
|
|
13942
|
-
return
|
|
13966
|
+
let n = typeof e.transitionDuration == "number" ? e.transitionDuration : 200, r = Math.round(Math.min(2e3, Math.max(0, Number.isFinite(n) ? n : 200))), i = J(e.transitionEasing, Aa) ?? "ease";
|
|
13967
|
+
return ja[t].map((e) => `${e} ${r}ms ${i}`).join(", ");
|
|
13943
13968
|
}
|
|
13944
|
-
var
|
|
13969
|
+
var Fa = [
|
|
13945
13970
|
"lift",
|
|
13946
13971
|
"grow",
|
|
13947
13972
|
"fade",
|
|
13948
13973
|
"glow"
|
|
13949
|
-
],
|
|
13974
|
+
], Ia = {
|
|
13950
13975
|
lift: {
|
|
13951
13976
|
translate: "0 -6px",
|
|
13952
13977
|
boxShadow: "0 16px 32px rgba(0,0,0,0.18)"
|
|
@@ -13955,19 +13980,19 @@ var Pa = [
|
|
|
13955
13980
|
fade: { opacity: .8 },
|
|
13956
13981
|
glow: { boxShadow: "0 10px 30px rgba(0,0,0,0.28)" }
|
|
13957
13982
|
};
|
|
13958
|
-
function
|
|
13959
|
-
let t = J(e.hoverEffect,
|
|
13960
|
-
return t ?
|
|
13983
|
+
function La(e) {
|
|
13984
|
+
let t = J(e.hoverEffect, Fa);
|
|
13985
|
+
return t ? Ia[t] : void 0;
|
|
13961
13986
|
}
|
|
13962
|
-
var
|
|
13987
|
+
var Ra = [
|
|
13963
13988
|
"fade",
|
|
13964
13989
|
"slide-up",
|
|
13965
13990
|
"slide-left",
|
|
13966
13991
|
"slide-right",
|
|
13967
13992
|
"zoom"
|
|
13968
13993
|
];
|
|
13969
|
-
function
|
|
13970
|
-
let t = J(e.entrance,
|
|
13994
|
+
function za(e) {
|
|
13995
|
+
let t = J(e.entrance, Ra);
|
|
13971
13996
|
if (!t) return;
|
|
13972
13997
|
let n = typeof e.entranceDelay == "number" && Number.isFinite(e.entranceDelay) ? e.entranceDelay : 0;
|
|
13973
13998
|
return {
|
|
@@ -13975,7 +14000,7 @@ function Ra(e) {
|
|
|
13975
14000
|
delay: Math.round(Math.min(1500, Math.max(0, n)))
|
|
13976
14001
|
};
|
|
13977
14002
|
}
|
|
13978
|
-
function
|
|
14003
|
+
function Ba(e, t, n) {
|
|
13979
14004
|
let { viewport: r } = n, i = le(t.textStyle) ? t.textStyle : e.type === "heading" ? me(e.props?.level) : null, a = i ? pe(i) : {}, o = t.position !== "static" && (typeof t.x == "number" || typeof t.y == "number" || t.position === "absolute"), s = t.flexDirection;
|
|
13980
14005
|
r === "mobile" && t.stackOnMobile && t.display === "flex" && (s = "column");
|
|
13981
14006
|
let c = t.isFullWidth ? "100%" : t.customWidth || t.width, l = t.maxWidth;
|
|
@@ -14026,8 +14051,8 @@ function za(e, t, n) {
|
|
|
14026
14051
|
gridRow: n.isGridChild && t.gridRowSpan ? `span ${t.gridRowSpan}` : void 0,
|
|
14027
14052
|
flexDirection: s,
|
|
14028
14053
|
justifyContent: t.justifyContent,
|
|
14029
|
-
alignItems: J(t.alignItems,
|
|
14030
|
-
alignSelf: J(t.alignSelf,
|
|
14054
|
+
alignItems: J(t.alignItems, Ea),
|
|
14055
|
+
alignSelf: J(t.alignSelf, Ea),
|
|
14031
14056
|
alignContent: J(t.alignContent, [
|
|
14032
14057
|
"start",
|
|
14033
14058
|
"center",
|
|
@@ -14076,7 +14101,7 @@ function za(e, t, n) {
|
|
|
14076
14101
|
color: t.textColor,
|
|
14077
14102
|
textAlign: t.textAlign,
|
|
14078
14103
|
backgroundColor: t.backgroundColor,
|
|
14079
|
-
backgroundImage: ee ? "none" : S ?
|
|
14104
|
+
backgroundImage: ee ? "none" : S ? pa(S) : t.backgroundGradient || void 0,
|
|
14080
14105
|
aspectRatio: t.aspectRatio,
|
|
14081
14106
|
backgroundSize: t.backgroundSize,
|
|
14082
14107
|
backgroundPosition: t.backgroundPosition,
|
|
@@ -14086,13 +14111,13 @@ function za(e, t, n) {
|
|
|
14086
14111
|
borderStyle: t.borderStyle,
|
|
14087
14112
|
borderColor: t.borderColor,
|
|
14088
14113
|
boxShadow: t.boxShadow,
|
|
14089
|
-
overflow: J(t.overflow,
|
|
14090
|
-
whiteSpace: J(t.whiteSpace,
|
|
14091
|
-
objectPosition:
|
|
14092
|
-
...
|
|
14114
|
+
overflow: J(t.overflow, Da),
|
|
14115
|
+
whiteSpace: J(t.whiteSpace, Oa),
|
|
14116
|
+
objectPosition: Ma(t.objectPosition),
|
|
14117
|
+
...Na(t.backdropFilter),
|
|
14093
14118
|
pointerEvents: t.pointerEvents
|
|
14094
14119
|
};
|
|
14095
|
-
n.forPublish && (C.cursor = J(t.cursor,
|
|
14120
|
+
n.forPublish && (C.cursor = J(t.cursor, ka), C.transition = Pa(t) ?? (La(t) ? "translate 200ms ease, scale 200ms ease, opacity 200ms ease, box-shadow 200ms ease" : void 0)), typeof C.fontSize == "string" && t.fontSize !== void 0 && ya(e, r) && (C.fontSize = xa(C.fontSize, r)), e.type === "columns" && !f && (C.display = "grid", C.gridTemplateColumns = `repeat(${r === "mobile" ? 1 : r === "tablet" ? 2 : t.gridColumns || 3}, minmax(0, 1fr))`), n.isRootPage && (C.maxWidth = t.maxWidth || void 0, C.marginLeft = t.horizontalAlign === "left" ? "0px" : t.horizontalAlign === "right" ? "auto" : t.marginLeft || "auto", C.marginRight = t.horizontalAlign === "left" ? "auto" : t.horizontalAlign === "right" ? "0px" : t.marginRight || "auto"), e.type === "section" && t.pinned && (C.position = "sticky", C.top = "0px", C.zIndex = 40);
|
|
14096
14121
|
for (let e of Object.keys(C)) C[e] === void 0 && delete C[e];
|
|
14097
14122
|
return {
|
|
14098
14123
|
css: C,
|
|
@@ -14106,7 +14131,7 @@ function za(e, t, n) {
|
|
|
14106
14131
|
}
|
|
14107
14132
|
//#endregion
|
|
14108
14133
|
//#region src/v2/render/iconSet.ts
|
|
14109
|
-
var
|
|
14134
|
+
var Va = {
|
|
14110
14135
|
star: [["path", { d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]],
|
|
14111
14136
|
heart: [["path", { d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" }]],
|
|
14112
14137
|
check: [["path", { d: "M20 6 9 17l-5-5" }]],
|
|
@@ -15776,7 +15801,7 @@ var Ba = {
|
|
|
15776
15801
|
["path", { d: "m13 14 8-2" }],
|
|
15777
15802
|
["path", { d: "m13 19 8-2" }]
|
|
15778
15803
|
]
|
|
15779
|
-
},
|
|
15804
|
+
}, Ha = {
|
|
15780
15805
|
Popular: [
|
|
15781
15806
|
"star",
|
|
15782
15807
|
"heart",
|
|
@@ -15982,20 +16007,20 @@ var Ba = {
|
|
|
15982
16007
|
"spray-can"
|
|
15983
16008
|
]
|
|
15984
16009
|
};
|
|
15985
|
-
Object.keys(
|
|
15986
|
-
var
|
|
16010
|
+
Object.keys(Va);
|
|
16011
|
+
var Ua = [["circle", {
|
|
15987
16012
|
cx: "12",
|
|
15988
16013
|
cy: "12",
|
|
15989
16014
|
r: "9"
|
|
15990
16015
|
}]];
|
|
15991
|
-
function
|
|
15992
|
-
return typeof e != "string" || !e.trim() ?
|
|
16016
|
+
function Wa(e) {
|
|
16017
|
+
return typeof e != "string" || !e.trim() ? Va.star : Object.prototype.hasOwnProperty.call(Va, e) ? Va[e] : Ua;
|
|
15993
16018
|
}
|
|
15994
16019
|
//#endregion
|
|
15995
16020
|
//#region src/v2/render/elements.ts
|
|
15996
|
-
var
|
|
15997
|
-
function
|
|
15998
|
-
let t = Y(e), n =
|
|
16021
|
+
var Ga = "_hp_field", Y = (e) => e.props ?? {}, X = (e) => M("div", { class: "plx-empty" }, e);
|
|
16022
|
+
function Ka(e) {
|
|
16023
|
+
let t = Y(e), n = Wa(t.iconName), r = F(t.label, 200).trim();
|
|
15999
16024
|
return M("span", {
|
|
16000
16025
|
class: "plx-el plx-icon",
|
|
16001
16026
|
...r ? {
|
|
@@ -16012,7 +16037,7 @@ function Ga(e) {
|
|
|
16012
16037
|
"aria-hidden": "true"
|
|
16013
16038
|
}, n.map(([e, t]) => M(e, t))));
|
|
16014
16039
|
}
|
|
16015
|
-
function
|
|
16040
|
+
function qa(e, t) {
|
|
16016
16041
|
let n = Y(e), r = I(n.slides, 30);
|
|
16017
16042
|
if (!r.length) return M("div", { class: "plx-el plx-carousel" }, X("Add a slide to start your carousel"));
|
|
16018
16043
|
let i = r.map((e, n) => `${t.uid}-s${n + 1}`), a = r.length, o = r.map((e, t) => {
|
|
@@ -16073,13 +16098,13 @@ function Ka(e, t) {
|
|
|
16073
16098
|
"aria-label": `Go to slide ${t + 1}`
|
|
16074
16099
|
}))));
|
|
16075
16100
|
}
|
|
16076
|
-
var
|
|
16101
|
+
var Ja = {
|
|
16077
16102
|
"16:9": "16 / 9",
|
|
16078
16103
|
"4:3": "4 / 3",
|
|
16079
16104
|
"1:1": "1 / 1",
|
|
16080
16105
|
"9:16": "9 / 16"
|
|
16081
16106
|
};
|
|
16082
|
-
function
|
|
16107
|
+
function Ya(e) {
|
|
16083
16108
|
let t = e.trim();
|
|
16084
16109
|
if (!/^https?:\/\//i.test(t)) return null;
|
|
16085
16110
|
let n;
|
|
@@ -16105,8 +16130,8 @@ function Ja(e) {
|
|
|
16105
16130
|
src: t
|
|
16106
16131
|
} : null;
|
|
16107
16132
|
}
|
|
16108
|
-
function
|
|
16109
|
-
let n = Y(e), r =
|
|
16133
|
+
function Xa(e, t) {
|
|
16134
|
+
let n = Y(e), r = Ya(F(n.url, 2e3)), i = Ja[n.ratio ?? "16:9"] ?? Ja["16:9"], a = (e) => ({
|
|
16110
16135
|
...M("div", { class: "plx-el plx-video" }, e),
|
|
16111
16136
|
style: { "aspect-ratio": i }
|
|
16112
16137
|
});
|
|
@@ -16135,7 +16160,7 @@ function Ya(e, t) {
|
|
|
16135
16160
|
referrerpolicy: "strict-origin-when-cross-origin"
|
|
16136
16161
|
}));
|
|
16137
16162
|
}
|
|
16138
|
-
function
|
|
16163
|
+
function Za(e) {
|
|
16139
16164
|
let t = Y(e), n = I(t.links, 20).filter((e) => e && e.network in V), r = rt(t.size, 20, 96, 40), i = t.shape === "square" || t.shape === "plain" ? t.shape : "circle", a = t.colorMode === "mono";
|
|
16140
16165
|
return n.length ? {
|
|
16141
16166
|
...M("nav", {
|
|
@@ -16168,7 +16193,7 @@ function Xa(e) {
|
|
|
16168
16193
|
style: { "--plx-size": `${r}px` }
|
|
16169
16194
|
} : M("div", { class: "plx-el plx-social" }, X("Add your social links"));
|
|
16170
16195
|
}
|
|
16171
|
-
function
|
|
16196
|
+
function Qa(e) {
|
|
16172
16197
|
let t = Y(e), n = I(t.links, 40);
|
|
16173
16198
|
if (!n.length) return M("nav", { class: "plx-el plx-menu" }, X("Add menu links"));
|
|
16174
16199
|
let r = n.map((e) => M("li", null, M("a", { href: P(e.href) }, F(e.label, 120) || "Link"))), i = t.layout === "vertical", a = !i && (n.length > 4 || n.reduce((e, t) => e + F(t.label, 120).length, 0) > 36);
|
|
@@ -16186,7 +16211,7 @@ function Za(e) {
|
|
|
16186
16211
|
"stroke-linecap": "round"
|
|
16187
16212
|
}))), M("ul", null, r)));
|
|
16188
16213
|
}
|
|
16189
|
-
function
|
|
16214
|
+
function $a(e, t) {
|
|
16190
16215
|
let n = Y(e), r = F(n.code, 1e5);
|
|
16191
16216
|
return r.trim() ? M("div", { class: "plx-el plx-html" }, M("iframe", {
|
|
16192
16217
|
srcdoc: r,
|
|
@@ -16196,7 +16221,7 @@ function Qa(e, t) {
|
|
|
16196
16221
|
referrerpolicy: "no-referrer"
|
|
16197
16222
|
})) : M("div", { class: "plx-el plx-html" }, X("Paste your embed code in the settings"));
|
|
16198
16223
|
}
|
|
16199
|
-
function
|
|
16224
|
+
function eo(e) {
|
|
16200
16225
|
let t = Y(e), n = I(t.rows, 200).map((e) => I(e, 30).map((e) => F(e, 500)));
|
|
16201
16226
|
if (!n.length) return M("div", { class: "plx-el plx-table-wrap" }, X("Add rows to your table"));
|
|
16202
16227
|
let r = t.headerRow !== !1, i = Math.max(...n.map((e) => e.length)), a = (e) => Array.from({ length: i }, (t, n) => e[n] ?? "");
|
|
@@ -16207,8 +16232,8 @@ function $a(e) {
|
|
|
16207
16232
|
"aria-label": "Table"
|
|
16208
16233
|
}, M("table", { class: `plx-table${t.striped === !1 ? "" : " plx-striped"}` }, r && M("thead", null, M("tr", null, a(n[0]).map((e) => M("th", { scope: "col" }, e)))), M("tbody", null, n.slice(+!!r).map((e) => M("tr", null, a(e).map((e) => M("td", null, e)))))));
|
|
16209
16234
|
}
|
|
16210
|
-
var
|
|
16211
|
-
function
|
|
16235
|
+
var to = (e) => String(Math.max(0, e)).padStart(2, "0");
|
|
16236
|
+
function no(e, t) {
|
|
16212
16237
|
let n = Date.parse(e);
|
|
16213
16238
|
if (!Number.isFinite(n)) return {
|
|
16214
16239
|
done: !0,
|
|
@@ -16234,11 +16259,11 @@ function to(e, t) {
|
|
|
16234
16259
|
s: i % 60
|
|
16235
16260
|
};
|
|
16236
16261
|
}
|
|
16237
|
-
function
|
|
16238
|
-
let n = Y(e), r = F(n.target, 40), i =
|
|
16262
|
+
function ro(e, t) {
|
|
16263
|
+
let n = Y(e), r = F(n.target, 40), i = no(r, t.now), a = (e, t, r) => M("div", { class: "plx-unit" }, M("span", {
|
|
16239
16264
|
class: "plx-num",
|
|
16240
16265
|
"data-plx-unit": e
|
|
16241
|
-
},
|
|
16266
|
+
}, to(t)), n.showLabels !== !1 && M("span", { class: "plx-lbl" }, r));
|
|
16242
16267
|
return M("div", {
|
|
16243
16268
|
class: "plx-el plx-timer",
|
|
16244
16269
|
role: "timer",
|
|
@@ -16251,7 +16276,7 @@ function no(e, t) {
|
|
|
16251
16276
|
a("s", i.s, "Seconds")
|
|
16252
16277
|
]);
|
|
16253
16278
|
}
|
|
16254
|
-
function
|
|
16279
|
+
function io(e, t) {
|
|
16255
16280
|
let n = nt(e.id, "field"), r = n, i = F(e.label, 200) || n, a = e.required ? !0 : void 0, o = F(e.placeholder, 200) || void 0, s = e.required ? M("span", {
|
|
16256
16281
|
class: "plx-req",
|
|
16257
16282
|
"aria-hidden": "true"
|
|
@@ -16279,11 +16304,11 @@ function ro(e, t) {
|
|
|
16279
16304
|
});
|
|
16280
16305
|
return M("label", { class: "plx-field" }, M("span", { class: "plx-label" }, i, s), c);
|
|
16281
16306
|
}
|
|
16282
|
-
function
|
|
16307
|
+
function ao(e) {
|
|
16283
16308
|
let t = $e(e.buttonColor), n = $e(e.buttonTextColor) ?? (t && !t.startsWith("var(") ? na(t) ?? void 0 : void 0), r = et(e.buttonRadius), i = {};
|
|
16284
16309
|
return t && (i["--plx-btn-bg"] = t), n && (i["--plx-btn-fg"] = n), r && (i["--plx-btn-radius"] = r), Object.keys(i).length ? i : void 0;
|
|
16285
16310
|
}
|
|
16286
|
-
function
|
|
16311
|
+
function oo(e, t) {
|
|
16287
16312
|
let n = Y(e), r = I(n.fields, 40);
|
|
16288
16313
|
return r.length ? M("form", {
|
|
16289
16314
|
class: "plx-el plx-form",
|
|
@@ -16291,12 +16316,12 @@ function ao(e, t) {
|
|
|
16291
16316
|
action: (n.action && P(n.action) !== "#" ? P(n.action) : "") || t.formAction?.(e.id) || void 0,
|
|
16292
16317
|
"data-plx-form": t.uid,
|
|
16293
16318
|
"data-plx-success": F(n.successMessage, 300) || "Thanks! We got your message."
|
|
16294
|
-
}, r.map((e) =>
|
|
16319
|
+
}, r.map((e) => io(e, t.uid)), M("div", {
|
|
16295
16320
|
class: "plx-hp",
|
|
16296
16321
|
"aria-hidden": "true"
|
|
16297
16322
|
}, M("label", null, "Leave this field blank", M("input", {
|
|
16298
16323
|
type: "text",
|
|
16299
|
-
name:
|
|
16324
|
+
name: Ga,
|
|
16300
16325
|
tabindex: "-1",
|
|
16301
16326
|
autocomplete: "off"
|
|
16302
16327
|
}))), {
|
|
@@ -16304,10 +16329,10 @@ function ao(e, t) {
|
|
|
16304
16329
|
type: "submit",
|
|
16305
16330
|
class: "plx-submit"
|
|
16306
16331
|
}, F(n.submitLabel, 80) || "Submit"),
|
|
16307
|
-
...
|
|
16332
|
+
...ao(n) ? { style: ao(n) } : {}
|
|
16308
16333
|
}) : M("div", { class: "plx-el plx-form" }, X("Add a field to your form"));
|
|
16309
16334
|
}
|
|
16310
|
-
function
|
|
16335
|
+
function so(e, t) {
|
|
16311
16336
|
let n = Y(e), r = I(n.items, 50);
|
|
16312
16337
|
return r.length ? M("div", { class: "plx-el plx-accordion" }, r.map((e, r) => M("details", {
|
|
16313
16338
|
...n.allowMultiple ? {} : { name: t.uid },
|
|
@@ -16325,28 +16350,28 @@ function oo(e, t) {
|
|
|
16325
16350
|
"stroke-linejoin": "round"
|
|
16326
16351
|
}))), M("div", { class: "plx-body" }, F(e.content, 5e3).split(/\n{2,}/).map((e) => M("p", null, e)))))) : M("div", { class: "plx-el plx-accordion" }, X("Add a question to start"));
|
|
16327
16352
|
}
|
|
16328
|
-
function
|
|
16353
|
+
function co(e, t) {
|
|
16329
16354
|
if (at(e.type)) return bt(e, t);
|
|
16330
16355
|
switch (e.type) {
|
|
16331
|
-
case "icon": return
|
|
16332
|
-
case "carousel": return
|
|
16333
|
-
case "video": return
|
|
16334
|
-
case "social": return
|
|
16335
|
-
case "menu": return
|
|
16336
|
-
case "html": return
|
|
16337
|
-
case "table": return
|
|
16338
|
-
case "timer": return
|
|
16339
|
-
case "form": return
|
|
16340
|
-
case "accordion": return
|
|
16356
|
+
case "icon": return Ka(e);
|
|
16357
|
+
case "carousel": return qa(e, t);
|
|
16358
|
+
case "video": return Xa(e, t);
|
|
16359
|
+
case "social": return Za(e);
|
|
16360
|
+
case "menu": return Qa(e);
|
|
16361
|
+
case "html": return $a(e, t);
|
|
16362
|
+
case "table": return eo(e);
|
|
16363
|
+
case "timer": return ro(e, t);
|
|
16364
|
+
case "form": return oo(e, t);
|
|
16365
|
+
case "accordion": return so(e, t);
|
|
16341
16366
|
default: return null;
|
|
16342
16367
|
}
|
|
16343
16368
|
}
|
|
16344
16369
|
//#endregion
|
|
16345
16370
|
//#region src/v2/render/elementCss.ts
|
|
16346
|
-
var co = ".plx-el{box-sizing:border-box;width:100%;height:100%;min-width:0;color:inherit;font:inherit;text-align:left}\n.plx-el *,.plx-el *::before,.plx-el *::after{box-sizing:border-box}\n.plx-el ul,.plx-el ol{list-style:none!important;padding-left:0!important;margin:0}\n.plx-el li{display:block!important}\n.plx-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:72px;padding:16px;border:1.5px dashed currentColor;border-radius:10px;opacity:.5;font-size:13px;text-align:center}\n.plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}\n\n.plx-icon{display:inline-flex;width:auto;height:auto;line-height:1;font-size:inherit}\n.plx-icon svg{display:block;width:1em;height:1em}\n\n.plx-carousel{position:relative;overflow:hidden;border-radius:inherit}\n.plx-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.plx-track::-webkit-scrollbar{display:none}\n.plx-slide{position:relative;flex:0 0 100%;height:100%;margin:0;scroll-snap-align:center;overflow:hidden}\n.plx-slide a{display:block;width:100%;height:100%;color:inherit;text-decoration:none}\n.plx-slide img{display:block;width:100%;height:100%;object-fit:cover;user-select:none}\n.plx-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 20px 16px;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.6))}\n.plx-arrow{display:none;position:absolute;top:50%;width:40px;height:40px;margin-top:-20px;align-items:center;justify-content:center;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;text-decoration:none;backdrop-filter:blur(4px);transition:background .15s}\n[data-plx-ready] .plx-arrow{display:flex;align-items:center;justify-content:center}\n.plx-arrow:hover{background:rgba(0,0,0,.7)}\n.plx-arrow svg{width:20px;height:20px}\n.plx-prev{left:12px}.plx-next{right:12px}\n.plx-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;pointer-events:none}\n.plx-dots a{pointer-events:auto;width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.2);transition:transform .15s,background .15s}\n.plx-dots a[aria-current=\"true\"]{background:#fff;transform:scale(1.25)}\n\n.plx-video{position:relative;width:100%;height:auto;overflow:hidden;border-radius:inherit;background:#000}\n.plx-video iframe,.plx-video video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}\n.plx-video .plx-empty{position:absolute;inset:0;background:#111;color:#e5e7eb;opacity:1;border-color:rgba(255,255,255,.3)}\n\n.plx-social{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:auto;height:auto}\n.plx-social a{display:inline-flex;align-items:center;justify-content:center;width:var(--plx-size,40px);height:var(--plx-size,40px);color:inherit;text-decoration:none;transition:transform .15s,opacity .15s}\n.plx-social a:hover{transform:translateY(-2px);opacity:.85}\n.plx-social svg{width:52%;height:52%}\n.plx-social--circle a,.plx-social--square a{background:var(--plx-brand,currentColor);color:#fff}\n.plx-social--circle a{border-radius:999px}\n.plx-social--square a{border-radius:10px}\n.plx-social--plain a svg{width:70%;height:70%}\n\n.plx-menu{width:auto;height:auto}\n.plx-menu ul{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0;padding:0;list-style:none}\n.plx-menu--vertical ul{flex-direction:column;gap:12px}\n.plx-menu a{color:inherit;text-decoration:none;font-weight:500}\n.plx-menu a:hover{text-decoration:underline;text-underline-offset:4px}\n.plx-menu-m{display:none;position:relative}\n.plx-menu-m summary{display:flex;width:40px;height:40px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border-radius:8px}\n.plx-menu-m summary::-webkit-details-marker{display:none}\n.plx-menu-m summary svg{width:24px;height:24px}\n/* Fixed (not absolute) so the header's own clipping can't cut it off, and inset from both screen edges so it never runs off the side. */\n.plx-menu-m ul{position:fixed;z-index:50;left:12px;right:12px;top:auto;margin-top:6px;max-height:70vh;overflow-y:auto;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:#fff;color:#111;box-shadow:0 12px 32px rgba(0,0,0,.18)}\n.plx-menu-m li a{display:block;padding:10px 12px;border-radius:8px}\n.plx-menu-m li a:hover{background:rgba(0,0,0,.06);text-decoration:none}\n@container plx-page (max-width: 599px){\n .plx-menu:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n/* A long row of links doesn't fit beside a logo and button on a tablet, and wrapping onto a second row looks broken — so it folds into the menu button from tablet width. */\n@container plx-page (max-width: 1023px){\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n\n.plx-html{overflow:hidden;border-radius:inherit}\n.plx-html iframe{display:block;width:100%;height:100%;min-height:200px;border:0;background:transparent}\n\n.plx-table-wrap{width:100%;height:auto;overflow-x:auto;border-radius:inherit}\n.plx-table{width:100%;border-collapse:collapse;font-size:15px}\n.plx-table th,.plx-table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(128,128,128,.28)}\n.plx-table th{font-weight:600;border-bottom:2px solid rgba(128,128,128,.5)}\n.plx-striped tbody tr:nth-child(even){background:rgba(128,128,128,.08)}\n\n.plx-timer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:auto;height:auto}\n.plx-unit{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:14px 12px;border-radius:12px;background:rgba(128,128,128,.14)}\n.plx-num{font-size:34px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.plx-lbl{margin-top:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.65}\n.plx-expired{font-size:18px;font-weight:600}\n\n.plx-form{display:flex;flex-direction:column;gap:14px;height:auto}\n.plx-field{display:flex;flex-direction:column;gap:6px}\n.plx-label,.plx-check{font-size:14px;font-weight:500}\n.plx-req{color:#e11d48}\n.plx-form input[type=text],.plx-form input[type=email],.plx-form input[type=tel],.plx-form textarea,.plx-form select{width:100%;padding:11px 13px;border:1px solid var(--color-border-default,rgba(128,128,128,.45));border-radius:var(--radius-lg,10px);background:var(--color-bg-surface,rgba(255,255,255,.92));color:var(--color-text-primary,#111);font:inherit;font-size:15px}\n.plx-form ::placeholder{color:var(--color-text-muted,#686f7c);opacity:1}\n.plx-form textarea{resize:vertical;min-height:96px}\n.plx-form input:focus,.plx-form textarea:focus,.plx-form select:focus{outline:2px solid var(--plx-accent,#2563eb);outline-offset:1px}\n.plx-check{display:flex;align-items:center;gap:10px}\n.plx-check input{width:18px;height:18px}\n.plx-submit{align-self:flex-start;padding:12px 22px;border:0;border-radius:var(--plx-btn-radius,10px);background:var(--plx-btn-bg,var(--plx-accent,#111827));color:var(--plx-btn-fg,var(--plx-on-accent,#fff));font:inherit;font-weight:600;cursor:pointer;transition:opacity .15s}\n.plx-submit:hover{opacity:.9}\n.plx-submit:disabled{opacity:.6;cursor:default}\n.plx-hp{position:absolute;width:0;height:0;overflow:hidden;opacity:0;pointer-events:none}\n.plx-form-note{padding:12px 14px;border-radius:10px;background:rgba(34,197,94,.14);font-weight:500}\n.plx-form-note[data-error]{background:rgba(225,29,72,.14)}\n\n.plx-accordion{display:flex;flex-direction:column;gap:10px;height:auto}\n.plx-accordion details{border:1px solid rgba(128,128,128,.32);border-radius:12px;overflow:hidden}\n.plx-accordion summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;list-style:none;cursor:pointer;font-weight:600}\n.plx-accordion summary::-webkit-details-marker{display:none}\n.plx-chev{flex:none;width:20px;height:20px;transition:transform .2s}\n.plx-accordion details[open] .plx-chev{transform:rotate(180deg)}\n.plx-body{padding:0 18px 16px;opacity:.85;line-height:1.6}\n.plx-body p+p{margin-top:.75em}\n.plx-dyn{display:flex;flex-direction:column;gap:12px;height:auto;min-height:72px;padding:18px;border:1.5px dashed rgba(128,128,128,.55);border-radius:12px;background:rgba(128,128,128,.07)}\n.plx-dyn-head{display:flex;align-items:center;gap:8px;font-size:14px}\n.plx-dyn-tag{padding:2px 8px;border-radius:999px;background:rgba(128,128,128,.22);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}\n.plx-dyn-note{font-size:12px;opacity:.65}\n.plx-dyn-body{display:flex;flex-direction:column;gap:10px}\n.plx-dyn-bar{display:block;height:10px;border-radius:999px;background:rgba(128,128,128,.28)}\n.plx-dyn-bar--thick{height:16px}\n.plx-dyn-img{display:block;width:100%;border-radius:8px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.34))}\n.plx-dyn-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px;align-items:center}\n.plx-dyn-row--tight{grid-template-columns:56px minmax(0,1fr)}\n.plx-dyn-stack{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-grid{display:grid;gap:12px}\n.plx-dyn-card{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-line{display:flex;justify-content:space-between;gap:12px}\n.plx-dyn-line .plx-dyn-bar{flex:0 1 40%}\n.plx-dyn-text{font-size:14px;opacity:.8}\n.plx-dyn-field{display:flex;flex-direction:column;gap:4px}\n.plx-dyn-lbl{font-size:12px;opacity:.7}\n.plx-dyn-input{display:block;height:36px;border:1px solid rgba(128,128,128,.4);border-radius:8px;background:rgba(128,128,128,.08)}\n.plx-dyn-btn{align-self:flex-start;padding:9px 18px;border-radius:8px;background:rgba(128,128,128,.4);font-size:13px;font-weight:600}\n.plx-dyn-chips{display:flex;flex-wrap:wrap;gap:8px}\n.plx-dyn-chip{padding:6px 12px;border:1px solid rgba(128,128,128,.45);border-radius:999px;font-size:12px}\n.plx-dyn-tick{display:flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:999px;background:rgba(34,197,94,.25);font-size:22px}";
|
|
16371
|
+
var lo = ".plx-el{box-sizing:border-box;width:100%;height:100%;min-width:0;color:inherit;font:inherit;text-align:left}\n.plx-el *,.plx-el *::before,.plx-el *::after{box-sizing:border-box}\n.plx-el ul,.plx-el ol{list-style:none!important;padding-left:0!important;margin:0}\n.plx-el li{display:block!important}\n.plx-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:72px;padding:16px;border:1.5px dashed currentColor;border-radius:10px;opacity:.5;font-size:13px;text-align:center}\n.plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}\n\n.plx-icon{display:inline-flex;width:auto;height:auto;line-height:1;font-size:inherit}\n.plx-icon svg{display:block;width:1em;height:1em}\n\n.plx-carousel{position:relative;overflow:hidden;border-radius:inherit}\n.plx-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-webkit-overflow-scrolling:touch}\n.plx-track::-webkit-scrollbar{display:none}\n.plx-slide{position:relative;flex:0 0 100%;height:100%;margin:0;scroll-snap-align:center;overflow:hidden}\n.plx-slide a{display:block;width:100%;height:100%;color:inherit;text-decoration:none}\n.plx-slide img{display:block;width:100%;height:100%;object-fit:cover;user-select:none}\n.plx-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:28px 20px 16px;color:#fff;font-size:15px;background:linear-gradient(transparent,rgba(0,0,0,.6))}\n.plx-arrow{display:none;position:absolute;top:50%;width:40px;height:40px;margin-top:-20px;align-items:center;justify-content:center;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;text-decoration:none;backdrop-filter:blur(4px);transition:background .15s}\n[data-plx-ready] .plx-arrow{display:flex;align-items:center;justify-content:center}\n.plx-arrow:hover{background:rgba(0,0,0,.7)}\n.plx-arrow svg{width:20px;height:20px}\n.plx-prev{left:12px}.plx-next{right:12px}\n.plx-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;pointer-events:none}\n.plx-dots a{pointer-events:auto;width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(0,0,0,.2);transition:transform .15s,background .15s}\n.plx-dots a[aria-current=\"true\"]{background:#fff;transform:scale(1.25)}\n\n.plx-video{position:relative;width:100%;height:auto;overflow:hidden;border-radius:inherit;background:#000}\n.plx-video iframe,.plx-video video{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000}\n.plx-video .plx-empty{position:absolute;inset:0;background:#111;color:#e5e7eb;opacity:1;border-color:rgba(255,255,255,.3)}\n\n.plx-social{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:auto;height:auto}\n.plx-social a{display:inline-flex;align-items:center;justify-content:center;width:var(--plx-size,40px);height:var(--plx-size,40px);color:inherit;text-decoration:none;transition:transform .15s,opacity .15s}\n.plx-social a:hover{transform:translateY(-2px);opacity:.85}\n.plx-social svg{width:52%;height:52%}\n.plx-social--circle a,.plx-social--square a{background:var(--plx-brand,currentColor);color:#fff}\n.plx-social--circle a{border-radius:999px}\n.plx-social--square a{border-radius:10px}\n.plx-social--plain a svg{width:70%;height:70%}\n\n.plx-menu{width:auto;height:auto}\n.plx-menu ul{display:flex;flex-wrap:wrap;gap:8px 28px;margin:0;padding:0;list-style:none}\n.plx-menu--vertical ul{flex-direction:column;gap:12px}\n.plx-menu a{color:inherit;text-decoration:none;font-weight:500}\n.plx-menu a:hover{text-decoration:underline;text-underline-offset:4px}\n.plx-menu-m{display:none;position:relative}\n.plx-menu-m summary{display:flex;width:40px;height:40px;align-items:center;justify-content:center;list-style:none;cursor:pointer;border-radius:8px}\n.plx-menu-m summary::-webkit-details-marker{display:none}\n.plx-menu-m summary svg{width:24px;height:24px}\n/* Fixed (not absolute) so the header's own clipping can't cut it off, and inset from both screen edges so it never runs off the side. */\n.plx-menu-m ul{position:fixed;z-index:50;left:12px;right:12px;top:auto;margin-top:6px;max-height:70vh;overflow-y:auto;flex-direction:column;gap:2px;padding:8px;border-radius:12px;background:#fff;color:#111;box-shadow:0 12px 32px rgba(0,0,0,.18)}\n.plx-menu-m li a{display:block;padding:10px 12px;border-radius:8px}\n.plx-menu-m li a:hover{background:rgba(0,0,0,.06);text-decoration:none}\n@container plx-page (max-width: 599px){\n .plx-menu:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n/* A long row of links doesn't fit beside a logo and button on a tablet, and wrapping onto a second row looks broken — so it folds into the menu button from tablet width. */\n@container plx-page (max-width: 1023px){\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-list{display:none}\n .plx-menu--long:not(.plx-menu--expanded) .plx-menu-m{display:block}\n}\n\n.plx-html{overflow:hidden;border-radius:inherit}\n.plx-html iframe{display:block;width:100%;height:100%;min-height:200px;border:0;background:transparent}\n\n.plx-table-wrap{width:100%;height:auto;overflow-x:auto;border-radius:inherit}\n.plx-table{width:100%;border-collapse:collapse;font-size:15px}\n.plx-table th,.plx-table td{padding:12px 16px;text-align:left;border-bottom:1px solid rgba(128,128,128,.28)}\n.plx-table th{font-weight:600;border-bottom:2px solid rgba(128,128,128,.5)}\n.plx-striped tbody tr:nth-child(even){background:rgba(128,128,128,.08)}\n\n.plx-timer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;width:auto;height:auto}\n.plx-unit{display:flex;flex-direction:column;align-items:center;min-width:72px;padding:14px 12px;border-radius:12px;background:rgba(128,128,128,.14)}\n.plx-num{font-size:34px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}\n.plx-lbl{margin-top:6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.65}\n.plx-expired{font-size:18px;font-weight:600}\n\n.plx-form{display:flex;flex-direction:column;gap:14px;height:auto}\n.plx-field{display:flex;flex-direction:column;gap:6px}\n.plx-label,.plx-check{font-size:14px;font-weight:500}\n.plx-req{color:#e11d48}\n.plx-form input[type=text],.plx-form input[type=email],.plx-form input[type=tel],.plx-form textarea,.plx-form select{width:100%;padding:11px 13px;border:1px solid var(--color-border-default,rgba(128,128,128,.45));border-radius:var(--radius-lg,10px);background:var(--color-bg-surface,rgba(255,255,255,.92));color:var(--color-text-primary,#111);font:inherit;font-size:15px}\n.plx-form ::placeholder{color:var(--color-text-muted,#686f7c);opacity:1}\n.plx-form textarea{resize:vertical;min-height:96px}\n.plx-form input:focus,.plx-form textarea:focus,.plx-form select:focus{outline:2px solid var(--plx-accent,#2563eb);outline-offset:1px}\n.plx-check{display:flex;align-items:center;gap:10px}\n.plx-check input{width:18px;height:18px}\n.plx-submit{align-self:flex-start;padding:12px 22px;border:0;border-radius:var(--plx-btn-radius,10px);background:var(--plx-btn-bg,var(--plx-accent,#111827));color:var(--plx-btn-fg,var(--plx-on-accent,#fff));font:inherit;font-weight:600;cursor:pointer;transition:opacity .15s}\n.plx-submit:hover{opacity:.9}\n.plx-submit:disabled{opacity:.6;cursor:default}\n.plx-hp{position:absolute;width:0;height:0;overflow:hidden;opacity:0;pointer-events:none}\n.plx-form-note{padding:12px 14px;border-radius:10px;background:rgba(34,197,94,.14);font-weight:500}\n.plx-form-note[data-error]{background:rgba(225,29,72,.14)}\n\n.plx-accordion{display:flex;flex-direction:column;gap:10px;height:auto}\n.plx-accordion details{border:1px solid rgba(128,128,128,.32);border-radius:12px;overflow:hidden}\n.plx-accordion summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;list-style:none;cursor:pointer;font-weight:600}\n.plx-accordion summary::-webkit-details-marker{display:none}\n.plx-chev{flex:none;width:20px;height:20px;transition:transform .2s}\n.plx-accordion details[open] .plx-chev{transform:rotate(180deg)}\n.plx-body{padding:0 18px 16px;opacity:.85;line-height:1.6}\n.plx-body p+p{margin-top:.75em}\n.plx-dyn{display:flex;flex-direction:column;gap:12px;height:auto;min-height:72px;padding:18px;border:1.5px dashed rgba(128,128,128,.55);border-radius:12px;background:rgba(128,128,128,.07)}\n.plx-dyn-head{display:flex;align-items:center;gap:8px;font-size:14px}\n.plx-dyn-tag{padding:2px 8px;border-radius:999px;background:rgba(128,128,128,.22);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}\n.plx-dyn-note{font-size:12px;opacity:.65}\n.plx-dyn-body{display:flex;flex-direction:column;gap:10px}\n.plx-dyn-bar{display:block;height:10px;border-radius:999px;background:rgba(128,128,128,.28)}\n.plx-dyn-bar--thick{height:16px}\n.plx-dyn-img{display:block;width:100%;border-radius:8px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.34))}\n.plx-dyn-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:14px;align-items:center}\n.plx-dyn-row--tight{grid-template-columns:56px minmax(0,1fr)}\n.plx-dyn-stack{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-grid{display:grid;gap:12px}\n.plx-dyn-card{display:flex;flex-direction:column;gap:8px}\n.plx-dyn-line{display:flex;justify-content:space-between;gap:12px}\n.plx-dyn-line .plx-dyn-bar{flex:0 1 40%}\n.plx-dyn-text{font-size:14px;opacity:.8}\n.plx-dyn-field{display:flex;flex-direction:column;gap:4px}\n.plx-dyn-lbl{font-size:12px;opacity:.7}\n.plx-dyn-input{display:block;height:36px;border:1px solid rgba(128,128,128,.4);border-radius:8px;background:rgba(128,128,128,.08)}\n.plx-dyn-btn{align-self:flex-start;padding:9px 18px;border-radius:8px;background:rgba(128,128,128,.4);font-size:13px;font-weight:600}\n.plx-dyn-chips{display:flex;flex-wrap:wrap;gap:8px}\n.plx-dyn-chip{padding:6px 12px;border:1px solid rgba(128,128,128,.45);border-radius:999px;font-size:12px}\n.plx-dyn-tick{display:flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:999px;background:rgba(34,197,94,.25);font-size:22px}";
|
|
16347
16372
|
//#endregion
|
|
16348
16373
|
//#region src/v2/render/formAction.ts
|
|
16349
|
-
function
|
|
16374
|
+
function uo(e, t, n) {
|
|
16350
16375
|
let r = e?.trim();
|
|
16351
16376
|
if (r) return {
|
|
16352
16377
|
kind: "custom",
|
|
@@ -16361,35 +16386,35 @@ function lo(e, t, n) {
|
|
|
16361
16386
|
url: `/api/public/forms/${encodeURIComponent(n.templateId)}/submit?form=${encodeURIComponent(t)}`
|
|
16362
16387
|
} : { kind: "none" };
|
|
16363
16388
|
}
|
|
16364
|
-
var
|
|
16365
|
-
let n =
|
|
16389
|
+
var fo = (e) => (t) => {
|
|
16390
|
+
let n = uo(void 0, t, e);
|
|
16366
16391
|
return n.kind === "none" ? void 0 : n.url;
|
|
16367
|
-
},
|
|
16368
|
-
function
|
|
16392
|
+
}, po = /^--[A-Za-z0-9_-]{1,120}$/, mo = 2e3, ho = /^[A-Za-z0-9_\-.#:\s>[\]="'()*,]+$/, go = /^[a-z][a-z0-9-]{0,40}$/;
|
|
16393
|
+
function _o(e) {
|
|
16369
16394
|
if (typeof e != "string" && typeof e != "number") return null;
|
|
16370
16395
|
let t = String(e).trim();
|
|
16371
|
-
if (!t || t.length >
|
|
16396
|
+
if (!t || t.length > mo || /[;{}<>\\]|\/\*|\*\/|@import|expression\s*\(|javascript:|behavior\s*:|-moz-binding|url\s*\(|image-set\s*\(/i.test(t)) return null;
|
|
16372
16397
|
let n = 0;
|
|
16373
16398
|
for (let e of t) if (e === "(") n += 1;
|
|
16374
16399
|
else if (e === ")" && --n < 0) return null;
|
|
16375
16400
|
return n === 0 ? t : null;
|
|
16376
16401
|
}
|
|
16377
|
-
var
|
|
16378
|
-
if (!
|
|
16379
|
-
let n =
|
|
16402
|
+
var vo = (e, t) => {
|
|
16403
|
+
if (!po.test(e)) return null;
|
|
16404
|
+
let n = _o(t);
|
|
16380
16405
|
return n === null ? null : `${e}:${n}`;
|
|
16381
16406
|
};
|
|
16382
|
-
function
|
|
16407
|
+
function yo(e) {
|
|
16383
16408
|
let t = l(e), n = t.get("--color-action-primary-bg"), r = t.get("--color-action-primary-text");
|
|
16384
16409
|
return n && na(f(t, d(n)), r ? f(t, d(r)) : void 0) || "#FFFFFF";
|
|
16385
16410
|
}
|
|
16386
|
-
function
|
|
16411
|
+
function bo(e) {
|
|
16387
16412
|
return {
|
|
16388
|
-
"--plx-on-accent":
|
|
16413
|
+
"--plx-on-accent": yo(e),
|
|
16389
16414
|
"--plx-accent": "var(--color-action-primary-bg)"
|
|
16390
16415
|
};
|
|
16391
16416
|
}
|
|
16392
|
-
function
|
|
16417
|
+
function xo(e) {
|
|
16393
16418
|
let t = l(e), n = new Set((e.fonts ?? []).map((e) => e.family.toLowerCase())), r = /* @__PURE__ */ new Set();
|
|
16394
16419
|
for (let i of e.tokens) {
|
|
16395
16420
|
if (i.type !== "font family") continue;
|
|
@@ -16398,58 +16423,58 @@ function bo(e) {
|
|
|
16398
16423
|
}
|
|
16399
16424
|
return [...r];
|
|
16400
16425
|
}
|
|
16401
|
-
var
|
|
16402
|
-
function
|
|
16426
|
+
var So = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[^A-Za-z0-9]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
16427
|
+
function Co(e, t) {
|
|
16403
16428
|
let n = [], r = /* @__PURE__ */ new Set();
|
|
16404
16429
|
for (let [t, i] of Object.entries(e ?? {})) {
|
|
16405
|
-
let e =
|
|
16430
|
+
let e = So(t), a = _o(i?.value);
|
|
16406
16431
|
!/^[a-z-]{1,60}$/.test(e) || a === null || (r.add(e), n.push(`${e}:${a}`));
|
|
16407
16432
|
}
|
|
16408
16433
|
for (let [e, i] of Object.entries(t ?? {})) {
|
|
16409
|
-
let t =
|
|
16434
|
+
let t = So(e), a = _o(i);
|
|
16410
16435
|
r.has(t) || !/^[a-z-]{1,60}$/.test(t) || a === null || n.push(`${t}:${a}`);
|
|
16411
16436
|
}
|
|
16412
16437
|
return n.join(";");
|
|
16413
16438
|
}
|
|
16414
|
-
function
|
|
16439
|
+
function wo(e, t) {
|
|
16415
16440
|
t(e);
|
|
16416
|
-
for (let n of e.children ?? [])
|
|
16441
|
+
for (let n of e.children ?? []) wo(n, t);
|
|
16417
16442
|
}
|
|
16418
|
-
function
|
|
16443
|
+
function To(e, t = "plx-brand", n = "") {
|
|
16419
16444
|
let r = [], i = /* @__PURE__ */ new Set(), a = n ? `${n} ` : "";
|
|
16420
16445
|
for (let n of e.components ?? []) {
|
|
16421
|
-
let e =
|
|
16422
|
-
if (!
|
|
16423
|
-
let o =
|
|
16446
|
+
let e = So(String(n?.name ?? ""));
|
|
16447
|
+
if (!go.test(e)) continue;
|
|
16448
|
+
let o = So(String(n.variant ?? "default")), s = `.${t}-${e}`, c = [`${s}--${go.test(o) ? o : "default"}`];
|
|
16424
16449
|
(!i.has(e) || o === "default") && c.unshift(s), i.add(e);
|
|
16425
|
-
for (let i of n.nodes ?? [])
|
|
16426
|
-
let i =
|
|
16427
|
-
if (!o && !
|
|
16428
|
-
let l = (n) => o ? n : `${n} .${t}-${e}__${i}`, u =
|
|
16450
|
+
for (let i of n.nodes ?? []) wo(i, (n) => {
|
|
16451
|
+
let i = So(String(n.role ?? "")), o = i === "root" || i === "";
|
|
16452
|
+
if (!o && !go.test(i)) return;
|
|
16453
|
+
let l = (n) => o ? n : `${n} .${t}-${e}__${i}`, u = Co(n.properties, n.styles);
|
|
16429
16454
|
u && r.push(`${c.map((e) => `${a}${l(e)}`).join(",")}{${u}}`);
|
|
16430
16455
|
for (let [e, t] of Object.entries(n.variants ?? {})) {
|
|
16431
|
-
let n =
|
|
16432
|
-
|
|
16456
|
+
let n = So(e), i = Co(t?.properties);
|
|
16457
|
+
go.test(n) && i && r.push(`${a}${l(`${s}--${n}`)}{${i}}`);
|
|
16433
16458
|
}
|
|
16434
16459
|
});
|
|
16435
16460
|
}
|
|
16436
16461
|
return r.join("\n");
|
|
16437
16462
|
}
|
|
16438
|
-
function
|
|
16463
|
+
function Eo(e) {
|
|
16439
16464
|
return e ? Array.isArray(e) ? e.map((e) => [e.key, d(e)]) : "tokens" in e && Array.isArray(e.tokens) ? e.tokens.map((e) => [e.key, d(e)]) : Object.entries(e) : [];
|
|
16440
16465
|
}
|
|
16441
|
-
function
|
|
16442
|
-
let n = t.selector &&
|
|
16466
|
+
function Do(e, t = {}) {
|
|
16467
|
+
let n = t.selector && ho.test(t.selector) && !/[{};]/.test(t.selector) ? t.selector.trim() : ":root", r = [];
|
|
16443
16468
|
if (t.banner && r.push(`/* ${t.banner.replace(/\*\//g, "").replace(/[\r\n]+/g, " ").slice(0, 200)} */`), t.fonts !== !1) {
|
|
16444
|
-
for (let t of s(
|
|
16469
|
+
for (let t of s(xo(e))) r.push(`@import url("${t}");`);
|
|
16445
16470
|
let t = p(e.fonts);
|
|
16446
16471
|
t && r.push(t);
|
|
16447
16472
|
}
|
|
16448
|
-
let i = [...e.tokens.map((e) =>
|
|
16473
|
+
let i = [...e.tokens.map((e) => vo(e.key, d(e))), ...Object.entries(bo(e)).map(([e, t]) => vo(e, t))].filter(Boolean);
|
|
16449
16474
|
r.push(`${n}{${i.join(";")}}`);
|
|
16450
|
-
let a =
|
|
16475
|
+
let a = Eo(t.dark).map(([e, t]) => vo(e, t)).filter(Boolean);
|
|
16451
16476
|
if (a.length) {
|
|
16452
|
-
let i = { tokens: [...new Map([...e.tokens.map((e) => [e.key, e]), ...
|
|
16477
|
+
let i = { tokens: [...new Map([...e.tokens.map((e) => [e.key, e]), ...Eo(t.dark).map(([e, t]) => [e, {
|
|
16453
16478
|
key: e,
|
|
16454
16479
|
name: e,
|
|
16455
16480
|
value: t,
|
|
@@ -16457,18 +16482,18 @@ function Eo(e, t = {}) {
|
|
|
16457
16482
|
unit: null,
|
|
16458
16483
|
layer: "brand",
|
|
16459
16484
|
comment: null
|
|
16460
|
-
}])]).values()] }, o = [...a,
|
|
16485
|
+
}])]).values()] }, o = [...a, vo("--plx-on-accent", yo(i))].filter(Boolean).join(";"), s = n === ":root" ? ":root:not([data-theme=\"light\"])" : `${n}:not([data-theme="light"])`;
|
|
16461
16486
|
r.push(`@media (prefers-color-scheme: dark){${s}{${o}}}`), r.push(`${n === ":root" ? ":root" : n}[data-theme="dark"]{${o}}`);
|
|
16462
16487
|
}
|
|
16463
16488
|
if (t.components !== !1) {
|
|
16464
|
-
let i =
|
|
16489
|
+
let i = To(e, t.classPrefix && go.test(t.classPrefix) ? t.classPrefix : "plx-brand", n === ":root" ? "" : n);
|
|
16465
16490
|
i && r.push(i);
|
|
16466
16491
|
}
|
|
16467
16492
|
return r.join("\n") + "\n";
|
|
16468
16493
|
}
|
|
16469
16494
|
//#endregion
|
|
16470
16495
|
//#region src/v2/design/css.ts
|
|
16471
|
-
var
|
|
16496
|
+
var Oo = {
|
|
16472
16497
|
compact: {
|
|
16473
16498
|
desktop: {
|
|
16474
16499
|
y: "3.5rem",
|
|
@@ -16521,53 +16546,53 @@ var Do = {
|
|
|
16521
16546
|
}
|
|
16522
16547
|
}
|
|
16523
16548
|
};
|
|
16524
|
-
function
|
|
16549
|
+
function ko(e) {
|
|
16525
16550
|
return Object.fromEntries(e.tokens.map((e) => [e.key, d(e)]));
|
|
16526
16551
|
}
|
|
16527
16552
|
function Z(e, t) {
|
|
16528
|
-
let n =
|
|
16553
|
+
let n = Oo[e.options?.density ?? "comfortable"][t];
|
|
16529
16554
|
return {
|
|
16530
16555
|
...fe(t),
|
|
16531
16556
|
"--plx-section-y": n.y,
|
|
16532
16557
|
"--plx-gutter": n.gutter,
|
|
16533
16558
|
"--plx-gap": n.gap,
|
|
16534
16559
|
"--plx-content-width": "min(100%, var(--container-width-max, 80rem))",
|
|
16535
|
-
...
|
|
16560
|
+
...bo(e)
|
|
16536
16561
|
};
|
|
16537
16562
|
}
|
|
16538
|
-
function
|
|
16563
|
+
function Ao(e, t) {
|
|
16539
16564
|
return {
|
|
16540
|
-
...
|
|
16565
|
+
...ko(e),
|
|
16541
16566
|
...Z(e, t)
|
|
16542
16567
|
};
|
|
16543
16568
|
}
|
|
16544
|
-
var
|
|
16545
|
-
function
|
|
16569
|
+
var jo = /var\(\s*(--[A-Za-z0-9_-]+)/g, Mo = (e) => [...e.matchAll(jo)].map((e) => e[1]);
|
|
16570
|
+
function No(e, t) {
|
|
16546
16571
|
let n = l(e), r = Z(e, "desktop"), i = Z(e, "tablet"), a = Z(e, "mobile"), o = (e) => {
|
|
16547
16572
|
if (e in r) return r[e];
|
|
16548
16573
|
let t = n.get(e);
|
|
16549
16574
|
return t ? d(t) : void 0;
|
|
16550
|
-
}, s = /* @__PURE__ */ new Set(), c = {}, u =
|
|
16575
|
+
}, s = /* @__PURE__ */ new Set(), c = {}, u = Mo(t);
|
|
16551
16576
|
for (; u.length;) {
|
|
16552
16577
|
let e = u.pop();
|
|
16553
16578
|
if (s.has(e)) continue;
|
|
16554
16579
|
let t = o(e);
|
|
16555
|
-
t !== void 0 && (s.add(e), c[e] = t, u.push(...
|
|
16580
|
+
t !== void 0 && (s.add(e), c[e] = t, u.push(...Mo(t)), e in i && u.push(...Mo(i[e])), e in a && u.push(...Mo(a[e])));
|
|
16556
16581
|
}
|
|
16557
16582
|
return {
|
|
16558
16583
|
needed: s,
|
|
16559
16584
|
vars: c
|
|
16560
16585
|
};
|
|
16561
16586
|
}
|
|
16562
|
-
function
|
|
16563
|
-
let { vars: r } =
|
|
16587
|
+
function Po(e, t, n) {
|
|
16588
|
+
let { vars: r } = No(e, `${n} var(--color-brand-primary-500) var(--color-text-primary) var(--color-text-muted) var(--color-border-default) var(--color-bg-surface) var(--color-bg-canvas) var(--radius-lg) var(--font-family-body)`);
|
|
16564
16589
|
return {
|
|
16565
16590
|
...r,
|
|
16566
16591
|
...Z(e, t)
|
|
16567
16592
|
};
|
|
16568
16593
|
}
|
|
16569
|
-
function
|
|
16570
|
-
let { needed: n } =
|
|
16594
|
+
function Fo(e, t) {
|
|
16595
|
+
let { needed: n } = No(e, t), r = l(e), i = /* @__PURE__ */ new Set();
|
|
16571
16596
|
for (let e of n) {
|
|
16572
16597
|
let t = r.get(e);
|
|
16573
16598
|
if (!t || t.type !== "font family") continue;
|
|
@@ -16576,8 +16601,8 @@ function Po(e, t) {
|
|
|
16576
16601
|
}
|
|
16577
16602
|
return [...i];
|
|
16578
16603
|
}
|
|
16579
|
-
function
|
|
16580
|
-
let { needed: r, vars: i } =
|
|
16604
|
+
function Io(e, t, n = "root") {
|
|
16605
|
+
let { needed: r, vars: i } = No(e, t), a = (e, t) => e.map((e) => `${e}:${t[e]}`).join(";"), o = [...r], s = [`${n === "page" ? ".plx-page" : ":where(:root)"}{${a(o, i)}}`];
|
|
16581
16606
|
for (let [t, n] of [["tablet", "(max-width: 1023px)"], ["mobile", "(max-width: 599px)"]]) {
|
|
16582
16607
|
let i = Z(e, t), o = Z(e, t === "tablet" ? "desktop" : "tablet"), c = Object.keys(i).filter((e) => r.has(e) && i[e] !== o[e]);
|
|
16583
16608
|
c.length && s.push(`@container plx-page ${n}{.plx-page>*{${a(c, i)}}}`);
|
|
@@ -16586,11 +16611,11 @@ function Fo(e, t, n = "root") {
|
|
|
16586
16611
|
}
|
|
16587
16612
|
//#endregion
|
|
16588
16613
|
//#region src/v2/render/anchors.ts
|
|
16589
|
-
var
|
|
16590
|
-
function
|
|
16614
|
+
var Lo = (e) => e.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
16615
|
+
function Ro(e) {
|
|
16591
16616
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = (e) => {
|
|
16592
16617
|
if (e.type === "section") {
|
|
16593
|
-
let r = nt((typeof e.props?.anchor == "string" ?
|
|
16618
|
+
let r = nt((typeof e.props?.anchor == "string" ? Lo(e.props.anchor) : "") || Lo(e.name || "") || "section", "section"), i = r;
|
|
16594
16619
|
for (let e = 2; n.has(i); e++) i = `${r}-${e}`;
|
|
16595
16620
|
n.add(i), t.set(e.id, i);
|
|
16596
16621
|
}
|
|
@@ -16600,23 +16625,23 @@ function Lo(e) {
|
|
|
16600
16625
|
}
|
|
16601
16626
|
//#endregion
|
|
16602
16627
|
//#region src/v2/render/boxTags.ts
|
|
16603
|
-
var
|
|
16628
|
+
var zo = [
|
|
16604
16629
|
"header",
|
|
16605
16630
|
"nav",
|
|
16606
16631
|
"main",
|
|
16607
16632
|
"footer",
|
|
16608
16633
|
"aside",
|
|
16609
16634
|
"article"
|
|
16610
|
-
],
|
|
16635
|
+
], Bo = {
|
|
16611
16636
|
section: [
|
|
16612
16637
|
"section",
|
|
16613
|
-
...
|
|
16638
|
+
...zo,
|
|
16614
16639
|
"div"
|
|
16615
16640
|
],
|
|
16616
16641
|
container: [
|
|
16617
16642
|
"div",
|
|
16618
16643
|
"section",
|
|
16619
|
-
...
|
|
16644
|
+
...zo
|
|
16620
16645
|
],
|
|
16621
16646
|
card: [
|
|
16622
16647
|
"div",
|
|
@@ -16627,52 +16652,52 @@ var Ro = [
|
|
|
16627
16652
|
columns: [
|
|
16628
16653
|
"div",
|
|
16629
16654
|
"section",
|
|
16630
|
-
...
|
|
16655
|
+
...zo
|
|
16631
16656
|
],
|
|
16632
16657
|
column: [
|
|
16633
16658
|
"div",
|
|
16634
16659
|
"section",
|
|
16635
|
-
...
|
|
16660
|
+
...zo
|
|
16636
16661
|
]
|
|
16637
|
-
},
|
|
16662
|
+
}, Vo = {
|
|
16638
16663
|
section: "section",
|
|
16639
16664
|
container: "div",
|
|
16640
16665
|
card: "div",
|
|
16641
16666
|
columns: "div",
|
|
16642
16667
|
column: "div"
|
|
16643
|
-
},
|
|
16644
|
-
function
|
|
16668
|
+
}, Ho = null, Uo = () => Ho ??= v(), Wo = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
16669
|
+
function Go(e) {
|
|
16645
16670
|
if (!/^(?:repeating-)?(?:linear|radial|conic)-gradient\(/i.test(e) || e.length > 600 || !/^[A-Za-z0-9\s.,#%()\-+*/]+$/.test(e) || /url\s*\(|expression|javascript|image-set|\/\*/i.test(e)) return !1;
|
|
16646
16671
|
let t = 0;
|
|
16647
16672
|
for (let n of e) if (n === "(") t += 1;
|
|
16648
16673
|
else if (n === ")" && --t < 0) return !1;
|
|
16649
16674
|
return t === 0 && e.endsWith(")");
|
|
16650
16675
|
}
|
|
16651
|
-
function
|
|
16676
|
+
function Ko(e, t) {
|
|
16652
16677
|
if (typeof t == "number") return Number.isFinite(t) ? String(t) : null;
|
|
16653
16678
|
let n = t.trim();
|
|
16654
|
-
return n ? e === "backgroundImage" ? n === "none" || /^url\("(?:[^"\\\n]|\\[0-9a-f]{1,6} )*"\)$/i.test(n) ||
|
|
16679
|
+
return n ? e === "backgroundImage" ? n === "none" || /^url\("(?:[^"\\\n]|\\[0-9a-f]{1,6} )*"\)$/i.test(n) || Go(n) ? n : null : /[;{}<>\\]|\/\*|@import|expression\s*\(|javascript:|behavior\s*:|-moz-binding|url\s*\(/i.test(n) ? null : n : null;
|
|
16655
16680
|
}
|
|
16656
|
-
function
|
|
16681
|
+
function qo(e) {
|
|
16657
16682
|
let t = [];
|
|
16658
16683
|
for (let [n, r] of Object.entries(e)) {
|
|
16659
16684
|
if (r === void 0) continue;
|
|
16660
|
-
let e =
|
|
16661
|
-
e !== null && t.push(`${
|
|
16685
|
+
let e = Ko(n, r);
|
|
16686
|
+
e !== null && t.push(`${Wo(n)}:${e}`);
|
|
16662
16687
|
}
|
|
16663
16688
|
return t.join(";");
|
|
16664
16689
|
}
|
|
16665
|
-
function
|
|
16690
|
+
function Jo(e, t) {
|
|
16666
16691
|
let n = {};
|
|
16667
16692
|
for (let r of Object.keys(t)) e[r] !== t[r] && (n[r] = t[r]);
|
|
16668
16693
|
for (let r of Object.keys(e)) r in t || (n[r] = r === "display" ? "revert" : "unset");
|
|
16669
16694
|
return n;
|
|
16670
16695
|
}
|
|
16671
|
-
var
|
|
16696
|
+
var Yo = (e) => {
|
|
16672
16697
|
let t = e?.split(",")[0]?.trim().replace(/^['"]|['"]$/g, "");
|
|
16673
16698
|
return t && c(t) ? t : null;
|
|
16674
16699
|
};
|
|
16675
|
-
function
|
|
16700
|
+
function Xo(e, t) {
|
|
16676
16701
|
if (t && e.includes(t)) {
|
|
16677
16702
|
let [n, ...r] = e.split(t);
|
|
16678
16703
|
return [
|
|
@@ -16683,8 +16708,8 @@ function Yo(e, t) {
|
|
|
16683
16708
|
}
|
|
16684
16709
|
return [e];
|
|
16685
16710
|
}
|
|
16686
|
-
var
|
|
16687
|
-
function
|
|
16711
|
+
var Zo = (e) => e.children?.length || (e.content ?? "").trim() ? !1 : e.type === "heading" || e.type === "paragraph" || e.type === "badge" || e.type === "button" && typeof e.props?.bind == "string";
|
|
16712
|
+
function Qo(e, t = {}) {
|
|
16688
16713
|
let n = re(Ji(e)), r = {
|
|
16689
16714
|
desktop: k(n.rootNode, "desktop"),
|
|
16690
16715
|
tablet: k(n.rootNode, "tablet"),
|
|
@@ -16693,8 +16718,8 @@ function Zo(e, t = {}) {
|
|
|
16693
16718
|
apiKey: t.apiKey,
|
|
16694
16719
|
templateId: t.templateId,
|
|
16695
16720
|
formAction: t.formAction
|
|
16696
|
-
}, v =
|
|
16697
|
-
if (e.hidden ||
|
|
16721
|
+
}, v = Ro(n.rootNode), b = (e, n) => {
|
|
16722
|
+
if (e.hidden || Zo(e)) return null;
|
|
16698
16723
|
let a = e.type === "page", s = {
|
|
16699
16724
|
desktop: !0,
|
|
16700
16725
|
tablet: !0,
|
|
@@ -16708,14 +16733,14 @@ function Zo(e, t = {}) {
|
|
|
16708
16733
|
f[t] = { display: "none" };
|
|
16709
16734
|
continue;
|
|
16710
16735
|
}
|
|
16711
|
-
let r = y(e, t), i =
|
|
16736
|
+
let r = y(e, t), i = Ba(e, r, {
|
|
16712
16737
|
viewport: t,
|
|
16713
16738
|
isGridChild: (n ? y(n, t).layoutMode : void 0) === "grid",
|
|
16714
16739
|
isRootPage: a,
|
|
16715
16740
|
forPublish: !0
|
|
16716
16741
|
}).css;
|
|
16717
16742
|
e.type === "section" && (i.overflow = "hidden"), e.props?.isFlowSpacer && (i.visibility = "hidden"), f[t] = i;
|
|
16718
|
-
let l =
|
|
16743
|
+
let l = Yo(r.fontFamily);
|
|
16719
16744
|
l && o.add(l);
|
|
16720
16745
|
let u = r.isBold ? 700 : Number(r.fontWeight);
|
|
16721
16746
|
Number.isInteger(u) && u >= 100 && u <= 900 && c.add(u);
|
|
@@ -16724,22 +16749,22 @@ function Zo(e, t = {}) {
|
|
|
16724
16749
|
cls: u,
|
|
16725
16750
|
rule: f
|
|
16726
16751
|
});
|
|
16727
|
-
let p =
|
|
16752
|
+
let p = La(y(e, "desktop"));
|
|
16728
16753
|
p && m.push({
|
|
16729
16754
|
cls: u,
|
|
16730
16755
|
css: p
|
|
16731
16756
|
});
|
|
16732
16757
|
let b = [u, tt(y(e, "desktop").customClasses)].filter(Boolean).join(" "), x = () => (e.children ?? []).map((t) => C(t, e)).filter((e) => e !== null);
|
|
16733
16758
|
if (St(e.type)) {
|
|
16734
|
-
let n =
|
|
16759
|
+
let n = co(e, {
|
|
16735
16760
|
uid: nt(e.id),
|
|
16736
16761
|
editing: !1,
|
|
16737
16762
|
allowEmbedScripts: t.allowEmbedScripts !== !1,
|
|
16738
|
-
formAction:
|
|
16763
|
+
formAction: fo(_),
|
|
16739
16764
|
now: g,
|
|
16740
16765
|
templateId: t.templateId
|
|
16741
16766
|
});
|
|
16742
|
-
return n ? ((e.type === "carousel" || e.type === "timer" || e.type === "form") && (d = !0), e.type === "form" &&
|
|
16767
|
+
return n ? ((e.type === "carousel" || e.type === "timer" || e.type === "form") && (d = !0), e.type === "form" && uo((e.props ?? {}).action, e.id, _).kind === "none" && l.push(`The form "${e.name}" has nowhere to send messages. Give it an address, or set one for the whole site.`), e.type === "signupForm" && !n.attrs?.["data-plexo-template-id"] && l.push(`The sign-up form "${e.name}" isn't connected to a funnel yet, so visitors can't sign up.`), {
|
|
16743
16768
|
...n,
|
|
16744
16769
|
attrs: {
|
|
16745
16770
|
...n.attrs,
|
|
@@ -16753,10 +16778,10 @@ function Zo(e, t = {}) {
|
|
|
16753
16778
|
class: b,
|
|
16754
16779
|
id: v.get(e.id)
|
|
16755
16780
|
}, x());
|
|
16756
|
-
case "heading": return M(`h${rt(e.props?.level, 1, 6, 2)}`, { class: b },
|
|
16757
|
-
case "paragraph": return M("p", { class: b },
|
|
16781
|
+
case "heading": return M(`h${rt(e.props?.level, 1, 6, 2)}`, { class: b }, Xo(e.content ?? "", e.props?.highlightText));
|
|
16782
|
+
case "paragraph": return M("p", { class: b }, Xo(e.content ?? "", e.props?.highlightText));
|
|
16758
16783
|
case "button": {
|
|
16759
|
-
let t = e.props?.href ? P(e.props.href) : "", n =
|
|
16784
|
+
let t = e.props?.href ? P(e.props.href) : "", n = Xo(e.content ?? "", e.props?.highlightText);
|
|
16760
16785
|
return t && t !== "#" ? M("a", {
|
|
16761
16786
|
class: `${b} plx-btn`,
|
|
16762
16787
|
href: t
|
|
@@ -16765,7 +16790,7 @@ function Zo(e, t = {}) {
|
|
|
16765
16790
|
type: "button"
|
|
16766
16791
|
}, n);
|
|
16767
16792
|
}
|
|
16768
|
-
case "badge": return M("div", { class: b },
|
|
16793
|
+
case "badge": return M("div", { class: b }, Xo(e.content ?? "", e.props?.highlightText));
|
|
16769
16794
|
case "image": {
|
|
16770
16795
|
let t = Xe(e.props?.src);
|
|
16771
16796
|
return M("div", { class: `${b} plx-image` }, t ? {
|
|
@@ -16793,10 +16818,10 @@ function Zo(e, t = {}) {
|
|
|
16793
16818
|
if (!r) return r;
|
|
16794
16819
|
let i = {}, a = typeof e.props?.ariaLabel == "string" ? e.props.ariaLabel.trim().slice(0, 200) : "";
|
|
16795
16820
|
a && (i["aria-label"] = a), e.props?.ariaHidden === !0 && (i["aria-hidden"] = "true");
|
|
16796
|
-
let o =
|
|
16821
|
+
let o = Bo[e.type] && typeof e.props?.htmlTag == "string" && Bo[e.type].includes(e.props.htmlTag) ? e.props.htmlTag : null, s = o ? {
|
|
16797
16822
|
...r,
|
|
16798
16823
|
tag: o
|
|
16799
|
-
} : r, c = e.type === "page" ? void 0 :
|
|
16824
|
+
} : r, c = e.type === "page" ? void 0 : za(y(e, "desktop"));
|
|
16800
16825
|
c && (d = !0, f = !0, i.class = `${s.attrs?.class ?? ""} plx-in plx-in-${c.kind}`.trim());
|
|
16801
16826
|
let l = Object.keys(i).length ? {
|
|
16802
16827
|
...s,
|
|
@@ -16814,7 +16839,7 @@ function Zo(e, t = {}) {
|
|
|
16814
16839
|
...l.attrs,
|
|
16815
16840
|
"data-plx-node": e.id
|
|
16816
16841
|
}
|
|
16817
|
-
} : l, p = e.type === "section" ? null :
|
|
16842
|
+
} : l, p = e.type === "section" ? null : ua(e.props?.htmlId);
|
|
16818
16843
|
if (!p) return u;
|
|
16819
16844
|
let m = p;
|
|
16820
16845
|
for (let e = 2; S.has(m); e++) m = `${p}-${e}`;
|
|
@@ -16831,7 +16856,7 @@ function Zo(e, t = {}) {
|
|
|
16831
16856
|
for (let [n, i] of r[e]) i === "outside" && r.desktop.get(n) !== "outside" && (t += 1);
|
|
16832
16857
|
t && l.push(`On ${e}, ${t === 1 ? "1 element is" : `${t} elements are`} outside the screen and won't appear. Open the ${e} view and choose "Fit to this screen".`);
|
|
16833
16858
|
}
|
|
16834
|
-
let w = t.designSystem ? u(t.designSystem) :
|
|
16859
|
+
let w = t.designSystem ? u(t.designSystem) : Uo(), T = C(n.rootNode, null) ?? M("div", { class: "plx-page" }), te = RegExp(`"type":"(${xt.join("|")})"`).test(JSON.stringify(n.rootNode)), E = [
|
|
16835
16860
|
":where(.plx-page,.plx-page *,.plx-page *::before,.plx-page *::after){box-sizing:border-box}",
|
|
16836
16861
|
":where(.plx-page *){margin:0;padding:0;border:0 solid}",
|
|
16837
16862
|
".plx-page{position:relative;overflow-x:clip;container-type:inline-size;container-name:plx-page;-webkit-text-size-adjust:100%;font-family:var(--semantic-font-family-body, var(--font-family-sans))}",
|
|
@@ -16847,29 +16872,29 @@ function Zo(e, t = {}) {
|
|
|
16847
16872
|
".plx-hl{color:#FBBF24;font-style:italic;font-family:serif;font-weight:400}",
|
|
16848
16873
|
".plx-ph{width:100%;height:100%;min-height:60px;background:linear-gradient(135deg,rgba(128,128,128,.18),rgba(128,128,128,.32))}"
|
|
16849
16874
|
];
|
|
16850
|
-
te && E.push(
|
|
16875
|
+
te && E.push(lo);
|
|
16851
16876
|
for (let { cls: e, rule: t } of i) {
|
|
16852
|
-
let n = t.desktop ?
|
|
16877
|
+
let n = t.desktop ? qo(t.desktop) : "";
|
|
16853
16878
|
n && E.push(`.${e}{${n}}`);
|
|
16854
16879
|
}
|
|
16855
|
-
m.length && E.push(`@media (hover:hover){${m.map((e) => `.${e.cls}:hover{${
|
|
16880
|
+
m.length && E.push(`@media (hover:hover){${m.map((e) => `.${e.cls}:hover{${qo(e.css)}}`).join("")}}`), f && E.push("@media (prefers-reduced-motion:no-preference){.plx-anim .plx-in{opacity:0;transition:opacity .6s ease-out var(--plx-delay,0ms),translate .6s ease-out var(--plx-delay,0ms),scale .6s ease-out var(--plx-delay,0ms)}.plx-anim .plx-in.plx-in-slide-up{translate:0 28px}.plx-anim .plx-in.plx-in-slide-left{translate:-36px 0}.plx-anim .plx-in.plx-in-slide-right{translate:36px 0}.plx-anim .plx-in.plx-in-zoom{scale:.92}.plx-anim .plx-in.plx-in-on{opacity:1;translate:none;scale:none}}");
|
|
16856
16881
|
for (let e of ["tablet", "mobile"]) {
|
|
16857
16882
|
let t = e === "tablet" ? "desktop" : "tablet", n = [];
|
|
16858
16883
|
for (let { cls: r, rule: a } of i) {
|
|
16859
|
-
let i =
|
|
16884
|
+
let i = qo(Jo(a[t] ?? {}, a[e] ?? {}));
|
|
16860
16885
|
i && n.push(`.${r}{${i}}`);
|
|
16861
16886
|
}
|
|
16862
16887
|
n.length && E.push(`@container plx-page ${x[e]}{${n.join("")}}`);
|
|
16863
16888
|
}
|
|
16864
16889
|
let ne = E.join("\n");
|
|
16865
|
-
for (let e of
|
|
16890
|
+
for (let e of Fo(w, ne)) o.add(e);
|
|
16866
16891
|
let D = [...o], O = new Set(D.filter((e) => a(w.fonts, e)).map((e) => e.toLowerCase())), ie = p(w.fonts, O), ae = s(D.filter((e) => !O.has(e.toLowerCase())).map((e) => ({
|
|
16867
16892
|
family: e,
|
|
16868
16893
|
weights: [...c]
|
|
16869
16894
|
})));
|
|
16870
16895
|
return {
|
|
16871
16896
|
tree: T,
|
|
16872
|
-
css: `${ie ? `${ie}\n` : ""}${
|
|
16897
|
+
css: `${ie ? `${ie}\n` : ""}${Io(w, ne, t.tokenScope)}\n${ne}`,
|
|
16873
16898
|
usesRuntime: d,
|
|
16874
16899
|
fonts: D,
|
|
16875
16900
|
fontLinks: ae,
|
|
@@ -16878,7 +16903,7 @@ function Zo(e, t = {}) {
|
|
|
16878
16903
|
}
|
|
16879
16904
|
//#endregion
|
|
16880
16905
|
//#region src/v2/compile/html.ts
|
|
16881
|
-
var
|
|
16906
|
+
var $o = (e) => {
|
|
16882
16907
|
let t = "";
|
|
16883
16908
|
for (let [n, r] of Object.entries(e.attrs ?? {})) r === void 0 || r === !1 || (t += r === !0 ? ` ${n}` : ` ${n}="${N(String(r))}"`);
|
|
16884
16909
|
if (e.style) {
|
|
@@ -16887,13 +16912,13 @@ var Qo = (e) => {
|
|
|
16887
16912
|
}
|
|
16888
16913
|
return t;
|
|
16889
16914
|
};
|
|
16890
|
-
function
|
|
16915
|
+
function es(e) {
|
|
16891
16916
|
if (typeof e == "string") return qe(e);
|
|
16892
|
-
let t = `<${e.tag}${
|
|
16893
|
-
return Be.has(e.tag) ? t : `${t}${(e.children ?? []).map(
|
|
16917
|
+
let t = `<${e.tag}${$o(e)}>`;
|
|
16918
|
+
return Be.has(e.tag) ? t : `${t}${(e.children ?? []).map(es).join("")}</${e.tag}>`;
|
|
16894
16919
|
}
|
|
16895
|
-
function
|
|
16896
|
-
let n =
|
|
16920
|
+
function ts(e, t = {}) {
|
|
16921
|
+
let n = Qo(e, t), r = es(n.tree), i = t.runtime === "none" || !n.usesRuntime ? "" : `(${ca})(document);`.replace(/<\/script/gi, "<\\/script"), a = fa(t.customJs);
|
|
16897
16922
|
a.warning && n.warnings.push(a.warning);
|
|
16898
16923
|
let o = a.code ? `${i}${i ? "\n" : ""}${a.code}` : i, s = n.fontLinks.length ? `<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>${n.fontLinks.map((e) => `<link rel="stylesheet" href="${N(e)}">`).join("")}` : "", c = `<!doctype html>
|
|
16899
16924
|
<html lang="${N(t.lang ?? "en")}">
|
|
@@ -16919,14 +16944,14 @@ ${i ? `<script>${i}<\/script>\n` : ""}${a.code ? `<script>\n${a.code}\n<\/script
|
|
|
16919
16944
|
}
|
|
16920
16945
|
//#endregion
|
|
16921
16946
|
//#region src/v2/email/support.ts
|
|
16922
|
-
var
|
|
16947
|
+
var ns = /* @__PURE__ */ new Set([
|
|
16923
16948
|
"page",
|
|
16924
16949
|
"section",
|
|
16925
16950
|
"container",
|
|
16926
16951
|
"columns",
|
|
16927
16952
|
"column",
|
|
16928
16953
|
"card"
|
|
16929
|
-
]),
|
|
16954
|
+
]), rs = /* @__PURE__ */ new Set([
|
|
16930
16955
|
"heading",
|
|
16931
16956
|
"paragraph",
|
|
16932
16957
|
"button",
|
|
@@ -16934,18 +16959,18 @@ var ts = /* @__PURE__ */ new Set([
|
|
|
16934
16959
|
"divider",
|
|
16935
16960
|
"spacer",
|
|
16936
16961
|
"badge"
|
|
16937
|
-
]),
|
|
16938
|
-
t(e, n), e.children?.forEach((n) =>
|
|
16962
|
+
]), is = (e) => ns.has(e) || rs.has(e), as = 600, os = (e, t, n = null) => {
|
|
16963
|
+
t(e, n), e.children?.forEach((n) => os(n, t, e));
|
|
16939
16964
|
};
|
|
16940
|
-
function
|
|
16965
|
+
function ss(e) {
|
|
16941
16966
|
let t = [];
|
|
16942
|
-
return
|
|
16967
|
+
return os(e.rootNode, (e) => {
|
|
16943
16968
|
let n = (n) => t.push({
|
|
16944
16969
|
nodeId: e.id,
|
|
16945
16970
|
name: e.name,
|
|
16946
16971
|
message: n
|
|
16947
16972
|
});
|
|
16948
|
-
if (!
|
|
16973
|
+
if (!is(e.type)) {
|
|
16949
16974
|
n(`“${e.name}” is a ${e.type}, which email apps can't show, so it is left out.`);
|
|
16950
16975
|
return;
|
|
16951
16976
|
}
|
|
@@ -16955,7 +16980,7 @@ function os(e) {
|
|
|
16955
16980
|
}
|
|
16956
16981
|
//#endregion
|
|
16957
16982
|
//#region src/v2/email/compile.ts
|
|
16958
|
-
var
|
|
16983
|
+
var cs = (t) => {
|
|
16959
16984
|
let n = e(t);
|
|
16960
16985
|
return n && n.a > .05 ? [
|
|
16961
16986
|
n.r,
|
|
@@ -16963,7 +16988,7 @@ var ss = (t) => {
|
|
|
16963
16988
|
n.b
|
|
16964
16989
|
] : null;
|
|
16965
16990
|
};
|
|
16966
|
-
function
|
|
16991
|
+
function ls([e, t, n]) {
|
|
16967
16992
|
let r = e / 255, i = t / 255, a = n / 255, o = Math.max(r, i, a), s = Math.min(r, i, a), c = (o + s) / 2;
|
|
16968
16993
|
if (o === s) return [
|
|
16969
16994
|
0,
|
|
@@ -16986,14 +17011,14 @@ var Q = (e, r, i) => {
|
|
|
16986
17011
|
a: 1
|
|
16987
17012
|
});
|
|
16988
17013
|
};
|
|
16989
|
-
function
|
|
16990
|
-
let n =
|
|
17014
|
+
function us(e, t) {
|
|
17015
|
+
let n = cs(t);
|
|
16991
17016
|
if (!n) return null;
|
|
16992
|
-
let [r, i, a] =
|
|
17017
|
+
let [r, i, a] = ls(n);
|
|
16993
17018
|
return e === "bg" ? a >= .55 ? Q(r, Math.min(i, .35) * .6, .045 + (a - .55) * .2) : null : e === "text" || e === "border" ? a >= .5 ? null : i > .25 ? Q(r, Math.min(i, .7), Math.max(a, .64)) : e === "border" ? Q(r, i, Math.max(a, .55)) : Q(r, i * .8, Math.min(.93, .93 - a * .5)) : e === "btnbg" ? a < .2 && i < .25 ? Q(r, i * .3, .92) : a < .34 ? Q(r, i, .44) : null : e === "btntext" ? a > .8 ? Q(r, Math.min(i, .3), .1) : null : a > .6 ? Q(r, i * .5, .2 + (a - .6) * .15) : null;
|
|
16994
17019
|
}
|
|
16995
|
-
var
|
|
16996
|
-
function
|
|
17020
|
+
var ds = "Arial, Helvetica, sans-serif", $ = (e) => `${Math.round(e * 100) / 100}px`;
|
|
17021
|
+
function fs(e) {
|
|
16997
17022
|
if (typeof e == "number" && Number.isFinite(e)) return e;
|
|
16998
17023
|
if (typeof e != "string") return;
|
|
16999
17024
|
let t = /^\s*(-?\d+(?:\.\d+)?)\s*(px|rem|em)?\s*$/.exec(e);
|
|
@@ -17001,11 +17026,11 @@ function ds(e) {
|
|
|
17001
17026
|
let n = parseFloat(t[1]);
|
|
17002
17027
|
return t[2] === "rem" || t[2] === "em" ? n * 16 : n;
|
|
17003
17028
|
}
|
|
17004
|
-
var
|
|
17029
|
+
var ps = (e) => {
|
|
17005
17030
|
let t = typeof e == "string" ? /^\s*(\d+(?:\.\d+)?)\s*%\s*$/.exec(e) : null;
|
|
17006
17031
|
return t ? parseFloat(t[1]) : void 0;
|
|
17007
17032
|
};
|
|
17008
|
-
function
|
|
17033
|
+
function ms(e, t, n, r, i) {
|
|
17009
17034
|
let a = [
|
|
17010
17035
|
0,
|
|
17011
17036
|
0,
|
|
@@ -17013,7 +17038,7 @@ function ps(e, t, n, r, i) {
|
|
|
17013
17038
|
0
|
|
17014
17039
|
];
|
|
17015
17040
|
if (typeof e == "string" || typeof e == "number") {
|
|
17016
|
-
let t = String(e).trim().split(/\s+/).map((e) =>
|
|
17041
|
+
let t = String(e).trim().split(/\s+/).map((e) => fs(e) ?? 0);
|
|
17017
17042
|
t.length === 1 ? a = [
|
|
17018
17043
|
t[0],
|
|
17019
17044
|
t[0],
|
|
@@ -17036,7 +17061,7 @@ function ps(e, t, n, r, i) {
|
|
|
17036
17061
|
n,
|
|
17037
17062
|
r,
|
|
17038
17063
|
i
|
|
17039
|
-
].map((e) =>
|
|
17064
|
+
].map((e) => fs(e));
|
|
17040
17065
|
return [
|
|
17041
17066
|
o[0] ?? a[0],
|
|
17042
17067
|
o[1] ?? a[1],
|
|
@@ -17044,9 +17069,9 @@ function ps(e, t, n, r, i) {
|
|
|
17044
17069
|
o[3] ?? a[3]
|
|
17045
17070
|
];
|
|
17046
17071
|
}
|
|
17047
|
-
function
|
|
17048
|
-
let n = re(e), r = l(t.designSystem ? u(t.designSystem) : v()), i = Math.min(800, Math.max(320, t.width ?? 600)), a =
|
|
17049
|
-
if (!n || t.dark === "off" || !
|
|
17072
|
+
function hs(e, t = {}) {
|
|
17073
|
+
let n = re(e), r = l(t.designSystem ? u(t.designSystem) : v()), i = Math.min(800, Math.max(320, t.width ?? 600)), a = ss(n).map((e) => e.message), o = [], c = /* @__PURE__ */ new Map(), d = (e, n) => {
|
|
17074
|
+
if (!n || t.dark === "off" || !us(e, n)) return "";
|
|
17050
17075
|
let r = `${e}:${n.toLowerCase()}`, i = c.get(r);
|
|
17051
17076
|
return i || (i = {
|
|
17052
17077
|
cls: `plx-${e[0]}${c.size}`,
|
|
@@ -17059,7 +17084,7 @@ function ms(e, t = {}) {
|
|
|
17059
17084
|
return /^var\(/.test(t) ? void 0 : Qe(t);
|
|
17060
17085
|
}, h = (e) => {
|
|
17061
17086
|
try {
|
|
17062
|
-
return
|
|
17087
|
+
return ga(e, {
|
|
17063
17088
|
width: i,
|
|
17064
17089
|
fontPx: 16,
|
|
17065
17090
|
tokens: r
|
|
@@ -17067,12 +17092,12 @@ function ms(e, t = {}) {
|
|
|
17067
17092
|
} catch {
|
|
17068
17093
|
return;
|
|
17069
17094
|
}
|
|
17070
|
-
}, g = (e) => typeof e == "string" ?
|
|
17095
|
+
}, g = (e) => typeof e == "string" ? fs(e) ?? (/var\(|calc\(/.test(e) ? h(e) : void 0) : fs(e), _ = (() => {
|
|
17071
17096
|
let e = f(r, "var(--semantic-font-family-body, var(--font-family-sans))");
|
|
17072
|
-
return e && !/^var\(/.test(e) ? e :
|
|
17097
|
+
return e && !/^var\(/.test(e) ? e : ds;
|
|
17073
17098
|
})(), y = /* @__PURE__ */ new Map(), b = (e) => {
|
|
17074
17099
|
let t = (typeof e == "string" ? f(r, e.trim()) : "").split(",")[0]?.replace(/["']/g, "").trim();
|
|
17075
|
-
return !t || /^var\(/.test(t) || !/^[\w\s-]{1,60}$/.test(t) ? _.includes(",") ? _ : `${_}, ${
|
|
17100
|
+
return !t || /^var\(/.test(t) || !/^[\w\s-]{1,60}$/.test(t) ? _.includes(",") ? _ : `${_}, ${ds}` : (y.has(t) || y.set(t, /* @__PURE__ */ new Set()), `'${t}', ${/(serif|georgia|times|garamond|playfair|fraunces|lora|merriweather|cormorant|libre baskerville|dm serif|crimson|spectral|newsreader|source serif)/i.test(t) && !/sans/i.test(t) ? "Georgia, 'Times New Roman', serif" : ds}`);
|
|
17076
17101
|
}, x = (e, t) => {
|
|
17077
17102
|
let n = le(t.textStyle) ? t.textStyle : e.type === "heading" ? me(e.props?.level) : null;
|
|
17078
17103
|
return n ? ue(n) : null;
|
|
@@ -17084,7 +17109,7 @@ function ms(e, t = {}) {
|
|
|
17084
17109
|
lh: d,
|
|
17085
17110
|
family: f
|
|
17086
17111
|
};
|
|
17087
|
-
}, S = (e) => qe(e).replace(/\r?\n/g, "<br>"), C = (e) => e.replace(/\s+/g, " ").trim(), w = (e) =>
|
|
17112
|
+
}, S = (e) => qe(e).replace(/\r?\n/g, "<br>"), C = (e) => e.replace(/\s+/g, " ").trim(), w = (e) => ms(e.padding, e.paddingTop, e.paddingRight, e.paddingBottom, e.paddingLeft), T = (e) => e === "center" ? "center" : e === "right" || e === "flex-end" ? "right" : e === "left" || e === "flex-start" ? "left" : void 0, te = (e) => {
|
|
17088
17113
|
let t = g(e.borderWidth), n = m(e.borderColor), r = e.borderStyle && e.borderStyle !== "none" ? e.borderStyle : void 0;
|
|
17089
17114
|
return t && n && r ? `border:${$(t)} ${r} ${n};` : "";
|
|
17090
17115
|
}, E = (e) => {
|
|
@@ -17103,7 +17128,7 @@ function ms(e, t = {}) {
|
|
|
17103
17128
|
return r.length >= 2 && r.length <= 5 ? `background-image:linear-gradient(${t[1]},${r.join(",")});` : "";
|
|
17104
17129
|
};
|
|
17105
17130
|
function O(e, n) {
|
|
17106
|
-
if (!
|
|
17131
|
+
if (!is(e.type)) return "";
|
|
17107
17132
|
let r = e.styles ?? {};
|
|
17108
17133
|
if (r.display === "none") return "";
|
|
17109
17134
|
switch (e.type) {
|
|
@@ -17127,17 +17152,17 @@ function ms(e, t = {}) {
|
|
|
17127
17152
|
l || 28,
|
|
17128
17153
|
u || 14,
|
|
17129
17154
|
f || 28
|
|
17130
|
-
], y = T(r.textAlign) ?? T(r.alignSelf) ?? "left", b = r.backgroundColor === "transparent", x = E(r) || "border-radius:8px;", S = te(r), ne = `${b ? "" : `background-color:${a};`}${x}${S}`, re = b ? null :
|
|
17155
|
+
], y = T(r.textAlign) ?? T(r.alignSelf) ?? "left", b = r.backgroundColor === "transparent", x = E(r) || "border-radius:8px;", S = te(r), ne = `${b ? "" : `background-color:${a};`}${x}${S}`, re = b ? null : us("btnbg", a), D = re ? cs(re) : null, O = !!D && ls(D)[2] > .8 && !!us("btntext", s), ie = r.widthSizing === "fill" || r.width === "100%" || r.isFullWidth;
|
|
17131
17156
|
return `<table role="presentation" cellpadding="0" cellspacing="0" border="0"${ie ? " width=\"100%\"" : ""} align="${y}"><tr><td${b ? "" : ` bgcolor="${a}"`}${p([b ? "" : d("btnbg", a), S && m(r.borderColor) ? d("border", m(r.borderColor)) : ""].filter(Boolean).join(" "))} align="center" style="${N(ne)}"><a href="${N(i)}" target="_blank"${p(b ? d("text", m(r.textColor) ?? a) : O ? d("btntext", s) : "")} style="${N(`display:${ie ? "block" : "inline-block"};padding:${$(h)} ${$(g)} ${$(_)} ${$(v)};font-family:${t.family};font-size:${$(t.size)};line-height:${$(Math.round(t.size * 1.2))};font-weight:${t.weight === "400" ? "600" : t.weight};color:${b ? m(r.textColor) ?? a : s};text-decoration:none;white-space:nowrap;${x}`)}">${qe(n)}</a></td></tr></table>`;
|
|
17132
17157
|
}
|
|
17133
17158
|
case "image": {
|
|
17134
17159
|
let i = Xe(e.props?.src);
|
|
17135
17160
|
if (!i) return "";
|
|
17136
|
-
let a = typeof e.props?.alt == "string" ? e.props.alt : "", o = g(r.customWidth ?? r.width), s =
|
|
17161
|
+
let a = typeof e.props?.alt == "string" ? e.props.alt : "", o = g(r.customWidth ?? r.width), s = ps(r.customWidth ?? r.width), c = Math.round(Math.min(n, o ?? (s ? n * s / 100 : n))), l = T(r.alignSelf) ?? T(r.textAlign), u = `display:block;border:0;outline:none;text-decoration:none;width:${$(c)};max-width:100%;height:auto;${E(r)}`, d = t.dark === "off" ? "" : Xe(e.props?.srcDark), f = d ? `<img class="plx-light" src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}"><img class="plx-dark" src="${N(d)}" alt="${N(a)}" width="${c}" style="${N(`${u}display:none;max-height:0;overflow:hidden;`)}">` : `<img src="${N(i)}" alt="${N(a)}" width="${c}" style="${N(u)}">`;
|
|
17137
17162
|
return l && l !== "left" ? `<table role="presentation" cellpadding="0" cellspacing="0" border="0" align="${l}"><tr><td>${f}</td></tr></table>` : f;
|
|
17138
17163
|
}
|
|
17139
17164
|
case "divider": {
|
|
17140
|
-
let e = m(r.borderColor) ?? m("var(--color-border-default)") ?? "#e5e7eb", t = g(r.borderWidth?.toString().split(/\s+/).find((e) =>
|
|
17165
|
+
let e = m(r.borderColor) ?? m("var(--color-border-default)") ?? "#e5e7eb", t = g(r.borderWidth?.toString().split(/\s+/).find((e) => fs(e))) ?? 1;
|
|
17141
17166
|
return `<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td height="${t}"${p(d("line", e))} style="font-size:1px;line-height:1px;border-top:${$(t)} solid ${e};"> </td></tr></table>`;
|
|
17142
17167
|
}
|
|
17143
17168
|
case "spacer": {
|
|
@@ -17148,10 +17173,10 @@ function ms(e, t = {}) {
|
|
|
17148
17173
|
}
|
|
17149
17174
|
}
|
|
17150
17175
|
function ie(e, t, n = !1) {
|
|
17151
|
-
let r = e.styles ?? {}, i = (e.children ?? []).filter((e) =>
|
|
17176
|
+
let r = e.styles ?? {}, i = (e.children ?? []).filter((e) => is(e.type) && (e.styles ?? {}).display !== "none"), [a, o, s, c] = w(r), l = m(r.backgroundColor), u = g(r.customWidth ?? r.width) ?? g(r.maxWidth), f = Math.max(40, Math.min(t, u ?? t)), h = f - c - o, _ = ne(r), v = e.type === "columns" || r.layoutMode !== "grid" && r.flexDirection === "row" && e.type !== "section" && e.type !== "page", y = T(r.alignItems), b = r.alignItems === "center" ? "middle" : r.alignItems === "flex-end" ? "bottom" : "top", x = "";
|
|
17152
17177
|
if (i.length) if (v) {
|
|
17153
17178
|
let e = i.map((e) => {
|
|
17154
|
-
let t = e.styles ?? {}, n = g(t.customWidth ?? t.width), r =
|
|
17179
|
+
let t = e.styles ?? {}, n = g(t.customWidth ?? t.width), r = ps(t.customWidth ?? t.width);
|
|
17155
17180
|
return n === void 0 ? r !== void 0 && r < 99 ? h * r / 100 : void 0 : n;
|
|
17156
17181
|
}), t = e.reduce((e, t) => e + (t ?? 0), 0), n = e.filter((e) => e === void 0).length, l = n ? Math.max(40, (h - t - _ * (i.length - 1)) / n) : 0, u = i.map((t, n) => {
|
|
17157
17182
|
let a = Math.floor(e[n] ?? l), o = n === i.length - 1, s = O(t, a);
|
|
@@ -17161,15 +17186,15 @@ function ms(e, t = {}) {
|
|
|
17161
17186
|
} else x = i.map((e, t) => {
|
|
17162
17187
|
let n = e.styles ?? {}, r = T(n.alignSelf) ?? y ?? (e.type === "button" || e.type, void 0), l = r === "center" || n.marginLeft === "auto" && n.marginRight === "auto" || n.margin === "0 auto" ? " align=\"center\"" : r === "right" || n.marginLeft === "auto" ? " align=\"right\"" : "", u = O(e, h);
|
|
17163
17188
|
if (!u) return "";
|
|
17164
|
-
let d = t === 0 ? a : _, [f, , p] =
|
|
17189
|
+
let d = t === 0 ? a : _, [f, , p] = ms(n.margin, n.marginTop, n.marginRight, n.marginBottom, n.marginLeft);
|
|
17165
17190
|
return `<tr><td${l} style="${N(`padding:${$(d + f)} ${$(o)} ${$(t === i.length - 1 ? s + p : p)} ${$(c)};`)}">${u}</td></tr>`;
|
|
17166
17191
|
}).join("");
|
|
17167
17192
|
else a + s > 0 && (x = `<tr><td height="${a + s}" style="font-size:1px;line-height:${$(a + s)};"> </td></tr>`);
|
|
17168
17193
|
let ee = `${l ? `background-color:${l};` : ""}${D(r)}${E(r)}${te(r)}`, S = n ? " width=\"100%\"" : ` width="${Math.round(f)}"`, C = n ? "" : `max-width:${$(f)};width:100%;`;
|
|
17169
17194
|
return `<table role="presentation"${S}${l ? ` bgcolor="${l}"` : ""}${p(d("bg", l))} cellpadding="0" cellspacing="0" border="0" style="${N(`${C}${ee}`)}">${x}</table>`;
|
|
17170
17195
|
}
|
|
17171
|
-
let ae = n.rootNode, k = m((ae.styles ?? {}).backgroundColor) ?? m("var(--color-bg-canvas)") ?? "#ffffff", A = (ae.children ?? []).filter((e) =>
|
|
17172
|
-
let t = e.styles ?? {}, n = m(t.backgroundColor), r =
|
|
17196
|
+
let ae = n.rootNode, k = m((ae.styles ?? {}).backgroundColor) ?? m("var(--color-bg-canvas)") ?? "#ffffff", A = (ae.children ?? []).filter((e) => is(e.type)).map((e) => {
|
|
17197
|
+
let t = e.styles ?? {}, n = m(t.backgroundColor), r = ns.has(e.type) ? ie(e, i) : O(e, i);
|
|
17173
17198
|
return r ? `<tr><td align="center"${n ? ` bgcolor="${n}"` : ""}${p(d("bg", n))} style="${N(`${n ? `background-color:${n};` : ""}${D(t)}`)}">${r}</td></tr>` : "";
|
|
17174
17199
|
}).join(""), oe = t.title ?? n.name, se = s([...y].map(([e, t]) => ({
|
|
17175
17200
|
family: e,
|
|
@@ -17179,7 +17204,7 @@ function ms(e, t = {}) {
|
|
|
17179
17204
|
700
|
|
17180
17205
|
]
|
|
17181
17206
|
}))).map((e) => `<link href="${N(e)}" rel="stylesheet">\n`).join(""), ce = t.preheader ? `<div style="display:none;max-height:0;overflow:hidden;opacity:0;color:transparent;mso-hide:all;">${qe(t.preheader)}${" ‌".repeat(40)}</div>` : "", de = d("bg", k), fe = t.dark !== "off", pe = (e) => {
|
|
17182
|
-
let t =
|
|
17207
|
+
let t = us(e.kind, e.color);
|
|
17183
17208
|
if (!t) return [];
|
|
17184
17209
|
let n = e.kind === "bg" || e.kind === "btnbg", r = n ? "background-color" : e.kind === "text" || e.kind === "btntext" ? "color" : e.kind === "border" ? "border-color" : "border-top-color", i = n ? "ogsb" : "ogsc";
|
|
17185
17210
|
return [`.${e.cls}{${r}:${t}!important}`, `[data-${i}] .${e.cls}{${r}:${t}!important}`];
|
|
@@ -17214,7 +17239,7 @@ ${ce}<table role="presentation" width="100%" cellpadding="0" cellspacing="0" bor
|
|
|
17214
17239
|
}
|
|
17215
17240
|
//#endregion
|
|
17216
17241
|
//#region src/v2/email/blank.ts
|
|
17217
|
-
var
|
|
17242
|
+
var gs = (e) => ({
|
|
17218
17243
|
id: i("page"),
|
|
17219
17244
|
type: "page",
|
|
17220
17245
|
name: "Email",
|
|
@@ -17228,22 +17253,22 @@ var hs = (e) => ({
|
|
|
17228
17253
|
},
|
|
17229
17254
|
children: e
|
|
17230
17255
|
});
|
|
17231
|
-
function
|
|
17256
|
+
function _s() {
|
|
17232
17257
|
return [{
|
|
17233
17258
|
id: i("page"),
|
|
17234
17259
|
name: "Email",
|
|
17235
17260
|
slug: "email",
|
|
17236
17261
|
isHome: !0,
|
|
17237
|
-
rootNode:
|
|
17262
|
+
rootNode: gs([Ci(ui("emailText", "plain"))])
|
|
17238
17263
|
}];
|
|
17239
17264
|
}
|
|
17240
|
-
function
|
|
17265
|
+
function vs() {
|
|
17241
17266
|
return [{
|
|
17242
17267
|
id: i("page"),
|
|
17243
17268
|
name: "Email",
|
|
17244
17269
|
slug: "email",
|
|
17245
17270
|
isHome: !0,
|
|
17246
|
-
rootNode:
|
|
17271
|
+
rootNode: gs([
|
|
17247
17272
|
["emailHeader", "centered"],
|
|
17248
17273
|
["emailHero", "centered"],
|
|
17249
17274
|
["emailFeatures", "columns"],
|
|
@@ -17253,4 +17278,4 @@ function _s() {
|
|
|
17253
17278
|
}];
|
|
17254
17279
|
}
|
|
17255
17280
|
//#endregion
|
|
17256
|
-
export {
|
|
17281
|
+
export { Ci as $, b as $t, Ha as A, tt as At, ca as B, me as Bt, _o as C, B as Ct, co as D, pt as Dt, lo as E, mt as Et, Ca as F, He as Ft, ta as G, O as Gt, aa as H, ue as Ht, la as I, se as It, ra as J, te as Jt, Zi as K, S as Kt, fa as L, ce as Lt, ma as M, nt as Mt, Ta as N, Xe as Nt, Ya as O, ht as Ot, ga as P, Be as Pt, K as Q, w as Qt, da as R, he as Rt, yo as S, V as St, uo as T, it as Tt, oa as U, fe as Ut, sa as V, pe as Vt, ia as W, k as Wt, zi as X, T as Xt, Ji as Y, C as Yt, Ni as Z, re as Zt, Z as _, q as _t, ss as a, Pi as at, xo as b, oi as bt, Qo as c, Vi as ct, Ro as d, Di as dt, x as en, Li as et, Io as f, Oi as ft, Po as g, Ui as gt, Ao as h, ki as ht, as as i, Bi as it, Ba as j, P as jt, Va as k, at as kt, Bo as l, Ii as lt, Fo as m, Ai as mt, vs as n, v as nn, ji as nt, ts as o, qi as ot, ko as p, Fi as pt, Qi as q, ne as qt, hs as r, Mi as rt, es as s, wi as st, _s as t, y as tn, ui as tt, Vo as u, Ei as ut, To as v, ri as vt, fo as w, St as wt, Do as x, ni as xt, bo as y, ai as yt, ua as z, le as zt };
|